@cobo/cobo-waas2 1.8.0 → 1.9.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 (132) hide show
  1. package/README.md +78 -30
  2. package/dist/ApiClient.js +11 -1
  3. package/dist/api/AddressBooksApi.js +1 -1
  4. package/dist/api/DevelopersApi.js +3 -3
  5. package/dist/api/DevelopersWebhooksApi.js +8 -8
  6. package/dist/api/PrimeBrokerApi.js +317 -0
  7. package/dist/api/StakingsApi.js +12 -12
  8. package/dist/api/TransactionsApi.js +60 -16
  9. package/dist/api/TravelRuleApi.js +18 -18
  10. package/dist/api/WalletsApi.js +84 -13
  11. package/dist/api/WalletsExchangeWalletApi.js +1 -1
  12. package/dist/api/WalletsMPCWalletsApi.js +151 -39
  13. package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
  14. package/dist/index.js +112 -7
  15. package/dist/model/ActivityExtra.js +5 -5
  16. package/dist/model/AddressBalance.js +129 -0
  17. package/dist/model/AddressTransferDestination.js +36 -0
  18. package/dist/model/ApprovalStatementStatus.js +81 -0
  19. package/dist/model/AssetBalance.js +6 -6
  20. package/dist/model/BTCEIP191MessageSignDestination.js +122 -0
  21. package/dist/model/BabylonStakingActivityDetailExtra.js +1 -1
  22. package/dist/model/{TokenBalanceBalance.js → Balance.js} +22 -22
  23. package/dist/model/ChangeGuardPubkey200Response.js +110 -0
  24. package/dist/model/ContractCallParams.js +36 -0
  25. package/dist/model/CoreStakingActivityDetailExtra.js +3 -3
  26. package/dist/model/CreateAddressRequest.js +28 -2
  27. package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
  28. package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -0
  29. package/dist/model/DeleteGuardPubkey201Response.js +110 -0
  30. package/dist/model/EthStakeEstimatedFee.js +1 -1
  31. package/dist/model/EthStakingActivityDetailExtra.js +1 -1
  32. package/dist/model/GetStakingEstimationFee201Response.js +1 -1
  33. package/dist/model/GetTransactionLimitation200Response.js +4 -4
  34. package/dist/model/GuardPubkeyStatus.js +91 -0
  35. package/dist/model/ListAddressBalancesByToken200Response.js +123 -0
  36. package/dist/model/ListKeyShareHolders200Response.js +123 -0
  37. package/dist/model/MessageSignDestination.js +70 -8
  38. package/dist/model/MessageSignDestinationType.js +12 -2
  39. package/dist/model/OrgInfo.js +3 -3
  40. package/dist/model/QueryApprovalStatement200Response.js +122 -0
  41. package/dist/model/QueryGuardPubkey200Response.js +129 -0
  42. package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +125 -0
  43. package/dist/model/RootPubkey.js +1 -1
  44. package/dist/model/SelfCustodyWallet.js +7 -7
  45. package/dist/model/SubWalletAssetBalance.js +6 -6
  46. package/dist/model/SubmitDepositTravelRuleInfo201Response.js +1 -1
  47. package/dist/model/TSSGroups.js +1 -1
  48. package/dist/model/TokenBalance.js +6 -6
  49. package/dist/model/TransactionDepositToAddressDestination.js +16 -0
  50. package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +83 -0
  51. package/dist/model/TransactionDestination.js +6 -0
  52. package/dist/model/TransactionRawTxInfo.js +13 -0
  53. package/dist/model/TransactionSubStatus.js +5 -0
  54. package/dist/model/TransactionUserApprovalDetail.js +3 -3
  55. package/dist/model/TransferDestination.js +6 -0
  56. package/dist/model/TransferParams.js +36 -0
  57. package/dist/model/TravelRuleDepositExchangesOrVASP.js +4 -4
  58. package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +7 -7
  59. package/dist/model/TravelRuleDepositLegalEntity.js +5 -5
  60. package/dist/model/TravelRuleDepositNaturalEntity.js +9 -9
  61. package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +5 -5
  62. package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +3 -3
  63. package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +5 -5
  64. package/dist/model/TravelRuleWithdrawLegalEntity.js +2 -2
  65. package/dist/model/TravelRuleWithdrawNaturalEntity.js +7 -7
  66. package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +4 -4
  67. package/dist/model/Vasp.js +7 -7
  68. package/docs/ActivityExtra.md +5 -5
  69. package/docs/AddressBalance.md +10 -0
  70. package/docs/AddressBooksApi.md +1 -1
  71. package/docs/AddressTransferDestination.md +14 -0
  72. package/docs/ApprovalStatementStatus.md +20 -0
  73. package/docs/AssetBalance.md +1 -1
  74. package/docs/BTCEIP191MessageSignDestination.md +10 -0
  75. package/docs/BabylonStakingActivityDetailExtra.md +1 -1
  76. package/docs/{TokenBalanceBalance.md → Balance.md} +1 -1
  77. package/docs/ChangeGuardPubkey200Response.md +9 -0
  78. package/docs/ContractCallParams.md +14 -0
  79. package/docs/CoreStakingActivityDetailExtra.md +3 -3
  80. package/docs/CreateAddressRequest.md +3 -1
  81. package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
  82. package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
  83. package/docs/DeleteGuardPubkey201Response.md +9 -0
  84. package/docs/DevelopersApi.md +3 -3
  85. package/docs/DevelopersWebhooksApi.md +8 -8
  86. package/docs/EthStakeEstimatedFee.md +1 -1
  87. package/docs/EthStakingActivityDetailExtra.md +1 -1
  88. package/docs/GetStakingEstimationFee201Response.md +1 -1
  89. package/docs/GetTransactionLimitation200Response.md +4 -4
  90. package/docs/GuardPubkeyStatus.md +24 -0
  91. package/docs/ListAddressBalancesByToken200Response.md +10 -0
  92. package/docs/ListKeyShareHolders200Response.md +10 -0
  93. package/docs/MessageSignDestination.md +1 -0
  94. package/docs/MessageSignDestinationType.md +6 -2
  95. package/docs/OrgInfo.md +1 -1
  96. package/docs/PrimeBrokerApi.md +318 -0
  97. package/docs/QueryApprovalStatement200Response.md +12 -0
  98. package/docs/QueryGuardPubkey200Response.md +11 -0
  99. package/docs/QueryGuardPubkey200ResponseAddressesInner.md +10 -0
  100. package/docs/RootPubkey.md +1 -1
  101. package/docs/SelfCustodyWallet.md +3 -3
  102. package/docs/StakingsApi.md +12 -12
  103. package/docs/SubWalletAssetBalance.md +1 -1
  104. package/docs/SubmitDepositTravelRuleInfo201Response.md +1 -1
  105. package/docs/TSSGroups.md +1 -1
  106. package/docs/TokenBalance.md +1 -1
  107. package/docs/TransactionDepositToAddressDestination.md +1 -0
  108. package/docs/TransactionDepositToAddressDestinationTxInfo.md +9 -0
  109. package/docs/TransactionDestination.md +1 -0
  110. package/docs/TransactionRawTxInfo.md +1 -0
  111. package/docs/TransactionSubStatus.md +2 -0
  112. package/docs/TransactionUserApprovalDetail.md +3 -3
  113. package/docs/TransactionsApi.md +66 -15
  114. package/docs/TransferDestination.md +14 -0
  115. package/docs/TransferParams.md +14 -0
  116. package/docs/TravelRuleApi.md +13 -13
  117. package/docs/TravelRuleDepositExchangesOrVASP.md +2 -2
  118. package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +7 -7
  119. package/docs/TravelRuleDepositLegalEntity.md +3 -3
  120. package/docs/TravelRuleDepositNaturalEntity.md +5 -5
  121. package/docs/TravelRuleDepositRequestTravelRuleInfo.md +5 -5
  122. package/docs/TravelRuleWithdrawExchangesOrVASP.md +1 -1
  123. package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +5 -5
  124. package/docs/TravelRuleWithdrawLegalEntity.md +1 -1
  125. package/docs/TravelRuleWithdrawNaturalEntity.md +4 -4
  126. package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +4 -4
  127. package/docs/Vasp.md +3 -3
  128. package/docs/WalletsApi.md +78 -13
  129. package/docs/WalletsExchangeWalletApi.md +1 -1
  130. package/docs/WalletsMPCWalletsApi.md +141 -27
  131. package/docs/WalletsSmartContractWalletsApi.md +1 -1
  132. package/package.json +1 -1
