@cobo/cobo-waas2 1.11.0 → 1.13.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 (211) hide show
  1. package/README.md +72 -13
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +282 -0
  4. package/dist/api/TransactionsApi.js +57 -7
  5. package/dist/api/WalletsApi.js +60 -2
  6. package/dist/index.js +384 -41
  7. package/dist/model/ActivityExtra.js +0 -12
  8. package/dist/model/AddressEncoding.js +15 -0
  9. package/dist/model/AddressTransferDestination.js +1 -1
  10. package/dist/model/AddressesEventData.js +18 -3
  11. package/dist/model/BTCBIP137MessageSignDestination.js +122 -0
  12. package/dist/model/BTCBIP322MessageSignDestination.js +122 -0
  13. package/dist/model/BabylonStakingActivityDetailExtra.js +0 -18
  14. package/dist/model/BankAccount.js +123 -0
  15. package/dist/model/BaseContractCallSource.js +1 -1
  16. package/dist/model/ChainsEventData.js +207 -0
  17. package/dist/model/ContractCallParams.js +3 -30
  18. package/dist/model/ContractCallSource.js +36 -8
  19. package/dist/model/ContractCallSourceType.js +5 -0
  20. package/dist/model/CosmosAdr36MessageSignDestination.js +122 -0
  21. package/dist/model/CosmosContractCallDestination.js +152 -0
  22. package/dist/model/CosmosContractCallMessage.js +126 -0
  23. package/dist/model/CreateSettlement.js +174 -0
  24. package/dist/model/CustodialTransferSource.js +1 -1
  25. package/dist/model/{CreateSwapQuoteRequest.js → CustodialWeb3ContractCallSource.js} +55 -65
  26. package/dist/model/CustodialWeb3MessageSignSource.js +136 -0
  27. package/dist/model/CustodialWeb3TransferSource.js +194 -0
  28. package/dist/model/FeeStationTransactionType.js +61 -0
  29. package/dist/model/{ListSwapActivities200Response.js → ListTransactionApprovalDetails200Response.js} +21 -37
  30. package/dist/model/MPCVaultEventData.js +18 -3
  31. package/dist/model/{CreateSwapActivityRequest.js → Merchant.js} +45 -58
  32. package/dist/model/MessageSignDestination.js +111 -9
  33. package/dist/model/MessageSignDestinationType.js +15 -0
  34. package/dist/model/MessageSignSource.js +36 -8
  35. package/dist/model/MessageSignSourceType.js +5 -0
  36. package/dist/model/Order.js +306 -0
  37. package/dist/model/OrderStatus.js +76 -0
  38. package/dist/model/PaymentTransaction.js +201 -0
  39. package/dist/model/RefreshAddressBalancesByToken200Response.js +106 -0
  40. package/dist/model/RefreshAddressBalancesByTokenRequest.js +110 -0
  41. package/dist/model/Refund.js +237 -0
  42. package/dist/model/RefundStatus.js +76 -0
  43. package/dist/model/RefundType.js +61 -0
  44. package/dist/model/{ListEnableTokenPairs200Response.js → SafeTxDecodedData.js} +38 -39
  45. package/dist/model/SafeTxDecodedDataParameters.js +148 -0
  46. package/dist/model/SafeTxExtraData.js +339 -0
  47. package/dist/model/SafeTxSubTransaction.js +169 -0
  48. package/dist/model/SettleRequestStatus.js +76 -0
  49. package/dist/model/SettleStatus.js +76 -0
  50. package/dist/model/Settlement.js +168 -0
  51. package/dist/model/SettlementDetail.js +184 -0
  52. package/dist/model/SettlementInfo.js +175 -0
  53. package/dist/model/SettlementType.js +61 -0
  54. package/dist/model/SwapActivity.js +36 -5
  55. package/dist/model/SwapActivityStatus.js +66 -0
  56. package/dist/model/SwapActivityType.js +61 -0
  57. package/dist/model/SwapQuote.js +21 -34
  58. package/dist/model/SwapToken.js +179 -0
  59. package/dist/model/TSSRequestWebhookEventData.js +18 -3
  60. package/dist/model/TokenListing.js +230 -0
  61. package/dist/model/TokenListingEventData.js +363 -0
  62. package/dist/model/TokenListingRequestSource.js +61 -0
  63. package/dist/model/TokenListingRequestStatus.js +66 -0
  64. package/dist/model/TokensEventData.js +207 -0
  65. package/dist/model/Transaction.js +50 -4
  66. package/dist/model/TransactionApprovalDetail.js +39 -0
  67. package/dist/model/TransactionBIP137Destination.js +122 -0
  68. package/dist/model/TransactionBIP322Destination.js +122 -0
  69. package/dist/model/TransactionBabylonBusinessInfo.js +138 -0
  70. package/dist/model/TransactionBabylonTxParameters.js +168 -0
  71. package/dist/model/TransactionCoboCategory.js +91 -0
  72. package/dist/model/TransactionCoreStakeInfo.js +168 -0
  73. package/dist/model/TransactionCosmosAdr36Destination.js +122 -0
  74. package/dist/model/TransactionCosmosContractDestination.js +152 -0
  75. package/dist/model/TransactionCosmosMessage.js +126 -0
  76. package/dist/model/TransactionCustodialWeb3WalletSource.js +194 -0
  77. package/dist/model/TransactionDestination.js +184 -8
  78. package/dist/model/TransactionDestinationType.js +20 -0
  79. package/dist/model/TransactionDetail.js +65 -5
  80. package/dist/model/TransactionDetails.js +65 -5
  81. package/dist/model/TransactionExtra.js +278 -0
  82. package/dist/model/TransactionExtraType.js +66 -0
  83. package/dist/model/{SwapTokenPair.js → TransactionFuelingInfo.js} +31 -30
  84. package/dist/model/TransactionMessageSignBTCEIP191Destination.js +122 -0
  85. package/dist/model/TransactionMessageSignEIP712Destination.js +29 -0
  86. package/dist/model/TransactionProcessType.js +61 -0
  87. package/dist/model/TransactionRbfSource.js +37 -9
  88. package/dist/model/TransactionRequestUtxoFee.js +4 -6
  89. package/dist/model/TransactionSelectedUtxo.js +26 -0
  90. package/dist/model/TransactionSolContractDestination.js +1 -1
  91. package/dist/model/TransactionSource.js +36 -8
  92. package/dist/model/TransactionSourceType.js +5 -0
  93. package/dist/model/TransactionSubStatus.js +45 -0
  94. package/dist/model/TransactionUserApprovalDetail.js +26 -0
  95. package/dist/model/TransactionWebhookEventData.js +83 -8
  96. package/dist/model/TransferParams.js +3 -30
  97. package/dist/model/TransferSource.js +36 -8
  98. package/dist/model/UpdateCustodialWalletParams.js +6 -4
  99. package/dist/model/UpdateExchangeWalletParams.js +6 -4
  100. package/dist/model/UpdateMpcWalletParams.js +6 -4
  101. package/dist/model/UpdateSmartContractWalletParams.js +6 -4
  102. package/dist/model/WalletInfoEventData.js +18 -3
  103. package/dist/model/WebhookEventData.js +162 -17
  104. package/dist/model/WebhookEventDataType.js +17 -2
  105. package/dist/model/WebhookEventType.js +40 -0
  106. package/docs/ActivityExtra.md +0 -2
  107. package/docs/AddressEncoding.md +6 -0
  108. package/docs/AddressesEventData.md +7 -1
  109. package/docs/BTCBIP137MessageSignDestination.md +10 -0
  110. package/docs/BTCBIP322MessageSignDestination.md +10 -0
  111. package/docs/BabylonStakingActivityDetailExtra.md +0 -2
  112. package/docs/BankAccount.md +10 -0
  113. package/docs/ChainsEventData.md +35 -0
  114. package/docs/ContractCallParams.md +1 -14
  115. package/docs/ContractCallSourceType.md +2 -0
  116. package/docs/CosmosAdr36MessageSignDestination.md +10 -0
  117. package/docs/CosmosContractCallDestination.md +11 -0
  118. package/docs/CosmosContractCallMessage.md +10 -0
  119. package/docs/CreateSettlement.md +14 -0
  120. package/docs/CustodialWeb3ContractCallSource.md +11 -0
  121. package/docs/CustodialWeb3MessageSignSource.md +11 -0
  122. package/docs/CustodialWeb3TransferSource.md +13 -0
  123. package/docs/FeeStationApi.md +260 -0
  124. package/docs/FeeStationTransactionType.md +12 -0
  125. package/docs/ListTransactionApprovalDetails200Response.md +9 -0
  126. package/docs/MPCVaultEventData.md +7 -1
  127. package/docs/Merchant.md +11 -0
  128. package/docs/MessageSignDestination.md +3 -0
  129. package/docs/MessageSignDestinationType.md +6 -0
  130. package/docs/MessageSignSourceType.md +2 -0
  131. package/docs/Order.md +23 -0
  132. package/docs/OrderStatus.md +18 -0
  133. package/docs/PaymentTransaction.md +16 -0
  134. package/docs/RefreshAddressBalancesByToken200Response.md +9 -0
  135. package/docs/RefreshAddressBalancesByTokenRequest.md +9 -0
  136. package/docs/Refund.md +17 -0
  137. package/docs/RefundStatus.md +18 -0
  138. package/docs/RefundType.md +12 -0
  139. package/docs/SafeTxDecodedData.md +10 -0
  140. package/docs/SafeTxDecodedDataParameters.md +12 -0
  141. package/docs/SafeTxExtraData.md +26 -0
  142. package/docs/SafeTxSubTransaction.md +15 -0
  143. package/docs/SettleRequestStatus.md +18 -0
  144. package/docs/SettleStatus.md +18 -0
  145. package/docs/Settlement.md +12 -0
  146. package/docs/SettlementDetail.md +15 -0
  147. package/docs/SettlementInfo.md +14 -0
  148. package/docs/SettlementType.md +12 -0
  149. package/docs/SwapActivity.md +4 -1
  150. package/docs/SwapActivityStatus.md +14 -0
  151. package/docs/SwapActivityType.md +12 -0
  152. package/docs/SwapQuote.md +3 -4
  153. package/docs/SwapToken.md +14 -0
  154. package/docs/TSSRequestWebhookEventData.md +7 -1
  155. package/docs/TokenListing.md +19 -0
  156. package/docs/TokenListingEventData.md +45 -0
  157. package/docs/TokenListingRequestSource.md +12 -0
  158. package/docs/TokenListingRequestStatus.md +14 -0
  159. package/docs/TokensEventData.md +35 -0
  160. package/docs/Transaction.md +5 -2
  161. package/docs/TransactionApprovalDetail.md +3 -0
  162. package/docs/TransactionBIP137Destination.md +10 -0
  163. package/docs/TransactionBIP322Destination.md +10 -0
  164. package/docs/TransactionBabylonBusinessInfo.md +11 -0
  165. package/docs/TransactionBabylonTxParameters.md +15 -0
  166. package/docs/TransactionCoboCategory.md +24 -0
  167. package/docs/TransactionCoreStakeInfo.md +14 -0
  168. package/docs/TransactionCosmosAdr36Destination.md +10 -0
  169. package/docs/TransactionCosmosContractDestination.md +11 -0
  170. package/docs/TransactionCosmosMessage.md +10 -0
  171. package/docs/TransactionCustodialWeb3WalletSource.md +13 -0
  172. package/docs/TransactionDestination.md +6 -0
  173. package/docs/TransactionDestinationType.md +8 -0
  174. package/docs/TransactionDetail.md +5 -2
  175. package/docs/TransactionDetails.md +5 -2
  176. package/docs/TransactionExtra.md +21 -0
  177. package/docs/TransactionExtraType.md +14 -0
  178. package/docs/TransactionFuelingInfo.md +10 -0
  179. package/docs/TransactionMessageSignBTCEIP191Destination.md +10 -0
  180. package/docs/TransactionMessageSignEIP712Destination.md +2 -0
  181. package/docs/TransactionProcessType.md +12 -0
  182. package/docs/TransactionRbfSource.md +1 -1
  183. package/docs/TransactionRequestFee.md +1 -1
  184. package/docs/TransactionRequestUtxoFee.md +1 -1
  185. package/docs/TransactionSelectedUtxo.md +2 -0
  186. package/docs/TransactionSourceType.md +2 -0
  187. package/docs/TransactionSubStatus.md +18 -0
  188. package/docs/TransactionUserApprovalDetail.md +2 -0
  189. package/docs/TransactionWebhookEventData.md +12 -3
  190. package/docs/TransactionsApi.md +61 -4
  191. package/docs/TransferParams.md +1 -14
  192. package/docs/UpdateCustodialWalletParams.md +1 -1
  193. package/docs/UpdateExchangeWalletParams.md +1 -1
  194. package/docs/UpdateMpcWalletParams.md +1 -1
  195. package/docs/UpdateSmartContractWalletParams.md +1 -1
  196. package/docs/UpdateWalletParams.md +1 -1
  197. package/docs/WalletInfoEventData.md +7 -1
  198. package/docs/WalletsApi.md +58 -1
  199. package/docs/WebhookEventData.md +23 -7
  200. package/docs/WebhookEventDataType.md +7 -1
  201. package/docs/WebhookEventType.md +16 -0
  202. package/package.json +1 -1
  203. package/dist/api/SwapsApi.js +0 -360
  204. package/dist/model/CreateSwapQuote201Response.js +0 -264
  205. package/docs/CreateSwapActivityRequest.md +0 -12
  206. package/docs/CreateSwapQuote201Response.md +0 -17
  207. package/docs/CreateSwapQuoteRequest.md +0 -13
  208. package/docs/ListEnableTokenPairs200Response.md +0 -10
  209. package/docs/ListSwapActivities200Response.md +0 -10
  210. package/docs/SwapTokenPair.md +0 -10
  211. package/docs/SwapsApi.md +0 -348
