@cobo/cobo-waas2 1.38.0 → 1.39.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 (70) hide show
  1. package/README.md +6 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AutoSweepApi.js +2 -2
  4. package/dist/api/PaymentApi.js +4 -4
  5. package/dist/api/TransactionsApi.js +7 -3
  6. package/dist/api/WalletsApi.js +3 -0
  7. package/dist/index.js +35 -0
  8. package/dist/model/AllocationItem.js +9 -0
  9. package/dist/model/AllocationItemStatus.js +71 -0
  10. package/dist/model/ApprovalAction.js +71 -0
  11. package/dist/model/ApprovalUserDetail.js +9 -0
  12. package/dist/model/AutoSweepTask.js +1 -1
  13. package/dist/model/BatchAllocation.js +9 -0
  14. package/dist/model/BatchAllocationDetail.js +9 -0
  15. package/dist/model/BatchAllocationStatus.js +76 -0
  16. package/dist/model/CreateCustodialWalletParams.js +2 -2
  17. package/dist/model/CreateExchangeWalletParams.js +3 -3
  18. package/dist/model/CreateMpcWalletParams.js +3 -3
  19. package/dist/model/CreateSafeWalletParams.js +2 -2
  20. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  21. package/dist/model/CreateWalletParams.js +1 -1
  22. package/dist/model/EstimatedSOLFeeSlow.js +2 -2
  23. package/dist/model/PaymentBulkSendItemValidationStatus.js +5 -0
  24. package/dist/model/PaymentTransactionEventData.js +2 -2
  25. package/dist/model/RawMessageSignDestination.js +122 -0
  26. package/dist/model/SOLBase.js +1 -1
  27. package/dist/model/Transaction.js +1 -1
  28. package/dist/model/TransactionDetail.js +2 -2
  29. package/dist/model/TransactionDetails.js +2 -2
  30. package/dist/model/TransactionExtra.js +42 -8
  31. package/dist/model/TransactionExtraType.js +5 -0
  32. package/dist/model/TransactionFee.js +1 -1
  33. package/dist/model/TransactionFeePayer.js +120 -0
  34. package/dist/model/TransactionSOLFee.js +3 -3
  35. package/dist/model/TransactionWebhookEventData.js +2 -2
  36. package/dist/model/WebhookEventData.js +1 -1
  37. package/docs/AllocationItem.md +1 -0
  38. package/docs/AllocationItemStatus.md +16 -0
  39. package/docs/ApprovalAction.md +16 -0
  40. package/docs/ApprovalUserDetail.md +1 -0
  41. package/docs/AutoSweepApi.md +1 -1
  42. package/docs/AutoSweepTask.md +1 -1
  43. package/docs/BatchAllocation.md +1 -0
  44. package/docs/BatchAllocationDetail.md +1 -0
  45. package/docs/BatchAllocationStatus.md +18 -0
  46. package/docs/CreateCustodialWalletParams.md +1 -1
  47. package/docs/CreateExchangeWalletParams.md +1 -1
  48. package/docs/CreateMpcWalletParams.md +1 -1
  49. package/docs/CreateSafeWalletParams.md +1 -1
  50. package/docs/CreateSmartContractWalletParams.md +1 -1
  51. package/docs/CreateWalletParams.md +1 -1
  52. package/docs/EstimatedSOLFeeSlow.md +1 -1
  53. package/docs/PaymentApi.md +2 -2
  54. package/docs/PaymentBulkSendItemValidationStatus.md +2 -0
  55. package/docs/PaymentTransactionEventData.md +1 -1
  56. package/docs/RawMessageSignDestination.md +10 -0
  57. package/docs/SOLBase.md +1 -1
  58. package/docs/Transaction.md +1 -1
  59. package/docs/TransactionDetail.md +1 -1
  60. package/docs/TransactionDetails.md +1 -1
  61. package/docs/TransactionExtra.md +1 -0
  62. package/docs/TransactionExtraType.md +2 -0
  63. package/docs/TransactionFee.md +1 -1
  64. package/docs/TransactionFeePayer.md +10 -0
  65. package/docs/TransactionSOLFee.md +2 -2
  66. package/docs/TransactionWebhookEventData.md +1 -1
  67. package/docs/TransactionsApi.md +4 -2
  68. package/docs/WalletsApi.md +2 -0
  69. package/docs/WebhookEventData.md +1 -1
  70. 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.38.0
18
+ - Package version: 1.39.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)
@@ -358,6 +358,7 @@ Class | Method | HTTP request | Description
358
358
  - [CoboWaas2.AddressesEventData](docs/AddressesEventData.md)
