@cobo/cobo-waas2 1.1.2 → 1.2.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 (125) hide show
  1. package/README.md +16 -3
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/OAuthApi.js +16 -15
  4. package/dist/api/TransactionsApi.js +18 -18
  5. package/dist/api/WalletsApi.js +123 -12
  6. package/dist/api/WalletsExchangeWalletApi.js +254 -0
  7. package/dist/api/WalletsMPCWalletsApi.js +8 -8
  8. package/dist/index.js +56 -0
  9. package/dist/model/AddressInfo.js +1 -1
  10. package/dist/model/AddressTransferDestination.js +3 -3
  11. package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
  12. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +1 -1
  13. package/dist/model/AssetInfo.js +2 -2
  14. package/dist/model/BabylonStakeExtra.js +9 -0
  15. package/dist/model/CheckAddressValidity200Response.js +2 -2
  16. package/dist/model/CheckAddressesValidity200ResponseInner.js +121 -0
  17. package/dist/model/CheckLoopTransfers200ResponseInner.js +96 -0
  18. package/dist/model/ContractCallDestination.js +1 -1
  19. package/dist/model/CreateStakeActivity.js +14 -1
  20. package/dist/model/CreateStakeActivityExtra.js +6 -0
  21. package/dist/model/CreateTssRequestRequest.js +13 -0
  22. package/dist/model/CreateUnstakeActivity.js +13 -0
  23. package/dist/model/CreateWithdrawActivity.js +13 -0
  24. package/dist/model/CreatedWalletInfo.js +12 -0
  25. package/dist/model/EstimateStakeFee.js +19 -1
  26. package/dist/model/EstimateUnstakeFee.js +18 -0
  27. package/dist/model/EstimateWithdrawFee.js +18 -0
  28. package/dist/model/EvmContractCallDestination.js +1 -1
  29. package/dist/model/ExchangeId.js +5 -0
  30. package/dist/model/ExchangeTransferDestination.js +16 -16
  31. package/dist/model/ExchangeTransferSource.js +14 -14
  32. package/dist/model/GetToken200Response.js +4 -4
  33. package/dist/model/KeyShareHolder.js +13 -0
  34. package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +123 -0
  35. package/dist/model/ListExchanges200ResponseInner.js +122 -0
  36. package/dist/model/ListSupportedAssetsForExchange200Response.js +123 -0
  37. package/dist/model/MPCWalletInfo.js +26 -0
  38. package/dist/model/RefreshToken200Response.js +135 -0
  39. package/dist/model/RefreshTokenRequest.js +2 -2
  40. package/dist/model/SmartContractWalletType.js +2 -2
  41. package/dist/model/SubWalletAssetBalance.js +10 -10
  42. package/dist/model/TSSRequest.js +23 -1
  43. package/dist/model/TSSRequestWebhookEventData.js +263 -0
  44. package/dist/model/TransactionDepositFromWalletSource.js +6 -6
  45. package/dist/model/TransactionDepositToAddressDestination.js +2 -2
  46. package/dist/model/TransactionDepositToWalletDestination.js +9 -9
  47. package/dist/model/TransactionDestination.js +5 -5
  48. package/dist/model/TransactionEvmContractDestination.js +1 -1
  49. package/dist/model/TransactionExchangeWalletSource.js +6 -6
  50. package/dist/model/TransactionMPCWalletSource.js +13 -0
  51. package/dist/model/TransactionSource.js +8 -2
  52. package/dist/model/TransactionSubStatus.js +5 -0
  53. package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +1 -1
  54. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +1 -1
  55. package/dist/model/TransactionTransferToWalletDestination.js +9 -9
  56. package/dist/model/TransactionWebhookEventData.js +8 -3
  57. package/dist/model/TransferDestination.js +6 -6
  58. package/dist/model/TransferParams.js +2 -2
  59. package/dist/model/TransferSource.js +3 -3
  60. package/dist/model/WalletInfo.js +12 -0
  61. package/dist/model/WebhookEventData.js +49 -15
  62. package/dist/model/WebhookEventDataType.js +7 -2
  63. package/dist/model/WebhookEventType.js +24 -4
  64. package/docs/AddressInfo.md +1 -1
  65. package/docs/AddressTransferDestination.md +2 -2
  66. package/docs/AddressTransferDestinationAccountOutput.md +1 -1
  67. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
  68. package/docs/AssetInfo.md +1 -1
  69. package/docs/BabylonStakeExtra.md +1 -0
  70. package/docs/CheckAddressValidity200Response.md +1 -1
  71. package/docs/CheckAddressesValidity200ResponseInner.md +10 -0
  72. package/docs/CheckLoopTransfers200ResponseInner.md +10 -0
  73. package/docs/ContractCallDestination.md +1 -1
  74. package/docs/CreateStakeActivity.md +1 -0
  75. package/docs/CreateStakeActivityExtra.md +1 -0
  76. package/docs/CreateTssRequestRequest.md +1 -0
  77. package/docs/CreateUnstakeActivity.md +1 -0
  78. package/docs/CreateWithdrawActivity.md +1 -0
  79. package/docs/CreatedWalletInfo.md +2 -0
  80. package/docs/DevelopersWebhooksApi.md +78 -69
  81. package/docs/EstimateStakeFee.md +1 -0
  82. package/docs/EstimateUnstakeFee.md +1 -0
  83. package/docs/EstimateWithdrawFee.md +1 -0
  84. package/docs/EvmContractCallDestination.md +1 -1
  85. package/docs/ExchangeId.md +2 -0
  86. package/docs/ExchangeTransferDestination.md +2 -2
  87. package/docs/ExchangeTransferSource.md +1 -1
  88. package/docs/GetToken200Response.md +4 -4
  89. package/docs/KeyShareHolder.md +1 -0
  90. package/docs/ListAssetBalancesForExchangeWallet200Response.md +10 -0
  91. package/docs/ListExchanges200ResponseInner.md +10 -0
  92. package/docs/ListSupportedAssetsForExchange200Response.md +10 -0
  93. package/docs/MPCWalletInfo.md +2 -0
  94. package/docs/OAuthApi.md +26 -24
  95. package/docs/RefreshToken200Response.md +13 -0
  96. package/docs/RefreshTokenRequest.md +2 -2
  97. package/docs/SmartContractWalletType.md +1 -1
  98. package/docs/SubWalletAssetBalance.md +2 -2
  99. package/docs/TSSRequest.md +2 -0
  100. package/docs/TSSRequestWebhookEventData.md +29 -0
  101. package/docs/TransactionDepositFromWalletSource.md +1 -1
  102. package/docs/TransactionDepositToAddressDestination.md +1 -1
  103. package/docs/TransactionDepositToWalletDestination.md +2 -2
  104. package/docs/TransactionDestination.md +3 -3
  105. package/docs/TransactionEvmContractDestination.md +1 -1
  106. package/docs/TransactionExchangeWalletSource.md +1 -1
  107. package/docs/TransactionMPCWalletSource.md +1 -0
  108. package/docs/TransactionSource.md +2 -1
  109. package/docs/TransactionSubStatus.md +2 -0
  110. package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
  111. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
  112. package/docs/TransactionTransferToWalletDestination.md +2 -2
  113. package/docs/TransactionWebhookEventData.md +3 -1
  114. package/docs/TransactionsApi.md +98 -88
  115. package/docs/TransferDestination.md +4 -4
  116. package/docs/TransferParams.md +1 -1
  117. package/docs/TransferSource.md +1 -1
  118. package/docs/WalletInfo.md +2 -0
  119. package/docs/WalletsApi.md +316 -187
  120. package/docs/WalletsExchangeWalletApi.md +230 -0
  121. package/docs/WalletsMPCWalletsApi.md +153 -135
  122. package/docs/WebhookEventData.md +10 -5
  123. package/docs/WebhookEventDataType.md +3 -1
  124. package/docs/WebhookEventType.md +12 -4
  125. package/package.json +1 -1
