@cobo/cobo-waas2 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/README.md +16 -3
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/OAuthApi.js +16 -15
  4. package/dist/api/TransactionsApi.js +18 -18
  5. package/dist/api/WalletsApi.js +123 -12
  6. package/dist/api/WalletsExchangeWalletApi.js +254 -0
  7. package/dist/api/WalletsMPCWalletsApi.js +8 -8
  8. package/dist/index.js +56 -0
  9. package/dist/model/AddressInfo.js +1 -1
  10. package/dist/model/AddressTransferDestination.js +3 -3
  11. package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
  12. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +1 -1
  13. package/dist/model/AssetInfo.js +2 -2
  14. package/dist/model/BabylonStakeExtra.js +9 -0
  15. package/dist/model/CheckAddressValidity200Response.js +2 -2
  16. package/dist/model/CheckAddressesValidity200ResponseInner.js +121 -0
  17. package/dist/model/CheckLoopTransfers200ResponseInner.js +96 -0
  18. package/dist/model/ContractCallDestination.js +1 -1
  19. package/dist/model/CreateStakeActivity.js +14 -1
  20. package/dist/model/CreateStakeActivityExtra.js +6 -0
  21. package/dist/model/CreateTssRequestRequest.js +13 -0
  22. package/dist/model/CreateUnstakeActivity.js +13 -0
  23. package/dist/model/CreateWithdrawActivity.js +13 -0
  24. package/dist/model/CreatedWalletInfo.js +12 -0
  25. package/dist/model/EstimateStakeFee.js +19 -1
  26. package/dist/model/EstimateUnstakeFee.js +18 -0
  27. package/dist/model/EstimateWithdrawFee.js +18 -0
  28. package/dist/model/EvmContractCallDestination.js +1 -1
  29. package/dist/model/ExchangeId.js +5 -0
  30. package/dist/model/ExchangeTransferDestination.js +16 -16
  31. package/dist/model/ExchangeTransferSource.js +14 -14
  32. package/dist/model/GetToken200Response.js +4 -4
  33. package/dist/model/KeyShareHolder.js +13 -0
  34. package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +123 -0
  35. package/dist/model/ListExchanges200ResponseInner.js +122 -0
  36. package/dist/model/ListSupportedAssetsForExchange200Response.js +123 -0
  37. package/dist/model/MPCWalletInfo.js +26 -0
  38. package/dist/model/RefreshToken200Response.js +135 -0
  39. package/dist/model/RefreshTokenRequest.js +2 -2
  40. package/dist/model/SmartContractWalletType.js +2 -2
  41. package/dist/model/SubWalletAssetBalance.js +10 -10
  42. package/dist/model/TSSRequest.js +23 -1
  43. package/dist/model/TSSRequestWebhookEventData.js +263 -0
  44. package/dist/model/TransactionDepositFromWalletSource.js +6 -6
  45. package/dist/model/TransactionDepositToAddressDestination.js +2 -2
  46. package/dist/model/TransactionDepositToWalletDestination.js +9 -9
  47. package/dist/model/TransactionDestination.js +5 -5
  48. package/dist/model/TransactionEvmContractDestination.js +1 -1
  49. package/dist/model/TransactionExchangeWalletSource.js +6 -6
  50. package/dist/model/TransactionMPCWalletSource.js +13 -0
  51. package/dist/model/TransactionSource.js +8 -2
  52. package/dist/model/TransactionSubStatus.js +5 -0
  53. package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +1 -1
  54. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +1 -1
  55. package/dist/model/TransactionTransferToWalletDestination.js +9 -9
  56. package/dist/model/TransactionWebhookEventData.js +8 -3
  57. package/dist/model/TransferDestination.js +6 -6
  58. package/dist/model/TransferParams.js +2 -2
  59. package/dist/model/TransferSource.js +3 -3
  60. package/dist/model/WalletInfo.js +12 -0
  61. package/dist/model/WebhookEventData.js +49 -15
  62. package/dist/model/WebhookEventDataType.js +7 -2
  63. package/dist/model/WebhookEventType.js +24 -4
  64. package/docs/AddressInfo.md +1 -1
  65. package/docs/AddressTransferDestination.md +2 -2
  66. package/docs/AddressTransferDestinationAccountOutput.md +1 -1
  67. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
  68. package/docs/AssetInfo.md +1 -1
  69. package/docs/BabylonStakeExtra.md +1 -0
  70. package/docs/CheckAddressValidity200Response.md +1 -1
  71. package/docs/CheckAddressesValidity200ResponseInner.md +10 -0
  72. package/docs/CheckLoopTransfers200ResponseInner.md +10 -0
  73. package/docs/ContractCallDestination.md +1 -1
  74. package/docs/CreateStakeActivity.md +1 -0
  75. package/docs/CreateStakeActivityExtra.md +1 -0
  76. package/docs/CreateTssRequestRequest.md +1 -0
  77. package/docs/CreateUnstakeActivity.md +1 -0
  78. package/docs/CreateWithdrawActivity.md +1 -0
  79. package/docs/CreatedWalletInfo.md +2 -0
  80. package/docs/DevelopersWebhooksApi.md +78 -69
  81. package/docs/EstimateStakeFee.md +1 -0
  82. package/docs/EstimateUnstakeFee.md +1 -0
  83. package/docs/EstimateWithdrawFee.md +1 -0
  84. package/docs/EvmContractCallDestination.md +1 -1
  85. package/docs/ExchangeId.md +2 -0
  86. package/docs/ExchangeTransferDestination.md +2 -2
  87. package/docs/ExchangeTransferSource.md +1 -1
  88. package/docs/GetToken200Response.md +4 -4
  89. package/docs/KeyShareHolder.md +1 -0
  90. package/docs/ListAssetBalancesForExchangeWallet200Response.md +10 -0
  91. package/docs/ListExchanges200ResponseInner.md +10 -0
  92. package/docs/ListSupportedAssetsForExchange200Response.md +10 -0
  93. package/docs/MPCWalletInfo.md +2 -0
  94. package/docs/OAuthApi.md +26 -24
  95. package/docs/RefreshToken200Response.md +13 -0
  96. package/docs/RefreshTokenRequest.md +2 -2
  97. package/docs/SmartContractWalletType.md +1 -1
  98. package/docs/SubWalletAssetBalance.md +2 -2
  99. package/docs/TSSRequest.md +2 -0
  100. package/docs/TSSRequestWebhookEventData.md +29 -0
  101. package/docs/TransactionDepositFromWalletSource.md +1 -1
  102. package/docs/TransactionDepositToAddressDestination.md +1 -1
  103. package/docs/TransactionDepositToWalletDestination.md +2 -2
  104. package/docs/TransactionDestination.md +3 -3
  105. package/docs/TransactionEvmContractDestination.md +1 -1
  106. package/docs/TransactionExchangeWalletSource.md +1 -1
  107. package/docs/TransactionMPCWalletSource.md +1 -0
  108. package/docs/TransactionSource.md +2 -1
  109. package/docs/TransactionSubStatus.md +2 -0
  110. package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
  111. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
  112. package/docs/TransactionTransferToWalletDestination.md +2 -2
  113. package/docs/TransactionWebhookEventData.md +3 -1
  114. package/docs/TransactionsApi.md +98 -88
  115. package/docs/TransferDestination.md +4 -4
  116. package/docs/TransferParams.md +1 -1
  117. package/docs/TransferSource.md +1 -1
  118. package/docs/WalletInfo.md +2 -0
  119. package/docs/WalletsApi.md +316 -187
  120. package/docs/WalletsExchangeWalletApi.md +230 -0
  121. package/docs/WalletsMPCWalletsApi.md +153 -135
  122. package/docs/WebhookEventData.md +10 -5
  123. package/docs/WebhookEventDataType.md +3 -1
  124. package/docs/WebhookEventType.md +12 -4
  125. package/package.json +1 -1
