@cobo/cobo-waas2 1.16.0 → 1.17.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 (76) hide show
  1. package/README.md +13 -5
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +27 -33
  4. package/dist/api/AppWorkflowsApi.js +22 -22
  5. package/dist/api/OAuthApi.js +93 -6
  6. package/dist/api/PaymentApi.js +91 -98
  7. package/dist/api/WalletsApi.js +6 -6
  8. package/dist/index.js +49 -7
  9. package/dist/model/AppWorkflow.js +7 -7
  10. package/dist/model/AppWorkflowField.js +5 -5
  11. package/dist/model/AppWorkflowPolicy.js +1 -1
  12. package/dist/model/ApprovalEntry.js +1 -1
  13. package/dist/model/ApprovalRequest.js +5 -3
  14. package/dist/model/ApprovalRequestDetail.js +2 -1
  15. package/dist/model/ApprovalUser.js +4 -4
  16. package/dist/model/ChainInfo.js +1 -1
  17. package/dist/model/CreateApprovalRequest201Response.js +2 -1
  18. package/dist/model/CreatePaymentOrderRequest.js +5 -5
  19. package/dist/model/CreateRefundRequest.js +35 -0
  20. package/dist/model/CreateSettlement.js +35 -0
  21. package/dist/model/CryptoAddress.js +171 -0
  22. package/dist/model/CustodialTransferDestination.js +137 -0
  23. package/dist/model/ExchangePermissionToken201Response.js +122 -0
  24. package/dist/model/{CreateBankAccountRequest.js → ExchangePermissionTokenRequest.js} +30 -28
  25. package/dist/model/Order.js +4 -4
  26. package/dist/model/PaymentOrderEventData.js +6 -6
  27. package/dist/model/PayoutChannel.js +61 -0
  28. package/dist/model/PolicyAction.js +1 -1
  29. package/dist/model/PolicyActionContent.js +6 -4
  30. package/dist/model/PolicyCondition.js +5 -5
  31. package/dist/model/RefreshPermissionTokenRequest.js +110 -0
  32. package/dist/model/RequestApproval.js +9 -9
  33. package/dist/model/RevokeApprovalRequest201Response.js +2 -1
  34. package/dist/model/RevokeApprovalRequestRequest.js +2 -2
  35. package/dist/model/SettlementDetail.js +9 -0
  36. package/dist/model/SupportedToken.js +222 -0
  37. package/dist/model/TransactionDestination.js +4 -0
  38. package/dist/model/TransactionDestinationType.js +5 -0
  39. package/dist/model/TransactionTransferToWalletDestination.js +2 -2
  40. package/dist/model/TransferDestination.js +42 -14
  41. package/dist/model/TransferDestinationType.js +5 -0
  42. package/docs/AppWorkflow.md +3 -3
  43. package/docs/AppWorkflowField.md +2 -2
  44. package/docs/AppWorkflowsApi.md +12 -12
  45. package/docs/ApprovalRequest.md +2 -2
  46. package/docs/ApprovalRequestDetail.md +1 -1
  47. package/docs/ApprovalUser.md +2 -2
  48. package/docs/ChainInfo.md +1 -1
  49. package/docs/CreateApprovalRequest201Response.md +1 -1
  50. package/docs/CreatePaymentOrderRequest.md +1 -1
  51. package/docs/CreateRefundRequest.md +3 -0
  52. package/docs/CreateSettlement.md +3 -0
  53. package/docs/CryptoAddress.md +14 -0
  54. package/docs/CustodialTransferDestination.md +11 -0
  55. package/docs/ExchangePermissionToken201Response.md +12 -0
  56. package/docs/ExchangePermissionTokenRequest.md +9 -0
  57. package/docs/OAuthApi.md +102 -0
  58. package/docs/Order.md +2 -2
  59. package/docs/PaymentApi.md +80 -86
  60. package/docs/PaymentOrderEventData.md +2 -2
  61. package/docs/PayoutChannel.md +12 -0
  62. package/docs/PolicyActionContent.md +4 -4
  63. package/docs/PolicyCondition.md +2 -2
  64. package/docs/RefreshPermissionTokenRequest.md +9 -0
  65. package/docs/RequestApproval.md +4 -4
  66. package/docs/RevokeApprovalRequest201Response.md +1 -1
  67. package/docs/RevokeApprovalRequestRequest.md +1 -1
  68. package/docs/SettlementDetail.md +1 -0
  69. package/docs/SupportedToken.md +17 -0
  70. package/docs/TransactionDestinationType.md +2 -0
  71. package/docs/TransactionTransferToWalletDestination.md +1 -1
  72. package/docs/TransferDestination.md +1 -1
  73. package/docs/TransferDestinationType.md +2 -0
  74. package/docs/WalletsApi.md +3 -3
  75. package/package.json +1 -1
  76. package/docs/CreateBankAccountRequest.md +0 -9
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _BankAccount = _interopRequireDefault(require("../model/BankAccount"));
9
- var _CreateBankAccountRequest = _interopRequireDefault(require("../model/CreateBankAccountRequest"));
10
9
  var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
