Skip to content

Commit a0f782d

Browse files
Merge pull request #211 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 5617589 + c7c0b81 commit a0f782d

File tree

1 file changed

+174
-0
lines changed

1 file changed

+174
-0
lines changed

api.yaml

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39246,6 +39246,11 @@ components:
3924639246
- $ref: '#/components/schemas/WalletAdminActionRequest'
3924739247
- $ref: '#/components/schemas/FinalApprovalActionRequest'
3924839248
- $ref: '#/components/schemas/EnterpriseUsersActionRequest'
39249+
- $ref: '#/components/schemas/EnterpriseAdminsActionRequest'
39250+
- $ref: '#/components/schemas/LivenessVerificationFromEnterpriseAdminActionRequest'
39251+
- $ref: '#/components/schemas/LivenessVerificationFromRequestorActionRequest'
39252+
- $ref: '#/components/schemas/LivenessVerificationFromEnterpriseUsersActionRequest'
39253+
- $ref: '#/components/schemas/NoneActionRequest'
3924939254
filteringConditions:
3925039255
type: array
3925139256
description: List of Filtering Conditions that must trigger for the policy rule to be Evaluated.
@@ -39254,6 +39259,7 @@ components:
3925439259
- $ref: '#/components/schemas/WalletIdsFilteringCondition'
3925539260
- $ref: '#/components/schemas/WalletTypeFilteringCondition'
3925639261
- $ref: '#/components/schemas/WalletAllFilteringCondition'
39262+
- $ref: '#/components/schemas/RuleAllFilteringCondition'
3925739263
lockType:
3925839264
type: string
3925939265
description: |
@@ -40957,6 +40963,37 @@ components:
4095740963
example: approvals.customer.enterpriseAdmin
4095840964
operator:
4095940965
$ref: '#/components/schemas/OperatorType'
40966+
EnterpriseAdminsActionRequest:
40967+
title: Enterprise admin approval
40968+
type: object
40969+
description: Require approval from enterprise admins.
40970+
required:
40971+
- name
40972+
- parameters
40973+
properties:
40974+
name:
40975+
type: string
40976+
description: Name of the associated Action.
40977+
enum:
40978+
- approvals.customer.enterpriseAdmin
40979+
example: approvals.customer.enterpriseAdmin
40980+
parameters:
40981+
type: object
40982+
description: Required data needed to configure the Action.
40983+
required:
40984+
- minRequired
40985+
properties:
40986+
minRequired:
40987+
type: number
40988+
description: Minimum required number of approvers
40989+
example: 1
40990+
initiatorIsAllowedToApprove:
40991+
type: boolean
40992+
description: Whether the initiator is allowed to approve this action. false by default.
40993+
example: false
40994+
default: false
40995+
operator:
40996+
$ref: '#/components/schemas/OperatorType'
4096040997
EnterpriseAvailableUI:
4096140998
type: string
4096240999
enum:
@@ -46958,6 +46995,105 @@ components:
4695846995
type: array
4695946996
items:
4696046997
$ref: '#/components/schemas/WalletShare1'
46998+
LivenessVerificationFromEnterpriseAdminActionRequest:
46999+
title: Liveness Verification From Enterprise Admins
47000+
type: object
47001+
description: Require liveness verification from enterprise admins.
47002+
required:
47003+
- name
47004+
- parameters
47005+
properties:
47006+
name:
47007+
type: string
47008+
description: Name of the associated Action.
47009+
enum:
47010+
- approvals.bitgo.livenessVerificationFromEnterpriseAdmins
47011+
example: approvals.bitgo.livenessVerificationFromEnterpriseAdmins
47012+
parameters:
47013+
type: object
47014+
description: Required data needed to configure the Action.
47015+
required:
47016+
- minRequired
47017+
properties:
47018+
minRequired:
47019+
type: number
47020+
description: Minimum required number of approvers
47021+
example: 1
47022+
initiatorIsAllowedToApprove:
47023+
type: boolean
47024+
description: Whether the initiator is allowed to approve this action. false by default.
47025+
example: false
47026+
default: false
47027+
operator:
47028+
$ref: '#/components/schemas/OperatorType'
47029+
LivenessVerificationFromEnterpriseUsersActionRequest:
47030+
title: Liveness Verification From Specific Users
47031+
type: object
47032+
description: Require liveness verification from specific users.
47033+
required:
47034+
- name
47035+
- parameters
47036+
properties:
47037+
name:
47038+
type: string
47039+
description: Name of the associated Action.
47040+
enum:
47041+
- approvals.bitgo.livenessVerificationFromUsers
47042+
example: approvals.bitgo.livenessVerificationFromUsers
47043+
parameters:
47044+
type: object
47045+
description: Required data needed to configure the Action.
47046+
required:
47047+
- userIds
47048+
- minRequired
47049+
properties:
47050+
userIds:
47051+
type: array
47052+
items:
47053+
type: string
47054+
example: 63cf101298470200073bbae71add80d5
47055+
description: List of enterprise users for approval
47056+
example:
47057+
- 63cf101298470200073bbae71add80d5
47058+
minRequired:
47059+
type: number
47060+
description: Minimum required number of approvers
47061+
example: 1
47062+
initiatorIsAllowedToApprove:
47063+
type: boolean
47064+
description: Whether the initiator is allowed to approve this action. false by default.
47065+
example: false
47066+
default: false
47067+
operator:
47068+
$ref: '#/components/schemas/OperatorType'
47069+
LivenessVerificationFromRequestorActionRequest:
47070+
title: Liveness Verification From Requestor
47071+
type: object
47072+
description: Require liveness verification from the requestor.
47073+
required:
47074+
- name
47075+
properties:
47076+
name:
47077+
type: string
47078+
description: Name of the associated Action.
47079+
enum:
47080+
- approvals.bitgo.livenessVerificationFromRequestor
47081+
example: approvals.bitgo.livenessVerificationFromRequestor
47082+
parameters:
47083+
type: object
47084+
description: Required data needed to configure the Action.
47085+
properties:
47086+
minRequired:
47087+
type: number
47088+
description: Minimum required number of approvers
47089+
example: 1
47090+
initiatorIsAllowedToApprove:
47091+
type: boolean
47092+
description: Whether the initiator is allowed to approve this action. false by default.
47093+
example: false
47094+
default: false
47095+
operator:
47096+
$ref: '#/components/schemas/OperatorType'
4696147097
LivenessVerificationParameter:
4696247098
title: LivenessVerificationParameter
4696347099
type: string
@@ -48046,6 +48182,25 @@ components:
4804648182
NonZeroBigAmount:
4804748183
title: NonZeroBigAmount
4804848184
type: string
48185+
NoneActionRequest:
48186+
title: None
48187+
type: object
48188+
description: No action required.
48189+
required:
48190+
- name
48191+
properties:
48192+
name:
48193+
type: string
48194+
description: Name of the associated Action.
48195+
enum:
48196+
- approvals.bitgo.noop
48197+
example: approvals.bitgo.noop
48198+
parameters:
48199+
type: object
48200+
description: Required data needed to configure the Action.
48201+
additionalProperties: true
48202+
operator:
48203+
$ref: '#/components/schemas/OperatorType'
4804948204
NtildeProof:
4805048205
title: NtildeProof
4805148206
type: object
@@ -51226,11 +51381,13 @@ components:
5122651381
* `INACTIVE` - Will NOT be Evaluated.
5122751382
* `DENIED` - The requested policy rule change was Denied.
5122851383
* `PENDING_APPROVAL` - This version of the policy rule is Pending Approval before it can be activated.
51384+
* `UNLOCK_PENDING` - This version of the policy rule is created when a request to unlock a policy is initiated.
5122951385
enum:
5123051386
- ACTIVE
5123151387
- INACTIVE
5123251388
- DENIED
5123351389
- PENDING_APPROVAL
51390+
- UNLOCK_PENDING
5123451391
example: ACTIVE
5123551392
version:
5123651393
type: integer
@@ -52383,6 +52540,23 @@ components:
5238352540
- walletId
5238452541
- expireTime
5238552542
- userId
52543+
RuleAllFilteringCondition:
52544+
title: All rules
52545+
type: object
52546+
description: Filter by all rules.
52547+
required:
52548+
- name
52549+
properties:
52550+
name:
52551+
type: string
52552+
description: Name of the condition.
52553+
enum:
52554+
- rule.all
52555+
example: rule.all
52556+
parameters:
52557+
type: object
52558+
description: Required data needed to evaluate the Filtering Condition.
52559+
additionalProperties: true
5238652560
STXStakingOptions:
5238752561
title: STX
5238852562
type: object

0 commit comments

Comments
 (0)