359
359
  - [CoboWaas2.AddressesEventDataAllOfAddresses](docs/AddressesEventDataAllOfAddresses.md)
360
360
  - [CoboWaas2.AllocationItem](docs/AllocationItem.md)
361
+ - [CoboWaas2.AllocationItemStatus](docs/AllocationItemStatus.md)
361
362
  - [CoboWaas2.AllocationParam](docs/AllocationParam.md)
362
363
  - [CoboWaas2.AmountDetailsInner](docs/AmountDetailsInner.md)
363
364
  - [CoboWaas2.AmountStatus](docs/AmountStatus.md)
@@ -366,6 +367,7 @@ Class | Method | HTTP request | Description
366
367
  - [CoboWaas2.AppWorkflow](docs/AppWorkflow.md)
367
368
  - [CoboWaas2.AppWorkflowField](docs/AppWorkflowField.md)
368
369
  - [CoboWaas2.AppWorkflowPolicy](docs/AppWorkflowPolicy.md)
370
+ - [CoboWaas2.ApprovalAction](docs/ApprovalAction.md)
369
371
  - [CoboWaas2.ApprovalDetail](docs/ApprovalDetail.md)
370
372
  - [CoboWaas2.ApprovalEntry](docs/ApprovalEntry.md)
371
373
  - [CoboWaas2.ApprovalRequest](docs/ApprovalRequest.md)
@@ -407,6 +409,7 @@ Class | Method | HTTP request | Description
407
409
  - [CoboWaas2.BaseStakeSource](docs/BaseStakeSource.md)
408
410
  - [CoboWaas2.BatchAllocation](docs/BatchAllocation.md)
409
411
  - [CoboWaas2.BatchAllocationDetail](docs/BatchAllocationDetail.md)
412
+ - [CoboWaas2.BatchAllocationStatus](docs/BatchAllocationStatus.md)
410
413
  - [CoboWaas2.BatchCheckUtxo201Response](docs/BatchCheckUtxo201Response.md)
411
414
  - [CoboWaas2.BatchCheckUtxoRequest](docs/BatchCheckUtxoRequest.md)
412
415
  - [CoboWaas2.BatchUTXOParam](docs/BatchUTXOParam.md)
@@ -795,6 +798,7 @@ Class | Method | HTTP request | Description
795
798
  - [CoboWaas2.QueryApprovalStatement200Response](docs/QueryApprovalStatement200Response.md)
796
799
  - [CoboWaas2.QueryGuardPubkey200Response](docs/QueryGuardPubkey200Response.md)
797
800
  - [CoboWaas2.QueryGuardPubkey200ResponseAddressesInner](docs/QueryGuardPubkey200ResponseAddressesInner.md)
