@cobo/cobo-waas2 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/README.md +54 -18
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +18 -18
  4. package/dist/api/TransactionsApi.js +2 -2
  5. package/dist/api/WalletsApi.js +8 -8
  6. package/dist/index.js +260 -43
  7. package/dist/model/ActivityExtra.js +0 -23
  8. package/dist/model/AddressEncoding.js +15 -0
  9. package/dist/model/AddressesEventData.js +8 -3
  10. package/dist/model/BTCBIP137MessageSignDestination.js +122 -0
  11. package/dist/model/BTCBIP322MessageSignDestination.js +122 -0
  12. package/dist/model/BabylonStakingActivityDetailExtra.js +0 -39
  13. package/dist/model/{ListSwapActivities200Response.js → BankAccount.js} +51 -51
  14. package/dist/model/ChainsEventData.js +8 -3
  15. package/dist/model/CosmosAdr36MessageSignDestination.js +122 -0
  16. package/dist/model/CosmosContractCallDestination.js +152 -0
  17. package/dist/model/CosmosContractCallMessage.js +126 -0
  18. package/dist/model/CreateSettlement.js +174 -0
  19. package/dist/model/MPCVaultEventData.js +8 -3
  20. package/dist/model/{CreateSwapActivityRequest.js → Merchant.js} +45 -58
  21. package/dist/model/MessageSignDestination.js +111 -9
  22. package/dist/model/MessageSignDestinationType.js +15 -0
  23. package/dist/model/Order.js +306 -0
  24. package/dist/model/OrderStatus.js +76 -0
  25. package/dist/model/PaymentTransaction.js +201 -0
  26. package/dist/model/RefreshAddressBalancesByTokenRequest.js +2 -3
  27. package/dist/model/Refund.js +237 -0
  28. package/dist/model/RefundStatus.js +76 -0
  29. package/dist/model/RefundType.js +61 -0
  30. package/dist/model/SettleRequestStatus.js +76 -0
  31. package/dist/model/SettleStatus.js +76 -0
  32. package/dist/model/Settlement.js +168 -0
  33. package/dist/model/SettlementDetail.js +184 -0
  34. package/dist/model/SettlementInfo.js +175 -0
  35. package/dist/model/SettlementType.js +61 -0
  36. package/dist/model/SwapActivity.js +36 -5
  37. package/dist/model/SwapActivityStatus.js +66 -0
  38. package/dist/model/SwapActivityType.js +61 -0
  39. package/dist/model/SwapQuote.js +21 -34
  40. package/dist/model/{CreateSwapQuoteRequest.js → SwapToken.js} +73 -60
  41. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  42. package/dist/model/TokenListing.js +230 -0
  43. package/dist/model/TokenListingEventData.js +363 -0
  44. package/dist/model/TokenListingRequestSource.js +61 -0
  45. package/dist/model/TokenListingRequestStatus.js +66 -0
  46. package/dist/model/TokensEventData.js +8 -3
  47. package/dist/model/Transaction.js +22 -5
  48. package/dist/model/TransactionBIP137Destination.js +122 -0
  49. package/dist/model/TransactionBIP322Destination.js +122 -0
  50. package/dist/model/TransactionBabylonBusinessInfo.js +138 -0
  51. package/dist/model/TransactionBabylonTxParameters.js +168 -0
  52. package/dist/model/TransactionCoreStakeInfo.js +168 -0
  53. package/dist/model/TransactionCosmosAdr36Destination.js +122 -0
  54. package/dist/model/TransactionCosmosContractDestination.js +152 -0
  55. package/dist/model/{ListEnableTokenPairs200Response.js → TransactionCosmosMessage.js} +54 -51
  56. package/dist/model/TransactionDestination.js +172 -8
  57. package/dist/model/TransactionDestinationType.js +20 -0
  58. package/dist/model/TransactionDetail.js +29 -7
  59. package/dist/model/TransactionDetails.js +29 -7
  60. package/dist/model/TransactionExtra.js +278 -0
  61. package/dist/model/TransactionExtraType.js +66 -0
  62. package/dist/model/TransactionFuelingInfo.js +3 -3
  63. package/dist/model/TransactionMessageSignBTCEIP191Destination.js +122 -0
  64. package/dist/model/TransactionRbfSource.js +37 -9
  65. package/dist/model/TransactionSelectedUtxo.js +2 -2
  66. package/dist/model/TransactionSubStatus.js +45 -0
  67. package/dist/model/TransactionWebhookEventData.js +37 -10
  68. package/dist/model/UpdateCustodialWalletParams.js +6 -4
  69. package/dist/model/UpdateExchangeWalletParams.js +6 -4
  70. package/dist/model/UpdateMpcWalletParams.js +6 -4
  71. package/dist/model/UpdateSmartContractWalletParams.js +6 -4
  72. package/dist/model/WalletInfoEventData.js +8 -3
  73. package/dist/model/WebhookEventData.js +81 -18
  74. package/dist/model/WebhookEventDataType.js +7 -2
  75. package/dist/model/WebhookEventType.js +10 -0
  76. package/docs/ActivityExtra.md +0 -4
  77. package/docs/AddressEncoding.md +6 -0
  78. package/docs/AddressesEventData.md +3 -1
  79. package/docs/BTCBIP137MessageSignDestination.md +10 -0
  80. package/docs/BTCBIP322MessageSignDestination.md +10 -0
  81. package/docs/BabylonStakingActivityDetailExtra.md +0 -4
  82. package/docs/BankAccount.md +10 -0
  83. package/docs/ChainsEventData.md +3 -1
  84. package/docs/CosmosAdr36MessageSignDestination.md +10 -0
  85. package/docs/CosmosContractCallDestination.md +11 -0
  86. package/docs/CosmosContractCallMessage.md +10 -0
  87. package/docs/CreateSettlement.md +14 -0
  88. package/docs/FeeStationApi.md +13 -13
  89. package/docs/MPCVaultEventData.md +3 -1
  90. package/docs/Merchant.md +11 -0
  91. package/docs/MessageSignDestination.md +3 -0
  92. package/docs/MessageSignDestinationType.md +6 -0
  93. package/docs/Order.md +23 -0
  94. package/docs/OrderStatus.md +18 -0
  95. package/docs/PaymentTransaction.md +16 -0
  96. package/docs/RefreshAddressBalancesByTokenRequest.md +1 -1
  97. package/docs/Refund.md +17 -0
  98. package/docs/RefundStatus.md +18 -0
  99. package/docs/RefundType.md +12 -0
  100. package/docs/SettleRequestStatus.md +18 -0
  101. package/docs/SettleStatus.md +18 -0
  102. package/docs/Settlement.md +12 -0
  103. package/docs/SettlementDetail.md +15 -0
  104. package/docs/SettlementInfo.md +14 -0
  105. package/docs/SettlementType.md +12 -0
  106. package/docs/SwapActivity.md +4 -1
  107. package/docs/SwapActivityStatus.md +14 -0
  108. package/docs/SwapActivityType.md +12 -0
  109. package/docs/SwapQuote.md +3 -4
  110. package/docs/SwapToken.md +14 -0
  111. package/docs/TSSRequestWebhookEventData.md +3 -1
  112. package/docs/TokenListing.md +19 -0
  113. package/docs/TokenListingEventData.md +45 -0
  114. package/docs/TokenListingRequestSource.md +12 -0
  115. package/docs/TokenListingRequestStatus.md +14 -0
  116. package/docs/TokensEventData.md +3 -1
  117. package/docs/Transaction.md +4 -3
  118. package/docs/TransactionBIP137Destination.md +10 -0
  119. package/docs/TransactionBIP322Destination.md +10 -0
  120. package/docs/TransactionBabylonBusinessInfo.md +11 -0
  121. package/docs/TransactionBabylonTxParameters.md +15 -0
  122. package/docs/TransactionCoreStakeInfo.md +14 -0
  123. package/docs/TransactionCosmosAdr36Destination.md +10 -0
  124. package/docs/TransactionCosmosContractDestination.md +11 -0
  125. package/docs/TransactionCosmosMessage.md +10 -0
  126. package/docs/TransactionDestination.md +4 -0
  127. package/docs/TransactionDestinationType.md +8 -0
  128. package/docs/TransactionDetail.md +4 -3
  129. package/docs/TransactionDetails.md +4 -3
  130. package/docs/TransactionExtra.md +21 -0
  131. package/docs/TransactionExtraType.md +14 -0
  132. package/docs/TransactionFuelingInfo.md +2 -2
  133. package/docs/TransactionMessageSignBTCEIP191Destination.md +10 -0
  134. package/docs/TransactionRbfSource.md +1 -1
  135. package/docs/TransactionSelectedUtxo.md +2 -2
  136. package/docs/TransactionSubStatus.md +18 -0
  137. package/docs/TransactionWebhookEventData.md +7 -4
  138. package/docs/TransactionsApi.md +1 -1
  139. package/docs/UpdateCustodialWalletParams.md +1 -1
  140. package/docs/UpdateExchangeWalletParams.md +1 -1
  141. package/docs/UpdateMpcWalletParams.md +1 -1
  142. package/docs/UpdateSmartContractWalletParams.md +1 -1
  143. package/docs/UpdateWalletParams.md +1 -1
  144. package/docs/WalletInfoEventData.md +3 -1
  145. package/docs/WalletsApi.md +5 -5
  146. package/docs/WebhookEventData.md +16 -8
  147. package/docs/WebhookEventDataType.md +3 -1
  148. package/docs/WebhookEventType.md +4 -0
  149. package/package.json +1 -1
  150. package/dist/api/SwapsApi.js +0 -360
  151. package/dist/model/CreateSwapQuote201Response.js +0 -264
  152. package/dist/model/SwapTokenPair.js +0 -100
  153. package/docs/CreateSwapActivityRequest.md +0 -12
  154. package/docs/CreateSwapQuote201Response.md +0 -17
  155. package/docs/CreateSwapQuoteRequest.md +0 -13
  156. package/docs/ListEnableTokenPairs200Response.md +0 -10
  157. package/docs/ListSwapActivities200Response.md +0 -10
  158. package/docs/SwapTokenPair.md +0 -10
  159. package/docs/SwapsApi.md +0 -348
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **source_type** | [**WalletSubtype**](WalletSubtype.md) | |
8
8
  **wallet_id** | **String** | The wallet ID. |