@@ -0,0 +1,263 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _SourceGroup = _interopRequireDefault(require("./SourceGroup"));
9
+ var _TSSRequest = _interopRequireDefault(require("./TSSRequest"));
10
+ var _TSSRequestStatus = _interopRequireDefault(require("./TSSRequestStatus"));
11
+ var _TSSRequestType = _interopRequireDefault(require("./TSSRequestType"));
12
+ var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ 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); }
15
+ 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; } } }; }
16
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
19
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
20
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
23
+ * Cobo Wallet as a Service 2.0
24
+ *
25
+ * Contact: support@cobo.com
26
+ *
27
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
28
+ * https://openapi-generator.tech
29
+ * Do not edit the class manually.
30
+ *
31
+ */
32
+ /**
33
+ * The TSSRequestWebhookEventData model module.
34
+ * @module model/TSSRequestWebhookEventData
35
+ */
36
+ var TSSRequestWebhookEventData = /*#__PURE__*/function () {
37
+ /**
38
+ * Constructs a new <code>TSSRequestWebhookEventData</code>.
39
+ * @alias module:model/TSSRequestWebhookEventData
40
+ * @implements module:model/WebhookEventDataType
41
+ * @implements module:model/TSSRequest
42
+ * @param data_type {module:model/TSSRequestWebhookEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
43
+ */
44
+ function TSSRequestWebhookEventData(data_type) {
45
+ _classCallCheck(this, TSSRequestWebhookEventData);
46
+ _WebhookEventDataType["default"].initialize(this, data_type);
47
+ _TSSRequest["default"].initialize(this);
48
+ TSSRequestWebhookEventData.initialize(this, data_type);
49
+ }
50
+
51
+ /**
52
+ * Initializes the fields of this object.
53
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
54
+ * Only for internal use.
55
+ */
56
+ return _createClass(TSSRequestWebhookEventData, null, [{
57
+ key: "initialize",
58
+ value: function initialize(obj, data_type) {
59
+ obj['data_type'] = data_type;
60
+ }
61
+
62
+ /**
63
+ * Constructs a <code>TSSRequestWebhookEventData</code> from a plain JavaScript object, optionally creating a new instance.
64
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
65
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
66
+ * @param {module:model/TSSRequestWebhookEventData} obj Optional instance to populate.
67
+ * @return {module:model/TSSRequestWebhookEventData} The populated <code>TSSRequestWebhookEventData</code> instance.
68
+ */
69
+ }, {
70
+ key: "constructFromObject",
71
+ value: function constructFromObject(data, obj) {
72
+ if (data) {
73
+ obj = obj || new TSSRequestWebhookEventData();
74
+ _WebhookEventDataType["default"].constructFromObject(data, obj);
75
+ _TSSRequest["default"].constructFromObject(data, obj);
76
+ if (data.hasOwnProperty('data_type')) {
77
+ obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('tss_request_id')) {
80
+ obj['tss_request_id'] = _ApiClient["default"].convertToType(data['tss_request_id'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('source_key_share_holder_group')) {
83
+ obj['source_key_share_holder_group'] = _SourceGroup["default"].constructFromObject(data['source_key_share_holder_group']);
84
+ }
85
+ if (data.hasOwnProperty('target_key_share_holder_group_id')) {
86
+ obj['target_key_share_holder_group_id'] = _ApiClient["default"].convertToType(data['target_key_share_holder_group_id'], 'String');
87
+ }
88
+ if (data.hasOwnProperty('type')) {
89
+ obj['type'] = _TSSRequestType["default"].constructFromObject(data['type']);
90
+ }
91
+ if (data.hasOwnProperty('status')) {
92
+ obj['status'] = _TSSRequestStatus["default"].constructFromObject(data['status']);
93
+ }
94
+ if (data.hasOwnProperty('description')) {
95
+ obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
96
+ }
97
+ if (data.hasOwnProperty('created_timestamp')) {
98
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
99
+ }
100
+ }
101
+ return obj;
102
+ }
103
+
104
+ /**
105
+ * Validates the JSON data with respect to <code>TSSRequestWebhookEventData</code>.
106
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
107
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TSSRequestWebhookEventData</code>.
108
+ */
109
+ }, {
110
+ key: "validateJSON",
111
+ value: function validateJSON(data) {
112
+ // check to make sure all required properties are present in the JSON string
113
+ var _iterator = _createForOfIteratorHelper(TSSRequestWebhookEventData.RequiredProperties),
114
+ _step;
115
+ try {
116
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
117
+ var property = _step.value;
118
+ if (!data.hasOwnProperty(property)) {
119
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
120
+ }
121
+ }
122
+ // ensure the json data is a string
123
+ } catch (err) {
124
+ _iterator.e(err);
125
+ } finally {
126
+ _iterator.f();
127
+ }
128
+ if (data['data_type'] && !(typeof data['data_type'] === 'string' || data['data_type'] instanceof String)) {
129
+ throw new Error("Expected the field `data_type` to be a primitive type in the JSON string but got " + data['data_type']);
130
+ }
131
+ // ensure the json data is a string
132
+ if (data['tss_request_id'] && !(typeof data['tss_request_id'] === 'string' || data['tss_request_id'] instanceof String)) {
133
+ throw new Error("Expected the field `tss_request_id` to be a primitive type in the JSON string but got " + data['tss_request_id']);
134
+ }
135
+ // validate the optional field `source_key_share_holder_group`
136
+ if (data['source_key_share_holder_group']) {
137
+ // data not null
138
+ if (!!_SourceGroup["default"].validateJSON) {
139
+ _SourceGroup["default"].validateJSON(data['source_key_share_holder_group']);
140
+ }
141
+ }
142
+ // ensure the json data is a string
143
+ if (data['target_key_share_holder_group_id'] && !(typeof data['target_key_share_holder_group_id'] === 'string' || data['target_key_share_holder_group_id'] instanceof String)) {
144
+ throw new Error("Expected the field `target_key_share_holder_group_id` to be a primitive type in the JSON string but got " + data['target_key_share_holder_group_id']);
145
+ }
146
+ // ensure the json data is a string
147
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
148
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
149
+ }
150
+ return true;
151
+ }
152
+ }]);
153
+ }();
154
+ TSSRequestWebhookEventData.RequiredProperties = ["data_type"];
155
+
156
+ /**
157
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
158
+ * @member {module:model/TSSRequestWebhookEventData.DataTypeEnum} data_type
159
+ */
160
+ TSSRequestWebhookEventData.prototype['data_type'] = undefined;
161
+
162
+ /**
163
+ * The TSS request ID.
164
+ * @member {String} tss_request_id
165
+ */
166
+ TSSRequestWebhookEventData.prototype['tss_request_id'] = undefined;
167
+
168
+ /**
169
+ * @member {module:model/SourceGroup} source_key_share_holder_group
170
+ */
171
+ TSSRequestWebhookEventData.prototype['source_key_share_holder_group'] = undefined;
172
+
173
+ /**
174
+ * The target key share holder group ID.
175
+ * @member {String} target_key_share_holder_group_id
176
+ */
177
+ TSSRequestWebhookEventData.prototype['target_key_share_holder_group_id'] = undefined;
178
+
179
+ /**
180
+ * @member {module:model/TSSRequestType} type
181
+ */
182
+ TSSRequestWebhookEventData.prototype['type'] = undefined;
183
+
184
+ /**
185
+ * @member {module:model/TSSRequestStatus} status
186
+ */
187
+ TSSRequestWebhookEventData.prototype['status'] = undefined;
188
+
189
+ /**
190
+ * The description of the TSS request.
191
+ * @member {String} description
192
+ */
193
+ TSSRequestWebhookEventData.prototype['description'] = undefined;
194
+
195
+ /**
196
+ * The TSS request's creation time in Unix timestamp format, measured in milliseconds.
197
+ * @member {Number} created_timestamp
198
+ */
199
+ TSSRequestWebhookEventData.prototype['created_timestamp'] = undefined;
200
+
201
+ // Implement WebhookEventDataType interface:
202
+ /**
203
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
204
+ * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
205
+ */
206
+ _WebhookEventDataType["default"].prototype['data_type'] = undefined;
207
+ // Implement TSSRequest interface:
208
+ /**
209
+ * The TSS request ID.
210
+ * @member {String} tss_request_id
211
+ */
212
+ _TSSRequest["default"].prototype['tss_request_id'] = undefined;
213
+ /**
214
+ * @member {module:model/SourceGroup} source_key_share_holder_group
215
+ */
216
+ _TSSRequest["default"].prototype['source_key_share_holder_group'] = undefined;
217
+ /**
218
+ * The target key share holder group ID.
219
+ * @member {String} target_key_share_holder_group_id
220
+ */
221
+ _TSSRequest["default"].prototype['target_key_share_holder_group_id'] = undefined;
222
+ /**
223
+ * @member {module:model/TSSRequestType} type
224
+ */
225
+ _TSSRequest["default"].prototype['type'] = undefined;
226
+ /**
227
+ * @member {module:model/TSSRequestStatus} status
228
+ */
229
+ _TSSRequest["default"].prototype['status'] = undefined;
230
+ /**
231
+ * The description of the TSS request.
232
+ * @member {String} description
233
+ */
234
+ _TSSRequest["default"].prototype['description'] = undefined;
235
+ /**
236
+ * The TSS request's creation time in Unix timestamp format, measured in milliseconds.
237
+ * @member {Number} created_timestamp
238
+ */
239
+ _TSSRequest["default"].prototype['created_timestamp'] = undefined;
240
+
241
+ /**
242
+ * Allowed values for the <code>data_type</code> property.
243
+ * @enum {String}
244
+ * @readonly
245
+ */
246
+ TSSRequestWebhookEventData['DataTypeEnum'] = {
247
+ /**
248
+ * value: "Transaction"
249
+ * @const
250
+ */
251
+ "Transaction": "Transaction",
252
+ /**
253
+ * value: "TSSRequest"
254
+ * @const
255
+ */
256
+ "TSSRequest": "TSSRequest",
257
+ /**
258
+ * value: "unknown_default_open_api"
259
+ * @const
260
+ */
261
+ "unknown_default_open_api": "unknown_default_open_api"
262
+ };
263
+ var _default = exports["default"] = TSSRequestWebhookEventData;
@@ -84,8 +84,8 @@ var TransactionDepositFromWalletSource = /*#__PURE__*/function () {
84
84
  if (data.hasOwnProperty('wallet_subtype')) {
85
85
  obj['wallet_subtype'] = _WalletSubtype["default"].constructFromObject(data['wallet_subtype']);
86
86
  }
87
- if (data.hasOwnProperty('sub_wallet_id')) {
88
- obj['sub_wallet_id'] = _ApiClient["default"].convertToType(data['sub_wallet_id'], 'String');
87
+ if (data.hasOwnProperty('trading_account_type')) {
88
+ obj['trading_account_type'] = _ApiClient["default"].convertToType(data['trading_account_type'], 'String');
89
89
  }
90
90
  }
91
91
  return obj;
@@ -119,8 +119,8 @@ var TransactionDepositFromWalletSource = /*#__PURE__*/function () {
119
119
  throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
120
120
  }
121
121
  // ensure the json data is a string
122
- if (data['sub_wallet_id'] && !(typeof data['sub_wallet_id'] === 'string' || data['sub_wallet_id'] instanceof String)) {
123
- throw new Error("Expected the field `sub_wallet_id` to be a primitive type in the JSON string but got " + data['sub_wallet_id']);
122
+ if (data['trading_account_type'] && !(typeof data['trading_account_type'] === 'string' || data['trading_account_type'] instanceof String)) {
123
+ throw new Error("Expected the field `trading_account_type` to be a primitive type in the JSON string but got " + data['trading_account_type']);
124
124
  }
125
125
  return true;
126
126
  }
@@ -151,7 +151,7 @@ TransactionDepositFromWalletSource.prototype['wallet_subtype'] = undefined;
151
151
 
152
152
  /**
153
153
  * The exchange trading account or a sub-wallet ID.
154
- * @member {String} sub_wallet_id
154
+ * @member {String} trading_account_type
155
155
  */
156
- TransactionDepositFromWalletSource.prototype['sub_wallet_id'] = undefined;
156
+ TransactionDepositFromWalletSource.prototype['trading_account_type'] = undefined;
157
157
  var _default = exports["default"] = TransactionDepositFromWalletSource;
@@ -40,7 +40,7 @@ var TransactionDepositToAddressDestination = /*#__PURE__*/function () {
40
40
  * @param wallet_id {String} The wallet ID.
41
41
  * @param wallet_type {module:model/WalletType}
42
42
  * @param address {String} The destination address.
43
- * @param amount {String} The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
43
+ * @param amount {String} The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
44
44
  */
45
45
  function TransactionDepositToAddressDestination(destination_type, wallet_id, wallet_type, address, amount) {
46
46
  _classCallCheck(this, TransactionDepositToAddressDestination);
@@ -178,7 +178,7 @@ TransactionDepositToAddressDestination.prototype['address'] = undefined;
178
178
  TransactionDepositToAddressDestination.prototype['memo'] = undefined;
179
179
 
180
180
  /**
181
- * The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
181
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
182
182
  * @member {String} amount
183
183
  */
184
184
  TransactionDepositToAddressDestination.prototype['amount'] = undefined;
@@ -41,7 +41,7 @@ var TransactionDepositToWalletDestination = /*#__PURE__*/function () {
41
41
  * @param wallet_id {String} The wallet ID.
42
42
  * @param wallet_type {module:model/WalletType}
43
43
  * @param wallet_subtype {module:model/WalletSubtype}
44
- * @param amount {String} The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
44
+ * @param amount {String} The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
45
45
  */
46
46
  function TransactionDepositToWalletDestination(destination_type, wallet_id, wallet_type, wallet_subtype, amount) {
47
47
  _classCallCheck(this, TransactionDepositToWalletDestination);
@@ -87,8 +87,8 @@ var TransactionDepositToWalletDestination = /*#__PURE__*/function () {
87
87
  if (data.hasOwnProperty('wallet_subtype')) {
88
88
  obj['wallet_subtype'] = _WalletSubtype["default"].constructFromObject(data['wallet_subtype']);
89
89
  }
90
- if (data.hasOwnProperty('sub_wallet_id')) {
91
- obj['sub_wallet_id'] = _ApiClient["default"].convertToType(data['sub_wallet_id'], 'String');
90
+ if (data.hasOwnProperty('trading_account_type')) {
91
+ obj['trading_account_type'] = _ApiClient["default"].convertToType(data['trading_account_type'], 'String');
92
92
  }
93
93
  if (data.hasOwnProperty('exchange_id')) {
94
94
  obj['exchange_id'] = _ExchangeId["default"].constructFromObject(data['exchange_id']);
@@ -128,8 +128,8 @@ var TransactionDepositToWalletDestination = /*#__PURE__*/function () {
128
128
  throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
129
129
  }
130
130
  // ensure the json data is a string
131
- if (data['sub_wallet_id'] && !(typeof data['sub_wallet_id'] === 'string' || data['sub_wallet_id'] instanceof String)) {
132
- throw new Error("Expected the field `sub_wallet_id` to be a primitive type in the JSON string but got " + data['sub_wallet_id']);
131
+ if (data['trading_account_type'] && !(typeof data['trading_account_type'] === 'string' || data['trading_account_type'] instanceof String)) {
132
+ throw new Error("Expected the field `trading_account_type` to be a primitive type in the JSON string but got " + data['trading_account_type']);
133
133
  }
134
134
  // ensure the json data is a string
135
135
  if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
@@ -163,10 +163,10 @@ TransactionDepositToWalletDestination.prototype['wallet_type'] = undefined;
163
163
  TransactionDepositToWalletDestination.prototype['wallet_subtype'] = undefined;
164
164
 
165
165
  /**
166
- * The exchange trading account or the sub-wallet ID.
167
- * @member {String} sub_wallet_id
166
+ * The trading account type.
167
+ * @member {String} trading_account_type
168
168
  */
169
- TransactionDepositToWalletDestination.prototype['sub_wallet_id'] = undefined;
169
+ TransactionDepositToWalletDestination.prototype['trading_account_type'] = undefined;
170
170
 
171
171
  /**
172
172
  * @member {module:model/ExchangeId} exchange_id
@@ -174,7 +174,7 @@ TransactionDepositToWalletDestination.prototype['sub_wallet_id'] = undefined;
174
174
  TransactionDepositToWalletDestination.prototype['exchange_id'] = undefined;
175
175
 
176
176
  /**
177
- * The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
177
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
178
178
  * @member {String} amount
179
179
  */
180
180
  TransactionDepositToWalletDestination.prototype['amount'] = undefined;
@@ -264,10 +264,10 @@ TransactionDestination.prototype['force_external'] = undefined;
264
264
  TransactionDestination.prototype['wallet_id'] = undefined;
265
265
 
266
266
  /**
267
- * The exchange trading account or the sub-wallet ID.
268
- * @member {String} sub_wallet_id
267
+ * The trading account type.
268
+ * @member {String} trading_account_type
269
269
  */
270
- TransactionDestination.prototype['sub_wallet_id'] = undefined;
270
+ TransactionDestination.prototype['trading_account_type'] = undefined;
271
271
 
272
272
  /**
273
273
  * @member {module:model/ExchangeId} exchange_id
@@ -275,7 +275,7 @@ TransactionDestination.prototype['sub_wallet_id'] = undefined;
275
275
  TransactionDestination.prototype['exchange_id'] = undefined;
276
276
 
277
277
  /**
278
- * The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
278
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
279
279
  * @member {String} amount
280
280
  */
281
281
  TransactionDestination.prototype['amount'] = undefined;
@@ -287,7 +287,7 @@ TransactionDestination.prototype['amount'] = undefined;
287
287
  TransactionDestination.prototype['address'] = undefined;
288
288
 
289
289
  /**
290
- * The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
290
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
291
291
  * @member {String} value
292
292
  */
293
293
  TransactionDestination.prototype['value'] = undefined;
@@ -133,7 +133,7 @@ TransactionEvmContractDestination.prototype['destination_type'] = undefined;
133
133
  TransactionEvmContractDestination.prototype['address'] = undefined;
134
134
 
135
135
  /**
136
- * The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
136
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
137
137
  * @member {String} value
138
138
  */
139
139
  TransactionEvmContractDestination.prototype['value'] = undefined;
@@ -78,8 +78,8 @@ var TransactionExchangeWalletSource = /*#__PURE__*/function () {
78
78
  if (data.hasOwnProperty('wallet_id')) {
79
79
  obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
80
80
  }
81
- if (data.hasOwnProperty('sub_wallet_id')) {
82
- obj['sub_wallet_id'] = _ApiClient["default"].convertToType(data['sub_wallet_id'], 'String');
81
+ if (data.hasOwnProperty('trading_account_type')) {
82
+ obj['trading_account_type'] = _ApiClient["default"].convertToType(data['trading_account_type'], 'String');
83
83
  }
84
84
  }
85
85
  return obj;
@@ -113,8 +113,8 @@ var TransactionExchangeWalletSource = /*#__PURE__*/function () {
113
113
  throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
114
114
  }
115
115
  // ensure the json data is a string
116
- if (data['sub_wallet_id'] && !(typeof data['sub_wallet_id'] === 'string' || data['sub_wallet_id'] instanceof String)) {
117
- throw new Error("Expected the field `sub_wallet_id` to be a primitive type in the JSON string but got " + data['sub_wallet_id']);
116
+ if (data['trading_account_type'] && !(typeof data['trading_account_type'] === 'string' || data['trading_account_type'] instanceof String)) {
117
+ throw new Error("Expected the field `trading_account_type` to be a primitive type in the JSON string but got " + data['trading_account_type']);
118
118
  }
119
119
  return true;
120
120
  }
@@ -140,7 +140,7 @@ TransactionExchangeWalletSource.prototype['wallet_id'] = undefined;
140
140
 
141
141
  /**
142
142
  * The exchange trading account or a sub-wallet ID.
143
- * @member {String} sub_wallet_id
143
+ * @member {String} trading_account_type
144
144
  */
145
- TransactionExchangeWalletSource.prototype['sub_wallet_id'] = undefined;
145
+ TransactionExchangeWalletSource.prototype['trading_account_type'] = undefined;
146
146
  var _default = exports["default"] = TransactionExchangeWalletSource;
@@ -82,6 +82,9 @@ var TransactionMPCWalletSource = /*#__PURE__*/function () {
82
82
  if (data.hasOwnProperty('excluded_utxos')) {
83
83
  obj['excluded_utxos'] = _ApiClient["default"].convertToType(data['excluded_utxos'], [_TransactionUtxo["default"]]);
84
84
  }
85
+ if (data.hasOwnProperty('signer_key_share_holder_group_id')) {
86
+ obj['signer_key_share_holder_group_id'] = _ApiClient["default"].convertToType(data['signer_key_share_holder_group_id'], 'String');
87
+ }
85
88
  }
86
89
  return obj;
87
90
  }
@@ -159,6 +162,10 @@ var TransactionMPCWalletSource = /*#__PURE__*/function () {
159
162
  }
160
163
  ;
161
164
  }
165
+ // ensure the json data is a string
166
+ if (data['signer_key_share_holder_group_id'] && !(typeof data['signer_key_share_holder_group_id'] === 'string' || data['signer_key_share_holder_group_id'] instanceof String)) {
167
+ throw new Error("Expected the field `signer_key_share_holder_group_id` to be a primitive type in the JSON string but got " + data['signer_key_share_holder_group_id']);
168
+ }
162
169
  return true;
163
170
  }
164
171
  }]);
@@ -191,4 +198,10 @@ TransactionMPCWalletSource.prototype['included_utxos'] = undefined;
191
198
  * @member {Array.<module:model/TransactionUtxo>} excluded_utxos
192
199
  */
193
200
  TransactionMPCWalletSource.prototype['excluded_utxos'] = undefined;
201
+
202
+ /**
203
+ * The ID of the key share holder group that is selected to sign the transaction.
204
+ * @member {String} signer_key_share_holder_group_id
205
+ */
206
+ TransactionMPCWalletSource.prototype['signer_key_share_holder_group_id'] = undefined;
194
207
  var _default = exports["default"] = TransactionMPCWalletSource;
@@ -251,6 +251,12 @@ TransactionSource.prototype['included_utxos'] = undefined;
251
251
  */
252
252
  TransactionSource.prototype['excluded_utxos'] = undefined;
253
253
 
254
+ /**
255
+ * The ID of the key share holder group that is selected to sign the transaction.
256
+ * @member {String} signer_key_share_holder_group_id
257
+ */
258
+ TransactionSource.prototype['signer_key_share_holder_group_id'] = undefined;
259
+
254
260
  /**
255
261
  * @member {module:model/CoboSafeDelegate} delegate
256
262
  */
@@ -263,9 +269,9 @@ TransactionSource.prototype['exchange_id'] = undefined;
263
269
 
264
270
  /**
265
271
  * The exchange trading account or a sub-wallet ID.
266
- * @member {String} sub_wallet_id
272
+ * @member {String} trading_account_type
267
273
  */
268
- TransactionSource.prototype['sub_wallet_id'] = undefined;
274
+ TransactionSource.prototype['trading_account_type'] = undefined;
269
275
 
270
276
  /**
271
277
  * @member {module:model/WalletType} wallet_type
@@ -100,6 +100,11 @@ var TransactionSubStatus = exports["default"] = /*#__PURE__*/function () {
100
100
  * @const
101
101
  */
102
102
  _defineProperty(this, "PendingWaitSigner", "PendingWaitSigner");
103
+ /**
104
+ * value: "PendingApprovalStart"
105
+ * @const
106
+ */
107
+ _defineProperty(this, "PendingApprovalStart", "PendingApprovalStart");
103
108
  /**
104
109
  * value: "FailedBySigner"
105
110
  * @const
@@ -106,7 +106,7 @@ TransactionTransferToAddressDestinationAccountOutput.prototype['address'] = unde
106
106
  TransactionTransferToAddressDestinationAccountOutput.prototype['memo'] = undefined;
107
107
 
108
108
  /**
109
- * The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
109
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
110
110
  * @member {String} amount
111
111
  */
112
112
  TransactionTransferToAddressDestinationAccountOutput.prototype['amount'] = undefined;
@@ -100,7 +100,7 @@ var TransactionTransferToAddressDestinationUtxoOutputsInner = /*#__PURE__*/funct
100
100
  TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['address'] = undefined;
101
101
 
102
102
  /**
103
- * The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
103
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
104
104
  * @member {String} amount
105
105
  */
106
106
  TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['amount'] = undefined;
@@ -37,7 +37,7 @@ var TransactionTransferToWalletDestination = /*#__PURE__*/function () {
37
37
  * @alias module:model/TransactionTransferToWalletDestination
38
38
  * @param destination_type {module:model/TransactionDestinationType}
39
39
  * @param wallet_id {String} The wallet ID.
40
- * @param amount {String} The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
40
+ * @param amount {String} The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
41
41
  */
42
42
  function TransactionTransferToWalletDestination(destination_type, wallet_id, amount) {
43
43
  _classCallCheck(this, TransactionTransferToWalletDestination);
@@ -75,8 +75,8 @@ var TransactionTransferToWalletDestination = /*#__PURE__*/function () {
75
75
  if (data.hasOwnProperty('wallet_id')) {
76
76
  obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
77
77
  }
78
- if (data.hasOwnProperty('sub_wallet_id')) {
79
- obj['sub_wallet_id'] = _ApiClient["default"].convertToType(data['sub_wallet_id'], 'String');
78
+ if (data.hasOwnProperty('trading_account_type')) {
79
+ obj['trading_account_type'] = _ApiClient["default"].convertToType(data['trading_account_type'], 'String');
80
80
  }
81
81
  if (data.hasOwnProperty('exchange_id')) {
82
82
  obj['exchange_id'] = _ExchangeId["default"].constructFromObject(data['exchange_id']);
@@ -116,8 +116,8 @@ var TransactionTransferToWalletDestination = /*#__PURE__*/function () {
116
116
  throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
117
117
  }
118
118
  // ensure the json data is a string
119
- if (data['sub_wallet_id'] && !(typeof data['sub_wallet_id'] === 'string' || data['sub_wallet_id'] instanceof String)) {
120
- throw new Error("Expected the field `sub_wallet_id` to be a primitive type in the JSON string but got " + data['sub_wallet_id']);
119
+ if (data['trading_account_type'] && !(typeof data['trading_account_type'] === 'string' || data['trading_account_type'] instanceof String)) {
120
+ throw new Error("Expected the field `trading_account_type` to be a primitive type in the JSON string but got " + data['trading_account_type']);
121
121
  }
122
122
  // ensure the json data is a string
123
123
  if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
@@ -141,10 +141,10 @@ TransactionTransferToWalletDestination.prototype['destination_type'] = undefined
141
141
  TransactionTransferToWalletDestination.prototype['wallet_id'] = undefined;
142
142
 
143
143
  /**
144
- * The exchange trading account or the sub-wallet ID.
145
- * @member {String} sub_wallet_id
144
+ * The trading account type.
145
+ * @member {String} trading_account_type
146
146
  */
147
- TransactionTransferToWalletDestination.prototype['sub_wallet_id'] = undefined;
147
+ TransactionTransferToWalletDestination.prototype['trading_account_type'] = undefined;
148
148
 
149
149
  /**
150
150
  * @member {module:model/ExchangeId} exchange_id
@@ -152,7 +152,7 @@ TransactionTransferToWalletDestination.prototype['sub_wallet_id'] = undefined;
152
152
  TransactionTransferToWalletDestination.prototype['exchange_id'] = undefined;
153
153
 
154
154
  /**
155
- * The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is `1.5`.
155
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
156
156
  * @member {String} amount
157
157
  */
158
158
  TransactionTransferToWalletDestination.prototype['amount'] = undefined;
@@ -47,7 +47,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
47
47
  * @alias module:model/TransactionWebhookEventData
48
48
  * @implements module:model/WebhookEventDataType
49
49
  * @implements module:model/Transaction
50
- * @param data_type {module:model/TransactionWebhookEventData.DataTypeEnum} The data type of the event. When `data_type` is `Transaction`, it means the event uses the `transaction` schema as its data type.
50
+ * @param data_type {module:model/TransactionWebhookEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
51
51
  * @param transaction_id {String} The transaction ID.
52
52
  * @param wallet_id {String} For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source.
53
53
  * @param status {module:model/TransactionStatus}
@@ -315,7 +315,7 @@ var TransactionWebhookEventData = /*#__PURE__*/function () {
315
315
  TransactionWebhookEventData.RequiredProperties = ["data_type", "transaction_id", "wallet_id", "status", "source", "destination", "initiator_type"];
316
316
 
317
317
  /**
318
- * The data type of the event. When `data_type` is `Transaction`, it means the event uses the `transaction` schema as its data type.
318
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
319
319
  * @member {module:model/TransactionWebhookEventData.DataTypeEnum} data_type
320
320
  */
321
321
  TransactionWebhookEventData.prototype['data_type'] = undefined;
@@ -479,7 +479,7 @@ TransactionWebhookEventData.prototype['updated_timestamp'] = undefined;
479
479
 
480
480
  // Implement WebhookEventDataType interface:
481
481
  /**
482
- * The data type of the event. When `data_type` is `Transaction`, it means the event uses the `transaction` schema as its data type.
482
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
483
483
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
484
484
  */
485
485
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -625,6 +625,11 @@ TransactionWebhookEventData['DataTypeEnum'] = {
625
625
  * @const
626
626
  */
627
627
  "Transaction": "Transaction",
628
+ /**
629
+ * value: "TSSRequest"
630
+ * @const
631
+ */
632
+ "TSSRequest": "TSSRequest",
628
633
  /**
629
634
  * value: "unknown_default_open_api"
630
635
  * @const