11
10
  var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/CreatePaymentOrderRequest"));
12
11
  var _CreateRefundRequest = _interopRequireDefault(require("../model/CreateRefundRequest"));
13
12
  var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/CreateSettlementRequestRequest"));
13
+ var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
14
14
  var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
15
15
  var _GetExchangeRate200Response = _interopRequireDefault(require("../model/GetExchangeRate200Response"));
16
16
  var _GetRefunds200Response = _interopRequireDefault(require("../model/GetRefunds200Response"));
@@ -22,6 +22,7 @@ var _Merchant = _interopRequireDefault(require("../model/Merchant"));
22
22
  var _Order = _interopRequireDefault(require("../model/Order"));
23
23
  var _Refund = _interopRequireDefault(require("../model/Refund"));
24
24
  var _Settlement = _interopRequireDefault(require("../model/Settlement"));
25
+ var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"));
25
26
  var _UpdateMerchantByIdRequest = _interopRequireDefault(require("../model/UpdateMerchantByIdRequest"));
26
27
  var _UpdatePaymentOrderRequest = _interopRequireDefault(require("../model/UpdatePaymentOrderRequest"));
27
28
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -58,54 +59,13 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
58
59
  }
59
60
 
60
61
  /**
61
- * Create bank account
62
- * This operation registers a bank account for payment settlement. Upon successful registration, the bank account details can be retrieved using the assigned bank account ID.
62
+ * Create merchant
63
+ * This operation creates a merchant and links it to a specified wallet. Payments to the merchant will be deposited into the linked wallet. Upon successful creation, a merchant ID is generated and returned along with the merchant's information.
63
64
  * @param {Object} opts Optional parameters
64
- * @param {module:model/CreateBankAccountRequest} [CreateBankAccountRequest] The request body to register a bank account.
65
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BankAccount} and HTTP response
65
+ * @param {module:model/CreateMerchantRequest} [CreateMerchantRequest] The request body to create a merchant.
66
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Merchant} and HTTP response
66
67
  */