801
+ - [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
798
802
  - [CoboWaas2.RefreshAddressBalancesByToken200Response](docs/RefreshAddressBalancesByToken200Response.md)
799
803
  - [CoboWaas2.RefreshAddressBalancesByTokenRequest](docs/RefreshAddressBalancesByTokenRequest.md)
800
804
  - [CoboWaas2.RefreshPermissionTokenRequest](docs/RefreshPermissionTokenRequest.md)
@@ -1053,6 +1057,7 @@ Class | Method | HTTP request | Description
1053
1057
  - [CoboWaas2.TransactionExtraType](docs/TransactionExtraType.md)
1054
1058
  - [CoboWaas2.TransactionFILFee](docs/TransactionFILFee.md)
1055
1059
  - [CoboWaas2.TransactionFee](docs/TransactionFee.md)
1060
+ - [CoboWaas2.TransactionFeePayer](docs/TransactionFeePayer.md)
1056
1061
  - [CoboWaas2.TransactionFeeStationWalletSource](docs/TransactionFeeStationWalletSource.md)
1057
1062
  - [CoboWaas2.TransactionFixedFee](docs/TransactionFixedFee.md)
1058
1063
  - [CoboWaas2.TransactionFuelingInfo](docs/TransactionFuelingInfo.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.38.0'
105
+ 'User-Agent': 'cobo-waas2-js-sdk/1.39.0'
106
106
  };
107
107
 
108
108
  /**
@@ -91,7 +91,7 @@ var AutoSweepApi = exports["default"] = /*#__PURE__*/function () {
91
91
 
92
92
  /**
93
93
  * Create auto-sweep task
94
- * This operation creates an auto-sweep task for the specified wallet and token. The task triggers transactions to sweep the full balance of the specified token to the configured sweep-to address.
94
+ * This operation creates an auto-sweep task for the specified wallet and token. The task triggers transactions to sweep the full balance of the specified token to the configured sweep-to address. <Note>A sweep requires native chain coin to pay for gas. The gas must be available either in the source (deposit) address, or supplied by a configured Fee Station or Auto-Fuel. Reaching the deposit threshold alone does not trigger a sweep. If no gas is available, the sweep is blocked (for example, with an insufficient-balance error) or the Fee Station quota check fails. When a sweep is blocked, the reason is reported in the `failed_reasons` array of the auto-sweep task.</Note> <Info>This operation is asynchronous. When the task is created, it is returned with `status` set to `Submitted` and an empty `transaction_ids` array; this is expected and does not indicate a failure. The `transaction_ids` array is populated only after `status` becomes `TransactionCreated`. To retrieve the transaction IDs, poll [Get auto-sweep task details](https://www.cobo.com/developers/v2/api-references/autosweep/get-auto-sweep-task-details) using the returned `task_id` until the status changes.</Info>
95
95
  * @param {Object} opts Optional parameters
96
96
  * @param {module:model/CreateAutoSweepTask} [CreateAutoSweepTask] The request body to create an auto-sweep task.
97
97
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AutoSweepTask} and HTTP response
@@ -117,7 +117,7 @@ var AutoSweepApi = exports["default"] = /*#__PURE__*/function () {
117
117
 
118
118
  /**
119
119
  * Create auto-sweep task
120
- * This operation creates an auto-sweep task for the specified wallet and token. The task triggers transactions to sweep the full balance of the specified token to the configured sweep-to address.
120
+ * This operation creates an auto-sweep task for the specified wallet and token. The task triggers transactions to sweep the full balance of the specified token to the configured sweep-to address. <Note>A sweep requires native chain coin to pay for gas. The gas must be available either in the source (deposit) address, or supplied by a configured Fee Station or Auto-Fuel. Reaching the deposit threshold alone does not trigger a sweep. If no gas is available, the sweep is blocked (for example, with an insufficient-balance error) or the Fee Station quota check fails. When a sweep is blocked, the reason is reported in the `failed_reasons` array of the auto-sweep task.</Note> <Info>This operation is asynchronous. When the task is created, it is returned with `status` set to `Submitted` and an empty `transaction_ids` array; this is expected and does not indicate a failure. The `transaction_ids` array is populated only after `status` becomes `TransactionCreated`. To retrieve the transaction IDs, poll [Get auto-sweep task details](https://www.cobo.com/developers/v2/api-references/autosweep/get-auto-sweep-task-details) using the returned `task_id` until the status changes.</Info>
121
121
  * @param {Object} opts Optional parameters
122
122
  * @param {module:model/CreateAutoSweepTask} opts.CreateAutoSweepTask The request body to create an auto-sweep task.
123
123
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AutoSweepTask}
@@ -805,7 +805,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
805
805
 
806
806
  /**
807
807
  * Generate reports
808
- * This operation generates reports for a variety of payment activities, including pay-ins, payouts, and commission fees.
808
+ * This operation generates reports for a variety of payment activities, including pay-ins, payouts, and commission fees. <Note>For `report_types`, report scope, exported field differences, and report-specific usage notes, see [Reports](/payments/en/guides/reports).</Note>
809
809
  * @param {Object} opts Optional parameters
810
810
  * @param {module:model/CreateReportRequest} [CreateReportRequest] The request body to create payment reports.
811
811
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Report} and HTTP response
@@ -831,7 +831,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
831
831
 
832
832
  /**
833
833
  * Generate reports
834
- * This operation generates reports for a variety of payment activities, including pay-ins, payouts, and commission fees.
834
+ * This operation generates reports for a variety of payment activities, including pay-ins, payouts, and commission fees. <Note>For `report_types`, report scope, exported field differences, and report-specific usage notes, see [Reports](/payments/en/guides/reports).</Note>
835
835
  * @param {Object} opts Optional parameters
836
836
  * @param {module:model/CreateReportRequest} opts.CreateReportRequest The request body to create payment reports.
837
837
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Report}
@@ -1835,7 +1835,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1835
1835
 
1836
1836
  /**
1837
1837
  * List all reports
1838
- * This operation retrieves the information of all reports.
1838
+ * This operation retrieves the information of all reports. <Note>For `report_types`, report scope, exported field differences, and report-specific usage notes, see [Reports](/payments/en/guides/reports).</Note>
1839
1839
  * @param {Object} opts Optional parameters
1840
1840
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
1841
1841
  * @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.
@@ -1871,7 +1871,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1871
1871
 
1872
1872
  /**
1873
1873
  * List all reports
1874
- * This operation retrieves the information of all reports.
1874
+ * This operation retrieves the information of all reports. <Note>For `report_types`, report scope, exported field differences, and report-specific usage notes, see [Reports](/payments/en/guides/reports).</Note>
1875
1875
  * @param {Object} opts Optional parameters
1876
1876
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
1877
1877
  * @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.
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _ApprovalAction = _interopRequireDefault(require("../model/ApprovalAction"));
8
9
  var _ApprovalDetail = _interopRequireDefault(require("../model/ApprovalDetail"));
9
10
  var _ApprovalTemplate = _interopRequireDefault(require("../model/ApprovalTemplate"));
10
11
  var _BroadcastSignedTransactions201ResponseInner = _interopRequireDefault(require("../model/BroadcastSignedTransactions201ResponseInner"));
@@ -375,7 +376,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
375
376
 
376
377
  /**
377
378
  * Estimate transaction fee
378
- * This operation estimates the transaction fee of a token transfer or a contract call based on the fee model that the chain uses, considering factors such as network congestion and transaction complexity. You need to specify the transaction information, including the request ID, request type, source address, destination address, token ID (only applicable to token transfers), and chain ID (only applicable to contract calls). The response can contain different properties based on the transaction fee model used by the chain. For the legacy, EIP-1559, and UTXO fee models, Cobo also supports three different transaction speed levels: slow, recommended, and fast. For more information about estimating transaction fees, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees).
379
+ * This operation estimates the transaction fee of a token transfer or a contract call based on the fee model that the chain uses, considering factors such as network congestion and transaction complexity. You need to specify the transaction information, including the request ID, request type, source address, destination address, token ID (only applicable to token transfers), and chain ID (only applicable to contract calls). The response can contain different properties based on the transaction fee model used by the chain. For the legacy, EIP-1559, and UTXO fee models, Cobo also supports three different transaction speed levels: slow, recommended, and fast. For more information about estimating transaction fees, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees). <Note>Fee estimates are point-in-time and short-lived. Because on-chain gas prices change continuously, re-estimate the fee immediately before submitting a withdrawal. Submitting a transaction based on a stale estimate may cause the transaction to be rejected because the fee is insufficient.</Note>
379
380
  * @param {Object} opts Optional parameters
380
381
  * @param {module:model/EstimateFeeParams} [EstimateFeeParams] The request body to estimate the transaction fee of a token transfer or a contract call.
381
382
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EstimatedFee} and HTTP response
@@ -401,7 +402,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
401
402
 
402
403
  /**
403
404
  * Estimate transaction fee
404
- * This operation estimates the transaction fee of a token transfer or a contract call based on the fee model that the chain uses, considering factors such as network congestion and transaction complexity. You need to specify the transaction information, including the request ID, request type, source address, destination address, token ID (only applicable to token transfers), and chain ID (only applicable to contract calls). The response can contain different properties based on the transaction fee model used by the chain. For the legacy, EIP-1559, and UTXO fee models, Cobo also supports three different transaction speed levels: slow, recommended, and fast. For more information about estimating transaction fees, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees).
405
+ * This operation estimates the transaction fee of a token transfer or a contract call based on the fee model that the chain uses, considering factors such as network congestion and transaction complexity. You need to specify the transaction information, including the request ID, request type, source address, destination address, token ID (only applicable to token transfers), and chain ID (only applicable to contract calls). The response can contain different properties based on the transaction fee model used by the chain. For the legacy, EIP-1559, and UTXO fee models, Cobo also supports three different transaction speed levels: slow, recommended, and fast. For more information about estimating transaction fees, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees). <Note>Fee estimates are point-in-time and short-lived. Because on-chain gas prices change continuously, re-estimate the fee immediately before submitting a withdrawal. Submitting a transaction based on a stale estimate may cause the transaction to be rejected because the fee is insufficient.</Note>
405
406
  * @param {Object} opts Optional parameters
406
407
  * @param {module:model/EstimateFeeParams} opts.EstimateFeeParams The request body to estimate the transaction fee of a token transfer or a contract call.
407
408
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EstimatedFee}
@@ -603,6 +604,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
603
604
  * @param {String} template_key Key of the transaction template used to create an approval message.
604
605
  * @param {Object} opts Optional parameters
605
606
  * @param {String} [template_version] Version of the template.
607
+ * @param {module:model/ApprovalAction} [action] The approval action type. If omitted, `Transfer` is used by default. Possible values include: - `Transfer`: To approve a transaction transfer. - `Drop`: To approve dropping a transaction. - `SpeedUp`: To approve speeding up a transaction.
606
608
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ApprovalTemplate>} and HTTP response
607
609
  */
608
610
  }, {
@@ -620,7 +622,8 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
620
622
  var pathParams = {};
621
623
  var queryParams = {
622
624
  'template_key': template_key,
623
- 'template_version': opts['template_version']
625
+ 'template_version': opts['template_version'],
626
+ 'action': opts['action']
624
627
  };
625
628
  var headerParams = {};
626
629
  var formParams = {};
@@ -637,6 +640,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
637
640
  * @param {String} template_key Key of the transaction template used to create an approval message.
638
641
  * @param {Object} opts Optional parameters
639
642
  * @param {String} opts.template_version Version of the template.
643
+ * @param {module:model/ApprovalAction} opts.action The approval action type. If omitted, `Transfer` is used by default. Possible values include: - `Transfer`: To approve a transaction transfer. - `Drop`: To approve dropping a transaction. - `SpeedUp`: To approve speeding up a transaction.
640
644
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ApprovalTemplate>}
641
645
  */
642
646
  }, {
@@ -941,6 +941,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
941
941
  * @param {module:model/WalletSubtype} [wallet_subtype] The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
942
942
  * @param {String} [chain_ids] A list of chain IDs(Supports up to 500), 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).
943
943
  * @param {String} [token_ids] A list of token IDs(Supports up to 500), 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).
