@cobo/cobo-waas2 1.37.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.
- package/README.md +7 -1
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/PaymentApi.js +4 -4
- package/dist/api/TransactionsApi.js +7 -3
- package/dist/api/WalletsApi.js +3 -0
- package/dist/index.js +42 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AllocationItem.js +9 -0
- package/dist/model/AllocationItemStatus.js +71 -0
- package/dist/model/ApprovalAction.js +71 -0
- package/dist/model/ApprovalUserDetail.js +22 -0
- package/dist/model/AutoSweepTask.js +1 -1
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BatchAllocation.js +9 -0
- package/dist/model/BatchAllocationDetail.js +9 -0
- package/dist/model/BatchAllocationStatus.js +76 -0
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
- package/dist/model/CreateBulkSendRequest.js +1 -1
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +1 -1
- package/dist/model/CreateCustodialWalletParams.js +2 -2
- package/dist/model/CreateExchangeWalletParams.js +3 -3
- package/dist/model/CreateMpcWalletParams.js +3 -3
- package/dist/model/CreateSafeWalletParams.js +2 -2
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateWalletParams.js +1 -1
- package/dist/model/EstimatedSOLFeeSlow.js +2 -2
- package/dist/model/FiatTransactionEventData.js +8 -3
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/OrganizationEventData.js +8 -3
- package/dist/model/PaymentAccountBalanceUpdateEventData.js +418 -0
- package/dist/model/PaymentAddressUpdateEventData.js +21 -3
- package/dist/model/PaymentBulkSendEvent.js +8 -3
- package/dist/model/PaymentBulkSendItemValidationStatus.js +5 -0
- package/dist/model/PaymentOrderEventData.js +8 -3
- package/dist/model/PaymentPayoutEvent.js +8 -3
- package/dist/model/PaymentPayoutRecipientInfo.js +1 -1
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentTransactionEventData.js +49 -5
- package/dist/model/RawMessageSignDestination.js +122 -0
- package/dist/model/SOLBase.js +1 -1
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionExtra.js +42 -8
- package/dist/model/TransactionExtraType.js +5 -0
- package/dist/model/TransactionFee.js +1 -1
- package/dist/model/TransactionFeePayer.js +120 -0
- package/dist/model/TransactionSOLFee.js +3 -3
- package/dist/model/TransactionWebhookEventData.js +10 -5
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +106 -12
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AllocationItem.md +1 -0
- package/docs/AllocationItemStatus.md +16 -0
- package/docs/ApprovalAction.md +16 -0
- package/docs/ApprovalUserDetail.md +2 -0
- package/docs/AutoSweepApi.md +1 -1
- package/docs/AutoSweepTask.md +1 -1
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BatchAllocation.md +1 -0
- package/docs/BatchAllocationDetail.md +1 -0
- package/docs/BatchAllocationStatus.md +18 -0
- package/docs/ChainsEventData.md +3 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/CreateBulkSendRequest.md +1 -1
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +1 -1
- package/docs/CreateCustodialWalletParams.md +1 -1
- package/docs/CreateExchangeWalletParams.md +1 -1
- package/docs/CreateMpcWalletParams.md +1 -1
- package/docs/CreateSafeWalletParams.md +1 -1
- package/docs/CreateSmartContractWalletParams.md +1 -1
- package/docs/CreateWalletParams.md +1 -1
- package/docs/EstimatedSOLFeeSlow.md +1 -1
- package/docs/FiatTransactionEventData.md +3 -1
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/OrganizationEventData.md +3 -1
- package/docs/PaymentAccountBalanceUpdateEventData.md +76 -0
- package/docs/PaymentAddressUpdateEventData.md +4 -1
- package/docs/PaymentApi.md +2 -2
- package/docs/PaymentBulkSendEvent.md +3 -1
- package/docs/PaymentBulkSendItemValidationStatus.md +2 -0
- package/docs/PaymentOrderEventData.md +3 -1
- package/docs/PaymentPayoutEvent.md +3 -1
- package/docs/PaymentPayoutRecipientInfo.md +1 -1
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentTransactionEventData.md +7 -2
- package/docs/RawMessageSignDestination.md +10 -0
- package/docs/SOLBase.md +1 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/Transaction.md +1 -1
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionExtra.md +1 -0
- package/docs/TransactionExtraType.md +2 -0
- package/docs/TransactionFee.md +1 -1
- package/docs/TransactionFeePayer.md +10 -0
- package/docs/TransactionSOLFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +4 -2
- package/docs/TransactionsApi.md +4 -2
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +2 -0
- package/docs/WebhookEventData.md +17 -4
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +2 -0
- 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.
|
|
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)
|
|
@@ -746,6 +749,7 @@ Class | Method | HTTP request | Description
|
|
|
746
749
|
- [CoboWaas2.OtcFee](docs/OtcFee.md)
|
|
747
750
|
- [CoboWaas2.Pagination](docs/Pagination.md)
|
|
748
751
|
- [CoboWaas2.PayerAccount](docs/PayerAccount.md)
|
|
752
|
+
- [CoboWaas2.PaymentAccountBalanceUpdateEventData](docs/PaymentAccountBalanceUpdateEventData.md)
|
|
749
753
|
- [CoboWaas2.PaymentAddressUpdateEventData](docs/PaymentAddressUpdateEventData.md)
|
|
750
754
|
- [CoboWaas2.PaymentAllocationAmount](docs/PaymentAllocationAmount.md)
|
|
751
755
|
- [CoboWaas2.PaymentBalanceChange](docs/PaymentBalanceChange.md)
|
|
@@ -794,6 +798,7 @@ Class | Method | HTTP request | Description
|
|
|
794
798
|
- [CoboWaas2.QueryApprovalStatement200Response](docs/QueryApprovalStatement200Response.md)
|
|
795
799
|
- [CoboWaas2.QueryGuardPubkey200Response](docs/QueryGuardPubkey200Response.md)
|
|
796
800
|
- [CoboWaas2.QueryGuardPubkey200ResponseAddressesInner](docs/QueryGuardPubkey200ResponseAddressesInner.md)
|
|
801
|
+
- [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
|
|
797
802
|
- [CoboWaas2.RefreshAddressBalancesByToken200Response](docs/RefreshAddressBalancesByToken200Response.md)
|
|
798
803
|
- [CoboWaas2.RefreshAddressBalancesByTokenRequest](docs/RefreshAddressBalancesByTokenRequest.md)
|
|
799
804
|
- [CoboWaas2.RefreshPermissionTokenRequest](docs/RefreshPermissionTokenRequest.md)
|
|
@@ -1052,6 +1057,7 @@ Class | Method | HTTP request | Description
|
|
|
1052
1057
|
- [CoboWaas2.TransactionExtraType](docs/TransactionExtraType.md)
|
|
1053
1058
|
- [CoboWaas2.TransactionFILFee](docs/TransactionFILFee.md)
|
|
1054
1059
|
- [CoboWaas2.TransactionFee](docs/TransactionFee.md)
|
|
1060
|
+
- [CoboWaas2.TransactionFeePayer](docs/TransactionFeePayer.md)
|
|
1055
1061
|
- [CoboWaas2.TransactionFeeStationWalletSource](docs/TransactionFeeStationWalletSource.md)
|
|
1056
1062
|
- [CoboWaas2.TransactionFixedFee](docs/TransactionFixedFee.md)
|
|
1057
1063
|
- [CoboWaas2.TransactionFuelingInfo](docs/TransactionFuelingInfo.md)
|
package/dist/ApiClient.js
CHANGED
package/dist/api/AutoSweepApi.js
CHANGED
|
@@ -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}
|
package/dist/api/PaymentApi.js
CHANGED
|
@@ -805,7 +805,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
805
805
|
|
|
806
806
|
/**
|
|
807
807
|
* Generate reports
|
|
808
|
-
*
|
|
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
|
-
*
|
|
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
|
}, {
|
package/dist/api/WalletsApi.js
CHANGED
|
@@ -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() {
|
|
@@ -2565,6 +2583,12 @@ Object.defineProperty(exports, "PayerAccount", {
|
|
|
2565
2583
|
return _PayerAccount["default"];
|
|
2566
2584
|
}
|
|
2567
2585
|
});
|
|
2586
|
+
Object.defineProperty(exports, "PaymentAccountBalanceUpdateEventData", {
|
|
2587
|
+
enumerable: true,
|
|
2588
|
+
get: function get() {
|
|
2589
|
+
return _PaymentAccountBalanceUpdateEventData["default"];
|
|
2590
|
+
}
|
|
2591
|
+
});
|
|
2568
2592
|
Object.defineProperty(exports, "PaymentAddressUpdateEventData", {
|
|
2569
2593
|
enumerable: true,
|
|
2570
2594
|
get: function get() {
|
|
@@ -2865,6 +2889,12 @@ Object.defineProperty(exports, "QueryGuardPubkey200ResponseAddressesInner", {
|
|
|
2865
2889
|
return _QueryGuardPubkey200ResponseAddressesInner["default"];
|
|
2866
2890
|
}
|
|
2867
2891
|
});
|
|
2892
|
+
Object.defineProperty(exports, "RawMessageSignDestination", {
|
|
2893
|
+
enumerable: true,
|
|
2894
|
+
get: function get() {
|
|
2895
|
+
return _RawMessageSignDestination["default"];
|
|
2896
|
+
}
|
|
2897
|
+
});
|
|
2868
2898
|
Object.defineProperty(exports, "RefreshAddressBalancesByToken200Response", {
|
|
2869
2899
|
enumerable: true,
|
|
2870
2900
|
get: function get() {
|
|
@@ -4437,6 +4467,12 @@ Object.defineProperty(exports, "TransactionFee", {
|
|
|
4437
4467
|
return _TransactionFee["default"];
|
|
4438
4468
|
}
|
|
4439
4469
|
});
|
|
4470
|
+
Object.defineProperty(exports, "TransactionFeePayer", {
|
|
4471
|
+
enumerable: true,
|
|
4472
|
+
get: function get() {
|
|
4473
|
+
return _TransactionFeePayer["default"];
|
|
4474
|
+
}
|
|
4475
|
+
});
|
|
4440
4476
|
Object.defineProperty(exports, "TransactionFeeStationWalletSource", {
|
|
4441
4477
|
enumerable: true,
|
|
4442
4478
|
get: function get() {
|
|
@@ -5211,6 +5247,7 @@ var _AddressVerificationStatus = _interopRequireDefault(require("./model/Address
|
|
|
5211
5247
|
var _AddressesEventData = _interopRequireDefault(require("./model/AddressesEventData"));
|
|
5212
5248
|
var _AddressesEventDataAllOfAddresses = _interopRequireDefault(require("./model/AddressesEventDataAllOfAddresses"));
|
|
5213
5249
|
var _AllocationItem = _interopRequireDefault(require("./model/AllocationItem"));
|
|
5250
|
+
var _AllocationItemStatus = _interopRequireDefault(require("./model/AllocationItemStatus"));
|
|
5214
5251
|
var _AllocationParam = _interopRequireDefault(require("./model/AllocationParam"));
|
|
5215
5252
|
var _AmountDetailsInner = _interopRequireDefault(require("./model/AmountDetailsInner"));
|
|
5216
5253
|
var _AmountStatus = _interopRequireDefault(require("./model/AmountStatus"));
|
|
@@ -5219,6 +5256,7 @@ var _ApiLogSummary = _interopRequireDefault(require("./model/ApiLogSummary"));
|
|
|
5219
5256
|
var _AppWorkflow = _interopRequireDefault(require("./model/AppWorkflow"));
|
|
5220
5257
|
var _AppWorkflowField = _interopRequireDefault(require("./model/AppWorkflowField"));
|
|
5221
5258
|
var _AppWorkflowPolicy = _interopRequireDefault(require("./model/AppWorkflowPolicy"));
|
|
5259
|
+
var _ApprovalAction = _interopRequireDefault(require("./model/ApprovalAction"));
|
|
5222
5260
|
var _ApprovalDetail = _interopRequireDefault(require("./model/ApprovalDetail"));
|
|
5223
5261
|
var _ApprovalEntry = _interopRequireDefault(require("./model/ApprovalEntry"));
|
|
5224
5262
|
var _ApprovalRequest = _interopRequireDefault(require("./model/ApprovalRequest"));
|
|
@@ -5260,6 +5298,7 @@ var _BaseStakeExtra = _interopRequireDefault(require("./model/BaseStakeExtra"));
|
|
|
5260
5298
|
var _BaseStakeSource = _interopRequireDefault(require("./model/BaseStakeSource"));
|
|
5261
5299
|
var _BatchAllocation = _interopRequireDefault(require("./model/BatchAllocation"));
|
|
5262
5300
|
var _BatchAllocationDetail = _interopRequireDefault(require("./model/BatchAllocationDetail"));
|
|
5301
|
+
var _BatchAllocationStatus = _interopRequireDefault(require("./model/BatchAllocationStatus"));
|
|
5263
5302
|
var _BatchCheckUtxo201Response = _interopRequireDefault(require("./model/BatchCheckUtxo201Response"));
|
|
5264
5303
|
var _BatchCheckUtxoRequest = _interopRequireDefault(require("./model/BatchCheckUtxoRequest"));
|
|
5265
5304
|
var _BatchUTXOParam = _interopRequireDefault(require("./model/BatchUTXOParam"));
|
|
@@ -5599,6 +5638,7 @@ var _OriginalMainGroupHandling = _interopRequireDefault(require("./model/Origina
|
|
|
5599
5638
|
var _OtcFee = _interopRequireDefault(require("./model/OtcFee"));
|
|
5600
5639
|
var _Pagination = _interopRequireDefault(require("./model/Pagination"));
|
|
5601
5640
|
var _PayerAccount = _interopRequireDefault(require("./model/PayerAccount"));
|
|
5641
|
+
var _PaymentAccountBalanceUpdateEventData = _interopRequireDefault(require("./model/PaymentAccountBalanceUpdateEventData"));
|
|
5602
5642
|
var _PaymentAddressUpdateEventData = _interopRequireDefault(require("./model/PaymentAddressUpdateEventData"));
|
|
5603
5643
|
var _PaymentAllocationAmount = _interopRequireDefault(require("./model/PaymentAllocationAmount"));
|
|
5604
5644
|
var _PaymentBalanceChange = _interopRequireDefault(require("./model/PaymentBalanceChange"));
|
|
@@ -5647,6 +5687,7 @@ var _PspBalance = _interopRequireDefault(require("./model/PspBalance"));
|
|
|
5647
5687
|
var _QueryApprovalStatement200Response = _interopRequireDefault(require("./model/QueryApprovalStatement200Response"));
|
|
5648
5688
|
var _QueryGuardPubkey200Response = _interopRequireDefault(require("./model/QueryGuardPubkey200Response"));
|
|
5649
5689
|
var _QueryGuardPubkey200ResponseAddressesInner = _interopRequireDefault(require("./model/QueryGuardPubkey200ResponseAddressesInner"));
|
|
5690
|
+
var _RawMessageSignDestination = _interopRequireDefault(require("./model/RawMessageSignDestination"));
|
|
5650
5691
|
var _RefreshAddressBalancesByToken200Response = _interopRequireDefault(require("./model/RefreshAddressBalancesByToken200Response"));
|
|
5651
5692
|
var _RefreshAddressBalancesByTokenRequest = _interopRequireDefault(require("./model/RefreshAddressBalancesByTokenRequest"));
|
|
5652
5693
|
var _RefreshPermissionTokenRequest = _interopRequireDefault(require("./model/RefreshPermissionTokenRequest"));
|
|
@@ -5905,6 +5946,7 @@ var _TransactionExtra = _interopRequireDefault(require("./model/TransactionExtra
|
|
|
5905
5946
|
var _TransactionExtraType = _interopRequireDefault(require("./model/TransactionExtraType"));
|
|
5906
5947
|
var _TransactionFILFee = _interopRequireDefault(require("./model/TransactionFILFee"));
|
|
5907
5948
|
var _TransactionFee = _interopRequireDefault(require("./model/TransactionFee"));
|
|
5949
|
+
var _TransactionFeePayer = _interopRequireDefault(require("./model/TransactionFeePayer"));
|
|
5908
5950
|
var _TransactionFeeStationWalletSource = _interopRequireDefault(require("./model/TransactionFeeStationWalletSource"));
|
|
5909
5951
|
var _TransactionFixedFee = _interopRequireDefault(require("./model/TransactionFixedFee"));
|
|
5910
5952
|
var _TransactionFuelingInfo = _interopRequireDefault(require("./model/TransactionFuelingInfo"));
|
|
@@ -35,7 +35,7 @@ var AddressesEventData = /*#__PURE__*/function () {
|
|
|
35
35
|
* Constructs a new <code>AddressesEventData</code>.
|
|
36
36
|
* @alias module:model/AddressesEventData
|
|
37
37
|
* @implements module:model/WebhookEventDataType
|
|
38
|
-
* @param data_type {module:model/AddressesEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
38
|
+
* @param data_type {module:model/AddressesEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
39
39
|
*/
|
|
40
40
|
function AddressesEventData(data_type) {
|
|
41
41
|
_classCallCheck(this, AddressesEventData);
|
|
@@ -132,7 +132,7 @@ var AddressesEventData = /*#__PURE__*/function () {
|
|
|
132
132
|
AddressesEventData.RequiredProperties = ["data_type"];
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
135
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
136
136
|
* @member {module:model/AddressesEventData.DataTypeEnum} data_type
|
|
137
137
|
*/
|
|
138
138
|
AddressesEventData.prototype['data_type'] = undefined;
|
|
@@ -145,7 +145,7 @@ AddressesEventData.prototype['addresses'] = undefined;
|
|
|
145
145
|
|
|
146
146
|
// Implement WebhookEventDataType interface:
|
|
147
147
|
/**
|
|
148
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
148
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
149
149
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
150
150
|
*/
|
|
151
151
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -231,6 +231,11 @@ AddressesEventData['DataTypeEnum'] = {
|
|
|
231
231
|
* @const
|
|
232
232
|
*/
|
|
233
233
|
"PaymentBulkSend": "PaymentBulkSend",
|
|
234
|
+
/**
|
|
235
|
+
* value: "PaymentAccountBalanceUpdate"
|
|
236
|
+
* @const
|
|
237
|
+
*/
|
|
238
|
+
"PaymentAccountBalanceUpdate": "PaymentAccountBalanceUpdate",
|
|
234
239
|
/**
|
|
235
240
|
* value: "BalanceUpdateInfo"
|
|
236
241
|
* @const
|
|
@@ -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); }
|
|
@@ -109,6 +110,12 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
|
|
|
109
110
|
if (data.hasOwnProperty('extra_message')) {
|
|
110
111
|
obj['extra_message'] = _ApiClient["default"].convertToType(data['extra_message'], 'String');
|
|
111
112
|
}
|
|
113
|
+
if (data.hasOwnProperty('result_token')) {
|
|
114
|
+
obj['result_token'] = _ApiClient["default"].convertToType(data['result_token'], 'String');
|
|
115
|
+
}
|
|
116
|
+
if (data.hasOwnProperty('action')) {
|
|
117
|
+
obj['action'] = _ApprovalAction["default"].constructFromObject(data['action']);
|
|
118
|
+
}
|
|
112
119
|
}
|
|
113
120
|
return obj;
|
|
114
121
|
}
|
|
@@ -169,6 +176,10 @@ var ApprovalUserDetail = /*#__PURE__*/function () {
|
|
|
169
176
|
if (data['extra_message'] && !(typeof data['extra_message'] === 'string' || data['extra_message'] instanceof String)) {
|
|
170
177
|
throw new Error("Expected the field `extra_message` to be a primitive type in the JSON string but got " + data['extra_message']);
|
|
171
178
|
}
|
|
179
|
+
// ensure the json data is a string
|
|
180
|
+
if (data['result_token'] && !(typeof data['result_token'] === 'string' || data['result_token'] instanceof String)) {
|
|
181
|
+
throw new Error("Expected the field `result_token` to be a primitive type in the JSON string but got " + data['result_token']);
|
|
182
|
+
}
|
|
172
183
|
return true;
|
|
173
184
|
}
|
|
174
185
|
}]);
|
|
@@ -273,4 +284,15 @@ ApprovalUserDetail.prototype['message'] = undefined;
|
|
|
273
284
|
* @member {String} extra_message
|
|
274
285
|
*/
|
|
275
286
|
ApprovalUserDetail.prototype['extra_message'] = undefined;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The result token appended to the signing content when verifying signatures. The full signing content is constructed as `{message}||{result_token}`.
|
|
290
|
+
* @member {String} result_token
|
|
291
|
+
*/
|
|
292
|
+
ApprovalUserDetail.prototype['result_token'] = undefined;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @member {module:model/ApprovalAction} action
|
|
296
|
+
*/
|
|
297
|
+
ApprovalUserDetail.prototype['action'] = undefined;
|
|
276
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;
|