@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.
Files changed (238) hide show
  1. package/README.md +48 -3
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +6 -6
  4. package/dist/api/DevelopersApi.js +110 -0
  5. package/dist/api/DevelopersWebhooksApi.js +30 -30
  6. package/dist/api/OAuthApi.js +2 -2
  7. package/dist/api/StakingsApi.js +33 -30
  8. package/dist/api/TransactionsApi.js +73 -28
  9. package/dist/api/TravelRuleApi.js +216 -0
  10. package/dist/api/WalletsApi.js +68 -68
  11. package/dist/api/WalletsExchangeWalletApi.js +12 -12
  12. package/dist/api/WalletsMPCWalletsApi.js +60 -60
  13. package/dist/index.js +273 -0
  14. package/dist/model/Activity.js +29 -0
  15. package/dist/model/ActivityAction.js +30 -0
  16. package/dist/model/ActivityExtra.js +274 -0
  17. package/dist/model/AddressInfo.js +15 -2
  18. package/dist/model/AddressTransferDestination.js +1 -1
  19. package/dist/model/AddressesEventData.js +190 -0
  20. package/dist/model/ApiLogDetails.js +2 -2
  21. package/dist/model/BabylonStakeExtra.js +1 -1
  22. package/dist/model/BabylonStakingActivityDetailExtra.js +165 -0
  23. package/dist/model/BaseContractCallSource.js +1 -1
  24. package/dist/model/BroadcastSignedTransactionsRequest.js +1 -1
  25. package/dist/model/CallbackMessage.js +288 -0
  26. package/dist/model/ChainInfo.js +2 -2
  27. package/dist/model/ContractCallParams.js +2 -2
  28. package/dist/model/CoreStakingActivityDetailExtra.js +164 -0
  29. package/dist/model/CreateAddressRequest.js +2 -2
  30. package/dist/model/CreateClaimActivity.js +2 -2
  31. package/dist/model/CreateClaimActivityRequest.js +3 -3
  32. package/dist/model/CreateKeyShareHolder.js +1 -1
  33. package/dist/model/CreateMpcVaultRequest.js +1 -1
  34. package/dist/model/CreateMpcWalletParams.js +2 -2
  35. package/dist/model/CreateStakeActivity.js +4 -6
  36. package/dist/model/CreateStakeActivityExtra.js +1 -1
  37. package/dist/model/CreateStakeActivityRequest.js +5 -7
  38. package/dist/model/CreateWalletParams.js +1 -1
  39. package/dist/model/CreateWebhookEndpointRequest.js +2 -2
  40. package/dist/model/CustodialTransferSource.js +1 -1
  41. package/dist/model/DestinationWalletType.js +61 -0
  42. package/dist/model/ErrorResponse.js +2 -2
  43. package/dist/model/EstimateClaimFee.js +1 -1
  44. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  45. package/dist/model/EstimateFeeParams.js +2 -2
  46. package/dist/model/EstimateStakeFee.js +5 -7
  47. package/dist/model/EstimateTransferFeeParams.js +2 -2
  48. package/dist/model/EthStakeEstimatedFee.js +13 -0
  49. package/dist/model/EthStakingActivityDetailExtra.js +142 -0
  50. package/dist/model/EvmContractCallDestination.js +1 -1
  51. package/dist/model/EvmEIP191MessageSignDestination.js +1 -1
  52. package/dist/model/EvmEIP712MessageSignDestination.js +1 -1
  53. package/dist/model/ExchangeTransferDestination.js +1 -1
  54. package/dist/model/ExchangeTransferSource.js +1 -1
  55. package/dist/model/ExtendedTokenInfo.js +3 -3
  56. package/dist/model/GetStakingEstimationFee201Response.js +6 -0
  57. package/dist/model/GetStakingEstimationFeeRequest.js +1 -1
  58. package/dist/model/GetTransactionLimitation200Response.js +143 -0
  59. package/dist/model/ListCallbackMessages200Response.js +145 -0
  60. package/dist/model/ListSupportedCountries200ResponseInner.js +140 -0
  61. package/dist/model/LockUtxosRequestUtxosInner.js +2 -2
  62. package/dist/model/MPCDelegate.js +1 -1
  63. package/dist/model/MPCVaultEventData.js +279 -0
  64. package/dist/model/MaxTransferableValue.js +1 -1
  65. package/dist/model/MessageSignParams.js +2 -2
  66. package/dist/model/MpcTransferSource.js +1 -1
  67. package/dist/model/OrgInfo.js +133 -0
  68. package/dist/model/Pagination.js +4 -4
  69. package/dist/model/RawMessageSignDestination.js +1 -1
  70. package/dist/model/RetryCallbackMessage201Response.js +83 -0
  71. package/dist/model/SafeContractCallSource.js +1 -1
  72. package/dist/model/SafeTransferSource.js +1 -1
  73. package/dist/model/SelectedEntityType.js +61 -0
  74. package/dist/model/SelfCustodyWallet.js +152 -0
  75. package/dist/model/SourceGroup.js +1 -1
  76. package/dist/model/StakingPoolId.js +5 -0
  77. package/dist/model/StakingPoolType.js +5 -0
  78. package/dist/model/SubmitDepositTravelRuleInfo201Response.js +83 -0
  79. package/dist/model/SwapActivity.js +218 -0
  80. package/dist/model/SwapSummary.js +121 -0
  81. package/dist/model/SwapTokenPair.js +100 -0
  82. package/dist/model/TSSRequestWebhookEventData.js +18 -3
  83. package/dist/model/TokenBalance.js +2 -2
  84. package/dist/model/TokenBalanceBalance.js +6 -6
  85. package/dist/model/TokenInfo.js +2 -2
  86. package/dist/model/Transaction.js +2 -2
  87. package/dist/model/TransactionApprovalDetail.js +121 -0
  88. package/dist/model/TransactionApprovalResult.js +66 -0
  89. package/dist/model/TransactionCustodialAssetWalletSource.js +1 -1
  90. package/dist/model/TransactionDepositFromAddressSource.js +1 -1
  91. package/dist/model/TransactionDepositFromLoopSource.js +1 -1
  92. package/dist/model/TransactionDepositFromWalletSource.js +1 -1
  93. package/dist/model/TransactionDepositToAddressDestination.js +1 -1
  94. package/dist/model/TransactionDepositToWalletDestination.js +1 -1
  95. package/dist/model/TransactionDetail.js +4 -4
  96. package/dist/model/TransactionDetails.js +4 -4
  97. package/dist/model/TransactionEvmContractDestination.js +1 -1
  98. package/dist/model/TransactionExchangeWalletSource.js +1 -1
  99. package/dist/model/TransactionMPCWalletSource.js +1 -1
  100. package/dist/model/TransactionMessageSignEIP191Destination.js +1 -1
  101. package/dist/model/TransactionMessageSignEIP712Destination.js +1 -1
  102. package/dist/model/TransactionRawMessageSignDestination.js +1 -1
  103. package/dist/model/TransactionRawTxInfo.js +4 -4
  104. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
  105. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
  106. package/dist/model/TransactionRequestFixedFee.js +1 -1
  107. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  108. package/dist/model/TransactionRoleApprovalDetail.js +152 -0
  109. package/dist/model/TransactionSelectedUtxo.js +123 -0
  110. package/dist/model/TransactionSmartContractSafeWalletSource.js +1 -1
  111. package/dist/model/TransactionTokeApproval.js +3 -3
  112. package/dist/model/TransactionTokenAmount.js +1 -1
  113. package/dist/model/TransactionTransferToAddressDestination.js +1 -1
  114. package/dist/model/TransactionTransferToWalletDestination.js +1 -1
  115. package/dist/model/TransactionUserApprovalDetail.js +162 -0
  116. package/dist/model/TransactionWebhookEventData.js +22 -7
  117. package/dist/model/TransferParams.js +2 -2
  118. package/dist/model/TravelRuleDepositExchangesOrVASP.js +168 -0
  119. package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +222 -0
  120. package/dist/model/TravelRuleDepositLegalEntity.js +171 -0
  121. package/dist/model/TravelRuleDepositNaturalEntity.js +186 -0
  122. package/dist/model/TravelRuleDepositRequest.js +128 -0
  123. package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +222 -0
  124. package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +155 -0
  125. package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +222 -0
  126. package/dist/model/TravelRuleWithdrawLegalEntity.js +144 -0
  127. package/dist/model/TravelRuleWithdrawNaturalEntity.js +159 -0
  128. package/dist/model/TravelRuleWithdrawRequest.js +128 -0
  129. package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +216 -0
  130. package/dist/model/TriggerTestWebhookEventRequest.js +1 -1
  131. package/dist/model/UpdateWebhookEndpointByIdRequest.js +1 -1
  132. package/dist/model/Vasp.js +141 -0
  133. package/dist/model/WalletInfoEventData.js +175 -0
  134. package/dist/model/WebhookEventData.js +135 -14
  135. package/dist/model/WebhookEventDataType.js +17 -2
  136. package/dist/model/WebhookEventType.js +23 -8
  137. package/docs/Activity.md +2 -0
  138. package/docs/ActivityAction.md +12 -0
  139. package/docs/ActivityExtra.md +20 -0
  140. package/docs/AddressBooksApi.md +3 -3
  141. package/docs/AddressInfo.md +2 -1
  142. package/docs/AddressesEventData.md +29 -0
  143. package/docs/ApiLogDetails.md +1 -1
  144. package/docs/BabylonStakeExtra.md +1 -1
  145. package/docs/BabylonStakingActivityDetailExtra.md +14 -0
  146. package/docs/BroadcastSignedTransactionsRequest.md +1 -1
  147. package/docs/CallbackMessage.md +46 -0
  148. package/docs/ChainInfo.md +1 -1
  149. package/docs/ContractCallParams.md +1 -1
  150. package/docs/CoreStakingActivityDetailExtra.md +13 -0
  151. package/docs/CreateAddressRequest.md +1 -1
  152. package/docs/CreateClaimActivity.md +1 -1
  153. package/docs/CreateClaimActivityRequest.md +1 -1
  154. package/docs/CreateKeyShareHolder.md +1 -1
  155. package/docs/CreateMpcVaultRequest.md +1 -1
  156. package/docs/CreateMpcWalletParams.md +1 -1
  157. package/docs/CreateStakeActivity.md +1 -1
  158. package/docs/CreateStakeActivityExtra.md +1 -1
  159. package/docs/CreateStakeActivityRequest.md +1 -1
  160. package/docs/CreateWalletParams.md +1 -1
  161. package/docs/CreateWebhookEndpointRequest.md +1 -1
  162. package/docs/DestinationWalletType.md +12 -0
  163. package/docs/DevelopersApi.md +118 -0
  164. package/docs/DevelopersWebhooksApi.md +15 -15
  165. package/docs/ErrorResponse.md +1 -1
  166. package/docs/EstimateClaimFee.md +1 -1
  167. package/docs/EstimateContractCallFeeParams.md +1 -1
  168. package/docs/EstimateFeeParams.md +2 -2
  169. package/docs/EstimateStakeFee.md +1 -1
  170. package/docs/EstimateTransferFeeParams.md +1 -1
  171. package/docs/EthStakeEstimatedFee.md +1 -0
  172. package/docs/EthStakingActivityDetailExtra.md +11 -0
  173. package/docs/ExtendedTokenInfo.md +1 -1
  174. package/docs/GetStakingEstimationFee201Response.md +1 -0
  175. package/docs/GetStakingEstimationFeeRequest.md +2 -2
  176. package/docs/GetTransactionLimitation200Response.md +12 -0
  177. package/docs/ListCallbackMessages200Response.md +10 -0
  178. package/docs/ListSupportedCountries200ResponseInner.md +11 -0
  179. package/docs/LockUtxosRequestUtxosInner.md +1 -1
  180. package/docs/MPCVaultEventData.md +34 -0
  181. package/docs/MaxTransferableValue.md +1 -1
  182. package/docs/MessageSignParams.md +1 -1
  183. package/docs/OAuthApi.md +1 -1
  184. package/docs/OrgInfo.md +11 -0
  185. package/docs/Pagination.md +2 -2
  186. package/docs/RetryCallbackMessage201Response.md +9 -0
  187. package/docs/SelectedEntityType.md +12 -0
  188. package/docs/SelfCustodyWallet.md +12 -0
  189. package/docs/SourceGroup.md +1 -1
  190. package/docs/StakingPoolId.md +2 -0
  191. package/docs/StakingPoolType.md +2 -0
  192. package/docs/StakingsApi.md +18 -16
  193. package/docs/SubmitDepositTravelRuleInfo201Response.md +9 -0
  194. package/docs/SwapActivity.md +20 -0
  195. package/docs/SwapSummary.md +10 -0
  196. package/docs/SwapTokenPair.md +10 -0
  197. package/docs/TSSRequestWebhookEventData.md +7 -1
  198. package/docs/TokenBalance.md +1 -1
  199. package/docs/TokenBalanceBalance.md +4 -4
  200. package/docs/TokenInfo.md +1 -1
  201. package/docs/Transaction.md +2 -2
  202. package/docs/TransactionApprovalDetail.md +11 -0
  203. package/docs/TransactionApprovalResult.md +14 -0
  204. package/docs/TransactionDetail.md +2 -2
  205. package/docs/TransactionDetails.md +2 -2
  206. package/docs/TransactionRawTxInfo.md +1 -1
  207. package/docs/TransactionRoleApprovalDetail.md +13 -0
  208. package/docs/TransactionSelectedUtxo.md +12 -0
  209. package/docs/TransactionTokeApproval.md +1 -1
  210. package/docs/TransactionTokenAmount.md +1 -1
  211. package/docs/TransactionUserApprovalDetail.md +15 -0
  212. package/docs/TransactionWebhookEventData.md +9 -3
  213. package/docs/TransactionsApi.md +65 -14
  214. package/docs/TransferParams.md +1 -1
  215. package/docs/TravelRuleApi.md +214 -0
  216. package/docs/TravelRuleDepositExchangesOrVASP.md +13 -0
  217. package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +29 -0
  218. package/docs/TravelRuleDepositLegalEntity.md +25 -0
  219. package/docs/TravelRuleDepositNaturalEntity.md +26 -0
  220. package/docs/TravelRuleDepositRequest.md +10 -0
  221. package/docs/TravelRuleDepositRequestTravelRuleInfo.md +16 -0
  222. package/docs/TravelRuleWithdrawExchangesOrVASP.md +12 -0
  223. package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +16 -0
  224. package/docs/TravelRuleWithdrawLegalEntity.md +12 -0
  225. package/docs/TravelRuleWithdrawNaturalEntity.md +13 -0
  226. package/docs/TravelRuleWithdrawRequest.md +10 -0
  227. package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +15 -0
  228. package/docs/TriggerTestWebhookEventRequest.md +1 -1
  229. package/docs/UpdateWebhookEndpointByIdRequest.md +1 -1
  230. package/docs/Vasp.md +11 -0
  231. package/docs/WalletInfoEventData.md +29 -0
  232. package/docs/WalletsApi.md +34 -34
  233. package/docs/WalletsExchangeWalletApi.md +6 -6
  234. package/docs/WalletsMPCWalletsApi.md +30 -30
  235. package/docs/WebhookEventData.md +17 -5
  236. package/docs/WebhookEventDataType.md +7 -1
  237. package/docs/WebhookEventType.md +14 -8
  238. package/package.json +2 -2