944
+ * @param {String} [token_addresses] A list of token contract addresses (Supports up to 500), separated by comma. Matching is case-insensitive, so you can pass either lowercase or checksum addresses. Because the same contract address may be deployed on multiple chains, this filter can return tokens across different chain IDs; combine it with `chain_ids` to narrow the result to a specific chain. Native tokens have no contract address and are excluded from the result.
944
945
  * @param {Number} [limit = 10)] The maximum number of objects to return. The value range is [1, 500].
945
946
  * @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.
946
947
  * @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.
@@ -960,6 +961,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
960
961
  'wallet_subtype': opts['wallet_subtype'],
961
962
  'chain_ids': opts['chain_ids'],
962
963
  'token_ids': opts['token_ids'],
964
+ 'token_addresses': opts['token_addresses'],
963
965
  'limit': opts['limit'],
964
966
  'before': opts['before'],
965
967
  'after': opts['after']
@@ -981,6 +983,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
981
983
  * @param {module:model/WalletSubtype} opts.wallet_subtype The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
982
984
  * @param {String} opts.chain_ids A list of chain IDs(Supports up to 500), 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).
983
985
  * @param {String} opts.token_ids A list of token IDs(Supports up to 500), 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).
986
+ * @param {String} opts.token_addresses A list of token contract addresses (Supports up to 500), separated by comma. Matching is case-insensitive, so you can pass either lowercase or checksum addresses. Because the same contract address may be deployed on multiple chains, this filter can return tokens across different chain IDs; combine it with `chain_ids` to narrow the result to a specific chain. Native tokens have no contract address and are excluded from the result.
984
987
  * @param {Number} opts.limit The maximum number of objects to return. The value range is [1, 500]. (default to 10)