67
68
  return _createClass(PaymentApi, [{
68
- key: "createBankAccountWithHttpInfo",
69
- value: function createBankAccountWithHttpInfo(opts) {
70
- opts = opts || {};
71
- var postBody = opts['CreateBankAccountRequest'];
72
- if (postBody && postBody.toJSON) {
73
- postBody = postBody.toJSON();
74
- }
75
- var pathParams = {};
76
- var queryParams = {};
77
- var headerParams = {};
78
- var formParams = {};
79
- var authNames = ['OAuth2', 'CoboAuth'];
80
- var contentTypes = ['application/json'];
81
- var accepts = ['application/json'];
82
- var returnType = _BankAccount["default"];
83
- return this.apiClient.callApi('/payments/bank_accounts', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
84
- }
85
-
86
- /**
87
- * Create bank account
88
- * This operation registers a bank account for payment settlement. Upon successful registration, the bank account details can be retrieved using the assigned bank account ID.
89
- * @param {Object} opts Optional parameters
90
- * @param {module:model/CreateBankAccountRequest} opts.CreateBankAccountRequest The request body to register a bank account.
91
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BankAccount}
92
- */
93
- }, {
94
- key: "createBankAccount",
95
- value: function createBankAccount(opts) {
96
- return this.createBankAccountWithHttpInfo(opts).then(function (response_and_data) {
97
- return response_and_data.data;
98
- });
99
- }
100
-
101
- /**
102
- * Create merchant
103
- * This operation creates a merchant and links it to a specified wallet. Payments to the merchant will be deposited into the linked wallet. Upon successful creation, a merchant ID is generated and returned along with the merchant's information.
104
- * @param {Object} opts Optional parameters
105
- * @param {module:model/CreateMerchantRequest} [CreateMerchantRequest] The request body to create a merchant.
106
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Merchant} and HTTP response
107
- */
108
- }, {
109
69
  key: "createMerchantWithHttpInfo",
110
70
  value: function createMerchantWithHttpInfo(opts) {
111
71
  opts = opts || {};
@@ -548,7 +508,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
548
508
 
549
509
  /**
550
510
  * List all bank accounts
551
- * This operation retrieves the information of all bank accounts registered.
511
+ * This operation retrieves the information of all bank accounts you have registered for payment settlement. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new bank account.
552
512
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/BankAccount>} and HTTP response
553
513
  */
554
514
  }, {
@@ -571,7 +531,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
571
531
 
572
532
  /**
573
533
  * List all bank accounts
574
- * This operation retrieves the information of all bank accounts registered.
534
+ * This operation retrieves the information of all bank accounts you have registered for payment settlement. Contact our support team at [help@cobo.com](mailto:help@cobo.com) to register a new bank account.
575
535
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/BankAccount>}
576
536
  */
577
537
  }, {
@@ -582,6 +542,49 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
582
542
  });
583
543
  }
584
544
 
545
+ /**
546
+ * List crypto addresses
547
+ * Retrieve a list of cryptocurrency addresses previously created for a given `token_id`.
548
+ * @param {Object} opts Optional parameters
549
+ * @param {String} [token_id] The token ID, which identifies the cryptocurrency. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
550
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/CryptoAddress>} and HTTP response
551
+ */
552
+ }, {
553
+ key: "listCryptoAddressesWithHttpInfo",
554
+ value: function listCryptoAddressesWithHttpInfo(opts) {
555
+ opts = opts || {};
556
+ var postBody = null;
557
+ if (postBody && postBody.toJSON) {
558
+ postBody = postBody.toJSON();
559
+ }
560
+ var pathParams = {};
561
+ var queryParams = {
562
+ 'token_id': opts['token_id']
563
+ };
564
+ var headerParams = {};
565
+ var formParams = {};
566
+ var authNames = ['OAuth2', 'CoboAuth'];
567
+ var contentTypes = [];
568
+ var accepts = ['application/json'];
569
+ var returnType = [_CryptoAddress["default"]];
570
+ return this.apiClient.callApi('/payments/crypto_addresses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
571
+ }
572
+
573
+ /**
574
+ * List crypto addresses
575
+ * Retrieve a list of cryptocurrency addresses previously created for a given `token_id`.
576
+ * @param {Object} opts Optional parameters
577
+ * @param {String} opts.token_id The token ID, which identifies the cryptocurrency. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
578
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/CryptoAddress>}
579
+ */
580
+ }, {
581
+ key: "listCryptoAddresses",
582
+ value: function listCryptoAddresses(opts) {
583
+ return this.listCryptoAddressesWithHttpInfo(opts).then(function (response_and_data) {
584
+ return response_and_data.data;
585
+ });
586
+ }
587
+
585
588
  /**
586
589
  * List all merchants
587
590
  * This operation retrieves the information of all merchants. You can filter the results by using a keyword for fuzzy search on merchant names or by specifying a wallet ID.
@@ -645,6 +648,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
645
648
  * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
646
649
  * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
647
650
  * @param {String} [merchant_id] The merchant ID.
651
+ * @param {String} [psp_order_id] The PSP order ID.
648
652
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPaymentOrders200Response} and HTTP response
649
653
  */
650
654
  }, {
@@ -660,7 +664,8 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
660
664
  'limit': opts['limit'],
661
665
  'before': opts['before'],
662
666
  'after': opts['after'],
663
- 'merchant_id': opts['merchant_id']
667
+ 'merchant_id': opts['merchant_id'],
668
+ 'psp_order_id': opts['psp_order_id']
664
669
  };
665
670
  var headerParams = {};
666
671
  var formParams = {};
@@ -679,6 +684,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
679
684
  * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
680
685
  * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
681
686
  * @param {String} opts.merchant_id The merchant ID.
687
+ * @param {String} opts.psp_order_id The PSP order ID.
682
688
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPaymentOrders200Response}
683
689
  */
684
690
  }, {
@@ -689,6 +695,42 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
689
695
  });
690
696
  }
691
697
 