9
- **address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. | [optional]
9
+ **address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. | [optional]
10
10
  **included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
11
11
  **excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
12
12
  **mpc_used_key_share_holder_group** | [**MpcSigningGroup**](MpcSigningGroup.md) | | [optional]
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **vout_n** | **Number** | The output index of the UTXO. | [optional]
9
9
  **address** | **String** | The address of the UTXO. | [optional]
10
10
  **value** | **String** | The value of the UTXO. | [optional]
11
- **redeem_script** | **String** | Redeem script is used in P2SH and P2WSH transactions. | [optional]
12
- **revealed_script** | **String** | Revealed script is used for script path spending in Taproot transactions. | [optional]
11
+ **redeem_script** | **String** | The redeem script used in P2SH and P2WSH transactions. | [optional]
12
+ **revealed_script** | **String** | The revealed script used for Taproot script-path spend transaction. | [optional]
13
13
 
14
14
 
@@ -33,8 +33,16 @@
33
33
 
34
34
  * `PendingApprovalStart` (value: `"PendingApprovalStart"`)
35
35
 
36
+ * `PendingSignerApproval` (value: `"PendingSignerApproval"`)
37
+
38
+ * `PendingSignerProcessing` (value: `"PendingSignerProcessing"`)
39
+
40
+ * `RejectedBySigner` (value: `"RejectedBySigner"`)
41
+
36
42
  * `FailedBySigner` (value: `"FailedBySigner"`)
