@cobo/cobo-waas2 1.7.0 → 1.8.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 +48 -3
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +6 -6
- package/dist/api/DevelopersApi.js +110 -0
- package/dist/api/DevelopersWebhooksApi.js +30 -30
- package/dist/api/OAuthApi.js +2 -2
- package/dist/api/StakingsApi.js +33 -30
- package/dist/api/TransactionsApi.js +73 -28
- package/dist/api/TravelRuleApi.js +216 -0
- package/dist/api/WalletsApi.js +68 -68
- package/dist/api/WalletsExchangeWalletApi.js +12 -12
- package/dist/api/WalletsMPCWalletsApi.js +60 -60
- package/dist/index.js +273 -0
- package/dist/model/Activity.js +29 -0
- package/dist/model/ActivityAction.js +30 -0
- package/dist/model/ActivityExtra.js +274 -0
- package/dist/model/AddressInfo.js +15 -2
- package/dist/model/AddressTransferDestination.js +1 -1
- package/dist/model/AddressesEventData.js +190 -0
- package/dist/model/ApiLogDetails.js +2 -2
- package/dist/model/BabylonStakeExtra.js +1 -1
- package/dist/model/BabylonStakingActivityDetailExtra.js +165 -0
- 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/ContractCallParams.js +2 -2
- package/dist/model/CoreStakingActivityDetailExtra.js +164 -0
- package/dist/model/CreateAddressRequest.js +2 -2
- 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/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/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/ListCallbackMessages200Response.js +145 -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/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/RawMessageSignDestination.js +1 -1
- package/dist/model/RetryCallbackMessage201Response.js +83 -0
- 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/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/TSSRequestWebhookEventData.js +18 -3
- package/dist/model/TokenBalance.js +2 -2
- package/dist/model/TokenBalanceBalance.js +6 -6
- 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 +1 -1
- package/dist/model/TransactionDepositToWalletDestination.js +1 -1
- 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 +4 -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/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/TransferParams.js +2 -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/AddressBooksApi.md +3 -3
- package/docs/AddressInfo.md +2 -1
- package/docs/AddressesEventData.md +29 -0
- package/docs/ApiLogDetails.md +1 -1
- package/docs/BabylonStakeExtra.md +1 -1
- package/docs/BabylonStakingActivityDetailExtra.md +14 -0
- package/docs/BroadcastSignedTransactionsRequest.md +1 -1
- package/docs/CallbackMessage.md +46 -0
- package/docs/ChainInfo.md +1 -1
- package/docs/ContractCallParams.md +1 -1
- package/docs/CoreStakingActivityDetailExtra.md +13 -0
- package/docs/CreateAddressRequest.md +1 -1
- 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/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/DestinationWalletType.md +12 -0
- package/docs/DevelopersApi.md +118 -0
- package/docs/DevelopersWebhooksApi.md +15 -15
- 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/ListCallbackMessages200Response.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/MessageSignParams.md +1 -1
- package/docs/OAuthApi.md +1 -1
- package/docs/OrgInfo.md +11 -0
- package/docs/Pagination.md +2 -2
- package/docs/RetryCallbackMessage201Response.md +9 -0
- 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 +18 -16
- 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/TSSRequestWebhookEventData.md +7 -1
- package/docs/TokenBalance.md +1 -1
- package/docs/TokenBalanceBalance.md +4 -4
- 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/TransactionDetail.md +2 -2
- package/docs/TransactionDetails.md +2 -2
- package/docs/TransactionRawTxInfo.md +1 -1
- package/docs/TransactionRoleApprovalDetail.md +13 -0
- package/docs/TransactionSelectedUtxo.md +12 -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 +65 -14
- package/docs/TransferParams.md +1 -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 +34 -34
- package/docs/WalletsExchangeWalletApi.md +6 -6
- package/docs/WalletsMPCWalletsApi.md +30 -30
- package/docs/WebhookEventData.md +17 -5
- package/docs/WebhookEventDataType.md +7 -1
- package/docs/WebhookEventType.md +14 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,12 +10,12 @@ The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo’s Wa
|
|
|
10
10
|
- Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls
|
|
11
11
|
- Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more
|
|
12
12
|
|
|
13
|
-
For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](/v2/guides/overview/introduction).
|
|
13
|
+
For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction).
|
|
14
14
|
|
|
15
15
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
16
|
|
|
17
17
|
- API version: v2
|
|
18
|
-
- Package version: 1.
|
|
18
|
+
- Package version: 1.8.0
|
|
19
19
|
- Generator version: 7.6.0
|
|
20
20
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
21
21
|
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
|
|
@@ -69,6 +69,8 @@ Class | Method | HTTP request | Description
|
|
|
69
69
|
------------ | ------------- | ------------- | -------------
|
|
70
70
|
*CoboWaas2.AddressBooksApi* | [**listAddressBooks**](docs/AddressBooksApi.md#listAddressBooks) | **GET** /address_books | List address book entries
|
|
71
71
|
*CoboWaas2.DevelopersApi* | [**getApiKeyInfo**](docs/DevelopersApi.md#getApiKeyInfo) | **GET** /developers/api_key_info | Get API key information
|
|
72
|
+
*CoboWaas2.DevelopersApi* | [**listCallbackMessages**](docs/DevelopersApi.md#listCallbackMessages) | **GET** /developers/callback_messages | List all callback messages
|
|
73
|
+
*CoboWaas2.DevelopersApi* | [**retryCallbackMessage**](docs/DevelopersApi.md#retryCallbackMessage) | **POST** /developers/callback_messages/{message_id}/retry | Retry callback message
|
|
72
74
|
*CoboWaas2.DevelopersWebhooksApi* | [**createWebhookEndpoint**](docs/DevelopersWebhooksApi.md#createWebhookEndpoint) | **POST** /webhooks/endpoints | Register webhook endpoint
|
|
73
75
|
*CoboWaas2.DevelopersWebhooksApi* | [**getWebhookEndpointById**](docs/DevelopersWebhooksApi.md#getWebhookEndpointById) | **GET** /webhooks/endpoints/{endpoint_id} | Get webhook endpoint information
|
|
74
76
|
*CoboWaas2.DevelopersWebhooksApi* | [**getWebhookEventById**](docs/DevelopersWebhooksApi.md#getWebhookEventById) | **GET** /webhooks/endpoints/{endpoint_id}/events/{event_id} | Retrieve event information
|
|
@@ -88,7 +90,7 @@ Class | Method | HTTP request | Description
|
|
|
88
90
|
*CoboWaas2.StakingsApi* | [**getStakingActivityById**](docs/StakingsApi.md#getStakingActivityById) | **GET** /stakings/activities/{activity_id} | Get staking activity details
|
|
89
91
|
*CoboWaas2.StakingsApi* | [**getStakingById**](docs/StakingsApi.md#getStakingById) | **GET** /stakings/{staking_id} | Get staking position details
|
|
90
92
|
*CoboWaas2.StakingsApi* | [**getStakingEstimationFee**](docs/StakingsApi.md#getStakingEstimationFee) | **POST** /stakings/estimate_fee | Estimate staking fees
|
|
91
|
-
*CoboWaas2.StakingsApi* | [**getStakingEstimationFeeV2**](docs/StakingsApi.md#getStakingEstimationFeeV2) | **POST** /stakings/estimate_fee_v2 | Estimate staking fees
|
|
93
|
+
*CoboWaas2.StakingsApi* | [**getStakingEstimationFeeV2**](docs/StakingsApi.md#getStakingEstimationFeeV2) | **POST** /stakings/estimate_fee_v2 | Estimate staking fees v2
|
|
92
94
|
*CoboWaas2.StakingsApi* | [**getStakingPoolById**](docs/StakingsApi.md#getStakingPoolById) | **GET** /stakings/pools/{pool_id} | Get staking pool details
|
|
93
95
|
*CoboWaas2.StakingsApi* | [**listStakingActivities**](docs/StakingsApi.md#listStakingActivities) | **GET** /stakings/activities | List staking activities
|
|
94
96
|
*CoboWaas2.StakingsApi* | [**listStakingPools**](docs/StakingsApi.md#listStakingPools) | **GET** /stakings/pools | List staking pools
|
|
@@ -101,10 +103,15 @@ Class | Method | HTTP request | Description
|
|
|
101
103
|
*CoboWaas2.TransactionsApi* | [**createTransferTransaction**](docs/TransactionsApi.md#createTransferTransaction) | **POST** /transactions/transfer | Transfer token
|
|
102
104
|
*CoboWaas2.TransactionsApi* | [**dropTransactionById**](docs/TransactionsApi.md#dropTransactionById) | **POST** /transactions/{transaction_id}/drop | Drop transaction
|
|
103
105
|
*CoboWaas2.TransactionsApi* | [**estimateFee**](docs/TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
|
|
106
|
+
*CoboWaas2.TransactionsApi* | [**getTransactionApprovalDetail**](docs/TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval information
|
|
104
107
|
*CoboWaas2.TransactionsApi* | [**getTransactionById**](docs/TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
|
|
105
108
|
*CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
|
|
106
109
|
*CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
|
|
107
110
|
*CoboWaas2.TransactionsApi* | [**speedupTransactionById**](docs/TransactionsApi.md#speedupTransactionById) | **POST** /transactions/{transaction_id}/speedup | Speed up transaction
|
|
111
|
+
*CoboWaas2.TravelRuleApi* | [**getTransactionLimitation**](docs/TravelRuleApi.md#getTransactionLimitation) | **GET** /travel_rule/transaction/limitation | Retrieve transaction limitations
|
|
112
|
+
*CoboWaas2.TravelRuleApi* | [**listSupportedCountries**](docs/TravelRuleApi.md#listSupportedCountries) | **GET** /travel_rule/transaction/countries | List supported countries
|
|
113
|
+
*CoboWaas2.TravelRuleApi* | [**submitDepositTravelRuleInfo**](docs/TravelRuleApi.md#submitDepositTravelRuleInfo) | **POST** /travel_rule/transaction/deposit/travel_rule_info | Submit Deposit Transaction Travel Rule information
|
|
114
|
+
*CoboWaas2.TravelRuleApi* | [**submitWithdrawTravelRuleInfo**](docs/TravelRuleApi.md#submitWithdrawTravelRuleInfo) | **POST** /travel_rule/transaction/withdraw/travel_rule_info | Submit Withdraw Transaction Travel Rule information
|
|
108
115
|
*CoboWaas2.WalletsApi* | [**checkAddressChainsValidity**](docs/WalletsApi.md#checkAddressChainsValidity) | **GET** /wallets/check_address_chains_validity | Check address validity across chains
|
|
109
116
|
*CoboWaas2.WalletsApi* | [**checkAddressValidity**](docs/WalletsApi.md#checkAddressValidity) | **GET** /wallets/check_address_validity | Check address validity
|
|
110
117
|
*CoboWaas2.WalletsApi* | [**checkAddressesValidity**](docs/WalletsApi.md#checkAddressesValidity) | **GET** /wallets/check_addresses_validity | Check addresses validity
|
|
@@ -156,6 +163,7 @@ Class | Method | HTTP request | Description
|
|
|
156
163
|
|
|
157
164
|
- [CoboWaas2.Activity](docs/Activity.md)
|
|
158
165
|
- [CoboWaas2.ActivityAction](docs/ActivityAction.md)
|
|
166
|
+
- [CoboWaas2.ActivityExtra](docs/ActivityExtra.md)
|
|
159
167
|
- [CoboWaas2.ActivityInitiator](docs/ActivityInitiator.md)
|
|
160
168
|
- [CoboWaas2.ActivityStatus](docs/ActivityStatus.md)
|
|
161
169
|
- [CoboWaas2.ActivityTimeline](docs/ActivityTimeline.md)
|
|
@@ -166,6 +174,7 @@ Class | Method | HTTP request | Description
|
|
|
166
174
|
- [CoboWaas2.AddressTransferDestination](docs/AddressTransferDestination.md)
|
|
167
175
|
- [CoboWaas2.AddressTransferDestinationAccountOutput](docs/AddressTransferDestinationAccountOutput.md)
|
|
168
176
|
- [CoboWaas2.AddressTransferDestinationUtxoOutputsInner](docs/AddressTransferDestinationUtxoOutputsInner.md)
|
|
177
|
+
- [CoboWaas2.AddressesEventData](docs/AddressesEventData.md)
|
|
169
178
|
- [CoboWaas2.AmountDetailsInner](docs/AmountDetailsInner.md)
|
|
170
179
|
- [CoboWaas2.AmountStatus](docs/AmountStatus.md)
|
|
171
180
|
- [CoboWaas2.ApiLogDetails](docs/ApiLogDetails.md)
|
|
@@ -175,6 +184,7 @@ Class | Method | HTTP request | Description
|
|
|
175
184
|
- [CoboWaas2.AutoFuelType](docs/AutoFuelType.md)
|
|
176
185
|
- [CoboWaas2.BabylonStakeEstimatedFee](docs/BabylonStakeEstimatedFee.md)
|
|
177
186
|
- [CoboWaas2.BabylonStakeExtra](docs/BabylonStakeExtra.md)
|
|
187
|
+
- [CoboWaas2.BabylonStakingActivityDetailExtra](docs/BabylonStakingActivityDetailExtra.md)
|
|
178
188
|
- [CoboWaas2.BabylonStakingExtra](docs/BabylonStakingExtra.md)
|
|
179
189
|
- [CoboWaas2.BabylonValidator](docs/BabylonValidator.md)
|
|
180
190
|
- [CoboWaas2.BaseContractCallSource](docs/BaseContractCallSource.md)
|
|
@@ -183,6 +193,7 @@ Class | Method | HTTP request | Description
|
|
|
183
193
|
- [CoboWaas2.BaseStakeSource](docs/BaseStakeSource.md)
|
|
184
194
|
- [CoboWaas2.BroadcastSignedTransactions201ResponseInner](docs/BroadcastSignedTransactions201ResponseInner.md)
|
|
185
195
|
- [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
|
|
196
|
+
- [CoboWaas2.CallbackMessage](docs/CallbackMessage.md)
|
|
186
197
|
- [CoboWaas2.ChainInfo](docs/ChainInfo.md)
|
|
187
198
|
- [CoboWaas2.CheckAddressChainsValidity200ResponseInner](docs/CheckAddressChainsValidity200ResponseInner.md)
|
|
188
199
|
- [CoboWaas2.CheckAddressValidity200Response](docs/CheckAddressValidity200Response.md)
|
|
@@ -196,6 +207,7 @@ Class | Method | HTTP request | Description
|
|
|
196
207
|
- [CoboWaas2.ContractCallSource](docs/ContractCallSource.md)
|
|
197
208
|
- [CoboWaas2.ContractCallSourceType](docs/ContractCallSourceType.md)
|
|
198
209
|
- [CoboWaas2.CoreStakeExtra](docs/CoreStakeExtra.md)
|
|
210
|
+
- [CoboWaas2.CoreStakingActivityDetailExtra](docs/CoreStakingActivityDetailExtra.md)
|
|
199
211
|
- [CoboWaas2.CoreStakingExtra](docs/CoreStakingExtra.md)
|
|
200
212
|
- [CoboWaas2.CreateAddressRequest](docs/CreateAddressRequest.md)
|
|
201
213
|
- [CoboWaas2.CreateClaimActivity](docs/CreateClaimActivity.md)
|
|
@@ -228,6 +240,7 @@ Class | Method | HTTP request | Description
|
|
|
228
240
|
- [CoboWaas2.CustodialWalletInfo](docs/CustodialWalletInfo.md)
|
|
229
241
|
- [CoboWaas2.DeleteKeyShareHolderGroupById201Response](docs/DeleteKeyShareHolderGroupById201Response.md)
|
|
230
242
|
- [CoboWaas2.DeleteWalletById201Response](docs/DeleteWalletById201Response.md)
|
|
243
|
+
- [CoboWaas2.DestinationWalletType](docs/DestinationWalletType.md)
|
|
231
244
|
- [CoboWaas2.EigenLayerLstStakeExtra](docs/EigenLayerLstStakeExtra.md)
|
|
232
245
|
- [CoboWaas2.EigenLayerNativeStakeExtra](docs/EigenLayerNativeStakeExtra.md)
|
|
233
246
|
- [CoboWaas2.EigenlayerValidator](docs/EigenlayerValidator.md)
|
|
@@ -250,6 +263,7 @@ Class | Method | HTTP request | Description
|
|
|
250
263
|
- [CoboWaas2.EstimatedUtxoFeeSlow](docs/EstimatedUtxoFeeSlow.md)
|
|
251
264
|
- [CoboWaas2.EthStakeEstimatedFee](docs/EthStakeEstimatedFee.md)
|
|
252
265
|
- [CoboWaas2.EthStakeExtra](docs/EthStakeExtra.md)
|
|
266
|
+
- [CoboWaas2.EthStakingActivityDetailExtra](docs/EthStakingActivityDetailExtra.md)
|
|
253
267
|
- [CoboWaas2.EthStakingExtra](docs/EthStakingExtra.md)
|
|
254
268
|
- [CoboWaas2.EthStakingExtraAllOfBeaconValidators](docs/EthStakingExtraAllOfBeaconValidators.md)
|
|
255
269
|
- [CoboWaas2.EthUnstakeExtra](docs/EthUnstakeExtra.md)
|
|
@@ -275,6 +289,7 @@ Class | Method | HTTP request | Description
|
|
|
275
289
|
- [CoboWaas2.GetStakingEstimationFeeRequest](docs/GetStakingEstimationFeeRequest.md)
|
|
276
290
|
- [CoboWaas2.GetToken2XXResponse](docs/GetToken2XXResponse.md)
|
|
277
291
|
- [CoboWaas2.GetToken4XXResponse](docs/GetToken4XXResponse.md)
|
|
292
|
+
- [CoboWaas2.GetTransactionLimitation200Response](docs/GetTransactionLimitation200Response.md)
|
|
278
293
|
- [CoboWaas2.KeyShareHolder](docs/KeyShareHolder.md)
|
|
279
294
|
- [CoboWaas2.KeyShareHolderGroup](docs/KeyShareHolderGroup.md)
|
|
280
295
|
- [CoboWaas2.KeyShareHolderGroupStatus](docs/KeyShareHolderGroupStatus.md)
|
|
@@ -284,6 +299,7 @@ Class | Method | HTTP request | Description
|
|
|
284
299
|
- [CoboWaas2.ListAddressBooks200Response](docs/ListAddressBooks200Response.md)
|
|
285
300
|
- [CoboWaas2.ListAddresses200Response](docs/ListAddresses200Response.md)
|
|
286
301
|
- [CoboWaas2.ListAssetBalancesForExchangeWallet200Response](docs/ListAssetBalancesForExchangeWallet200Response.md)
|
|
302
|
+
- [CoboWaas2.ListCallbackMessages200Response](docs/ListCallbackMessages200Response.md)
|
|
287
303
|
- [CoboWaas2.ListExchanges200ResponseInner](docs/ListExchanges200ResponseInner.md)
|
|
288
304
|
- [CoboWaas2.ListKeyShareHolderGroups200Response](docs/ListKeyShareHolderGroups200Response.md)
|
|
289
305
|
- [CoboWaas2.ListMpcProjects200Response](docs/ListMpcProjects200Response.md)
|
|
@@ -293,6 +309,7 @@ Class | Method | HTTP request | Description
|
|
|
293
309
|
- [CoboWaas2.ListStakings200Response](docs/ListStakings200Response.md)
|
|
294
310
|
- [CoboWaas2.ListSupportedAssetsForExchange200Response](docs/ListSupportedAssetsForExchange200Response.md)
|
|
295
311
|
- [CoboWaas2.ListSupportedChains200Response](docs/ListSupportedChains200Response.md)
|
|
312
|
+
- [CoboWaas2.ListSupportedCountries200ResponseInner](docs/ListSupportedCountries200ResponseInner.md)
|
|
296
313
|
- [CoboWaas2.ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
|
|
297
314
|
- [CoboWaas2.ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
|
|
298
315
|
- [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
|
|
@@ -309,6 +326,7 @@ Class | Method | HTTP request | Description
|
|
|
309
326
|
- [CoboWaas2.MPCDelegate](docs/MPCDelegate.md)
|
|
310
327
|
- [CoboWaas2.MPCProject](docs/MPCProject.md)
|
|
311
328
|
- [CoboWaas2.MPCVault](docs/MPCVault.md)
|
|
329
|
+
- [CoboWaas2.MPCVaultEventData](docs/MPCVaultEventData.md)
|
|
312
330
|
- [CoboWaas2.MPCVaultType](docs/MPCVaultType.md)
|
|
313
331
|
- [CoboWaas2.MPCWalletInfo](docs/MPCWalletInfo.md)
|
|
314
332
|
- [CoboWaas2.MaxFeeAmount](docs/MaxFeeAmount.md)
|
|
@@ -323,6 +341,7 @@ Class | Method | HTTP request | Description
|
|
|
323
341
|
- [CoboWaas2.MpcSigningGroup](docs/MpcSigningGroup.md)
|
|
324
342
|
- [CoboWaas2.MpcStakeSource](docs/MpcStakeSource.md)
|
|
325
343
|
- [CoboWaas2.MpcTransferSource](docs/MpcTransferSource.md)
|
|
344
|
+
- [CoboWaas2.OrgInfo](docs/OrgInfo.md)
|
|
326
345
|
- [CoboWaas2.Pagination](docs/Pagination.md)
|
|
327
346
|
- [CoboWaas2.PoolDetails](docs/PoolDetails.md)
|
|
328
347
|
- [CoboWaas2.PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
|
|
@@ -331,6 +350,7 @@ Class | Method | HTTP request | Description
|
|
|
331
350
|
- [CoboWaas2.RefreshToken2XXResponse](docs/RefreshToken2XXResponse.md)
|
|
332
351
|
- [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
|
|
333
352
|
- [CoboWaas2.ReplaceType](docs/ReplaceType.md)
|
|
353
|
+
- [CoboWaas2.RetryCallbackMessage201Response](docs/RetryCallbackMessage201Response.md)
|
|
334
354
|
- [CoboWaas2.RetryWebhookEventById201Response](docs/RetryWebhookEventById201Response.md)
|
|
335
355
|
- [CoboWaas2.RoleScopes](docs/RoleScopes.md)
|
|
336
356
|
- [CoboWaas2.RootPubkey](docs/RootPubkey.md)
|
|
@@ -341,6 +361,8 @@ Class | Method | HTTP request | Description
|
|
|
341
361
|
- [CoboWaas2.SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
|
|
342
362
|
- [CoboWaas2.SafeWalletDelegatesTransfer](docs/SafeWalletDelegatesTransfer.md)
|
|
343
363
|
- [CoboWaas2.Scopes](docs/Scopes.md)
|
|
364
|
+
- [CoboWaas2.SelectedEntityType](docs/SelectedEntityType.md)
|
|
365
|
+
- [CoboWaas2.SelfCustodyWallet](docs/SelfCustodyWallet.md)
|
|
344
366
|
- [CoboWaas2.SmartContractInitiator](docs/SmartContractInitiator.md)
|
|
345
367
|
- [CoboWaas2.SmartContractWalletInfo](docs/SmartContractWalletInfo.md)
|
|
346
368
|
- [CoboWaas2.SmartContractWalletOperationType](docs/SmartContractWalletOperationType.md)
|
|
@@ -353,6 +375,10 @@ Class | Method | HTTP request | Description
|
|
|
353
375
|
- [CoboWaas2.Stakings](docs/Stakings.md)
|
|
354
376
|
- [CoboWaas2.StakingsExtra](docs/StakingsExtra.md)
|
|
355
377
|
- [CoboWaas2.SubWalletAssetBalance](docs/SubWalletAssetBalance.md)
|
|
378
|
+
- [CoboWaas2.SubmitDepositTravelRuleInfo201Response](docs/SubmitDepositTravelRuleInfo201Response.md)
|
|
379
|
+
- [CoboWaas2.SwapActivity](docs/SwapActivity.md)
|
|
380
|
+
- [CoboWaas2.SwapSummary](docs/SwapSummary.md)
|
|
381
|
+
- [CoboWaas2.SwapTokenPair](docs/SwapTokenPair.md)
|
|
356
382
|
- [CoboWaas2.TSSGroups](docs/TSSGroups.md)
|
|
357
383
|
- [CoboWaas2.TSSRequest](docs/TSSRequest.md)
|
|
358
384
|
- [CoboWaas2.TSSRequestStatus](docs/TSSRequestStatus.md)
|
|
@@ -363,6 +389,8 @@ Class | Method | HTTP request | Description
|
|
|
363
389
|
- [CoboWaas2.TokenBalanceBalance](docs/TokenBalanceBalance.md)
|
|
364
390
|
- [CoboWaas2.TokenInfo](docs/TokenInfo.md)
|
|
365
391
|
- [CoboWaas2.Transaction](docs/Transaction.md)
|
|
392
|
+
- [CoboWaas2.TransactionApprovalDetail](docs/TransactionApprovalDetail.md)
|
|
393
|
+
- [CoboWaas2.TransactionApprovalResult](docs/TransactionApprovalResult.md)
|
|
366
394
|
- [CoboWaas2.TransactionApprover](docs/TransactionApprover.md)
|
|
367
395
|
- [CoboWaas2.TransactionBlockInfo](docs/TransactionBlockInfo.md)
|
|
368
396
|
- [CoboWaas2.TransactionCustodialAssetWalletSource](docs/TransactionCustodialAssetWalletSource.md)
|
|
@@ -401,6 +429,8 @@ Class | Method | HTTP request | Description
|
|
|
401
429
|
- [CoboWaas2.TransactionResend](docs/TransactionResend.md)
|
|
402
430
|
- [CoboWaas2.TransactionResult](docs/TransactionResult.md)
|
|
403
431
|
- [CoboWaas2.TransactionResultType](docs/TransactionResultType.md)
|
|
432
|
+
- [CoboWaas2.TransactionRoleApprovalDetail](docs/TransactionRoleApprovalDetail.md)
|
|
433
|
+
- [CoboWaas2.TransactionSelectedUtxo](docs/TransactionSelectedUtxo.md)
|
|
404
434
|
- [CoboWaas2.TransactionSignatureResult](docs/TransactionSignatureResult.md)
|
|
405
435
|
- [CoboWaas2.TransactionSigner](docs/TransactionSigner.md)
|
|
406
436
|
- [CoboWaas2.TransactionSmartContractSafeWalletSource](docs/TransactionSmartContractSafeWalletSource.md)
|
|
@@ -416,6 +446,7 @@ Class | Method | HTTP request | Description
|
|
|
416
446
|
- [CoboWaas2.TransactionTransferToAddressDestinationUtxoOutputsInner](docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md)
|
|
417
447
|
- [CoboWaas2.TransactionTransferToWalletDestination](docs/TransactionTransferToWalletDestination.md)
|
|
418
448
|
- [CoboWaas2.TransactionType](docs/TransactionType.md)
|
|
449
|
+
- [CoboWaas2.TransactionUserApprovalDetail](docs/TransactionUserApprovalDetail.md)
|
|
419
450
|
- [CoboWaas2.TransactionUtxo](docs/TransactionUtxo.md)
|
|
420
451
|
- [CoboWaas2.TransactionUtxoFee](docs/TransactionUtxoFee.md)
|
|
421
452
|
- [CoboWaas2.TransactionWebhookEventData](docs/TransactionWebhookEventData.md)
|
|
@@ -423,6 +454,18 @@ Class | Method | HTTP request | Description
|
|
|
423
454
|
- [CoboWaas2.TransferDestinationType](docs/TransferDestinationType.md)
|
|
424
455
|
- [CoboWaas2.TransferParams](docs/TransferParams.md)
|
|
425
456
|
- [CoboWaas2.TransferSource](docs/TransferSource.md)
|
|
457
|
+
- [CoboWaas2.TravelRuleDepositExchangesOrVASP](docs/TravelRuleDepositExchangesOrVASP.md)
|
|
458
|
+
- [CoboWaas2.TravelRuleDepositExchangesOrVASPEntityInfo](docs/TravelRuleDepositExchangesOrVASPEntityInfo.md)
|
|
459
|
+
- [CoboWaas2.TravelRuleDepositLegalEntity](docs/TravelRuleDepositLegalEntity.md)
|
|
460
|
+
- [CoboWaas2.TravelRuleDepositNaturalEntity](docs/TravelRuleDepositNaturalEntity.md)
|
|
461
|
+
- [CoboWaas2.TravelRuleDepositRequest](docs/TravelRuleDepositRequest.md)
|
|
462
|
+
- [CoboWaas2.TravelRuleDepositRequestTravelRuleInfo](docs/TravelRuleDepositRequestTravelRuleInfo.md)
|
|
463
|
+
- [CoboWaas2.TravelRuleWithdrawExchangesOrVASP](docs/TravelRuleWithdrawExchangesOrVASP.md)
|
|
464
|
+
- [CoboWaas2.TravelRuleWithdrawExchangesOrVASPEntityInfo](docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md)
|
|
465
|
+
- [CoboWaas2.TravelRuleWithdrawLegalEntity](docs/TravelRuleWithdrawLegalEntity.md)
|
|
466
|
+
- [CoboWaas2.TravelRuleWithdrawNaturalEntity](docs/TravelRuleWithdrawNaturalEntity.md)
|
|
467
|
+
- [CoboWaas2.TravelRuleWithdrawRequest](docs/TravelRuleWithdrawRequest.md)
|
|
468
|
+
- [CoboWaas2.TravelRuleWithdrawRequestTravelRuleInfo](docs/TravelRuleWithdrawRequestTravelRuleInfo.md)
|
|
426
469
|
- [CoboWaas2.TriggerTestWebhookEvent201Response](docs/TriggerTestWebhookEvent201Response.md)
|
|
427
470
|
- [CoboWaas2.TriggerTestWebhookEventRequest](docs/TriggerTestWebhookEventRequest.md)
|
|
428
471
|
- [CoboWaas2.UTXO](docs/UTXO.md)
|
|
@@ -438,7 +481,9 @@ Class | Method | HTTP request | Description
|
|
|
438
481
|
- [CoboWaas2.UpdateWebhookEndpointByIdRequest](docs/UpdateWebhookEndpointByIdRequest.md)
|
|
439
482
|
- [CoboWaas2.UtxoFeeBasePrice](docs/UtxoFeeBasePrice.md)
|
|
440
483
|
- [CoboWaas2.UtxoFeeRate](docs/UtxoFeeRate.md)
|
|
484
|
+
- [CoboWaas2.Vasp](docs/Vasp.md)
|
|
441
485
|
- [CoboWaas2.WalletInfo](docs/WalletInfo.md)
|
|
486
|
+
- [CoboWaas2.WalletInfoEventData](docs/WalletInfoEventData.md)
|
|
442
487
|
- [CoboWaas2.WalletSubtype](docs/WalletSubtype.md)
|
|
443
488
|
- [CoboWaas2.WalletType](docs/WalletType.md)
|
|
444
489
|
- [CoboWaas2.WebhookEndpoint](docs/WebhookEndpoint.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -43,13 +43,13 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
43
43
|
/**
|
|
44
44
|
* List address book entries
|
|
45
45
|
* This operation retrieves a list of addresses from your address book.
|
|
46
|
-
* @param {String} chain_id The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
|
|
46
|
+
* @param {String} chain_id The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
|
|
47
47
|
* @param {Object} opts Optional parameters
|
|
48
48
|
* @param {String} [address] The wallet address.
|
|
49
49
|
* @param {String} [label] The address label.
|
|
50
50
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
51
|
-
* @param {String} [before]
|
|
52
|
-
* @param {String} [after]
|
|
51
|
+
* @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.
|
|
52
|
+
* @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.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAddressBooks200Response} and HTTP response
|
|
54
54
|
*/
|
|
55
55
|
return _createClass(AddressBooksApi, [{
|
|
@@ -85,13 +85,13 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
85
85
|
/**
|
|
86
86
|
* List address book entries
|
|
87
87
|
* This operation retrieves a list of addresses from your address book.
|
|
88
|
-
* @param {String} chain_id The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
|
|
88
|
+
* @param {String} chain_id The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
|
|
89
89
|
* @param {Object} opts Optional parameters
|
|
90
90
|
* @param {String} opts.address The wallet address.
|
|
91
91
|
* @param {String} opts.label The address label.
|
|
92
92
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
93
|
-
* @param {String} opts.before
|
|
94
|
-
* @param {String} opts.after
|
|
93
|
+
* @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.
|
|
94
|
+
* @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.
|
|
95
95
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddressBooks200Response}
|
|
96
96
|
*/
|
|
97
97
|
}, {
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
9
9
|
var _GetApiKeyInfo200Response = _interopRequireDefault(require("../model/GetApiKeyInfo200Response"));
|
|
10
|
+
var _ListCallbackMessages200Response = _interopRequireDefault(require("../model/ListCallbackMessages200Response"));
|
|
11
|
+
var _RetryCallbackMessage201Response = _interopRequireDefault(require("../model/RetryCallbackMessage201Response"));
|
|
10
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
13
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
14
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -75,5 +77,113 @@ var DevelopersApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
75
77
|
return response_and_data.data;
|
|
76
78
|
});
|
|
77
79
|
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* List all callback messages
|
|
83
|
+
* This operation retrieves all the callback messages in your organization. For more details about how to respond to callback messages, refer to [Callback messages](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
|
|
84
|
+
* @param {Object} opts Optional parameters
|
|
85
|
+
* @param {String} [callback_message_ids] A list of callback message IDs, separated by commas.
|
|
86
|
+
* @param {String} [request_ids] A list of request IDs, separated by commas. The request ID is provided by you and must be unique within your organization.
|
|
87
|
+
* @param {String} [transaction_ids] A list of transaction IDs, separated by commas.
|
|
88
|
+
* @param {String} [wallet_ids] A list of wallet IDs, separated by commas.
|
|
89
|
+
* @param {module:model/String} [status] The callback message status. Possible values include `Approved`, `Denied`, and `Failed`.
|
|
90
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
91
|
+
* @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.
|
|
92
|
+
* @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.
|
|
93
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCallbackMessages200Response} and HTTP response
|
|
94
|
+
*/
|
|
95
|
+
}, {
|
|
96
|
+
key: "listCallbackMessagesWithHttpInfo",
|
|
97
|
+
value: function listCallbackMessagesWithHttpInfo(opts) {
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
var postBody = null;
|
|
100
|
+
if (postBody && postBody.toJSON) {
|
|
101
|
+
postBody = postBody.toJSON();
|
|
102
|
+
}
|
|
103
|
+
var pathParams = {};
|
|
104
|
+
var queryParams = {
|
|
105
|
+
'callback_message_ids': opts['callback_message_ids'],
|
|
106
|
+
'request_ids': opts['request_ids'],
|
|
107
|
+
'transaction_ids': opts['transaction_ids'],
|
|
108
|
+
'wallet_ids': opts['wallet_ids'],
|
|
109
|
+
'status': opts['status'],
|
|
110
|
+
'limit': opts['limit'],
|
|
111
|
+
'before': opts['before'],
|
|
112
|
+
'after': opts['after']
|
|
113
|
+
};
|
|
114
|
+
var headerParams = {};
|
|
115
|
+
var formParams = {};
|
|
116
|
+
var authNames = ['CoboAuth'];
|
|
117
|
+
var contentTypes = [];
|
|
118
|
+
var accepts = ['application/json'];
|
|
119
|
+
var returnType = _ListCallbackMessages200Response["default"];
|
|
120
|
+
return this.apiClient.callApi('/developers/callback_messages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* List all callback messages
|
|
125
|
+
* This operation retrieves all the callback messages in your organization. For more details about how to respond to callback messages, refer to [Callback messages](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
|
|
126
|
+
* @param {Object} opts Optional parameters
|
|
127
|
+
* @param {String} opts.callback_message_ids A list of callback message IDs, separated by commas.
|
|
128
|
+
* @param {String} opts.request_ids A list of request IDs, separated by commas. The request ID is provided by you and must be unique within your organization.
|
|
129
|
+
* @param {String} opts.transaction_ids A list of transaction IDs, separated by commas.
|
|
130
|
+
* @param {String} opts.wallet_ids A list of wallet IDs, separated by commas.
|
|
131
|
+
* @param {module:model/String} opts.status The callback message status. Possible values include `Approved`, `Denied`, and `Failed`.
|
|
132
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
133
|
+
* @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.
|
|
134
|
+
* @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.
|
|
135
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCallbackMessages200Response}
|
|
136
|
+
*/
|
|
137
|
+
}, {
|
|
138
|
+
key: "listCallbackMessages",
|
|
139
|
+
value: function listCallbackMessages(opts) {
|
|
140
|
+
return this.listCallbackMessagesWithHttpInfo(opts).then(function (response_and_data) {
|
|
141
|
+
return response_and_data.data;
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Retry callback message
|
|
147
|
+
* This operation resends a callback message that failed previously. If your callback endpoint doesn't respond as expected, the WaaS service will retry sending the callback message up to 30 times. After that, the callback message status will be `Failed`. Use this operation to resend the message. For more details, refer to [Webhooks and Callbacks](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
|
|
148
|
+
* @param {String} message_id The callback message ID.
|
|
149
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetryCallbackMessage201Response} and HTTP response
|
|
150
|
+
*/
|
|
151
|
+
}, {
|
|
152
|
+
key: "retryCallbackMessageWithHttpInfo",
|
|
153
|
+
value: function retryCallbackMessageWithHttpInfo(message_id) {
|
|
154
|
+
var postBody = null;
|
|
155
|
+
if (postBody && postBody.toJSON) {
|
|
156
|
+
postBody = postBody.toJSON();
|
|
157
|
+
}
|
|
158
|
+
// verify the required parameter 'message_id' is set
|
|
159
|
+
if (message_id === undefined || message_id === null) {
|
|
160
|
+
throw new Error("Missing the required parameter 'message_id' when calling retryCallbackMessage");
|
|
161
|
+
}
|
|
162
|
+
var pathParams = {
|
|
163
|
+
'message_id': message_id
|
|
164
|
+
};
|
|
165
|
+
var queryParams = {};
|
|
166
|
+
var headerParams = {};
|
|
167
|
+
var formParams = {};
|
|
168
|
+
var authNames = ['CoboAuth'];
|
|
169
|
+
var contentTypes = [];
|
|
170
|
+
var accepts = ['application/json'];
|
|
171
|
+
var returnType = _RetryCallbackMessage201Response["default"];
|
|
172
|
+
return this.apiClient.callApi('/developers/callback_messages/{message_id}/retry', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Retry callback message
|
|
177
|
+
* This operation resends a callback message that failed previously. If your callback endpoint doesn't respond as expected, the WaaS service will retry sending the callback message up to 30 times. After that, the callback message status will be `Failed`. Use this operation to resend the message. For more details, refer to [Webhooks and Callbacks](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
|
|
178
|
+
* @param {String} message_id The callback message ID.
|
|
179
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetryCallbackMessage201Response}
|
|
180
|
+
*/
|
|
181
|
+
}, {
|
|
182
|
+
key: "retryCallbackMessage",
|
|
183
|
+
value: function retryCallbackMessage(message_id) {
|
|
184
|
+
return this.retryCallbackMessageWithHttpInfo(message_id).then(function (response_and_data) {
|
|
185
|
+
return response_and_data.data;
|
|
186
|
+
});
|
|
187
|
+
}
|
|
78
188
|
}]);
|
|
79
189
|
}();
|