@cobo/cobo-waas2 1.6.0 → 1.8.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 (285) hide show
  1. package/README.md +63 -3
  2. package/dist/ApiClient.js +56 -6
  3. package/dist/api/AddressBooksApi.js +6 -6
  4. package/dist/api/DevelopersApi.js +110 -0
  5. package/dist/api/DevelopersWebhooksApi.js +32 -32
  6. package/dist/api/OAuthApi.js +2 -2
  7. package/dist/api/StakingsApi.js +118 -31
  8. package/dist/api/TransactionsApi.js +75 -30
  9. package/dist/api/TravelRuleApi.js +216 -0
  10. package/dist/api/WalletsApi.js +68 -68
  11. package/dist/api/WalletsExchangeWalletApi.js +12 -12
  12. package/dist/api/WalletsMPCWalletsApi.js +60 -60
  13. package/dist/crypto/Ed25519Signer.js +36 -0
  14. package/dist/crypto/Secp256k1Signer.js +36 -0
  15. package/dist/index.js +341 -5
  16. package/dist/model/Activity.js +33 -8
  17. package/dist/model/ActivityAction.js +50 -0
  18. package/dist/model/ActivityExtra.js +274 -0
  19. package/dist/model/ActivityType.js +5 -0
  20. package/dist/model/AddressInfo.js +15 -2
  21. package/dist/model/AddressTransferDestination.js +1 -1
  22. package/dist/model/AddressesEventData.js +190 -0
  23. package/dist/model/ApiLogDetails.js +2 -2
  24. package/dist/model/AutoFuelType.js +61 -0
  25. package/dist/model/BabylonStakeExtra.js +1 -1
  26. package/dist/model/BabylonStakingActivityDetailExtra.js +165 -0
  27. package/dist/model/BabylonValidator.js +4 -12
  28. package/dist/model/BaseContractCallSource.js +1 -1
  29. package/dist/model/BroadcastSignedTransactionsRequest.js +1 -1
  30. package/dist/model/CallbackMessage.js +288 -0
  31. package/dist/model/ChainInfo.js +2 -2
  32. package/dist/model/ContractCallParams.js +11 -2
  33. package/dist/model/CoreStakeExtra.js +170 -0
  34. package/dist/model/CoreStakingActivityDetailExtra.js +164 -0
  35. package/dist/model/CoreStakingExtra.js +187 -0
  36. package/dist/model/CreateAddressRequest.js +2 -2
  37. package/dist/model/CreateClaimActivity.js +139 -0
  38. package/dist/model/CreateClaimActivityRequest.js +182 -0
  39. package/dist/model/CreateKeyShareHolder.js +1 -1
  40. package/dist/model/CreateMpcVaultRequest.js +1 -1
  41. package/dist/model/CreateMpcWalletParams.js +2 -2
  42. package/dist/model/CreateStakeActivity.js +8 -14
  43. package/dist/model/CreateStakeActivityExtra.js +61 -9
  44. package/dist/model/CreateStakeActivityRequest.js +10 -17
  45. package/dist/model/CreateWalletParams.js +1 -1
  46. package/dist/model/CreateWebhookEndpointRequest.js +2 -2
  47. package/dist/model/CreateWithdrawActivity.js +0 -13
  48. package/dist/model/CreateWithdrawActivityRequest.js +0 -18
  49. package/dist/model/CustodialTransferSource.js +1 -1
  50. package/dist/model/DestinationWalletType.js +61 -0
  51. package/dist/model/ErrorResponse.js +2 -2
  52. package/dist/model/EstimateClaimFee.js +145 -0
  53. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  54. package/dist/model/EstimateFeeParams.js +2 -2
  55. package/dist/model/EstimateStakeFee.js +10 -17
  56. package/dist/model/EstimateTransferFeeParams.js +2 -2
  57. package/dist/model/EstimateWithdrawFee.js +0 -18
  58. package/dist/model/EstimatedFee.js +1 -1
  59. package/dist/model/EstimatedFixedFee.js +4 -4
  60. package/dist/model/EstimatedUtxoFeeSlow.js +3 -3
  61. package/dist/model/EthStakeEstimatedFee.js +13 -0
  62. package/dist/model/EthStakingActivityDetailExtra.js +142 -0
  63. package/dist/model/EthStakingExtra.js +31 -0
  64. package/dist/model/EthStakingExtraAllOfBeaconValidators.js +140 -0
  65. package/dist/model/EvmContractCallDestination.js +1 -1
  66. package/dist/model/EvmEIP191MessageSignDestination.js +1 -1
  67. package/dist/model/EvmEIP712MessageSignDestination.js +1 -1
  68. package/dist/model/ExchangeTransferDestination.js +1 -1
  69. package/dist/model/ExchangeTransferSource.js +1 -1
  70. package/dist/model/ExtendedTokenInfo.js +3 -3
  71. package/dist/model/FeeAmount.js +1 -1
  72. package/dist/model/FeeRate.js +1 -1
  73. package/dist/model/FixedFeeRate.js +2 -2
  74. package/dist/model/GetStakingEstimationFee201Response.js +6 -0
  75. package/dist/model/GetStakingEstimationFeeRequest.js +39 -17
  76. package/dist/model/GetTransactionLimitation200Response.js +143 -0
  77. package/dist/model/ListCallbackMessages200Response.js +145 -0
  78. package/dist/model/ListSupportedCountries200ResponseInner.js +140 -0
  79. package/dist/model/LockUtxosRequestUtxosInner.js +2 -2
  80. package/dist/model/MPCDelegate.js +1 -1
  81. package/dist/model/MPCProject.js +4 -4
  82. package/dist/model/MPCVaultEventData.js +279 -0
  83. package/dist/model/MaxTransferableValue.js +1 -1
  84. package/dist/model/MessageSignParams.js +2 -2
  85. package/dist/model/MpcTransferSource.js +2 -2
  86. package/dist/model/OrgInfo.js +133 -0
  87. package/dist/model/Pagination.js +6 -6
  88. package/dist/model/RawMessageSignDestination.js +1 -1
  89. package/dist/model/RetryCallbackMessage201Response.js +83 -0
  90. package/dist/model/SafeContractCallSource.js +1 -1
  91. package/dist/model/SafeTransferSource.js +1 -1
  92. package/dist/model/SelectedEntityType.js +61 -0
  93. package/dist/model/SelfCustodyWallet.js +152 -0
  94. package/dist/model/SourceGroup.js +1 -1
  95. package/dist/model/StakingPoolId.js +86 -0
  96. package/dist/model/StakingPoolType.js +10 -0
  97. package/dist/model/Stakings.js +10 -14
  98. package/dist/model/StakingsExtra.js +67 -8
  99. package/dist/model/SubmitDepositTravelRuleInfo201Response.js +83 -0
  100. package/dist/model/SwapActivity.js +218 -0
  101. package/dist/model/SwapSummary.js +121 -0
  102. package/dist/model/SwapTokenPair.js +100 -0
  103. package/dist/model/TSSRequestWebhookEventData.js +18 -3
  104. package/dist/model/TokenBalance.js +2 -2
  105. package/dist/model/TokenBalanceBalance.js +6 -6
  106. package/dist/model/TokenInfo.js +2 -2
  107. package/dist/model/Transaction.js +2 -2
  108. package/dist/model/TransactionApprovalDetail.js +121 -0
  109. package/dist/model/TransactionApprovalResult.js +66 -0
  110. package/dist/model/TransactionCustodialAssetWalletSource.js +1 -1
  111. package/dist/model/TransactionDepositFromAddressSource.js +1 -1
  112. package/dist/model/TransactionDepositFromLoopSource.js +1 -1
  113. package/dist/model/TransactionDepositFromWalletSource.js +1 -1
  114. package/dist/model/TransactionDepositToAddressDestination.js +1 -1
  115. package/dist/model/TransactionDepositToWalletDestination.js +1 -1
  116. package/dist/model/TransactionDetail.js +4 -4
  117. package/dist/model/TransactionDetails.js +4 -4
  118. package/dist/model/TransactionEvmContractDestination.js +1 -1
  119. package/dist/model/TransactionExchangeWalletSource.js +1 -1
  120. package/dist/model/TransactionMPCWalletSource.js +1 -1
  121. package/dist/model/TransactionMessageSignEIP191Destination.js +1 -1
  122. package/dist/model/TransactionMessageSignEIP712Destination.js +1 -1
  123. package/dist/model/TransactionRawMessageSignDestination.js +1 -1
  124. package/dist/model/TransactionRawTxInfo.js +4 -4
  125. package/dist/model/TransactionRbf.js +9 -0
  126. package/dist/model/TransactionRbfSource.js +1 -1
  127. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
  128. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
  129. package/dist/model/TransactionRequestFixedFee.js +1 -1
  130. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  131. package/dist/model/TransactionRoleApprovalDetail.js +152 -0
  132. package/dist/model/{StakingsValidatorInfo.js → TransactionSelectedUtxo.js} +38 -55
  133. package/dist/model/TransactionSmartContractSafeWalletSource.js +1 -1
  134. package/dist/model/TransactionTokeApproval.js +3 -3
  135. package/dist/model/TransactionTokenAmount.js +1 -1
  136. package/dist/model/TransactionTransferToAddressDestination.js +1 -1
  137. package/dist/model/TransactionTransferToWalletDestination.js +1 -1
  138. package/dist/model/TransactionUserApprovalDetail.js +162 -0
  139. package/dist/model/TransactionWebhookEventData.js +22 -7
  140. package/dist/model/TransferParams.js +11 -2
  141. package/dist/model/TravelRuleDepositExchangesOrVASP.js +168 -0
  142. package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +222 -0
  143. package/dist/model/TravelRuleDepositLegalEntity.js +171 -0
  144. package/dist/model/TravelRuleDepositNaturalEntity.js +186 -0
  145. package/dist/model/TravelRuleDepositRequest.js +128 -0
  146. package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +222 -0
  147. package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +155 -0
  148. package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +222 -0
  149. package/dist/model/TravelRuleWithdrawLegalEntity.js +144 -0
  150. package/dist/model/TravelRuleWithdrawNaturalEntity.js +159 -0
  151. package/dist/model/TravelRuleWithdrawRequest.js +128 -0
  152. package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +216 -0
  153. package/dist/model/TriggerTestWebhookEventRequest.js +1 -1
  154. package/dist/model/UpdateWebhookEndpointByIdRequest.js +1 -1
  155. package/dist/model/Vasp.js +141 -0
  156. package/dist/model/WalletInfoEventData.js +175 -0
  157. package/dist/model/WebhookEventData.js +135 -14
  158. package/dist/model/WebhookEventDataType.js +17 -2
  159. package/dist/model/WebhookEventType.js +23 -8
  160. package/docs/Activity.md +3 -1
  161. package/docs/ActivityAction.md +20 -0
  162. package/docs/ActivityExtra.md +20 -0
  163. package/docs/ActivityType.md +2 -0
  164. package/docs/AddressBooksApi.md +3 -3
  165. package/docs/AddressInfo.md +2 -1
  166. package/docs/AddressesEventData.md +29 -0
  167. package/docs/ApiLogDetails.md +1 -1
  168. package/docs/AutoFuelType.md +12 -0
  169. package/docs/BabylonStakeExtra.md +1 -1
  170. package/docs/BabylonStakingActivityDetailExtra.md +14 -0
  171. package/docs/BabylonValidator.md +4 -4
  172. package/docs/BroadcastSignedTransactionsRequest.md +1 -1
  173. package/docs/CallbackMessage.md +46 -0
  174. package/docs/ChainInfo.md +1 -1
  175. package/docs/ContractCallParams.md +2 -1
  176. package/docs/CoreStakeExtra.md +13 -0
  177. package/docs/CoreStakingActivityDetailExtra.md +13 -0
  178. package/docs/CoreStakingExtra.md +14 -0
  179. package/docs/CreateAddressRequest.md +1 -1
  180. package/docs/CreateClaimActivity.md +11 -0
  181. package/docs/CreateClaimActivityRequest.md +12 -0
  182. package/docs/CreateKeyShareHolder.md +1 -1
  183. package/docs/CreateMpcVaultRequest.md +1 -1
  184. package/docs/CreateMpcWalletParams.md +1 -1
  185. package/docs/CreateStakeActivity.md +2 -2
  186. package/docs/CreateStakeActivityExtra.md +5 -1
  187. package/docs/CreateStakeActivityRequest.md +2 -2
  188. package/docs/CreateWalletParams.md +1 -1
  189. package/docs/CreateWebhookEndpointRequest.md +1 -1
  190. package/docs/CreateWithdrawActivity.md +0 -1
  191. package/docs/CreateWithdrawActivityRequest.md +0 -1
  192. package/docs/DestinationWalletType.md +12 -0
  193. package/docs/DevelopersApi.md +118 -0
  194. package/docs/DevelopersWebhooksApi.md +16 -16
  195. package/docs/ErrorResponse.md +1 -1
  196. package/docs/EstimateClaimFee.md +11 -0
  197. package/docs/EstimateContractCallFeeParams.md +1 -1
  198. package/docs/EstimateFeeParams.md +2 -2
  199. package/docs/EstimateStakeFee.md +2 -2
  200. package/docs/EstimateTransferFeeParams.md +1 -1
  201. package/docs/EstimateWithdrawFee.md +0 -1
  202. package/docs/EstimatedFee.md +1 -1
  203. package/docs/EstimatedFixedFee.md +1 -1
  204. package/docs/EstimatedUtxoFeeSlow.md +1 -1
  205. package/docs/EthStakeEstimatedFee.md +1 -0
  206. package/docs/EthStakingActivityDetailExtra.md +11 -0
  207. package/docs/EthStakingExtra.md +1 -0
  208. package/docs/EthStakingExtraAllOfBeaconValidators.md +14 -0
  209. package/docs/ExtendedTokenInfo.md +1 -1
  210. package/docs/FeeAmount.md +1 -1
  211. package/docs/FeeRate.md +1 -1
  212. package/docs/FixedFeeRate.md +1 -1
  213. package/docs/GetStakingEstimationFee201Response.md +1 -0
  214. package/docs/GetStakingEstimationFeeRequest.md +3 -4
  215. package/docs/GetTransactionLimitation200Response.md +12 -0
  216. package/docs/ListCallbackMessages200Response.md +10 -0
  217. package/docs/ListSupportedCountries200ResponseInner.md +11 -0
  218. package/docs/LockUtxosRequestUtxosInner.md +1 -1
  219. package/docs/MPCProject.md +1 -1
  220. package/docs/MPCVaultEventData.md +34 -0
  221. package/docs/MaxTransferableValue.md +1 -1
  222. package/docs/MessageSignParams.md +1 -1
  223. package/docs/MpcTransferSource.md +1 -1
  224. package/docs/OAuthApi.md +1 -1
  225. package/docs/OrgInfo.md +11 -0
  226. package/docs/Pagination.md +3 -3
  227. package/docs/PoolDetailsAllOfValidatorsInfo.md +4 -4
  228. package/docs/RetryCallbackMessage201Response.md +9 -0
  229. package/docs/SelectedEntityType.md +12 -0
  230. package/docs/SelfCustodyWallet.md +12 -0
  231. package/docs/SourceGroup.md +1 -1
  232. package/docs/StakingPoolId.md +22 -0
  233. package/docs/StakingPoolType.md +4 -0
  234. package/docs/Stakings.md +2 -2
  235. package/docs/StakingsApi.md +122 -14
  236. package/docs/StakingsExtra.md +5 -0
  237. package/docs/SubmitDepositTravelRuleInfo201Response.md +9 -0
  238. package/docs/SwapActivity.md +20 -0
  239. package/docs/SwapSummary.md +10 -0
  240. package/docs/SwapTokenPair.md +10 -0
  241. package/docs/TSSRequestWebhookEventData.md +7 -1
  242. package/docs/TokenBalance.md +1 -1
  243. package/docs/TokenBalanceBalance.md +4 -4
  244. package/docs/TokenInfo.md +1 -1
  245. package/docs/Transaction.md +2 -2
  246. package/docs/TransactionApprovalDetail.md +11 -0
  247. package/docs/TransactionApprovalResult.md +14 -0
  248. package/docs/TransactionDetail.md +2 -2
  249. package/docs/TransactionDetails.md +2 -2
  250. package/docs/TransactionRawTxInfo.md +1 -1
  251. package/docs/TransactionRbf.md +1 -0
  252. package/docs/TransactionRbfSource.md +1 -1
  253. package/docs/TransactionRoleApprovalDetail.md +13 -0
  254. package/docs/TransactionSelectedUtxo.md +12 -0
  255. package/docs/TransactionTokeApproval.md +1 -1
  256. package/docs/TransactionTokenAmount.md +1 -1
  257. package/docs/TransactionUserApprovalDetail.md +15 -0
  258. package/docs/TransactionWebhookEventData.md +9 -3
  259. package/docs/TransactionsApi.md +66 -15
  260. package/docs/TransferParams.md +2 -1
  261. package/docs/TravelRuleApi.md +214 -0
  262. package/docs/TravelRuleDepositExchangesOrVASP.md +13 -0
  263. package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +29 -0
  264. package/docs/TravelRuleDepositLegalEntity.md +25 -0
  265. package/docs/TravelRuleDepositNaturalEntity.md +26 -0
  266. package/docs/TravelRuleDepositRequest.md +10 -0
  267. package/docs/TravelRuleDepositRequestTravelRuleInfo.md +16 -0
  268. package/docs/TravelRuleWithdrawExchangesOrVASP.md +12 -0
  269. package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +16 -0
  270. package/docs/TravelRuleWithdrawLegalEntity.md +12 -0
  271. package/docs/TravelRuleWithdrawNaturalEntity.md +13 -0
  272. package/docs/TravelRuleWithdrawRequest.md +10 -0
  273. package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +15 -0
  274. package/docs/TriggerTestWebhookEventRequest.md +1 -1
  275. package/docs/UpdateWebhookEndpointByIdRequest.md +1 -1
  276. package/docs/Vasp.md +11 -0
  277. package/docs/WalletInfoEventData.md +29 -0
  278. package/docs/WalletsApi.md +34 -34
  279. package/docs/WalletsExchangeWalletApi.md +6 -6
  280. package/docs/WalletsMPCWalletsApi.md +30 -30
  281. package/docs/WebhookEventData.md +17 -5
  282. package/docs/WebhookEventDataType.md +7 -1
  283. package/docs/WebhookEventType.md +14 -8
  284. package/package.json +4 -3
  285. package/docs/StakingsValidatorInfo.md +0 -13