@@ -13,6 +13,7 @@ var _CreateTransferTransaction201Response = _interopRequireDefault(require("../m
13
13
  var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
14
14
  var _EstimateFeeParams = _interopRequireDefault(require("../model/EstimateFeeParams"));
15
15
  var _EstimatedFee = _interopRequireDefault(require("../model/EstimatedFee"));
16
+ var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("../model/ListTransactionApprovalDetails200Response"));
16
17
  var _ListTransactions200Response = _interopRequireDefault(require("../model/ListTransactions200Response"));
17
18
  var _MessageSignParams = _interopRequireDefault(require("../model/MessageSignParams"));
18
19
  var _TransactionApprovalDetail = _interopRequireDefault(require("../model/TransactionApprovalDetail"));
@@ -96,7 +97,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
96
97
 
97
98
  /**
98
99
  * Cancel transaction
99
- * This operation cancels a specified transaction. Canceling a transaction stops it while it is still pending. For more information, see [Cancel a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#cancel-a-transaction). <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note> A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature`
100
+ * This operation cancels a specified transaction. Canceling a transaction stops it while it is still pending. For more information, see [Cancel a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#cancel-a-transaction). <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note> A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` (excluding the `SystemProcessingOngoing` and `SignatureVerificationSuccess` sub-statuses)
100
101
  * @param {String} transaction_id The transaction ID.
101
102
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
102
103
  */
@@ -126,7 +127,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
126
127
 
127
128
  /**
128
129
  * Cancel transaction
129
- * This operation cancels a specified transaction. Canceling a transaction stops it while it is still pending. For more information, see [Cancel a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#cancel-a-transaction). <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note> A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature`
130
+ * This operation cancels a specified transaction. Canceling a transaction stops it while it is still pending. For more information, see [Cancel a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#cancel-a-transaction). <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note> A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` (excluding the `SystemProcessingOngoing` and `SignatureVerificationSuccess` sub-statuses)
130
131
  * @param {String} transaction_id The transaction ID.
131
132
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
132
133
  */
@@ -280,7 +281,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
280
281
 
281
282
  /**
282
283
  * Transfer token
283
- * The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
284
+ * The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. To do this, you should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
284
285
  * @param {Object} opts Optional parameters
285
286
  * @param {module:model/TransferParams} [TransferParams] The request body to create a transfer transaction
286
287
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
@@ -306,7 +307,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
306
307
 
307
308
  /**
308
309
  * Transfer token
309
- * The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
310
+ * The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. To do this, you should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
310
311
  * @param {Object} opts Optional parameters
311
312
  * @param {module:model/TransferParams} opts.TransferParams The request body to create a transfer transaction
312
313
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
@@ -411,7 +412,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
411
412
 
412
413
  /**
413
414
  * Get transaction approval details
414
- * This operation retrieves approval detailed information about a specified transaction.
415
+ * This operation retrieves detailed approval information about a specified transaction.
415
416
  * @param {String} transaction_id The transaction ID.
416
417
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionApprovalDetail} and HTTP response
417
418
  */
@@ -441,7 +442,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
441
442
 
442
443
  /**
443
444
  * Get transaction approval details
444
- * This operation retrieves approval detailed information about a specified transaction.
445
+ * This operation retrieves detailed approval information about a specified transaction.
445
446
  * @param {String} transaction_id The transaction ID.
446
447
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionApprovalDetail}
447
448
  */
@@ -497,6 +498,52 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
497
498
  });
