@cobo/cobo-waas2 1.17.0 → 1.18.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 +36 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/OAuthApi.js +12 -12
- package/dist/api/OrganizationsApi.js +79 -0
- package/dist/api/PaymentApi.js +233 -16
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/WalletsApi.js +5 -2
- package/dist/index.js +203 -7
- package/dist/model/Account.js +174 -0
- package/dist/model/AcquiringType.js +61 -0
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/BalanceUpdateInfo.js +170 -0
- package/dist/model/BalanceUpdateInfoEventData.js +297 -0
- package/dist/model/BankAccount.js +2 -2
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CreateMerchantRequest.js +13 -0
- package/dist/model/CreatePaymentOrderRequest.js +10 -1
- package/dist/model/CreateRefundRequest.js +9 -11
- package/dist/model/CreateSettlement.js +8 -27
- package/dist/model/CreateSettlementRequestRequest.js +27 -0
- package/dist/model/CryptoAddress.js +7 -7
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimatedFILFee.js +170 -0
- package/dist/model/EstimatedFILFeeSlow.js +186 -0
- package/dist/model/EstimatedFee.js +68 -12
- package/dist/model/EstimatedSOLFee.js +170 -0
- package/dist/model/EstimatedSOLFeeSlow.js +184 -0
- package/dist/model/ExchangePermissionToken201Response.js +4 -4
- package/dist/model/ExchangePermissionTokenRequest.js +2 -2
- package/dist/model/FILBase.js +88 -0
- package/dist/model/FILPrice.js +114 -0
- package/dist/model/FeeType.js +10 -0
- package/dist/model/GetExchangeRate200Response.js +2 -2
- package/dist/model/GraphQLError.js +135 -0
- package/dist/model/GraphQLErrorLocationsInner.js +92 -0
- package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → GraphQLRequest.js} +49 -36
- package/dist/model/GraphQLResponse.js +119 -0
- package/dist/model/ListTopUpPayers200Response.js +123 -0
- package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/Merchant.js +15 -2
- package/dist/model/Order.js +12 -3
- package/dist/model/PayerAccount.js +189 -0
- package/dist/model/PaymentOrderEventData.js +27 -9
- package/dist/model/PaymentRefundEventData.js +66 -11
- package/dist/model/PaymentSettlementEvent.js +14 -9
- package/dist/model/RefreshPermissionTokenRequest.js +2 -2
- package/dist/model/Refund.js +39 -4
- package/dist/model/RefundStatus.js +5 -0
- package/dist/model/SOLBase.js +101 -0
- package/dist/model/SOLComputeUnit.js +101 -0
- package/dist/model/Settlement.js +3 -3
- package/dist/model/SettlementDetail.js +15 -6
- package/dist/model/SettlementInfo.js +11 -2
- package/dist/model/SwapActivityDetail.js +30 -0
- package/dist/model/SwapActivitySigners.js +110 -0
- package/dist/model/SwapQuote.js +17 -4
- package/dist/model/SwapSingingStatus.js +71 -0
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TopUpAddress.js +230 -0
- package/dist/model/TransactionCoboCategory.js +20 -0
- package/dist/model/TransactionDestination.js +10 -38
- package/dist/model/TransactionEvmCalldataInfo.js +1 -1
- package/dist/model/TransactionFILFee.js +229 -0
- package/dist/model/TransactionFee.js +107 -9
- package/dist/model/TransactionRequestFILFee.js +186 -0
- package/dist/model/TransactionRequestFee.js +89 -9
- package/dist/model/TransactionRequestSOLFee.js +168 -0
- package/dist/model/TransactionSOLFee.js +229 -0
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionTransferToWalletDestination.js +1 -1
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/UpdateMerchantByIdRequest.js +13 -0
- package/dist/model/UpdateRefundByIdRequest.js +110 -0
- package/dist/model/UpdateTopUpAddress.js +141 -0
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEvent.js +2 -2
- package/dist/model/WebhookEventData.js +83 -13
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventLog.js +2 -2
- package/dist/model/WebhookEventType.js +15 -0
- package/docs/Account.md +14 -0
- package/docs/AcquiringType.md +12 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressesEventData.md +3 -1
- package/docs/BalanceUpdateInfo.md +13 -0
- package/docs/BalanceUpdateInfoEventData.md +47 -0
- package/docs/BankAccount.md +2 -2
- package/docs/ChainsEventData.md +3 -1
- package/docs/CreateMerchantRequest.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +2 -1
- package/docs/CreateRefundRequest.md +5 -5
- package/docs/CreateSettlement.md +7 -9
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CryptoAddress.md +5 -5
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimatedFILFee.md +13 -0
- package/docs/EstimatedFILFeeSlow.md +12 -0
- package/docs/EstimatedFee.md +3 -3
- package/docs/EstimatedSOLFee.md +13 -0
- package/docs/EstimatedSOLFeeSlow.md +12 -0
- package/docs/ExchangePermissionToken201Response.md +4 -4
- package/docs/ExchangePermissionTokenRequest.md +1 -1
- package/docs/FILBase.md +9 -0
- package/docs/FILPrice.md +11 -0
- package/docs/FeeStationApi.md +1 -1
- package/docs/FeeType.md +4 -0
- package/docs/GetExchangeRate200Response.md +1 -1
- package/docs/GraphQLError.md +11 -0
- package/docs/GraphQLErrorLocationsInner.md +10 -0
- package/docs/GraphQLRequest.md +11 -0
- package/docs/GraphQLResponse.md +10 -0
- package/docs/ListTopUpPayers200Response.md +10 -0
- package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +3 -2
- package/docs/OAuthApi.md +8 -8
- package/docs/Order.md +4 -3
- package/docs/OrganizationsApi.md +55 -0
- package/docs/PayerAccount.md +14 -0
- package/docs/PaymentApi.md +230 -6
- package/docs/PaymentOrderEventData.md +7 -4
- package/docs/PaymentRefundEventData.md +10 -5
- package/docs/PaymentSettlementEvent.md +6 -4
- package/docs/RefreshPermissionTokenRequest.md +1 -1
- package/docs/Refund.md +7 -4
- package/docs/RefundStatus.md +2 -0
- package/docs/SOLBase.md +10 -0
- package/docs/SOLComputeUnit.md +10 -0
- package/docs/Settlement.md +3 -3
- package/docs/SettlementDetail.md +7 -6
- package/docs/SettlementInfo.md +3 -2
- package/docs/SwapActivityDetail.md +1 -0
- package/docs/SwapActivitySigners.md +11 -0
- package/docs/SwapQuote.md +3 -2
- package/docs/SwapSingingStatus.md +16 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/TopUpAddress.md +18 -0
- package/docs/TransactionCoboCategory.md +8 -0
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionEvmCalldataInfo.md +1 -1
- package/docs/TransactionFILFee.md +16 -0
- package/docs/TransactionFee.md +8 -1
- package/docs/TransactionRequestFILFee.md +13 -0
- package/docs/TransactionRequestFee.md +5 -1
- package/docs/TransactionRequestSOLFee.md +12 -0
- package/docs/TransactionSOLFee.md +16 -0
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionTransferToWalletDestination.md +1 -1
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +1 -1
- package/docs/TransferDestination.md +2 -2
- package/docs/UpdateMerchantByIdRequest.md +1 -0
- package/docs/UpdateRefundByIdRequest.md +9 -0
- package/docs/UpdateTopUpAddress.md +11 -0
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +3 -1
- package/docs/WebhookEvent.md +1 -1
- package/docs/WebhookEventData.md +14 -5
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventLog.md +1 -1
- package/docs/WebhookEventType.md +6 -0
- package/package.json +1 -1
- package/docs/TransactionMessageSignBTCEIP191Destination.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.18.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)
|
|
@@ -91,10 +91,12 @@ Class | Method | HTTP request | Description
|
|
|
91
91
|
*CoboWaas2.FeeStationApi* | [**listFeeStationAddresses**](docs/FeeStationApi.md#listFeeStationAddresses) | **GET** /fee_station/addresses | List Fee Station addresses
|
|
92
92
|
*CoboWaas2.FeeStationApi* | [**listFeeStationTransactions**](docs/FeeStationApi.md#listFeeStationTransactions) | **GET** /fee_station/transactions | List all Fee Station transactions
|
|
93
93
|
*CoboWaas2.FeeStationApi* | [**listTokenBalancesForFeeStation**](docs/FeeStationApi.md#listTokenBalancesForFeeStation) | **GET** /fee_station/tokens | List Fee Station token balances
|
|
94
|
-
*CoboWaas2.OAuthApi* | [**exchangePermissionToken**](docs/OAuthApi.md#exchangePermissionToken) | **POST** /oauth/permission_token/exchange |
|
|
94
|
+
*CoboWaas2.OAuthApi* | [**exchangePermissionToken**](docs/OAuthApi.md#exchangePermissionToken) | **POST** /oauth/permission_token/exchange | Get Access Token
|
|
95
95
|
*CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
|
|
96
|
-
*CoboWaas2.OAuthApi* | [**refreshPermissionToken**](docs/OAuthApi.md#refreshPermissionToken) | **POST** /oauth/permission_token/refresh | Refresh
|
|
96
|
+
*CoboWaas2.OAuthApi* | [**refreshPermissionToken**](docs/OAuthApi.md#refreshPermissionToken) | **POST** /oauth/permission_token/refresh | Refresh Access Token
|
|
97
97
|
*CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
|
|
98
|
+
*CoboWaas2.OrganizationsApi* | [**getOrgInfo**](docs/OrganizationsApi.md#getOrgInfo) | **GET** /organizations/info | Get organization information
|
|
99
|
+
*CoboWaas2.PaymentApi* | [**cancelRefundById**](docs/PaymentApi.md#cancelRefundById) | **PUT** /payments/refunds/{refund_id}/cancel | Cancel refund order
|
|
98
100
|
*CoboWaas2.PaymentApi* | [**createMerchant**](docs/PaymentApi.md#createMerchant) | **POST** /payments/merchants | Create merchant
|
|
99
101
|
*CoboWaas2.PaymentApi* | [**createPaymentOrder**](docs/PaymentApi.md#createPaymentOrder) | **POST** /payments/orders | Create pay-in order
|
|
100
102
|
*CoboWaas2.PaymentApi* | [**createRefund**](docs/PaymentApi.md#createRefund) | **POST** /payments/refunds | Create refund order
|
|
@@ -105,14 +107,17 @@ Class | Method | HTTP request | Description
|
|
|
105
107
|
*CoboWaas2.PaymentApi* | [**getRefunds**](docs/PaymentApi.md#getRefunds) | **GET** /payments/refunds | List all refund orders
|
|
106
108
|
*CoboWaas2.PaymentApi* | [**getSettlementById**](docs/PaymentApi.md#getSettlementById) | **GET** /payments/settlement_requests/{settlement_request_id} | Get settlement request information
|
|
107
109
|
*CoboWaas2.PaymentApi* | [**getSettlementInfoByIds**](docs/PaymentApi.md#getSettlementInfoByIds) | **GET** /payments/settlement_info | Get withdrawable balances
|
|
110
|
+
*CoboWaas2.PaymentApi* | [**getTopUpAddress**](docs/PaymentApi.md#getTopUpAddress) | **GET** /payments/topup/address | Get top-up address
|
|
108
111
|
*CoboWaas2.PaymentApi* | [**listBankAccounts**](docs/PaymentApi.md#listBankAccounts) | **GET** /payments/bank_accounts | List all bank accounts
|
|
109
112
|
*CoboWaas2.PaymentApi* | [**listCryptoAddresses**](docs/PaymentApi.md#listCryptoAddresses) | **GET** /payments/crypto_addresses | List crypto addresses
|
|
110
113
|
*CoboWaas2.PaymentApi* | [**listMerchants**](docs/PaymentApi.md#listMerchants) | **GET** /payments/merchants | List all merchants
|
|
111
114
|
*CoboWaas2.PaymentApi* | [**listPaymentOrders**](docs/PaymentApi.md#listPaymentOrders) | **GET** /payments/orders | List all pay-in orders
|
|
112
115
|
*CoboWaas2.PaymentApi* | [**listPaymentSupportedTokens**](docs/PaymentApi.md#listPaymentSupportedTokens) | **GET** /payments/supported_tokens | List all supported tokens
|
|
113
116
|
*CoboWaas2.PaymentApi* | [**listSettlementRequests**](docs/PaymentApi.md#listSettlementRequests) | **GET** /payments/settlement_requests | List all settlement requests
|
|
117
|
+
*CoboWaas2.PaymentApi* | [**listTopUpPayers**](docs/PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
|
|
114
118
|
*CoboWaas2.PaymentApi* | [**updateMerchantById**](docs/PaymentApi.md#updateMerchantById) | **PUT** /payments/merchants/{merchant_id} | Update merchant
|
|
115
119
|
*CoboWaas2.PaymentApi* | [**updatePaymentOrder**](docs/PaymentApi.md#updatePaymentOrder) | **PUT** /payments/orders/{order_id} | Update pay-in order
|
|
120
|
+
*CoboWaas2.PaymentApi* | [**updateRefundById**](docs/PaymentApi.md#updateRefundById) | **PUT** /payments/refunds/{refund_id} | Update refund order information
|
|
116
121
|
*CoboWaas2.PrimeBrokerApi* | [**changeGuardPubkey**](docs/PrimeBrokerApi.md#changeGuardPubkey) | **PUT** /prime_broker/user/{user_id}/guard_pubkey | Change Guard pubkey binding
|
|
117
122
|
*CoboWaas2.PrimeBrokerApi* | [**createGuardPubkey**](docs/PrimeBrokerApi.md#createGuardPubkey) | **POST** /prime_broker/user/{user_id}/guard_pubkey | Create Guard pubkey binding
|
|
118
123
|
*CoboWaas2.PrimeBrokerApi* | [**createPrimeBrokerAddress**](docs/PrimeBrokerApi.md#createPrimeBrokerAddress) | **POST** /prime_broker/user/{user_id}/addresses | Bind addresses to a broker user
|
|
@@ -215,6 +220,8 @@ Class | Method | HTTP request | Description
|
|
|
215
220
|
|
|
216
221
|
## Documentation for Models
|
|
217
222
|
|
|
223
|
+
- [CoboWaas2.Account](docs/Account.md)
|
|
224
|
+
- [CoboWaas2.AcquiringType](docs/AcquiringType.md)
|
|
218
225
|
- [CoboWaas2.Activity](docs/Activity.md)
|
|
219
226
|
- [CoboWaas2.ActivityAction](docs/ActivityAction.md)
|
|
220
227
|
- [CoboWaas2.ActivityExtra](docs/ActivityExtra.md)
|
|
@@ -262,6 +269,8 @@ Class | Method | HTTP request | Description
|
|
|
262
269
|
- [CoboWaas2.BabylonStakingRegistration](docs/BabylonStakingRegistration.md)
|
|
263
270
|
- [CoboWaas2.BabylonValidator](docs/BabylonValidator.md)
|
|
264
271
|
- [CoboWaas2.Balance](docs/Balance.md)
|
|
272
|
+
- [CoboWaas2.BalanceUpdateInfo](docs/BalanceUpdateInfo.md)
|
|
273
|
+
- [CoboWaas2.BalanceUpdateInfoEventData](docs/BalanceUpdateInfoEventData.md)
|
|
265
274
|
- [CoboWaas2.BankAccount](docs/BankAccount.md)
|
|
266
275
|
- [CoboWaas2.BaseContractCallSource](docs/BaseContractCallSource.md)
|
|
267
276
|
- [CoboWaas2.BaseEstimateStakingFee](docs/BaseEstimateStakingFee.md)
|
|
@@ -361,8 +370,12 @@ Class | Method | HTTP request | Description
|
|
|
361
370
|
- [CoboWaas2.EstimatedEvmEip1559FeeSlow](docs/EstimatedEvmEip1559FeeSlow.md)
|
|
362
371
|
- [CoboWaas2.EstimatedEvmLegacyFee](docs/EstimatedEvmLegacyFee.md)
|
|
363
372
|
- [CoboWaas2.EstimatedEvmLegacyFeeSlow](docs/EstimatedEvmLegacyFeeSlow.md)
|
|
373
|
+
- [CoboWaas2.EstimatedFILFee](docs/EstimatedFILFee.md)
|
|
374
|
+
- [CoboWaas2.EstimatedFILFeeSlow](docs/EstimatedFILFeeSlow.md)
|
|
364
375
|
- [CoboWaas2.EstimatedFee](docs/EstimatedFee.md)
|
|
365
376
|
- [CoboWaas2.EstimatedFixedFee](docs/EstimatedFixedFee.md)
|
|
377
|
+
- [CoboWaas2.EstimatedSOLFee](docs/EstimatedSOLFee.md)
|
|
378
|
+
- [CoboWaas2.EstimatedSOLFeeSlow](docs/EstimatedSOLFeeSlow.md)
|
|
366
379
|
- [CoboWaas2.EstimatedUtxoFee](docs/EstimatedUtxoFee.md)
|
|
367
380
|
- [CoboWaas2.EstimatedUtxoFeeSlow](docs/EstimatedUtxoFeeSlow.md)
|
|
368
381
|
- [CoboWaas2.EthStakeEstimatedFee](docs/EthStakeEstimatedFee.md)
|
|
@@ -385,6 +398,8 @@ Class | Method | HTTP request | Description
|
|
|
385
398
|
- [CoboWaas2.ExchangeTransferSource](docs/ExchangeTransferSource.md)
|
|
386
399
|
- [CoboWaas2.ExchangeWalletInfo](docs/ExchangeWalletInfo.md)
|
|
387
400
|
- [CoboWaas2.ExtendedTokenInfo](docs/ExtendedTokenInfo.md)
|
|
401
|
+
- [CoboWaas2.FILBase](docs/FILBase.md)
|
|
402
|
+
- [CoboWaas2.FILPrice](docs/FILPrice.md)
|
|
388
403
|
- [CoboWaas2.FeeAmount](docs/FeeAmount.md)
|
|
389
404
|
- [CoboWaas2.FeeGasLimit](docs/FeeGasLimit.md)
|
|
390
405
|
- [CoboWaas2.FeeRate](docs/FeeRate.md)
|
|
@@ -403,6 +418,10 @@ Class | Method | HTTP request | Description
|
|
|
403
418
|
- [CoboWaas2.GetToken2XXResponse](docs/GetToken2XXResponse.md)
|
|
404
419
|
- [CoboWaas2.GetToken4XXResponse](docs/GetToken4XXResponse.md)
|
|
405
420
|
- [CoboWaas2.GetTransactionLimitation200Response](docs/GetTransactionLimitation200Response.md)
|
|
421
|
+
- [CoboWaas2.GraphQLError](docs/GraphQLError.md)
|
|
422
|
+
- [CoboWaas2.GraphQLErrorLocationsInner](docs/GraphQLErrorLocationsInner.md)
|
|
423
|
+
- [CoboWaas2.GraphQLRequest](docs/GraphQLRequest.md)
|
|
424
|
+
- [CoboWaas2.GraphQLResponse](docs/GraphQLResponse.md)
|
|
406
425
|
- [CoboWaas2.GuardPubkeyStatus](docs/GuardPubkeyStatus.md)
|
|
407
426
|
- [CoboWaas2.KeyShareHolder](docs/KeyShareHolder.md)
|
|
408
427
|
- [CoboWaas2.KeyShareHolderGroup](docs/KeyShareHolderGroup.md)
|
|
@@ -440,6 +459,8 @@ Class | Method | HTTP request | Description
|
|
|
440
459
|
- [CoboWaas2.ListTokenBalancesForFeeStation200Response](docs/ListTokenBalancesForFeeStation200Response.md)
|
|
441
460
|
- [CoboWaas2.ListTokenBalancesForFeeStation200ResponseDataInner](docs/ListTokenBalancesForFeeStation200ResponseDataInner.md)
|
|
442
461
|
- [CoboWaas2.ListTokenListingRequests200Response](docs/ListTokenListingRequests200Response.md)
|
|
462
|
+
- [CoboWaas2.ListTopUpPayers200Response](docs/ListTopUpPayers200Response.md)
|
|
463
|
+
- [CoboWaas2.ListTopUpPayers200ResponseDataInner](docs/ListTopUpPayers200ResponseDataInner.md)
|
|
443
464
|
- [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
|
|
444
465
|
- [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
|
|
445
466
|
- [CoboWaas2.ListTssRequests200Response](docs/ListTssRequests200Response.md)
|
|
@@ -475,6 +496,7 @@ Class | Method | HTTP request | Description
|
|
|
475
496
|
- [CoboWaas2.OrderStatus](docs/OrderStatus.md)
|
|
476
497
|
- [CoboWaas2.OrgInfo](docs/OrgInfo.md)
|
|
477
498
|
- [CoboWaas2.Pagination](docs/Pagination.md)
|
|
499
|
+
- [CoboWaas2.PayerAccount](docs/PayerAccount.md)
|
|
478
500
|
- [CoboWaas2.PaymentOrderEventData](docs/PaymentOrderEventData.md)
|
|
479
501
|
- [CoboWaas2.PaymentRefundEventData](docs/PaymentRefundEventData.md)
|
|
480
502
|
- [CoboWaas2.PaymentSettlementEvent](docs/PaymentSettlementEvent.md)
|
|
@@ -509,6 +531,8 @@ Class | Method | HTTP request | Description
|
|
|
509
531
|
- [CoboWaas2.RevokeApprovalRequestRequest](docs/RevokeApprovalRequestRequest.md)
|
|
510
532
|
- [CoboWaas2.RoleScopes](docs/RoleScopes.md)
|
|
511
533
|
- [CoboWaas2.RootPubkey](docs/RootPubkey.md)
|
|
534
|
+
- [CoboWaas2.SOLBase](docs/SOLBase.md)
|
|
535
|
+
- [CoboWaas2.SOLComputeUnit](docs/SOLComputeUnit.md)
|
|
512
536
|
- [CoboWaas2.SafeContractCallSource](docs/SafeContractCallSource.md)
|
|
513
537
|
- [CoboWaas2.SafeTransferSource](docs/SafeTransferSource.md)
|
|
514
538
|
- [CoboWaas2.SafeTxDecodedData](docs/SafeTxDecodedData.md)
|
|
@@ -548,10 +572,12 @@ Class | Method | HTTP request | Description
|
|
|
548
572
|
- [CoboWaas2.SwapActivity](docs/SwapActivity.md)
|
|
549
573
|
- [CoboWaas2.SwapActivityApprovers](docs/SwapActivityApprovers.md)
|
|
550
574
|
- [CoboWaas2.SwapActivityDetail](docs/SwapActivityDetail.md)
|
|
575
|
+
- [CoboWaas2.SwapActivitySigners](docs/SwapActivitySigners.md)
|
|
551
576
|
- [CoboWaas2.SwapActivityStatus](docs/SwapActivityStatus.md)
|
|
552
577
|
- [CoboWaas2.SwapActivityTimeline](docs/SwapActivityTimeline.md)
|
|
553
578
|
- [CoboWaas2.SwapApproversStatus](docs/SwapApproversStatus.md)
|
|
554
579
|
- [CoboWaas2.SwapQuote](docs/SwapQuote.md)
|
|
580
|
+
- [CoboWaas2.SwapSingingStatus](docs/SwapSingingStatus.md)
|
|
555
581
|
- [CoboWaas2.SwapToken](docs/SwapToken.md)
|
|
556
582
|
- [CoboWaas2.SwapType](docs/SwapType.md)
|
|
557
583
|
- [CoboWaas2.TSSBaseRequestEventData](docs/TSSBaseRequestEventData.md)
|
|
@@ -602,6 +628,7 @@ Class | Method | HTTP request | Description
|
|
|
602
628
|
- [CoboWaas2.TokenListingRequestSource](docs/TokenListingRequestSource.md)
|
|
603
629
|
- [CoboWaas2.TokenListingRequestStatus](docs/TokenListingRequestStatus.md)
|
|
604
630
|
- [CoboWaas2.TokensEventData](docs/TokensEventData.md)
|
|
631
|
+
- [CoboWaas2.TopUpAddress](docs/TopUpAddress.md)
|
|
605
632
|
- [CoboWaas2.Transaction](docs/Transaction.md)
|
|
606
633
|
- [CoboWaas2.TransactionApprovalDetail](docs/TransactionApprovalDetail.md)
|
|
607
634
|
- [CoboWaas2.TransactionApprovalResult](docs/TransactionApprovalResult.md)
|
|
@@ -636,13 +663,13 @@ Class | Method | HTTP request | Description
|
|
|
636
663
|
- [CoboWaas2.TransactionExchangeWalletSource](docs/TransactionExchangeWalletSource.md)
|
|
637
664
|
- [CoboWaas2.TransactionExtra](docs/TransactionExtra.md)
|
|
638
665
|
- [CoboWaas2.TransactionExtraType](docs/TransactionExtraType.md)
|
|
666
|
+
- [CoboWaas2.TransactionFILFee](docs/TransactionFILFee.md)
|
|
639
667
|
- [CoboWaas2.TransactionFee](docs/TransactionFee.md)
|
|
640
668
|
- [CoboWaas2.TransactionFeeStationWalletSource](docs/TransactionFeeStationWalletSource.md)
|
|
641
669
|
- [CoboWaas2.TransactionFixedFee](docs/TransactionFixedFee.md)
|
|
642
670
|
- [CoboWaas2.TransactionFuelingInfo](docs/TransactionFuelingInfo.md)
|
|
643
671
|
- [CoboWaas2.TransactionInitiatorType](docs/TransactionInitiatorType.md)
|
|
644
672
|
- [CoboWaas2.TransactionMPCWalletSource](docs/TransactionMPCWalletSource.md)
|
|
645
|
-
- [CoboWaas2.TransactionMessageSignBTCEIP191Destination](docs/TransactionMessageSignBTCEIP191Destination.md)
|
|
646
673
|
- [CoboWaas2.TransactionMessageSignEIP191Destination](docs/TransactionMessageSignEIP191Destination.md)
|
|
647
674
|
- [CoboWaas2.TransactionMessageSignEIP712Destination](docs/TransactionMessageSignEIP712Destination.md)
|
|
648
675
|
- [CoboWaas2.TransactionProcessType](docs/TransactionProcessType.md)
|
|
@@ -653,13 +680,16 @@ Class | Method | HTTP request | Description
|
|
|
653
680
|
- [CoboWaas2.TransactionReplacement](docs/TransactionReplacement.md)
|
|
654
681
|
- [CoboWaas2.TransactionRequestEvmEip1559Fee](docs/TransactionRequestEvmEip1559Fee.md)
|
|
655
682
|
- [CoboWaas2.TransactionRequestEvmLegacyFee](docs/TransactionRequestEvmLegacyFee.md)
|
|
683
|
+
- [CoboWaas2.TransactionRequestFILFee](docs/TransactionRequestFILFee.md)
|
|
656
684
|
- [CoboWaas2.TransactionRequestFee](docs/TransactionRequestFee.md)
|
|
657
685
|
- [CoboWaas2.TransactionRequestFixedFee](docs/TransactionRequestFixedFee.md)
|
|
686
|
+
- [CoboWaas2.TransactionRequestSOLFee](docs/TransactionRequestSOLFee.md)
|
|
658
687
|
- [CoboWaas2.TransactionRequestUtxoFee](docs/TransactionRequestUtxoFee.md)
|
|
659
688
|
- [CoboWaas2.TransactionResend](docs/TransactionResend.md)
|
|
660
689
|
- [CoboWaas2.TransactionResult](docs/TransactionResult.md)
|
|
661
690
|
- [CoboWaas2.TransactionResultType](docs/TransactionResultType.md)
|
|
662
691
|
- [CoboWaas2.TransactionRoleApprovalDetail](docs/TransactionRoleApprovalDetail.md)
|
|
692
|
+
- [CoboWaas2.TransactionSOLFee](docs/TransactionSOLFee.md)
|
|
663
693
|
- [CoboWaas2.TransactionSelectedUtxo](docs/TransactionSelectedUtxo.md)
|
|
664
694
|
- [CoboWaas2.TransactionSignatureResult](docs/TransactionSignatureResult.md)
|
|
665
695
|
- [CoboWaas2.TransactionSigner](docs/TransactionSigner.md)
|
|
@@ -712,7 +742,9 @@ Class | Method | HTTP request | Description
|
|
|
712
742
|
- [CoboWaas2.UpdateMpcVaultByIdRequest](docs/UpdateMpcVaultByIdRequest.md)
|
|
713
743
|
- [CoboWaas2.UpdateMpcWalletParams](docs/UpdateMpcWalletParams.md)
|
|
714
744
|
- [CoboWaas2.UpdatePaymentOrderRequest](docs/UpdatePaymentOrderRequest.md)
|
|
745
|
+
- [CoboWaas2.UpdateRefundByIdRequest](docs/UpdateRefundByIdRequest.md)
|
|
715
746
|
- [CoboWaas2.UpdateSmartContractWalletParams](docs/UpdateSmartContractWalletParams.md)
|
|
747
|
+
- [CoboWaas2.UpdateTopUpAddress](docs/UpdateTopUpAddress.md)
|
|
716
748
|
- [CoboWaas2.UpdateWalletParams](docs/UpdateWalletParams.md)
|
|
717
749
|
- [CoboWaas2.UpdateWebhookEndpointByIdRequest](docs/UpdateWebhookEndpointByIdRequest.md)
|
|
718
750
|
- [CoboWaas2.UtxoFeeBasePrice](docs/UtxoFeeBasePrice.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -203,7 +203,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
203
203
|
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
204
204
|
* @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.
|
|
205
205
|
* @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.
|
|
206
|
-
* @param {module:model/String} [direction = '')] The sort direction. Possible values include: - `ASC`: Sort the results in ascending order. - `DESC`: Sort the results in descending order.
|
|
206
|
+
* @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.
|
|
207
207
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactions200Response} and HTTP response
|
|
208
208
|
*/
|
|
209
209
|
}, {
|
|
@@ -259,7 +259,7 @@ var FeeStationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
259
259
|
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
260
260
|
* @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.
|
|
261
261
|
* @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.
|
|
262
|
-
* @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 '')
|
|
262
|
+
* @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')
|
|
263
263
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactions200Response}
|
|
264
264
|
*/
|
|
265
265
|
}, {
|
package/dist/api/OAuthApi.js
CHANGED
|
@@ -47,9 +47,9 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body
|
|
50
|
+
* Get Access Token
|
|
51
|
+
* This operation acquires an Access Token and a Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
52
|
+
* @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body to acquire an Access Token.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExchangePermissionToken201Response} and HTTP response
|
|
54
54
|
*/
|
|
55
55
|
return _createClass(OAuthApi, [{
|
|
@@ -75,9 +75,9 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body
|
|
78
|
+
* Get Access Token
|
|
79
|
+
* This operation acquires an Access Token and a Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
80
|
+
* @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body to acquire an Access Token.
|
|
81
81
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExchangePermissionToken201Response}
|
|
82
82
|
*/
|
|
83
83
|
}, {
|
|
@@ -147,9 +147,9 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
-
* Refresh
|
|
151
|
-
*
|
|
152
|
-
* @param {module:model/RefreshPermissionTokenRequest} RefreshPermissionTokenRequest The request body
|
|
150
|
+
* Refresh Access Token
|
|
151
|
+
* This operation refreshes the Access Token and Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
|
|
152
|
+
* @param {module:model/RefreshPermissionTokenRequest} RefreshPermissionTokenRequest The request body to refresh the Access Token and the Refresh Token.
|
|
153
153
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExchangePermissionToken201Response} and HTTP response
|
|
154
154
|
*/
|
|
155
155
|
}, {
|
|
@@ -175,9 +175,9 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
|
-
* Refresh
|
|
179
|
-
*
|
|
180
|
-
* @param {module:model/RefreshPermissionTokenRequest} RefreshPermissionTokenRequest The request body
|
|
178
|
+
* Refresh Access Token
|
|
179
|
+
* This operation refreshes the Access Token and Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call this operation to get a new Access Token and Refresh Token.
|
|
180
|
+
* @param {module:model/RefreshPermissionTokenRequest} RefreshPermissionTokenRequest The request body to refresh the Access Token and the Refresh Token.
|
|
181
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExchangePermissionToken201Response}
|
|
182
182
|
*/
|
|
183
183
|
}, {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
9
|
+
var _OrgInfo = _interopRequireDefault(require("../model/OrgInfo"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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); }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
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); } /**
|
|
17
|
+
* Cobo Wallet as a Service 2.0
|
|
18
|
+
*
|
|
19
|
+
* Contact: help@cobo.com
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Organizations service.
|
|
28
|
+
* @module api/OrganizationsApi
|
|
29
|
+
*/
|
|
30
|
+
var OrganizationsApi = exports["default"] = /*#__PURE__*/function () {
|
|
31
|
+
/**
|
|
32
|
+
* Constructs a new OrganizationsApi.
|
|
33
|
+
* @alias module:api/OrganizationsApi
|
|
34
|
+
* @class
|
|
35
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
36
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
37
|
+
*/
|
|
38
|
+
function OrganizationsApi(apiClient) {
|
|
39
|
+
_classCallCheck(this, OrganizationsApi);
|
|
40
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Get organization information
|
|
45
|
+
* This operation retrieves the detailed information about the organization associated with the current API key.
|
|
46
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrgInfo} and HTTP response
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(OrganizationsApi, [{
|
|
49
|
+
key: "getOrgInfoWithHttpInfo",
|
|
50
|
+
value: function getOrgInfoWithHttpInfo() {
|
|
51
|
+
var postBody = null;
|
|
52
|
+
if (postBody && postBody.toJSON) {
|
|
53
|
+
postBody = postBody.toJSON();
|
|
54
|
+
}
|
|
55
|
+
var pathParams = {};
|
|
56
|
+
var queryParams = {};
|
|
57
|
+
var headerParams = {};
|
|
58
|
+
var formParams = {};
|
|
59
|
+
var authNames = ['CoboAuth'];
|
|
60
|
+
var contentTypes = [];
|
|
61
|
+
var accepts = ['application/json'];
|
|
62
|
+
var returnType = _OrgInfo["default"];
|
|
63
|
+
return this.apiClient.callApi('/organizations/info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Get organization information
|
|
68
|
+
* This operation retrieves the detailed information about the organization associated with the current API key.
|
|
69
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrgInfo}
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "getOrgInfo",
|
|
73
|
+
value: function getOrgInfo() {
|
|
74
|
+
return this.getOrgInfoWithHttpInfo().then(function (response_and_data) {
|
|
75
|
+
return response_and_data.data;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}]);
|
|
79
|
+
}();
|