@@ -37,15 +37,16 @@ This operation cancels a TSS request.
37
37
 
38
38
  ```javascript
39
39
  const CoboWaas2 = require('@cobo/cobo-waas2');
40
- // initial default api client
40
+ // Initialize the API client
41
41
  const apiClient = CoboWaas2.ApiClient.instance
42
- // for dev env
43
- // apiClient.setEnv(CoboWaas2.Env.DEV);
44
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
45
- // call api
42
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
43
+ apiClient.setEnv(CoboWaas2.Env.DEV);
44
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
45
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
46
+ // Call the API
46
47
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
47
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
48
- const tss_request_id = "20240711114129000132315000003970"; // String | The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests).
48
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
49
+ const tss_request_id = "20240711114129000132315000003970";
49
50
  apiInstance.cancelTssRequestById(vault_id, tss_request_id).then((data) => {
50
51
  console.log('API called successfully. Returned data: ' + data);
51
52
  }, (error) => {
@@ -88,16 +89,17 @@ This operation creates a key share holder group for a specified vault.
88
89
 
89
90
  ```javascript
90
91
  const CoboWaas2 = require('@cobo/cobo-waas2');
91
- // initial default api client
92
+ // Initialize the API client
92
93
  const apiClient = CoboWaas2.ApiClient.instance
