@cobo/cobo-waas2 1.25.0 → 1.26.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 +21 -5
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +2 -2
- package/dist/api/FeeStationApi.js +6 -6
- package/dist/api/PaymentApi.js +48 -6
- package/dist/api/TokenizationApi.js +122 -4
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/index.js +105 -14
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/CreateCryptoAddressRequest.js +1 -1
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreatePaymentOrderRequest.js +8 -8
- package/dist/model/CreateRefundLinkRequest.js +129 -0
- package/dist/model/FeeStationCheckFeeStationUsage.js +28 -10
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +33 -20
- package/dist/model/FeeStationSponsorTransactionDescription.js +125 -0
- package/dist/model/Link.js +2 -2
- package/dist/model/LinkDisplayInfo.js +2 -2
- package/dist/model/MerchantBalance.js +1 -1
- package/dist/model/Order.js +1 -1
- package/dist/model/OrderLinkBusinessInfo.js +11 -11
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +4 -4
- package/dist/model/PaymentOrderEventData.js +2 -2
- package/dist/model/PspBalance.js +1 -1
- package/dist/model/RefundLinkBusinessInfo.js +162 -0
- package/dist/model/RefundStatus.js +10 -0
- package/dist/model/SubmitKytScreeningsReviewBody.js +1 -1
- package/dist/model/SwapQuote.js +18 -18
- package/dist/model/TokenizationERC20TokenParams.js +5 -5
- package/dist/model/{TokenizationTokenPermissionParams.js → TokenizationERC20TokenPermissionParams.js} +23 -23
- package/dist/model/TokenizationERC20WrappedTokenParams.js +177 -0
- package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +38 -11
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +72 -10
- package/dist/model/TokenizationListPermissionsResponse.js +146 -0
- package/dist/model/TokenizationListPermissionsResponseDataInner.js +126 -0
- package/dist/model/TokenizationOperationType.js +5 -0
- package/dist/model/TokenizationPermissionAction.js +66 -0
- package/dist/model/TokenizationSOLWrappedTokenParams.js +177 -0
- package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +127 -0
- package/dist/model/TokenizationTokenDetailInfo.js +51 -5
- package/dist/model/TokenizationTokenInfo.js +26 -4
- package/dist/model/TokenizationTokenPermissionType.js +5 -0
- package/dist/model/TokenizationTokenStandard.js +10 -0
- package/dist/model/{TokenizationTokenPermissionsResponse.js → TokenizationUpdateAddressPermissions.js} +51 -53
- package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +198 -0
- package/dist/model/TokenizationUpdatePermissionsParams.js +145 -0
- package/dist/model/TokenizationUpdatePermissionsRequest.js +213 -0
- package/dist/model/TransactionCoboCategory.js +35 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/AutoFuelType.md +2 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/ComplianceApi.md +1 -1
- package/docs/CreateCryptoAddressRequest.md +1 -1
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +5 -5
- package/docs/CreateRefundLinkRequest.md +10 -0
- package/docs/FeeStationApi.md +4 -4
- package/docs/FeeStationCheckFeeStationUsage.md +4 -2
- package/docs/FeeStationCheckFeeStationUsageResponse.md +4 -3
- package/docs/FeeStationSponsorTransactionDescription.md +10 -0
- package/docs/Link.md +1 -1
- package/docs/LinkDisplayInfo.md +2 -2
- package/docs/MerchantBalance.md +1 -1
- package/docs/Order.md +1 -1
- package/docs/OrderLinkBusinessInfo.md +7 -7
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/PaymentApi.md +56 -3
- package/docs/PaymentOrderEventData.md +1 -1
- package/docs/PspBalance.md +1 -1
- package/docs/RefundLinkBusinessInfo.md +13 -0
- package/docs/RefundStatus.md +4 -0
- package/docs/SwapQuote.md +10 -10
- package/docs/TokenizationApi.md +120 -2
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/{TokenizationTokenPermissionParams.md → TokenizationERC20TokenPermissionParams.md} +1 -1
- package/docs/TokenizationERC20WrappedTokenParams.md +14 -0
- package/docs/TokenizationERC20WrappedTokenPermissionParams.md +15 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -1
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -1
- package/docs/TokenizationListPermissionsResponse.md +10 -0
- package/docs/TokenizationListPermissionsResponseDataInner.md +10 -0
- package/docs/TokenizationOperationType.md +2 -0
- package/docs/TokenizationPermissionAction.md +14 -0
- package/docs/TokenizationSOLWrappedTokenParams.md +14 -0
- package/docs/TokenizationSolWrappedTokenPermissionParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +3 -0
- package/docs/TokenizationTokenInfo.md +2 -0
- package/docs/TokenizationTokenPermissionType.md +2 -0
- package/docs/TokenizationTokenStandard.md +4 -0
- package/docs/TokenizationUpdateAddressPermissions.md +11 -0
- package/docs/TokenizationUpdatePermissionsEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdatePermissionsParams.md +10 -0
- package/docs/TokenizationUpdatePermissionsRequest.md +13 -0
- package/docs/TransactionCoboCategory.md +14 -0
- package/docs/TransactionsApi.md +1 -1
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WebhookEventData.md +1 -1
- package/package.json +1 -1
- package/docs/TokenizationTokenPermissionsResponse.md +0 -10
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.26.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)
|
|
@@ -78,7 +78,7 @@ Class | Method | HTTP request | Description
|
|
|
78
78
|
*CoboWaas2.AppWorkflowsApi* | [**listApprovalRequests**](docs/AppWorkflowsApi.md#listApprovalRequests) | **GET** /app/workflows/approval_requests | List approval requests
|
|
79
79
|
*CoboWaas2.AppWorkflowsApi* | [**revokeApprovalRequest**](docs/AppWorkflowsApi.md#revokeApprovalRequest) | **POST** /app/workflows/approval_requests/{approval_id}/revoke | Revoke approval request
|
|
80
80
|
*CoboWaas2.AutoSweepApi* | [**createAutoSweepTask**](docs/AutoSweepApi.md#createAutoSweepTask) | **POST** /auto_sweep/tasks | Create auto-sweep task
|
|
81
|
-
*CoboWaas2.AutoSweepApi* | [**createWalletSweepToAddresses**](docs/AutoSweepApi.md#createWalletSweepToAddresses) | **POST** /auto_sweep/sweep_to_addresses |
|
|
81
|
+
*CoboWaas2.AutoSweepApi* | [**createWalletSweepToAddresses**](docs/AutoSweepApi.md#createWalletSweepToAddresses) | **POST** /auto_sweep/sweep_to_addresses | Create sweep-to address
|
|
82
82
|
*CoboWaas2.AutoSweepApi* | [**getAutoSweepTaskById**](docs/AutoSweepApi.md#getAutoSweepTaskById) | **GET** /auto_sweep/tasks/{task_id} | Get auto-sweep task details
|
|
83
83
|
*CoboWaas2.AutoSweepApi* | [**listAutoSweepTask**](docs/AutoSweepApi.md#listAutoSweepTask) | **GET** /auto_sweep/tasks | List auto-sweep tasks
|
|
84
84
|
*CoboWaas2.AutoSweepApi* | [**listWalletSweepToAddresses**](docs/AutoSweepApi.md#listWalletSweepToAddresses) | **GET** /auto_sweep/sweep_to_addresses | List sweep-to addresses
|
|
@@ -103,7 +103,7 @@ Class | Method | HTTP request | Description
|
|
|
103
103
|
*CoboWaas2.DevelopersWebhooksApi* | [**triggerTestWebhookEvent**](docs/DevelopersWebhooksApi.md#triggerTestWebhookEvent) | **POST** /webhooks/events/trigger | Trigger test event
|
|
104
104
|
*CoboWaas2.DevelopersWebhooksApi* | [**updateWebhookEndpointById**](docs/DevelopersWebhooksApi.md#updateWebhookEndpointById) | **PUT** /webhooks/endpoints/{endpoint_id} | Update webhook endpoint
|
|
105
105
|
*CoboWaas2.FeeStationApi* | [**checkFeeStationUsage**](docs/FeeStationApi.md#checkFeeStationUsage) | **POST** /fee_station/check_fee_station_usage | Check Fee Station usage
|
|
106
|
-
*CoboWaas2.FeeStationApi* | [**estimateFeeStationFee**](docs/FeeStationApi.md#estimateFeeStationFee) | **POST** /fee_station/transactions/estimate_fee | Estimate fee
|
|
106
|
+
*CoboWaas2.FeeStationApi* | [**estimateFeeStationFee**](docs/FeeStationApi.md#estimateFeeStationFee) | **POST** /fee_station/transactions/estimate_fee | Estimate transaction fee
|
|
107
107
|
*CoboWaas2.FeeStationApi* | [**getFeeStationTransactionById**](docs/FeeStationApi.md#getFeeStationTransactionById) | **GET** /fee_station/transactions/{transaction_id} | Get Fee Station transaction information
|
|
108
108
|
*CoboWaas2.FeeStationApi* | [**listFeeStationAddresses**](docs/FeeStationApi.md#listFeeStationAddresses) | **GET** /fee_station/addresses | List Fee Station addresses
|
|
109
109
|
*CoboWaas2.FeeStationApi* | [**listFeeStationTransactions**](docs/FeeStationApi.md#listFeeStationTransactions) | **GET** /fee_station/transactions | List all Fee Station transactions
|
|
@@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
|
|
|
120
120
|
*CoboWaas2.PaymentApi* | [**createOrderLink**](docs/PaymentApi.md#createOrderLink) | **POST** /payments/links/orders | Create order link
|
|
121
121
|
*CoboWaas2.PaymentApi* | [**createPaymentOrder**](docs/PaymentApi.md#createPaymentOrder) | **POST** /payments/orders | Create pay-in order
|
|
122
122
|
*CoboWaas2.PaymentApi* | [**createRefund**](docs/PaymentApi.md#createRefund) | **POST** /payments/refunds | Create refund order
|
|
123
|
+
*CoboWaas2.PaymentApi* | [**createRefundLink**](docs/PaymentApi.md#createRefundLink) | **POST** /payments/links/refunds | Create refund link
|
|
123
124
|
*CoboWaas2.PaymentApi* | [**createSettlementRequest**](docs/PaymentApi.md#createSettlementRequest) | **POST** /payments/settlement_requests | Create settlement request
|
|
124
125
|
*CoboWaas2.PaymentApi* | [**deleteCryptoAddress**](docs/PaymentApi.md#deleteCryptoAddress) | **POST** /payments/crypto_addresses/{crypto_address_id}/delete | Delete crypto address
|
|
125
126
|
*CoboWaas2.PaymentApi* | [**getExchangeRate**](docs/PaymentApi.md#getExchangeRate) | **GET** /payments/exchange_rates/{token_id}/{currency} | Get exchange rate
|
|
@@ -192,6 +193,7 @@ Class | Method | HTTP request | Description
|
|
|
192
193
|
*CoboWaas2.TokenizationApi* | [**listTokenizationAllowlistAddresses**](docs/TokenizationApi.md#listTokenizationAllowlistAddresses) | **GET** /tokenization/tokens/{token_id}/allowlist/addresses | List addresses on allowlist
|
|
193
194
|
*CoboWaas2.TokenizationApi* | [**listTokenizationBlocklistAddresses**](docs/TokenizationApi.md#listTokenizationBlocklistAddresses) | **GET** /tokenization/tokens/{token_id}/blocklist/addresses | List addresses on blocklist
|
|
194
195
|
*CoboWaas2.TokenizationApi* | [**listTokenizationHoldings**](docs/TokenizationApi.md#listTokenizationHoldings) | **GET** /tokenization/tokens/{token_id}/holdings | Get token holdings information
|
|
196
|
+
*CoboWaas2.TokenizationApi* | [**listTokenizationPermissions**](docs/TokenizationApi.md#listTokenizationPermissions) | **GET** /tokenization/tokens/{token_id}/permissions | List token permissions
|
|
195
197
|
*CoboWaas2.TokenizationApi* | [**listTokenizationSupportedChains**](docs/TokenizationApi.md#listTokenizationSupportedChains) | **GET** /tokenization/enabled_chains | List supported chains for tokenization
|
|
196
198
|
*CoboWaas2.TokenizationApi* | [**mintTokenization**](docs/TokenizationApi.md#mintTokenization) | **POST** /tokenization/tokens/{token_id}/mint | Mint tokens
|
|
197
199
|
*CoboWaas2.TokenizationApi* | [**pauseTokenization**](docs/TokenizationApi.md#pauseTokenization) | **POST** /tokenization/tokens/{token_id}/pause | Pause token contract
|
|
@@ -200,6 +202,7 @@ Class | Method | HTTP request | Description
|
|
|
200
202
|
*CoboWaas2.TokenizationApi* | [**updateTokenizationAllowlistActivation**](docs/TokenizationApi.md#updateTokenizationAllowlistActivation) | **POST** /tokenization/tokens/{token_id}/allowlist/activation | Activate or deactivate allowlist
|
|
201
203
|
*CoboWaas2.TokenizationApi* | [**updateTokenizationAllowlistAddresses**](docs/TokenizationApi.md#updateTokenizationAllowlistAddresses) | **POST** /tokenization/tokens/{token_id}/allowlist/addresses | Update addresses on allowlist
|
|
202
204
|
*CoboWaas2.TokenizationApi* | [**updateTokenizationBlocklistAddresses**](docs/TokenizationApi.md#updateTokenizationBlocklistAddresses) | **POST** /tokenization/tokens/{token_id}/blocklist/addresses | Update addresses on blocklist
|
|
205
|
+
*CoboWaas2.TokenizationApi* | [**updateTokenizationPermissions**](docs/TokenizationApi.md#updateTokenizationPermissions) | **POST** /tokenization/tokens/{token_id}/permissions | Update token permissions
|
|
203
206
|
*CoboWaas2.TransactionsApi* | [**broadcastSignedTransactions**](docs/TransactionsApi.md#broadcastSignedTransactions) | **POST** /transactions/broadcast | Broadcast signed transactions
|
|
204
207
|
*CoboWaas2.TransactionsApi* | [**cancelTransactionById**](docs/TransactionsApi.md#cancelTransactionById) | **POST** /transactions/{transaction_id}/cancel | Cancel transaction
|
|
205
208
|
*CoboWaas2.TransactionsApi* | [**checkLoopTransfers**](docs/TransactionsApi.md#checkLoopTransfers) | **GET** /transactions/check_loop_transfers | Check Cobo Loop transfers
|
|
@@ -396,6 +399,7 @@ Class | Method | HTTP request | Description
|
|
|
396
399
|
- [CoboWaas2.CreatePaymentOrderRequest](docs/CreatePaymentOrderRequest.md)
|
|
397
400
|
- [CoboWaas2.CreatePrimeBrokerAddress201Response](docs/CreatePrimeBrokerAddress201Response.md)
|
|
398
401
|
- [CoboWaas2.CreatePrimeBrokerAddressRequest](docs/CreatePrimeBrokerAddressRequest.md)
|
|
402
|
+
- [CoboWaas2.CreateRefundLinkRequest](docs/CreateRefundLinkRequest.md)
|
|
399
403
|
- [CoboWaas2.CreateRefundRequest](docs/CreateRefundRequest.md)
|
|
400
404
|
- [CoboWaas2.CreateSafeWalletParams](docs/CreateSafeWalletParams.md)
|
|
401
405
|
- [CoboWaas2.CreateSettlement](docs/CreateSettlement.md)
|
|
@@ -492,6 +496,7 @@ Class | Method | HTTP request | Description
|
|
|
492
496
|
- [CoboWaas2.FeeStationCheckFeeStationUsageResponse](docs/FeeStationCheckFeeStationUsageResponse.md)
|
|
493
497
|
- [CoboWaas2.FeeStationDestination](docs/FeeStationDestination.md)
|
|
494
498
|
- [CoboWaas2.FeeStationGasStationType](docs/FeeStationGasStationType.md)
|
|
499
|
+
- [CoboWaas2.FeeStationSponsorTransactionDescription](docs/FeeStationSponsorTransactionDescription.md)
|
|
495
500
|
- [CoboWaas2.FeeStationTransactionType](docs/FeeStationTransactionType.md)
|
|
496
501
|
- [CoboWaas2.FeeStationTransfer](docs/FeeStationTransfer.md)
|
|
497
502
|
- [CoboWaas2.FeeType](docs/FeeType.md)
|
|
@@ -646,6 +651,7 @@ Class | Method | HTTP request | Description
|
|
|
646
651
|
- [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
|
|
647
652
|
- [CoboWaas2.Refund](docs/Refund.md)
|
|
648
653
|
- [CoboWaas2.RefundDisposition](docs/RefundDisposition.md)
|
|
654
|
+
- [CoboWaas2.RefundLinkBusinessInfo](docs/RefundLinkBusinessInfo.md)
|
|
649
655
|
- [CoboWaas2.RefundStatus](docs/RefundStatus.md)
|
|
650
656
|
- [CoboWaas2.RefundType](docs/RefundType.md)
|
|
651
657
|
- [CoboWaas2.ReplaceType](docs/ReplaceType.md)
|
|
@@ -788,6 +794,9 @@ Class | Method | HTTP request | Description
|
|
|
788
794
|
- [CoboWaas2.TokenizationContractCallRequest](docs/TokenizationContractCallRequest.md)
|
|
789
795
|
- [CoboWaas2.TokenizationContractCallType](docs/TokenizationContractCallType.md)
|
|
790
796
|
- [CoboWaas2.TokenizationERC20TokenParams](docs/TokenizationERC20TokenParams.md)
|
|
797
|
+
- [CoboWaas2.TokenizationERC20TokenPermissionParams](docs/TokenizationERC20TokenPermissionParams.md)
|
|
798
|
+
- [CoboWaas2.TokenizationERC20WrappedTokenParams](docs/TokenizationERC20WrappedTokenParams.md)
|
|
799
|
+
- [CoboWaas2.TokenizationERC20WrappedTokenPermissionParams](docs/TokenizationERC20WrappedTokenPermissionParams.md)
|
|
791
800
|
- [CoboWaas2.TokenizationEstimateFeeRequest](docs/TokenizationEstimateFeeRequest.md)
|
|
792
801
|
- [CoboWaas2.TokenizationEstimateFeeRequestOperationParams](docs/TokenizationEstimateFeeRequestOperationParams.md)
|
|
793
802
|
- [CoboWaas2.TokenizationEvmContractCallParams](docs/TokenizationEvmContractCallParams.md)
|
|
@@ -799,6 +808,8 @@ Class | Method | HTTP request | Description
|
|
|
799
808
|
- [CoboWaas2.TokenizationListActivitiesResponse](docs/TokenizationListActivitiesResponse.md)
|
|
800
809
|
- [CoboWaas2.TokenizationListEnabledChainsResponse](docs/TokenizationListEnabledChainsResponse.md)
|
|
801
810
|
- [CoboWaas2.TokenizationListHoldingsResponse](docs/TokenizationListHoldingsResponse.md)
|
|
811
|
+
- [CoboWaas2.TokenizationListPermissionsResponse](docs/TokenizationListPermissionsResponse.md)
|
|
812
|
+
- [CoboWaas2.TokenizationListPermissionsResponseDataInner](docs/TokenizationListPermissionsResponseDataInner.md)
|
|
802
813
|
- [CoboWaas2.TokenizationListTokenInfoResponse](docs/TokenizationListTokenInfoResponse.md)
|
|
803
814
|
- [CoboWaas2.TokenizationMintEstimateFeeParams](docs/TokenizationMintEstimateFeeParams.md)
|
|
804
815
|
- [CoboWaas2.TokenizationMintTokenParams](docs/TokenizationMintTokenParams.md)
|
|
@@ -811,23 +822,25 @@ Class | Method | HTTP request | Description
|
|
|
811
822
|
- [CoboWaas2.TokenizationPauseEstimateFeeParams](docs/TokenizationPauseEstimateFeeParams.md)
|
|
812
823
|
- [CoboWaas2.TokenizationPauseTokenParams](docs/TokenizationPauseTokenParams.md)
|
|
813
824
|
- [CoboWaas2.TokenizationPauseTokenRequest](docs/TokenizationPauseTokenRequest.md)
|
|
825
|
+
- [CoboWaas2.TokenizationPermissionAction](docs/TokenizationPermissionAction.md)
|
|
814
826
|
- [CoboWaas2.TokenizationSOLTokenParams](docs/TokenizationSOLTokenParams.md)
|
|
827
|
+
- [CoboWaas2.TokenizationSOLWrappedTokenParams](docs/TokenizationSOLWrappedTokenParams.md)
|
|
815
828
|
- [CoboWaas2.TokenizationSolContractCallParams](docs/TokenizationSolContractCallParams.md)
|
|
816
829
|
- [CoboWaas2.TokenizationSolTokenPermissionParams](docs/TokenizationSolTokenPermissionParams.md)
|
|
830
|
+
- [CoboWaas2.TokenizationSolWrappedTokenPermissionParams](docs/TokenizationSolWrappedTokenPermissionParams.md)
|
|
817
831
|
- [CoboWaas2.TokenizationStatus](docs/TokenizationStatus.md)
|
|
818
832
|
- [CoboWaas2.TokenizationToggleAllowlistEstimateFeeParams](docs/TokenizationToggleAllowlistEstimateFeeParams.md)
|
|
819
833
|
- [CoboWaas2.TokenizationTokenDetailInfo](docs/TokenizationTokenDetailInfo.md)
|
|
820
834
|
- [CoboWaas2.TokenizationTokenInfo](docs/TokenizationTokenInfo.md)
|
|
821
835
|
- [CoboWaas2.TokenizationTokenOperationSource](docs/TokenizationTokenOperationSource.md)
|
|
822
836
|
- [CoboWaas2.TokenizationTokenPermission](docs/TokenizationTokenPermission.md)
|
|
823
|
-
- [CoboWaas2.TokenizationTokenPermissionParams](docs/TokenizationTokenPermissionParams.md)
|
|
824
837
|
- [CoboWaas2.TokenizationTokenPermissionType](docs/TokenizationTokenPermissionType.md)
|
|
825
|
-
- [CoboWaas2.TokenizationTokenPermissionsResponse](docs/TokenizationTokenPermissionsResponse.md)
|
|
826
838
|
- [CoboWaas2.TokenizationTokenStandard](docs/TokenizationTokenStandard.md)
|
|
827
839
|
- [CoboWaas2.TokenizationUnpauseEstimateFeeParams](docs/TokenizationUnpauseEstimateFeeParams.md)
|
|
828
840
|
- [CoboWaas2.TokenizationUnpauseTokenParams](docs/TokenizationUnpauseTokenParams.md)
|
|
829
841
|
- [CoboWaas2.TokenizationUnpauseTokenRequest](docs/TokenizationUnpauseTokenRequest.md)
|
|
830
842
|
- [CoboWaas2.TokenizationUpdateAddressAction](docs/TokenizationUpdateAddressAction.md)
|
|
843
|
+
- [CoboWaas2.TokenizationUpdateAddressPermissions](docs/TokenizationUpdateAddressPermissions.md)
|
|
831
844
|
- [CoboWaas2.TokenizationUpdateAllowlistAddressesEstimateFeeParams](docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md)
|
|
832
845
|
- [CoboWaas2.TokenizationUpdateAllowlistAddressesParams](docs/TokenizationUpdateAllowlistAddressesParams.md)
|
|
833
846
|
- [CoboWaas2.TokenizationUpdateAllowlistAddressesParamsAddressesInner](docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md)
|
|
@@ -836,6 +849,9 @@ Class | Method | HTTP request | Description
|
|
|
836
849
|
- [CoboWaas2.TokenizationUpdateBlocklistAddressesParams](docs/TokenizationUpdateBlocklistAddressesParams.md)
|
|
837
850
|
- [CoboWaas2.TokenizationUpdateBlocklistAddressesParamsAddressesInner](docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md)
|
|
838
851
|
- [CoboWaas2.TokenizationUpdateBlocklistAddressesRequest](docs/TokenizationUpdateBlocklistAddressesRequest.md)
|
|
852
|
+
- [CoboWaas2.TokenizationUpdatePermissionsEstimateFeeParams](docs/TokenizationUpdatePermissionsEstimateFeeParams.md)
|
|
853
|
+
- [CoboWaas2.TokenizationUpdatePermissionsParams](docs/TokenizationUpdatePermissionsParams.md)
|
|
854
|
+
- [CoboWaas2.TokenizationUpdatePermissionsRequest](docs/TokenizationUpdatePermissionsRequest.md)
|
|
839
855
|
- [CoboWaas2.TokenizationWeb3OperationSource](docs/TokenizationWeb3OperationSource.md)
|
|
840
856
|
- [CoboWaas2.TokensEventData](docs/TokensEventData.md)
|
|
841
857
|
- [CoboWaas2.TopUpAddress](docs/TopUpAddress.md)
|
package/dist/ApiClient.js
CHANGED
package/dist/api/AutoSweepApi.js
CHANGED
|
@@ -87,7 +87,7 @@ var AutoSweepApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Create sweep-to address
|
|
91
91
|
* This operation creates a new sweep-to address for the specified wallet. The previously sweep-to address for the same token becomes invalid once the new one is created. Use this operation to change the sweep-to address when your setup changes, you switch networks, or the current address is compromised or tainted by suspicious funds. You can withdraw any remaining balances from the old sweep-to addresses to the new address or another designated destination. <Note>Sweep-to addresses are only applicable to MPC Wallets and Web3 Wallets with the auto-sweep feature enabled.</Note>
|
|
92
92
|
* @param {Object} opts Optional parameters
|
|
93
93
|
* @param {module:model/CreateSweepToAddress} [CreateSweepToAddress] The request body to generates a new sweep-to address within a specified wallet.
|
|
@@ -113,7 +113,7 @@ var AutoSweepApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* Create sweep-to address
|
|
117
117
|
* This operation creates a new sweep-to address for the specified wallet. The previously sweep-to address for the same token becomes invalid once the new one is created. Use this operation to change the sweep-to address when your setup changes, you switch networks, or the current address is compromised or tainted by suspicious funds. You can withdraw any remaining balances from the old sweep-to addresses to the new address or another designated destination. <Note>Sweep-to addresses are only applicable to MPC Wallets and Web3 Wallets with the auto-sweep feature enabled.</Note>
|
|
118
118
|
* @param {Object} opts Optional parameters
|
|
119
119
|
* @param {module:model/CreateSweepToAddress} opts.CreateSweepToAddress The request body to generates a new sweep-to address within a specified wallet.
|
|
@@ -222,7 +222,7 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
222
222
|
* Submit KYT manual review result
|
|
223
223
|
* This operation submits a manual review result for a KYT (Know Your Transaction) screening case that requires human analysis. Use this endpoint when transactions flagged for manual review have been analyzed by compliance officers and require submission of review outcomes with detailed comments and justifications. This endpoint is specifically designed for submitting comprehensive manual review findings rather than automated screening decisions. <Note>Submitting a manual review result will update the KYT screening status and initiate appropriate compliance workflow actions based on the review outcome.</Note>
|
|
224
224
|
* @param {Object} opts Optional parameters
|
|
225
|
-
* @param {module:model/SubmitKytScreeningsReviewBody} [SubmitKytScreeningsReviewBody] The request body to submit a manual review result for KYT screening case that requires human analysis.
|
|
225
|
+
* @param {module:model/SubmitKytScreeningsReviewBody} [SubmitKytScreeningsReviewBody] The request body to submit a manual review result for a KYT screening case that requires human analysis.
|
|
226
226
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubmitKytResponse} and HTTP response
|
|
227
227
|
*/
|
|
228
228
|
}, {
|
|
@@ -248,7 +248,7 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
248
248
|
* Submit KYT manual review result
|
|
249
249
|
* This operation submits a manual review result for a KYT (Know Your Transaction) screening case that requires human analysis. Use this endpoint when transactions flagged for manual review have been analyzed by compliance officers and require submission of review outcomes with detailed comments and justifications. This endpoint is specifically designed for submitting comprehensive manual review findings rather than automated screening decisions. <Note>Submitting a manual review result will update the KYT screening status and initiate appropriate compliance workflow actions based on the review outcome.</Note>
|
|
250
250
|
* @param {Object} opts Optional parameters
|
|
251
|
-
* @param {module:model/SubmitKytScreeningsReviewBody} opts.SubmitKytScreeningsReviewBody The request body to submit a manual review result for KYT screening case that requires human analysis.
|
|
251
|
+
* @param {module:model/SubmitKytScreeningsReviewBody} opts.SubmitKytScreeningsReviewBody The request body to submit a manual review result for a KYT screening case that requires human analysis.
|
|
252
252
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubmitKytResponse}
|
|
253
253
|
*/
|
|
254
254
|
}, {
|
|
@@ -49,7 +49,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* Check Fee Station usage
|
|
52
|
-
* This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in
|
|
52
|
+
* This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in USD stablecoin.
|
|
53
53
|
* @param {Object} opts Optional parameters
|
|
54
54
|
* @param {module:model/FeeStationCheckFeeStationUsage} [FeeStationCheckFeeStationUsage] The information for evaluating Fee Station usage.
|
|
55
55
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FeeStationCheckFeeStationUsageResponse} and HTTP response
|
|
@@ -75,7 +75,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Check Fee Station usage
|
|
78
|
-
* This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in
|
|
78
|
+
* This operation evaluates Fee Station usage for the current transaction. It determines whether Fee station can be used, checks if the Fee Station balance is sufficient, and returns a breakdown of the amounts involved, including any portion that must be covered by the user or sponsored in USD stablecoin.
|
|
79
79
|
* @param {Object} opts Optional parameters
|
|
80
80
|
* @param {module:model/FeeStationCheckFeeStationUsage} opts.FeeStationCheckFeeStationUsage The information for evaluating Fee Station usage.
|
|
81
81
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FeeStationCheckFeeStationUsageResponse}
|
|
@@ -89,8 +89,8 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* Estimate fee
|
|
93
|
-
* This operation
|
|
92
|
+
* Estimate transaction fee
|
|
93
|
+
* <Note>This operation is **deprecated**. Please use the enhanced version [Check Fee Station usage](https://www.cobo.com/developers/v2/api-references/feestation/check-fee-station-usage) instead.</Note> This operation estimates the transaction fee of a token transfer 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 destination address, token ID. 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).
|
|
94
94
|
* @param {Object} opts Optional parameters
|
|
95
95
|
* @param {module:model/FeeStationTransfer} [FeeStationTransfer] The information about a Fee Station top-up transaction.
|
|
96
96
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EstimatedFixedFee} and HTTP response
|
|
@@ -115,8 +115,8 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
|
-
* Estimate fee
|
|
119
|
-
* This operation
|
|
118
|
+
* Estimate transaction fee
|
|
119
|
+
* <Note>This operation is **deprecated**. Please use the enhanced version [Check Fee Station usage](https://www.cobo.com/developers/v2/api-references/feestation/check-fee-station-usage) instead.</Note> This operation estimates the transaction fee of a token transfer 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 destination address, token ID. 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).
|
|
120
120
|
* @param {Object} opts Optional parameters
|
|
121
121
|
* @param {module:model/FeeStationTransfer} opts.FeeStationTransfer The information about a Fee Station top-up transaction.
|
|
122
122
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EstimatedFixedFee}
|
package/dist/api/PaymentApi.js
CHANGED
|
@@ -11,6 +11,7 @@ var _CreateCryptoAddressRequest = _interopRequireDefault(require("../model/Creat
|
|
|
11
11
|
var _CreateMerchantRequest = _interopRequireDefault(require("../model/CreateMerchantRequest"));
|
|
12
12
|
var _CreateOrderLinkRequest = _interopRequireDefault(require("../model/CreateOrderLinkRequest"));
|
|
13
13
|
var _CreatePaymentOrderRequest = _interopRequireDefault(require("../model/CreatePaymentOrderRequest"));
|
|
14
|
+
var _CreateRefundLinkRequest = _interopRequireDefault(require("../model/CreateRefundLinkRequest"));
|
|
14
15
|
var _CreateRefundRequest = _interopRequireDefault(require("../model/CreateRefundRequest"));
|
|
15
16
|
var _CreateSettlementRequestRequest = _interopRequireDefault(require("../model/CreateSettlementRequestRequest"));
|
|
16
17
|
var _CryptoAddress = _interopRequireDefault(require("../model/CryptoAddress"));
|
|
@@ -249,9 +250,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
249
250
|
|
|
250
251
|
/**
|
|
251
252
|
* Create order link
|
|
252
|
-
* This operation
|
|
253
|
+
* This operation generates a payment link for a pay-in order. The link directs users to a hosted payment page where they can complete their payment for the order. You can share the link directly with users or embed the payment page in your website or application using an iframe. For more details, see [Payment Link](https://www.cobo.com/developers/v2/payments/payment-link).
|
|
253
254
|
* @param {Object} opts Optional parameters
|
|
254
|
-
* @param {module:model/CreateOrderLinkRequest} [CreateOrderLinkRequest] The request body to create a payment link
|
|
255
|
+
* @param {module:model/CreateOrderLinkRequest} [CreateOrderLinkRequest] The request body to create a payment link for a pay-in order.
|
|
255
256
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Link} and HTTP response
|
|
256
257
|
*/
|
|
257
258
|
}, {
|
|
@@ -275,9 +276,9 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
275
276
|
|
|
276
277
|
/**
|
|
277
278
|
* Create order link
|
|
278
|
-
* This operation
|
|
279
|
+
* This operation generates a payment link for a pay-in order. The link directs users to a hosted payment page where they can complete their payment for the order. You can share the link directly with users or embed the payment page in your website or application using an iframe. For more details, see [Payment Link](https://www.cobo.com/developers/v2/payments/payment-link).
|
|
279
280
|
* @param {Object} opts Optional parameters
|
|
280
|
-
* @param {module:model/CreateOrderLinkRequest} opts.CreateOrderLinkRequest The request body to create a payment link
|
|
281
|
+
* @param {module:model/CreateOrderLinkRequest} opts.CreateOrderLinkRequest The request body to create a payment link for a pay-in order.
|
|
281
282
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Link}
|
|
282
283
|
*/
|
|
283
284
|
}, {
|
|
@@ -370,6 +371,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
370
371
|
});
|
|
371
372
|
}
|
|
372
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Create refund link
|
|
376
|
+
* This operation creates a payment link for a refund.
|
|
377
|
+
* @param {Object} opts Optional parameters
|
|
378
|
+
* @param {module:model/CreateRefundLinkRequest} [CreateRefundLinkRequest] The request body to create a payment link for a refund.
|
|
379
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Link} and HTTP response
|
|
380
|
+
*/
|
|
381
|
+
}, {
|
|
382
|
+
key: "createRefundLinkWithHttpInfo",
|
|
383
|
+
value: function createRefundLinkWithHttpInfo(opts) {
|
|
384
|
+
opts = opts || {};
|
|
385
|
+
var postBody = opts['CreateRefundLinkRequest'];
|
|
386
|
+
if (postBody && postBody.toJSON) {
|
|
387
|
+
postBody = postBody.toJSON();
|
|
388
|
+
}
|
|
389
|
+
var pathParams = {};
|
|
390
|
+
var queryParams = {};
|
|
391
|
+
var headerParams = {};
|
|
392
|
+
var formParams = {};
|
|
393
|
+
var authNames = ['CoboAuth'];
|
|
394
|
+
var contentTypes = ['application/json'];
|
|
395
|
+
var accepts = ['application/json'];
|
|
396
|
+
var returnType = _Link["default"];
|
|
397
|
+
return this.apiClient.callApi('/payments/links/refunds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Create refund link
|
|
402
|
+
* This operation creates a payment link for a refund.
|
|
403
|
+
* @param {Object} opts Optional parameters
|
|
404
|
+
* @param {module:model/CreateRefundLinkRequest} opts.CreateRefundLinkRequest The request body to create a payment link for a refund.
|
|
405
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Link}
|
|
406
|
+
*/
|
|
407
|
+
}, {
|
|
408
|
+
key: "createRefundLink",
|
|
409
|
+
value: function createRefundLink(opts) {
|
|
410
|
+
return this.createRefundLinkWithHttpInfo(opts).then(function (response_and_data) {
|
|
411
|
+
return response_and_data.data;
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
|
|
373
415
|
/**
|
|
374
416
|
* Create settlement request
|
|
375
417
|
* This operation creates a settlement request to withdraw available balances.
|
|
@@ -1749,7 +1791,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1749
1791
|
|
|
1750
1792
|
/**
|
|
1751
1793
|
* Update top-up address
|
|
1752
|
-
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
1794
|
+
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain. <Note> You can update the top-up address for a given payer a maximum of 10 times. If you exceed this limit, the API request will return an error. </Note>
|
|
1753
1795
|
* @param {Object} opts Optional parameters
|
|
1754
1796
|
* @param {module:model/UpdateTopUpAddress} [UpdateTopUpAddress] The request body to update top-up address.
|
|
1755
1797
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopUpAddress} and HTTP response
|
|
@@ -1775,7 +1817,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1775
1817
|
|
|
1776
1818
|
/**
|
|
1777
1819
|
* Update top-up address
|
|
1778
|
-
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain.
|
|
1820
|
+
* This operation updates the dedicated top-up address assigned to a specific payer under a merchant on a specified chain. <Note> You can update the top-up address for a given payer a maximum of 10 times. If you exceed this limit, the API request will return an error. </Note>
|
|
1779
1821
|
* @param {Object} opts Optional parameters
|
|
1780
1822
|
* @param {module:model/UpdateTopUpAddress} opts.UpdateTopUpAddress The request body to update top-up address.
|
|
1781
1823
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopUpAddress}
|
|
@@ -20,6 +20,7 @@ var _TokenizationIssuedTokenRequest = _interopRequireDefault(require("../model/T
|
|
|
20
20
|
var _TokenizationListActivitiesResponse = _interopRequireDefault(require("../model/TokenizationListActivitiesResponse"));
|
|
21
21
|
var _TokenizationListEnabledChainsResponse = _interopRequireDefault(require("../model/TokenizationListEnabledChainsResponse"));
|
|
22
22
|
var _TokenizationListHoldingsResponse = _interopRequireDefault(require("../model/TokenizationListHoldingsResponse"));
|
|
23
|
+
var _TokenizationListPermissionsResponse = _interopRequireDefault(require("../model/TokenizationListPermissionsResponse"));
|
|
23
24
|
var _TokenizationListTokenInfoResponse = _interopRequireDefault(require("../model/TokenizationListTokenInfoResponse"));
|
|
24
25
|
var _TokenizationMintTokenRequest = _interopRequireDefault(require("../model/TokenizationMintTokenRequest"));
|
|
25
26
|
var _TokenizationOperationResponse = _interopRequireDefault(require("../model/TokenizationOperationResponse"));
|
|
@@ -31,6 +32,7 @@ var _TokenizationTokenStandard = _interopRequireDefault(require("../model/Tokeni
|
|
|
31
32
|
var _TokenizationUnpauseTokenRequest = _interopRequireDefault(require("../model/TokenizationUnpauseTokenRequest"));
|
|
32
33
|
var _TokenizationUpdateAllowlistAddressesRequest = _interopRequireDefault(require("../model/TokenizationUpdateAllowlistAddressesRequest"));
|
|
33
34
|
var _TokenizationUpdateBlocklistAddressesRequest = _interopRequireDefault(require("../model/TokenizationUpdateBlocklistAddressesRequest"));
|
|
35
|
+
var _TokenizationUpdatePermissionsRequest = _interopRequireDefault(require("../model/TokenizationUpdatePermissionsRequest"));
|
|
34
36
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
35
37
|
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); }
|
|
36
38
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -66,7 +68,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
66
68
|
|
|
67
69
|
/**
|
|
68
70
|
* Burn tokens
|
|
69
|
-
* This operation burns tokens from a specified address. Creates a burn transaction that will decrease the token supply.
|
|
71
|
+
* This operation burns tokens from a specified address. Creates a burn transaction that will decrease the token supply. **Note**: This operation is not supported for CoboERC20Wrapper and SOLWrapper tokens.
|
|
70
72
|
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
71
73
|
* @param {Object} opts Optional parameters
|
|
72
74
|
* @param {module:model/TokenizationBurnTokenRequest} [TokenizationBurnTokenRequest] The request body for burning tokens.
|
|
@@ -99,7 +101,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
99
101
|
|
|
100
102
|
/**
|
|
101
103
|
* Burn tokens
|
|
102
|
-
* This operation burns tokens from a specified address. Creates a burn transaction that will decrease the token supply.
|
|
104
|
+
* This operation burns tokens from a specified address. Creates a burn transaction that will decrease the token supply. **Note**: This operation is not supported for CoboERC20Wrapper and SOLWrapper tokens.
|
|
103
105
|
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
104
106
|
* @param {Object} opts Optional parameters
|
|
105
107
|
* @param {module:model/TokenizationBurnTokenRequest} opts.TokenizationBurnTokenRequest The request body for burning tokens.
|
|
@@ -628,10 +630,74 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
628
630
|
});
|
|
629
631
|
}
|
|
630
632
|
|
|
633
|
+
/**
|
|
634
|
+
* List token permissions
|
|
635
|
+
* This operation retrieves the permission settings for a tokenization contract.
|
|
636
|
+
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
637
|
+
* @param {Object} opts Optional parameters
|
|
638
|
+
* @param {String} [address] The address to query permissions for. If not provided, returns all addresses with permissions.
|
|
639
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
640
|
+
* @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.
|
|
641
|
+
* @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.
|
|
642
|
+
* @param {module:model/String} [direction = 'ASC')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
|
|
643
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizationListPermissionsResponse} and HTTP response
|
|
644
|
+
*/
|
|
645
|
+
}, {
|
|
646
|
+
key: "listTokenizationPermissionsWithHttpInfo",
|
|
647
|
+
value: function listTokenizationPermissionsWithHttpInfo(token_id, opts) {
|
|
648
|
+
opts = opts || {};
|
|
649
|
+
var postBody = null;
|
|
650
|
+
if (postBody && postBody.toJSON) {
|
|
651
|
+
postBody = postBody.toJSON();
|
|
652
|
+
}
|
|
653
|
+
// verify the required parameter 'token_id' is set
|
|
654
|
+
if (token_id === undefined || token_id === null) {
|
|
655
|
+
throw new Error("Missing the required parameter 'token_id' when calling listTokenizationPermissions");
|
|
656
|
+
}
|
|
657
|
+
var pathParams = {
|
|
658
|
+
'token_id': token_id
|
|
659
|
+
};
|
|
660
|
+
var queryParams = {
|
|
661
|
+
'address': opts['address'],
|
|
662
|
+
'limit': opts['limit'],
|
|
663
|
+
'after': opts['after'],
|
|
664
|
+
'before': opts['before'],
|
|
665
|
+
'direction': opts['direction']
|
|
666
|
+
};
|
|
667
|
+
var headerParams = {};
|
|
668
|
+
var formParams = {};
|
|
669
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
670
|
+
var contentTypes = [];
|
|
671
|
+
var accepts = ['application/json'];
|
|
672
|
+
var returnType = _TokenizationListPermissionsResponse["default"];
|
|
673
|
+
return this.apiClient.callApi('/tokenization/tokens/{token_id}/permissions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* List token permissions
|
|
678
|
+
* This operation retrieves the permission settings for a tokenization contract.
|
|
679
|
+
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
680
|
+
* @param {Object} opts Optional parameters
|
|
681
|
+
* @param {String} opts.address The address to query permissions for. If not provided, returns all addresses with permissions.
|
|
682
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
683
|
+
* @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.
|
|
684
|
+
* @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
|
|
685
|
+
* @param {module:model/String} opts.direction The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order. (default to 'ASC')
|
|
686
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizationListPermissionsResponse}
|
|
687
|
+
*/
|
|
688
|
+
}, {
|
|
689
|
+
key: "listTokenizationPermissions",
|
|
690
|
+
value: function listTokenizationPermissions(token_id, opts) {
|
|
691
|
+
return this.listTokenizationPermissionsWithHttpInfo(token_id, opts).then(function (response_and_data) {
|
|
692
|
+
return response_and_data.data;
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
|
|
631
696
|
/**
|
|
632
697
|
* List supported chains for tokenization
|
|
633
698
|
* This operation retrieves a list of tokenization supported chains.
|
|
634
699
|
* @param {Object} opts Optional parameters
|
|
700
|
+
* @param {module:model/TokenizationTokenStandard} [token_standard] Filter by token standard.
|
|
635
701
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
636
702
|
* @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.
|
|
637
703
|
* @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.
|
|
@@ -647,6 +713,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
647
713
|
}
|
|
648
714
|
var pathParams = {};
|
|
649
715
|
var queryParams = {
|
|
716
|
+
'token_standard': opts['token_standard'],
|
|
650
717
|
'limit': opts['limit'],
|
|
651
718
|
'after': opts['after'],
|
|
652
719
|
'before': opts['before']
|
|
@@ -664,6 +731,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
664
731
|
* List supported chains for tokenization
|
|
665
732
|
* This operation retrieves a list of tokenization supported chains.
|
|
666
733
|
* @param {Object} opts Optional parameters
|
|
734
|
+
* @param {module:model/TokenizationTokenStandard} opts.token_standard Filter by token standard.
|
|
667
735
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
668
736
|
* @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.
|
|
669
737
|
* @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.
|
|
@@ -679,7 +747,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
679
747
|
|
|
680
748
|
/**
|
|
681
749
|
* Mint tokens
|
|
682
|
-
* This operation mints new tokens to a specified address. Creates a mint transaction that will increase the token supply.
|
|
750
|
+
* This operation mints new tokens to a specified address. Creates a mint transaction that will increase the token supply. **Note**: This operation is not supported for CoboERC20Wrapper and SOLWrapper tokens.
|
|
683
751
|
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
684
752
|
* @param {module:model/TokenizationMintTokenRequest} TokenizationMintTokenRequest The request body for minting tokens.
|
|
685
753
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizationOperationResponse} and HTTP response
|
|
@@ -714,7 +782,7 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
714
782
|
|
|
715
783
|
/**
|
|
716
784
|
* Mint tokens
|
|
717
|
-
* This operation mints new tokens to a specified address. Creates a mint transaction that will increase the token supply.
|
|
785
|
+
* This operation mints new tokens to a specified address. Creates a mint transaction that will increase the token supply. **Note**: This operation is not supported for CoboERC20Wrapper and SOLWrapper tokens.
|
|
718
786
|
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
719
787
|
* @param {module:model/TokenizationMintTokenRequest} TokenizationMintTokenRequest The request body for minting tokens.
|
|
720
788
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizationOperationResponse}
|
|
@@ -1020,5 +1088,55 @@ var TokenizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1020
1088
|
return response_and_data.data;
|
|
1021
1089
|
});
|
|
1022
1090
|
}
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Update token permissions
|
|
1094
|
+
* This operation updates permission settings for a tokenization contract.
|
|
1095
|
+
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
1096
|
+
* @param {module:model/TokenizationUpdatePermissionsRequest} TokenizationUpdatePermissionsRequest The request body for managing permissions.
|
|
1097
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizationOperationResponse} and HTTP response
|
|
1098
|
+
*/
|
|
1099
|
+
}, {
|
|
1100
|
+
key: "updateTokenizationPermissionsWithHttpInfo",
|
|
1101
|
+
value: function updateTokenizationPermissionsWithHttpInfo(token_id, TokenizationUpdatePermissionsRequest) {
|
|
1102
|
+
var postBody = TokenizationUpdatePermissionsRequest;
|
|
1103
|
+
if (postBody && postBody.toJSON) {
|
|
1104
|
+
postBody = postBody.toJSON();
|
|
1105
|
+
}
|
|
1106
|
+
// verify the required parameter 'token_id' is set
|
|
1107
|
+
if (token_id === undefined || token_id === null) {
|
|
1108
|
+
throw new Error("Missing the required parameter 'token_id' when calling updateTokenizationPermissions");
|
|
1109
|
+
}
|
|
1110
|
+
// verify the required parameter 'TokenizationUpdatePermissionsRequest' is set
|
|
1111
|
+
if (TokenizationUpdatePermissionsRequest === undefined || TokenizationUpdatePermissionsRequest === null) {
|
|
1112
|
+
throw new Error("Missing the required parameter 'TokenizationUpdatePermissionsRequest' when calling updateTokenizationPermissions");
|
|
1113
|
+
}
|
|
1114
|
+
var pathParams = {
|
|
1115
|
+
'token_id': token_id
|
|
1116
|
+
};
|
|
1117
|
+
var queryParams = {};
|
|
1118
|
+
var headerParams = {};
|
|
1119
|
+
var formParams = {};
|
|
1120
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
1121
|
+
var contentTypes = ['application/json'];
|
|
1122
|
+
var accepts = ['application/json'];
|
|
1123
|
+
var returnType = _TokenizationOperationResponse["default"];
|
|
1124
|
+
return this.apiClient.callApi('/tokenization/tokens/{token_id}/permissions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Update token permissions
|
|
1129
|
+
* This operation updates permission settings for a tokenization contract.
|
|
1130
|
+
* @param {String} token_id The token ID, which is the unique identifier of a token.
|
|
1131
|
+
* @param {module:model/TokenizationUpdatePermissionsRequest} TokenizationUpdatePermissionsRequest The request body for managing permissions.
|
|
1132
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizationOperationResponse}
|
|
1133
|
+
*/
|
|
1134
|
+
}, {
|
|
1135
|
+
key: "updateTokenizationPermissions",
|
|
1136
|
+
value: function updateTokenizationPermissions(token_id, TokenizationUpdatePermissionsRequest) {
|
|
1137
|
+
return this.updateTokenizationPermissionsWithHttpInfo(token_id, TokenizationUpdatePermissionsRequest).then(function (response_and_data) {
|
|
1138
|
+
return response_and_data.data;
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1023
1141
|
}]);
|
|
1024
1142
|
}();
|
|
@@ -749,7 +749,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
749
749
|
|
|
750
750
|
/**
|
|
751
751
|
* Resend transaction
|
|
752
|
-
* This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
752
|
+
* <Note>Resending failed transactions is not supported on the Solana network.</Note> This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
753
753
|
* @param {String} transaction_id The transaction ID.
|
|
754
754
|
* @param {Object} opts Optional parameters
|
|
755
755
|
* @param {module:model/TransactionResend} [TransactionResend] The request body to resend transactions
|
|
@@ -782,7 +782,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
782
782
|
|
|
783
783
|
/**
|
|
784
784
|
* Resend transaction
|
|
785
|
-
* This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
785
|
+
* <Note>Resending failed transactions is not supported on the Solana network.</Note> This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#resend-a-transaction). Resending a transaction is a high‑risk operation. Ensure that the original transaction has not been broadcast to the blockchain, has already expired, and will never be confirmed. Otherwise, the same transaction may be confirmed on‑chain twice. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
786
786
|
* @param {String} transaction_id The transaction ID.
|
|
787
787
|
* @param {Object} opts Optional parameters
|
|
788
788
|
* @param {module:model/TransactionResend} opts.TransactionResend The request body to resend transactions
|