37
43
 
44
+ * `FailedSignerTimeout` (value: `"FailedSignerTimeout"`)
45
+
38
46
  * `FailedBroadcasting` (value: `"FailedBroadcasting"`)
39
47
 
40
48
  * `FailedOnChain` (value: `"FailedOnChain"`)
@@ -43,8 +51,18 @@
43
51
 
44
52
  * `Queue` (value: `"Queue"`)
45
53
 
54
+ * `InsufficientBalance` (value: `"InsufficientBalance"`)
55
+
56
+ * `InsufficientBalanceFundLocked` (value: `"InsufficientBalanceFundLocked"`)
57
+
58
+ * `PendingSystemProcessing` (value: `"PendingSystemProcessing"`)
59
+
60
+ * `SystemProcessingOngoing` (value: `"SystemProcessingOngoing"`)
61
+
46
62
  * `PendingBlockConfirmations` (value: `"PendingBlockConfirmations"`)
47
63
 
64
+ * `ReOrged` (value: `"ReOrged"`)
65
+
48
66
  * `ReplacedByNewTransaction` (value: `"ReplacedByNewTransaction"`)
49
67
 
50
68
  * `CanceledBySpender` (value: `"CanceledBySpender"`)
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. |
7
+ **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. |
8
8
  **transaction_id** | **String** | The transaction ID. |
