Skip to content

Commit 29e0df3

Browse files
Merge pull request #100 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 5709930 + 64d4720 commit 29e0df3

File tree

1 file changed

+77
-30
lines changed

1 file changed

+77
-30
lines changed

api.yaml

Lines changed: 77 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4439,7 +4439,7 @@ paths:
44394439
type: string
44404440
minLength: 1
44414441
settlementAmounts:
4442-
$ref: '#/components/schemas/SettlementAmountsRecord'
4442+
$ref: '#/components/schemas/UnmappedSettlementAmountsRecord'
44434443
nonce:
44444444
type: string
44454445
minLength: 1
@@ -4698,7 +4698,7 @@ paths:
46984698
type: string
46994699
minLength: 1
47004700
settlementAmounts:
4701-
$ref: '#/components/schemas/SettlementAmountsRecord'
4701+
$ref: '#/components/schemas/UnmappedSettlementAmountsRecord'
47024702
nonce:
47034703
type: string
47044704
minLength: 1
@@ -35699,7 +35699,7 @@ components:
3569935699
type: object
3570035700
additionalProperties:
3570135701
type: string
35702-
description: Record<Currency, Amount (bigint)>>
35702+
description: For mapped settlement amounts where the amount will always be a bigint
3570335703
description: Record<Party (destination) connectionId, Record<Currency, Amount (bigint)>> For exchange-style settlements, where the exchange is always the source and client owned connections are the destination.
3570435704
description: Record<Counterparty (source) connectionId, Record<Party (dest) connectionId, Record<Currency, Amount (bigint)>>> For broker-style settlements, where the source and destination are both client owned connections.
3570535705
CreateBitgoChallengeResponse:
@@ -43062,7 +43062,7 @@ components:
4306243062
type: string
4306343063
minLength: 1
4306443064
quantity:
43065-
$ref: '#/components/schemas/NonNegativeBigAmount'
43065+
$ref: '#/components/schemas/NonZeroBigAmount'
4306643066
txIds:
4306743067
type: array
4306843068
items:
@@ -43605,28 +43605,6 @@ components:
4360543605
- partnersConnectionId
4360643606
- name
4360743607
- balances
43608-
NetworkAccountBalanceRecordForPartner:
43609-
title: NetworkAccountBalanceRecordForPartner
43610-
type: object
43611-
additionalProperties:
43612-
type: object
43613-
properties:
43614-
clientId:
43615-
type: string
43616-
title: uuid
43617-
partnerId:
43618-
type: string
43619-
title: uuid
43620-
partnersConnectionId:
43621-
type: string
43622-
minLength: 1
43623-
balances:
43624-
$ref: '#/components/schemas/AccountBalanceRecord'
43625-
required:
43626-
- clientId
43627-
- partnerId
43628-
- partnersConnectionId
43629-
- balances
4363043608
NewLimitOrderRequest:
4363143609
title: Limit
4363243610
required:
@@ -43814,6 +43792,9 @@ components:
4381443792
type: string
4381543793
description: A description for the condition parameter Value which can be shown to an end user.
4381643794
example: The destination is not whitelisted
43795+
NonZeroBigAmount:
43796+
title: NonZeroBigAmount
43797+
type: string
4381743798
NtildeProof:
4381843799
title: NtildeProof
4381943800
type: object
@@ -44368,7 +44349,7 @@ components:
4436844349
type: object
4436944350
additionalProperties:
4437044351
type: string
44371-
description: Record<Currency, Amount (bigint)>>
44352+
description: For mapped settlement amounts where the amount will always be a bigint
4437244353
description: Record<Party (destination) connectionId, Record<Currency, Amount (bigint)>> For exchange-style settlements, where the exchange is always the source and client owned connections are the destination.
4437344354
PaymentFailureReason:
4437444355
title: PaymentFailureReason
@@ -52707,6 +52688,29 @@ components:
5270752688
description: Number of seconds that the session will stay unlocked
5270852689
otp:
5270952690
$ref: '#/components/schemas/Otp'
52691+
UnmappedCounterpartyPartySettlementAmountsRecord:
52692+
title: UnmappedCounterpartyPartySettlementAmountsRecord
52693+
type: object
52694+
additionalProperties:
52695+
type: object
52696+
additionalProperties:
52697+
type: object
52698+
additionalProperties:
52699+
type: string
52700+
description: For unmapped settlement amounts where the amount can be BigAmount(BigNumberFromString, BigIntFromString)
52701+
UnmappedPartySettlementAmountsRecord:
52702+
title: UnmappedPartySettlementAmountsRecord
52703+
type: object
52704+
additionalProperties:
52705+
type: object
52706+
additionalProperties:
52707+
type: string
52708+
description: For unmapped settlement amounts where the amount can be BigAmount(BigNumberFromString, BigIntFromString)
52709+
UnmappedSettlementAmountsRecord:
52710+
title: UnmappedSettlementAmountsRecord
52711+
oneOf:
52712+
- $ref: '#/components/schemas/UnmappedPartySettlementAmountsRecord'
52713+
- $ref: '#/components/schemas/UnmappedCounterpartyPartySettlementAmountsRecord'
5271052714
UnsignedTransaction:
5271152715
title: UnsignedTransaction
5271252716
type: object
@@ -53790,6 +53794,8 @@ components:
5379053794
type: boolean
5379153795
gainSLAAlertSent:
5379253796
type: boolean
53797+
cutoffAt:
53798+
type: string
5379353799
required:
5379453800
- id
5379553801
- partnerId
@@ -54183,6 +54189,8 @@ components:
5418354189
type: boolean
5418454190
gainSLAAlertSent:
5418554191
type: boolean
54192+
cutoffAt:
54193+
type: string
5418654194
required:
5418754195
- id
5418854196
- partnerId
@@ -54228,7 +54236,7 @@ components:
5422854236
type: string
5422954237
title: uuid
5423054238
quantity:
54231-
$ref: '#/components/schemas/NonNegativeBigAmount'
54239+
$ref: '#/components/schemas/NonZeroBigAmount'
5423254240
txIds:
5423354241
type: array
5423454242
items:
@@ -54517,14 +54525,27 @@ components:
5451754525
- owner
5451854526
- createdAt
5451954527
- updatedAt
54528+
V1PartnerAccountBalanceRecordOutput:
54529+
title: V1PartnerAccountBalanceRecordOutput
54530+
type: object
54531+
additionalProperties:
54532+
type: object
54533+
properties:
54534+
held:
54535+
$ref: '#/components/schemas/NonNegativeBigAmount'
54536+
available:
54537+
$ref: '#/components/schemas/NonNegativeBigAmount'
54538+
required:
54539+
- held
54540+
- available
5452054541
V1PartnerBalancesGetPayload:
5452154542
title: V1PartnerBalancesGetPayload
5452254543
type: object
5452354544
properties:
5452454545
networkBalances:
54525-
$ref: '#/components/schemas/NetworkAccountBalanceRecordForPartner'
54546+
$ref: '#/components/schemas/V1PartnerNetworkAccountBalanceRecordOutput'
5452654547
balances:
54527-
$ref: '#/components/schemas/AccountBalanceRecord'
54548+
$ref: '#/components/schemas/V1PartnerAccountBalanceRecordOutput'
5452854549
required:
5452954550
- networkBalances
5453054551
V1PartnerExtDepositsSigningPayload:
@@ -54540,6 +54561,28 @@ components:
5454054561
oneOf:
5454154562
- $ref: '#/components/schemas/V1PartnerSettlementIncompletePayload'
5454254563
- $ref: '#/components/schemas/V1ErrorPayload'
54564+
V1PartnerNetworkAccountBalanceRecordOutput:
54565+
title: V1PartnerNetworkAccountBalanceRecordOutput
54566+
type: object
54567+
additionalProperties:
54568+
type: object
54569+
properties:
54570+
clientId:
54571+
type: string
54572+
title: uuid
54573+
partnerId:
54574+
type: string
54575+
title: uuid
54576+
partnersConnectionId:
54577+
type: string
54578+
minLength: 1
54579+
balances:
54580+
$ref: '#/components/schemas/V1PartnerAccountBalanceRecordOutput'
54581+
required:
54582+
- clientId
54583+
- partnerId
54584+
- partnersConnectionId
54585+
- balances
5454354586
V1PartnerSettlementIncompletePayload:
5454454587
title: V1PartnerSettlementIncompletePayload
5454554588
type: object
@@ -54818,6 +54861,8 @@ components:
5481854861
type: boolean
5481954862
gainSLAAlertSent:
5482054863
type: boolean
54864+
cutoffAt:
54865+
type: string
5482154866
required:
5482254867
- id
5482354868
- partnerId
@@ -54886,6 +54931,8 @@ components:
5488654931
type: boolean
5488754932
gainSLAAlertSent:
5488854933
type: boolean
54934+
cutoffAt:
54935+
type: string
5488954936
required:
5489054937
- id
5489154938
- partnerId

0 commit comments

Comments
 (0)