@cobo/cobo-waas2 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -29
- package/dist/ApiClient.js +11 -1
- package/dist/api/AddressBooksApi.js +7 -7
- package/dist/api/DevelopersApi.js +111 -1
- package/dist/api/DevelopersWebhooksApi.js +38 -38
- package/dist/api/OAuthApi.js +2 -2
- package/dist/api/PrimeBrokerApi.js +317 -0
- package/dist/api/StakingsApi.js +45 -42
- package/dist/api/TransactionsApi.js +131 -42
- package/dist/api/TravelRuleApi.js +216 -0
- package/dist/api/WalletsApi.js +152 -81
- package/dist/api/WalletsExchangeWalletApi.js +13 -13
- package/dist/api/WalletsMPCWalletsApi.js +189 -77
- package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
- package/dist/index.js +385 -7
- package/dist/model/Activity.js +29 -0
- package/dist/model/ActivityAction.js +30 -0
- package/dist/model/ActivityExtra.js +274 -0
- package/dist/model/AddressBalance.js +129 -0
- package/dist/model/AddressInfo.js +15 -2
- package/dist/model/AddressTransferDestination.js +37 -1
- package/dist/model/AddressesEventData.js +190 -0
- package/dist/model/ApiLogDetails.js +2 -2
- package/dist/model/ApprovalStatementStatus.js +81 -0
- package/dist/model/AssetBalance.js +6 -6
- package/dist/model/BTCEIP191MessageSignDestination.js +122 -0
- package/dist/model/BabylonStakeExtra.js +1 -1
- package/dist/model/BabylonStakingActivityDetailExtra.js +165 -0
- package/dist/model/{TokenBalanceBalance.js → Balance.js} +28 -28
- package/dist/model/BaseContractCallSource.js +1 -1
- package/dist/model/BroadcastSignedTransactionsRequest.js +1 -1
- package/dist/model/CallbackMessage.js +288 -0
- package/dist/model/ChainInfo.js +2 -2
- package/dist/model/ChangeGuardPubkey200Response.js +110 -0
- package/dist/model/ContractCallParams.js +38 -2
- package/dist/model/CoreStakingActivityDetailExtra.js +164 -0
- package/dist/model/CreateAddressRequest.js +30 -4
- package/dist/model/CreateClaimActivity.js +2 -2
- package/dist/model/CreateClaimActivityRequest.js +3 -3
- package/dist/model/CreateKeyShareHolder.js +1 -1
- package/dist/model/CreateMpcVaultRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +2 -2
- package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
- package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -0
- package/dist/model/CreateStakeActivity.js +4 -6
- package/dist/model/CreateStakeActivityExtra.js +1 -1
- package/dist/model/CreateStakeActivityRequest.js +5 -7
- package/dist/model/CreateWalletParams.js +1 -1
- package/dist/model/CreateWebhookEndpointRequest.js +2 -2
- package/dist/model/CustodialTransferSource.js +1 -1
- package/dist/model/DeleteGuardPubkey201Response.js +110 -0
- package/dist/model/DestinationWalletType.js +61 -0
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/EstimateClaimFee.js +1 -1
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +2 -2
- package/dist/model/EstimateStakeFee.js +5 -7
- package/dist/model/EstimateTransferFeeParams.js +2 -2
- package/dist/model/EthStakeEstimatedFee.js +13 -0
- package/dist/model/EthStakingActivityDetailExtra.js +142 -0
- package/dist/model/EvmContractCallDestination.js +1 -1
- package/dist/model/EvmEIP191MessageSignDestination.js +1 -1
- package/dist/model/EvmEIP712MessageSignDestination.js +1 -1
- package/dist/model/ExchangeTransferDestination.js +1 -1
- package/dist/model/ExchangeTransferSource.js +1 -1
- package/dist/model/ExtendedTokenInfo.js +3 -3
- package/dist/model/GetStakingEstimationFee201Response.js +6 -0
- package/dist/model/GetStakingEstimationFeeRequest.js +1 -1
- package/dist/model/GetTransactionLimitation200Response.js +143 -0
- package/dist/model/GuardPubkeyStatus.js +91 -0
- package/dist/model/ListAddressBalancesByToken200Response.js +123 -0
- package/dist/model/ListCallbackMessages200Response.js +145 -0
- package/dist/model/ListKeyShareHolders200Response.js +123 -0
- package/dist/model/ListSupportedCountries200ResponseInner.js +140 -0
- package/dist/model/LockUtxosRequestUtxosInner.js +2 -2
- package/dist/model/MPCDelegate.js +1 -1
- package/dist/model/MPCVaultEventData.js +279 -0
- package/dist/model/MaxTransferableValue.js +1 -1
- package/dist/model/MessageSignDestination.js +70 -8
- package/dist/model/MessageSignDestinationType.js +12 -2
- package/dist/model/MessageSignParams.js +2 -2
- package/dist/model/MpcTransferSource.js +1 -1
- package/dist/model/OrgInfo.js +133 -0
- package/dist/model/Pagination.js +4 -4
- package/dist/model/QueryApprovalStatement200Response.js +122 -0
- package/dist/model/QueryGuardPubkey200Response.js +129 -0
- package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +125 -0
- package/dist/model/RawMessageSignDestination.js +1 -1
- package/dist/model/RetryCallbackMessage201Response.js +83 -0
- package/dist/model/RootPubkey.js +1 -1
- package/dist/model/SafeContractCallSource.js +1 -1
- package/dist/model/SafeTransferSource.js +1 -1
- package/dist/model/SelectedEntityType.js +61 -0
- package/dist/model/SelfCustodyWallet.js +152 -0
- package/dist/model/SourceGroup.js +1 -1
- package/dist/model/StakingPoolId.js +5 -0
- package/dist/model/StakingPoolType.js +5 -0
- package/dist/model/SubWalletAssetBalance.js +6 -6
- package/dist/model/SubmitDepositTravelRuleInfo201Response.js +83 -0
- package/dist/model/SwapActivity.js +218 -0
- package/dist/model/SwapSummary.js +121 -0
- package/dist/model/SwapTokenPair.js +100 -0
- package/dist/model/TSSGroups.js +1 -1
- package/dist/model/TSSRequestWebhookEventData.js +18 -3
- package/dist/model/TokenBalance.js +8 -8
- package/dist/model/TokenInfo.js +2 -2
- package/dist/model/Transaction.js +2 -2
- package/dist/model/TransactionApprovalDetail.js +121 -0
- package/dist/model/TransactionApprovalResult.js +66 -0
- package/dist/model/TransactionCustodialAssetWalletSource.js +1 -1
- package/dist/model/TransactionDepositFromAddressSource.js +1 -1
- package/dist/model/TransactionDepositFromLoopSource.js +1 -1
- package/dist/model/TransactionDepositFromWalletSource.js +1 -1
- package/dist/model/TransactionDepositToAddressDestination.js +17 -1
- package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +83 -0
- package/dist/model/TransactionDepositToWalletDestination.js +1 -1
- package/dist/model/TransactionDestination.js +6 -0
- package/dist/model/TransactionDetail.js +4 -4
- package/dist/model/TransactionDetails.js +4 -4
- package/dist/model/TransactionEvmContractDestination.js +1 -1
- package/dist/model/TransactionExchangeWalletSource.js +1 -1
- package/dist/model/TransactionMPCWalletSource.js +1 -1
- package/dist/model/TransactionMessageSignEIP191Destination.js +1 -1
- package/dist/model/TransactionMessageSignEIP712Destination.js +1 -1
- package/dist/model/TransactionRawMessageSignDestination.js +1 -1
- package/dist/model/TransactionRawTxInfo.js +17 -4
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
- package/dist/model/TransactionRequestFixedFee.js +1 -1
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionRoleApprovalDetail.js +152 -0
- package/dist/model/TransactionSelectedUtxo.js +123 -0
- package/dist/model/TransactionSmartContractSafeWalletSource.js +1 -1
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionTokeApproval.js +3 -3
- package/dist/model/TransactionTokenAmount.js +1 -1
- package/dist/model/TransactionTransferToAddressDestination.js +1 -1
- package/dist/model/TransactionTransferToWalletDestination.js +1 -1
- package/dist/model/TransactionUserApprovalDetail.js +162 -0
- package/dist/model/TransactionWebhookEventData.js +22 -7
- package/dist/model/TransferDestination.js +6 -0
- package/dist/model/TransferParams.js +38 -2
- package/dist/model/TravelRuleDepositExchangesOrVASP.js +168 -0
- package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +222 -0
- package/dist/model/TravelRuleDepositLegalEntity.js +171 -0
- package/dist/model/TravelRuleDepositNaturalEntity.js +186 -0
- package/dist/model/TravelRuleDepositRequest.js +128 -0
- package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +222 -0
- package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +155 -0
- package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +222 -0
- package/dist/model/TravelRuleWithdrawLegalEntity.js +144 -0
- package/dist/model/TravelRuleWithdrawNaturalEntity.js +159 -0
- package/dist/model/TravelRuleWithdrawRequest.js +128 -0
- package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +216 -0
- package/dist/model/TriggerTestWebhookEventRequest.js +1 -1
- package/dist/model/UpdateWebhookEndpointByIdRequest.js +1 -1
- package/dist/model/Vasp.js +141 -0
- package/dist/model/WalletInfoEventData.js +175 -0
- package/dist/model/WebhookEventData.js +135 -14
- package/dist/model/WebhookEventDataType.js +17 -2
- package/dist/model/WebhookEventType.js +23 -8
- package/docs/Activity.md +2 -0
- package/docs/ActivityAction.md +12 -0
- package/docs/ActivityExtra.md +20 -0
- package/docs/AddressBalance.md +10 -0
- package/docs/AddressBooksApi.md +4 -4
- package/docs/AddressInfo.md +2 -1
- package/docs/AddressTransferDestination.md +14 -0
- package/docs/AddressesEventData.md +29 -0
- package/docs/ApiLogDetails.md +1 -1
- package/docs/ApprovalStatementStatus.md +20 -0
- package/docs/AssetBalance.md +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +10 -0
- package/docs/BabylonStakeExtra.md +1 -1
- package/docs/BabylonStakingActivityDetailExtra.md +14 -0
- package/docs/{TokenBalanceBalance.md → Balance.md} +5 -5
- package/docs/BroadcastSignedTransactionsRequest.md +1 -1
- package/docs/CallbackMessage.md +46 -0
- package/docs/ChainInfo.md +1 -1
- package/docs/ChangeGuardPubkey200Response.md +9 -0
- package/docs/ContractCallParams.md +15 -1
- package/docs/CoreStakingActivityDetailExtra.md +13 -0
- package/docs/CreateAddressRequest.md +4 -2
- package/docs/CreateClaimActivity.md +1 -1
- package/docs/CreateClaimActivityRequest.md +1 -1
- package/docs/CreateKeyShareHolder.md +1 -1
- package/docs/CreateMpcVaultRequest.md +1 -1
- package/docs/CreateMpcWalletParams.md +1 -1
- package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
- package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
- package/docs/CreateStakeActivity.md +1 -1
- package/docs/CreateStakeActivityExtra.md +1 -1
- package/docs/CreateStakeActivityRequest.md +1 -1
- package/docs/CreateWalletParams.md +1 -1
- package/docs/CreateWebhookEndpointRequest.md +1 -1
- package/docs/DeleteGuardPubkey201Response.md +9 -0
- package/docs/DestinationWalletType.md +12 -0
- package/docs/DevelopersApi.md +119 -1
- package/docs/DevelopersWebhooksApi.md +23 -23
- package/docs/ErrorResponse.md +1 -1
- package/docs/EstimateClaimFee.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +2 -2
- package/docs/EstimateStakeFee.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/EthStakeEstimatedFee.md +1 -0
- package/docs/EthStakingActivityDetailExtra.md +11 -0
- package/docs/ExtendedTokenInfo.md +1 -1
- package/docs/GetStakingEstimationFee201Response.md +1 -0
- package/docs/GetStakingEstimationFeeRequest.md +2 -2
- package/docs/GetTransactionLimitation200Response.md +12 -0
- package/docs/GuardPubkeyStatus.md +24 -0
- package/docs/ListAddressBalancesByToken200Response.md +10 -0
- package/docs/ListCallbackMessages200Response.md +10 -0
- package/docs/ListKeyShareHolders200Response.md +10 -0
- package/docs/ListSupportedCountries200ResponseInner.md +11 -0
- package/docs/LockUtxosRequestUtxosInner.md +1 -1
- package/docs/MPCVaultEventData.md +34 -0
- package/docs/MaxTransferableValue.md +1 -1
- package/docs/MessageSignDestination.md +1 -0
- package/docs/MessageSignDestinationType.md +6 -2
- package/docs/MessageSignParams.md +1 -1
- package/docs/OAuthApi.md +1 -1
- package/docs/OrgInfo.md +11 -0
- package/docs/Pagination.md +2 -2
- package/docs/PrimeBrokerApi.md +318 -0
- package/docs/QueryApprovalStatement200Response.md +12 -0
- package/docs/QueryGuardPubkey200Response.md +11 -0
- package/docs/QueryGuardPubkey200ResponseAddressesInner.md +10 -0
- package/docs/RetryCallbackMessage201Response.md +9 -0
- package/docs/RootPubkey.md +1 -1
- package/docs/SelectedEntityType.md +12 -0
- package/docs/SelfCustodyWallet.md +12 -0
- package/docs/SourceGroup.md +1 -1
- package/docs/StakingPoolId.md +2 -0
- package/docs/StakingPoolType.md +2 -0
- package/docs/StakingsApi.md +30 -28
- package/docs/SubWalletAssetBalance.md +1 -1
- package/docs/SubmitDepositTravelRuleInfo201Response.md +9 -0
- package/docs/SwapActivity.md +20 -0
- package/docs/SwapSummary.md +10 -0
- package/docs/SwapTokenPair.md +10 -0
- package/docs/TSSGroups.md +1 -1
- package/docs/TSSRequestWebhookEventData.md +7 -1
- package/docs/TokenBalance.md +2 -2
- package/docs/TokenInfo.md +1 -1
- package/docs/Transaction.md +2 -2
- package/docs/TransactionApprovalDetail.md +11 -0
- package/docs/TransactionApprovalResult.md +14 -0
- package/docs/TransactionDepositToAddressDestination.md +1 -0
- package/docs/TransactionDepositToAddressDestinationTxInfo.md +9 -0
- package/docs/TransactionDestination.md +1 -0
- package/docs/TransactionDetail.md +2 -2
- package/docs/TransactionDetails.md +2 -2
- package/docs/TransactionRawTxInfo.md +2 -1
- package/docs/TransactionRoleApprovalDetail.md +13 -0
- package/docs/TransactionSelectedUtxo.md +12 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionTokeApproval.md +1 -1
- package/docs/TransactionTokenAmount.md +1 -1
- package/docs/TransactionUserApprovalDetail.md +15 -0
- package/docs/TransactionWebhookEventData.md +9 -3
- package/docs/TransactionsApi.md +129 -27
- package/docs/TransferDestination.md +14 -0
- package/docs/TransferParams.md +15 -1
- package/docs/TravelRuleApi.md +214 -0
- package/docs/TravelRuleDepositExchangesOrVASP.md +13 -0
- package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +29 -0
- package/docs/TravelRuleDepositLegalEntity.md +25 -0
- package/docs/TravelRuleDepositNaturalEntity.md +26 -0
- package/docs/TravelRuleDepositRequest.md +10 -0
- package/docs/TravelRuleDepositRequestTravelRuleInfo.md +16 -0
- package/docs/TravelRuleWithdrawExchangesOrVASP.md +12 -0
- package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +16 -0
- package/docs/TravelRuleWithdrawLegalEntity.md +12 -0
- package/docs/TravelRuleWithdrawNaturalEntity.md +13 -0
- package/docs/TravelRuleWithdrawRequest.md +10 -0
- package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +15 -0
- package/docs/TriggerTestWebhookEventRequest.md +1 -1
- package/docs/UpdateWebhookEndpointByIdRequest.md +1 -1
- package/docs/Vasp.md +11 -0
- package/docs/WalletInfoEventData.md +29 -0
- package/docs/WalletsApi.md +112 -47
- package/docs/WalletsExchangeWalletApi.md +7 -7
- package/docs/WalletsMPCWalletsApi.md +160 -46
- package/docs/WalletsSmartContractWalletsApi.md +1 -1
- package/docs/WebhookEventData.md +17 -5
- package/docs/WebhookEventDataType.md +7 -1
- package/docs/WebhookEventType.md +14 -8
- package/package.json +2 -2
|
@@ -15,6 +15,7 @@ var _KeyShareHolder = _interopRequireDefault(require("../model/KeyShareHolder"))
|
|
|
15
15
|
var _KeyShareHolderGroup = _interopRequireDefault(require("../model/KeyShareHolderGroup"));
|
|
16
16
|
var _KeyShareHolderGroupType = _interopRequireDefault(require("../model/KeyShareHolderGroupType"));
|
|
17
17
|
var _ListKeyShareHolderGroups200Response = _interopRequireDefault(require("../model/ListKeyShareHolderGroups200Response"));
|
|
18
|
+
var _ListKeyShareHolders200Response = _interopRequireDefault(require("../model/ListKeyShareHolders200Response"));
|
|
18
19
|
var _ListMpcProjects200Response = _interopRequireDefault(require("../model/ListMpcProjects200Response"));
|
|
19
20
|
var _ListMpcVaults200Response = _interopRequireDefault(require("../model/ListMpcVaults200Response"));
|
|
20
21
|
var _ListTssRequests200Response = _interopRequireDefault(require("../model/ListTssRequests200Response"));
|
|
@@ -61,8 +62,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
61
62
|
/**
|
|
62
63
|
* Cancel TSS request
|
|
63
64
|
* This operation cancels a TSS request.
|
|
64
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
65
|
-
* @param {String} tss_request_id The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests).
|
|
65
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
66
|
+
* @param {String} tss_request_id The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests).
|
|
66
67
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TSSRequest} and HTTP response
|
|
67
68
|
*/
|
|
68
69
|
return _createClass(WalletsMPCWalletsApi, [{
|
|
@@ -87,7 +88,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
87
88
|
var queryParams = {};
|
|
88
89
|
var headerParams = {};
|
|
89
90
|
var formParams = {};
|
|
90
|
-
var authNames = ['OAuth2'
|
|
91
|
+
var authNames = ['OAuth2'];
|
|
91
92
|
var contentTypes = [];
|
|
92
93
|
var accepts = ['application/json'];
|
|
93
94
|
var returnType = _TSSRequest["default"];
|
|
@@ -97,8 +98,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
97
98
|
/**
|
|
98
99
|
* Cancel TSS request
|
|
99
100
|
* This operation cancels a TSS request.
|
|
100
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
101
|
-
* @param {String} tss_request_id The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests).
|
|
101
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
102
|
+
* @param {String} tss_request_id The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests).
|
|
102
103
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TSSRequest}
|
|
103
104
|
*/
|
|
104
105
|
}, {
|
|
@@ -111,8 +112,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
112
|
|
|
112
113
|
/**
|
|
113
114
|
* Create key share holder group
|
|
114
|
-
* This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
115
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
115
|
+
* This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](https://www.cobo.com/developers/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
116
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
116
117
|
* @param {Object} opts Optional parameters
|
|
117
118
|
* @param {module:model/CreateKeyShareHolderGroupRequest} [CreateKeyShareHolderGroupRequest] The request body to create a key share holder group.
|
|
118
119
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KeyShareHolderGroup} and HTTP response
|
|
@@ -135,7 +136,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
135
136
|
var queryParams = {};
|
|
136
137
|
var headerParams = {};
|
|
137
138
|
var formParams = {};
|
|
138
|
-
var authNames = ['OAuth2'
|
|
139
|
+
var authNames = ['OAuth2'];
|
|
139
140
|
var contentTypes = ['application/json'];
|
|
140
141
|
var accepts = ['application/json'];
|
|
141
142
|
var returnType = _KeyShareHolderGroup["default"];
|
|
@@ -144,8 +145,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
144
145
|
|
|
145
146
|
/**
|
|
146
147
|
* Create key share holder group
|
|
147
|
-
* This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
148
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
148
|
+
* This operation creates a key share holder group for a specified vault. <Note>This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](https://www.cobo.com/developers/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.</Note>
|
|
149
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
149
150
|
* @param {Object} opts Optional parameters
|
|
150
151
|
* @param {module:model/CreateKeyShareHolderGroupRequest} opts.CreateKeyShareHolderGroupRequest The request body to create a key share holder group.
|
|
151
152
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KeyShareHolderGroup}
|
|
@@ -177,7 +178,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
177
178
|
var queryParams = {};
|
|
178
179
|
var headerParams = {};
|
|
179
180
|
var formParams = {};
|
|
180
|
-
var authNames = ['OAuth2'
|
|
181
|
+
var authNames = ['OAuth2'];
|
|
181
182
|
var contentTypes = ['application/json'];
|
|
182
183
|
var accepts = ['application/json'];
|
|
183
184
|
var returnType = _MPCProject["default"];
|
|
@@ -201,7 +202,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
201
202
|
|
|
202
203
|
/**
|
|
203
204
|
* Create vault
|
|
204
|
-
* This operation creates a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
205
|
+
* This operation creates a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
205
206
|
* @param {Object} opts Optional parameters
|
|
206
207
|
* @param {module:model/CreateMpcVaultRequest} [CreateMpcVaultRequest] The request body to create a vault.
|
|
207
208
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCVault} and HTTP response
|
|
@@ -218,7 +219,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
218
219
|
var queryParams = {};
|
|
219
220
|
var headerParams = {};
|
|
220
221
|
var formParams = {};
|
|
221
|
-
var authNames = ['OAuth2'
|
|
222
|
+
var authNames = ['OAuth2'];
|
|
222
223
|
var contentTypes = ['application/json'];
|
|
223
224
|
var accepts = ['application/json'];
|
|
224
225
|
var returnType = _MPCVault["default"];
|
|
@@ -227,7 +228,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
227
228
|
|
|
228
229
|
/**
|
|
229
230
|
* Create vault
|
|
230
|
-
* This operation creates a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
231
|
+
* This operation creates a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
231
232
|
* @param {Object} opts Optional parameters
|
|
232
233
|
* @param {module:model/CreateMpcVaultRequest} opts.CreateMpcVaultRequest The request body to create a vault.
|
|
233
234
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCVault}
|
|
@@ -243,7 +244,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
243
244
|
/**
|
|
244
245
|
* Create TSS request
|
|
245
246
|
* This operation creates a TSS request under a specified vault. You can use this operation to perform actions such as key generation and recovery.
|
|
246
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
247
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
247
248
|
* @param {Object} opts Optional parameters
|
|
248
249
|
* @param {module:model/CreateTssRequestRequest} [CreateTssRequestRequest] The request body to create a TSS request.
|
|
249
250
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TSSRequest} and HTTP response
|
|
@@ -266,7 +267,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
266
267
|
var queryParams = {};
|
|
267
268
|
var headerParams = {};
|
|
268
269
|
var formParams = {};
|
|
269
|
-
var authNames = ['OAuth2'
|
|
270
|
+
var authNames = ['OAuth2'];
|
|
270
271
|
var contentTypes = ['application/json'];
|
|
271
272
|
var accepts = ['application/json'];
|
|
272
273
|
var returnType = _TSSRequest["default"];
|
|
@@ -276,7 +277,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
276
277
|
/**
|
|
277
278
|
* Create TSS request
|
|
278
279
|
* This operation creates a TSS request under a specified vault. You can use this operation to perform actions such as key generation and recovery.
|
|
279
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
280
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
280
281
|
* @param {Object} opts Optional parameters
|
|
281
282
|
* @param {module:model/CreateTssRequestRequest} opts.CreateTssRequestRequest The request body to create a TSS request.
|
|
282
283
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TSSRequest}
|
|
@@ -292,7 +293,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
292
293
|
/**
|
|
293
294
|
* Delete key share holder group
|
|
294
295
|
* This operation deletes a specified key share holder group.
|
|
295
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
296
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
296
297
|
* @param {String} key_share_holder_group_id The key share holder group ID.
|
|
297
298
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteKeyShareHolderGroupById201Response} and HTTP response
|
|
298
299
|
*/
|
|
@@ -318,7 +319,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
318
319
|
var queryParams = {};
|
|
319
320
|
var headerParams = {};
|
|
320
321
|
var formParams = {};
|
|
321
|
-
var authNames = ['OAuth2'
|
|
322
|
+
var authNames = ['OAuth2'];
|
|
322
323
|
var contentTypes = [];
|
|
323
324
|
var accepts = ['application/json'];
|
|
324
325
|
var returnType = _DeleteKeyShareHolderGroupById201Response["default"];
|
|
@@ -328,7 +329,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
328
329
|
/**
|
|
329
330
|
* Delete key share holder group
|
|
330
331
|
* This operation deletes a specified key share holder group.
|
|
331
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
332
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
332
333
|
* @param {String} key_share_holder_group_id The key share holder group ID.
|
|
333
334
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteKeyShareHolderGroupById201Response}
|
|
334
335
|
*/
|
|
@@ -340,10 +341,61 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
340
341
|
});
|
|
341
342
|
}
|
|
342
343
|
|
|
344
|
+
/**
|
|
345
|
+
* Get key share holder information
|
|
346
|
+
* This operation retrieves detailed information about a specified key share holder.
|
|
347
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
348
|
+
* @param {String} tss_node_id The TSS Node ID.
|
|
349
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KeyShareHolder} and HTTP response
|
|
350
|
+
*/
|
|
351
|
+
}, {
|
|
352
|
+
key: "getKeyShareHolderByTssNodeIdWithHttpInfo",
|
|
353
|
+
value: function getKeyShareHolderByTssNodeIdWithHttpInfo(vault_id, tss_node_id) {
|
|
354
|
+
var postBody = null;
|
|
355
|
+
if (postBody && postBody.toJSON) {
|
|
356
|
+
postBody = postBody.toJSON();
|
|
357
|
+
}
|
|
358
|
+
// verify the required parameter 'vault_id' is set
|
|
359
|
+
if (vault_id === undefined || vault_id === null) {
|
|
360
|
+
throw new Error("Missing the required parameter 'vault_id' when calling getKeyShareHolderByTssNodeId");
|
|
361
|
+
}
|
|
362
|
+
// verify the required parameter 'tss_node_id' is set
|
|
363
|
+
if (tss_node_id === undefined || tss_node_id === null) {
|
|
364
|
+
throw new Error("Missing the required parameter 'tss_node_id' when calling getKeyShareHolderByTssNodeId");
|
|
365
|
+
}
|
|
366
|
+
var pathParams = {
|
|
367
|
+
'vault_id': vault_id,
|
|
368
|
+
'tss_node_id': tss_node_id
|
|
369
|
+
};
|
|
370
|
+
var queryParams = {};
|
|
371
|
+
var headerParams = {};
|
|
372
|
+
var formParams = {};
|
|
373
|
+
var authNames = ['CoboAuth'];
|
|
374
|
+
var contentTypes = [];
|
|
375
|
+
var accepts = ['application/json'];
|
|
376
|
+
var returnType = _KeyShareHolder["default"];
|
|
377
|
+
return this.apiClient.callApi('/wallets/mpc/vaults/{vault_id}/key_share_holders/{tss_node_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Get key share holder information
|
|
382
|
+
* This operation retrieves detailed information about a specified key share holder.
|
|
383
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
384
|
+
* @param {String} tss_node_id The TSS Node ID.
|
|
385
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KeyShareHolder}
|
|
386
|
+
*/
|
|
387
|
+
}, {
|
|
388
|
+
key: "getKeyShareHolderByTssNodeId",
|
|
389
|
+
value: function getKeyShareHolderByTssNodeId(vault_id, tss_node_id) {
|
|
390
|
+
return this.getKeyShareHolderByTssNodeIdWithHttpInfo(vault_id, tss_node_id).then(function (response_and_data) {
|
|
391
|
+
return response_and_data.data;
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
|
|
343
395
|
/**
|
|
344
396
|
* Get key share holder group information
|
|
345
397
|
* This operation retrieves detailed information about a specified key share holder group.
|
|
346
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
398
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
347
399
|
* @param {String} key_share_holder_group_id The key share holder group ID.
|
|
348
400
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KeyShareHolderGroup} and HTTP response
|
|
349
401
|
*/
|
|
@@ -369,7 +421,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
369
421
|
var queryParams = {};
|
|
370
422
|
var headerParams = {};
|
|
371
423
|
var formParams = {};
|
|
372
|
-
var authNames = ['
|
|
424
|
+
var authNames = ['OAuth2'];
|
|
373
425
|
var contentTypes = [];
|
|
374
426
|
var accepts = ['application/json'];
|
|
375
427
|
var returnType = _KeyShareHolderGroup["default"];
|
|
@@ -379,7 +431,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
379
431
|
/**
|
|
380
432
|
* Get key share holder group information
|
|
381
433
|
* This operation retrieves detailed information about a specified key share holder group.
|
|
382
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
434
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
383
435
|
* @param {String} key_share_holder_group_id The key share holder group ID.
|
|
384
436
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KeyShareHolderGroup}
|
|
385
437
|
*/
|
|
@@ -394,7 +446,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
394
446
|
/**
|
|
395
447
|
* Get project information
|
|
396
448
|
* This operation retrieves detailed information about a project. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
397
|
-
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
449
|
+
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
398
450
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCProject} and HTTP response
|
|
399
451
|
*/
|
|
400
452
|
}, {
|
|
@@ -414,7 +466,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
414
466
|
var queryParams = {};
|
|
415
467
|
var headerParams = {};
|
|
416
468
|
var formParams = {};
|
|
417
|
-
var authNames = ['
|
|
469
|
+
var authNames = ['OAuth2'];
|
|
418
470
|
var contentTypes = [];
|
|
419
471
|
var accepts = ['application/json'];
|
|
420
472
|
var returnType = _MPCProject["default"];
|
|
@@ -424,7 +476,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
424
476
|
/**
|
|
425
477
|
* Get project information
|
|
426
478
|
* This operation retrieves detailed information about a project. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
427
|
-
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
479
|
+
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
428
480
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCProject}
|
|
429
481
|
*/
|
|
430
482
|
}, {
|
|
@@ -437,8 +489,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
437
489
|
|
|
438
490
|
/**
|
|
439
491
|
* Get vault information
|
|
440
|
-
* This operation retrieves detailed information about a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
441
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
492
|
+
* This operation retrieves detailed information about a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
493
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
442
494
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCVault} and HTTP response
|
|
443
495
|
*/
|
|
444
496
|
}, {
|
|
@@ -458,7 +510,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
458
510
|
var queryParams = {};
|
|
459
511
|
var headerParams = {};
|
|
460
512
|
var formParams = {};
|
|
461
|
-
var authNames = ['
|
|
513
|
+
var authNames = ['OAuth2'];
|
|
462
514
|
var contentTypes = [];
|
|
463
515
|
var accepts = ['application/json'];
|
|
464
516
|
var returnType = _MPCVault["default"];
|
|
@@ -467,8 +519,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
467
519
|
|
|
468
520
|
/**
|
|
469
521
|
* Get vault information
|
|
470
|
-
* This operation retrieves detailed information about a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
471
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
522
|
+
* This operation retrieves detailed information about a vault. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
523
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
472
524
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCVault}
|
|
473
525
|
*/
|
|
474
526
|
}, {
|
|
@@ -482,8 +534,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
482
534
|
/**
|
|
483
535
|
* Get TSS request
|
|
484
536
|
* This operation retrieves detailed information about a TSS request.
|
|
485
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
486
|
-
* @param {String} tss_request_id The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests).
|
|
537
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
538
|
+
* @param {String} tss_request_id The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests).
|
|
487
539
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TSSRequest} and HTTP response
|
|
488
540
|
*/
|
|
489
541
|
}, {
|
|
@@ -508,7 +560,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
508
560
|
var queryParams = {};
|
|
509
561
|
var headerParams = {};
|
|
510
562
|
var formParams = {};
|
|
511
|
-
var authNames = ['OAuth2'
|
|
563
|
+
var authNames = ['OAuth2'];
|
|
512
564
|
var contentTypes = [];
|
|
513
565
|
var accepts = ['application/json'];
|
|
514
566
|
var returnType = _TSSRequest["default"];
|
|
@@ -518,8 +570,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
518
570
|
/**
|
|
519
571
|
* Get TSS request
|
|
520
572
|
* This operation retrieves detailed information about a TSS request.
|
|
521
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
522
|
-
* @param {String} tss_request_id The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests).
|
|
573
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
574
|
+
* @param {String} tss_request_id The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests).
|
|
523
575
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TSSRequest}
|
|
524
576
|
*/
|
|
525
577
|
}, {
|
|
@@ -569,12 +621,12 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
569
621
|
/**
|
|
570
622
|
* List all key share holder groups
|
|
571
623
|
* This operation retrieves all key share holder groups under a specified vault. You can filter the result by group type.
|
|
572
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
624
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
573
625
|
* @param {Object} opts Optional parameters
|
|
574
626
|
* @param {module:model/KeyShareHolderGroupType} [key_share_holder_group_type] The key share holder group type. Possible values include: - `MainGroup`: The [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#main-group). - `SigningGroup`: The [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#signing-group). - `RecoveryGroup`: The [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#recovery-group). **Note**: If this parameter is left empty, all key share holder group types will be retrieved.
|
|
575
627
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
576
|
-
* @param {String} [before]
|
|
577
|
-
* @param {String} [after]
|
|
628
|
+
* @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
629
|
+
* @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
578
630
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListKeyShareHolderGroups200Response} and HTTP response
|
|
579
631
|
*/
|
|
580
632
|
}, {
|
|
@@ -600,7 +652,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
600
652
|
};
|
|
601
653
|
var headerParams = {};
|
|
602
654
|
var formParams = {};
|
|
603
|
-
var authNames = ['
|
|
655
|
+
var authNames = ['OAuth2'];
|
|
604
656
|
var contentTypes = [];
|
|
605
657
|
var accepts = ['application/json'];
|
|
606
658
|
var returnType = _ListKeyShareHolderGroups200Response["default"];
|
|
@@ -610,12 +662,12 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
610
662
|
/**
|
|
611
663
|
* List all key share holder groups
|
|
612
664
|
* This operation retrieves all key share holder groups under a specified vault. You can filter the result by group type.
|
|
613
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
665
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
614
666
|
* @param {Object} opts Optional parameters
|
|
615
667
|
* @param {module:model/KeyShareHolderGroupType} opts.key_share_holder_group_type The key share holder group type. Possible values include: - `MainGroup`: The [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#main-group). - `SigningGroup`: The [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#signing-group). - `RecoveryGroup`: The [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#recovery-group). **Note**: If this parameter is left empty, all key share holder group types will be retrieved.
|
|
616
668
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
617
|
-
* @param {String} opts.before
|
|
618
|
-
* @param {String} opts.after
|
|
669
|
+
* @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
670
|
+
* @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
619
671
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListKeyShareHolderGroups200Response}
|
|
620
672
|
*/
|
|
621
673
|
}, {
|
|
@@ -626,13 +678,73 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
626
678
|
});
|
|
627
679
|
}
|
|
628
680
|
|
|
681
|
+
/**
|
|
682
|
+
* List all key share holders
|
|
683
|
+
* This operation retrieves a list of all key share holders under a specified vault. You can filter the result by key share holder group ID.
|
|
684
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
685
|
+
* @param {Object} opts Optional parameters
|
|
686
|
+
* @param {String} [key_share_holder_group_ids] A list of key share holder group IDs, separated by comma. You can retrieve the IDs of all the key share holder groups by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
|
|
687
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
688
|
+
* @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
689
|
+
* @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
690
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListKeyShareHolders200Response} and HTTP response
|
|
691
|
+
*/
|
|
692
|
+
}, {
|
|
693
|
+
key: "listKeyShareHoldersWithHttpInfo",
|
|
694
|
+
value: function listKeyShareHoldersWithHttpInfo(vault_id, opts) {
|
|
695
|
+
opts = opts || {};
|
|
696
|
+
var postBody = null;
|
|
697
|
+
if (postBody && postBody.toJSON) {
|
|
698
|
+
postBody = postBody.toJSON();
|
|
699
|
+
}
|
|
700
|
+
// verify the required parameter 'vault_id' is set
|
|
701
|
+
if (vault_id === undefined || vault_id === null) {
|
|
702
|
+
throw new Error("Missing the required parameter 'vault_id' when calling listKeyShareHolders");
|
|
703
|
+
}
|
|
704
|
+
var pathParams = {
|
|
705
|
+
'vault_id': vault_id
|
|
706
|
+
};
|
|
707
|
+
var queryParams = {
|
|
708
|
+
'key_share_holder_group_ids': opts['key_share_holder_group_ids'],
|
|
709
|
+
'limit': opts['limit'],
|
|
710
|
+
'before': opts['before'],
|
|
711
|
+
'after': opts['after']
|
|
712
|
+
};
|
|
713
|
+
var headerParams = {};
|
|
714
|
+
var formParams = {};
|
|
715
|
+
var authNames = ['CoboAuth'];
|
|
716
|
+
var contentTypes = [];
|
|
717
|
+
var accepts = ['application/json'];
|
|
718
|
+
var returnType = _ListKeyShareHolders200Response["default"];
|
|
719
|
+
return this.apiClient.callApi('/wallets/mpc/vaults/{vault_id}/key_share_holders', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* List all key share holders
|
|
724
|
+
* This operation retrieves a list of all key share holders under a specified vault. You can filter the result by key share holder group ID.
|
|
725
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
726
|
+
* @param {Object} opts Optional parameters
|
|
727
|
+
* @param {String} opts.key_share_holder_group_ids A list of key share holder group IDs, separated by comma. You can retrieve the IDs of all the key share holder groups by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
|
|
728
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
729
|
+
* @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
730
|
+
* @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
731
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListKeyShareHolders200Response}
|
|
732
|
+
*/
|
|
733
|
+
}, {
|
|
734
|
+
key: "listKeyShareHolders",
|
|
735
|
+
value: function listKeyShareHolders(vault_id, opts) {
|
|
736
|
+
return this.listKeyShareHoldersWithHttpInfo(vault_id, opts).then(function (response_and_data) {
|
|
737
|
+
return response_and_data.data;
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
|
|
629
741
|
/**
|
|
630
742
|
* List all projects
|
|
631
743
|
* This operation retrieves a list of all projects. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
632
744
|
* @param {Object} opts Optional parameters
|
|
633
745
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
634
|
-
* @param {String} [before]
|
|
635
|
-
* @param {String} [after]
|
|
746
|
+
* @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
747
|
+
* @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
636
748
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMpcProjects200Response} and HTTP response
|
|
637
749
|
*/
|
|
638
750
|
}, {
|
|
@@ -651,7 +763,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
651
763
|
};
|
|
652
764
|
var headerParams = {};
|
|
653
765
|
var formParams = {};
|
|
654
|
-
var authNames = ['
|
|
766
|
+
var authNames = ['OAuth2'];
|
|
655
767
|
var contentTypes = [];
|
|
656
768
|
var accepts = ['application/json'];
|
|
657
769
|
var returnType = _ListMpcProjects200Response["default"];
|
|
@@ -663,8 +775,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
663
775
|
* This operation retrieves a list of all projects. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
664
776
|
* @param {Object} opts Optional parameters
|
|
665
777
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
666
|
-
* @param {String} opts.before
|
|
667
|
-
* @param {String} opts.after
|
|
778
|
+
* @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
779
|
+
* @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
668
780
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMpcProjects200Response}
|
|
669
781
|
*/
|
|
670
782
|
}, {
|
|
@@ -677,13 +789,13 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
677
789
|
|
|
678
790
|
/**
|
|
679
791
|
* List all vaults
|
|
680
|
-
* This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
792
|
+
* This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
681
793
|
* @param {module:model/MPCVaultType} vault_type The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets).
|
|
682
794
|
* @param {Object} opts Optional parameters
|
|
683
|
-
* @param {String} [project_id] The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
795
|
+
* @param {String} [project_id] The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
684
796
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
685
|
-
* @param {String} [before]
|
|
686
|
-
* @param {String} [after]
|
|
797
|
+
* @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
798
|
+
* @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
687
799
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMpcVaults200Response} and HTTP response
|
|
688
800
|
*/
|
|
689
801
|
}, {
|
|
@@ -708,7 +820,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
708
820
|
};
|
|
709
821
|
var headerParams = {};
|
|
710
822
|
var formParams = {};
|
|
711
|
-
var authNames = ['
|
|
823
|
+
var authNames = ['OAuth2'];
|
|
712
824
|
var contentTypes = [];
|
|
713
825
|
var accepts = ['application/json'];
|
|
714
826
|
var returnType = _ListMpcVaults200Response["default"];
|
|
@@ -717,13 +829,13 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
717
829
|
|
|
718
830
|
/**
|
|
719
831
|
* List all vaults
|
|
720
|
-
* This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
832
|
+
* This operation retrieves a list of all vaults. You can filter the result by project ID. **Notes for query parameters**: 1. `project_id` is required when `vault_type` is set to `User-Controlled`. 2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
721
833
|
* @param {module:model/MPCVaultType} vault_type The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets).
|
|
722
834
|
* @param {Object} opts Optional parameters
|
|
723
|
-
* @param {String} opts.project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
835
|
+
* @param {String} opts.project_id The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
724
836
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
725
|
-
* @param {String} opts.before
|
|
726
|
-
* @param {String} opts.after
|
|
837
|
+
* @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
838
|
+
* @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
727
839
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMpcVaults200Response}
|
|
728
840
|
*/
|
|
729
841
|
}, {
|
|
@@ -737,12 +849,12 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
737
849
|
/**
|
|
738
850
|
* List TSS requests
|
|
739
851
|
* This operation retrieves a list of TSS requests and their details.
|
|
740
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
741
|
-
* @param {String} key_share_holder_group_id The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
|
|
852
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
853
|
+
* @param {String} key_share_holder_group_id The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
|
|
742
854
|
* @param {Object} opts Optional parameters
|
|
743
855
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
744
|
-
* @param {String} [before]
|
|
745
|
-
* @param {String} [after]
|
|
856
|
+
* @param {String} [before] This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
857
|
+
* @param {String} [after] This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
746
858
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTssRequests200Response} and HTTP response
|
|
747
859
|
*/
|
|
748
860
|
}, {
|
|
@@ -772,7 +884,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
772
884
|
};
|
|
773
885
|
var headerParams = {};
|
|
774
886
|
var formParams = {};
|
|
775
|
-
var authNames = ['
|
|
887
|
+
var authNames = ['OAuth2'];
|
|
776
888
|
var contentTypes = [];
|
|
777
889
|
var accepts = ['application/json'];
|
|
778
890
|
var returnType = _ListTssRequests200Response["default"];
|
|
@@ -782,12 +894,12 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
782
894
|
/**
|
|
783
895
|
* List TSS requests
|
|
784
896
|
* This operation retrieves a list of TSS requests and their details.
|
|
785
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
786
|
-
* @param {String} key_share_holder_group_id The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
|
|
897
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
898
|
+
* @param {String} key_share_holder_group_id The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
|
|
787
899
|
* @param {Object} opts Optional parameters
|
|
788
900
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
789
|
-
* @param {String} opts.before
|
|
790
|
-
* @param {String} opts.after
|
|
901
|
+
* @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
|
|
902
|
+
* @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
|
|
791
903
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTssRequests200Response}
|
|
792
904
|
*/
|
|
793
905
|
}, {
|
|
@@ -801,7 +913,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
801
913
|
/**
|
|
802
914
|
* Update key share holder group
|
|
803
915
|
* This operation updates a specified active [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups). For example, you can use this operation to upgrade a Signing Group to the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups).
|
|
804
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
916
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
805
917
|
* @param {String} key_share_holder_group_id The key share holder group ID.
|
|
806
918
|
* @param {Object} opts Optional parameters
|
|
807
919
|
* @param {module:model/UpdateKeyShareHolderGroupByIdRequest} [UpdateKeyShareHolderGroupByIdRequest]
|
|
@@ -830,7 +942,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
830
942
|
var queryParams = {};
|
|
831
943
|
var headerParams = {};
|
|
832
944
|
var formParams = {};
|
|
833
|
-
var authNames = ['OAuth2'
|
|
945
|
+
var authNames = ['OAuth2'];
|
|
834
946
|
var contentTypes = ['application/json'];
|
|
835
947
|
var accepts = ['application/json'];
|
|
836
948
|
var returnType = _KeyShareHolderGroup["default"];
|
|
@@ -840,7 +952,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
840
952
|
/**
|
|
841
953
|
* Update key share holder group
|
|
842
954
|
* This operation updates a specified active [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups). For example, you can use this operation to upgrade a Signing Group to the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups).
|
|
843
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
955
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
844
956
|
* @param {String} key_share_holder_group_id The key share holder group ID.
|
|
845
957
|
* @param {Object} opts Optional parameters
|
|
846
958
|
* @param {module:model/UpdateKeyShareHolderGroupByIdRequest} opts.UpdateKeyShareHolderGroupByIdRequest
|
|
@@ -857,7 +969,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
857
969
|
/**
|
|
858
970
|
* Update project name
|
|
859
971
|
* This operation updates a project's name. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
860
|
-
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
972
|
+
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
861
973
|
* @param {Object} opts Optional parameters
|
|
862
974
|
* @param {module:model/UpdateMpcProjectByIdRequest} [UpdateMpcProjectByIdRequest] The request body to update a project's name.
|
|
863
975
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCProject} and HTTP response
|
|
@@ -880,7 +992,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
880
992
|
var queryParams = {};
|
|
881
993
|
var headerParams = {};
|
|
882
994
|
var formParams = {};
|
|
883
|
-
var authNames = ['OAuth2'
|
|
995
|
+
var authNames = ['OAuth2'];
|
|
884
996
|
var contentTypes = ['application/json'];
|
|
885
997
|
var accepts = ['application/json'];
|
|
886
998
|
var returnType = _MPCProject["default"];
|
|
@@ -890,7 +1002,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
890
1002
|
/**
|
|
891
1003
|
* Update project name
|
|
892
1004
|
* This operation updates a project's name. <Note>This operation applies to MPC Wallets (User-Controlled Wallets) only.</Note>
|
|
893
|
-
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
1005
|
+
* @param {String} project_id The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
894
1006
|
* @param {Object} opts Optional parameters
|
|
895
1007
|
* @param {module:model/UpdateMpcProjectByIdRequest} opts.UpdateMpcProjectByIdRequest The request body to update a project's name.
|
|
896
1008
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCProject}
|
|
@@ -905,8 +1017,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
905
1017
|
|
|
906
1018
|
/**
|
|
907
1019
|
* Update vault name
|
|
908
|
-
* This operation updates a vault's name. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
909
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
1020
|
+
* This operation updates a vault's name. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
1021
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
910
1022
|
* @param {Object} opts Optional parameters
|
|
911
1023
|
* @param {module:model/UpdateMpcVaultByIdRequest} [UpdateMpcVaultByIdRequest] The request body to update a vault's name.
|
|
912
1024
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MPCVault} and HTTP response
|
|
@@ -929,7 +1041,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
929
1041
|
var queryParams = {};
|
|
930
1042
|
var headerParams = {};
|
|
931
1043
|
var formParams = {};
|
|
932
|
-
var authNames = ['OAuth2'
|
|
1044
|
+
var authNames = ['OAuth2'];
|
|
933
1045
|
var contentTypes = ['application/json'];
|
|
934
1046
|
var accepts = ['application/json'];
|
|
935
1047
|
var returnType = _MPCVault["default"];
|
|
@@ -938,8 +1050,8 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
938
1050
|
|
|
939
1051
|
/**
|
|
940
1052
|
* Update vault name
|
|
941
|
-
* This operation updates a vault's name. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
942
|
-
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-
|
|
1053
|
+
* This operation updates a vault's name. <Info>To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).</Info>
|
|
1054
|
+
* @param {String} vault_id The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
943
1055
|
* @param {Object} opts Optional parameters
|
|
944
1056
|
* @param {module:model/UpdateMpcVaultByIdRequest} opts.UpdateMpcVaultByIdRequest The request body to update a vault's name.
|
|
945
1057
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MPCVault}
|