9
9
  **cobo_id** | **String** | The Cobo ID, which can be used to track a transaction. | [optional]
10
10
  **request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. | [optional]
@@ -31,10 +31,11 @@ Name | Type | Description | Notes
31
31
  **category** | **[String]** | A custom transaction category for you to identify your transfers more easily. | [optional]
32
32
  **description** | **String** | The description for your transaction. | [optional]
33
33
  **is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
34
- **cobo_category** | **[String]** | A transaction category for cobo to identify your transactions. | [optional]
34
+ **cobo_category** | **[String]** | The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees. | [optional]
35
+ **extra** | **[String]** | The transaction extra information. | [optional]
35
36
  **fueling_info** | [**TransactionFuelingInfo**](TransactionFuelingInfo.md) | | [optional]
36
- **created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. | [optional]
37
- **updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. | [optional]
37
+ **created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
38
+ **updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
38
39
 
39
40
 
40
41
 
@@ -55,6 +56,8 @@ Name | Type | Description | Notes
55
56
 
56
57
  * `Tokens` (value: `"Tokens"`)
57
58
 
59
+ * `TokenListing` (value: `"TokenListing"`)
60
+
58
61
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
59
62
 
60
63
 
@@ -80,7 +80,7 @@ Name | Type | Description | Notes
80
80
 
81
81
  Cancel transaction
82
82
 