698
+ /**
699
+ * List all supported tokens
700
+ * This operation retrieves the information of all supported tokens.
701
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/SupportedToken>} and HTTP response
702
+ */
703
+ }, {
704
+ key: "listPaymentSupportedTokensWithHttpInfo",
705
+ value: function listPaymentSupportedTokensWithHttpInfo() {
706
+ var postBody = null;
707
+ if (postBody && postBody.toJSON) {
708
+ postBody = postBody.toJSON();
709
+ }
710
+ var pathParams = {};
711
+ var queryParams = {};
712
+ var headerParams = {};
713
+ var formParams = {};
714
+ var authNames = ['OAuth2', 'CoboAuth'];
715
+ var contentTypes = [];
716
+ var accepts = ['application/json'];
717
+ var returnType = [_SupportedToken["default"]];
718
+ return this.apiClient.callApi('/payments/supported_tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
719
+ }
720
+
721
+ /**
722
+ * List all supported tokens
723
+ * This operation retrieves the information of all supported tokens.
724
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/SupportedToken>}
725
+ */
726
+ }, {
727
+ key: "listPaymentSupportedTokens",
728
+ value: function listPaymentSupportedTokens() {
729
+ return this.listPaymentSupportedTokensWithHttpInfo().then(function (response_and_data) {
730
+ return response_and_data.data;
731
+ });
732
+ }
733
+
692
734
  /**
693
735
  * List all settlement requests
694
736
  * This operation retrieves the information of all settlement requests.
@@ -741,55 +783,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
741
783
  });
742
784
  }
743
785
 
744
- /**
745
- * Update bank account
746
- * This operation updates the information of an existing bank account.
747
- * @param {String} bank_account_id The bank account ID.
748
- * @param {Object} opts Optional parameters
749
- * @param {module:model/CreateBankAccountRequest} [CreateBankAccountRequest] The request body for updating an existing bank account.
750
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BankAccount} and HTTP response
751
- */
752
- }, {
753
- key: "updateBankAccountByIdWithHttpInfo",
754
- value: function updateBankAccountByIdWithHttpInfo(bank_account_id, opts) {
755
- opts = opts || {};
756
- var postBody = opts['CreateBankAccountRequest'];
757
- if (postBody && postBody.toJSON) {
758
- postBody = postBody.toJSON();
759
- }
760
- // verify the required parameter 'bank_account_id' is set
761
- if (bank_account_id === undefined || bank_account_id === null) {
762
- throw new Error("Missing the required parameter 'bank_account_id' when calling updateBankAccountById");
763
- }
764
- var pathParams = {
765
- 'bank_account_id': bank_account_id
766
- };
767
- var queryParams = {};
768
- var headerParams = {};
769
- var formParams = {};
770
- var authNames = ['OAuth2', 'CoboAuth'];
771
- var contentTypes = ['application/json'];
772
- var accepts = ['application/json'];
773
- var returnType = _BankAccount["default"];
774
- return this.apiClient.callApi('/payments/bank_accounts/{bank_account_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
775
- }
776
-
777
- /**
778
- * Update bank account
779
- * This operation updates the information of an existing bank account.
780
- * @param {String} bank_account_id The bank account ID.
781
- * @param {Object} opts Optional parameters
782
- * @param {module:model/CreateBankAccountRequest} opts.CreateBankAccountRequest The request body for updating an existing bank account.
783
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BankAccount}
784
- */
785
- }, {
786
- key: "updateBankAccountById",
787
- value: function updateBankAccountById(bank_account_id, opts) {
788
- return this.updateBankAccountByIdWithHttpInfo(bank_account_id, opts).then(function (response_and_data) {
789
- return response_and_data.data;
790
- });
791
- }
792
-
793
786
  /**
794
787
  * Update merchant
795
788
  * This operation updates the information of an existing merchant.
@@ -74,10 +74,10 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
74
74
 
75
75
  /**
76
76
  * Batch check UTXOs
77
- * The operation check a list of unspent transaction outputs (UTXOs) for a specified wallet and token. <Note>This operation is applicable to MPC and Custodial Web3 Wallets. This interface can only withdraw a maximum of 100 utxos</Note>
77
+ * This operation verifies the existence and details of specified unspent transaction outputs (UTXOs) for a given wallet and token. A maximum of 100 UTXOs can be verified per request. <Note>This operation is applicable to MPC Wallets and Custodial Wallets (Web3 Wallets) only.</Note>
78
78
  * @param {String} wallet_id The wallet ID.
79
79
  * @param {Object} opts Optional parameters
80
- * @param {module:model/BatchCheckUtxoRequest} [BatchCheckUtxoRequest] The request body of the batch check UTXOs operation.
80
+ * @param {module:model/BatchCheckUtxoRequest} [BatchCheckUtxoRequest] The request body of the Batch check UTXOs operation.
81
81
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BatchCheckUtxo201Response} and HTTP response
82
82
  */
83
83
  return _createClass(WalletsApi, [{
@@ -107,10 +107,10 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
107
107
 
108
108
  /**
109
109
  * Batch check UTXOs
110
- * The operation check a list of unspent transaction outputs (UTXOs) for a specified wallet and token. <Note>This operation is applicable to MPC and Custodial Web3 Wallets. This interface can only withdraw a maximum of 100 utxos</Note>
110
+ * This operation verifies the existence and details of specified unspent transaction outputs (UTXOs) for a given wallet and token. A maximum of 100 UTXOs can be verified per request. <Note>This operation is applicable to MPC Wallets and Custodial Wallets (Web3 Wallets) only.</Note>
111
111
  * @param {String} wallet_id The wallet ID.
112
112
  * @param {Object} opts Optional parameters
113
- * @param {module:model/BatchCheckUtxoRequest} opts.BatchCheckUtxoRequest The request body of the batch check UTXOs operation.
113
+ * @param {module:model/BatchCheckUtxoRequest} opts.BatchCheckUtxoRequest The request body of the Batch check UTXOs operation.
114
114
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BatchCheckUtxo201Response}
115
115
  */
116
116
  }, {
@@ -1241,7 +1241,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
1241
1241
 
1242
1242
  /**
1243
1243
  * List UTXOs
1244
- * The operation retrieves a list of unspent transaction outputs (UTXOs) for a specified wallet and token. <Note>This operation is applicable to MPC and Custodial Web3 Wallets.</Note>
1244
+ * The operation retrieves a list of unspent transaction outputs (UTXOs) for a specified wallet and token. <Note>This operation is applicable to MPC Wallets and Custodial Wallets (Web3 Wallets) only.</Note>
1245
1245
  * @param {String} wallet_id The wallet ID.
1246
1246
  * @param {String} token_id The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
1247
1247
  * @param {Object} opts Optional parameters
@@ -1290,7 +1290,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
1290
1290
 
1291
1291
  /**
1292
1292
  * List UTXOs
1293
- * The operation retrieves a list of unspent transaction outputs (UTXOs) for a specified wallet and token. <Note>This operation is applicable to MPC and Custodial Web3 Wallets.</Note>
1293
+ * The operation retrieves a list of unspent transaction outputs (UTXOs) for a specified wallet and token. <Note>This operation is applicable to MPC Wallets and Custodial Wallets (Web3 Wallets) only.</Note>
1294
1294
  * @param {String} wallet_id The wallet ID.
1295
1295
  * @param {String} token_id The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
1296
1296
  * @param {Object} opts Optional parameters
package/dist/index.js CHANGED
@@ -525,12 +525,6 @@ Object.defineProperty(exports, "CreateBabylonStakingRegistrationRequest", {
525
525
  return _CreateBabylonStakingRegistrationRequest["default"];
526
526
  }
527
527
  });
528
- Object.defineProperty(exports, "CreateBankAccountRequest", {
529
- enumerable: true,
530
- get: function get() {
531
- return _CreateBankAccountRequest["default"];
532
- }
533
- });
534
528
  Object.defineProperty(exports, "CreateClaimActivity", {
535
529
  enumerable: true,
536
530
  get: function get() {
@@ -735,12 +729,24 @@ Object.defineProperty(exports, "CreatedWalletInfo", {
735
729
  return _CreatedWalletInfo["default"];
736
730
  }
737
731
  });
732
+ Object.defineProperty(exports, "CryptoAddress", {
733
+ enumerable: true,
734
+ get: function get() {
735
+ return _CryptoAddress["default"];
736
+ }
737
+ });
738
738
  Object.defineProperty(exports, "CurveType", {
739
739
  enumerable: true,
740
740
  get: function get() {
741
741
  return _CurveType["default"];
742
742
  }
743
743
  });
744
+ Object.defineProperty(exports, "CustodialTransferDestination", {
745
+ enumerable: true,
746
+ get: function get() {
747
+ return _CustodialTransferDestination["default"];
748
+ }
749
+ });
744
750
  Object.defineProperty(exports, "CustodialTransferSource", {
745
751
  enumerable: true,
746
752
  get: function get() {
@@ -1023,6 +1029,18 @@ Object.defineProperty(exports, "ExchangeId", {
1023
1029
  return _ExchangeId["default"];
1024
1030
  }
1025
1031
  });
1032
+ Object.defineProperty(exports, "ExchangePermissionToken201Response", {
1033
+ enumerable: true,
1034
+ get: function get() {
1035
+ return _ExchangePermissionToken201Response["default"];
1036
+ }
1037
+ });
1038
+ Object.defineProperty(exports, "ExchangePermissionTokenRequest", {
1039
+ enumerable: true,
1040
+ get: function get() {
1041
+ return _ExchangePermissionTokenRequest["default"];
1042
+ }
1043
+ });
1026
1044
  Object.defineProperty(exports, "ExchangeTransferDestination", {
1027
1045
  enumerable: true,
1028
1046
  get: function get() {
@@ -1629,6 +1647,12 @@ Object.defineProperty(exports, "PaymentTransaction", {
1629
1647
  return _PaymentTransaction["default"];
1630
1648
  }
1631
1649
  });
1650
+ Object.defineProperty(exports, "PayoutChannel", {
1651
+ enumerable: true,
1652
+ get: function get() {
1653
+ return _PayoutChannel["default"];
1654
+ }
1655
+ });
1632
1656
  Object.defineProperty(exports, "PolicyAction", {
1633
1657
  enumerable: true,
1634
1658
  get: function get() {
@@ -1725,6 +1749,12 @@ Object.defineProperty(exports, "RefreshAddressBalancesByTokenRequest", {
1725
1749
  return _RefreshAddressBalancesByTokenRequest["default"];
1726
1750
  }
1727
1751
  });
1752
+ Object.defineProperty(exports, "RefreshPermissionTokenRequest", {
1753
+ enumerable: true,
1754
+ get: function get() {
1755
+ return _RefreshPermissionTokenRequest["default"];
1756
+ }
1757
+ });
1728
1758
  Object.defineProperty(exports, "RefreshToken2XXResponse", {
1729
1759
  enumerable: true,
1730
1760
  get: function get() {
@@ -2025,6 +2055,12 @@ Object.defineProperty(exports, "SubmitDepositTravelRuleInfo201Response", {
2025
2055
  return _SubmitDepositTravelRuleInfo201Response["default"];
2026
2056
  }
2027
2057
  });
2058
+ Object.defineProperty(exports, "SupportedToken", {
2059
+ enumerable: true,
2060
+ get: function get() {
2061
+ return _SupportedToken["default"];
2062
+ }
2063
+ });
2028
2064
  Object.defineProperty(exports, "SwapActivity", {
2029
2065
  enumerable: true,
2030
2066
  get: function get() {
@@ -3259,7 +3295,6 @@ var _CreateBabylonAirdropRegistration201Response = _interopRequireDefault(requir
3259
3295
  var _CreateBabylonAirdropRegistrationRequest = _interopRequireDefault(require("./model/CreateBabylonAirdropRegistrationRequest"));
3260
3296
  var _CreateBabylonStakingRegistration201Response = _interopRequireDefault(require("./model/CreateBabylonStakingRegistration201Response"));
3261
3297
  var _CreateBabylonStakingRegistrationRequest = _interopRequireDefault(require("./model/CreateBabylonStakingRegistrationRequest"));
3262
- var _CreateBankAccountRequest = _interopRequireDefault(require("./model/CreateBankAccountRequest"));
3263
3298
  var _CreateClaimActivity = _interopRequireDefault(require("./model/CreateClaimActivity"));
3264
3299
  var _CreateClaimActivityRequest = _interopRequireDefault(require("./model/CreateClaimActivityRequest"));
3265
3300
  var _CreateCustodialWalletParams = _interopRequireDefault(require("./model/CreateCustodialWalletParams"));
@@ -3294,7 +3329,9 @@ var _CreateWebhookEndpointRequest = _interopRequireDefault(require("./model/Crea
3294
3329
  var _CreateWithdrawActivity = _interopRequireDefault(require("./model/CreateWithdrawActivity"));
3295
3330
  var _CreateWithdrawActivityRequest = _interopRequireDefault(require("./model/CreateWithdrawActivityRequest"));
3296
3331
  var _CreatedWalletInfo = _interopRequireDefault(require("./model/CreatedWalletInfo"));
3332
+ var _CryptoAddress = _interopRequireDefault(require("./model/CryptoAddress"));
3297
3333
  var _CurveType = _interopRequireDefault(require("./model/CurveType"));
3334
+ var _CustodialTransferDestination = _interopRequireDefault(require("./model/CustodialTransferDestination"));
3298
3335
  var _CustodialTransferSource = _interopRequireDefault(require("./model/CustodialTransferSource"));
3299
3336
  var _CustodialWalletInfo = _interopRequireDefault(require("./model/CustodialWalletInfo"));
3300
3337
  var _CustodialWeb3ContractCallSource = _interopRequireDefault(require("./model/CustodialWeb3ContractCallSource"));
@@ -3338,6 +3375,8 @@ var _EvmEip1559FeeRate = _interopRequireDefault(require("./model/EvmEip1559FeeRa
3338
3375
  var _EvmLegacyFeeBasePrice = _interopRequireDefault(require("./model/EvmLegacyFeeBasePrice"));
3339
3376
  var _EvmLegacyFeeRate = _interopRequireDefault(require("./model/EvmLegacyFeeRate"));
3340
3377
  var _ExchangeId = _interopRequireDefault(require("./model/ExchangeId"));
3378
+ var _ExchangePermissionToken201Response = _interopRequireDefault(require("./model/ExchangePermissionToken201Response"));
3379
+ var _ExchangePermissionTokenRequest = _interopRequireDefault(require("./model/ExchangePermissionTokenRequest"));
3341
3380
  var _ExchangeTransferDestination = _interopRequireDefault(require("./model/ExchangeTransferDestination"));
3342
3381
  var _ExchangeTransferSource = _interopRequireDefault(require("./model/ExchangeTransferSource"));
3343
3382
  var _ExchangeWalletInfo = _interopRequireDefault(require("./model/ExchangeWalletInfo"));
@@ -3436,6 +3475,7 @@ var _PaymentOrderEventData = _interopRequireDefault(require("./model/PaymentOrde
3436
3475
  var _PaymentRefundEventData = _interopRequireDefault(require("./model/PaymentRefundEventData"));
3437
3476
  var _PaymentSettlementEvent = _interopRequireDefault(require("./model/PaymentSettlementEvent"));
3438
3477
  var _PaymentTransaction = _interopRequireDefault(require("./model/PaymentTransaction"));
3478
+ var _PayoutChannel = _interopRequireDefault(require("./model/PayoutChannel"));
3439
3479
  var _PolicyAction = _interopRequireDefault(require("./model/PolicyAction"));
3440
3480
  var _PolicyActionContent = _interopRequireDefault(require("./model/PolicyActionContent"));
3441
3481
  var _PolicyActionType = _interopRequireDefault(require("./model/PolicyActionType"));
@@ -3451,6 +3491,7 @@ var _QueryGuardPubkey200ResponseAddressesInner = _interopRequireDefault(require(
3451
3491
  var _RawMessageSignDestination = _interopRequireDefault(require("./model/RawMessageSignDestination"));
3452
3492
  var _RefreshAddressBalancesByToken200Response = _interopRequireDefault(require("./model/RefreshAddressBalancesByToken200Response"));
3453
3493
  var _RefreshAddressBalancesByTokenRequest = _interopRequireDefault(require("./model/RefreshAddressBalancesByTokenRequest"));
3494
+ var _RefreshPermissionTokenRequest = _interopRequireDefault(require("./model/RefreshPermissionTokenRequest"));
3454
3495
  var _RefreshToken2XXResponse = _interopRequireDefault(require("./model/RefreshToken2XXResponse"));
3455
3496
  var _RefreshTokenRequest = _interopRequireDefault(require("./model/RefreshTokenRequest"));
3456
3497
  var _Refund = _interopRequireDefault(require("./model/Refund"));
@@ -3499,6 +3540,7 @@ var _Stakings = _interopRequireDefault(require("./model/Stakings"));
3499
3540
  var _StakingsExtra = _interopRequireDefault(require("./model/StakingsExtra"));
3500
3541
  var _SubWalletAssetBalance = _interopRequireDefault(require("./model/SubWalletAssetBalance"));
3501
3542
  var _SubmitDepositTravelRuleInfo201Response = _interopRequireDefault(require("./model/SubmitDepositTravelRuleInfo201Response"));
3543
+ var _SupportedToken = _interopRequireDefault(require("./model/SupportedToken"));
3502
3544
  var _SwapActivity = _interopRequireDefault(require("./model/SwapActivity"));
3503
3545
  var _SwapActivityApprovers = _interopRequireDefault(require("./model/SwapActivityApprovers"));
3504
3546
  var _SwapActivityDetail = _interopRequireDefault(require("./model/SwapActivityDetail"));
@@ -32,11 +32,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var AppWorkflow = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>AppWorkflow</code>.
35
- * The information of an app workflow approval user entry.
35
+ * The information of an approval workflow
36
36
  * @alias module:model/AppWorkflow
37
- * @param workflow_id {String} The workflow id.
38
- * @param operation_id {String} The workflow operation id.
39
- * @param operation_name {String} The workflow operation name.
37
+ * @param workflow_id {String} The unique ID distinguishing the approval workflow instance among organizations.
38
+ * @param operation_id {String} The unique ID of the approval workflow.
39
+ * @param operation_name {String} The name of the approval workflow.
40
40
  * @param current_policies {Array.<module:model/AppWorkflowPolicy>}
41
41
  */
42
42
  function AppWorkflow(workflow_id, operation_id, operation_name, current_policies) {
@@ -149,19 +149,19 @@ var AppWorkflow = /*#__PURE__*/function () {
149
149
  AppWorkflow.RequiredProperties = ["workflow_id", "operation_id", "operation_name", "current_policies"];
150
150
 
151
151
  /**
152
- * The workflow id.
152
+ * The unique ID distinguishing the approval workflow instance among organizations.
153
153
  * @member {String} workflow_id
154
154
  */
155
155
  AppWorkflow.prototype['workflow_id'] = undefined;
156
156
 
157
157
  /**
158
- * The workflow operation id.
158
+ * The unique ID of the approval workflow.
159
159
  * @member {String} operation_id
160
160
  */
161
161
  AppWorkflow.prototype['operation_id'] = undefined;
162
162
 
163
163
  /**
164
- * The workflow operation name.
164
+ * The name of the approval workflow.
165
165
  * @member {String} operation_name
166
166
  */
167
167
  AppWorkflow.prototype['operation_name'] = undefined;
@@ -32,11 +32,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var AppWorkflowField = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>AppWorkflowField</code>.
35
- * The information of an app workflow field.
35
+ * The information of a workflow field.
36
36
  * @alias module:model/AppWorkflowField
37
- * @param field {String} The app workflow field name.
37
+ * @param field {String} The workflow field name.
38
38
  * @param value_type {module:model/PolicyFieldValueType}
39
- * @param value {String} The app workflow field value.
39
+ * @param value {String} The workflow field value.
40
40
  */
41
41
  function AppWorkflowField(field, value_type, value) {
42
42
  _classCallCheck(this, AppWorkflowField);
@@ -119,7 +119,7 @@ var AppWorkflowField = /*#__PURE__*/function () {
119
119
  AppWorkflowField.RequiredProperties = ["field", "value_type", "value"];
120
120
 
121
121
  /**
122
- * The app workflow field name.
122
+ * The workflow field name.
123
123
  * @member {String} field
124
124
  */
125
125
  AppWorkflowField.prototype['field'] = undefined;
@@ -130,7 +130,7 @@ AppWorkflowField.prototype['field'] = undefined;
130
130
  AppWorkflowField.prototype['value_type'] = undefined;
131
131
 
132
132
  /**
133
- * The app workflow field value.
133
+ * The workflow field value.
134
134
  * @member {String} value
135
135
  */
136
136
  AppWorkflowField.prototype['value'] = undefined;
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var AppWorkflowPolicy = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>AppWorkflowPolicy</code>.
36
- * The information of an app workflow policy entry.
36
+ * The current approval workflow policy, consisting of one or more conditions and an associated action. When the conditions are met, the action is triggered.
37
37
  * @alias module:model/AppWorkflowPolicy
38
38
  * @param action {module:model/PolicyAction}
39
39
  */
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var ApprovalEntry = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>ApprovalEntry</code>.
36
- * The information of an app workflow approval entry.
36
+ * The information of an approval request.
37
37
  * @alias module:model/ApprovalEntry
38
38
  * @param status {module:model/ApprovalStatus}
39
39
  * @param created_timestamp {Number} The time when the approval was created, in Unix timestamp format, measured in milliseconds.
@@ -33,10 +33,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var ApprovalRequest = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>ApprovalRequest</code>.
36
- * The information of an app workflow approval.
36
+ * The information of an approval request.
37
37
  * @alias module:model/ApprovalRequest
38
- * @param approval_id {String}
39
- * @param request_id {String}
38
+ * @param approval_id {String} The system-generated unique ID of the approval request.
39
+ * @param request_id {String} An identifier provided by you when requesting the approval.
40
40
  * @param fields {Array.<module:model/AppWorkflowField>}
41
41
  * @param status {module:model/ApprovalStatus}
42
42
  * @param initiated_timestamp {Number} The time when the approval was initiated, in Unix timestamp format, measured in milliseconds.
@@ -151,11 +151,13 @@ var ApprovalRequest = /*#__PURE__*/function () {
151
151
  ApprovalRequest.RequiredProperties = ["approval_id", "request_id", "fields", "status", "initiated_timestamp"];
152
152
 
153
153
  /**
154
+ * The system-generated unique ID of the approval request.
154
155
  * @member {String} approval_id
155
156
  */
156
157
  ApprovalRequest.prototype['approval_id'] = undefined;
157
158
 
158
159
  /**
160
+ * An identifier provided by you when requesting the approval.
159
161
  * @member {String} request_id
160
162
  */
161
163
  ApprovalRequest.prototype['request_id'] = undefined;
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
34
34
  var ApprovalRequestDetail = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>ApprovalRequestDetail</code>.
37
- * The information of an app workflow approval detail.
37
+ * The information of an approval request detail.
38
38
  * @alias module:model/ApprovalRequestDetail
39
39
  * @param initiator {module:model/ApprovalUser}
40
40
  * @param status {module:model/ApprovalStatus}
@@ -149,6 +149,7 @@ var ApprovalRequestDetail = /*#__PURE__*/function () {
149
149
  ApprovalRequestDetail.RequiredProperties = ["initiator", "status"];
150
150
 
151
151
  /**
152
+ * The system-generated unique ID of the approval request.
152
153
  * @member {String} approval_id
153
154
  */
154
155
  ApprovalRequestDetail.prototype['approval_id'] = undefined;
@@ -32,9 +32,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
32
32
  var ApprovalUser = /*#__PURE__*/function () {
33
33
  /**
34
34
  * Constructs a new <code>ApprovalUser</code>.
35
- * The information of an app workflow approval user entry.
35
+ * The information of the user.
36
36
  * @alias module:model/ApprovalUser
37
- * @param email {String} The approval user email.
37
+ * @param email {String} The user email.
38
38
  * @param status {module:model/ApprovalStatus}
39
39
  * @param created_timestamp {Number} The time when the approval was created, in Unix timestamp format, measured in milliseconds.
40
40
  */
@@ -122,13 +122,13 @@ var ApprovalUser = /*#__PURE__*/function () {
122
122
  ApprovalUser.RequiredProperties = ["email", "status", "created_timestamp"];
123
123
 
124
124
  /**
125
- * The approval user email.
125
+ * The user email.
126
126
  * @member {String} email
127
127
  */
128
128
  ApprovalUser.prototype['email'] = undefined;
129
129
 
130
130
  /**
131
- * The approval user name.
131
+ * The user name.
132
132
  * @member {String} name
133
133
  */
134
134
  ApprovalUser.prototype['name'] = undefined;
@@ -183,7 +183,7 @@ ChainInfo.prototype['require_memo'] = undefined;
183
183
  ChainInfo.prototype['confirming_threshold'] = undefined;
184
184
 
185
185
  /**
186
- * The number of confirmations required for a coinbase transaction to be mature, such as 100 for BTC.
186
+ * The number of confirmations required before a coinbase transaction is considered mature and can be spent, for example, 100 confirmations for BTC.
187
187
  * @member {Number} coinbase_maturity
188
188
  */
189
189
  ChainInfo.prototype['coinbase_maturity'] = undefined;