@@ -34,42 +34,57 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
34
34
  * value: "wallets.transaction.created"
35
35
  * @const
36
36
  */
37
- _defineProperty(this, "transaction.created", "wallets.transaction.created");
37
+ _defineProperty(this, "wallets.transaction.created", "wallets.transaction.created");
38
38
  /**
39
39
  * value: "wallets.transaction.updated"
40
40
  * @const
41
41
  */
42
- _defineProperty(this, "transaction.updated", "wallets.transaction.updated");
42
+ _defineProperty(this, "wallets.transaction.updated", "wallets.transaction.updated");
43
43
  /**
44
44
  * value: "wallets.transaction.failed"
45
45
  * @const
46
46
  */
47
- _defineProperty(this, "transaction.failed", "wallets.transaction.failed");
47
+ _defineProperty(this, "wallets.transaction.failed", "wallets.transaction.failed");
48
48
  /**
49
49
  * value: "wallets.transaction.succeeded"
50
50
  * @const
51
51
  */
52
- _defineProperty(this, "transaction.succeeded", "wallets.transaction.succeeded");
52
+ _defineProperty(this, "wallets.transaction.succeeded", "wallets.transaction.succeeded");
53
53
  /**
54
54
  * value: "wallets.mpc.tss_request.created"
55
55
  * @const
56
56
  */
