@cobo/cobo-waas2 1.3.0 → 1.5.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 (128) hide show
  1. package/README.md +22 -10
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +105 -0
  4. package/dist/api/DevelopersWebhooksApi.js +43 -0
  5. package/dist/api/OAuthApi.js +18 -18
  6. package/dist/api/TransactionsApi.js +14 -14
  7. package/dist/api/WalletsApi.js +4 -4
  8. package/dist/api/WalletsExchangeWalletApi.js +4 -4
  9. package/dist/api/WalletsMPCWalletsApi.js +10 -10
  10. package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
  11. package/dist/index.js +108 -31
  12. package/dist/model/AddressBook.js +217 -0
  13. package/dist/model/AddressTransferDestination.js +2 -2
  14. package/dist/model/ApiLogDetails.js +238 -0
  15. package/dist/model/ApiLogSummary.js +161 -0
  16. package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
  17. package/dist/model/CoboSafeDelegate.js +2 -2
  18. package/dist/model/ContractCallSource.js +0 -6
  19. package/dist/model/CreateKeyShareHolder.js +2 -2
  20. package/dist/model/ErrorResponse.js +2 -2
  21. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  22. package/dist/model/EstimateFeeParams.js +2 -2
  23. package/dist/model/EstimateTransferFeeParams.js +2 -2
  24. package/dist/model/EstimatedFee.js +1 -1
  25. package/dist/model/EstimatedFixedFee.js +1 -1
  26. package/dist/model/ExchangeId.js +10 -0
  27. package/dist/model/ExtendedTokenInfo.js +17 -4
  28. package/dist/model/GetToken200Response.js +4 -4
  29. package/dist/model/KeyShareHolder.js +1 -1
  30. package/dist/model/ListAddressBooks200Response.js +123 -0
  31. package/dist/model/MPCDelegate.js +4 -4
  32. package/dist/model/MessageSignParams.js +1 -1
  33. package/dist/model/MpcContractCallSource.js +0 -9
  34. package/dist/model/{RefreshToken200Response.js → RefreshToken201Response.js} +25 -25
  35. package/dist/model/RefreshTokenRequest.js +2 -2
  36. package/dist/model/SafeWalletDelegates.js +210 -0
  37. package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
  38. package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
  39. package/dist/model/TSSRequestStatus.js +5 -0
  40. package/dist/model/TokenAssetModelType.js +61 -0
  41. package/dist/model/TokenBalanceBalance.js +6 -6
  42. package/dist/model/TokenInfo.js +11 -2
  43. package/dist/model/Transaction.js +1 -1
  44. package/dist/model/TransactionDestination.js +50 -10
  45. package/dist/model/TransactionDestinationType.js +5 -0
  46. package/dist/model/TransactionDetail.js +2 -2
  47. package/dist/model/TransactionDetails.js +2 -2
  48. package/dist/model/TransactionEvmCalldataInfo.js +177 -0
  49. package/dist/model/TransactionEvmContractDestination.js +16 -0
  50. package/dist/model/TransactionEvmContractMethod.js +136 -0
  51. package/dist/model/TransactionRawMessageSignDestination.js +120 -0
  52. package/dist/model/TransactionSignatureResult.js +1 -1
  53. package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
  54. package/dist/model/TransactionStatus.js +0 -5
  55. package/dist/model/TransactionSubStatus.js +40 -5
  56. package/dist/model/TransactionTokeApproval.js +17 -4
  57. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  58. package/dist/model/TransactionWebhookEventData.js +2 -2
  59. package/dist/model/TransferDestination.js +2 -2
  60. package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
  61. package/dist/model/{WalletBalanceSnapshot.js → TriggerTestWebhookEventRequest.js} +31 -36
  62. package/dist/model/WebhookEventData.js +1 -1
  63. package/docs/AddressBook.md +17 -0
  64. package/docs/AddressBooksApi.md +71 -0
  65. package/docs/AddressTransferDestination.md +2 -2
  66. package/docs/ApiLogDetails.md +18 -0
  67. package/docs/ApiLogSummary.md +13 -0
  68. package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
  69. package/docs/CoboSafeDelegate.md +2 -2
  70. package/docs/ContractCallSource.md +0 -1
  71. package/docs/CreateKeyShareHolder.md +2 -2
  72. package/docs/DevelopersWebhooksApi.md +53 -0
  73. package/docs/ErrorResponse.md +1 -1
  74. package/docs/EstimateContractCallFeeParams.md +1 -1
  75. package/docs/EstimateFeeParams.md +1 -1
  76. package/docs/EstimateTransferFeeParams.md +1 -1
  77. package/docs/EstimatedFee.md +1 -1
  78. package/docs/EstimatedFixedFee.md +1 -1
  79. package/docs/ExchangeId.md +4 -0
  80. package/docs/ExtendedTokenInfo.md +3 -2
  81. package/docs/GetToken200Response.md +4 -4
  82. package/docs/KeyShareHolder.md +1 -1
  83. package/docs/ListAddressBooks200Response.md +10 -0
  84. package/docs/MPCDelegate.md +2 -2
  85. package/docs/MessageSignParams.md +1 -1
  86. package/docs/MpcContractCallSource.md +0 -1
  87. package/docs/OAuthApi.md +11 -11
  88. package/docs/RefreshToken201Response.md +13 -0
  89. package/docs/RefreshTokenRequest.md +2 -2
  90. package/docs/SafeWalletDelegates.md +14 -0
  91. package/docs/SafeWalletDelegatesContractCall.md +12 -0
  92. package/docs/SafeWalletDelegatesTransfer.md +12 -0
  93. package/docs/TSSRequestStatus.md +2 -0
  94. package/docs/TokenAssetModelType.md +12 -0
  95. package/docs/TokenBalanceBalance.md +4 -4
  96. package/docs/TokenInfo.md +3 -2
  97. package/docs/Transaction.md +1 -1
  98. package/docs/TransactionDestination.md +4 -2
  99. package/docs/TransactionDestinationType.md +2 -0
  100. package/docs/TransactionDetail.md +1 -1
  101. package/docs/TransactionDetails.md +1 -1
  102. package/docs/TransactionEvmCalldataInfo.md +16 -0
  103. package/docs/TransactionEvmContractDestination.md +1 -0
  104. package/docs/TransactionEvmContractMethod.md +13 -0
  105. package/docs/TransactionRawMessageSignDestination.md +10 -0
  106. package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
  107. package/docs/TransactionSource.md +1 -1
  108. package/docs/TransactionStatus.md +0 -2
  109. package/docs/TransactionSubStatus.md +16 -2
  110. package/docs/TransactionTokeApproval.md +3 -2
  111. package/docs/TransactionTransferToAddressDestination.md +2 -2
  112. package/docs/TransactionWebhookEventData.md +1 -1
  113. package/docs/TransactionsApi.md +8 -8
  114. package/docs/TransferDestination.md +2 -2
  115. package/docs/TriggerTestWebhookEvent201Response.md +9 -0
  116. package/docs/TriggerTestWebhookEventRequest.md +10 -0
  117. package/docs/WalletsApi.md +2 -2
  118. package/docs/WalletsExchangeWalletApi.md +2 -2
  119. package/docs/WalletsMPCWalletsApi.md +5 -5
  120. package/docs/WalletsSmartContractWalletsApi.md +63 -0
  121. package/docs/WebhookEventData.md +1 -1
  122. package/package.json +2 -2
  123. package/dist/model/BookkeepingRecord.js +0 -243
  124. package/docs/BookkeepingRecord.md +0 -19
  125. package/docs/BookkeepingSummary.md +0 -12
  126. package/docs/RefreshToken200Response.md +0 -13
  127. package/docs/WalletBalanceSnapshot.md +0 -10
  128. package/docs/WalletBalanceSnapshotRecord.md +0 -13
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _WebhookEventType = _interopRequireDefault(require("./WebhookEventType"));
8
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
10
  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); }