498
499
  }
499
500
 
501
+ /**
502
+ * List transaction approval details
503
+ * This operation retrieves detailed approval information for all transactions.
504
+ * @param {Object} opts Optional parameters
505
+ * @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
506
+ * @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
507
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactionApprovalDetails200Response} and HTTP response
508
+ */
509
+ }, {
510
+ key: "listTransactionApprovalDetailsWithHttpInfo",
511
+ value: function listTransactionApprovalDetailsWithHttpInfo(opts) {
512
+ opts = opts || {};
513
+ var postBody = null;
514
+ if (postBody && postBody.toJSON) {
515
+ postBody = postBody.toJSON();
516
+ }
517
+ var pathParams = {};
518
+ var queryParams = {
519
+ 'transaction_ids': opts['transaction_ids'],
520
+ 'cobo_ids': opts['cobo_ids']
521
+ };
522
+ var headerParams = {};
523
+ var formParams = {};
524
+ var authNames = ['OAuth2', 'CoboAuth'];
525
+ var contentTypes = [];
526
+ var accepts = ['application/json'];
527
+ var returnType = _ListTransactionApprovalDetails200Response["default"];
528
+ return this.apiClient.callApi('/transactions/approval_details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
529
+ }
530
+
531
+ /**
532
+ * List transaction approval details
533
+ * This operation retrieves detailed approval information for all transactions.
534
+ * @param {Object} opts Optional parameters
535
+ * @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
536
+ * @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
537
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactionApprovalDetails200Response}
538
+ */
539
+ }, {
540
+ key: "listTransactionApprovalDetails",
541
+ value: function listTransactionApprovalDetails(opts) {
542
+ return this.listTransactionApprovalDetailsWithHttpInfo(opts).then(function (response_and_data) {
543
+ return response_and_data.data;
544
+ });
545
+ }
546
+
500
547
  /**
501
548
  * List all transactions
502
549
  * This operation retrieves all the transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamps. You can also paginate and sort your query results.
@@ -518,6 +565,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
518
565
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
519
566
  * @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.
520
567
  * @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.
568
+ * @param {module:model/String} [direction = '')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
521
569
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactions200Response} and HTTP response
522
570
  */
523
571
  }, {
@@ -546,7 +594,8 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
546
594
  'max_created_timestamp': opts['max_created_timestamp'],
547
595
  'limit': opts['limit'],
548
596
  'before': opts['before'],
549
- 'after': opts['after']
597
+ 'after': opts['after'],
598
+ 'direction': opts['direction']
550
599
  };
551
600
  var headerParams = {};
552
601
  var formParams = {};
@@ -578,6 +627,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
578
627
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
579
628
  * @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.
580
629
  * @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.
630
+ * @param {module:model/String} opts.direction The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order. (default to '')
581
631
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactions200Response}
582
632
  */