57
- _defineProperty(this, "mpc.tss_request.created", "wallets.mpc.tss_request.created");
57
+ _defineProperty(this, "wallets.mpc.tss_request.created", "wallets.mpc.tss_request.created");
58
58
  /**
59
59
  * value: "wallets.mpc.tss_request.updated"
60
60
  * @const
61
61
  */
62
- _defineProperty(this, "mpc.tss_request.updated", "wallets.mpc.tss_request.updated");
62
+ _defineProperty(this, "wallets.mpc.tss_request.updated", "wallets.mpc.tss_request.updated");
63
63
  /**
64
64
  * value: "wallets.mpc.tss_request.failed"
65
65
  * @const
66
66
  */
67
- _defineProperty(this, "mpc.tss_request.failed", "wallets.mpc.tss_request.failed");
67
+ _defineProperty(this, "wallets.mpc.tss_request.failed", "wallets.mpc.tss_request.failed");
68
68
  /**
69
69
  * value: "wallets.mpc.tss_request.succeeded"
70
70
  * @const
71
71
  */
72
- _defineProperty(this, "mpc.tss_request.succeeded", "wallets.mpc.tss_request.succeeded");
72
+ _defineProperty(this, "wallets.mpc.tss_request.succeeded", "wallets.mpc.tss_request.succeeded");
73
+ /**
74
+ * value: "wallets.addresses.created"
75
+ * @const
76
+ */
77
+ _defineProperty(this, "wallets.addresses.created", "wallets.addresses.created");
78
+ /**
79
+ * value: "wallets.created"
80
+ * @const
81
+ */
82
+ _defineProperty(this, "wallets.created", "wallets.created");
83
+ /**
84
+ * value: "mpc_vaults.created"
85
+ * @const
86
+ */
87
+ _defineProperty(this, "mpc_vaults.created", "mpc_vaults.created");
73
88
  /**
74
89
  * value: "unknown_default_open_api"
75
90
  * @const
package/docs/Activity.md CHANGED
@@ -13,11 +13,13 @@ Name | Type | Description | Notes
13
13
  **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
14
14
  **token_id** | **String** | The token ID. |
15
15
  **staking_id** | **String** | The ID of the corresponding staking position. | [optional]
16
+ **request_ids** | **[String]** | The request IDs of the corresponding transactions of the activity. | [optional]
16
17
  **amount** | **String** | The staking amount. |
17
18
  **transaction_ids** | **[String]** | The IDs of the corresponding transactions of the activity. | [optional]
18
19
  **timeline** | [**[ActivityTimeline]**](ActivityTimeline.md) | The timeline of the activity. | [optional]
19
20
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
20
21
  **status** | [**ActivityStatus**](ActivityStatus.md) | |
22
+ **extra** | [**ActivityExtra**](ActivityExtra.md) | | [optional]
21
23
  **created_timestamp** | **Number** | The time when the activity was created. | [optional]
22
24
  **updated_timestamp** | **Number** | The time when the activity was last updated. | [optional]
23
25
 
@@ -17,6 +17,18 @@
17
17
 
18
18
  * `UnstakeETH` (value: `"UnstakeETH"`)
19
19
 
20
+ * `ApproveUSDC` (value: `"ApproveUSDC"`)
21
+
22
+ * `ConvertToUSDS` (value: `"ConvertToUSDS"`)
23
+
24
+ * `ApproveUSDS` (value: `"ApproveUSDS"`)
25
+
26
+ * `DepositUSDS` (value: `"DepositUSDS"`)
27
+
28
+ * `WithdrawUSDS` (value: `"WithdrawUSDS"`)
29
+
30
+ * `ConvertToUSDC` (value: `"ConvertToUSDC"`)
31
+
20
32
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
21
33
 
22
34
 
@@ -0,0 +1,20 @@
1
+ # CoboWaas2.ActivityExtra
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
+ **finality_provider_public_key** | **String** | The public key of the finality provider. | [optional]
9
+ **stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
10
+ **auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
11
+ **param_version** | **Number** | The version of babylon global parameters. | [optional]
12
+ **withdraw_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
13
+ **provider_name** | **String** | The name of the provider. | [optional]
14
+ **validator_pubkeys** | **[String]** | A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain. | [optional]
15
+ **timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
16
+ **change_address** | **String** | The change bitcoin address. If not provided, the source wallet's address will be used as the change address. | [optional]
17
+ **validator_address** | **String** | The validator evm address. | [optional]
18
+ **reward_address** | **String** | The reward evm address. | [optional]
19
+
20
+
@@ -49,12 +49,12 @@ apiInstance.listAddressBooks(chain_id, opts).then((data) => {
49
49
 
50
50
  Name | Type | Description | Notes
51
51
  ------------- | ------------- | ------------- | -------------
52
- **chain_id** | **String**| 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). |
52
+ **chain_id** | **String**| 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). |
53
53
  **address** | **String**| The wallet address. | [optional]
54
54
  **label** | **String**| The address label. | [optional]
55
55
  **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
56
- **before** | **String**| An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - 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 `before` to `infinity`, the last page of data is returned. | [optional]
57
- **after** | **String**| An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - 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. | [optional]
56
+ **before** | **String**| 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. | [optional]
57
+ **after** | **String**| 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. | [optional]
58
58
 
59
59
  ### Return type
60
60
 
@@ -5,12 +5,13 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **address** | **String** | The wallet address. |
8
- **chain_id** | **String** | 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). |
8
+ **chain_id** | **String** | 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). |
9
9
  **memo** | **String** | The memo code. | [optional]
10
10
  **path** | **String** | The derivation path of the address. This property applies to MPC Wallets only. To learn the meaning of each level in the path, see [Path levels](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#path-levels). | [optional]
11
11
  **encoding** | [**AddressEncoding**](AddressEncoding.md) | | [optional]
12
12
  **pubkey** | **String** | The public key of the address. This property applies to MPC Wallets only. | [optional]
13
13
  **x_only_pubkey** | **String** | The 32-byte x-only public key in hexadecimal format after tweaking. | [optional]
14
+ **root_pubkey** | **String** | The root public key of the address. This property applies to MPC Wallets only. | [optional]
14
15
  **taproot_script_tree_hash** | **String** | The information about the new address. | [optional]
15
16
  **taproot_internal_address** | **String** | The Taproot address before tweaking. | [optional]
16
17
 
@@ -0,0 +1,29 @@
1
+ # CoboWaas2.AddressesEventData
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
8
+ **addresses** | [**[AddressInfo]**](AddressInfo.md) | A list of addresses. | [optional]
9
+
10
+
11
+
12
+ ## Enum: DataTypeEnum
13
+
14
+
15
+ * `Transaction` (value: `"Transaction"`)
16
+
17
+ * `TSSRequest` (value: `"TSSRequest"`)
18
+
19
+ * `Addresses` (value: `"Addresses"`)
20
+
21
+ * `WalletInfo` (value: `"WalletInfo"`)
22
+
23
+ * `MPCVault` (value: `"MPCVault"`)
24
+
25
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
26
+
27
+
28
+
29
+
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **status_code** | **Number** | The HTTP status code returned by the API request. |
11
11
  **ip_address** | **String** | The client's IP address that made the API request. |
12
12
  **request_timestamp** | **Number** | The time when the API request was created, in Unix timestamp format, measured in milliseconds. |
13
- **api_key** | **String** | The API key used to call the API. For more details, refer to [API key](/v2/guides/overview/cobo-auth#api-key). |
13
+ **api_key** | **String** | The API key used to call the API. For more details, refer to [API key](https://www.cobo.com/developers/v2/guides/overview/cobo-auth#api-key). |
14
14
  **response_body** | **String** | The response body of the API request. |
15
15
  **query_params** | **String** | The query parameters of the API request. |
16
16
  **request_body** | **String** | The request body of the API request. |
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
7
7
  **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
8
  **finality_provider_public_key** | **String** | The public key of the finality provider. |
9
9
  **stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
10
- **auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
10
+ **auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
11
11
 
12
12
 
@@ -0,0 +1,14 @@
1
+ # CoboWaas2.BabylonStakingActivityDetailExtra
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
+ **finality_provider_public_key** | **String** | The public key of the finality provider. | [optional]
9
+ **stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
10
+ **auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
11
+ **param_version** | **Number** | The version of babylon global parameters. | [optional]
12
+ **withdraw_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
13
+
14
+
@@ -4,6 +4,6 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **transaction_ids** | **[String]** | The transaction IDs of the signed transactions to be broadcast. You can retrieve the transactions corresponding to a staking activity by calling [Get staking activity details](/v2/api-references/stakings/get-staking-activity-details). | [optional]
7
+ **transaction_ids** | **[String]** | The transaction IDs of the signed transactions to be broadcast. You can retrieve the transactions corresponding to a staking activity by calling [Get staking activity details](https://www.cobo.com/developers/v2/api-references/stakings/get-staking-activity-details). | [optional]
8
8
 
9
9
 
@@ -0,0 +1,46 @@
1
+ # CoboWaas2.CallbackMessage
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | The callback message ID. |
8
+ **created_timestamp** | **Number** | The time when the callback message was created, in Unix timestamp format, measured in milliseconds. |
9
+ **updated_timestamp** | **Number** | The time when the callback message was updated, in Unix timestamp format, measured in milliseconds. |
10
+ **request_id** | **String** | The request ID of the transaction. |
11
+ **transaction_id** | **String** | The transaction ID. |
12
+ **wallet_id** | **String** | The wallet ID. | [optional]
13
+ **url** | **String** | The callback endpoint URL. |
14
+ **data** | [**Transaction**](Transaction.md) | |
15
+ **status** | **String** | The callback message status. Possible values include `Denied`, `Approved`, and `Failed`. |
16
+ **result** | **String** | The callback message result. Possible values include `ok` and `deny`. | [optional]
17
+
18
+
19
+
20
+ ## Enum: StatusEnum
21
+
22
+
23
+ * `Denied` (value: `"Denied"`)
24
+
25
+ * `Approved` (value: `"Approved"`)
26
+
27
+ * `Failed` (value: `"Failed"`)
28
+
29
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
30
+
31
+
32
+
33
+
34
+
35
+ ## Enum: ResultEnum
36
+
37
+
38
+ * `ok` (value: `"ok"`)
39
+
40
+ * `deny` (value: `"deny"`)
41
+
42
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
43
+
44
+
45
+
46
+
package/docs/ChainInfo.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **chain_id** | **String** | 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). |
7
+ **chain_id** | **String** | 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). |
8
8
  **symbol** | **String** | The chain symbol, which is the abbreviated name of a chain. | [optional]
9
9
  **icon_url** | **String** | The URL of the chain icon. | [optional]
10
10
  **explorer_tx_url** | **String** | The transaction URL pattern on the blockchain explorer. You can use it to concatenate the transaction URLs. | [optional]
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. |
8
- **chain_id** | **String** | 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). |
8
+ **chain_id** | **String** | 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). |
9
9
  **source** | [**ContractCallSource**](ContractCallSource.md) | |
10
10
  **destination** | [**ContractCallDestination**](ContractCallDestination.md) | |
11
11
  **description** | **String** | The description of the contract call transaction. | [optional]
@@ -0,0 +1,13 @@
1
+ # CoboWaas2.CoreStakingActivityDetailExtra
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
+ **timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
9
+ **change_address** | **String** | The change bitcoin address. If not provided, the source wallet's address will be used as the change address. | [optional]
10
+ **validator_address** | **String** | The validator evm address. | [optional]
11
+ **reward_address** | **String** | The reward evm address. | [optional]
12
+
13
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **chain_id** | **String** | 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). |
7
+ **chain_id** | **String** | 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). |
8
8
  **count** | **Number** | The number of addresses to create. | [default to 1]
9
9
  **encoding** | [**AddressEncoding**](AddressEncoding.md) | | [optional]
10
10
 
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
8
- **staking_id** | **String** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
8
+ **staking_id** | **String** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions). |
9
9
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
10
10
 
11
11
 
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
8
- **staking_id** | **String** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
8
+ **staking_id** | **String** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions). |
9
9
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
10
10
  **app_initiator** | **String** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
11
11
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | Key share holder's name. | [optional]
8
8
  **type** | [**KeyShareHolderType**](KeyShareHolderType.md) | | [optional]
9
- **tss_node_id** | **String** | Key share holder's TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or API co-signer. See the \"Primary Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group). | [optional]
9
+ **tss_node_id** | **String** | Key share holder's TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or server co-signer. See the \"Primary Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group). | [optional]
10
10
  **signer** | **Boolean** | Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - `true`: The key share holder is a designated transaction signer. - `false`: The key share holder is not a designated transaction signer. | [optional]
11
11
 
12
12
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **project_id** | **String** | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). **Notes:** 1. If you set `vault_type` to `OrgControlled`, the value of `project_id` will be ignored. 2. If you set `vault_type` to `UserControlled`, then `project_id` is required. | [optional]
7
+ **project_id** | **String** | 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). **Notes:** 1. If you set `vault_type` to `OrgControlled`, the value of `project_id` will be ignored. 2. If you set `vault_type` to `UserControlled`, then `project_id` is required. | [optional]
8
8
  **name** | **String** | The vault name. |
9
9
  **vault_type** | [**MPCVaultType**](MPCVaultType.md) | |
10
10
 
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | The wallet name. |
8
8
  **wallet_type** | [**WalletType**](WalletType.md) | |
9
9
  **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
10
- **vault_id** | **String** | The ID of the owning vault. You can call [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
10
+ **vault_id** | **String** | The ID of the owning vault. You can call [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
11
11
 
12
12
 
@@ -9,6 +9,6 @@ Name | Type | Description | Notes
9
9
  **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
10
10
  **amount** | **String** | The amount to stake. |
11
11
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
12
- **extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
12
+ **extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | | [optional]
13
13
 
14
14
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
8
  **finality_provider_public_key** | **String** | The public key of the finality provider. |
9
9
  **stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
10
- **auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
10
+ **auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
11
11
  **provider_name** | **String** | The name of the provider. |
12
12
  **timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. |
13
13
  **change_address** | **String** | The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address. | [optional]
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
9
9
  **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
10
10
  **amount** | **String** | The amount to stake. |
11
11
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
12
- **extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
12
+ **extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | | [optional]
13
13
  **app_initiator** | **String** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
14
14
 
15
15
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | The wallet name. |
8
8
  **wallet_type** | [**WalletType**](WalletType.md) | |
9
9
  **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
10
- **vault_id** | **String** | The ID of the owning vault. You can call [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
10
+ **vault_id** | **String** | The ID of the owning vault. You can call [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
11
11
  **exchange_id** | [**ExchangeId**](ExchangeId.md) | |
12
12
  **apikey** | **String** | The API key of your exchange account. |
13
13
  **secret** | **String** | The API secret of your exchange account. |
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **url** | **String** | The webhook endpoint URL. |
8
- **subscribed_events** | [**[WebhookEventType]**](WebhookEventType.md) | The event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types. |
8
+ **subscribed_events** | [**[WebhookEventType]**](WebhookEventType.md) | The event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](https://www.cobo.com/developers/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types. |
9
9
  **description** | **String** | The description of the webhook endpoint. | [optional]
10
10
 
11
11
 
@@ -0,0 +1,12 @@
1
+ # CoboWaas2.DestinationWalletType
2
+
3
+ ## Enum
4
+
5
+
6
+ * `EXCHANGES_OR_VASP` (value: `"EXCHANGES_OR_VASP"`)
7
+
8
+ * `SELF_CUSTODY_WALLET` (value: `"SELF_CUSTODY_WALLET"`)
9
+
10
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
11
+
12
+
@@ -5,6 +5,8 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**getApiKeyInfo**](DevelopersApi.md#getApiKeyInfo) | **GET** /developers/api_key_info | Get API key information
8
+ [**listCallbackMessages**](DevelopersApi.md#listCallbackMessages) | **GET** /developers/callback_messages | List all callback messages
9
+ [**retryCallbackMessage**](DevelopersApi.md#retryCallbackMessage) | **POST** /developers/callback_messages/{message_id}/retry | Retry callback message
8
10
 
9
11
 
10
12
 
@@ -53,3 +55,119 @@ This endpoint does not need any parameter.
53
55
  - **Content-Type**: Not defined
54
56
  - **Accept**: application/json
55
57
 
58
+
59
+ ## listCallbackMessages
60
+
61
+ > ListCallbackMessages200Response listCallbackMessages(opts)
62
+
63
+ List all callback messages
64
+
65
+ 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).
66
+
67
+ ### Example
68
+
69
+ ```javascript
70
+ const CoboWaas2 = require('@cobo/cobo-waas2');
71
+ // Initialize the API client
72
+ const apiClient = CoboWaas2.ApiClient.instance
73
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
74
+ apiClient.setEnv(CoboWaas2.Env.DEV);
75
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
76
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
77
+ // Call the API
78
+ const apiInstance = new CoboWaas2.DevelopersApi();
79
+ const opts = {
80
+ 'callback_message_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479",
81
+ 'request_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479",
82
+ 'transaction_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479",
83
+ 'wallet_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479",
84
+ 'status': "Approved",
85
+ 'limit': 10,
86
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
87
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
88
+ };
89
+ apiInstance.listCallbackMessages(opts).then((data) => {
90
+ console.log('API called successfully. Returned data: ' + data);
91
+ }, (error) => {
92
+ console.error(error);
93
+ });
94
+
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+
100
+ Name | Type | Description | Notes
101
+ ------------- | ------------- | ------------- | -------------
102
+ **callback_message_ids** | **String**| A list of callback message IDs, separated by commas. | [optional]
103
+ **request_ids** | **String**| A list of request IDs, separated by commas. The request ID is provided by you and must be unique within your organization. | [optional]
104
+ **transaction_ids** | **String**| A list of transaction IDs, separated by commas. | [optional]
105
+ **wallet_ids** | **String**| A list of wallet IDs, separated by commas. | [optional]
106
+ **status** | **String**| The callback message status. Possible values include &#x60;Approved&#x60;, &#x60;Denied&#x60;, and &#x60;Failed&#x60;. | [optional]
107
+ **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
108
+ **before** | **String**| 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 &#x60;before&#x60; to the ID of Object C (&#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;), the response will include Object B and Object A. **Notes**: - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. - If you set it to &#x60;infinity&#x60;, the last page of data is returned. | [optional]
109
+ **after** | **String**| 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 &#x60;after&#x60; to the ID of Object A (&#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;), the response will include Object B and Object C. **Notes**: - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. | [optional]
110
+
111
+ ### Return type
112
+
113
+ [**ListCallbackMessages200Response**](ListCallbackMessages200Response.md)
114
+
115
+ ### Authorization
116
+
117
+ [CoboAuth](../README.md#CoboAuth)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: Not defined
122
+ - **Accept**: application/json
123
+
124
+
125
+ ## retryCallbackMessage
126
+
127
+ > RetryCallbackMessage201Response retryCallbackMessage(message_id)
128
+
129
+ Retry callback message
130
+
131
+ This operation resends a callback message that failed previously. If your callback endpoint doesn&#39;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 &#x60;Failed&#x60;. Use this operation to resend the message. For more details, refer to [Webhooks and Callbacks](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
132
+
133
+ ### Example
134
+
135
+ ```javascript
136
+ const CoboWaas2 = require('@cobo/cobo-waas2');
137
+ // Initialize the API client
138
+ const apiClient = CoboWaas2.ApiClient.instance
139
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
140
+ apiClient.setEnv(CoboWaas2.Env.DEV);
141
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
142
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
143
+ // Call the API
144
+ const apiInstance = new CoboWaas2.DevelopersApi();
145
+ const message_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
146
+ apiInstance.retryCallbackMessage(message_id).then((data) => {
147
+ console.log('API called successfully. Returned data: ' + data);
148
+ }, (error) => {
149
+ console.error(error);
150
+ });
151
+
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+
157
+ Name | Type | Description | Notes
158
+ ------------- | ------------- | ------------- | -------------
159
+ **message_id** | **String**| The callback message ID. |
160
+
161
+ ### Return type
162
+
163
+ [**RetryCallbackMessage201Response**](RetryCallbackMessage201Response.md)
164
+
165
+ ### Authorization
166
+
167
+ [CoboAuth](../README.md#CoboAuth)
168
+
169
+ ### HTTP request headers
170
+
171
+ - **Content-Type**: Not defined
172
+ - **Accept**: application/json
173
+