985
988
  * @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.
986
989
  * @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.
package/dist/index.js CHANGED
@@ -165,6 +165,12 @@ Object.defineProperty(exports, "AllocationItem", {
165
165
  return _AllocationItem["default"];
166
166
  }
167
167
  });
168
+ Object.defineProperty(exports, "AllocationItemStatus", {
169
+ enumerable: true,
170
+ get: function get() {
171
+ return _AllocationItemStatus["default"];
172
+ }
173
+ });
168
174
  Object.defineProperty(exports, "AllocationParam", {
169
175
  enumerable: true,
170
176
  get: function get() {
@@ -225,6 +231,12 @@ Object.defineProperty(exports, "AppWorkflowsApi", {
225
231
  return _AppWorkflowsApi["default"];
226
232
  }
227
233
  });
234
+ Object.defineProperty(exports, "ApprovalAction", {
235
+ enumerable: true,
236
+ get: function get() {
237
+ return _ApprovalAction["default"];
238
+ }
239
+ });
228
240
  Object.defineProperty(exports, "ApprovalDetail", {
229
241
  enumerable: true,
230
242
  get: function get() {
@@ -477,6 +489,12 @@ Object.defineProperty(exports, "BatchAllocationDetail", {
477
489
  return _BatchAllocationDetail["default"];
478
490
  }
479
491
  });
492
+ Object.defineProperty(exports, "BatchAllocationStatus", {
493
+ enumerable: true,
494
+ get: function get() {
495
+ return _BatchAllocationStatus["default"];
496
+ }
497
+ });
480
498
  Object.defineProperty(exports, "BatchCheckUtxo201Response", {
481
499
  enumerable: true,
482
500
  get: function get() {
@@ -2871,6 +2889,12 @@ Object.defineProperty(exports, "QueryGuardPubkey200ResponseAddressesInner", {
2871
2889
  return _QueryGuardPubkey200ResponseAddressesInner["default"];
2872
2890
  }
2873
2891
  });
2892
+ Object.defineProperty(exports, "RawMessageSignDestination", {
2893
+ enumerable: true,
2894
+ get: function get() {
2895
+ return _RawMessageSignDestination["default"];
2896
+ }
2897
+ });
2874
2898
  Object.defineProperty(exports, "RefreshAddressBalancesByToken200Response", {
2875
2899
  enumerable: true,
2876
2900
  get: function get() {
@@ -4443,6 +4467,12 @@ Object.defineProperty(exports, "TransactionFee", {
4443
4467
  return _TransactionFee["default"];
4444
4468
  }
4445
4469
  });
4470
+ Object.defineProperty(exports, "TransactionFeePayer", {
4471
+ enumerable: true,
4472
+ get: function get() {
4473
+ return _TransactionFeePayer["default"];
4474
+ }
4475
+ });
4446
4476
  Object.defineProperty(exports, "TransactionFeeStationWalletSource", {
4447
4477
  enumerable: true,
4448
4478
  get: function get() {
@@ -5217,6 +5247,7 @@ var _AddressVerificationStatus = _interopRequireDefault(require("./model/Address
5217
5247
  var _AddressesEventData = _interopRequireDefault(require("./model/AddressesEventData"));
5218
5248
  var _AddressesEventDataAllOfAddresses = _interopRequireDefault(require("./model/AddressesEventDataAllOfAddresses"));
5219
5249
  var _AllocationItem = _interopRequireDefault(require("./model/AllocationItem"));
5250
+ var _AllocationItemStatus = _interopRequireDefault(require("./model/AllocationItemStatus"));
5220
5251
  var _AllocationParam = _interopRequireDefault(require("./model/AllocationParam"));
5221
5252
  var _AmountDetailsInner = _interopRequireDefault(require("./model/AmountDetailsInner"));
5222
5253
  var _AmountStatus = _interopRequireDefault(require("./model/AmountStatus"));
@@ -5225,6 +5256,7 @@ var _ApiLogSummary = _interopRequireDefault(require("./model/ApiLogSummary"));
5225
5256
  var _AppWorkflow = _interopRequireDefault(require("./model/AppWorkflow"));
5226
5257
  var _AppWorkflowField = _interopRequireDefault(require("./model/AppWorkflowField"));
5227
5258
  var _AppWorkflowPolicy = _interopRequireDefault(require("./model/AppWorkflowPolicy"));
5259
+ var _ApprovalAction = _interopRequireDefault(require("./model/ApprovalAction"));
5228
5260
  var _ApprovalDetail = _interopRequireDefault(require("./model/ApprovalDetail"));
5229
5261
  var _ApprovalEntry = _interopRequireDefault(require("./model/ApprovalEntry"));
5230
5262
  var _ApprovalRequest = _interopRequireDefault(require("./model/ApprovalRequest"));
@@ -5266,6 +5298,7 @@ var _BaseStakeExtra = _interopRequireDefault(require("./model/BaseStakeExtra"));
5266
5298
  var _BaseStakeSource = _interopRequireDefault(require("./model/BaseStakeSource"));
5267
5299
  var _BatchAllocation = _interopRequireDefault(require("./model/BatchAllocation"));
5268
5300
  var _BatchAllocationDetail = _interopRequireDefault(require("./model/BatchAllocationDetail"));
5301
+ var _BatchAllocationStatus = _interopRequireDefault(require("./model/BatchAllocationStatus"));
5269
5302
  var _BatchCheckUtxo201Response = _interopRequireDefault(require("./model/BatchCheckUtxo201Response"));
5270
5303
  var _BatchCheckUtxoRequest = _interopRequireDefault(require("./model/BatchCheckUtxoRequest"));
5271
5304
  var _BatchUTXOParam = _interopRequireDefault(require("./model/BatchUTXOParam"));
@@ -5654,6 +5687,7 @@ var _PspBalance = _interopRequireDefault(require("./model/PspBalance"));
5654
5687
  var _QueryApprovalStatement200Response = _interopRequireDefault(require("./model/QueryApprovalStatement200Response"));
5655
5688
  var _QueryGuardPubkey200Response = _interopRequireDefault(require("./model/QueryGuardPubkey200Response"));
5656
5689
  var _QueryGuardPubkey200ResponseAddressesInner = _interopRequireDefault(require("./model/QueryGuardPubkey200ResponseAddressesInner"));
5690
+ var _RawMessageSignDestination = _interopRequireDefault(require("./model/RawMessageSignDestination"));
5657
5691
  var _RefreshAddressBalancesByToken200Response = _interopRequireDefault(require("./model/RefreshAddressBalancesByToken200Response"));
5658
5692
  var _RefreshAddressBalancesByTokenRequest = _interopRequireDefault(require("./model/RefreshAddressBalancesByTokenRequest"));
5659
5693
  var _RefreshPermissionTokenRequest = _interopRequireDefault(require("./model/RefreshPermissionTokenRequest"));
@@ -5912,6 +5946,7 @@ var _TransactionExtra = _interopRequireDefault(require("./model/TransactionExtra
5912
5946
  var _TransactionExtraType = _interopRequireDefault(require("./model/TransactionExtraType"));
5913
5947
  var _TransactionFILFee = _interopRequireDefault(require("./model/TransactionFILFee"));
5914
5948
  var _TransactionFee = _interopRequireDefault(require("./model/TransactionFee"));
5949
+ var _TransactionFeePayer = _interopRequireDefault(require("./model/TransactionFeePayer"));
5915
5950
  var _TransactionFeeStationWalletSource = _interopRequireDefault(require("./model/TransactionFeeStationWalletSource"));
5916
5951
  var _TransactionFixedFee = _interopRequireDefault(require("./model/TransactionFixedFee"));
5917
5952
  var _TransactionFuelingInfo = _interopRequireDefault(require("./model/TransactionFuelingInfo"));
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AllocationItemStatus = _interopRequireDefault(require("./AllocationItemStatus"));
8
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
10
  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); }
10
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -91,6 +92,9 @@ var AllocationItem = /*#__PURE__*/function () {
91
92
  if (data.hasOwnProperty('description')) {
92
93
  obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
93
94
  }
95
+ if (data.hasOwnProperty('status')) {
96
+ obj['status'] = _AllocationItemStatus["default"].constructFromObject(data['status']);
97
+ }
94
98
  }
95
99
  return obj;
96
100
  }
@@ -193,4 +197,9 @@ AllocationItem.prototype['destination_account'] = undefined;
193
197
  * @member {String} description
194
198
  */
195
199
  AllocationItem.prototype['description'] = undefined;
200
+
201
+ /**
202
+ * @member {module:model/AllocationItemStatus} status
203
+ */
204
+ AllocationItem.prototype['status'] = undefined;
196
205
  var _default = exports["default"] = AllocationItem;
@@ -0,0 +1,71 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class AllocationItemStatus.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var AllocationItemStatus = exports["default"] = /*#__PURE__*/function () {
31
+ function AllocationItemStatus() {
32
+ _classCallCheck(this, AllocationItemStatus);
33
+ /**
34
+ * value: "Pending"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Pending", "Pending");
38
+ /**
39
+ * value: "Transferring"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Transferring", "Transferring");
43
+ /**
44
+ * value: "Completed"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "Completed", "Completed");
48
+ /**
49
+ * value: "Failed"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "Failed", "Failed");
53
+ /**
54
+ * value: "unknown_default_open_api"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
58
+ }
59
+ return _createClass(AllocationItemStatus, null, [{
60
+ key: "constructFromObject",
61
+ value:
62
+ /**
63
+ * Returns a <code>AllocationItemStatus</code> enum value from a Javascript object name.
64
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
65
+ * @return {module:model/AllocationItemStatus} The enum <code>AllocationItemStatus</code> value.
66
+ */
67
+ function constructFromObject(object) {
68
+ return object;
69
+ }
70
+ }]);
71
+ }();
@@ -0,0 +1,71 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class ApprovalAction.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var ApprovalAction = exports["default"] = /*#__PURE__*/function () {
31
+ function ApprovalAction() {
32
+ _classCallCheck(this, ApprovalAction);
33
+ /**
34
+ * value: "Transfer"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Transfer", "Transfer");
38
+ /**
39
+ * value: "Drop"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Drop", "Drop");
43
+ /**
44
+ * value: "SpeedUp"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "SpeedUp", "SpeedUp");
48
+ /**
49
+ * value: "null"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "null", "null");
53
+ /**
54
+ * value: "unknown_default_open_api"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
58
+ }
59
+ return _createClass(ApprovalAction, null, [{
60
+ key: "constructFromObject",
61
+ value:
62
+ /**
63
+ * Returns a <code>ApprovalAction</code> enum value from a Javascript object name.
64
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
65
+ * @return {module:model/ApprovalAction} The enum <code>ApprovalAction</code> value.
66
+ */
67
+ function constructFromObject(object) {
68
+ return object;
69
+ }
70
+ }]);
71
+ }();
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _ApprovalAction = _interopRequireDefault(require("./ApprovalAction"));
8
9
  var _ApprovalResult = _interopRequireDefault(require("./ApprovalResult"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
11
  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); }
@@ -112,6 +113,9 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
112
113
  if (data.hasOwnProperty('result_token')) {
113
114
  obj['result_token'] = _ApiClient["default"].convertToType(data['result_token'], 'String');
114
115
  }
116
+ if (data.hasOwnProperty('action')) {
117
+ obj['action'] = _ApprovalAction["default"].constructFromObject(data['action']);
118
+ }
115
119
  }
116
120
  return obj;
117
121
  }
@@ -286,4 +290,9 @@ ApprovalUserDetail.prototype['extra_message'] = undefined;
286
290
  * @member {String} result_token
287
291
  */
288
292
  ApprovalUserDetail.prototype['result_token'] = undefined;
293
+
294
+ /**
295
+ * @member {module:model/ApprovalAction} action
296
+ */
297
+ ApprovalUserDetail.prototype['action'] = undefined;
289
298
  var _default = exports["default"] = ApprovalUserDetail;
@@ -173,7 +173,7 @@ AutoSweepTask.prototype['token_id'] = undefined;
173
173
  AutoSweepTask.prototype['status'] = undefined;
174
174
 
175
175
  /**
176
- * IDs of the transactions triggered by the task.
176
+ * IDs of the transactions triggered by the task. This array is empty while the task `status` is `Submitted`, and is populated only after the status becomes `TransactionCreated`. Poll [Get auto-sweep task details](https://www.cobo.com/developers/v2/api-references/autosweep/get-auto-sweep-task-details) until the transaction IDs are available.
177
177
  * @member {Array.<String>} transaction_ids
178
178
  */
179
179
  AutoSweepTask.prototype['transaction_ids'] = undefined;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _AllocationParam = _interopRequireDefault(require("./AllocationParam"));
9
+ var _BatchAllocationStatus = _interopRequireDefault(require("./BatchAllocationStatus"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
11
  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); }
11
12
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -81,6 +82,9 @@ var BatchAllocation = /*#__PURE__*/function () {
81
82
  if (data.hasOwnProperty('initiator')) {
82
83
  obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
83
84
  }
85
+ if (data.hasOwnProperty('status')) {
86
+ obj['status'] = _BatchAllocationStatus["default"].constructFromObject(data['status']);
87
+ }
84
88
  if (data.hasOwnProperty('created_timestamp')) {
85
89
  obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
86
90
  }
@@ -176,6 +180,11 @@ BatchAllocation.prototype['allocation_params'] = undefined;
176
180
  */
177
181
  BatchAllocation.prototype['initiator'] = undefined;
178
182
 
183
+ /**
184
+ * @member {module:model/BatchAllocationStatus} status
185
+ */
186
+ BatchAllocation.prototype['status'] = undefined;
187
+
179
188
  /**
180
189
  * The created time of the batch allocation, represented as a UNIX timestamp in seconds.
181
190
  * @member {Number} created_timestamp
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _AllocationItem = _interopRequireDefault(require("./AllocationItem"));
9
+ var _BatchAllocationStatus = _interopRequireDefault(require("./BatchAllocationStatus"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
11
  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); }
11
12
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -77,6 +78,9 @@ var BatchAllocationDetail = /*#__PURE__*/function () {
77
78
  if (data.hasOwnProperty('initiator')) {
78
79
  obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
79
80
  }
81
+ if (data.hasOwnProperty('status')) {
82
+ obj['status'] = _BatchAllocationStatus["default"].constructFromObject(data['status']);
83
+ }
80
84
  if (data.hasOwnProperty('created_timestamp')) {
81
85
  obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
82
86
  }
@@ -172,6 +176,11 @@ BatchAllocationDetail.prototype['allocation_items'] = undefined;
172
176
  */
173
177
  BatchAllocationDetail.prototype['initiator'] = undefined;
174
178
 
179
+ /**
180
+ * @member {module:model/BatchAllocationStatus} status
181
+ */
182
+ BatchAllocationDetail.prototype['status'] = undefined;
183
+
175
184
  /**
176
185
  * The created time of the batch allocation, represented as a UNIX timestamp in seconds.
177
186
  * @member {Number} created_timestamp