@cobo/cobo-waas2 1.11.0 → 1.12.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 (101) hide show
  1. package/README.md +24 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +282 -0
  4. package/dist/api/TransactionsApi.js +55 -5
  5. package/dist/api/WalletsApi.js +58 -0
  6. package/dist/index.js +126 -0
  7. package/dist/model/ActivityExtra.js +11 -0
  8. package/dist/model/AddressTransferDestination.js +1 -1
  9. package/dist/model/AddressesEventData.js +13 -3
  10. package/dist/model/BabylonStakingActivityDetailExtra.js +21 -0
  11. package/dist/model/BaseContractCallSource.js +1 -1
  12. package/dist/model/ChainsEventData.js +202 -0
  13. package/dist/model/ContractCallParams.js +3 -30
  14. package/dist/model/ContractCallSource.js +36 -8
  15. package/dist/model/ContractCallSourceType.js +5 -0
  16. package/dist/model/CustodialTransferSource.js +1 -1
  17. package/dist/model/CustodialWeb3ContractCallSource.js +156 -0
  18. package/dist/model/CustodialWeb3MessageSignSource.js +136 -0
  19. package/dist/model/CustodialWeb3TransferSource.js +194 -0
  20. package/dist/model/FeeStationTransactionType.js +61 -0
  21. package/dist/model/ListTransactionApprovalDetails200Response.js +107 -0
  22. package/dist/model/MPCVaultEventData.js +13 -3
  23. package/dist/model/MessageSignSource.js +36 -8
  24. package/dist/model/MessageSignSourceType.js +5 -0
  25. package/dist/model/RefreshAddressBalancesByToken200Response.js +106 -0
  26. package/dist/model/RefreshAddressBalancesByTokenRequest.js +111 -0
  27. package/dist/model/SafeTxDecodedData.js +122 -0
  28. package/dist/model/SafeTxDecodedDataParameters.js +148 -0
  29. package/dist/model/SafeTxExtraData.js +339 -0
  30. package/dist/model/SafeTxSubTransaction.js +169 -0
  31. package/dist/model/TSSRequestWebhookEventData.js +13 -3
  32. package/dist/model/TokensEventData.js +202 -0
  33. package/dist/model/Transaction.js +29 -0
  34. package/dist/model/TransactionApprovalDetail.js +39 -0
  35. package/dist/model/TransactionCoboCategory.js +91 -0
  36. package/dist/model/TransactionCustodialWeb3WalletSource.js +194 -0
  37. package/dist/model/TransactionDestination.js +12 -0
  38. package/dist/model/TransactionDetail.js +38 -0
  39. package/dist/model/TransactionDetails.js +38 -0
  40. package/dist/model/TransactionFuelingInfo.js +101 -0
  41. package/dist/model/TransactionMessageSignEIP712Destination.js +29 -0
  42. package/dist/model/TransactionProcessType.js +61 -0
  43. package/dist/model/TransactionRequestUtxoFee.js +4 -6
  44. package/dist/model/TransactionSelectedUtxo.js +26 -0
  45. package/dist/model/TransactionSolContractDestination.js +1 -1
  46. package/dist/model/TransactionSource.js +36 -8
  47. package/dist/model/TransactionSourceType.js +5 -0
  48. package/dist/model/TransactionUserApprovalDetail.js +26 -0
  49. package/dist/model/TransactionWebhookEventData.js +51 -3
  50. package/dist/model/TransferParams.js +3 -30
  51. package/dist/model/TransferSource.js +36 -8
  52. package/dist/model/WalletInfoEventData.js +13 -3
  53. package/dist/model/WebhookEventData.js +91 -9
  54. package/dist/model/WebhookEventDataType.js +12 -2
  55. package/dist/model/WebhookEventType.js +30 -0
  56. package/docs/ActivityExtra.md +2 -0
  57. package/docs/AddressesEventData.md +5 -1
  58. package/docs/BabylonStakingActivityDetailExtra.md +2 -0
  59. package/docs/ChainsEventData.md +33 -0
  60. package/docs/ContractCallParams.md +1 -14
  61. package/docs/ContractCallSourceType.md +2 -0
  62. package/docs/CustodialWeb3ContractCallSource.md +11 -0
  63. package/docs/CustodialWeb3MessageSignSource.md +11 -0
  64. package/docs/CustodialWeb3TransferSource.md +13 -0
  65. package/docs/FeeStationApi.md +260 -0
  66. package/docs/FeeStationTransactionType.md +12 -0
  67. package/docs/ListTransactionApprovalDetails200Response.md +9 -0
  68. package/docs/MPCVaultEventData.md +5 -1
  69. package/docs/MessageSignSourceType.md +2 -0
  70. package/docs/RefreshAddressBalancesByToken200Response.md +9 -0
  71. package/docs/RefreshAddressBalancesByTokenRequest.md +9 -0
  72. package/docs/SafeTxDecodedData.md +10 -0
  73. package/docs/SafeTxDecodedDataParameters.md +12 -0
  74. package/docs/SafeTxExtraData.md +26 -0
  75. package/docs/SafeTxSubTransaction.md +15 -0
  76. package/docs/TSSRequestWebhookEventData.md +5 -1
  77. package/docs/TokensEventData.md +33 -0
  78. package/docs/Transaction.md +2 -0
  79. package/docs/TransactionApprovalDetail.md +3 -0
  80. package/docs/TransactionCoboCategory.md +24 -0
  81. package/docs/TransactionCustodialWeb3WalletSource.md +13 -0
  82. package/docs/TransactionDestination.md +2 -0
  83. package/docs/TransactionDetail.md +2 -0
  84. package/docs/TransactionDetails.md +2 -0
  85. package/docs/TransactionFuelingInfo.md +10 -0
  86. package/docs/TransactionMessageSignEIP712Destination.md +2 -0
  87. package/docs/TransactionProcessType.md +12 -0
  88. package/docs/TransactionRequestFee.md +1 -1
  89. package/docs/TransactionRequestUtxoFee.md +1 -1
  90. package/docs/TransactionSelectedUtxo.md +2 -0
  91. package/docs/TransactionSourceType.md +2 -0
  92. package/docs/TransactionUserApprovalDetail.md +2 -0
  93. package/docs/TransactionWebhookEventData.md +7 -1
  94. package/docs/TransactionsApi.md +60 -3
  95. package/docs/TransferParams.md +1 -14
  96. package/docs/WalletInfoEventData.md +5 -1
  97. package/docs/WalletsApi.md +57 -0
  98. package/docs/WebhookEventData.md +9 -1
  99. package/docs/WebhookEventDataType.md +5 -1
  100. package/docs/WebhookEventType.md +12 -0
  101. package/package.json +1 -1