10
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -25,19 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
26
  *
26
27
  */
27
28
  /**
28
- * The WalletBalanceSnapshot model module.
29
- * @module model/WalletBalanceSnapshot
29
+ * The TriggerTestWebhookEventRequest model module.
30
+ * @module model/TriggerTestWebhookEventRequest
30
31
  */
31
- var WalletBalanceSnapshot = /*#__PURE__*/function () {
32
+ var TriggerTestWebhookEventRequest = /*#__PURE__*/function () {
32
33
  /**
33
- * Constructs a new <code>WalletBalanceSnapshot</code>.
34
- * The snapshot information.
35
- * @alias module:model/WalletBalanceSnapshot
36
- * @param snapshot_id {Number} The snapshot ID.
34
+ * Constructs a new <code>TriggerTestWebhookEventRequest</code>.
35
+ * @alias module:model/TriggerTestWebhookEventRequest
36
+ * @param event_type {module:model/WebhookEventType}
37
37
  */
38
- function WalletBalanceSnapshot(snapshot_id) {
39
- _classCallCheck(this, WalletBalanceSnapshot);
40
- WalletBalanceSnapshot.initialize(this, snapshot_id);
38
+ function TriggerTestWebhookEventRequest(event_type) {
39
+ _classCallCheck(this, TriggerTestWebhookEventRequest);
40
+ TriggerTestWebhookEventRequest.initialize(this, event_type);
41
41
  }
42
42
 
43
43
  /**
@@ -45,44 +45,44 @@ var WalletBalanceSnapshot = /*#__PURE__*/function () {
45
45
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
46
  * Only for internal use.
47
47
  */
48
- return _createClass(WalletBalanceSnapshot, null, [{
48
+ return _createClass(TriggerTestWebhookEventRequest, null, [{
49
49
  key: "initialize",
50
- value: function initialize(obj, snapshot_id) {
51
- obj['snapshot_id'] = snapshot_id;
50
+ value: function initialize(obj, event_type) {
51
+ obj['event_type'] = event_type;
52
52
  }
53
53
 
54
54
  /**
55
- * Constructs a <code>WalletBalanceSnapshot</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Constructs a <code>TriggerTestWebhookEventRequest</code> from a plain JavaScript object, optionally creating a new instance.
56
56
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
57
  * @param {Object} data The plain JavaScript object bearing properties of interest.
58
- * @param {module:model/WalletBalanceSnapshot} obj Optional instance to populate.
59
- * @return {module:model/WalletBalanceSnapshot} The populated <code>WalletBalanceSnapshot</code> instance.
58
+ * @param {module:model/TriggerTestWebhookEventRequest} obj Optional instance to populate.
59
+ * @return {module:model/TriggerTestWebhookEventRequest} The populated <code>TriggerTestWebhookEventRequest</code> instance.
60
60
  */
61
61
  }, {
62
62
  key: "constructFromObject",
63
63
  value: function constructFromObject(data, obj) {
64
64
  if (data) {
65
- obj = obj || new WalletBalanceSnapshot();
66
- if (data.hasOwnProperty('snapshot_id')) {
67
- obj['snapshot_id'] = _ApiClient["default"].convertToType(data['snapshot_id'], 'Number');
65
+ obj = obj || new TriggerTestWebhookEventRequest();
66
+ if (data.hasOwnProperty('event_type')) {
67
+ obj['event_type'] = _WebhookEventType["default"].constructFromObject(data['event_type']);
68
68
  }
69
- if (data.hasOwnProperty('snapshot_name')) {
70
- obj['snapshot_name'] = _ApiClient["default"].convertToType(data['snapshot_name'], 'String');
69
+ if (data.hasOwnProperty('override_data')) {
70
+ obj['override_data'] = _ApiClient["default"].convertToType(data['override_data'], Object);
71
71
  }
72
72
  }
73
73
  return obj;
74
74
  }
75
75
 
76
76
  /**
77
- * Validates the JSON data with respect to <code>WalletBalanceSnapshot</code>.
77
+ * Validates the JSON data with respect to <code>TriggerTestWebhookEventRequest</code>.
78
78
  * @param {Object} data The plain JavaScript object bearing properties of interest.
79
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>WalletBalanceSnapshot</code>.
79
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TriggerTestWebhookEventRequest</code>.
80
80
  */
81
81
  }, {
82
82
  key: "validateJSON",
83
83
  value: function validateJSON(data) {
84
84
  // check to make sure all required properties are present in the JSON string
85
- var _iterator = _createForOfIteratorHelper(WalletBalanceSnapshot.RequiredProperties),
85
+ var _iterator = _createForOfIteratorHelper(TriggerTestWebhookEventRequest.RequiredProperties),
86
86
  _step;
87
87
  try {
88
88
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -91,30 +91,25 @@ var WalletBalanceSnapshot = /*#__PURE__*/function () {
91
91
  throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
92
92
  }
93
93
  }
94
- // ensure the json data is a string
95
94
  } catch (err) {
96
95
  _iterator.e(err);
97
96
  } finally {
98
97
  _iterator.f();
99
98
  }
100
- if (data['snapshot_name'] && !(typeof data['snapshot_name'] === 'string' || data['snapshot_name'] instanceof String)) {
101
- throw new Error("Expected the field `snapshot_name` to be a primitive type in the JSON string but got " + data['snapshot_name']);
102
- }
103
99
  return true;
104
100
  }
105
101
  }]);
106
102
  }();
107
- WalletBalanceSnapshot.RequiredProperties = ["snapshot_id"];
103
+ TriggerTestWebhookEventRequest.RequiredProperties = ["event_type"];
108
104
 
109
105
  /**
110
- * The snapshot ID.
111
- * @member {Number} snapshot_id
106
+ * @member {module:model/WebhookEventType} event_type
112
107
  */
113
- WalletBalanceSnapshot.prototype['snapshot_id'] = undefined;
108
+ TriggerTestWebhookEventRequest.prototype['event_type'] = undefined;
114
109
 
115
110
  /**
116
- * The snapshot name.
117
- * @member {String} snapshot_name
111
+ * An object for customization of the webhook event payload. You only need to include the fields you want to customize. The provided fields must match the webhook event data structure, depending on the specified event type. For a complete introduction of the webhook event data structure, refer to the `data.data` property in the response of [List all webhook events](/v2/api-references/developers--webhooks/list-all-webhook-events). If this property is not provided, a default payload will be returned.
112
+ * @member {Object} override_data
118
113
  */
119
- WalletBalanceSnapshot.prototype['snapshot_name'] = undefined;
120
- var _default = exports["default"] = WalletBalanceSnapshot;
114
+ TriggerTestWebhookEventRequest.prototype['override_data'] = undefined;
115
+ var _default = exports["default"] = TriggerTestWebhookEventRequest;
@@ -329,7 +329,7 @@ WebhookEventData.prototype['category'] = undefined;
329
329
  WebhookEventData.prototype['description'] = undefined;
330
330
 
331
331
  /**
332
- * Whether the transaction is a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction is a Loop transfer. - `false`: The transaction is not a Loop transfer.
332
+ * Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
333
333
  * @member {Boolean} is_loop
334
334
  */
335
335
  WebhookEventData.prototype['is_loop'] = undefined;
@@ -0,0 +1,17 @@
1
+ # CoboWaas2.AddressBook
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **org_id** | **String** | The organization ID. |
8
+ **entry_id** | **String** | The entry ID. |
9
+ **address** | **String** | The wallet address. |
10
+ **memo** | **String** | The memo. | [optional]
11
+ **wallet_name** | **String** | The wallet name. | [optional]
12
+ **wallet_type** | [**WalletType**](WalletType.md) | | [optional]
13
+ **label** | **String** | The address label. |
14
+ **chain_ids** | **[String]** | A list of chain IDs. | [optional]
15
+ **email** | **String** | The email of the address owner. | [optional]
16
+
17
+
@@ -0,0 +1,71 @@
1
+ # CoboWaas2.AddressBooksApi
2
+
3
+ All URIs are relative to *https://api.dev.cobo.com/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**listAddressBooks**](AddressBooksApi.md#listAddressBooks) | **GET** /address_books | List address book entries
8
+
9
+
10
+
11
+ ## listAddressBooks
12
+
13
+ > ListAddressBooks200Response listAddressBooks(chain_id, opts)
14
+
15
+ List address book entries
16
+
17
+ This operation retrieves a list of addresses from your address book.
18
+
19
+ ### Example
20
+
21
+ ```javascript
22
+ const CoboWaas2 = require('@cobo/cobo-waas2');
23
+ // Initialize the API client
24
+ const apiClient = CoboWaas2.ApiClient.instance
25
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
26
+ apiClient.setEnv(CoboWaas2.Env.DEV);
27
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
28
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
29
+ // Call the API
30
+ const apiInstance = new CoboWaas2.AddressBooksApi();
31
+ const chain_id = "ETH";
32
+ const opts = {
33
+ 'address': "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
34
+ 'label': "test",
35
+ 'limit': 10,
36
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
37
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
38
+ };
39
+ apiInstance.listAddressBooks(chain_id, opts).then((data) => {
40
+ console.log('API called successfully. Returned data: ' + data);
41
+ }, (error) => {
42
+ console.error(error);
43
+ });
44
+
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+
50
+ Name | Type | Description | Notes
51
+ ------------- | ------------- | ------------- | -------------
52
+ **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). |
53
+ **address** | **String**| The wallet address. | [optional]
54
+ **label** | **String**| The address label. | [optional]
55
+ **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
56
+ **before** | **String**| An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify &#x60;before&#x60; as &#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1&#x60;, the request will retrieve a list of data objects that end before the object with the object ID &#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1&#x60;. You can set this parameter to the value of &#x60;pagination.before&#x60; in the response of the previous request. - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. - If you set &#x60;before&#x60; to &#x60;infinity&#x60;, the last page of data is returned. | [optional]
57
+ **after** | **String**| An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify &#x60;after&#x60; as &#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;, the request will retrieve a list of data objects that start after the object with the object ID &#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;. You can set this parameter to the value of &#x60;pagination.after&#x60; in the response of the previous request. - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. | [optional]
58
+
59
+ ### Return type
60
+
61
+ [**ListAddressBooks200Response**](ListAddressBooks200Response.md)
62
+
63
+ ### Authorization
64
+
65
+ [CoboAuth](../README.md#CoboAuth)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: Not defined
70
+ - **Accept**: application/json
71
+
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
9
9
  **utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
10
10
  **change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
11
- **force_internal** | **Boolean** | Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop&#39;s website](https://loop.top/). - &#x60;true&#x60;: The transaction request must be executed as a Loop transfer. - &#x60;false&#x60;: The transaction request may not be executed as a Loop transfer. &lt;Note&gt;Please do not set both &#x60;force_internal&#x60; and &#x60;force_internal&#x60; as &#x60;true&#x60;.&lt;/Note&gt; | [optional]
12
- **force_external** | **Boolean** | Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop&#39;s website](https://loop.top/). - &#x60;true&#x60;: The transaction request must not be executed as a Loop transfer. - &#x60;false&#x60;: The transaction request can be executed as a Loop transfer. &lt;Note&gt;Please do not set both &#x60;force_internal&#x60; and &#x60;force_internal&#x60; as &#x60;true&#x60;.&lt;/Note&gt; | [optional]
11
+ **force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_internal&#x60; as &#x60;true&#x60;. | [optional]
12
+ **force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must not be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request can be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_internal&#x60; as &#x60;true&#x60;. | [optional]
13
13
 
14
14
 
@@ -0,0 +1,18 @@
1
+ # CoboWaas2.ApiLogDetails
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **log_id** | **String** | A unique identifier for the API log, used for tracking. |
8
+ **api_method** | **String** | The HTTP method used for the API request. |
9
+ **api_endpoint** | **String** | The endpoint of the API request. |
10
+ **status_code** | **Number** | The HTTP status code returned by the API request. |
11
+ **ip_address** | **String** | The client&#39;s IP address that made the API request. |
12
+ **request_timestamp** | **Number** | The time when the API request was created, in Unix timestamp format, measured in milliseconds. |
13
+ **api_key** | **String** | The API key used to call the API. For more details, refer to [API key](/v2/guides/overview/cobo-auth#api-key). |
14
+ **response_body** | **String** | The response body of the API request. |
15
+ **query_params** | **String** | The query parameters of the API request. |
16
+ **request_body** | **String** | The request body of the API request. |
17
+
18
+
@@ -0,0 +1,13 @@
1
+ # CoboWaas2.ApiLogSummary
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **log_id** | **String** | A unique identifier for the API log, used for tracking. | [optional]
8
+ **api_method** | **String** | The HTTP method used for the API request. |
9
+ **api_endpoint** | **String** | The endpoint of the API request. |
10
+ **request_timestamp** | **Number** | The time when the API request was created, in Unix timestamp format, measured in milliseconds. |
11
+ **status_code** | **Number** | The HTTP status code returned by the API request. |
12
+
13
+
@@ -5,6 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **address** | **String** | The wallet address. | [optional]
8
- **is_loop** | **Boolean** | Whether the transaction from the given source to the given destination address can be executed as a Loop transfer. - &#x60;true&#x60;: The transaction can be executed as a Loop transfer. - &#x60;false&#x60;: The transaction cannot be executed as a Loop transfer. | [optional]
8
+ **is_loop** | **Boolean** | Whether the transaction from the given source to the given destination address can be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction can be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction cannot be executed as a Cobo Loop transfer. | [optional]
9
9
 
10
10
 
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **delegate_type** | [**CoboSafeDelegateType**](CoboSafeDelegateType.md) | |
8
- **wallet_id** | **String** | The wallet ID of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}). |
9
- **address** | **String** | The wallet address of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}). |
8
+ **wallet_id** | **String** | The wallet ID of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}). |
9
+ **address** | **String** | The wallet address of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}). |
10
10
 
11
11
 
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
7
7
  **source_type** | [**ContractCallSourceType**](ContractCallSourceType.md) | |
8
8
  **wallet_id** | **String** | The wallet ID. |
9
9
  **address** | **String** | The wallet address. |
10
- **nonce** | **Number** | The transaction nonce. | [optional]
11
10
  **delegate** | [**CoboSafeDelegate**](CoboSafeDelegate.md) | |
12
11
 
13
12
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | Key share holder&#39;s name. | [optional]
8
8
  **type** | [**KeyShareHolderType**](KeyShareHolderType.md) | | [optional]
9
- **tss_node_id** | **String** | Key share holder&#39;s TSS Node ID. | [optional]
10
- **signer** | **Boolean** | Whether the key share holder&#39;s TSS Node is a designated transaction signer. - &#x60;true&#x60;: The TSS Node is a designated transaction signer. - &#x60;false&#x60;: The TSS Node is not a designated transaction signer. | [optional]
9
+ **tss_node_id** | **String** | Key share holder&#39;s TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or API co-signer. See the \&quot;Primary Purposes\&quot; row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group). | [optional]
10
+ **signer** | **Boolean** | Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - &#x60;true&#x60;: The key share holder is a designated transaction signer. - &#x60;false&#x60;: The key share holder is not a designated transaction signer. | [optional]
11
11
 
12
12
 
@@ -12,6 +12,7 @@ Method | HTTP request | Description
12
12
  [**listWebhookEventLogs**](DevelopersWebhooksApi.md#listWebhookEventLogs) | **GET** /webhooks/endpoints/{endpoint_id}/events/{event_id}/logs | List webhook event logs
13
13
  [**listWebhookEvents**](DevelopersWebhooksApi.md#listWebhookEvents) | **GET** /webhooks/endpoints/{endpoint_id}/events | List all webhook events
14
14
  [**retryWebhookEventById**](DevelopersWebhooksApi.md#retryWebhookEventById) | **POST** /webhooks/endpoints/{endpoint_id}/events/{event_id}/retry | Retry event
15
+ [**triggerTestWebhookEvent**](DevelopersWebhooksApi.md#triggerTestWebhookEvent) | **POST** /webhooks/events/trigger | Trigger test event
15
16
  [**updateWebhookEndpointById**](DevelopersWebhooksApi.md#updateWebhookEndpointById) | **PUT** /webhooks/endpoints/{endpoint_id} | Update webhook endpoint
16
17
 
17
18
 
@@ -450,6 +451,58 @@ Name | Type | Description | Notes
450
451
  - **Accept**: application/json
451
452
 
452
453
 
454
+ ## triggerTestWebhookEvent
455
+
456
+ > TriggerTestWebhookEvent201Response triggerTestWebhookEvent(opts)
457
+
458
+ Trigger test event
459
+
460
+ This operation tests the functionality of your webhook endpoint by triggering a test webhook event. You only need to provide the event type. By default, the payload contains dummy data with no impact on your real business transactions or activities. You can optionally provide the &#x60;override_data&#x60; property to customize the payload.
461
+
462
+ ### Example
463
+
464
+ ```javascript
465
+ const CoboWaas2 = require('@cobo/cobo-waas2');
466
+ // Initialize the API client
467
+ const apiClient = CoboWaas2.ApiClient.instance
468
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
469
+ apiClient.setEnv(CoboWaas2.Env.DEV);
470
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
471
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
472
+ // Call the API
473
+ const apiInstance = new CoboWaas2.DevelopersWebhooksApi();
474
+ const opts = {
475
+ 'TriggerTestWebhookEventRequest': new CoboWaas2.TriggerTestWebhookEventRequest()
476
+ };
477
+ apiInstance.triggerTestWebhookEvent(opts).then((data) => {
478
+ console.log('API called successfully. Returned data: ' + data);
479
+ }, (error) => {
480
+ console.error(error);
481
+ });
482
+
483
+ ```
484
+
485
+ ### Parameters
486
+
487
+
488
+ Name | Type | Description | Notes
489
+ ------------- | ------------- | ------------- | -------------
490
+ **TriggerTestWebhookEventRequest** | [**TriggerTestWebhookEventRequest**](TriggerTestWebhookEventRequest.md)| The request body used to trigger a test webhook event. | [optional]
491
+
492
+ ### Return type
493
+
494
+ [**TriggerTestWebhookEvent201Response**](TriggerTestWebhookEvent201Response.md)
495
+
496
+ ### Authorization
497
+
498
+ [CoboAuth](../README.md#CoboAuth)
499
+
500
+ ### HTTP request headers
501
+
502
+ - **Content-Type**: application/json
503
+ - **Accept**: application/json
504
+
505
+
453
506
  ## updateWebhookEndpointById
454
507
 
455
508
  > WebhookEndpoint updateWebhookEndpointById(endpoint_id, opts)
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **error_code** | **Number** | The error code. |
7
+ **error_code** | **Number** | The error code. Refer to [Error codes and status codes](/v2/api-references/error-codes) for more details. |
8
8
  **error_message** | **String** | The error description. |
9
9
  **error_id** | **String** | The error log ID. You can provide the error ID when submitting a ticket to help Cobo to locate the issue. |
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **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. |
7
+ **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. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
8
8
  **request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
9
9
  **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). |
10
10
  **source** | [**ContractCallSource**](ContractCallSource.md) | |
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **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. |
7
+ **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. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
8
8
  **request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
9
9
  **source** | [**ContractCallSource**](ContractCallSource.md) | |
10
10
  **token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **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. |
7
+ **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. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
8
8
  **request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
9
9
  **source** | [**TransferSource**](TransferSource.md) | |
10
10
  **token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **fee_type** | [**FeeType**](FeeType.md) | |
8
8
  **token_id** | **String** | The token ID of the transaction fee. |
9
- **is_loop** | **Boolean** | Whether the transaction can be executed as 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]
9
+ **is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction was executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction was not executed as a Cobo Loop transfer. | [optional]
10
10
  **fee_amount** | **String** | The fee that you need to pay for the transaction. |
11
11
  **slow** | [**EstimatedUtxoFeeSlow**](EstimatedUtxoFeeSlow.md) | | [optional]
12
12
  **recommended** | [**EstimatedUtxoFeeSlow**](EstimatedUtxoFeeSlow.md) | |
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
7
7
  **fee_amount** | **String** | The fee that you need to pay for the transaction. |
8
8
  **fee_type** | [**FeeType**](FeeType.md) | |
9
9
  **token_id** | **String** | The token ID of the transaction fee. |
10
- **is_loop** | **Boolean** | Whether the transaction can be executed as 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]
10
+ **is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction was executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction was not executed as a Cobo Loop transfer. | [optional]
11
11
 
12
12
 
@@ -15,6 +15,10 @@
15
15
 
16
16
  * `bitget` (value: `"bitget"`)
17
17
 
18
+ * `bitmart` (value: `"bitmart"`)
19
+
20
+ * `bitfinex` (value: `"bitfinex"`)
21
+
18
22
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
19
23
 
20
24
 
@@ -15,7 +15,8 @@ Name | Type | Description | Notes
15
15
  **fee_token_id** | **String** | The fee token ID. A fee token is the token with which you pay transaction fees. | [optional]
16
16
  **can_deposit** | **Boolean** | Whether the token can be deposited. - &#x60;true&#x60;: The token can be deposited. - &#x60;false&#x60;: The token cannot be deposited. | [optional] [default to false]
17
17
  **can_withdraw** | **Boolean** | Whether the token can be withdrawn. - &#x60;true&#x60;: The token can be withdrawn. - &#x60;false&#x60;: The token cannot be withdrawn. | [optional] [default to false]
18
- **dust_threshold** | **String** | The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Loop transfers](https://loop.top/) do not have this limitation. | [optional]
19
- **custodial_minimum_deposit_threshold** | **String** | The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Loop transfers](https://loop.top/) do not have this limitation. | [optional]
18
+ **dust_threshold** | **String** | The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfers do not have this limitation. | [optional]
19
+ **custodial_minimum_deposit_threshold** | **String** | The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop)transfers do not have this limitation. | [optional]
20
+ **asset_model_type** | [**TokenAssetModelType**](TokenAssetModelType.md) | | [optional]
20
21
 
21
22
 
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **access_token** | **String** | The access token. | [optional]
7
+ **access_token** | **String** | The Org Access Token. | [optional]
8
8
  **token_type** | **String** | The type of the tokens, which is Bearer. | [optional]
9
- **scope** | **String** | The scope of the access token to limit the app&#39;s access to the organization&#39;s resources. **Note**: Currently this property value is empty. The scope of the access token is based on the permissions granted when the app user installs the app. | [optional]
10
- **expires_in** | **Number** | The time in seconds in which the access token expires. | [optional]
11
- **refresh_token** | **String** | The refresh token, used to obtain a new access token when the current access token expires. | [optional]
9
+ **scope** | **String** | The scope of the Org Access Token to limit the app&#39;s access to the organization&#39;s resources. **Note**: Currently this property value is empty. The scope of the Org Access Token is based on the permissions granted when the app user installs the app. | [optional]
10
+ **expires_in** | **Number** | The time in seconds in which the Org Access Token expires. | [optional]
11
+ **refresh_token** | **String** | The Refresh Token, used to obtain a new Org Access Token when the current Org Access Token expires. The expiration time for Refresh Tokens is currently set to 30 days and is subject to change. | [optional]
12
12
 
13
13
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **type** | [**KeyShareHolderType**](KeyShareHolderType.md) | | [optional]
9
9
  **tss_node_id** | **String** | The key share holder&#39;s TSS Node ID. | [optional]
10
10
  **online** | **Boolean** | Whether the key share holder&#39;s TSS Node is online. - &#x60;true&#x60;: The TSS Node is online. - &#x60;false&#x60;: The TSS Node is offline. | [optional]
11
- **signer** | **Boolean** | Whether the key share holder&#39;s TSS Node is a designated transaction signer. - &#x60;true&#x60;: The TSS Node is a designated transaction signer. - &#x60;false&#x60;: The TSS Node is not a designated transaction signer. | [optional]
11
+ **signer** | **Boolean** | Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - &#x60;true&#x60;: The key share holder is a designated transaction signer. - &#x60;false&#x60;: The key share holder is not a designated transaction signer. | [optional]
12
12
  **status** | [**KeyShareHolderStatus**](KeyShareHolderStatus.md) | | [optional]
13
13
  **account_id** | **String** | The key share holder&#39;s Cobo Portal account ID. | [optional]
14
14
 
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.ListAddressBooks200Response
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**[AddressBook]**](AddressBook.md) | | [optional]
8
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
9
+
10
+
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **delegate_type** | [**CoboSafeDelegateType**](CoboSafeDelegateType.md) | |
8
- **wallet_id** | **String** | The wallet ID of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}). |
9
- **address** | **String** | The wallet address of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}). |
8
+ **wallet_id** | **String** | The wallet ID of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}). |
9
+ **address** | **String** | The wallet address of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}). |
10
10
 
11
11
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **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). |
9
9
  **source** | [**MessageSignSource**](MessageSignSource.md) | |
10
10
  **destination** | [**MessageSignDestination**](MessageSignDestination.md) | |
11
- **description** | **String** | The description of the message sign transaction. | [optional]
11
+ **description** | **String** | The description of the message signing transaction. | [optional]
12
12
  **category_names** | **[String]** | The custom category for you to identify your transactions. | [optional]
13
13
 
14
14
 
@@ -7,6 +7,5 @@ Name | Type | Description | Notes
7
7
  **source_type** | [**ContractCallSourceType**](ContractCallSourceType.md) | |
8
8
  **wallet_id** | **String** | The wallet ID. |
9
9
  **address** | **String** | The wallet address. |
10
- **nonce** | **Number** | The transaction nonce. | [optional]
11
10
 
12
11