package/README.md CHANGED
@@ -10,12 +10,12 @@ The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo’s Wa
10
10
  - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls
11
11
  - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more
12
12
 
13
- For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](/v2/guides/overview/introduction).
13
+ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction).
14
14
 
15
15
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
16
16
 
17
17
  - API version: v2
18
- - Package version: 1.6.0
18
+ - Package version: 1.8.0
19
19
  - Generator version: 7.6.0
20
20
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
21
21
  For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
@@ -36,7 +36,13 @@ const CoboWaas2 = require('@cobo/cobo-waas2');
36
36
  const apiClient = CoboWaas2.ApiClient.instance
37
37
  // for dev env
38
38
  // apiClient.setEnv(CoboWaas2.Env.DEV);
39
+
40
+ // by default, ed25519 is used
39
41
  apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
42
+
43
+ // or secp256k1
44
+ // apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>", "SECP256K1");
45
+
40
46
  // call api
41
47
  const apiInstance = new CoboWaas2.WalletsApi();
42
48
  const opts = {
@@ -63,6 +69,8 @@ Class | Method | HTTP request | Description
63
69
  ------------ | ------------- | ------------- | -------------
64
70
  *CoboWaas2.AddressBooksApi* | [**listAddressBooks**](docs/AddressBooksApi.md#listAddressBooks) | **GET** /address_books | List address book entries
65
71
  *CoboWaas2.DevelopersApi* | [**getApiKeyInfo**](docs/DevelopersApi.md#getApiKeyInfo) | **GET** /developers/api_key_info | Get API key information
72
+ *CoboWaas2.DevelopersApi* | [**listCallbackMessages**](docs/DevelopersApi.md#listCallbackMessages) | **GET** /developers/callback_messages | List all callback messages
73
+ *CoboWaas2.DevelopersApi* | [**retryCallbackMessage**](docs/DevelopersApi.md#retryCallbackMessage) | **POST** /developers/callback_messages/{message_id}/retry | Retry callback message
66
74
  *CoboWaas2.DevelopersWebhooksApi* | [**createWebhookEndpoint**](docs/DevelopersWebhooksApi.md#createWebhookEndpoint) | **POST** /webhooks/endpoints | Register webhook endpoint
67
75
  *CoboWaas2.DevelopersWebhooksApi* | [**getWebhookEndpointById**](docs/DevelopersWebhooksApi.md#getWebhookEndpointById) | **GET** /webhooks/endpoints/{endpoint_id} | Get webhook endpoint information
68
76
  *CoboWaas2.DevelopersWebhooksApi* | [**getWebhookEventById**](docs/DevelopersWebhooksApi.md#getWebhookEventById) | **GET** /webhooks/endpoints/{endpoint_id}/events/{event_id} | Retrieve event information
@@ -75,12 +83,14 @@ Class | Method | HTTP request | Description
75
83
  *CoboWaas2.DevelopersWebhooksApi* | [**updateWebhookEndpointById**](docs/DevelopersWebhooksApi.md#updateWebhookEndpointById) | **PUT** /webhooks/endpoints/{endpoint_id} | Update webhook endpoint
76
84
  *CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
77
85
  *CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
86
+ *CoboWaas2.StakingsApi* | [**createClaimActivity**](docs/StakingsApi.md#createClaimActivity) | **POST** /stakings/activities/claim | Create claim activity
78
87
  *CoboWaas2.StakingsApi* | [**createStakeActivity**](docs/StakingsApi.md#createStakeActivity) | **POST** /stakings/activities/stake | Create stake activity
79
88
  *CoboWaas2.StakingsApi* | [**createUnstakeActivity**](docs/StakingsApi.md#createUnstakeActivity) | **POST** /stakings/activities/unstake | Create unstake activity
80
89
  *CoboWaas2.StakingsApi* | [**createWithdrawActivity**](docs/StakingsApi.md#createWithdrawActivity) | **POST** /stakings/activities/withdraw | Create withdraw activity
81
90
  *CoboWaas2.StakingsApi* | [**getStakingActivityById**](docs/StakingsApi.md#getStakingActivityById) | **GET** /stakings/activities/{activity_id} | Get staking activity details
82
91
  *CoboWaas2.StakingsApi* | [**getStakingById**](docs/StakingsApi.md#getStakingById) | **GET** /stakings/{staking_id} | Get staking position details
83
92
  *CoboWaas2.StakingsApi* | [**getStakingEstimationFee**](docs/StakingsApi.md#getStakingEstimationFee) | **POST** /stakings/estimate_fee | Estimate staking fees
93
+ *CoboWaas2.StakingsApi* | [**getStakingEstimationFeeV2**](docs/StakingsApi.md#getStakingEstimationFeeV2) | **POST** /stakings/estimate_fee_v2 | Estimate staking fees v2
84
94
  *CoboWaas2.StakingsApi* | [**getStakingPoolById**](docs/StakingsApi.md#getStakingPoolById) | **GET** /stakings/pools/{pool_id} | Get staking pool details
85
95
  *CoboWaas2.StakingsApi* | [**listStakingActivities**](docs/StakingsApi.md#listStakingActivities) | **GET** /stakings/activities | List staking activities
86
96
  *CoboWaas2.StakingsApi* | [**listStakingPools**](docs/StakingsApi.md#listStakingPools) | **GET** /stakings/pools | List staking pools
@@ -93,10 +103,15 @@ Class | Method | HTTP request | Description
93
103
  *CoboWaas2.TransactionsApi* | [**createTransferTransaction**](docs/TransactionsApi.md#createTransferTransaction) | **POST** /transactions/transfer | Transfer token
94
104
  *CoboWaas2.TransactionsApi* | [**dropTransactionById**](docs/TransactionsApi.md#dropTransactionById) | **POST** /transactions/{transaction_id}/drop | Drop transaction
95
105
  *CoboWaas2.TransactionsApi* | [**estimateFee**](docs/TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
106
+ *CoboWaas2.TransactionsApi* | [**getTransactionApprovalDetail**](docs/TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval information
96
107
  *CoboWaas2.TransactionsApi* | [**getTransactionById**](docs/TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
97
108
  *CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
98
109
  *CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
99
110
  *CoboWaas2.TransactionsApi* | [**speedupTransactionById**](docs/TransactionsApi.md#speedupTransactionById) | **POST** /transactions/{transaction_id}/speedup | Speed up transaction
111
+ *CoboWaas2.TravelRuleApi* | [**getTransactionLimitation**](docs/TravelRuleApi.md#getTransactionLimitation) | **GET** /travel_rule/transaction/limitation | Retrieve transaction limitations
112
+ *CoboWaas2.TravelRuleApi* | [**listSupportedCountries**](docs/TravelRuleApi.md#listSupportedCountries) | **GET** /travel_rule/transaction/countries | List supported countries
113
+ *CoboWaas2.TravelRuleApi* | [**submitDepositTravelRuleInfo**](docs/TravelRuleApi.md#submitDepositTravelRuleInfo) | **POST** /travel_rule/transaction/deposit/travel_rule_info | Submit Deposit Transaction Travel Rule information
114
+ *CoboWaas2.TravelRuleApi* | [**submitWithdrawTravelRuleInfo**](docs/TravelRuleApi.md#submitWithdrawTravelRuleInfo) | **POST** /travel_rule/transaction/withdraw/travel_rule_info | Submit Withdraw Transaction Travel Rule information
100
115
  *CoboWaas2.WalletsApi* | [**checkAddressChainsValidity**](docs/WalletsApi.md#checkAddressChainsValidity) | **GET** /wallets/check_address_chains_validity | Check address validity across chains
101
116
  *CoboWaas2.WalletsApi* | [**checkAddressValidity**](docs/WalletsApi.md#checkAddressValidity) | **GET** /wallets/check_address_validity | Check address validity
102
117
  *CoboWaas2.WalletsApi* | [**checkAddressesValidity**](docs/WalletsApi.md#checkAddressesValidity) | **GET** /wallets/check_addresses_validity | Check addresses validity
@@ -148,6 +163,7 @@ Class | Method | HTTP request | Description
148
163
 
149
164
  - [CoboWaas2.Activity](docs/Activity.md)
150
165
  - [CoboWaas2.ActivityAction](docs/ActivityAction.md)
166
+ - [CoboWaas2.ActivityExtra](docs/ActivityExtra.md)
151
167
  - [CoboWaas2.ActivityInitiator](docs/ActivityInitiator.md)
152
168
  - [CoboWaas2.ActivityStatus](docs/ActivityStatus.md)
153
169
  - [CoboWaas2.ActivityTimeline](docs/ActivityTimeline.md)
@@ -158,14 +174,17 @@ Class | Method | HTTP request | Description
158
174
  - [CoboWaas2.AddressTransferDestination](docs/AddressTransferDestination.md)
159
175
  - [CoboWaas2.AddressTransferDestinationAccountOutput](docs/AddressTransferDestinationAccountOutput.md)
160
176
  - [CoboWaas2.AddressTransferDestinationUtxoOutputsInner](docs/AddressTransferDestinationUtxoOutputsInner.md)
177
+ - [CoboWaas2.AddressesEventData](docs/AddressesEventData.md)
161
178
  - [CoboWaas2.AmountDetailsInner](docs/AmountDetailsInner.md)
162
179
  - [CoboWaas2.AmountStatus](docs/AmountStatus.md)
163
180
  - [CoboWaas2.ApiLogDetails](docs/ApiLogDetails.md)
164
181
  - [CoboWaas2.ApiLogSummary](docs/ApiLogSummary.md)
165
182
  - [CoboWaas2.AssetBalance](docs/AssetBalance.md)
166
183
  - [CoboWaas2.AssetInfo](docs/AssetInfo.md)
184
+ - [CoboWaas2.AutoFuelType](docs/AutoFuelType.md)
167
185
  - [CoboWaas2.BabylonStakeEstimatedFee](docs/BabylonStakeEstimatedFee.md)
168
186
  - [CoboWaas2.BabylonStakeExtra](docs/BabylonStakeExtra.md)
187
+ - [CoboWaas2.BabylonStakingActivityDetailExtra](docs/BabylonStakingActivityDetailExtra.md)
169
188
  - [CoboWaas2.BabylonStakingExtra](docs/BabylonStakingExtra.md)
170
189
  - [CoboWaas2.BabylonValidator](docs/BabylonValidator.md)
171
190
  - [CoboWaas2.BaseContractCallSource](docs/BaseContractCallSource.md)
@@ -174,6 +193,7 @@ Class | Method | HTTP request | Description
174
193
  - [CoboWaas2.BaseStakeSource](docs/BaseStakeSource.md)
175
194
  - [CoboWaas2.BroadcastSignedTransactions201ResponseInner](docs/BroadcastSignedTransactions201ResponseInner.md)
176
195
  - [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
196
+ - [CoboWaas2.CallbackMessage](docs/CallbackMessage.md)
177
197
  - [CoboWaas2.ChainInfo](docs/ChainInfo.md)
178
198
  - [CoboWaas2.CheckAddressChainsValidity200ResponseInner](docs/CheckAddressChainsValidity200ResponseInner.md)
179
199
  - [CoboWaas2.CheckAddressValidity200Response](docs/CheckAddressValidity200Response.md)
@@ -186,7 +206,12 @@ Class | Method | HTTP request | Description
186
206
  - [CoboWaas2.ContractCallParams](docs/ContractCallParams.md)
187
207
  - [CoboWaas2.ContractCallSource](docs/ContractCallSource.md)
188
208
  - [CoboWaas2.ContractCallSourceType](docs/ContractCallSourceType.md)
209
+ - [CoboWaas2.CoreStakeExtra](docs/CoreStakeExtra.md)
210
+ - [CoboWaas2.CoreStakingActivityDetailExtra](docs/CoreStakingActivityDetailExtra.md)
211
+ - [CoboWaas2.CoreStakingExtra](docs/CoreStakingExtra.md)
189
212
  - [CoboWaas2.CreateAddressRequest](docs/CreateAddressRequest.md)
213
+ - [CoboWaas2.CreateClaimActivity](docs/CreateClaimActivity.md)
214
+ - [CoboWaas2.CreateClaimActivityRequest](docs/CreateClaimActivityRequest.md)
190
215
  - [CoboWaas2.CreateCustodialWalletParams](docs/CreateCustodialWalletParams.md)
191
216
  - [CoboWaas2.CreateExchangeWalletParams](docs/CreateExchangeWalletParams.md)
192
217
  - [CoboWaas2.CreateKeyShareHolder](docs/CreateKeyShareHolder.md)
@@ -215,10 +240,12 @@ Class | Method | HTTP request | Description
215
240
  - [CoboWaas2.CustodialWalletInfo](docs/CustodialWalletInfo.md)
216
241
  - [CoboWaas2.DeleteKeyShareHolderGroupById201Response](docs/DeleteKeyShareHolderGroupById201Response.md)
217
242
  - [CoboWaas2.DeleteWalletById201Response](docs/DeleteWalletById201Response.md)
243
+ - [CoboWaas2.DestinationWalletType](docs/DestinationWalletType.md)
218
244
  - [CoboWaas2.EigenLayerLstStakeExtra](docs/EigenLayerLstStakeExtra.md)
219
245
  - [CoboWaas2.EigenLayerNativeStakeExtra](docs/EigenLayerNativeStakeExtra.md)
220
246
  - [CoboWaas2.EigenlayerValidator](docs/EigenlayerValidator.md)
221
247
  - [CoboWaas2.ErrorResponse](docs/ErrorResponse.md)
248
+ - [CoboWaas2.EstimateClaimFee](docs/EstimateClaimFee.md)
222
249
  - [CoboWaas2.EstimateContractCallFeeParams](docs/EstimateContractCallFeeParams.md)
223
250
  - [CoboWaas2.EstimateFeeParams](docs/EstimateFeeParams.md)
224
251
  - [CoboWaas2.EstimateFeeRequestType](docs/EstimateFeeRequestType.md)
@@ -236,7 +263,9 @@ Class | Method | HTTP request | Description
236
263
  - [CoboWaas2.EstimatedUtxoFeeSlow](docs/EstimatedUtxoFeeSlow.md)
237
264
  - [CoboWaas2.EthStakeEstimatedFee](docs/EthStakeEstimatedFee.md)
238
265
  - [CoboWaas2.EthStakeExtra](docs/EthStakeExtra.md)
266
+ - [CoboWaas2.EthStakingActivityDetailExtra](docs/EthStakingActivityDetailExtra.md)
239
267
  - [CoboWaas2.EthStakingExtra](docs/EthStakingExtra.md)
268
+ - [CoboWaas2.EthStakingExtraAllOfBeaconValidators](docs/EthStakingExtraAllOfBeaconValidators.md)
240
269
  - [CoboWaas2.EthUnstakeExtra](docs/EthUnstakeExtra.md)
241
270
  - [CoboWaas2.EvmContractCallDestination](docs/EvmContractCallDestination.md)
242
271
  - [CoboWaas2.EvmEIP191MessageSignDestination](docs/EvmEIP191MessageSignDestination.md)
@@ -260,6 +289,7 @@ Class | Method | HTTP request | Description
260
289
  - [CoboWaas2.GetStakingEstimationFeeRequest](docs/GetStakingEstimationFeeRequest.md)
261
290
  - [CoboWaas2.GetToken2XXResponse](docs/GetToken2XXResponse.md)
262
291
  - [CoboWaas2.GetToken4XXResponse](docs/GetToken4XXResponse.md)
292
+ - [CoboWaas2.GetTransactionLimitation200Response](docs/GetTransactionLimitation200Response.md)
263
293
  - [CoboWaas2.KeyShareHolder](docs/KeyShareHolder.md)
264
294
  - [CoboWaas2.KeyShareHolderGroup](docs/KeyShareHolderGroup.md)
265
295
  - [CoboWaas2.KeyShareHolderGroupStatus](docs/KeyShareHolderGroupStatus.md)
@@ -269,6 +299,7 @@ Class | Method | HTTP request | Description
269
299
  - [CoboWaas2.ListAddressBooks200Response](docs/ListAddressBooks200Response.md)
270
300
  - [CoboWaas2.ListAddresses200Response](docs/ListAddresses200Response.md)
271
301
  - [CoboWaas2.ListAssetBalancesForExchangeWallet200Response](docs/ListAssetBalancesForExchangeWallet200Response.md)
302
+ - [CoboWaas2.ListCallbackMessages200Response](docs/ListCallbackMessages200Response.md)
272
303
  - [CoboWaas2.ListExchanges200ResponseInner](docs/ListExchanges200ResponseInner.md)
273
304
  - [CoboWaas2.ListKeyShareHolderGroups200Response](docs/ListKeyShareHolderGroups200Response.md)
274
305
  - [CoboWaas2.ListMpcProjects200Response](docs/ListMpcProjects200Response.md)
@@ -278,6 +309,7 @@ Class | Method | HTTP request | Description
278
309
  - [CoboWaas2.ListStakings200Response](docs/ListStakings200Response.md)
279
310
  - [CoboWaas2.ListSupportedAssetsForExchange200Response](docs/ListSupportedAssetsForExchange200Response.md)
280
311
  - [CoboWaas2.ListSupportedChains200Response](docs/ListSupportedChains200Response.md)
312
+ - [CoboWaas2.ListSupportedCountries200ResponseInner](docs/ListSupportedCountries200ResponseInner.md)
281
313
  - [CoboWaas2.ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
282
314
  - [CoboWaas2.ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
283
315
  - [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
@@ -294,6 +326,7 @@ Class | Method | HTTP request | Description
294
326
  - [CoboWaas2.MPCDelegate](docs/MPCDelegate.md)
295
327
  - [CoboWaas2.MPCProject](docs/MPCProject.md)
296
328
  - [CoboWaas2.MPCVault](docs/MPCVault.md)
329
+ - [CoboWaas2.MPCVaultEventData](docs/MPCVaultEventData.md)
297
330
  - [CoboWaas2.MPCVaultType](docs/MPCVaultType.md)
298
331
  - [CoboWaas2.MPCWalletInfo](docs/MPCWalletInfo.md)
299
332
  - [CoboWaas2.MaxFeeAmount](docs/MaxFeeAmount.md)
@@ -308,6 +341,7 @@ Class | Method | HTTP request | Description
308
341
  - [CoboWaas2.MpcSigningGroup](docs/MpcSigningGroup.md)
309
342
  - [CoboWaas2.MpcStakeSource](docs/MpcStakeSource.md)
310
343
  - [CoboWaas2.MpcTransferSource](docs/MpcTransferSource.md)
344
+ - [CoboWaas2.OrgInfo](docs/OrgInfo.md)
311
345
  - [CoboWaas2.Pagination](docs/Pagination.md)
312
346
  - [CoboWaas2.PoolDetails](docs/PoolDetails.md)
313
347
  - [CoboWaas2.PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
@@ -316,6 +350,7 @@ Class | Method | HTTP request | Description
316
350
  - [CoboWaas2.RefreshToken2XXResponse](docs/RefreshToken2XXResponse.md)
317
351
  - [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
318
352
  - [CoboWaas2.ReplaceType](docs/ReplaceType.md)
353
+ - [CoboWaas2.RetryCallbackMessage201Response](docs/RetryCallbackMessage201Response.md)
319
354
  - [CoboWaas2.RetryWebhookEventById201Response](docs/RetryWebhookEventById201Response.md)
320
355
  - [CoboWaas2.RoleScopes](docs/RoleScopes.md)
321
356
  - [CoboWaas2.RootPubkey](docs/RootPubkey.md)
@@ -326,18 +361,24 @@ Class | Method | HTTP request | Description
326
361
  - [CoboWaas2.SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
327
362
  - [CoboWaas2.SafeWalletDelegatesTransfer](docs/SafeWalletDelegatesTransfer.md)
328
363
  - [CoboWaas2.Scopes](docs/Scopes.md)
364
+ - [CoboWaas2.SelectedEntityType](docs/SelectedEntityType.md)
365
+ - [CoboWaas2.SelfCustodyWallet](docs/SelfCustodyWallet.md)
329
366
  - [CoboWaas2.SmartContractInitiator](docs/SmartContractInitiator.md)
330
367
  - [CoboWaas2.SmartContractWalletInfo](docs/SmartContractWalletInfo.md)
331
368
  - [CoboWaas2.SmartContractWalletOperationType](docs/SmartContractWalletOperationType.md)
332
369
  - [CoboWaas2.SmartContractWalletType](docs/SmartContractWalletType.md)
333
370
  - [CoboWaas2.SourceGroup](docs/SourceGroup.md)
334
371
  - [CoboWaas2.StakeSourceType](docs/StakeSourceType.md)
372
+ - [CoboWaas2.StakingPoolId](docs/StakingPoolId.md)
335
373
  - [CoboWaas2.StakingPoolType](docs/StakingPoolType.md)
336
374
  - [CoboWaas2.StakingSource](docs/StakingSource.md)
337
375
  - [CoboWaas2.Stakings](docs/Stakings.md)
338
376
  - [CoboWaas2.StakingsExtra](docs/StakingsExtra.md)
339
- - [CoboWaas2.StakingsValidatorInfo](docs/StakingsValidatorInfo.md)
340
377
  - [CoboWaas2.SubWalletAssetBalance](docs/SubWalletAssetBalance.md)
378
+ - [CoboWaas2.SubmitDepositTravelRuleInfo201Response](docs/SubmitDepositTravelRuleInfo201Response.md)
379
+ - [CoboWaas2.SwapActivity](docs/SwapActivity.md)
380
+ - [CoboWaas2.SwapSummary](docs/SwapSummary.md)
381
+ - [CoboWaas2.SwapTokenPair](docs/SwapTokenPair.md)
341
382
  - [CoboWaas2.TSSGroups](docs/TSSGroups.md)
342
383
  - [CoboWaas2.TSSRequest](docs/TSSRequest.md)
343
384
  - [CoboWaas2.TSSRequestStatus](docs/TSSRequestStatus.md)
@@ -348,6 +389,8 @@ Class | Method | HTTP request | Description
348
389
  - [CoboWaas2.TokenBalanceBalance](docs/TokenBalanceBalance.md)
349
390
  - [CoboWaas2.TokenInfo](docs/TokenInfo.md)
350
391
  - [CoboWaas2.Transaction](docs/Transaction.md)
392
+ - [CoboWaas2.TransactionApprovalDetail](docs/TransactionApprovalDetail.md)
393
+ - [CoboWaas2.TransactionApprovalResult](docs/TransactionApprovalResult.md)
351
394
  - [CoboWaas2.TransactionApprover](docs/TransactionApprover.md)
352
395
  - [CoboWaas2.TransactionBlockInfo](docs/TransactionBlockInfo.md)
353
396
  - [CoboWaas2.TransactionCustodialAssetWalletSource](docs/TransactionCustodialAssetWalletSource.md)
@@ -386,6 +429,8 @@ Class | Method | HTTP request | Description
386
429
  - [CoboWaas2.TransactionResend](docs/TransactionResend.md)
387
430
  - [CoboWaas2.TransactionResult](docs/TransactionResult.md)
388
431
  - [CoboWaas2.TransactionResultType](docs/TransactionResultType.md)
432
+ - [CoboWaas2.TransactionRoleApprovalDetail](docs/TransactionRoleApprovalDetail.md)
433
+ - [CoboWaas2.TransactionSelectedUtxo](docs/TransactionSelectedUtxo.md)
389
434
  - [CoboWaas2.TransactionSignatureResult](docs/TransactionSignatureResult.md)
390
435
  - [CoboWaas2.TransactionSigner](docs/TransactionSigner.md)
391
436
  - [CoboWaas2.TransactionSmartContractSafeWalletSource](docs/TransactionSmartContractSafeWalletSource.md)
@@ -401,6 +446,7 @@ Class | Method | HTTP request | Description
401
446
  - [CoboWaas2.TransactionTransferToAddressDestinationUtxoOutputsInner](docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md)
402
447
  - [CoboWaas2.TransactionTransferToWalletDestination](docs/TransactionTransferToWalletDestination.md)
403
448
  - [CoboWaas2.TransactionType](docs/TransactionType.md)
449
+ - [CoboWaas2.TransactionUserApprovalDetail](docs/TransactionUserApprovalDetail.md)
404
450
  - [CoboWaas2.TransactionUtxo](docs/TransactionUtxo.md)
405
451
  - [CoboWaas2.TransactionUtxoFee](docs/TransactionUtxoFee.md)
406
452
  - [CoboWaas2.TransactionWebhookEventData](docs/TransactionWebhookEventData.md)
@@ -408,6 +454,18 @@ Class | Method | HTTP request | Description
408
454
  - [CoboWaas2.TransferDestinationType](docs/TransferDestinationType.md)
409
455
  - [CoboWaas2.TransferParams](docs/TransferParams.md)
410
456
  - [CoboWaas2.TransferSource](docs/TransferSource.md)
457
+ - [CoboWaas2.TravelRuleDepositExchangesOrVASP](docs/TravelRuleDepositExchangesOrVASP.md)
458
+ - [CoboWaas2.TravelRuleDepositExchangesOrVASPEntityInfo](docs/TravelRuleDepositExchangesOrVASPEntityInfo.md)
459
+ - [CoboWaas2.TravelRuleDepositLegalEntity](docs/TravelRuleDepositLegalEntity.md)
460
+ - [CoboWaas2.TravelRuleDepositNaturalEntity](docs/TravelRuleDepositNaturalEntity.md)
461
+ - [CoboWaas2.TravelRuleDepositRequest](docs/TravelRuleDepositRequest.md)
462
+ - [CoboWaas2.TravelRuleDepositRequestTravelRuleInfo](docs/TravelRuleDepositRequestTravelRuleInfo.md)
463
+ - [CoboWaas2.TravelRuleWithdrawExchangesOrVASP](docs/TravelRuleWithdrawExchangesOrVASP.md)
464
+ - [CoboWaas2.TravelRuleWithdrawExchangesOrVASPEntityInfo](docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md)
465
+ - [CoboWaas2.TravelRuleWithdrawLegalEntity](docs/TravelRuleWithdrawLegalEntity.md)
466
+ - [CoboWaas2.TravelRuleWithdrawNaturalEntity](docs/TravelRuleWithdrawNaturalEntity.md)
467
+ - [CoboWaas2.TravelRuleWithdrawRequest](docs/TravelRuleWithdrawRequest.md)
468
+ - [CoboWaas2.TravelRuleWithdrawRequestTravelRuleInfo](docs/TravelRuleWithdrawRequestTravelRuleInfo.md)
411
469
  - [CoboWaas2.TriggerTestWebhookEvent201Response](docs/TriggerTestWebhookEvent201Response.md)
412
470
  - [CoboWaas2.TriggerTestWebhookEventRequest](docs/TriggerTestWebhookEventRequest.md)
413
471
  - [CoboWaas2.UTXO](docs/UTXO.md)
@@ -423,7 +481,9 @@ Class | Method | HTTP request | Description
423
481
  - [CoboWaas2.UpdateWebhookEndpointByIdRequest](docs/UpdateWebhookEndpointByIdRequest.md)
424
482
  - [CoboWaas2.UtxoFeeBasePrice](docs/UtxoFeeBasePrice.md)
425
483
  - [CoboWaas2.UtxoFeeRate](docs/UtxoFeeRate.md)
484
+ - [CoboWaas2.Vasp](docs/Vasp.md)
426
485
  - [CoboWaas2.WalletInfo](docs/WalletInfo.md)
486
+ - [CoboWaas2.WalletInfoEventData](docs/WalletInfoEventData.md)
427
487
  - [CoboWaas2.WalletSubtype](docs/WalletSubtype.md)
428
488
  - [CoboWaas2.WalletType](docs/WalletType.md)
429
489
  - [CoboWaas2.WebhookEndpoint](docs/WebhookEndpoint.md)
package/dist/ApiClient.js CHANGED
@@ -6,8 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _superagent = _interopRequireDefault(require("superagent"));
8
8
  var _querystring = _interopRequireDefault(require("querystring"));
9
- var _ApiSigner = _interopRequireDefault(require("./crypto/ApiSigner"));
10
9
  var _Env = _interopRequireDefault(require("./Env"));
10
+ var _Ed25519Signer = _interopRequireDefault(require("./crypto/Ed25519Signer"));
11
+ var _Secp256k1Signer = _interopRequireDefault(require("./crypto/Secp256k1Signer"));
12
+ var CryptoJS = _interopRequireWildcard(require("crypto-js"));
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
16
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -47,6 +51,8 @@ var ApiClient = /*#__PURE__*/function () {
47
51
  function ApiClient() {
48
52
  var env = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _Env["default"].PROD;
49
53
  var privateKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
54
+ var curve_type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
55
+ var signer = arguments.length > 3 ? arguments[3] : undefined;
50
56
  _classCallCheck(this, ApiClient);
51
57
  /**
52
58
  * The base URL against which to resolve every API call's (relative) path.
@@ -54,7 +60,16 @@ var ApiClient = /*#__PURE__*/function () {
54
60
  * @default https://api.dev.cobo.com/v2
55
61
  */
56
62
  this.basePath = env.basePath;
57
- this.privateKey = privateKey;
63
+ if (privateKey) {
64
+ curve_type = curve_type || "ED25519";
65
+ if (curve_type === "ED25519") {
66
+ this.signer = new _Ed25519Signer["default"](privateKey);
67
+ } else if (curve_type === "SECP256k1") {
68
+ this.signer = new _Secp256k1Signer["default"](privateKey);
69
+ }
70
+ } else if (signer) {
71
+ this.signer = signer;
72
+ }
58
73
 
59
74
  /**
60
75
  * The authentication methods to be included for all API calls.
@@ -77,7 +92,7 @@ var ApiClient = /*#__PURE__*/function () {
77
92
  * @default {}
78
93
  */
79
94
  this.defaultHeaders = {
80
- 'User-Agent': 'cobo-waas2-js-sdk/1.6.0'
95
+ 'User-Agent': 'cobo-waas2-js-sdk/1.8.0'
81
96
  };
82
97
 
83
98
  /**
@@ -120,15 +135,42 @@ var ApiClient = /*#__PURE__*/function () {
120
135
  */
121
136
  this.plugins = null;
122
137
  }
138
+
139
+ /***
140
+ *
141
+ * @param env
142
+ */
123
143
  return _createClass(ApiClient, [{
124
144
  key: "setEnv",
125
145
  value: function setEnv(env) {
126
146
  this.basePath = env.basePath;
127
147
  }
148
+
149
+ /***
150
+ *
151
+ * @param privateKey
152
+ */
128
153
  }, {
129
154
  key: "setPrivateKey",
130
155
  value: function setPrivateKey(privateKey) {
131
- this.privateKey = privateKey;
156
+ var curveType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "ED25519";
157
+ if (curveType === "ED25519") {
158
+ this.signer = new _Ed25519Signer["default"](privateKey);
159
+ } else if (curveType === "SECP256K1") {
160
+ this.signer = new _Secp256k1Signer["default"](privateKey);
161
+ } else {
162
+ throw new Error('Invalid curve type' + curveType);
163
+ }
164
+ }
165
+
166
+ /***
167
+ *
168
+ * @param signer
169
+ */
170
+ }, {
171
+ key: "setSigner",
172
+ value: function setSigner(signer) {
173
+ this.signer = signer;
132
174
  }
133
175
 
134
176
  /**
@@ -441,8 +483,16 @@ var ApiClient = /*#__PURE__*/function () {
441
483
  }).map(function (k) {
442
484
  return k + '=' + encodeURIComponent(queryParams[k]).replace(/%20/g, "+");
443
485
  }).join('&');
444
- var signer = new _ApiSigner["default"](this.privateKey);
445
- request.set(signer.generateHeaders(new URL(url).pathname, httpMethod, bodyParam, queryStr));
486
+ var nonce = String(new Date().getTime());
487
+ var strToSign = [httpMethod, new URL(url).pathname, nonce, queryStr, bodyParam ? JSON.stringify(bodyParam) : ''].join('|');
488
+ console.log("strToSign:", strToSign);
489
+ var hash2String = CryptoJS.SHA256(CryptoJS.SHA256(strToSign)).toString(CryptoJS.enc.Hex);
490
+ var headers = {
491
+ 'BIZ-API-KEY': this.signer.getPublicKey(),
492
+ "BIZ-API-NONCE": nonce,
493
+ "BIZ-API-SIGNATURE": this.signer.sign(hash2String)
494
+ };
495
+ request.set(headers);
446
496
  if (this.plugins !== null) {
447
497
  for (var index in this.plugins) {
448
498
  if (this.plugins.hasOwnProperty(index)) {
@@ -43,13 +43,13 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
43
43
  /**
44
44
  * List address book entries
45
45
  * This operation retrieves a list of addresses from your address book.
46
- * @param {String} chain_id 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).
46
+ * @param {String} chain_id 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).
47
47
  * @param {Object} opts Optional parameters
48
48
  * @param {String} [address] The wallet address.
49
49
  * @param {String} [label] The address label.
50
50
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
51
- * @param {String} [before] 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.
52
- * @param {String} [after] 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.
51
+ * @param {String} [before] 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 `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned.
52
+ * @param {String} [after] 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 `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - 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.
53
53
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAddressBooks200Response} and HTTP response
54
54
  */
55
55
  return _createClass(AddressBooksApi, [{
@@ -85,13 +85,13 @@ var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
85
85
  /**
86
86
  * List address book entries
87
87
  * This operation retrieves a list of addresses from your address book.
88
- * @param {String} chain_id 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).
88
+ * @param {String} chain_id 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).
89
89
  * @param {Object} opts Optional parameters
90
90
  * @param {String} opts.address The wallet address.
91
91
  * @param {String} opts.label The address label.
92
92
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
93
- * @param {String} opts.before 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.
94
- * @param {String} opts.after 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.
93
+ * @param {String} opts.before 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 `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned.
94
+ * @param {String} opts.after 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 `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - 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.
95
95
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddressBooks200Response}
96
96
  */
97
97
  }, {
@@ -7,6 +7,8 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
9
9
  var _GetApiKeyInfo200Response = _interopRequireDefault(require("../model/GetApiKeyInfo200Response"));
10
+ var _ListCallbackMessages200Response = _interopRequireDefault(require("../model/ListCallbackMessages200Response"));
11
+ var _RetryCallbackMessage201Response = _interopRequireDefault(require("../model/RetryCallbackMessage201Response"));
10
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
13
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
14
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -75,5 +77,113 @@ var DevelopersApi = exports["default"] = /*#__PURE__*/function () {
75
77
  return response_and_data.data;
76
78
  });
77
79
  }
80
+
81
+ /**
82
+ * List all callback messages
83
+ * This operation retrieves all the callback messages in your organization. For more details about how to respond to callback messages, refer to [Callback messages](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
84
+ * @param {Object} opts Optional parameters
85
+ * @param {String} [callback_message_ids] A list of callback message IDs, separated by commas.
86
+ * @param {String} [request_ids] A list of request IDs, separated by commas. The request ID is provided by you and must be unique within your organization.
87
+ * @param {String} [transaction_ids] A list of transaction IDs, separated by commas.
88
+ * @param {String} [wallet_ids] A list of wallet IDs, separated by commas.
89
+ * @param {module:model/String} [status] The callback message status. Possible values include `Approved`, `Denied`, and `Failed`.
90
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
91
+ * @param {String} [before] 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 `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned.
92
+ * @param {String} [after] 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 `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - 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.
93
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListCallbackMessages200Response} and HTTP response
94
+ */
95
+ }, {
96
+ key: "listCallbackMessagesWithHttpInfo",
97
+ value: function listCallbackMessagesWithHttpInfo(opts) {
98
+ opts = opts || {};
99
+ var postBody = null;
100
+ if (postBody && postBody.toJSON) {
101
+ postBody = postBody.toJSON();
102
+ }
103
+ var pathParams = {};
104
+ var queryParams = {
105
+ 'callback_message_ids': opts['callback_message_ids'],
106
+ 'request_ids': opts['request_ids'],
107
+ 'transaction_ids': opts['transaction_ids'],
108
+ 'wallet_ids': opts['wallet_ids'],
109
+ 'status': opts['status'],
110
+ 'limit': opts['limit'],
111
+ 'before': opts['before'],
112
+ 'after': opts['after']
113
+ };
114
+ var headerParams = {};
115
+ var formParams = {};
116
+ var authNames = ['CoboAuth'];
117
+ var contentTypes = [];
118
+ var accepts = ['application/json'];
119
+ var returnType = _ListCallbackMessages200Response["default"];
120
+ return this.apiClient.callApi('/developers/callback_messages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
121
+ }
122
+
123
+ /**
124
+ * List all callback messages
125
+ * This operation retrieves all the callback messages in your organization. For more details about how to respond to callback messages, refer to [Callback messages](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
126
+ * @param {Object} opts Optional parameters
127
+ * @param {String} opts.callback_message_ids A list of callback message IDs, separated by commas.
128
+ * @param {String} opts.request_ids A list of request IDs, separated by commas. The request ID is provided by you and must be unique within your organization.
129
+ * @param {String} opts.transaction_ids A list of transaction IDs, separated by commas.
130
+ * @param {String} opts.wallet_ids A list of wallet IDs, separated by commas.
131
+ * @param {module:model/String} opts.status The callback message status. Possible values include `Approved`, `Denied`, and `Failed`.
132
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
133
+ * @param {String} opts.before 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 `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned.
134
+ * @param {String} opts.after 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 `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - 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.
135
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListCallbackMessages200Response}
136
+ */
137
+ }, {
138
+ key: "listCallbackMessages",
139
+ value: function listCallbackMessages(opts) {
140
+ return this.listCallbackMessagesWithHttpInfo(opts).then(function (response_and_data) {
141
+ return response_and_data.data;
142
+ });
143
+ }
144
+
145
+ /**
146
+ * Retry callback message
147
+ * This operation resends a callback message that failed previously. If your callback endpoint doesn't respond as expected, the WaaS service will retry sending the callback message up to 30 times. After that, the callback message status will be `Failed`. Use this operation to resend the message. For more details, refer to [Webhooks and Callbacks](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
148
+ * @param {String} message_id The callback message ID.
149
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetryCallbackMessage201Response} and HTTP response
150
+ */
151
+ }, {
152
+ key: "retryCallbackMessageWithHttpInfo",
153
+ value: function retryCallbackMessageWithHttpInfo(message_id) {
154
+ var postBody = null;
155
+ if (postBody && postBody.toJSON) {
156
+ postBody = postBody.toJSON();
157
+ }
158
+ // verify the required parameter 'message_id' is set
159
+ if (message_id === undefined || message_id === null) {
160
+ throw new Error("Missing the required parameter 'message_id' when calling retryCallbackMessage");
161
+ }
162
+ var pathParams = {
163
+ 'message_id': message_id
164
+ };
165
+ var queryParams = {};
166
+ var headerParams = {};
167
+ var formParams = {};
168
+ var authNames = ['CoboAuth'];
169
+ var contentTypes = [];
170
+ var accepts = ['application/json'];
171
+ var returnType = _RetryCallbackMessage201Response["default"];
172
+ return this.apiClient.callApi('/developers/callback_messages/{message_id}/retry', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
173
+ }
174
+
175
+ /**
176
+ * Retry callback message
177
+ * This operation resends a callback message that failed previously. If your callback endpoint doesn't respond as expected, the WaaS service will retry sending the callback message up to 30 times. After that, the callback message status will be `Failed`. Use this operation to resend the message. For more details, refer to [Webhooks and Callbacks](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
178
+ * @param {String} message_id The callback message ID.
179
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetryCallbackMessage201Response}
180
+ */
181
+ }, {
182
+ key: "retryCallbackMessage",
183
+ value: function retryCallbackMessage(message_id) {
184
+ return this.retryCallbackMessageWithHttpInfo(message_id).then(function (response_and_data) {
185
+ return response_and_data.data;
186
+ });
187
+ }
78
188
  }]);
79
189
  }();