package/README.md CHANGED
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
15
15
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
16
16
 
17
17
  - API version: v2
18
- - Package version: 1.11.0
18
+ - Package version: 1.12.0
19
19
  - Generator version: 7.6.0
20
20
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
21
21
  For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
@@ -81,6 +81,10 @@ Class | Method | HTTP request | Description
81
81
  *CoboWaas2.DevelopersWebhooksApi* | [**retryWebhookEventById**](docs/DevelopersWebhooksApi.md#retryWebhookEventById) | **POST** /webhooks/endpoints/{endpoint_id}/events/{event_id}/retry | Retry event
82
82
  *CoboWaas2.DevelopersWebhooksApi* | [**triggerTestWebhookEvent**](docs/DevelopersWebhooksApi.md#triggerTestWebhookEvent) | **POST** /webhooks/events/trigger | Trigger test event
83
83
  *CoboWaas2.DevelopersWebhooksApi* | [**updateWebhookEndpointById**](docs/DevelopersWebhooksApi.md#updateWebhookEndpointById) | **PUT** /webhooks/endpoints/{endpoint_id} | Update webhook endpoint
84
+ *CoboWaas2.FeeStationApi* | [**getFeeStationTransactionById**](docs/FeeStationApi.md#getFeeStationTransactionById) | **GET** /fee_station/transactions/{transaction_id} | Get fee station transaction information
85
+ *CoboWaas2.FeeStationApi* | [**listFeeStationAddresses**](docs/FeeStationApi.md#listFeeStationAddresses) | **GET** /fee_station/addresses | List fee station addresses
86
+ *CoboWaas2.FeeStationApi* | [**listFeeStationTransactions**](docs/FeeStationApi.md#listFeeStationTransactions) | **GET** /fee_station/transactions | List all fee station transactions
87
+ *CoboWaas2.FeeStationApi* | [**listTokenBalancesForFeeStation**](docs/FeeStationApi.md#listTokenBalancesForFeeStation) | **GET** /fee_station/tokens | List token balances by fee station
84
88
  *CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
85
89
  *CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
86
90
  *CoboWaas2.PrimeBrokerApi* | [**changeGuardPubkey**](docs/PrimeBrokerApi.md#changeGuardPubkey) | **PUT** /prime_broker/user/{user_id}/guard_pubkey | Change Guard pubkey binding
@@ -125,6 +129,7 @@ Class | Method | HTTP request | Description
125
129
  *CoboWaas2.TransactionsApi* | [**estimateFee**](docs/TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
126
130
  *CoboWaas2.TransactionsApi* | [**getTransactionApprovalDetail**](docs/TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
127
131
  *CoboWaas2.TransactionsApi* | [**getTransactionById**](docs/TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
132
+ *CoboWaas2.TransactionsApi* | [**listTransactionApprovalDetails**](docs/TransactionsApi.md#listTransactionApprovalDetails) | **GET** /transactions/approval_details | List transaction approval details
128
133
  *CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
129
134
  *CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
130
135
  *CoboWaas2.TransactionsApi* | [**signAndBroadcastTransactionById**](docs/TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
@@ -154,6 +159,7 @@ Class | Method | HTTP request | Description
154
159
  *CoboWaas2.WalletsApi* | [**listUtxos**](docs/WalletsApi.md#listUtxos) | **GET** /wallets/{wallet_id}/utxos | List UTXOs
155
160
  *CoboWaas2.WalletsApi* | [**listWallets**](docs/WalletsApi.md#listWallets) | **GET** /wallets | List all wallets
156
161
  *CoboWaas2.WalletsApi* | [**lockUtxos**](docs/WalletsApi.md#lockUtxos) | **POST** /wallets/{wallet_id}/utxos/lock | Lock UTXOs
162
+ *CoboWaas2.WalletsApi* | [**refreshAddressBalancesByToken**](docs/WalletsApi.md#refreshAddressBalancesByToken) | **PUT** /wallets/{wallet_id}/tokens/{token_id}/refresh_address_balances | refresh address balances by token
157
163
  *CoboWaas2.WalletsApi* | [**unlockUtxos**](docs/WalletsApi.md#unlockUtxos) | **POST** /wallets/{wallet_id}/utxos/unlock | Unlock UTXOs
158
164
  *CoboWaas2.WalletsApi* | [**updateWalletById**](docs/WalletsApi.md#updateWalletById) | **PUT** /wallets/{wallet_id} | Update wallet
159
165
  *CoboWaas2.WalletsExchangeWalletApi* | [**listAssetBalancesForExchangeWallet**](docs/WalletsExchangeWalletApi.md#listAssetBalancesForExchangeWallet) | **GET** /wallets/{wallet_id}/exchanges/assets | List asset balances
@@ -230,6 +236,7 @@ Class | Method | HTTP request | Description
230
236
  - [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
231
237
  - [CoboWaas2.CallbackMessage](docs/CallbackMessage.md)
232
238
  - [CoboWaas2.ChainInfo](docs/ChainInfo.md)
239
+ - [CoboWaas2.ChainsEventData](docs/ChainsEventData.md)
233
240
  - [CoboWaas2.ChangeGuardPubkey200Response](docs/ChangeGuardPubkey200Response.md)
234
241
  - [CoboWaas2.CheckAddressChainsValidity200ResponseInner](docs/CheckAddressChainsValidity200ResponseInner.md)
235
242
  - [CoboWaas2.CheckAddressValidity200Response](docs/CheckAddressValidity200Response.md)
@@ -283,6 +290,9 @@ Class | Method | HTTP request | Description
283
290
  - [CoboWaas2.CurveType](docs/CurveType.md)
284
291
  - [CoboWaas2.CustodialTransferSource](docs/CustodialTransferSource.md)
285
292
  - [CoboWaas2.CustodialWalletInfo](docs/CustodialWalletInfo.md)
293
+ - [CoboWaas2.CustodialWeb3ContractCallSource](docs/CustodialWeb3ContractCallSource.md)
294
+ - [CoboWaas2.CustodialWeb3MessageSignSource](docs/CustodialWeb3MessageSignSource.md)
295
+ - [CoboWaas2.CustodialWeb3TransferSource](docs/CustodialWeb3TransferSource.md)
286
296
  - [CoboWaas2.DeleteGuardPubkey201Response](docs/DeleteGuardPubkey201Response.md)
287
297
  - [CoboWaas2.DeleteKeyShareHolderGroupById201Response](docs/DeleteKeyShareHolderGroupById201Response.md)
288
298
  - [CoboWaas2.DeleteWalletById201Response](docs/DeleteWalletById201Response.md)
@@ -329,6 +339,7 @@ Class | Method | HTTP request | Description
329
339
  - [CoboWaas2.FeeGasLimit](docs/FeeGasLimit.md)
330
340
  - [CoboWaas2.FeeRate](docs/FeeRate.md)
331
341
  - [CoboWaas2.FeeReserved](docs/FeeReserved.md)
342
+ - [CoboWaas2.FeeStationTransactionType](docs/FeeStationTransactionType.md)
332
343
  - [CoboWaas2.FeeType](docs/FeeType.md)
333
344
  - [CoboWaas2.FixedFeeRate](docs/FixedFeeRate.md)
334
345
  - [CoboWaas2.GetApiKeyInfo200Response](docs/GetApiKeyInfo200Response.md)
@@ -369,6 +380,7 @@ Class | Method | HTTP request | Description
369
380
  - [CoboWaas2.ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
370
381
  - [CoboWaas2.ListSwapActivities200Response](docs/ListSwapActivities200Response.md)
371
382
  - [CoboWaas2.ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
383
+ - [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
372
384
  - [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
373
385
  - [CoboWaas2.ListTssRequests200Response](docs/ListTssRequests200Response.md)
374
386
  - [CoboWaas2.ListUtxos200Response](docs/ListUtxos200Response.md)
@@ -407,6 +419,8 @@ Class | Method | HTTP request | Description
407
419
  - [CoboWaas2.QueryGuardPubkey200Response](docs/QueryGuardPubkey200Response.md)
408
420
  - [CoboWaas2.QueryGuardPubkey200ResponseAddressesInner](docs/QueryGuardPubkey200ResponseAddressesInner.md)
409
421
  - [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
422
+ - [CoboWaas2.RefreshAddressBalancesByToken200Response](docs/RefreshAddressBalancesByToken200Response.md)
423
+ - [CoboWaas2.RefreshAddressBalancesByTokenRequest](docs/RefreshAddressBalancesByTokenRequest.md)
410
424
  - [CoboWaas2.RefreshToken2XXResponse](docs/RefreshToken2XXResponse.md)
411
425
  - [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
412
426
  - [CoboWaas2.ReplaceType](docs/ReplaceType.md)
@@ -416,6 +430,10 @@ Class | Method | HTTP request | Description
416
430
  - [CoboWaas2.RootPubkey](docs/RootPubkey.md)
417
431
  - [CoboWaas2.SafeContractCallSource](docs/SafeContractCallSource.md)
418
432
  - [CoboWaas2.SafeTransferSource](docs/SafeTransferSource.md)
433
+ - [CoboWaas2.SafeTxDecodedData](docs/SafeTxDecodedData.md)
434
+ - [CoboWaas2.SafeTxDecodedDataParameters](docs/SafeTxDecodedDataParameters.md)
435
+ - [CoboWaas2.SafeTxExtraData](docs/SafeTxExtraData.md)
436
+ - [CoboWaas2.SafeTxSubTransaction](docs/SafeTxSubTransaction.md)
419
437
  - [CoboWaas2.SafeWallet](docs/SafeWallet.md)
420
438
  - [CoboWaas2.SafeWalletDelegates](docs/SafeWalletDelegates.md)
421
439
  - [CoboWaas2.SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
@@ -450,12 +468,15 @@ Class | Method | HTTP request | Description
450
468
  - [CoboWaas2.TokenAssetModelType](docs/TokenAssetModelType.md)
451
469
  - [CoboWaas2.TokenBalance](docs/TokenBalance.md)
452
470
  - [CoboWaas2.TokenInfo](docs/TokenInfo.md)
471
+ - [CoboWaas2.TokensEventData](docs/TokensEventData.md)
453
472
  - [CoboWaas2.Transaction](docs/Transaction.md)
454
473
  - [CoboWaas2.TransactionApprovalDetail](docs/TransactionApprovalDetail.md)
455
474
  - [CoboWaas2.TransactionApprovalResult](docs/TransactionApprovalResult.md)
456
475
  - [CoboWaas2.TransactionApprover](docs/TransactionApprover.md)
457
476
  - [CoboWaas2.TransactionBlockInfo](docs/TransactionBlockInfo.md)
477
+ - [CoboWaas2.TransactionCoboCategory](docs/TransactionCoboCategory.md)
458
478
  - [CoboWaas2.TransactionCustodialAssetWalletSource](docs/TransactionCustodialAssetWalletSource.md)
479
+ - [CoboWaas2.TransactionCustodialWeb3WalletSource](docs/TransactionCustodialWeb3WalletSource.md)
459
480
  - [CoboWaas2.TransactionDepositFromAddressSource](docs/TransactionDepositFromAddressSource.md)
460
481
  - [CoboWaas2.TransactionDepositFromLoopSource](docs/TransactionDepositFromLoopSource.md)
461
482
  - [CoboWaas2.TransactionDepositFromWalletSource](docs/TransactionDepositFromWalletSource.md)
@@ -475,10 +496,12 @@ Class | Method | HTTP request | Description
475
496
  - [CoboWaas2.TransactionFee](docs/TransactionFee.md)
476
497
  - [CoboWaas2.TransactionFeeStationWalletSource](docs/TransactionFeeStationWalletSource.md)
477
498
  - [CoboWaas2.TransactionFixedFee](docs/TransactionFixedFee.md)
499
+ - [CoboWaas2.TransactionFuelingInfo](docs/TransactionFuelingInfo.md)
478
500
  - [CoboWaas2.TransactionInitiatorType](docs/TransactionInitiatorType.md)
479
501
  - [CoboWaas2.TransactionMPCWalletSource](docs/TransactionMPCWalletSource.md)
480
502
  - [CoboWaas2.TransactionMessageSignEIP191Destination](docs/TransactionMessageSignEIP191Destination.md)
481
503
  - [CoboWaas2.TransactionMessageSignEIP712Destination](docs/TransactionMessageSignEIP712Destination.md)
504
+ - [CoboWaas2.TransactionProcessType](docs/TransactionProcessType.md)
482
505
  - [CoboWaas2.TransactionRawMessageSignDestination](docs/TransactionRawMessageSignDestination.md)
483
506
  - [CoboWaas2.TransactionRawTxInfo](docs/TransactionRawTxInfo.md)
484
507
  - [CoboWaas2.TransactionRbf](docs/TransactionRbf.md)
package/dist/ApiClient.js CHANGED
@@ -102,7 +102,7 @@ var ApiClient = /*#__PURE__*/function () {
102
102
  * @default {}
103
103
  */
104
104
  this.defaultHeaders = {
105
- 'User-Agent': 'cobo-waas2-js-sdk/1.11.0'
105
+ 'User-Agent': 'cobo-waas2-js-sdk/1.12.0'
106
106
  };
107
107
 
108
108
  /**
@@ -0,0 +1,282 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
9
+ var _ListAddresses200Response = _interopRequireDefault(require("../model/ListAddresses200Response"));
10
+ var _ListTokenBalancesForAddress200Response = _interopRequireDefault(require("../model/ListTokenBalancesForAddress200Response"));
11
+ var _ListTransactions200Response = _interopRequireDefault(require("../model/ListTransactions200Response"));
12
+ var _TransactionDetail = _interopRequireDefault(require("../model/TransactionDetail"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * FeeStation service.
31
+ * @module api/FeeStationApi
32
+ */
33
+ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new FeeStationApi.
36
+ * @alias module:api/FeeStationApi
37
+ * @class
38
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
39
+ * default to {@link module:ApiClient#instance} if unspecified.
40
+ */
41
+ function FeeStationApi(apiClient) {
42
+ _classCallCheck(this, FeeStationApi);
43
+ this.apiClient = apiClient || _ApiClient["default"].instance;
44
+ }
45
+
46
+ /**
47
+ * Get fee station transaction information
48
+ * This operation retrieves detailed information about a specified transaction, such as the transaction status, source address, destination address, and timestamp.
49
+ * @param {String} transaction_id The transaction ID.
50
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionDetail} and HTTP response
51
+ */
52
+ return _createClass(FeeStationApi, [{
53
+ key: "getFeeStationTransactionByIdWithHttpInfo",
54
+ value: function getFeeStationTransactionByIdWithHttpInfo(transaction_id) {
55
+ var postBody = null;
56
+ if (postBody && postBody.toJSON) {
57
+ postBody = postBody.toJSON();
58
+ }
59
+ // verify the required parameter 'transaction_id' is set
60
+ if (transaction_id === undefined || transaction_id === null) {
61
+ throw new Error("Missing the required parameter 'transaction_id' when calling getFeeStationTransactionById");
62
+ }
63
+ var pathParams = {
64
+ 'transaction_id': transaction_id
65
+ };
66
+ var queryParams = {};
67
+ var headerParams = {};
68
+ var formParams = {};
69
+ var authNames = ['OAuth2', 'CoboAuth'];
70
+ var contentTypes = [];
71
+ var accepts = ['application/json'];
72
+ var returnType = _TransactionDetail["default"];
73
+ return this.apiClient.callApi('/fee_station/transactions/{transaction_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
74
+ }
75
+
76
+ /**
77
+ * Get fee station transaction information
78
+ * This operation retrieves detailed information about a specified transaction, such as the transaction status, source address, destination address, and timestamp.
79
+ * @param {String} transaction_id The transaction ID.
80
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionDetail}
81
+ */
82
+ }, {
83
+ key: "getFeeStationTransactionById",
84
+ value: function getFeeStationTransactionById(transaction_id) {
85
+ return this.getFeeStationTransactionByIdWithHttpInfo(transaction_id).then(function (response_and_data) {
86
+ return response_and_data.data;
87
+ });
88
+ }
89
+
90
+ /**
91
+ * List fee station addresses
92
+ * This operation retrieves a list of addresses within a specified wallet.
93
+ * @param {Object} opts Optional parameters
94
+ * @param {String} [chain_ids] A list of chain IDs, separated by comma. The chain ID 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).
95
+ * @param {String} [addresses] A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\").
96
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
97
+ * @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.
98
+ * @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.
99
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAddresses200Response} and HTTP response
100
+ */
101
+ }, {
102
+ key: "listFeeStationAddressesWithHttpInfo",
103
+ value: function listFeeStationAddressesWithHttpInfo(opts) {
104
+ opts = opts || {};
105
+ var postBody = null;
106
+ if (postBody && postBody.toJSON) {
107
+ postBody = postBody.toJSON();
108
+ }
109
+ var pathParams = {};
110
+ var queryParams = {
111
+ 'chain_ids': opts['chain_ids'],
112
+ 'addresses': opts['addresses'],
113
+ 'limit': opts['limit'],
114
+ 'before': opts['before'],
115
+ 'after': opts['after']
116
+ };
117
+ var headerParams = {};
118
+ var formParams = {};
119
+ var authNames = ['OAuth2', 'CoboAuth'];
120
+ var contentTypes = [];
121
+ var accepts = ['application/json'];
122
+ var returnType = _ListAddresses200Response["default"];
123
+ return this.apiClient.callApi('/fee_station/addresses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
124
+ }
125
+
126
+ /**
127
+ * List fee station addresses
128
+ * This operation retrieves a list of addresses within a specified wallet.
129
+ * @param {Object} opts Optional parameters
130
+ * @param {String} opts.chain_ids A list of chain IDs, separated by comma. The chain ID 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).
131
+ * @param {String} opts.addresses A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\").
132
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
133
+ * @param {String} opts.before This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
134
+ * @param {String} opts.after This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
135
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddresses200Response}
136
+ */
137
+ }, {
138
+ key: "listFeeStationAddresses",
139
+ value: function listFeeStationAddresses(opts) {
140
+ return this.listFeeStationAddressesWithHttpInfo(opts).then(function (response_and_data) {
141
+ return response_and_data.data;
142
+ });
143
+ }
144
+
145
+ /**
146
+ * List all fee station transactions
147
+ * 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.
148
+ * @param {Object} opts Optional parameters
149
+ * @param {String} [request_id] 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.
150
+ * @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
151
+ * @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
152
+ * @param {String} [transaction_hashes] A list of transaction hashes, separated by comma.
153
+ * @param {String} [types] A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction.
154
+ * @param {String} [statuses] A list of transaction statuses, separated by comma. Possible values include: - `Submitted`: The transaction is submitted. - `PendingScreening`: The transaction is pending screening by Risk Control. - `PendingAuthorization`: The transaction is pending approvals. - `PendingSignature`: The transaction is pending signature. - `Broadcasting`: The transaction is being broadcast. - `Confirming`: The transaction is waiting for the required number of confirmations. - `Completed`: The transaction is completed. - `Failed`: The transaction failed. - `Rejected`: The transaction is rejected. - `Pending`: The transaction is waiting to be included in the next block of the blockchain.
155
+ * @param {String} [chain_ids] A list of chain IDs, separated by comma. The chain ID 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).
156
+ * @param {String} [token_ids] A list of token IDs, separated by comma. The token ID 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).
157
+ * @param {String} [asset_ids] (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
158
+ * @param {Number} [min_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time.
159
+ * @param {Number} [max_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time.
160
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
161
+ * @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.
162
+ * @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.
163
+ * @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.
164
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactions200Response} and HTTP response
165
+ */
166
+ }, {
167
+ key: "listFeeStationTransactionsWithHttpInfo",
168
+ value: function listFeeStationTransactionsWithHttpInfo(opts) {
169
+ opts = opts || {};
170
+ var postBody = null;
171
+ if (postBody && postBody.toJSON) {
172
+ postBody = postBody.toJSON();
173
+ }
174
+ var pathParams = {};
175
+ var queryParams = {
176
+ 'request_id': opts['request_id'],
177
+ 'cobo_ids': opts['cobo_ids'],
178
+ 'transaction_ids': opts['transaction_ids'],
179
+ 'transaction_hashes': opts['transaction_hashes'],
180
+ 'types': opts['types'],
181
+ 'statuses': opts['statuses'],
182
+ 'chain_ids': opts['chain_ids'],
183
+ 'token_ids': opts['token_ids'],
184
+ 'asset_ids': opts['asset_ids'],
185
+ 'min_created_timestamp': opts['min_created_timestamp'],
186
+ 'max_created_timestamp': opts['max_created_timestamp'],
187
+ 'limit': opts['limit'],
188
+ 'before': opts['before'],
189
+ 'after': opts['after'],
190
+ 'direction': opts['direction']
191
+ };
192
+ var headerParams = {};
193
+ var formParams = {};
194
+ var authNames = ['OAuth2', 'CoboAuth'];
195
+ var contentTypes = [];
196
+ var accepts = ['application/json'];
197
+ var returnType = _ListTransactions200Response["default"];
198
+ return this.apiClient.callApi('/fee_station/transactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
199
+ }
200
+
201
+ /**
202
+ * List all fee station transactions
203
+ * 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.
204
+ * @param {Object} opts Optional parameters
205
+ * @param {String} opts.request_id 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.
206
+ * @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
207
+ * @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
208
+ * @param {String} opts.transaction_hashes A list of transaction hashes, separated by comma.
209
+ * @param {String} opts.types A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction.
210
+ * @param {String} opts.statuses A list of transaction statuses, separated by comma. Possible values include: - `Submitted`: The transaction is submitted. - `PendingScreening`: The transaction is pending screening by Risk Control. - `PendingAuthorization`: The transaction is pending approvals. - `PendingSignature`: The transaction is pending signature. - `Broadcasting`: The transaction is being broadcast. - `Confirming`: The transaction is waiting for the required number of confirmations. - `Completed`: The transaction is completed. - `Failed`: The transaction failed. - `Rejected`: The transaction is rejected. - `Pending`: The transaction is waiting to be included in the next block of the blockchain.
211
+ * @param {String} opts.chain_ids A list of chain IDs, separated by comma. The chain ID 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).
212
+ * @param {String} opts.token_ids A list of token IDs, separated by comma. The token ID 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).
213
+ * @param {String} opts.asset_ids (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
214
+ * @param {Number} opts.min_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time.
215
+ * @param {Number} opts.max_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time.
216
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
217
+ * @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.
218
+ * @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.
219
+ * @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 '')
220
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactions200Response}
221
+ */
222
+ }, {
223
+ key: "listFeeStationTransactions",
224
+ value: function listFeeStationTransactions(opts) {
225
+ return this.listFeeStationTransactionsWithHttpInfo(opts).then(function (response_and_data) {
226
+ return response_and_data.data;
227
+ });
228
+ }
229
+
230
+ /**
231
+ * List token balances by fee station
232
+ * The operation retrieves a list of token balances within a specified wallet. <Note>This operation is not applicable to Exchange Wallets.</Note>
233
+ * @param {Object} opts Optional parameters
234
+ * @param {String} [token_ids] A list of token IDs, separated by comma. The token ID 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).
235
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
236
+ * @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.
237
+ * @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.
238
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTokenBalancesForAddress200Response} and HTTP response
239
+ */
240
+ }, {
241
+ key: "listTokenBalancesForFeeStationWithHttpInfo",
242
+ value: function listTokenBalancesForFeeStationWithHttpInfo(opts) {
243
+ opts = opts || {};
244
+ var postBody = null;
245
+ if (postBody && postBody.toJSON) {
246
+ postBody = postBody.toJSON();
247
+ }
248
+ var pathParams = {};
249
+ var queryParams = {
250
+ 'token_ids': opts['token_ids'],
251
+ 'limit': opts['limit'],
252
+ 'before': opts['before'],
253
+ 'after': opts['after']
254
+ };
255
+ var headerParams = {};
256
+ var formParams = {};
257
+ var authNames = ['OAuth2', 'CoboAuth'];
258
+ var contentTypes = [];
259
+ var accepts = ['application/json'];
260
+ var returnType = _ListTokenBalancesForAddress200Response["default"];
261
+ return this.apiClient.callApi('/fee_station/tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
262
+ }
263
+
264
+ /**
265
+ * List token balances by fee station
266
+ * The operation retrieves a list of token balances within a specified wallet. <Note>This operation is not applicable to Exchange Wallets.</Note>
267
+ * @param {Object} opts Optional parameters
268
+ * @param {String} opts.token_ids A list of token IDs, separated by comma. The token ID 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).
269
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
270
+ * @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.
271
+ * @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.
272
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTokenBalancesForAddress200Response}
273
+ */
274
+ }, {
275
+ key: "listTokenBalancesForFeeStation",
276
+ value: function listTokenBalancesForFeeStation(opts) {
277
+ return this.listTokenBalancesForFeeStationWithHttpInfo(opts).then(function (response_and_data) {
278
+ return response_and_data.data;
279
+ });
280
+ }
281
+ }]);
282
+ }();
@@ -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"));
@@ -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
+ * The operation refresh the balance of the given address list for a specified 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 the addresses balance by specified token within a specified wallet
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
+ * The operation refresh the balance of the given address list for a specified 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 the addresses balance by specified token within a specified wallet
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>