@cobo/cobo-waas2 1.8.0 → 1.10.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 (205) hide show
  1. package/README.md +117 -33
  2. package/dist/ApiClient.js +11 -1
  3. package/dist/api/AddressBooksApi.js +1 -1
  4. package/dist/api/DevelopersApi.js +7 -7
  5. package/dist/api/DevelopersWebhooksApi.js +8 -8
  6. package/dist/api/PrimeBrokerApi.js +317 -0
  7. package/dist/api/StakingsApi.js +412 -18
  8. package/dist/api/SwapsApi.js +360 -0
  9. package/dist/api/TransactionsApi.js +64 -20
  10. package/dist/api/TravelRuleApi.js +18 -18
  11. package/dist/api/WalletsApi.js +84 -13
  12. package/dist/api/WalletsExchangeWalletApi.js +1 -1
  13. package/dist/api/WalletsMPCWalletsApi.js +151 -39
  14. package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
  15. package/dist/index.js +276 -10
  16. package/dist/model/ActivityExtra.js +5 -5
  17. package/dist/model/AddressBalance.js +129 -0
  18. package/dist/model/AddressTransferDestination.js +36 -0
  19. package/dist/model/AddressesEventData.js +4 -4
  20. package/dist/model/AddressesEventDataAllOfAddresses.js +295 -0
  21. package/dist/model/ApprovalStatementStatus.js +81 -0
  22. package/dist/model/AssetBalance.js +6 -6
  23. package/dist/model/BTCEIP191MessageSignDestination.js +122 -0
  24. package/dist/model/BabylonAirdropPop.js +186 -0
  25. package/dist/model/BabylonAirdropRegistration.js +172 -0
  26. package/dist/model/BabylonEligibleAirdrop.js +157 -0
  27. package/dist/model/BabylonRegistrationRequestStatus.js +66 -0
  28. package/dist/model/BabylonRegistrationStatus.js +66 -0
  29. package/dist/model/BabylonStakingActivityDetailExtra.js +1 -1
  30. package/dist/model/BabylonStakingRegistration.js +185 -0
  31. package/dist/model/{TokenBalanceBalance.js → Balance.js} +22 -22
  32. package/dist/model/{SwapSummary.js → ChangeGuardPubkey200Response.js} +28 -39
  33. package/dist/model/ContractCallParams.js +36 -0
  34. package/dist/model/ContractCallSource.js +6 -0
  35. package/dist/model/CoreStakingActivityDetailExtra.js +3 -3
  36. package/dist/model/CreateAddressRequest.js +28 -2
  37. package/dist/model/CreateBabylonAirdropRegistration201Response.js +87 -0
  38. package/dist/model/CreateBabylonAirdropRegistrationRequest.js +105 -0
  39. package/dist/model/CreateBabylonStakingRegistration201Response.js +87 -0
  40. package/dist/model/CreateBabylonStakingRegistrationRequest.js +103 -0
  41. package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
  42. package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -0
  43. package/dist/model/CreateSwapActivityRequest.js +153 -0
  44. package/dist/model/CreateSwapQuote201Response.js +264 -0
  45. package/dist/model/CreateSwapQuoteRequest.js +166 -0
  46. package/dist/model/DeleteGuardPubkey201Response.js +110 -0
  47. package/dist/model/EthStakeEstimatedFee.js +1 -1
  48. package/dist/model/EthStakingActivityDetailExtra.js +1 -1
  49. package/dist/model/GetStakingEstimationFee201Response.js +1 -1
  50. package/dist/model/GetTransactionLimitation200Response.js +4 -4
  51. package/dist/model/GuardPubkeyStatus.js +91 -0
  52. package/dist/model/ListAddressBalancesByToken200Response.js +123 -0
  53. package/dist/model/ListBabylonAirdropRegistrations200Response.js +123 -0
  54. package/dist/model/ListBabylonEligibleAirdrops200Response.js +123 -0
  55. package/dist/model/ListBabylonEligibleStakings200Response.js +123 -0
  56. package/dist/model/ListBabylonEligibleStakings200ResponseDataInner.js +141 -0
  57. package/dist/model/ListBabylonStakingRegistrations200Response.js +123 -0
  58. package/dist/model/ListEnableTokenPairs200Response.js +123 -0
  59. package/dist/model/ListKeyShareHolders200Response.js +123 -0
  60. package/dist/model/ListSwapActivities200Response.js +123 -0
  61. package/dist/model/MessageSignDestination.js +70 -8
  62. package/dist/model/MessageSignDestinationType.js +12 -2
  63. package/dist/model/MessageSignSource.js +6 -0
  64. package/dist/model/MpcContractCallSource.js +16 -0
  65. package/dist/model/MpcMessageSignSource.js +16 -0
  66. package/dist/model/MpcSigningGroup.js +27 -4
  67. package/dist/model/MpcTransferSource.js +16 -0
  68. package/dist/model/OrgInfo.js +3 -3
  69. package/dist/model/QueryApprovalStatement200Response.js +122 -0
  70. package/dist/model/QueryGuardPubkey200Response.js +129 -0
  71. package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +125 -0
  72. package/dist/model/RootPubkey.js +1 -1
  73. package/dist/model/SelfCustodyWallet.js +7 -7
  74. package/dist/model/StakingPoolId.js +30 -0
  75. package/dist/model/StakingPoolType.js +15 -0
  76. package/dist/model/SubWalletAssetBalance.js +6 -6
  77. package/dist/model/SubmitDepositTravelRuleInfo201Response.js +1 -1
  78. package/dist/model/SwapQuote.js +203 -0
  79. package/dist/model/TSSGroups.js +1 -1
  80. package/dist/model/TokenBalance.js +6 -6
  81. package/dist/model/TransactionDepositToAddressDestination.js +16 -0
  82. package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +83 -0
  83. package/dist/model/TransactionDestination.js +10 -4
  84. package/dist/model/TransactionRawTxInfo.js +29 -0
  85. package/dist/model/TransactionRbfSource.js +6 -0
  86. package/dist/model/TransactionSubStatus.js +5 -0
  87. package/dist/model/TransactionUserApprovalDetail.js +3 -3
  88. package/dist/model/TransactionUtxoChange.js +101 -0
  89. package/dist/model/TransferDestination.js +6 -0
  90. package/dist/model/TransferParams.js +36 -0
  91. package/dist/model/TransferSource.js +6 -0
  92. package/dist/model/TravelRuleDepositExchangesOrVASP.js +4 -4
  93. package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +7 -7
  94. package/dist/model/TravelRuleDepositLegalEntity.js +5 -5
  95. package/dist/model/TravelRuleDepositNaturalEntity.js +9 -9
  96. package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +5 -5
  97. package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +3 -3
  98. package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +5 -5
  99. package/dist/model/TravelRuleWithdrawLegalEntity.js +2 -2
  100. package/dist/model/TravelRuleWithdrawNaturalEntity.js +7 -7
  101. package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +4 -4
  102. package/dist/model/Vasp.js +7 -7
  103. package/dist/model/WebhookEventData.js +2 -2
  104. package/docs/ActivityExtra.md +5 -5
  105. package/docs/AddressBalance.md +10 -0
  106. package/docs/AddressBooksApi.md +1 -1
  107. package/docs/AddressTransferDestination.md +14 -0
  108. package/docs/AddressesEventData.md +1 -1
  109. package/docs/AddressesEventDataAllOfAddresses.md +19 -0
  110. package/docs/ApprovalStatementStatus.md +20 -0
  111. package/docs/AssetBalance.md +1 -1
  112. package/docs/BTCEIP191MessageSignDestination.md +10 -0
  113. package/docs/BabylonAirdropPop.md +14 -0
  114. package/docs/BabylonAirdropRegistration.md +16 -0
  115. package/docs/BabylonEligibleAirdrop.md +14 -0
  116. package/docs/BabylonRegistrationRequestStatus.md +14 -0
  117. package/docs/BabylonRegistrationStatus.md +14 -0
  118. package/docs/BabylonStakingActivityDetailExtra.md +1 -1
  119. package/docs/BabylonStakingRegistration.md +17 -0
  120. package/docs/{TokenBalanceBalance.md → Balance.md} +1 -1
  121. package/docs/ChangeGuardPubkey200Response.md +9 -0
  122. package/docs/ContractCallParams.md +14 -0
  123. package/docs/ContractCallSource.md +1 -0
  124. package/docs/CoreStakingActivityDetailExtra.md +3 -3
  125. package/docs/CreateAddressRequest.md +3 -1
  126. package/docs/CreateBabylonAirdropRegistration201Response.md +9 -0
  127. package/docs/CreateBabylonAirdropRegistrationRequest.md +10 -0
  128. package/docs/CreateBabylonStakingRegistration201Response.md +9 -0
  129. package/docs/CreateBabylonStakingRegistrationRequest.md +10 -0
  130. package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
  131. package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
  132. package/docs/CreateSwapActivityRequest.md +12 -0
  133. package/docs/CreateSwapQuote201Response.md +17 -0
  134. package/docs/CreateSwapQuoteRequest.md +13 -0
  135. package/docs/DeleteGuardPubkey201Response.md +9 -0
  136. package/docs/DevelopersApi.md +5 -5
  137. package/docs/DevelopersWebhooksApi.md +8 -8
  138. package/docs/EthStakeEstimatedFee.md +1 -1
  139. package/docs/EthStakingActivityDetailExtra.md +1 -1
  140. package/docs/GetStakingEstimationFee201Response.md +1 -1
  141. package/docs/GetTransactionLimitation200Response.md +4 -4
  142. package/docs/GuardPubkeyStatus.md +24 -0
  143. package/docs/ListAddressBalancesByToken200Response.md +10 -0
  144. package/docs/ListBabylonAirdropRegistrations200Response.md +10 -0
  145. package/docs/ListBabylonEligibleAirdrops200Response.md +10 -0
  146. package/docs/ListBabylonEligibleStakings200Response.md +10 -0
  147. package/docs/ListBabylonEligibleStakings200ResponseDataInner.md +13 -0
  148. package/docs/ListBabylonStakingRegistrations200Response.md +10 -0
  149. package/docs/ListEnableTokenPairs200Response.md +10 -0
  150. package/docs/ListKeyShareHolders200Response.md +10 -0
  151. package/docs/ListSwapActivities200Response.md +10 -0
  152. package/docs/MessageSignDestination.md +1 -0
  153. package/docs/MessageSignDestinationType.md +6 -2
  154. package/docs/MessageSignSource.md +1 -0
  155. package/docs/MpcContractCallSource.md +1 -0
  156. package/docs/MpcMessageSignSource.md +1 -0
  157. package/docs/MpcSigningGroup.md +1 -1
  158. package/docs/MpcTransferSource.md +1 -0
  159. package/docs/OrgInfo.md +1 -1
  160. package/docs/PrimeBrokerApi.md +318 -0
  161. package/docs/QueryApprovalStatement200Response.md +12 -0
  162. package/docs/QueryGuardPubkey200Response.md +11 -0
  163. package/docs/QueryGuardPubkey200ResponseAddressesInner.md +10 -0
  164. package/docs/RootPubkey.md +1 -1
  165. package/docs/SelfCustodyWallet.md +3 -3
  166. package/docs/StakingPoolId.md +12 -0
  167. package/docs/StakingPoolType.md +6 -0
  168. package/docs/StakingsApi.md +460 -12
  169. package/docs/SubWalletAssetBalance.md +1 -1
  170. package/docs/SubmitDepositTravelRuleInfo201Response.md +1 -1
  171. package/docs/SwapQuote.md +16 -0
  172. package/docs/SwapsApi.md +348 -0
  173. package/docs/TSSGroups.md +1 -1
  174. package/docs/TokenBalance.md +1 -1
  175. package/docs/TransactionDepositToAddressDestination.md +1 -0
  176. package/docs/TransactionDepositToAddressDestinationTxInfo.md +9 -0
  177. package/docs/TransactionDestination.md +1 -0
  178. package/docs/TransactionRawTxInfo.md +2 -0
  179. package/docs/TransactionRbfSource.md +1 -0
  180. package/docs/TransactionSubStatus.md +2 -0
  181. package/docs/TransactionUserApprovalDetail.md +3 -3
  182. package/docs/TransactionUtxoChange.md +10 -0
  183. package/docs/TransactionsApi.md +68 -17
  184. package/docs/TransferDestination.md +14 -0
  185. package/docs/TransferParams.md +14 -0
  186. package/docs/TransferSource.md +1 -0
  187. package/docs/TravelRuleApi.md +13 -13
  188. package/docs/TravelRuleDepositExchangesOrVASP.md +2 -2
  189. package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +7 -7
  190. package/docs/TravelRuleDepositLegalEntity.md +3 -3
  191. package/docs/TravelRuleDepositNaturalEntity.md +5 -5
  192. package/docs/TravelRuleDepositRequestTravelRuleInfo.md +5 -5
  193. package/docs/TravelRuleWithdrawExchangesOrVASP.md +1 -1
  194. package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +5 -5
  195. package/docs/TravelRuleWithdrawLegalEntity.md +1 -1
  196. package/docs/TravelRuleWithdrawNaturalEntity.md +4 -4
  197. package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +4 -4
  198. package/docs/Vasp.md +3 -3
  199. package/docs/WalletsApi.md +78 -13
  200. package/docs/WalletsExchangeWalletApi.md +1 -1
  201. package/docs/WalletsMPCWalletsApi.md +141 -27
  202. package/docs/WalletsSmartContractWalletsApi.md +1 -1
  203. package/docs/WebhookEventData.md +1 -1
  204. package/package.json +2 -2
  205. package/docs/SwapSummary.md +0 -10
