Skip to content

Commit d70b40f

Browse files
Merge pull request #89 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 2e2b260 + 6288611 commit d70b40f

File tree

1 file changed

+83
-31
lines changed

1 file changed

+83
-31
lines changed

api.yaml

Lines changed: 83 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,14 @@ paths:
247247
enum:
248248
- 'true'
249249
- 'false'
250+
- name: includeBalance
251+
description: Omit trying to fetch the wallet balance
252+
in: query
253+
schema:
254+
type: string
255+
enum:
256+
- 'true'
257+
- 'false'
250258
- name: coin
251259
in: path
252260
required: true
@@ -801,6 +809,7 @@ paths:
801809
type: string
802810
enum:
803811
- admin
812+
- auditor
804813
videoIdUser:
805814
type: boolean
806815
invite:
@@ -26257,6 +26266,14 @@ paths:
2625726266
enum:
2625826267
- 'true'
2625926268
- 'false'
26269+
- name: includeBalance
26270+
description: Omit trying to fetch the wallet balance
26271+
in: query
26272+
schema:
26273+
type: string
26274+
enum:
26275+
- 'true'
26276+
- 'false'
2626026277
- name: walletId
2626126278
in: path
2626226279
required: true
@@ -32611,19 +32628,24 @@ components:
3261132628
addresses:
3261232629
type: array
3261332630
items:
32614-
type: object
32615-
properties:
32616-
address:
32617-
type: string
32618-
description: The address itself
32619-
balance:
32620-
allOf:
32621-
- $ref: '#/components/schemas/TrimmedBalance'
32622-
description: The balance associated with the address
32623-
required:
32624-
- address
32625-
- balance
32626-
description: List of addresses with their balances
32631+
allOf:
32632+
- type: object
32633+
properties:
32634+
chain:
32635+
$ref: '#/components/schemas/AddressChain'
32636+
coin:
32637+
$ref: '#/components/schemas/CoinString'
32638+
index:
32639+
type: number
32640+
wallet:
32641+
type: string
32642+
required:
32643+
- chain
32644+
- coin
32645+
- index
32646+
- wallet
32647+
- $ref: '#/components/schemas/BaseWalletAddress'
32648+
description: List of addresses with their balances and other fields
3262732649
message:
3262832650
type: string
3262932651
description: Optional message from the response
@@ -32765,6 +32787,7 @@ components:
3276532787
- lucid
3276632788
- wlf
3276732789
- walrus
32790+
- mtgox
3276832791
Agreements:
3276932792
title: Agreements
3277032793
type: object
@@ -37228,6 +37251,12 @@ components:
3722837251
type: array
3722937252
items:
3723037253
$ref: '#/components/schemas/AuditableItem'
37254+
EnterpriseMember:
37255+
title: EnterpriseMember
37256+
type: string
37257+
enum:
37258+
- member
37259+
description: 'This type represents the member permission that can be assigned to a user when adding them to an enterprise 1. ''member'': Receive invitations to wallets'
3723137260
EnterprisePermission:
3723237261
type: string
3723337262
enum:
@@ -37408,12 +37437,18 @@ components:
3740837437
type: boolean
3740937438
description: true, if multiple values can be provided, i.e. as a list of values. When false only one value can be provided, i.e. a list with more than one element will be rejected.
3741037439
example: true
37411-
EnterpriseUserRole:
37412-
title: EnterpriseUserRole
37440+
EnterpriseUserPermission:
37441+
title: EnterpriseUserPermission
3741337442
type: string
3741437443
enum:
3741537444
- admin
37416-
- member
37445+
- auditor
37446+
description: 'This type represents the permissions that can be assigned to a user when adding them to an enterprise 1. ''admin'': Add/remove users, Create wallets, Manage enterprise policies, Add Bank Accounts, Receive invitations to wallets 2. ''auditor'': View audit logs across the enterprise, Receive invitations to wallets'
37447+
EnterpriseUserRole:
37448+
title: EnterpriseUserRole
37449+
oneOf:
37450+
- $ref: '#/components/schemas/EnterpriseUserPermission'
37451+
- $ref: '#/components/schemas/EnterpriseMember'
3741737452
EnterpriseUsersActionRequest:
3741837453
title: Require approval from a set of enterprise users
3741937454
type: object
@@ -41096,6 +41131,20 @@ components:
4109641131
- deactivate
4109741132
- customTx
4109841133
- closeAssociatedTokenAccount
41134+
InternalUserOAuthSetting:
41135+
title: InternalUserOAuthSetting
41136+
type: object
41137+
properties:
41138+
clientId:
41139+
type: string
41140+
tenantId:
41141+
type: string
41142+
oauthProvider:
41143+
$ref: '#/components/schemas/OAuthProvider'
41144+
required:
41145+
- clientId
41146+
- tenantId
41147+
- oauthProvider
4109941148
InternationalWireBankAccount:
4110041149
title: International Wire Bank Account
4110141150
type: object
@@ -41730,6 +41779,8 @@ components:
4173041779
type: boolean
4173141780
documentsWaived:
4173241781
type: boolean
41782+
unverifiedPaygoUser:
41783+
type: boolean
4173341784
enterpriseVideoCallInfo:
4173441785
type: array
4173541786
items:
@@ -43716,21 +43767,14 @@ components:
4371643767
- msEntra
4371743768
OAuthSetting:
4371843769
title: OAuthSetting
43719-
type: object
43720-
properties:
43721-
clientId:
43722-
type: string
43723-
clientSecret:
43724-
type: string
43725-
tenantId:
43726-
type: string
43727-
oauthProvider:
43728-
$ref: '#/components/schemas/OAuthProvider'
43729-
required:
43730-
- clientId
43731-
- clientSecret
43732-
- tenantId
43733-
- oauthProvider
43770+
allOf:
43771+
- type: object
43772+
properties:
43773+
clientSecret:
43774+
type: string
43775+
required:
43776+
- clientSecret
43777+
- $ref: '#/components/schemas/InternalUserOAuthSetting'
4373443778
Offchain:
4373543779
title: Offchain
4373643780
type: object
@@ -44982,6 +45026,7 @@ components:
4498245026
type: string
4498345027
enum:
4498445028
- admin
45029+
- auditor
4498545030
description: The permissions associated with the update
4498645031
userId:
4498745032
type: string
@@ -45105,6 +45150,7 @@ components:
4510545150
type: string
4510645151
enum:
4510745152
- admin
45153+
- auditor
4510845154
description: The permissions associated with the invite
4510945155
userId:
4511045156
type: string
@@ -52923,6 +52969,10 @@ components:
5292352969
type: array
5292452970
items:
5292552971
type: string
52972+
enum:
52973+
- admin
52974+
- auditor
52975+
description: 'This type represents the permissions that can be assigned to a user when adding them to an enterprise 1. ''admin'': Add/remove users, Create wallets, Manage enterprise policies, Add Bank Accounts, Receive invitations to wallets 2. ''auditor'': View audit logs across the enterprise, Receive invitations to wallets'
5292652976
id:
5292752977
type: string
5292852978
beneficialOwner:
@@ -55061,6 +55111,7 @@ components:
5506155111
- view
5506255112
- freeze
5506355113
- trade
55114+
description: 'This type represents the permissions that can be assigned to a user when adding them to a wallet 1. ''admin'': add/remove wallet policies, add/remove wallet users, approve/reject wallet pending approvals, withdraw assets from wallet, generate new receive addresses, view all balances and transactions 2. ''spend'': withdraw assets from wallet, generate new receive addresses, view all balances and transactions 3. ''view'': generate new receive addresses, view all balances and transactions 4. ''freeze'': 5. ''trade'': trade on a wallet - applicable only for trading wallets'
5506455115
recoverable:
5506555116
type: boolean
5506655117
user:
@@ -55912,6 +55963,7 @@ components:
5591255963
- view
5591355964
- freeze
5591455965
- trade
55966+
description: 'This type represents the permissions that can be assigned to a user when adding them to a wallet 1. ''admin'': add/remove wallet policies, add/remove wallet users, approve/reject wallet pending approvals, withdraw assets from wallet, generate new receive addresses, view all balances and transactions 2. ''spend'': withdraw assets from wallet, generate new receive addresses, view all balances and transactions 3. ''view'': generate new receive addresses, view all balances and transactions 4. ''freeze'': 5. ''trade'': trade on a wallet - applicable only for trading wallets'
5591555967
recoverable:
5591655968
type: boolean
5591755969
user:

0 commit comments

Comments
 (0)