83
- This operation cancels a specified transaction. Canceling a transaction stops it while it is still pending. For more information, see [Cancel a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#cancel-a-transaction). <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note> A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature`
83
+ This operation cancels a specified transaction. Canceling a transaction stops it while it is still pending. For more information, see [Cancel a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#cancel-a-transaction). <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note> A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` (excluding the `SystemProcessingOngoing` and `SignatureVerificationSuccess` sub-statuses)
84
84
 
85
85
  ### Example
86
86
 
@@ -5,6 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **wallet_type** | [**WalletType**](WalletType.md) | |
8
- **name** | **String** | The wallet name. | [optional]
8
+ **name** | **String** | The wallet name. |
9
9
 
10
10
 
@@ -5,6 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **wallet_type** | [**WalletType**](WalletType.md) | |
8
- **name** | **String** | The wallet name. | [optional]
8
+ **name** | **String** | The wallet name. |
9
9
 
10
10
 
@@ -5,6 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **wallet_type** | [**WalletType**](WalletType.md) | |
8
- **name** | **String** | The wallet name. | [optional]
8
+ **name** | **String** | The wallet name. |
9
9
 
10
10
 
@@ -5,6 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **wallet_type** | [**WalletType**](WalletType.md) | |
8
- **name** | **String** | The wallet name. | [optional]
8
+ **name** | **String** | The wallet name. |
9
9
 
10
10
 
@@ -5,6 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **wallet_type** | [**WalletType**](WalletType.md) | |
8
- **name** | **String** | The wallet name. | [optional]
8
+ **name** | **String** | The wallet name. |
9
9
 
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. |
7
+ **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. |
8
8
  **wallet** | [**WalletInfo**](WalletInfo.md) | | [optional]
9
9
 
10
10
 
@@ -26,6 +26,8 @@ Name | Type | Description | Notes
26
26
 
27
27
  * `Tokens` (value: `"Tokens"`)
28
28
 
29
+ * `TokenListing` (value: `"TokenListing"`)
30
+
29
31
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
30
32
 
31
33
 
@@ -25,7 +25,7 @@ Method | HTTP request | Description
25
25
  [**listUtxos**](WalletsApi.md#listUtxos) | **GET** /wallets/{wallet_id}/utxos | List UTXOs
26
26
  [**listWallets**](WalletsApi.md#listWallets) | **GET** /wallets | List all wallets
27
27
  [**lockUtxos**](WalletsApi.md#lockUtxos) | **POST** /wallets/{wallet_id}/utxos/lock | Lock UTXOs
28
- [**refreshAddressBalancesByToken**](WalletsApi.md#refreshAddressBalancesByToken) | **PUT** /wallets/{wallet_id}/tokens/{token_id}/refresh_address_balances | refresh address balances by token
28
+ [**refreshAddressBalancesByToken**](WalletsApi.md#refreshAddressBalancesByToken) | **PUT** /wallets/{wallet_id}/tokens/{token_id}/refresh_address_balances | Refresh address balances by token
29
29
  [**unlockUtxos**](WalletsApi.md#unlockUtxos) | **POST** /wallets/{wallet_id}/utxos/unlock | Unlock UTXOs
30
30
  [**updateWalletById**](WalletsApi.md#updateWalletById) | **PUT** /wallets/{wallet_id} | Update wallet
31
31
 
@@ -1233,9 +1233,9 @@ Name | Type | Description | Notes
1233
1233
 
1234
1234
  > RefreshAddressBalancesByToken200Response refreshAddressBalancesByToken(wallet_id, token_id, opts)
1235
1235
 
1236
- refresh address balances by token
1236
+ Refresh address balances by token
1237
1237
 
1238
- The operation refresh the balance of the given address list for a specified token within a wallet. The successful return of the request only means that the refresh request has been submitted. <Note>This operation is applicable to MPC Wallets only.</Note>
1238
+ This operation refreshes the balances of specified addresses for a given token within a wallet. The successful return of the request only means that the refresh request has been submitted. <Note>This operation is applicable to MPC Wallets only.</Note>
1239
1239
 
1240
1240
  ### Example
1241
1241
 
@@ -1269,7 +1269,7 @@ Name | Type | Description | Notes
1269
1269
  ------------- | ------------- | ------------- | -------------
1270
1270
  **wallet_id** | **String**| The wallet ID. |
1271
1271
  **token_id** | **String**| The token ID, which is the unique identifier of a token. |
1272
- **RefreshAddressBalancesByTokenRequest** | [**RefreshAddressBalancesByTokenRequest**](RefreshAddressBalancesByTokenRequest.md)| The request body to refresh the addresses balance by specified token within a specified wallet | [optional]
1272
+ **RefreshAddressBalancesByTokenRequest** | [**RefreshAddressBalancesByTokenRequest**](RefreshAddressBalancesByTokenRequest.md)| The request body to refresh addresses balances. | [optional]
1273
1273
 
1274
1274
  ### Return type
1275
1275
 
@@ -1345,7 +1345,7 @@ Name | Type | Description | Notes
1345
1345
 
1346
1346
  Update wallet
1347
1347
 
1348
- This operation updates the information of a specified wallet. For Exchange Wallets, you can update the API key, API secret, and other information about your exchange accounts with this operation. For other wallet types, you can only update the wallet name.
1348
+ This operation updates the information of a specified wallet.
1349
1349
 
1350
1350
  ### Example
1351
1351
 
@@ -4,19 +4,19 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. |
7
+ **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. |
8
8
  **transaction_id** | **String** | The transaction ID. |
9
9
  **cobo_id** | **String** | The Cobo ID, which can be used to track a transaction. | [optional]
10
- **request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. | [optional]
10
+ **request_id** | **String** | Unique identifier of the token listing request |
11
11
  **wallet_id** | **String** | For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source. |
12
12
  **type** | [**MPCVaultType**](MPCVaultType.md) | | [optional]
13
- **status** | [**TSSRequestStatus**](TSSRequestStatus.md) | |
13
+ **status** | [**TokenListingRequestStatus**](TokenListingRequestStatus.md) | |
14
14
  **sub_status** | [**TransactionSubStatus**](TransactionSubStatus.md) | | [optional]
15
15
  **failed_reason** | **String** | (This property is applicable to approval failures and signature failures only) The reason why the transaction failed. | [optional]
16
- **chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). | [optional]
16
+ **chain_id** | **String** | chain_id of the blockchain where the token exists |
17
17
  **token_id** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
18
18
  **asset_id** | **String** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
19
- **source** | [**TransactionSource**](TransactionSource.md) | |
19
+ **source** | [**TokenListingRequestSource**](TokenListingRequestSource.md) | |
20
20
  **destination** | [**TransactionDestination**](TransactionDestination.md) | |
21
21
  **result** | [**TransactionResult**](TransactionResult.md) | | [optional]
22
22
  **fee** | [**TransactionFee**](TransactionFee.md) | | [optional]
@@ -31,10 +31,11 @@ Name | Type | Description | Notes
31
31
  **category** | **[String]** | A custom transaction category for you to identify your transfers more easily. | [optional]
32
32
  **description** | **String** | The description of the TSS request. | [optional]
33
33
  **is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
34
- **cobo_category** | **[String]** | A transaction category for cobo to identify your transactions. | [optional]
34
+ **cobo_category** | **[String]** | The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees. | [optional]
35
+ **extra** | **[String]** | The transaction extra information. | [optional]
35
36
  **fueling_info** | [**TransactionFuelingInfo**](TransactionFuelingInfo.md) | | [optional]
36
- **created_timestamp** | **Number** | The vault's creation time in Unix timestamp format, measured in milliseconds. | [optional]
37
- **updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. | [optional]
37
+ **created_timestamp** | **Number** | Timestamp when the request was created (in milliseconds since Unix epoch) |
38
+ **updated_timestamp** | **Number** | Timestamp when the request was last updated (in milliseconds since Unix epoch) |
38
39
  **tss_request_id** | **String** | The TSS request ID. | [optional]
39
40
  **source_key_share_holder_group** | [**SourceGroup**](SourceGroup.md) | | [optional]
40
41
  **target_key_share_holder_group_id** | **String** | The target key share holder group ID. | [optional]
@@ -46,6 +47,11 @@ Name | Type | Description | Notes
46
47
  **root_pubkeys** | [**[RootPubkey]**](RootPubkey.md) | | [optional]
47
48
  **chains** | [**[ChainInfo]**](ChainInfo.md) | The enabled chains. |
48
49
  **tokens** | [**[TokenInfo]**](TokenInfo.md) | The enabled tokens. |
50
+ **contract_address** | **String** | Contract address of the token |
51
+ **wallet_type** | [**WalletType**](WalletType.md) | |
52
+ **wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
53
+ **token** | [**TokenInfo**](TokenInfo.md) | | [optional]
54
+ **feedback** | **String** | Feedback provided by the admin for rejected requests | [optional]
49
55
 
50
56
 
51
57
 
@@ -66,6 +72,8 @@ Name | Type | Description | Notes
66
72
 
67
73
  * `Tokens` (value: `"Tokens"`)
68
74
 
75
+ * `TokenListing` (value: `"TokenListing"`)
76
+
69
77
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
70
78
 
71
79
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. |
7
+ **data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. |
8
8
 
9
9
 
10
10
 
@@ -25,6 +25,8 @@ Name | Type | Description | Notes
25
25
 
26
26
  * `Tokens` (value: `"Tokens"`)
27
27
 
28
+ * `TokenListing` (value: `"TokenListing"`)
29
+
28
30
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
29
31
 
30
32
 
@@ -23,6 +23,10 @@
23
23
 
24
24
  * `wallets.created` (value: `"wallets.created"`)
25
25
 
26
+ * `wallets.token_listing.failed` (value: `"wallets.token_listing.failed"`)
27
+
28
+ * `wallets.token_listing.succeeded` (value: `"wallets.token_listing.succeeded"`)
29
+
26
30
  * `mpc_vaults.created` (value: `"mpc_vaults.created"`)
27
31
 
28
32
  * `fee_station.transaction.created` (value: `"fee_station.transaction.created"`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobo/cobo-waas2",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo's WaaS API offering. It enables you to access Cobo's full suite of crypto wallet technologies with powerful and flexible access controls. By encapsulating complex security protocols and streamlining blockchain interactions, this API allows you to concentrate on your core business activities without worrying about the safety of your assets. The WaaS 2.0 API presents the following key features: - A unified API for Cobo's [all four wallet types](https://manuals.cobo.com/en/portal/introduction#an-all-in-one-wallet-platform) - Support for 80+ chains and 3000+ tokens - A comprehensive selection of webhook events - Flexible usage models for MPC Wallets, including [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction) and [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction) - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction). ",
5
5
  "license": "GPL 2.0",
6
6
  "main": "dist/index.js",