93
- // for dev env
94
- // apiClient.setEnv(CoboWaas2.Env.DEV);
95
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
96
- // call api
94
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
95
+ apiClient.setEnv(CoboWaas2.Env.DEV);
96
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
97
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
98
+ // Call the API
97
99
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
98
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
100
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
99
101
  const opts = {
100
- 'CreateKeyShareHolderGroupRequest': new CoboWaas2.CreateKeyShareHolderGroupRequest() // CreateKeyShareHolderGroupRequest | The request body to create a key share holder group.
102
+ 'CreateKeyShareHolderGroupRequest': new CoboWaas2.CreateKeyShareHolderGroupRequest()
101
103
  };
102
104
  apiInstance.createKeyShareHolderGroup(vault_id, opts).then((data) => {
103
105
  console.log('API called successfully. Returned data: ' + data);
@@ -135,21 +137,22 @@ Name | Type | Description | Notes
135
137
 
136
138
  Create project
137
139
 
138
- This operation creates a project. &lt;Info&gt;This operation applies to MPC Wallets (User-Controlled Wallets) only.&lt;/Info&gt;
140
+ This operation creates a project. &lt;Note&gt;This operation applies to MPC Wallets (User-Controlled Wallets) only.&lt;/Note&gt;
139
141
 
140
142
  ### Example
141
143
 
142
144
  ```javascript
143
145
  const CoboWaas2 = require('@cobo/cobo-waas2');
144
- // initial default api client
146
+ // Initialize the API client
145
147
  const apiClient = CoboWaas2.ApiClient.instance
146
- // for dev env
147
- // apiClient.setEnv(CoboWaas2.Env.DEV);
148
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
149
- // call api
148
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
149
+ apiClient.setEnv(CoboWaas2.Env.DEV);
150
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
151
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
152
+ // Call the API
150
153
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
151
154
  const opts = {
152
- 'CreateMpcProjectRequest': new CoboWaas2.CreateMpcProjectRequest() // CreateMpcProjectRequest | The request body to create a project.
155
+ 'CreateMpcProjectRequest': new CoboWaas2.CreateMpcProjectRequest()
153
156
  };
154
157
  apiInstance.createMpcProject(opts).then((data) => {
155
158
  console.log('API called successfully. Returned data: ' + data);
@@ -192,15 +195,16 @@ This operation creates a vault.
192
195
 
193
196
  ```javascript
194
197
  const CoboWaas2 = require('@cobo/cobo-waas2');
195
- // initial default api client
198
+ // Initialize the API client
196
199
  const apiClient = CoboWaas2.ApiClient.instance
197
- // for dev env
198
- // apiClient.setEnv(CoboWaas2.Env.DEV);
199
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
200
- // call api
200
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
201
+ apiClient.setEnv(CoboWaas2.Env.DEV);
202
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
203
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
204
+ // Call the API
201
205
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
202
206
  const opts = {
203
- 'CreateMpcVaultRequest': new CoboWaas2.CreateMpcVaultRequest() // CreateMpcVaultRequest | The request body to create a vault.
207
+ 'CreateMpcVaultRequest': new CoboWaas2.CreateMpcVaultRequest()
204
208
  };
205
209
  apiInstance.createMpcVault(opts).then((data) => {
206
210
  console.log('API called successfully. Returned data: ' + data);
@@ -243,16 +247,17 @@ This operation creates a TSS request under a specified vault. You can use this o
243
247
 
244
248
  ```javascript
245
249
  const CoboWaas2 = require('@cobo/cobo-waas2');
246
- // initial default api client
250
+ // Initialize the API client
247
251
  const apiClient = CoboWaas2.ApiClient.instance
248
- // for dev env
249
- // apiClient.setEnv(CoboWaas2.Env.DEV);
250
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
251
- // call api
252
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
253
+ apiClient.setEnv(CoboWaas2.Env.DEV);
254
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
255
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
256
+ // Call the API
252
257
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
253
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
258
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
254
259
  const opts = {
255
- 'CreateTssRequestRequest': new CoboWaas2.CreateTssRequestRequest() // CreateTssRequestRequest | The request body to create a TSS request.
260
+ 'CreateTssRequestRequest': new CoboWaas2.CreateTssRequestRequest()
256
261
  };
257
262
  apiInstance.createTssRequest(vault_id, opts).then((data) => {
258
263
  console.log('API called successfully. Returned data: ' + data);
@@ -296,15 +301,16 @@ This operation deletes a specified key share holder group.
296
301
 
297
302
  ```javascript
298
303
  const CoboWaas2 = require('@cobo/cobo-waas2');
299
- // initial default api client
304
+ // Initialize the API client
300
305
  const apiClient = CoboWaas2.ApiClient.instance
301
- // for dev env
302
- // apiClient.setEnv(CoboWaas2.Env.DEV);
303
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
304
- // call api
306
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
307
+ apiClient.setEnv(CoboWaas2.Env.DEV);
308
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
309
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
310
+ // Call the API
305
311
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
306
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
307
- const key_share_holder_group_id = "e8257ac8-76b8-4d1e-a1f9-eec4cb931dce"; // String | The key share holder group ID.
312
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
313
+ const key_share_holder_group_id = "e8257ac8-76b8-4d1e-a1f9-eec4cb931dce";
308
314
  apiInstance.deleteKeyShareHolderGroupById(vault_id, key_share_holder_group_id).then((data) => {
309
315
  console.log('API called successfully. Returned data: ' + data);
310
316
  }, (error) => {
@@ -347,15 +353,16 @@ This operation retrieves detailed information about a specified key share holder
347
353
 
348
354
  ```javascript
349
355
  const CoboWaas2 = require('@cobo/cobo-waas2');
350
- // initial default api client
356
+ // Initialize the API client
351
357
  const apiClient = CoboWaas2.ApiClient.instance
352
- // for dev env
353
- // apiClient.setEnv(CoboWaas2.Env.DEV);
354
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
355
- // call api
358
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
359
+ apiClient.setEnv(CoboWaas2.Env.DEV);
360
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
361
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
362
+ // Call the API
356
363
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
357
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
358
- const key_share_holder_group_id = "e8257ac8-76b8-4d1e-a1f9-eec4cb931dce"; // String | The key share holder group ID.
364
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
365
+ const key_share_holder_group_id = "e8257ac8-76b8-4d1e-a1f9-eec4cb931dce";
359
366
  apiInstance.getKeyShareHolderGroupById(vault_id, key_share_holder_group_id).then((data) => {
360
367
  console.log('API called successfully. Returned data: ' + data);
361
368
  }, (error) => {
@@ -392,20 +399,21 @@ Name | Type | Description | Notes
392
399
 
393
400
  Get project information
394
401
 
395
- This operation retrieves detailed information about a project. &lt;Info&gt;This operation applies to MPC Wallets (User-Controlled Wallets) only.&lt;/Info&gt;
402
+ This operation retrieves detailed information about a project. &lt;Note&gt;This operation applies to MPC Wallets (User-Controlled Wallets) only.&lt;/Note&gt;
396
403
 
397
404
  ### Example
398
405
 
399
406
  ```javascript
400
407
  const CoboWaas2 = require('@cobo/cobo-waas2');
401
- // initial default api client
408
+ // Initialize the API client
402
409
  const apiClient = CoboWaas2.ApiClient.instance
403
- // for dev env
404
- // apiClient.setEnv(CoboWaas2.Env.DEV);
405
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
406
- // call api
410
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
411
+ apiClient.setEnv(CoboWaas2.Env.DEV);
412
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
413
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
414
+ // Call the API
407
415
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
408
- const project_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
416
+ const project_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
409
417
  apiInstance.getMpcProjectById(project_id).then((data) => {
410
418
  console.log('API called successfully. Returned data: ' + data);
411
419
  }, (error) => {
@@ -447,14 +455,15 @@ This operation retrieves detailed information about a vault.
447
455
 
448
456
  ```javascript
449
457
  const CoboWaas2 = require('@cobo/cobo-waas2');
450
- // initial default api client
458
+ // Initialize the API client
451
459
  const apiClient = CoboWaas2.ApiClient.instance
452
- // for dev env
453
- // apiClient.setEnv(CoboWaas2.Env.DEV);
454
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
455
- // call api
460
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
461
+ apiClient.setEnv(CoboWaas2.Env.DEV);
462
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
463
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
464
+ // Call the API
456
465
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
457
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
466
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
458
467
  apiInstance.getMpcVaultById(vault_id).then((data) => {
459
468
  console.log('API called successfully. Returned data: ' + data);
460
469
  }, (error) => {
@@ -496,15 +505,16 @@ This operation retrieves detailed information about a TSS request.
496
505
 
497
506
  ```javascript
498
507
  const CoboWaas2 = require('@cobo/cobo-waas2');
499
- // initial default api client
508
+ // Initialize the API client
500
509
  const apiClient = CoboWaas2.ApiClient.instance
501
- // for dev env
502
- // apiClient.setEnv(CoboWaas2.Env.DEV);
503
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
504
- // call api
510
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
511
+ apiClient.setEnv(CoboWaas2.Env.DEV);
512
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
513
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
514
+ // Call the API
505
515
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
506
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
507
- const tss_request_id = "20240711114129000132315000003970"; // String | The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests).
516
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
517
+ const tss_request_id = "20240711114129000132315000003970";
508
518
  apiInstance.getTssRequestById(vault_id, tss_request_id).then((data) => {
509
519
  console.log('API called successfully. Returned data: ' + data);
510
520
  }, (error) => {
@@ -547,12 +557,13 @@ This operation retrieves a list of all Cobo key share holders and their informat
547
557
 
548
558
  ```javascript
549
559
  const CoboWaas2 = require('@cobo/cobo-waas2');
550
- // initial default api client
560
+ // Initialize the API client
551
561
  const apiClient = CoboWaas2.ApiClient.instance
552
- // for dev env
553
- // apiClient.setEnv(CoboWaas2.Env.DEV);
554
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
555
- // call api
562
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
563
+ apiClient.setEnv(CoboWaas2.Env.DEV);
564
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
565
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
566
+ // Call the API
556
567
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
557
568
  apiInstance.listCoboKeyHolders().then((data) => {
558
569
  console.log('API called successfully. Returned data: ' + data);
@@ -592,19 +603,20 @@ This operation retrieves all key share holder groups under a specified vault. Yo
592
603
 
593
604
  ```javascript
594
605
  const CoboWaas2 = require('@cobo/cobo-waas2');
595
- // initial default api client
606
+ // Initialize the API client
596
607
  const apiClient = CoboWaas2.ApiClient.instance
597
- // for dev env
598
- // apiClient.setEnv(CoboWaas2.Env.DEV);
599
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
600
- // call api
608
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
609
+ apiClient.setEnv(CoboWaas2.Env.DEV);
610
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
611
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
612
+ // Call the API
601
613
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
602
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
614
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
603
615
  const opts = {
604
- 'key_share_holder_group_type': new CoboWaas2.KeyShareHolderGroupType(), // KeyShareHolderGroupType | The key share holder group type. Possible values include: - `MainGroup`: The [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#main-group). - `SigningGroup`: The [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#signing-group). - `RecoveryGroup`: 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.
605
- 'limit': 10, // Number | The maximum number of objects to return. For most operations, the value range is [1, 50].
606
- 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1", // String | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
607
- 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk" // String | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
616
+ 'key_share_holder_group_type': new CoboWaas2.KeyShareHolderGroupType(),
617
+ 'limit': 10,
618
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
619
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
608
620
  };
609
621
  apiInstance.listKeyShareHolderGroups(vault_id, opts).then((data) => {
610
622
  console.log('API called successfully. Returned data: ' + data);
@@ -645,23 +657,24 @@ Name | Type | Description | Notes
645
657
 
646
658
  List all projects
647
659
 
648
- This operation retrieves a list of all projects. &lt;Info&gt;This operation applies to MPC Wallets (User-Controlled Wallets) only.&lt;/Info&gt;
660
+ This operation retrieves a list of all projects. &lt;Note&gt;This operation applies to MPC Wallets (User-Controlled Wallets) only.&lt;/Note&gt;
649
661
 
650
662
  ### Example
651
663
 
652
664
  ```javascript
653
665
  const CoboWaas2 = require('@cobo/cobo-waas2');
654
- // initial default api client
666
+ // Initialize the API client
655
667
  const apiClient = CoboWaas2.ApiClient.instance
656
- // for dev env
657
- // apiClient.setEnv(CoboWaas2.Env.DEV);
658
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
659
- // call api
668
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
669
+ apiClient.setEnv(CoboWaas2.Env.DEV);
670
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
671
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
672
+ // Call the API
660
673
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
661
674
  const opts = {
662
- 'limit': 10, // Number | The maximum number of objects to return. For most operations, the value range is [1, 50].
663
- 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1", // String | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
664
- 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk" // String | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
675
+ 'limit': 10,
676
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
677
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
665
678
  };
666
679
  apiInstance.listMpcProjects(opts).then((data) => {
667
680
  console.log('API called successfully. Returned data: ' + data);
@@ -706,19 +719,20 @@ This operation retrieves a list of all vaults. You can filter the result by proj
706
719
 
707
720
  ```javascript
708
721
  const CoboWaas2 = require('@cobo/cobo-waas2');
709
- // initial default api client
722
+ // Initialize the API client
710
723
  const apiClient = CoboWaas2.ApiClient.instance
711
- // for dev env
712
- // apiClient.setEnv(CoboWaas2.Env.DEV);
713
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
714
- // call api
724
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
725
+ apiClient.setEnv(CoboWaas2.Env.DEV);
726
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
727
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
728
+ // Call the API
715
729
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
716
- const vault_type = new CoboWaas2.MPCVaultType(); // MPCVaultType | The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets).
730
+ const vault_type = new CoboWaas2.MPCVaultType();
717
731
  const opts = {
718
- 'project_id': "f47ac10b-58cc-4372-a567-0e02b2c3d479", // String | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
719
- 'limit': 10, // Number | The maximum number of objects to return. For most operations, the value range is [1, 50].
720
- 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1", // String | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
721
- 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk" // String | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
732
+ 'project_id': "f47ac10b-58cc-4372-a567-0e02b2c3d479",
733
+ 'limit': 10,
734
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
735
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
722
736
  };
723
737
  apiInstance.listMpcVaults(vault_type, opts).then((data) => {
724
738
  console.log('API called successfully. Returned data: ' + data);
@@ -765,19 +779,20 @@ This operation retrieves a list of TSS requests and their details.
765
779
 
766
780
  ```javascript
767
781
  const CoboWaas2 = require('@cobo/cobo-waas2');
768
- // initial default api client
782
+ // Initialize the API client
769
783
  const apiClient = CoboWaas2.ApiClient.instance
770
- // for dev env
771
- // apiClient.setEnv(CoboWaas2.Env.DEV);
772
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
773
- // call api
784
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
785
+ apiClient.setEnv(CoboWaas2.Env.DEV);
786
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
787
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
788
+ // Call the API
774
789
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
775
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
776
- const key_share_holder_group_id = "a3a45e99-5a12-444f-867a-ffe0ebb1bb30"; // String | The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
790
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
791
+ const key_share_holder_group_id = "a3a45e99-5a12-444f-867a-ffe0ebb1bb30";
777
792
  const opts = {
778
- 'limit': 10, // Number | The maximum number of objects to return. For most operations, the value range is [1, 50].
779
- 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1", // String | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
780
- 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk" // String | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
793
+ 'limit': 10,
794
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
795
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
781
796
  };
782
797
  apiInstance.listTssRequests(vault_id, key_share_holder_group_id, opts).then((data) => {
783
798
  console.log('API called successfully. Returned data: ' + data);
@@ -824,17 +839,18 @@ This operation updates a specified active [Signing Group](https://manuals.cobo.c
824
839
 
825
840
  ```javascript
826
841
  const CoboWaas2 = require('@cobo/cobo-waas2');
827
- // initial default api client
842
+ // Initialize the API client
828
843
  const apiClient = CoboWaas2.ApiClient.instance
829
- // for dev env
830
- // apiClient.setEnv(CoboWaas2.Env.DEV);
831
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
832
- // call api
844
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
845
+ apiClient.setEnv(CoboWaas2.Env.DEV);
846
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
847
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
848
+ // Call the API
833
849
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
834
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
835
- const key_share_holder_group_id = "e8257ac8-76b8-4d1e-a1f9-eec4cb931dce"; // String | The key share holder group ID.
850
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
851
+ const key_share_holder_group_id = "e8257ac8-76b8-4d1e-a1f9-eec4cb931dce";
836
852
  const opts = {
837
- 'UpdateKeyShareHolderGroupByIdRequest': new CoboWaas2.UpdateKeyShareHolderGroupByIdRequest() // UpdateKeyShareHolderGroupByIdRequest |
853
+ 'UpdateKeyShareHolderGroupByIdRequest': new CoboWaas2.UpdateKeyShareHolderGroupByIdRequest()
838
854
  };
839
855
  apiInstance.updateKeyShareHolderGroupById(vault_id, key_share_holder_group_id, opts).then((data) => {
840
856
  console.log('API called successfully. Returned data: ' + data);
@@ -873,22 +889,23 @@ Name | Type | Description | Notes
873
889
 
874
890
  Update project name
875
891
 
876
- This operation updates a project&#39;s name. &lt;Info&gt;This operation applies to MPC Wallets (User-Controlled Wallets) only.&lt;/Info&gt;
892
+ This operation updates a project&#39;s name. &lt;Note&gt;This operation applies to MPC Wallets (User-Controlled Wallets) only.&lt;/Note&gt;
877
893
 
878
894
  ### Example
879
895
 
880
896
  ```javascript
881
897
  const CoboWaas2 = require('@cobo/cobo-waas2');
882
- // initial default api client
898
+ // Initialize the API client
883
899
  const apiClient = CoboWaas2.ApiClient.instance
884
- // for dev env
885
- // apiClient.setEnv(CoboWaas2.Env.DEV);
886
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
887
- // call api
900
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
901
+ apiClient.setEnv(CoboWaas2.Env.DEV);
902
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
903
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
904
+ // Call the API
888
905
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
889
- const project_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
906
+ const project_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
890
907
  const opts = {
891
- 'UpdateMpcProjectByIdRequest': new CoboWaas2.UpdateMpcProjectByIdRequest() // UpdateMpcProjectByIdRequest | The request body to update a project's name.
908
+ 'UpdateMpcProjectByIdRequest': new CoboWaas2.UpdateMpcProjectByIdRequest()
892
909
  };
893
910
  apiInstance.updateMpcProjectById(project_id, opts).then((data) => {
894
911
  console.log('API called successfully. Returned data: ' + data);
@@ -932,16 +949,17 @@ This operation updates a vault&#39;s name.
932
949
 
933
950
  ```javascript
934
951
  const CoboWaas2 = require('@cobo/cobo-waas2');
935
- // initial default api client
952
+ // Initialize the API client
936
953
  const apiClient = CoboWaas2.ApiClient.instance
937
- // for dev env
938
- // apiClient.setEnv(CoboWaas2.Env.DEV);
939
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
940
- // call api
954
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
955
+ apiClient.setEnv(CoboWaas2.Env.DEV);
956
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
957
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
958
+ // Call the API
941
959
  const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
942
- const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
960
+ const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
943
961
  const opts = {
944
- 'UpdateMpcVaultByIdRequest': new CoboWaas2.UpdateMpcVaultByIdRequest() // UpdateMpcVaultByIdRequest | The request body to update a vault's name.
962
+ 'UpdateMpcVaultByIdRequest': new CoboWaas2.UpdateMpcVaultByIdRequest()
945
963
  };
946
964
  apiInstance.updateMpcVaultById(vault_id, opts).then((data) => {
947
965
  console.log('API called successfully. Returned data: ' + data);
@@ -4,13 +4,13 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. When &#x60;data_type&#x60; is &#x60;Transaction&#x60;, it means the event uses the &#x60;transaction&#x60; schema as its data type. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request 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]
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
- **type** | [**TransactionType**](TransactionType.md) | | [optional]
13
- **status** | [**TransactionStatus**](TransactionStatus.md) | |
12
+ **type** | [**TSSRequestType**](TSSRequestType.md) | | [optional]
13
+ **status** | [**TSSRequestStatus**](TSSRequestStatus.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
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](/v2/api-references/wallets/list-enabled-chains). | [optional]
@@ -29,10 +29,13 @@ Name | Type | Description | Notes
29
29
  **raw_tx_info** | [**TransactionRawTxInfo**](TransactionRawTxInfo.md) | | [optional]
30
30
  **replacement** | [**TransactionReplacement**](TransactionReplacement.md) | | [optional]
31
31
  **category** | **[String]** | A custom transaction category for you to identify your transfers more easily. | [optional]
32
- **description** | **String** | The description for your transaction. | [optional]
32
+ **description** | **String** | The description of the TSS request. | [optional]
33
33
  **is_loop** | **Boolean** | Whether the transaction is a Loop transfer. For more information about Loop, see [Loop&#39;s website](https://loop.top/). - &#x60;true&#x60;: The transaction is a Loop transfer. - &#x60;false&#x60;: The transaction is not a Loop transfer. | [optional]
34
- **created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. | [optional]
34
+ **created_timestamp** | **Number** | The TSS request&#39;s creation time in Unix timestamp format, measured in milliseconds. | [optional]
35
35
  **updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. | [optional]
36
+ **tss_request_id** | **String** | The TSS request ID. | [optional]
37
+ **source_key_share_holder_group** | [**SourceGroup**](SourceGroup.md) | | [optional]
38
+ **target_key_share_holder_group_id** | **String** | The target key share holder group ID. | [optional]
36
39
 
37
40
 
38
41
 
@@ -41,6 +44,8 @@ Name | Type | Description | Notes
41
44
 
42
45
  * `Transaction` (value: `"Transaction"`)
43
46
 
47
+ * `TSSRequest` (value: `"TSSRequest"`)
48
+
44
49
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
45
50
 
46
51
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **data_type** | **String** | The data type of the event. When &#x60;data_type&#x60; is &#x60;Transaction&#x60;, it means the event uses the &#x60;transaction&#x60; schema as its data type. |
7
+ **data_type** | **String** | The data type of the event. - &#x60;Transaction&#x60;: The transaction event data. - &#x60;TSSRequest&#x60;: The TSS request event data. |
8
8
 
9
9
 
10
10
 
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
13
13
 
14
14
  * `Transaction` (value: `"Transaction"`)
15
15
 
16
+ * `TSSRequest` (value: `"TSSRequest"`)
17
+
16
18
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
17
19
 
18
20
 
@@ -3,13 +3,21 @@
3
3
  ## Enum
4
4
 
5
5
 
6
- * `created` (value: `"wallets.transaction.created"`)
6
+ * `transaction.created` (value: `"wallets.transaction.created"`)
7
7
 
8
- * `updated` (value: `"wallets.transaction.updated"`)
8
+ * `transaction.updated` (value: `"wallets.transaction.updated"`)
9
9
 
10
- * `failed` (value: `"wallets.transaction.failed"`)
10
+ * `transaction.failed` (value: `"wallets.transaction.failed"`)
11
11
 
12
- * `succeeded` (value: `"wallets.transaction.succeeded"`)
12
+ * `transaction.succeeded` (value: `"wallets.transaction.succeeded"`)
13
+
14
+ * `mpc.tss_request.created` (value: `"wallets.mpc.tss_request.created"`)
15
+
16
+ * `mpc.tss_request.updated` (value: `"wallets.mpc.tss_request.updated"`)
17
+
18
+ * `mpc.tss_request.failed` (value: `"wallets.mpc.tss_request.failed"`)
19
+
20
+ * `mpc.tss_request.succeeded` (value: `"wallets.mpc.tss_request.succeeded"`)
13
21
 
14
22
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
15
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobo/cobo-waas2",
3
- "version": "1.1.2",
3
+ "version": "1.2.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",