@@ -10,12 +10,14 @@ Method | HTTP request | Description
10
10
  [**createMpcVault**](WalletsMPCWalletsApi.md#createMpcVault) | **POST** /wallets/mpc/vaults | Create vault
11
11
  [**createTssRequest**](WalletsMPCWalletsApi.md#createTssRequest) | **POST** /wallets/mpc/vaults/{vault_id}/tss_requests | Create TSS request
12
12
  [**deleteKeyShareHolderGroupById**](WalletsMPCWalletsApi.md#deleteKeyShareHolderGroupById) | **POST** /wallets/mpc/vaults/{vault_id}/key_share_holder_groups/{key_share_holder_group_id}/delete | Delete key share holder group
13
+ [**getKeyShareHolderByTssNodeId**](WalletsMPCWalletsApi.md#getKeyShareHolderByTssNodeId) | **GET** /wallets/mpc/vaults/{vault_id}/key_share_holders/{tss_node_id} | Get key share holder information
13
14
  [**getKeyShareHolderGroupById**](WalletsMPCWalletsApi.md#getKeyShareHolderGroupById) | **GET** /wallets/mpc/vaults/{vault_id}/key_share_holder_groups/{key_share_holder_group_id} | Get key share holder group information
14
15
  [**getMpcProjectById**](WalletsMPCWalletsApi.md#getMpcProjectById) | **GET** /wallets/mpc/projects/{project_id} | Get project information
15
16
  [**getMpcVaultById**](WalletsMPCWalletsApi.md#getMpcVaultById) | **GET** /wallets/mpc/vaults/{vault_id} | Get vault information
16
17
  [**getTssRequestById**](WalletsMPCWalletsApi.md#getTssRequestById) | **GET** /wallets/mpc/vaults/{vault_id}/tss_requests/{tss_request_id} | Get TSS request
17
18
  [**listCoboKeyHolders**](WalletsMPCWalletsApi.md#listCoboKeyHolders) | **GET** /wallets/mpc/cobo_key_share_holders | List all Cobo key share holders
18
19
  [**listKeyShareHolderGroups**](WalletsMPCWalletsApi.md#listKeyShareHolderGroups) | **GET** /wallets/mpc/vaults/{vault_id}/key_share_holder_groups | List all key share holder groups
20
+ [**listKeyShareHolders**](WalletsMPCWalletsApi.md#listKeyShareHolders) | **GET** /wallets/mpc/vaults/{vault_id}/key_share_holders | List all key share holders
19
21
  [**listMpcProjects**](WalletsMPCWalletsApi.md#listMpcProjects) | **GET** /wallets/mpc/projects | List all projects
20
22
  [**listMpcVaults**](WalletsMPCWalletsApi.md#listMpcVaults) | **GET** /wallets/mpc/vaults | List all vaults
21
23
  [**listTssRequests**](WalletsMPCWalletsApi.md#listTssRequests) | **GET** /wallets/mpc/vaults/{vault_id}/tss_requests | List TSS requests
@@ -60,7 +62,7 @@ apiInstance.cancelTssRequestById(vault_id, tss_request_id).then((data) => {
60
62
 
61
63
  Name | Type | Description | Notes
62
64
  ------------- | ------------- | ------------- | -------------
63
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
65
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
64
66
  **tss_request_id** | **String**| The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests). |
65
67
 
66
68
  ### Return type
@@ -69,7 +71,7 @@ Name | Type | Description | Notes
69
71
 
70
72
  ### Authorization
71
73
 
72
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
74
+ [OAuth2](../README.md#OAuth2)
73
75
 
74
76
  ### HTTP request headers
75
77
 
@@ -114,7 +116,7 @@ apiInstance.createKeyShareHolderGroup(vault_id, opts).then((data) => {
114
116
 
115
117
  Name | Type | Description | Notes
116
118
  ------------- | ------------- | ------------- | -------------
117
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
119
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
118
120
  **CreateKeyShareHolderGroupRequest** | [**CreateKeyShareHolderGroupRequest**](CreateKeyShareHolderGroupRequest.md)| The request body to create a key share holder group. | [optional]
119
121
 
120
122
  ### Return type
@@ -123,7 +125,7 @@ Name | Type | Description | Notes
123
125
 
124
126
  ### Authorization
125
127
 
126
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
128
+ [OAuth2](../README.md#OAuth2)
127
129
 
128
130
  ### HTTP request headers
129
131
 
@@ -175,7 +177,7 @@ Name | Type | Description | Notes
175
177
 
176
178
  ### Authorization
177
179
 
178
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
180
+ [OAuth2](../README.md#OAuth2)
179
181
 
180
182
  ### HTTP request headers
181
183
 
@@ -227,7 +229,7 @@ Name | Type | Description | Notes
227
229
 
228
230
  ### Authorization
229
231
 
230
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
232
+ [OAuth2](../README.md#OAuth2)
231
233
 
232
234
  ### HTTP request headers
233
235
 
@@ -272,7 +274,7 @@ apiInstance.createTssRequest(vault_id, opts).then((data) => {
272
274
 
273
275
  Name | Type | Description | Notes
274
276
  ------------- | ------------- | ------------- | -------------
275
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
277
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
276
278
  **CreateTssRequestRequest** | [**CreateTssRequestRequest**](CreateTssRequestRequest.md)| The request body to create a TSS request. | [optional]
277
279
 
278
280
  ### Return type
@@ -281,7 +283,7 @@ Name | Type | Description | Notes
281
283
 
282
284
  ### Authorization
283
285
 
284
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
286
+ [OAuth2](../README.md#OAuth2)
285
287
 
286
288
  ### HTTP request headers
287
289
 
@@ -324,7 +326,7 @@ apiInstance.deleteKeyShareHolderGroupById(vault_id, key_share_holder_group_id).t
324
326
 
325
327
  Name | Type | Description | Notes
326
328
  ------------- | ------------- | ------------- | -------------
327
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
329
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
328
330
  **key_share_holder_group_id** | **String**| The key share holder group ID. |
329
331
 
330
332
  ### Return type
@@ -333,7 +335,59 @@ Name | Type | Description | Notes
333
335
 
334
336
  ### Authorization
335
337
 
336
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
338
+ [OAuth2](../README.md#OAuth2)
339
+
340
+ ### HTTP request headers
341
+
342
+ - **Content-Type**: Not defined
343
+ - **Accept**: application/json
344
+
345
+
346
+ ## getKeyShareHolderByTssNodeId
347
+
348
+ > KeyShareHolder getKeyShareHolderByTssNodeId(vault_id, tss_node_id)
349
+
350
+ Get key share holder information
351
+
352
+ This operation retrieves detailed information about a specified key share holder.
353
+
354
+ ### Example
355
+
356
+ ```javascript
357
+ const CoboWaas2 = require('@cobo/cobo-waas2');
358
+ // Initialize the API client
359
+ const apiClient = CoboWaas2.ApiClient.instance
360
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
361
+ apiClient.setEnv(CoboWaas2.Env.DEV);
362
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
363
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
364
+ // Call the API
365
+ const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
366
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
367
+ const tss_node_id = "coboBTGDvjJG99pABegvPYmavrcTU3SkjTLHVdsko8dWBga4w";
368
+ apiInstance.getKeyShareHolderByTssNodeId(vault_id, tss_node_id).then((data) => {
369
+ console.log('API called successfully. Returned data: ' + data);
370
+ }, (error) => {
371
+ console.error(error);
372
+ });
373
+
374
+ ```
375
+
376
+ ### Parameters
377
+
378
+
379
+ Name | Type | Description | Notes
380
+ ------------- | ------------- | ------------- | -------------
381
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
382
+ **tss_node_id** | **String**| The TSS Node ID. |
383
+
384
+ ### Return type
385
+
386
+ [**KeyShareHolder**](KeyShareHolder.md)
387
+
388
+ ### Authorization
389
+
390
+ [CoboAuth](../README.md#CoboAuth)
337
391
 
338
392
  ### HTTP request headers
339
393
 
@@ -376,7 +430,7 @@ apiInstance.getKeyShareHolderGroupById(vault_id, key_share_holder_group_id).then
376
430
 
377
431
  Name | Type | Description | Notes
378
432
  ------------- | ------------- | ------------- | -------------
379
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
433
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
380
434
  **key_share_holder_group_id** | **String**| The key share holder group ID. |
381
435
 
382
436
  ### Return type
@@ -385,7 +439,7 @@ Name | Type | Description | Notes
385
439
 
386
440
  ### Authorization
387
441
 
388
- [CoboAuth](../README.md#CoboAuth)
442
+ [OAuth2](../README.md#OAuth2)
389
443
 
390
444
  ### HTTP request headers
391
445
 
@@ -435,7 +489,7 @@ Name | Type | Description | Notes
435
489
 
436
490
  ### Authorization
437
491
 
438
- [CoboAuth](../README.md#CoboAuth)
492
+ [OAuth2](../README.md#OAuth2)
439
493
 
440
494
  ### HTTP request headers
441
495
 
@@ -477,7 +531,7 @@ apiInstance.getMpcVaultById(vault_id).then((data) => {
477
531
 
478
532
  Name | Type | Description | Notes
479
533
  ------------- | ------------- | ------------- | -------------
480
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
534
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
481
535
 
482
536
  ### Return type
483
537
 
@@ -485,7 +539,7 @@ Name | Type | Description | Notes
485
539
 
486
540
  ### Authorization
487
541
 
488
- [CoboAuth](../README.md#CoboAuth)
542
+ [OAuth2](../README.md#OAuth2)
489
543
 
490
544
  ### HTTP request headers
491
545
 
@@ -528,7 +582,7 @@ apiInstance.getTssRequestById(vault_id, tss_request_id).then((data) => {
528
582
 
529
583
  Name | Type | Description | Notes
530
584
  ------------- | ------------- | ------------- | -------------
531
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
585
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
532
586
  **tss_request_id** | **String**| The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests). |
533
587
 
534
588
  ### Return type
@@ -537,7 +591,7 @@ Name | Type | Description | Notes
537
591
 
538
592
  ### Authorization
539
593
 
540
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
594
+ [OAuth2](../README.md#OAuth2)
541
595
 
542
596
  ### HTTP request headers
543
597
 
@@ -631,7 +685,7 @@ apiInstance.listKeyShareHolderGroups(vault_id, opts).then((data) => {
631
685
 
632
686
  Name | Type | Description | Notes
633
687
  ------------- | ------------- | ------------- | -------------
634
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
688
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
635
689
  **key_share_holder_group_type** | [**KeyShareHolderGroupType**](.md)| The key share holder group type. Possible values include: - &#x60;MainGroup&#x60;: The [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#main-group). - &#x60;SigningGroup&#x60;: The [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#signing-group). - &#x60;RecoveryGroup&#x60;: The [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#recovery-group). **Note**: If this parameter is left empty, all key share holder group types will be retrieved. | [optional]
636
690
  **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
637
691
  **before** | **String**| This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set &#x60;before&#x60; to the ID of Object C (&#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;), the response will include Object B and Object A. **Notes**: - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. - If you set it to &#x60;infinity&#x60;, the last page of data is returned. | [optional]
@@ -643,6 +697,66 @@ Name | Type | Description | Notes
643
697
 
644
698
  ### Authorization
645
699
 
700
+ [OAuth2](../README.md#OAuth2)
701
+
702
+ ### HTTP request headers
703
+
704
+ - **Content-Type**: Not defined
705
+ - **Accept**: application/json
706
+
707
+
708
+ ## listKeyShareHolders
709
+
710
+ > ListKeyShareHolders200Response listKeyShareHolders(vault_id, opts)
711
+
712
+ List all key share holders
713
+
714
+ This operation retrieves a list of all key share holders under a specified vault. You can filter the result by key share holder group ID.
715
+
716
+ ### Example
717
+
718
+ ```javascript
719
+ const CoboWaas2 = require('@cobo/cobo-waas2');
720
+ // Initialize the API client
721
+ const apiClient = CoboWaas2.ApiClient.instance
722
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
723
+ apiClient.setEnv(CoboWaas2.Env.DEV);
724
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
725
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
726
+ // Call the API
727
+ const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
728
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
729
+ const opts = {
730
+ 'key_share_holder_group_ids': "dc0cac48-9add-4243-9c7a-b8badac8a198,5558bd1b-d221-4e2b-8c29-f6c97d9e6aca",
731
+ 'limit': 10,
732
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
733
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
734
+ };
735
+ apiInstance.listKeyShareHolders(vault_id, opts).then((data) => {
736
+ console.log('API called successfully. Returned data: ' + data);
737
+ }, (error) => {
738
+ console.error(error);
739
+ });
740
+
741
+ ```
742
+
743
+ ### Parameters
744
+
745
+
746
+ Name | Type | Description | Notes
747
+ ------------- | ------------- | ------------- | -------------
748
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
749
+ **key_share_holder_group_ids** | **String**| A list of key share holder group IDs, separated by comma. You can retrieve the IDs of all the key share holder groups by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups). | [optional]
750
+ **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
751
+ **before** | **String**| This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set &#x60;before&#x60; to the ID of Object C (&#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;), the response will include Object B and Object A. **Notes**: - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. - If you set it to &#x60;infinity&#x60;, the last page of data is returned. | [optional]
752
+ **after** | **String**| This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set &#x60;after&#x60; to the ID of Object A (&#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;), the response will include Object B and Object C. **Notes**: - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. | [optional]
753
+
754
+ ### Return type
755
+
756
+ [**ListKeyShareHolders200Response**](ListKeyShareHolders200Response.md)
757
+
758
+ ### Authorization
759
+
646
760
  [CoboAuth](../README.md#CoboAuth)
647
761
 
648
762
  ### HTTP request headers
@@ -699,7 +813,7 @@ Name | Type | Description | Notes
699
813
 
700
814
  ### Authorization
701
815
 
702
- [CoboAuth](../README.md#CoboAuth)
816
+ [OAuth2](../README.md#OAuth2)
703
817
 
704
818
  ### HTTP request headers
705
819
 
@@ -759,7 +873,7 @@ Name | Type | Description | Notes
759
873
 
760
874
  ### Authorization
761
875
 
762
- [CoboAuth](../README.md#CoboAuth)
876
+ [OAuth2](../README.md#OAuth2)
763
877
 
764
878
  ### HTTP request headers
765
879
 
@@ -807,7 +921,7 @@ apiInstance.listTssRequests(vault_id, key_share_holder_group_id, opts).then((dat
807
921
 
808
922
  Name | Type | Description | Notes
809
923
  ------------- | ------------- | ------------- | -------------
810
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
924
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
811
925
  **key_share_holder_group_id** | **String**| The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups). |
812
926
  **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
813
927
  **before** | **String**| This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set &#x60;before&#x60; to the ID of Object C (&#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;), the response will include Object B and Object A. **Notes**: - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. - If you set it to &#x60;infinity&#x60;, the last page of data is returned. | [optional]
@@ -819,7 +933,7 @@ Name | Type | Description | Notes
819
933
 
820
934
  ### Authorization
821
935
 
822
- [CoboAuth](../README.md#CoboAuth)
936
+ [OAuth2](../README.md#OAuth2)
823
937
 
824
938
  ### HTTP request headers
825
939
 
@@ -865,7 +979,7 @@ apiInstance.updateKeyShareHolderGroupById(vault_id, key_share_holder_group_id, o
865
979
 
866
980
  Name | Type | Description | Notes
867
981
  ------------- | ------------- | ------------- | -------------
868
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
982
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
869
983
  **key_share_holder_group_id** | **String**| The key share holder group ID. |
870
984
  **UpdateKeyShareHolderGroupByIdRequest** | [**UpdateKeyShareHolderGroupByIdRequest**](UpdateKeyShareHolderGroupByIdRequest.md)| | [optional]
871
985
 
@@ -875,7 +989,7 @@ Name | Type | Description | Notes
875
989
 
876
990
  ### Authorization
877
991
 
878
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
992
+ [OAuth2](../README.md#OAuth2)
879
993
 
880
994
  ### HTTP request headers
881
995
 
@@ -929,7 +1043,7 @@ Name | Type | Description | Notes
929
1043
 
930
1044
  ### Authorization
931
1045
 
932
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
1046
+ [OAuth2](../README.md#OAuth2)
933
1047
 
934
1048
  ### HTTP request headers
935
1049
 
@@ -974,7 +1088,7 @@ apiInstance.updateMpcVaultById(vault_id, opts).then((data) => {
974
1088
 
975
1089
  Name | Type | Description | Notes
976
1090
  ------------- | ------------- | ------------- | -------------
977
- **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
1091
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
978
1092
  **UpdateMpcVaultByIdRequest** | [**UpdateMpcVaultByIdRequest**](UpdateMpcVaultByIdRequest.md)| The request body to update a vault&#39;s name. | [optional]
979
1093
 
980
1094
  ### Return type
@@ -983,7 +1097,7 @@ Name | Type | Description | Notes
983
1097
 
984
1098
  ### Authorization
985
1099
 
986
- [OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
1100
+ [OAuth2](../README.md#OAuth2)
987
1101
 
988
1102
  ### HTTP request headers
989
1103
 
@@ -54,7 +54,7 @@ Name | Type | Description | Notes
54
54
 
55
55
  ### Authorization
56
56
 
57
- [CoboAuth](../README.md#CoboAuth)
57
+ [OAuth2](../README.md#OAuth2)
58
58
 
59
59
  ### HTTP request headers
60
60
 
@@ -36,7 +36,7 @@ Name | Type | Description | Notes
36
36
  **tss_request_id** | **String** | The TSS request ID. | [optional]
37
37
  **source_key_share_holder_group** | [**SourceGroup**](SourceGroup.md) | | [optional]
38
38
  **target_key_share_holder_group_id** | **String** | The target key share holder group ID. | [optional]
39
- **addresses** | [**[AddressInfo]**](AddressInfo.md) | A list of addresses. | [optional]
39
+ **addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
40
40
  **wallet** | [**WalletInfo**](WalletInfo.md) | | [optional]
41
41
  **vault_id** | **String** | The vault ID. | [optional]
42
42
  **project_id** | **String** | The project ID. | [optional]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cobo/cobo-waas2",
3
- "version": "1.8.0",
4
- "description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobos WaaS API offering. It enables you to access Cobos 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 Cobos [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). ",
3
+ "version": "1.10.0",
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",
7
7
  "scripts": {
@@ -1,10 +0,0 @@
1
- # CoboWaas2.SwapSummary
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **total_usd_value** | **String** | The total USD value of the swap activities, represented as a string. |
8
- **activity_count** | **Number** | The total number of swap activities. |
9
-
10
-