From ec4cf2efdfaaca59cabe45d5b9a2d4bb299b719f Mon Sep 17 00:00:00 2001 From: "dev-portal-updater[bot]" <149019135+dev-portal-updater[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2025 17:56:09 +0000 Subject: [PATCH 1/2] feat: update `bitgo-api-docs` This commit updates the BitGo API. --- api.yaml | 121 +++++++++++++++++++++++++------------------------------ 1 file changed, 56 insertions(+), 65 deletions(-) diff --git a/api.yaml b/api.yaml index 71062d3..fa0487d 100644 --- a/api.yaml +++ b/api.yaml @@ -22298,7 +22298,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WalletAddress' + $ref: '#/components/schemas/WalletAddressUnion' '400': description: Bad Request content: @@ -22492,7 +22492,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WalletAddress' + $ref: '#/components/schemas/WalletAddressUnion' '400': description: Bad Request content: @@ -33009,18 +33009,27 @@ components: - enterpriseInviteRequest WalletAddress: title: WalletAddress + allOf: + - type: object + properties: + coin: + $ref: '#/components/schemas/CoinString' + wallet: + type: string + chain: + $ref: '#/components/schemas/AddressChain' + index: + type: number + required: + - coin + - wallet + - chain + - index + - $ref: '#/components/schemas/BaseWalletAddress' + BaseWalletAddress: + title: BaseWalletAddress type: object properties: - chain: - allOf: - - $ref: '#/components/schemas/AddressChain' - example: '1' - coin: - $ref: '#/components/schemas/CoinString' - index: - type: number - wallet: - type: string id: type: string description: Platform public ID for an address @@ -33052,11 +33061,6 @@ components: needsConsolidation: type: boolean tokenConsolidationState: {} - required: - - chain - - coin - - index - - wallet AddressLabelString: title: AddressLabelString type: string @@ -48130,6 +48134,24 @@ components: - WITNESS_SCRIPT - ETH_CREATE - ETH_CREATE2 + WalletAddressUnion: + title: WalletAddressUnion + oneOf: + - $ref: '#/components/schemas/WalletAddress' + - $ref: '#/components/schemas/LightningWalletAddress' + LightningWalletAddress: + title: LightningWalletAddress + allOf: + - type: object + properties: + coin: + $ref: '#/components/schemas/CoinString' + wallet: + type: string + required: + - coin + - wallet + - $ref: '#/components/schemas/BaseWalletAddress' AddressWithBalanceQueryResult: title: AddressWithBalanceQueryResult type: object @@ -48184,54 +48206,23 @@ components: addresses: type: array items: - type: object - properties: - address: - $ref: '#/components/schemas/AddressString' - balance: - $ref: '#/components/schemas/TrimmedBalance' - chain: - allOf: - - $ref: '#/components/schemas/AddressChain' - example: '1' - coin: - $ref: '#/components/schemas/CoinString' - coinSpecific: - allOf: - - $ref: '#/components/schemas/AddressSubdocument' - description: Properties specific to certain coin types - id: - type: string - description: Platform public ID for an address - example: 59cd72485007a239fb00282ed480da1f - pattern: ^[0-9a-f]{32}$ - index: - type: number - label: - $ref: '#/components/schemas/AddressLabelString' - lastConsolidatedTime: - type: string - format: date - title: Date String - lastNonce: - type: number - default: -1 - needsConsolidation: - type: boolean - proof: - type: string - signature: - type: string - token: - type: string - tokenConsolidationState: {} - wallet: - type: string - required: - - chain - - coin - - index - - wallet + allOf: + - type: object + properties: + chain: + $ref: '#/components/schemas/AddressChain' + coin: + $ref: '#/components/schemas/CoinString' + index: + type: number + wallet: + type: string + required: + - chain + - coin + - index + - wallet + - $ref: '#/components/schemas/BaseWalletAddress' nextBatchPrevId: type: string 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. From 8cc361bcb281528334717ca293d17ef134dff8ab Mon Sep 17 00:00:00 2001 From: "dev-portal-updater[bot]" <149019135+dev-portal-updater[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2025 17:56:16 +0000 Subject: [PATCH 2/2] feat: update `bitgo-api-docs` This commit updates the BitGo API. --- api.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/api.yaml b/api.yaml index fa0487d..8702d04 100644 --- a/api.yaml +++ b/api.yaml @@ -37644,6 +37644,7 @@ components: - BitGo Singapore - BitGo Europe ApS - BitGo Mena Fze + - BitGo Custody MENA FZE BuildParams: type: object properties: