Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ tsconfig.node.tsbuildinfo

# Backup directories
/opt/wildcat/backup
/opt/wildcat/backup/
155 changes: 149 additions & 6 deletions opt/wildcat/backup/_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@
}
}
},
"/v1/admin/mint/info": {
"get": {
"tags": ["admin"],
"operationId": "get_mint_info",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WildcatInfo"
}
}
}
}
}
}
},
"/v1/admin/keysets/{kid}": {
"get": {
"tags": ["admin"],
Expand Down Expand Up @@ -767,15 +785,14 @@
}
}
},
"/v1/admin/treasury/ebill/mint_complete/{bid}": {
"/v1/admin/treasury/ebill/payment_complete/{bid}": {
"get": {
"tags": ["admin"],
"operationId": "get_ebill_mint_complete",
"parameters": [
{
"name": "bid",
"in": "path",
"description": "the ebill id",
"required": true,
"schema": {
"type": "string"
Expand All @@ -788,7 +805,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EbillMintingComplete"
"$ref": "#/components/schemas/EbillPaymentComplete"
}
}
}
Expand All @@ -798,6 +815,34 @@
}
}
}
},
"/v1/admin/credit/token_status": {
"post": {
"tags": ["admin"],
"operationId": "post_token_status",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TokenStateRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TokenStateResponse"
}
}
}
}
}
}
}
},
"components": {
Expand Down Expand Up @@ -1522,7 +1567,7 @@
}
}
},
"EbillMintingComplete": {
"EbillPaymentComplete": {
"type": "object",
"description": "--------------------------- ebill minting completed",
"required": ["complete"],
Expand Down Expand Up @@ -2251,6 +2296,19 @@
}
}
},
{
"type": "object",
"description": "Last seen timestamp",
"required": ["Interim"],
"properties": {
"Interim": {
"type": "integer",
"format": "int64",
"description": "Last seen timestamp",
"minimum": 0
}
}
},
{
"type": "object",
"description": "Last seen timestamp",
Expand Down Expand Up @@ -2286,8 +2344,8 @@
"type": "object"
},
"description": "Post Rabid",
"maxItems": 2,
"minItems": 2
"maxItems": 3,
"minItems": 3
}
}
}
Expand All @@ -2313,6 +2371,28 @@
}
}
},
"TokenState": {
"type": "string",
"enum": ["Unspent", "Spent"]
},
"TokenStateRequest": {
"type": "object",
"required": ["token"],
"properties": {
"token": {
"type": "string"
}
}
},
"TokenStateResponse": {
"type": "object",
"required": ["state"],
"properties": {
"state": {
"$ref": "#/components/schemas/TokenState"
}
}
},
"UpdateQuoteRequest": {
"oneOf": [
{
Expand Down Expand Up @@ -2379,6 +2459,69 @@
}
}
]
},
"VersionInfo": {
"type": "object",
"description": "Version information for the mint",
"required": ["wildcat", "bcr_ebill_core", "cdk_mintd", "clowder"],
"properties": {
"wildcat": {
"type": "string",
"description": "Wildcat version"
},
"bcr_ebill_core": {
"type": "string",
"description": "bcr-ebill-core version"
},
"cdk_mintd": {
"type": "string",
"description": "cdk-mintd version"
},
"clowder": {
"type": "string",
"description": "Clowder version"
}
}
},
"WildcatInfo": {
"type": "object",
"description": "Mint information including network, build time, versions, and uptime",
"required": [
"network",
"build_time",
"uptime_timestamp",
"versions",
"clowder_node_id",
"clowder_change_address"
],
"properties": {
"network": {
"type": "string",
"description": "Bitcoin network (mainnet, testnet, signet, regtest)"
},
"build_time": {
"type": "string",
"format": "date-time",
"description": "Build timestamp"
},
"uptime_timestamp": {
"type": "string",
"format": "date-time",
"description": "Service uptime, last started"
},
"versions": {
"$ref": "#/components/schemas/VersionInfo",
"description": "Version information"
},
"clowder_node_id": {
"type": "string",
"description": "Clowder node id"
},
"clowder_change_address": {
"type": "string",
"description": "Clowder change address"
}
}
}
}
}
Expand Down
Loading