@@ -0,0 +1,317 @@
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 _ChangeGuardPubkey200Response = _interopRequireDefault(require("../model/ChangeGuardPubkey200Response"));
9
+ var _CreatePrimeBrokerAddress201Response = _interopRequireDefault(require("../model/CreatePrimeBrokerAddress201Response"));
10
+ var _CreatePrimeBrokerAddressRequest = _interopRequireDefault(require("../model/CreatePrimeBrokerAddressRequest"));
11
+ var _DeleteGuardPubkey201Response = _interopRequireDefault(require("../model/DeleteGuardPubkey201Response"));
12
+ var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
13
+ var _QueryApprovalStatement200Response = _interopRequireDefault(require("../model/QueryApprovalStatement200Response"));
14
+ var _QueryGuardPubkey200Response = _interopRequireDefault(require("../model/QueryGuardPubkey200Response"));
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
17
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
18
+ 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); } }
19
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
21
+ 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); } /**
22
+ * Cobo Wallet as a Service 2.0
23
+ *
24
+ * Contact: help@cobo.com
25
+ *
26
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
27
+ * https://openapi-generator.tech
28
+ * Do not edit the class manually.
29
+ *
30
+ */
31
+ /**
32
+ * PrimeBroker service.
33
+ * @module api/PrimeBrokerApi
34
+ */
35
+ var PrimeBrokerApi = exports["default"] = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new PrimeBrokerApi.
38
+ * @alias module:api/PrimeBrokerApi
39
+ * @class
40
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
+ * default to {@link module:ApiClient#instance} if unspecified.
42
+ */
43
+ function PrimeBrokerApi(apiClient) {
44
+ _classCallCheck(this, PrimeBrokerApi);
45
+ this.apiClient = apiClient || _ApiClient["default"].instance;
46
+ }
47
+
48
+ /**
49
+ * Change Guard pubkey binding
50
+ * This operation updates an existing binding to associate a broker user ID with a new Cobo Guard public key.
51
+ * @param {String} user_id The user ID.
52
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChangeGuardPubkey200Response} and HTTP response
53
+ */
54
+ return _createClass(PrimeBrokerApi, [{
55
+ key: "changeGuardPubkeyWithHttpInfo",
56
+ value: function changeGuardPubkeyWithHttpInfo(user_id) {
57
+ var postBody = null;
58
+ if (postBody && postBody.toJSON) {
59
+ postBody = postBody.toJSON();
60
+ }
61
+ // verify the required parameter 'user_id' is set
62
+ if (user_id === undefined || user_id === null) {
63
+ throw new Error("Missing the required parameter 'user_id' when calling changeGuardPubkey");
64
+ }
65
+ var pathParams = {
66
+ 'user_id': user_id
67
+ };
68
+ var queryParams = {};
69
+ var headerParams = {};
70
+ var formParams = {};
71
+ var authNames = ['CoboAuth'];
72
+ var contentTypes = [];
73
+ var accepts = ['application/json'];
74
+ var returnType = _ChangeGuardPubkey200Response["default"];
75
+ return this.apiClient.callApi('/prime_broker/user/{user_id}/guard_pubkey', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
76
+ }
77
+
78
+ /**
79
+ * Change Guard pubkey binding
80
+ * This operation updates an existing binding to associate a broker user ID with a new Cobo Guard public key.
81
+ * @param {String} user_id The user ID.
82
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChangeGuardPubkey200Response}
83
+ */
84
+ }, {
85
+ key: "changeGuardPubkey",
86
+ value: function changeGuardPubkey(user_id) {
87
+ return this.changeGuardPubkeyWithHttpInfo(user_id).then(function (response_and_data) {
88
+ return response_and_data.data;
89
+ });
90
+ }
91
+
92
+ /**
93
+ * Create Guard pubkey binding
94
+ * This operation creates a binding between a broker user ID and a Cobo Guard public key.
95
+ * @param {String} user_id The user ID.
96
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChangeGuardPubkey200Response} and HTTP response
97
+ */
98
+ }, {
99
+ key: "createGuardPubkeyWithHttpInfo",
100
+ value: function createGuardPubkeyWithHttpInfo(user_id) {
101
+ var postBody = null;
102
+ if (postBody && postBody.toJSON) {
103
+ postBody = postBody.toJSON();
104
+ }
105
+ // verify the required parameter 'user_id' is set
106
+ if (user_id === undefined || user_id === null) {
107
+ throw new Error("Missing the required parameter 'user_id' when calling createGuardPubkey");
108
+ }
109
+ var pathParams = {
110
+ 'user_id': user_id
111
+ };
112
+ var queryParams = {};
113
+ var headerParams = {};
114
+ var formParams = {};
115
+ var authNames = ['CoboAuth'];
116
+ var contentTypes = [];
117
+ var accepts = ['application/json'];
118
+ var returnType = _ChangeGuardPubkey200Response["default"];
119
+ return this.apiClient.callApi('/prime_broker/user/{user_id}/guard_pubkey', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
120
+ }
121
+
122
+ /**
123
+ * Create Guard pubkey binding
124
+ * This operation creates a binding between a broker user ID and a Cobo Guard public key.
125
+ * @param {String} user_id The user ID.
126
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChangeGuardPubkey200Response}
127
+ */
128
+ }, {
129
+ key: "createGuardPubkey",
130
+ value: function createGuardPubkey(user_id) {
131
+ return this.createGuardPubkeyWithHttpInfo(user_id).then(function (response_and_data) {
132
+ return response_and_data.data;
133
+ });
134
+ }
135
+
136
+ /**
137
+ * Bind addresses to a broker user
138
+ * This operation binds addresses to a broker user.
139
+ * @param {String} user_id The user ID.
140
+ * @param {Object} opts Optional parameters
141
+ * @param {module:model/CreatePrimeBrokerAddressRequest} [CreatePrimeBrokerAddressRequest] The request body to bind addresses to a broker user.
142
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreatePrimeBrokerAddress201Response} and HTTP response
143
+ */
144
+ }, {
145
+ key: "createPrimeBrokerAddressWithHttpInfo",
146
+ value: function createPrimeBrokerAddressWithHttpInfo(user_id, opts) {
147
+ opts = opts || {};
148
+ var postBody = opts['CreatePrimeBrokerAddressRequest'];
149
+ if (postBody && postBody.toJSON) {
150
+ postBody = postBody.toJSON();
151
+ }
152
+ // verify the required parameter 'user_id' is set
153
+ if (user_id === undefined || user_id === null) {
154
+ throw new Error("Missing the required parameter 'user_id' when calling createPrimeBrokerAddress");
155
+ }
156
+ var pathParams = {
157
+ 'user_id': user_id
158
+ };
159
+ var queryParams = {};
160
+ var headerParams = {};
161
+ var formParams = {};
162
+ var authNames = ['CoboAuth'];
163
+ var contentTypes = ['application/json'];
164
+ var accepts = ['application/json'];
165
+ var returnType = _CreatePrimeBrokerAddress201Response["default"];
166
+ return this.apiClient.callApi('/prime_broker/user/{user_id}/addresses', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
167
+ }
168
+
169
+ /**
170
+ * Bind addresses to a broker user
171
+ * This operation binds addresses to a broker user.
172
+ * @param {String} user_id The user ID.
173
+ * @param {Object} opts Optional parameters
174
+ * @param {module:model/CreatePrimeBrokerAddressRequest} opts.CreatePrimeBrokerAddressRequest The request body to bind addresses to a broker user.
175
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreatePrimeBrokerAddress201Response}
176
+ */
177
+ }, {
178
+ key: "createPrimeBrokerAddress",
179
+ value: function createPrimeBrokerAddress(user_id, opts) {
180
+ return this.createPrimeBrokerAddressWithHttpInfo(user_id, opts).then(function (response_and_data) {
181
+ return response_and_data.data;
182
+ });
183
+ }
184
+
185
+ /**
186
+ * Delete Guard pubkey binding
187
+ * This operation deletes a binding between a broker user ID and a Cobo Guard public key.
188
+ * @param {String} user_id The user ID.
189
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteGuardPubkey201Response} and HTTP response
190
+ */
191
+ }, {
192
+ key: "deleteGuardPubkeyWithHttpInfo",
193
+ value: function deleteGuardPubkeyWithHttpInfo(user_id) {
194
+ var postBody = null;
195
+ if (postBody && postBody.toJSON) {
196
+ postBody = postBody.toJSON();
197
+ }
198
+ // verify the required parameter 'user_id' is set
199
+ if (user_id === undefined || user_id === null) {
200
+ throw new Error("Missing the required parameter 'user_id' when calling deleteGuardPubkey");
201
+ }
202
+ var pathParams = {
203
+ 'user_id': user_id
204
+ };
205
+ var queryParams = {};
206
+ var headerParams = {};
207
+ var formParams = {};
208
+ var authNames = ['CoboAuth'];
209
+ var contentTypes = [];
210
+ var accepts = ['application/json'];
211
+ var returnType = _DeleteGuardPubkey201Response["default"];
212
+ return this.apiClient.callApi('/prime_broker/user/{user_id}/guard_pubkey/delete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
213
+ }
214
+
215
+ /**
216
+ * Delete Guard pubkey binding
217
+ * This operation deletes a binding between a broker user ID and a Cobo Guard public key.
218
+ * @param {String} user_id The user ID.
219
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteGuardPubkey201Response}
220
+ */
221
+ }, {
222
+ key: "deleteGuardPubkey",
223
+ value: function deleteGuardPubkey(user_id) {
224
+ return this.deleteGuardPubkeyWithHttpInfo(user_id).then(function (response_and_data) {
225
+ return response_and_data.data;
226
+ });
227
+ }
228
+
229
+ /**
230
+ * Query approval statement
231
+ * This operation queries an approval statement.
232
+ * @param {String} statement_id The approval statement ID.
233
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/QueryApprovalStatement200Response} and HTTP response
234
+ */
235
+ }, {
236
+ key: "queryApprovalStatementWithHttpInfo",
237
+ value: function queryApprovalStatementWithHttpInfo(statement_id) {
238
+ var postBody = null;
239
+ if (postBody && postBody.toJSON) {
240
+ postBody = postBody.toJSON();
241
+ }
242
+ // verify the required parameter 'statement_id' is set
243
+ if (statement_id === undefined || statement_id === null) {
244
+ throw new Error("Missing the required parameter 'statement_id' when calling queryApprovalStatement");
245
+ }
246
+ var pathParams = {
247
+ 'statement_id': statement_id
248
+ };
249
+ var queryParams = {};
250
+ var headerParams = {};
251
+ var formParams = {};
252
+ var authNames = ['CoboAuth'];
253
+ var contentTypes = [];
254
+ var accepts = ['application/json'];
255
+ var returnType = _QueryApprovalStatement200Response["default"];
256
+ return this.apiClient.callApi('/prime_broker/approval_statement/{statement_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
257
+ }
258
+
259
+ /**
260
+ * Query approval statement
261
+ * This operation queries an approval statement.
262
+ * @param {String} statement_id The approval statement ID.
263
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/QueryApprovalStatement200Response}
264
+ */
265
+ }, {
266
+ key: "queryApprovalStatement",
267
+ value: function queryApprovalStatement(statement_id) {
268
+ return this.queryApprovalStatementWithHttpInfo(statement_id).then(function (response_and_data) {
269
+ return response_and_data.data;
270
+ });
271
+ }
272
+
273
+ /**
274
+ * Query a Guard pubkey
275
+ * This operation retrieves the current Cobo Guard public key binding details for a broker user.
276
+ * @param {String} user_id The user ID.
277
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/QueryGuardPubkey200Response} and HTTP response
278
+ */
279
+ }, {
280
+ key: "queryGuardPubkeyWithHttpInfo",
281
+ value: function queryGuardPubkeyWithHttpInfo(user_id) {
282
+ var postBody = null;
283
+ if (postBody && postBody.toJSON) {
284
+ postBody = postBody.toJSON();
285
+ }
286
+ // verify the required parameter 'user_id' is set
287
+ if (user_id === undefined || user_id === null) {
288
+ throw new Error("Missing the required parameter 'user_id' when calling queryGuardPubkey");
289
+ }
290
+ var pathParams = {
291
+ 'user_id': user_id
292
+ };
293
+ var queryParams = {};
294
+ var headerParams = {};
295
+ var formParams = {};
296
+ var authNames = ['CoboAuth'];
297
+ var contentTypes = [];
298
+ var accepts = ['application/json'];
299
+ var returnType = _QueryGuardPubkey200Response["default"];
300
+ return this.apiClient.callApi('/prime_broker/user/{user_id}/guard_pubkey', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
301
+ }
302
+
303
+ /**
304
+ * Query a Guard pubkey
305
+ * This operation retrieves the current Cobo Guard public key binding details for a broker user.
306
+ * @param {String} user_id The user ID.
307
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/QueryGuardPubkey200Response}
308
+ */
309
+ }, {
310
+ key: "queryGuardPubkey",
311
+ value: function queryGuardPubkey(user_id) {
312
+ return this.queryGuardPubkeyWithHttpInfo(user_id).then(function (response_and_data) {
313
+ return response_and_data.data;
314
+ });
315
+ }
316
+ }]);
317
+ }();
@@ -74,7 +74,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
74
74
  var queryParams = {};
75
75
  var headerParams = {};
76
76
  var formParams = {};
77
- var authNames = ['CoboAuth'];
77
+ var authNames = ['OAuth2'];
78
78
  var contentTypes = ['application/json'];
79
79
  var accepts = ['application/json'];
80
80
  var returnType = _CreateStakeActivity201Response["default"];
@@ -115,7 +115,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
115
115
  var queryParams = {};
116
116
  var headerParams = {};
117
117
  var formParams = {};
118
- var authNames = ['CoboAuth'];
118
+ var authNames = ['OAuth2'];
119
119
  var contentTypes = ['application/json'];
120
120
  var accepts = ['application/json'];
121
121
  var returnType = _CreateStakeActivity201Response["default"];
@@ -156,7 +156,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
156
156
  var queryParams = {};
157
157
  var headerParams = {};
158
158
  var formParams = {};
159
- var authNames = ['CoboAuth'];
159
+ var authNames = ['OAuth2'];
160
160
  var contentTypes = ['application/json'];
161
161
  var accepts = ['application/json'];
162
162
  var returnType = _CreateStakeActivity201Response["default"];
@@ -197,7 +197,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
197
197
  var queryParams = {};
198
198
  var headerParams = {};
199
199
  var formParams = {};
200
- var authNames = ['CoboAuth'];
200
+ var authNames = ['OAuth2'];
201
201
  var contentTypes = ['application/json'];
202
202
  var accepts = ['application/json'];
203
203
  var returnType = _CreateStakeActivity201Response["default"];
@@ -242,7 +242,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
242
242
  var queryParams = {};
243
243
  var headerParams = {};
244
244
  var formParams = {};
245
- var authNames = ['CoboAuth'];
245
+ var authNames = ['OAuth2'];
246
246
  var contentTypes = [];
247
247
  var accepts = ['application/json'];
248
248
  var returnType = _Activity["default"];
@@ -286,7 +286,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
286
286
  var queryParams = {};
287
287
  var headerParams = {};
288
288
  var formParams = {};
289
- var authNames = ['CoboAuth'];
289
+ var authNames = ['OAuth2'];
290
290
  var contentTypes = [];
291
291
  var accepts = ['application/json'];
292
292
  var returnType = _Stakings["default"];
@@ -326,7 +326,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
326
326
  var queryParams = {};
327
327
  var headerParams = {};
328
328
  var formParams = {};
329
- var authNames = ['CoboAuth'];
329
+ var authNames = ['OAuth2'];
330
330
  var contentTypes = ['application/json'];
331
331
  var accepts = ['application/json'];
332
332
  var returnType = _GetStakingEstimationFee201Response["default"];
@@ -367,7 +367,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
367
367
  var queryParams = {};
368
368
  var headerParams = {};
369
369
  var formParams = {};
370
- var authNames = ['CoboAuth'];
370
+ var authNames = ['OAuth2'];
371
371
  var contentTypes = ['application/json'];
372
372
  var accepts = ['application/json'];
373
373
  var returnType = _EthStakeEstimatedFee["default"];
@@ -412,7 +412,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
412
412
  var queryParams = {};
413
413
  var headerParams = {};
414
414
  var formParams = {};
415
- var authNames = ['CoboAuth'];
415
+ var authNames = ['OAuth2'];
416
416
  var contentTypes = [];
417
417
  var accepts = ['application/json'];
418
418
  var returnType = _PoolDetails["default"];
@@ -474,7 +474,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
474
474
  };
475
475
  var headerParams = {};
476
476
  var formParams = {};
477
- var authNames = ['CoboAuth'];
477
+ var authNames = ['OAuth2'];
478
478
  var contentTypes = [];
479
479
  var accepts = ['application/json'];
480
480
  var returnType = _ListStakingActivities200Response["default"];
@@ -535,7 +535,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
535
535
  };
536
536
  var headerParams = {};
537
537
  var formParams = {};
538
- var authNames = ['CoboAuth'];
538
+ var authNames = ['OAuth2'];
539
539
  var contentTypes = [];
540
540
  var accepts = ['application/json'];
541
541
  var returnType = _ListStakingPools200Response["default"];
@@ -594,7 +594,7 @@ var StakingsApi = exports["default"] = /*#__PURE__*/function () {
594
594
  };
595
595
  var headerParams = {};
596
596
  var formParams = {};
597
- var authNames = ['CoboAuth'];
597
+ var authNames = ['OAuth2'];
598
598
  var contentTypes = [];
599
599
  var accepts = ['application/json'];
600
600
  var returnType = _ListStakings200Response["default"];
@@ -72,7 +72,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
72
72
  var queryParams = {};
73
73
  var headerParams = {};
74
74
  var formParams = {};
75
- var authNames = ['CoboAuth'];
75
+ var authNames = ['OAuth2'];
76
76
  var contentTypes = ['application/json'];
77
77
  var accepts = ['application/json'];
78
78
  var returnType = [_BroadcastSignedTransactions201ResponseInner["default"]];
@@ -117,7 +117,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
117
117
  var queryParams = {};
118
118
  var headerParams = {};
119
119
  var formParams = {};
120
- var authNames = ['CoboAuth'];
120
+ var authNames = ['OAuth2'];
121
121
  var contentTypes = [];
122
122
  var accepts = ['application/json'];
123
123
  var returnType = _CreateTransferTransaction201Response["default"];
@@ -173,7 +173,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
173
173
  };
174
174
  var headerParams = {};
175
175
  var formParams = {};
176
- var authNames = ['CoboAuth'];
176
+ var authNames = ['OAuth2'];
177
177
  var contentTypes = [];
178
178
  var accepts = ['application/json'];
179
179
  var returnType = [_CheckLoopTransfers200ResponseInner["default"]];
@@ -215,7 +215,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
215
215
  var queryParams = {};
216
216
  var headerParams = {};
217
217
  var formParams = {};
218
- var authNames = ['OAuth2', 'CoboAuth'];
218
+ var authNames = ['OAuth2'];
219
219
  var contentTypes = ['application/json'];
220
220
  var accepts = ['application/json'];
221
221
  var returnType = _CreateTransferTransaction201Response["default"];
@@ -256,7 +256,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
256
256
  var queryParams = {};
257
257
  var headerParams = {};
258
258
  var formParams = {};
259
- var authNames = ['OAuth2', 'CoboAuth'];
259
+ var authNames = ['OAuth2'];
260
260
  var contentTypes = ['application/json'];
261
261
  var accepts = ['application/json'];
262
262
  var returnType = _CreateTransferTransaction201Response["default"];
@@ -280,7 +280,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
280
280
 
281
281
  /**
282
282
  * Transfer token
283
- * The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets, do not set the fee-related properties. Otherwise, the transaction will fail.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
283
+ * The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
284
284
  * @param {Object} opts Optional parameters
285
285
  * @param {module:model/TransferParams} [TransferParams] The request body to create a transfer transaction
286
286
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
@@ -297,7 +297,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
297
297
  var queryParams = {};
298
298
  var headerParams = {};
299
299
  var formParams = {};
300
- var authNames = ['OAuth2', 'CoboAuth'];
300
+ var authNames = ['OAuth2'];
301
301
  var contentTypes = ['application/json'];
302
302
  var accepts = ['application/json'];
303
303
  var returnType = _CreateTransferTransaction201Response["default"];
@@ -306,7 +306,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
306
306
 
307
307
  /**
308
308
  * Transfer token
309
- * The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets, do not set the fee-related properties. Otherwise, the transaction will fail.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
309
+ * The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
310
310
  * @param {Object} opts Optional parameters
311
311
  * @param {module:model/TransferParams} opts.TransferParams The request body to create a transfer transaction
312
312
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
@@ -345,7 +345,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
345
345
  var queryParams = {};
346
346
  var headerParams = {};
347
347
  var formParams = {};
348
- var authNames = ['CoboAuth'];
348
+ var authNames = ['OAuth2'];
349
349
  var contentTypes = ['application/json'];
350
350
  var accepts = ['application/json'];
351
351
  var returnType = _CreateTransferTransaction201Response["default"];
@@ -387,7 +387,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
387
387
  var queryParams = {};
388
388
  var headerParams = {};
389
389
  var formParams = {};
390
- var authNames = ['CoboAuth'];
390
+ var authNames = ['OAuth2'];
391
391
  var contentTypes = ['application/json'];
392
392
  var accepts = ['application/json'];
393
393
  var returnType = _EstimatedFee["default"];
@@ -410,7 +410,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
410
410
  }
411
411
 
412
412
  /**
413
- * Get transaction approval information
413
+ * Get transaction approval details
414
414
  * This operation retrieves approval detailed information about a specified transaction.
415
415
  * @param {String} transaction_id The transaction ID.
416
416
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionApprovalDetail} and HTTP response
@@ -440,7 +440,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
440
440
  }
441
441
 
442
442
  /**
443
- * Get transaction approval information
443
+ * Get transaction approval details
444
444
  * This operation retrieves approval detailed information about a specified transaction.
445
445
  * @param {String} transaction_id The transaction ID.
446
446
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionApprovalDetail}
@@ -476,7 +476,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
476
476
  var queryParams = {};
477
477
  var headerParams = {};
478
478
  var formParams = {};
479
- var authNames = ['CoboAuth'];
479
+ var authNames = ['OAuth2'];
480
480
  var contentTypes = [];
481
481
  var accepts = ['application/json'];
482
482
  var returnType = _TransactionDetail["default"];
@@ -550,7 +550,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
550
550
  };
551
551
  var headerParams = {};
552
552
  var formParams = {};
553
- var authNames = ['CoboAuth'];
553
+ var authNames = ['OAuth2'];
554
554
  var contentTypes = [];
555
555
  var accepts = ['application/json'];
556
556
  var returnType = _ListTransactions200Response["default"];
@@ -614,7 +614,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
614
614
  var queryParams = {};
615
615
  var headerParams = {};
616
616
  var formParams = {};
617
- var authNames = ['CoboAuth'];
617
+ var authNames = ['OAuth2'];
618
618
  var contentTypes = ['application/json'];
619
619
  var accepts = ['application/json'];
620
620
  var returnType = _CreateTransferTransaction201Response["default"];
@@ -637,6 +637,50 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
637
637
  });
638
638
  }
639
639
 
640
+ /**
641
+ * Sign and broadcast transaction
642
+ * This operation signs and broadcasts a specified transaction. To call this operation, the following conditions must be met: - The `transaction_process_type` of the transaction must be set to `BuildOnly` when you call the [Transfer token](https://www.cobo.com/developers/v2/api-references/transactions/transfer-token) or [Call smart contract](https://www.cobo.com/developers/v2/api-references/transactions/call-smart-contract) operation. - The transaction status must be `Built`.
643
+ * @param {String} transaction_id The transaction ID.
644
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
645
+ */
646
+ }, {
647
+ key: "signAndBroadcastTransactionByIdWithHttpInfo",
648
+ value: function signAndBroadcastTransactionByIdWithHttpInfo(transaction_id) {
649
+ var postBody = null;
650
+ if (postBody && postBody.toJSON) {
651
+ postBody = postBody.toJSON();
652
+ }
653
+ // verify the required parameter 'transaction_id' is set
654
+ if (transaction_id === undefined || transaction_id === null) {
655
+ throw new Error("Missing the required parameter 'transaction_id' when calling signAndBroadcastTransactionById");
656
+ }
657
+ var pathParams = {
658
+ 'transaction_id': transaction_id
659
+ };
660
+ var queryParams = {};
661
+ var headerParams = {};
662
+ var formParams = {};
663
+ var authNames = ['CoboAuth'];
664
+ var contentTypes = [];
665
+ var accepts = ['application/json'];
666
+ var returnType = _CreateTransferTransaction201Response["default"];
667
+ return this.apiClient.callApi('/transactions/{transaction_id}/sign_and_broadcast', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
668
+ }
669
+
670
+ /**
671
+ * Sign and broadcast transaction
672
+ * This operation signs and broadcasts a specified transaction. To call this operation, the following conditions must be met: - The `transaction_process_type` of the transaction must be set to `BuildOnly` when you call the [Transfer token](https://www.cobo.com/developers/v2/api-references/transactions/transfer-token) or [Call smart contract](https://www.cobo.com/developers/v2/api-references/transactions/call-smart-contract) operation. - The transaction status must be `Built`.
673
+ * @param {String} transaction_id The transaction ID.
674
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
675
+ */
676
+ }, {
677
+ key: "signAndBroadcastTransactionById",
678
+ value: function signAndBroadcastTransactionById(transaction_id) {
679
+ return this.signAndBroadcastTransactionByIdWithHttpInfo(transaction_id).then(function (response_and_data) {
680
+ return response_and_data.data;
681
+ });
682
+ }
683
+
640
684
  /**
641
685
  * Speed up transaction
642
686
  * This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. For more details about speeding up a transaction, refer to [Speed up a transaction](/v2/guides/transactions/manage-transactions#speed-up-a-transaction). You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. A transaction can be sped up only if its status is `Broadcasting`. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.</Note> <Info>If you speed up a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.</Info>
@@ -663,7 +707,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
663
707
  var queryParams = {};
664
708
  var headerParams = {};
665
709
  var formParams = {};
666
- var authNames = ['CoboAuth'];
710
+ var authNames = ['OAuth2'];
667
711
  var contentTypes = ['application/json'];
668
712
  var accepts = ['application/json'];
669
713
  var returnType = _CreateTransferTransaction201Response["default"];