583
633
  }, {
@@ -26,6 +26,8 @@ var _ListWallets200Response = _interopRequireDefault(require("../model/ListWalle
26
26
  var _LockUtxos201Response = _interopRequireDefault(require("../model/LockUtxos201Response"));
27
27
  var _LockUtxosRequest = _interopRequireDefault(require("../model/LockUtxosRequest"));
28
28
  var _MaxTransferableValue = _interopRequireDefault(require("../model/MaxTransferableValue"));
29
+ var _RefreshAddressBalancesByToken200Response = _interopRequireDefault(require("../model/RefreshAddressBalancesByToken200Response"));
30
+ var _RefreshAddressBalancesByTokenRequest = _interopRequireDefault(require("../model/RefreshAddressBalancesByTokenRequest"));
29
31
  var _UpdateWalletParams = _interopRequireDefault(require("../model/UpdateWalletParams"));
30
32
  var _WalletInfo = _interopRequireDefault(require("../model/WalletInfo"));
31
33
  var _WalletSubtype = _interopRequireDefault(require("../model/WalletSubtype"));
@@ -1223,6 +1225,62 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
1223
1225
  });
1224
1226
  }
1225
1227
 
1228
+ /**
1229
+ * Refresh address balances by token
1230
+ * This operation refreshes the balances of specified addresses for a given token within a wallet. The successful return of the request only means that the refresh request has been submitted. <Note>This operation is applicable to MPC Wallets only.</Note>
1231
+ * @param {String} wallet_id The wallet ID.
1232
+ * @param {String} token_id The token ID, which is the unique identifier of a token.
1233
+ * @param {Object} opts Optional parameters
1234
+ * @param {module:model/RefreshAddressBalancesByTokenRequest} [RefreshAddressBalancesByTokenRequest] The request body to refresh addresses balances.
1235
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshAddressBalancesByToken200Response} and HTTP response
1236
+ */
1237
+ }, {
1238
+ key: "refreshAddressBalancesByTokenWithHttpInfo",
1239
+ value: function refreshAddressBalancesByTokenWithHttpInfo(wallet_id, token_id, opts) {
1240
+ opts = opts || {};
1241
+ var postBody = opts['RefreshAddressBalancesByTokenRequest'];
1242
+ if (postBody && postBody.toJSON) {
1243
+ postBody = postBody.toJSON();
1244
+ }
1245
+ // verify the required parameter 'wallet_id' is set
1246
+ if (wallet_id === undefined || wallet_id === null) {
1247
+ throw new Error("Missing the required parameter 'wallet_id' when calling refreshAddressBalancesByToken");
1248
+ }
1249
+ // verify the required parameter 'token_id' is set
1250
+ if (token_id === undefined || token_id === null) {
1251
+ throw new Error("Missing the required parameter 'token_id' when calling refreshAddressBalancesByToken");
1252
+ }
1253
+ var pathParams = {
1254
+ 'wallet_id': wallet_id,
1255
+ 'token_id': token_id
1256
+ };
1257
+ var queryParams = {};
1258
+ var headerParams = {};
1259
+ var formParams = {};
1260
+ var authNames = ['OAuth2', 'CoboAuth'];
1261
+ var contentTypes = ['application/json'];
1262
+ var accepts = ['application/json'];
1263
+ var returnType = _RefreshAddressBalancesByToken200Response["default"];
1264
+ return this.apiClient.callApi('/wallets/{wallet_id}/tokens/{token_id}/refresh_address_balances', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1265
+ }
1266
+
1267
+ /**
1268
+ * Refresh address balances by token
1269
+ * This operation refreshes the balances of specified addresses for a given token within a wallet. The successful return of the request only means that the refresh request has been submitted. <Note>This operation is applicable to MPC Wallets only.</Note>
1270
+ * @param {String} wallet_id The wallet ID.
1271
+ * @param {String} token_id The token ID, which is the unique identifier of a token.
1272
+ * @param {Object} opts Optional parameters
1273
+ * @param {module:model/RefreshAddressBalancesByTokenRequest} opts.RefreshAddressBalancesByTokenRequest The request body to refresh addresses balances.
1274
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshAddressBalancesByToken200Response}
1275
+ */
1276
+ }, {
1277
+ key: "refreshAddressBalancesByToken",
1278
+ value: function refreshAddressBalancesByToken(wallet_id, token_id, opts) {
1279
+ return this.refreshAddressBalancesByTokenWithHttpInfo(wallet_id, token_id, opts).then(function (response_and_data) {
1280
+ return response_and_data.data;
1281
+ });
1282
+ }
1283
+
1226
1284
  /**
1227
1285
  * Unlock UTXOs
1228
1286
  * This operation unlocks the UTXOs with specified transaction hashes. Locked UTXOs cannot be transferred until unlocked. <Note>This operation is applicable to MPC Wallets only.</Note>
@@ -1274,7 +1332,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
1274
1332
 
1275
1333
  /**
1276
1334
  * Update wallet
1277
- * This operation updates the information of a specified wallet. For Exchange Wallets, you can update the API key, API secret, and other information about your exchange accounts with this operation. For other wallet types, you can only update the wallet name.
1335
+ * This operation updates the information of a specified wallet.
1278
1336
  * @param {String} wallet_id The wallet ID.
1279
1337
  * @param {Object} opts Optional parameters
1280
1338
  * @param {module:model/UpdateWalletParams} [UpdateWalletParams] The request body.
@@ -1307,7 +1365,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
1307
1365
 
1308
1366
  /**
1309
1367
  * Update wallet
1310
- * This operation updates the information of a specified wallet. For Exchange Wallets, you can update the API key, API secret, and other information about your exchange accounts with this operation. For other wallet types, you can only update the wallet name.
1368
+ * This operation updates the information of a specified wallet.
1311
1369
  * @param {String} wallet_id The wallet ID.
1312
1370
  * @param {Object} opts Optional parameters
1313
1371
  * @param {module:model/UpdateWalletParams} opts.UpdateWalletParams The request body.