Skip to content

Commit ec4cf2e

Browse files
feat: update bitgo-api-docs
This commit updates the BitGo API.
1 parent 06960db commit ec4cf2e

File tree

1 file changed

+56
-65
lines changed

1 file changed

+56
-65
lines changed

api.yaml

Lines changed: 56 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -22298,7 +22298,7 @@ paths:
2229822298
content:
2229922299
application/json:
2230022300
schema:
22301-
$ref: '#/components/schemas/WalletAddress'
22301+
$ref: '#/components/schemas/WalletAddressUnion'
2230222302
'400':
2230322303
description: Bad Request
2230422304
content:
@@ -22492,7 +22492,7 @@ paths:
2249222492
content:
2249322493
application/json:
2249422494
schema:
22495-
$ref: '#/components/schemas/WalletAddress'
22495+
$ref: '#/components/schemas/WalletAddressUnion'
2249622496
'400':
2249722497
description: Bad Request
2249822498
content:
@@ -33009,18 +33009,27 @@ components:
3300933009
- enterpriseInviteRequest
3301033010
WalletAddress:
3301133011
title: WalletAddress
33012+
allOf:
33013+
- type: object
33014+
properties:
33015+
coin:
33016+
$ref: '#/components/schemas/CoinString'
33017+
wallet:
33018+
type: string
33019+
chain:
33020+
$ref: '#/components/schemas/AddressChain'
33021+
index:
33022+
type: number
33023+
required:
33024+
- coin
33025+
- wallet
33026+
- chain
33027+
- index
33028+
- $ref: '#/components/schemas/BaseWalletAddress'
33029+
BaseWalletAddress:
33030+
title: BaseWalletAddress
3301233031
type: object
3301333032
properties:
33014-
chain:
33015-
allOf:
33016-
- $ref: '#/components/schemas/AddressChain'
33017-
example: '1'
33018-
coin:
33019-
$ref: '#/components/schemas/CoinString'
33020-
index:
33021-
type: number
33022-
wallet:
33023-
type: string
3302433033
id:
3302533034
type: string
3302633035
description: Platform public ID for an address
@@ -33052,11 +33061,6 @@ components:
3305233061
needsConsolidation:
3305333062
type: boolean
3305433063
tokenConsolidationState: {}
33055-
required:
33056-
- chain
33057-
- coin
33058-
- index
33059-
- wallet
3306033064
AddressLabelString:
3306133065
title: AddressLabelString
3306233066
type: string
@@ -48130,6 +48134,24 @@ components:
4813048134
- WITNESS_SCRIPT
4813148135
- ETH_CREATE
4813248136
- ETH_CREATE2
48137+
WalletAddressUnion:
48138+
title: WalletAddressUnion
48139+
oneOf:
48140+
- $ref: '#/components/schemas/WalletAddress'
48141+
- $ref: '#/components/schemas/LightningWalletAddress'
48142+
LightningWalletAddress:
48143+
title: LightningWalletAddress
48144+
allOf:
48145+
- type: object
48146+
properties:
48147+
coin:
48148+
$ref: '#/components/schemas/CoinString'
48149+
wallet:
48150+
type: string
48151+
required:
48152+
- coin
48153+
- wallet
48154+
- $ref: '#/components/schemas/BaseWalletAddress'
4813348155
AddressWithBalanceQueryResult:
4813448156
title: AddressWithBalanceQueryResult
4813548157
type: object
@@ -48184,54 +48206,23 @@ components:
4818448206
addresses:
4818548207
type: array
4818648208
items:
48187-
type: object
48188-
properties:
48189-
address:
48190-
$ref: '#/components/schemas/AddressString'
48191-
balance:
48192-
$ref: '#/components/schemas/TrimmedBalance'
48193-
chain:
48194-
allOf:
48195-
- $ref: '#/components/schemas/AddressChain'
48196-
example: '1'
48197-
coin:
48198-
$ref: '#/components/schemas/CoinString'
48199-
coinSpecific:
48200-
allOf:
48201-
- $ref: '#/components/schemas/AddressSubdocument'
48202-
description: Properties specific to certain coin types
48203-
id:
48204-
type: string
48205-
description: Platform public ID for an address
48206-
example: 59cd72485007a239fb00282ed480da1f
48207-
pattern: ^[0-9a-f]{32}$
48208-
index:
48209-
type: number
48210-
label:
48211-
$ref: '#/components/schemas/AddressLabelString'
48212-
lastConsolidatedTime:
48213-
type: string
48214-
format: date
48215-
title: Date String
48216-
lastNonce:
48217-
type: number
48218-
default: -1
48219-
needsConsolidation:
48220-
type: boolean
48221-
proof:
48222-
type: string
48223-
signature:
48224-
type: string
48225-
token:
48226-
type: string
48227-
tokenConsolidationState: {}
48228-
wallet:
48229-
type: string
48230-
required:
48231-
- chain
48232-
- coin
48233-
- index
48234-
- wallet
48209+
allOf:
48210+
- type: object
48211+
properties:
48212+
chain:
48213+
$ref: '#/components/schemas/AddressChain'
48214+
coin:
48215+
$ref: '#/components/schemas/CoinString'
48216+
index:
48217+
type: number
48218+
wallet:
48219+
type: string
48220+
required:
48221+
- chain
48222+
- coin
48223+
- index
48224+
- wallet
48225+
- $ref: '#/components/schemas/BaseWalletAddress'
4823548226
nextBatchPrevId:
4823648227
type: string
4823748228
description: When a result set is truncated, this field returns the id of the last object in the previous batch. To get the next batch of results, pass this value via the 'prevId' query parameter.

0 commit comments

Comments
 (0)