@cobo/cobo-waas2 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/README.md +48 -3
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +6 -6
  4. package/dist/api/DevelopersApi.js +110 -0
  5. package/dist/api/DevelopersWebhooksApi.js +30 -30
  6. package/dist/api/OAuthApi.js +2 -2
  7. package/dist/api/StakingsApi.js +33 -30
  8. package/dist/api/TransactionsApi.js +73 -28
  9. package/dist/api/TravelRuleApi.js +216 -0
  10. package/dist/api/WalletsApi.js +68 -68
  11. package/dist/api/WalletsExchangeWalletApi.js +12 -12
  12. package/dist/api/WalletsMPCWalletsApi.js +60 -60
  13. package/dist/index.js +273 -0
  14. package/dist/model/Activity.js +29 -0
  15. package/dist/model/ActivityAction.js +30 -0
  16. package/dist/model/ActivityExtra.js +274 -0
  17. package/dist/model/AddressInfo.js +15 -2
  18. package/dist/model/AddressTransferDestination.js +1 -1
  19. package/dist/model/AddressesEventData.js +190 -0
  20. package/dist/model/ApiLogDetails.js +2 -2
  21. package/dist/model/BabylonStakeExtra.js +1 -1
  22. package/dist/model/BabylonStakingActivityDetailExtra.js +165 -0
  23. package/dist/model/BaseContractCallSource.js +1 -1
  24. package/dist/model/BroadcastSignedTransactionsRequest.js +1 -1
  25. package/dist/model/CallbackMessage.js +288 -0
  26. package/dist/model/ChainInfo.js +2 -2
  27. package/dist/model/ContractCallParams.js +2 -2
  28. package/dist/model/CoreStakingActivityDetailExtra.js +164 -0
  29. package/dist/model/CreateAddressRequest.js +2 -2
  30. package/dist/model/CreateClaimActivity.js +2 -2
  31. package/dist/model/CreateClaimActivityRequest.js +3 -3
  32. package/dist/model/CreateKeyShareHolder.js +1 -1
  33. package/dist/model/CreateMpcVaultRequest.js +1 -1
  34. package/dist/model/CreateMpcWalletParams.js +2 -2
  35. package/dist/model/CreateStakeActivity.js +4 -6
  36. package/dist/model/CreateStakeActivityExtra.js +1 -1
  37. package/dist/model/CreateStakeActivityRequest.js +5 -7
  38. package/dist/model/CreateWalletParams.js +1 -1
  39. package/dist/model/CreateWebhookEndpointRequest.js +2 -2
  40. package/dist/model/CustodialTransferSource.js +1 -1
  41. package/dist/model/DestinationWalletType.js +61 -0
  42. package/dist/model/ErrorResponse.js +2 -2
  43. package/dist/model/EstimateClaimFee.js +1 -1
  44. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  45. package/dist/model/EstimateFeeParams.js +2 -2
  46. package/dist/model/EstimateStakeFee.js +5 -7
  47. package/dist/model/EstimateTransferFeeParams.js +2 -2
  48. package/dist/model/EthStakeEstimatedFee.js +13 -0
  49. package/dist/model/EthStakingActivityDetailExtra.js +142 -0
  50. package/dist/model/EvmContractCallDestination.js +1 -1
  51. package/dist/model/EvmEIP191MessageSignDestination.js +1 -1
  52. package/dist/model/EvmEIP712MessageSignDestination.js +1 -1
  53. package/dist/model/ExchangeTransferDestination.js +1 -1
  54. package/dist/model/ExchangeTransferSource.js +1 -1
  55. package/dist/model/ExtendedTokenInfo.js +3 -3
  56. package/dist/model/GetStakingEstimationFee201Response.js +6 -0
  57. package/dist/model/GetStakingEstimationFeeRequest.js +1 -1
  58. package/dist/model/GetTransactionLimitation200Response.js +143 -0
  59. package/dist/model/ListCallbackMessages200Response.js +145 -0
  60. package/dist/model/ListSupportedCountries200ResponseInner.js +140 -0
  61. package/dist/model/LockUtxosRequestUtxosInner.js +2 -2
  62. package/dist/model/MPCDelegate.js +1 -1
  63. package/dist/model/MPCVaultEventData.js +279 -0
  64. package/dist/model/MaxTransferableValue.js +1 -1
  65. package/dist/model/MessageSignParams.js +2 -2
  66. package/dist/model/MpcTransferSource.js +1 -1
  67. package/dist/model/OrgInfo.js +133 -0
  68. package/dist/model/Pagination.js +4 -4
  69. package/dist/model/RawMessageSignDestination.js +1 -1
  70. package/dist/model/RetryCallbackMessage201Response.js +83 -0
  71. package/dist/model/SafeContractCallSource.js +1 -1
  72. package/dist/model/SafeTransferSource.js +1 -1
  73. package/dist/model/SelectedEntityType.js +61 -0
  74. package/dist/model/SelfCustodyWallet.js +152 -0
  75. package/dist/model/SourceGroup.js +1 -1
  76. package/dist/model/StakingPoolId.js +5 -0
  77. package/dist/model/StakingPoolType.js +5 -0
  78. package/dist/model/SubmitDepositTravelRuleInfo201Response.js +83 -0
  79. package/dist/model/SwapActivity.js +218 -0
  80. package/dist/model/SwapSummary.js +121 -0
  81. package/dist/model/SwapTokenPair.js +100 -0
  82. package/dist/model/TSSRequestWebhookEventData.js +18 -3
  83. package/dist/model/TokenBalance.js +2 -2
  84. package/dist/model/TokenBalanceBalance.js +6 -6
  85. package/dist/model/TokenInfo.js +2 -2
  86. package/dist/model/Transaction.js +2 -2
  87. package/dist/model/TransactionApprovalDetail.js +121 -0
  88. package/dist/model/TransactionApprovalResult.js +66 -0
  89. package/dist/model/TransactionCustodialAssetWalletSource.js +1 -1
  90. package/dist/model/TransactionDepositFromAddressSource.js +1 -1
  91. package/dist/model/TransactionDepositFromLoopSource.js +1 -1
  92. package/dist/model/TransactionDepositFromWalletSource.js +1 -1
  93. package/dist/model/TransactionDepositToAddressDestination.js +1 -1
  94. package/dist/model/TransactionDepositToWalletDestination.js +1 -1
  95. package/dist/model/TransactionDetail.js +4 -4
  96. package/dist/model/TransactionDetails.js +4 -4
  97. package/dist/model/TransactionEvmContractDestination.js +1 -1
  98. package/dist/model/TransactionExchangeWalletSource.js +1 -1
  99. package/dist/model/TransactionMPCWalletSource.js +1 -1
  100. package/dist/model/TransactionMessageSignEIP191Destination.js +1 -1
  101. package/dist/model/TransactionMessageSignEIP712Destination.js +1 -1
  102. package/dist/model/TransactionRawMessageSignDestination.js +1 -1
  103. package/dist/model/TransactionRawTxInfo.js +4 -4
  104. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
  105. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
  106. package/dist/model/TransactionRequestFixedFee.js +1 -1
  107. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  108. package/dist/model/TransactionRoleApprovalDetail.js +152 -0
  109. package/dist/model/TransactionSelectedUtxo.js +123 -0
  110. package/dist/model/TransactionSmartContractSafeWalletSource.js +1 -1
  111. package/dist/model/TransactionTokeApproval.js +3 -3
  112. package/dist/model/TransactionTokenAmount.js +1 -1
  113. package/dist/model/TransactionTransferToAddressDestination.js +1 -1
  114. package/dist/model/TransactionTransferToWalletDestination.js +1 -1
  115. package/dist/model/TransactionUserApprovalDetail.js +162 -0
  116. package/dist/model/TransactionWebhookEventData.js +22 -7
  117. package/dist/model/TransferParams.js +2 -2
  118. package/dist/model/TravelRuleDepositExchangesOrVASP.js +168 -0
  119. package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +222 -0
  120. package/dist/model/TravelRuleDepositLegalEntity.js +171 -0
  121. package/dist/model/TravelRuleDepositNaturalEntity.js +186 -0
  122. package/dist/model/TravelRuleDepositRequest.js +128 -0
  123. package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +222 -0
  124. package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +155 -0
  125. package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +222 -0
  126. package/dist/model/TravelRuleWithdrawLegalEntity.js +144 -0
  127. package/dist/model/TravelRuleWithdrawNaturalEntity.js +159 -0
  128. package/dist/model/TravelRuleWithdrawRequest.js +128 -0
  129. package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +216 -0
  130. package/dist/model/TriggerTestWebhookEventRequest.js +1 -1
  131. package/dist/model/UpdateWebhookEndpointByIdRequest.js +1 -1
  132. package/dist/model/Vasp.js +141 -0
  133. package/dist/model/WalletInfoEventData.js +175 -0
  134. package/dist/model/WebhookEventData.js +135 -14
  135. package/dist/model/WebhookEventDataType.js +17 -2
  136. package/dist/model/WebhookEventType.js +23 -8
  137. package/docs/Activity.md +2 -0
  138. package/docs/ActivityAction.md +12 -0
  139. package/docs/ActivityExtra.md +20 -0
  140. package/docs/AddressBooksApi.md +3 -3
  141. package/docs/AddressInfo.md +2 -1
  142. package/docs/AddressesEventData.md +29 -0
  143. package/docs/ApiLogDetails.md +1 -1
  144. package/docs/BabylonStakeExtra.md +1 -1
  145. package/docs/BabylonStakingActivityDetailExtra.md +14 -0
  146. package/docs/BroadcastSignedTransactionsRequest.md +1 -1
  147. package/docs/CallbackMessage.md +46 -0
  148. package/docs/ChainInfo.md +1 -1
  149. package/docs/ContractCallParams.md +1 -1
  150. package/docs/CoreStakingActivityDetailExtra.md +13 -0
  151. package/docs/CreateAddressRequest.md +1 -1
  152. package/docs/CreateClaimActivity.md +1 -1
  153. package/docs/CreateClaimActivityRequest.md +1 -1
  154. package/docs/CreateKeyShareHolder.md +1 -1
  155. package/docs/CreateMpcVaultRequest.md +1 -1
  156. package/docs/CreateMpcWalletParams.md +1 -1
  157. package/docs/CreateStakeActivity.md +1 -1
  158. package/docs/CreateStakeActivityExtra.md +1 -1
  159. package/docs/CreateStakeActivityRequest.md +1 -1
  160. package/docs/CreateWalletParams.md +1 -1
  161. package/docs/CreateWebhookEndpointRequest.md +1 -1
  162. package/docs/DestinationWalletType.md +12 -0
  163. package/docs/DevelopersApi.md +118 -0
  164. package/docs/DevelopersWebhooksApi.md +15 -15
  165. package/docs/ErrorResponse.md +1 -1
  166. package/docs/EstimateClaimFee.md +1 -1
  167. package/docs/EstimateContractCallFeeParams.md +1 -1
  168. package/docs/EstimateFeeParams.md +2 -2
  169. package/docs/EstimateStakeFee.md +1 -1
  170. package/docs/EstimateTransferFeeParams.md +1 -1
  171. package/docs/EthStakeEstimatedFee.md +1 -0
  172. package/docs/EthStakingActivityDetailExtra.md +11 -0
  173. package/docs/ExtendedTokenInfo.md +1 -1
  174. package/docs/GetStakingEstimationFee201Response.md +1 -0
  175. package/docs/GetStakingEstimationFeeRequest.md +2 -2
  176. package/docs/GetTransactionLimitation200Response.md +12 -0
  177. package/docs/ListCallbackMessages200Response.md +10 -0
  178. package/docs/ListSupportedCountries200ResponseInner.md +11 -0
  179. package/docs/LockUtxosRequestUtxosInner.md +1 -1
  180. package/docs/MPCVaultEventData.md +34 -0
  181. package/docs/MaxTransferableValue.md +1 -1
  182. package/docs/MessageSignParams.md +1 -1
  183. package/docs/OAuthApi.md +1 -1
  184. package/docs/OrgInfo.md +11 -0
  185. package/docs/Pagination.md +2 -2
  186. package/docs/RetryCallbackMessage201Response.md +9 -0
  187. package/docs/SelectedEntityType.md +12 -0
  188. package/docs/SelfCustodyWallet.md +12 -0
  189. package/docs/SourceGroup.md +1 -1
  190. package/docs/StakingPoolId.md +2 -0
  191. package/docs/StakingPoolType.md +2 -0
  192. package/docs/StakingsApi.md +18 -16
  193. package/docs/SubmitDepositTravelRuleInfo201Response.md +9 -0
  194. package/docs/SwapActivity.md +20 -0
  195. package/docs/SwapSummary.md +10 -0
  196. package/docs/SwapTokenPair.md +10 -0
  197. package/docs/TSSRequestWebhookEventData.md +7 -1
  198. package/docs/TokenBalance.md +1 -1
  199. package/docs/TokenBalanceBalance.md +4 -4
  200. package/docs/TokenInfo.md +1 -1
  201. package/docs/Transaction.md +2 -2
  202. package/docs/TransactionApprovalDetail.md +11 -0
  203. package/docs/TransactionApprovalResult.md +14 -0
  204. package/docs/TransactionDetail.md +2 -2
  205. package/docs/TransactionDetails.md +2 -2
  206. package/docs/TransactionRawTxInfo.md +1 -1
  207. package/docs/TransactionRoleApprovalDetail.md +13 -0
  208. package/docs/TransactionSelectedUtxo.md +12 -0
  209. package/docs/TransactionTokeApproval.md +1 -1
  210. package/docs/TransactionTokenAmount.md +1 -1
  211. package/docs/TransactionUserApprovalDetail.md +15 -0
  212. package/docs/TransactionWebhookEventData.md +9 -3
  213. package/docs/TransactionsApi.md +65 -14
  214. package/docs/TransferParams.md +1 -1
  215. package/docs/TravelRuleApi.md +214 -0
  216. package/docs/TravelRuleDepositExchangesOrVASP.md +13 -0
  217. package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +29 -0
  218. package/docs/TravelRuleDepositLegalEntity.md +25 -0
  219. package/docs/TravelRuleDepositNaturalEntity.md +26 -0
  220. package/docs/TravelRuleDepositRequest.md +10 -0
  221. package/docs/TravelRuleDepositRequestTravelRuleInfo.md +16 -0
  222. package/docs/TravelRuleWithdrawExchangesOrVASP.md +12 -0
  223. package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +16 -0
  224. package/docs/TravelRuleWithdrawLegalEntity.md +12 -0
  225. package/docs/TravelRuleWithdrawNaturalEntity.md +13 -0
  226. package/docs/TravelRuleWithdrawRequest.md +10 -0
  227. package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +15 -0
  228. package/docs/TriggerTestWebhookEventRequest.md +1 -1
  229. package/docs/UpdateWebhookEndpointByIdRequest.md +1 -1
  230. package/docs/Vasp.md +11 -0
  231. package/docs/WalletInfoEventData.md +29 -0
  232. package/docs/WalletsApi.md +34 -34
  233. package/docs/WalletsExchangeWalletApi.md +6 -6
  234. package/docs/WalletsMPCWalletsApi.md +30 -30
  235. package/docs/WebhookEventData.md +17 -5
  236. package/docs/WebhookEventDataType.md +7 -1
  237. package/docs/WebhookEventType.md +14 -8
  238. package/package.json +2 -2
@@ -0,0 +1,141 @@
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
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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
+ 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; } } }; }
11
+ 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; } }
12
+ 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; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ 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); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The Vasp model module.
29
+ * @module model/Vasp
30
+ */
31
+ var Vasp = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>Vasp</code>.
34
+ * The information of an vasp.
35
+ * @alias module:model/Vasp
36
+ * @param name {String} The name of the vasp.
37
+ * @param vendor_code {String} The symbol.
38
+ * @param vendor_vasp_id {String} The vasp str id.
39
+ */
40
+ function Vasp(name, vendor_code, vendor_vasp_id) {
41
+ _classCallCheck(this, Vasp);
42
+ Vasp.initialize(this, name, vendor_code, vendor_vasp_id);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(Vasp, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, name, vendor_code, vendor_vasp_id) {
53
+ obj['name'] = name;
54
+ obj['vendor_code'] = vendor_code;
55
+ obj['vendor_vasp_id'] = vendor_vasp_id;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>Vasp</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/Vasp} obj Optional instance to populate.
63
+ * @return {module:model/Vasp} The populated <code>Vasp</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new Vasp();
70
+ if (data.hasOwnProperty('name')) {
71
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('vendor_code')) {
74
+ obj['vendor_code'] = _ApiClient["default"].convertToType(data['vendor_code'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('vendor_vasp_id')) {
77
+ obj['vendor_vasp_id'] = _ApiClient["default"].convertToType(data['vendor_vasp_id'], 'String');
78
+ }
79
+ }
80
+ return obj;
81
+ }
82
+
83
+ /**
84
+ * Validates the JSON data with respect to <code>Vasp</code>.
85
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
86
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Vasp</code>.
87
+ */
88
+ }, {
89
+ key: "validateJSON",
90
+ value: function validateJSON(data) {
91
+ // check to make sure all required properties are present in the JSON string
92
+ var _iterator = _createForOfIteratorHelper(Vasp.RequiredProperties),
93
+ _step;
94
+ try {
95
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
96
+ var property = _step.value;
97
+ if (!data.hasOwnProperty(property)) {
98
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
99
+ }
100
+ }
101
+ // ensure the json data is a string
102
+ } catch (err) {
103
+ _iterator.e(err);
104
+ } finally {
105
+ _iterator.f();
106
+ }
107
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
108
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
109
+ }
110
+ // ensure the json data is a string
111
+ if (data['vendor_code'] && !(typeof data['vendor_code'] === 'string' || data['vendor_code'] instanceof String)) {
112
+ throw new Error("Expected the field `vendor_code` to be a primitive type in the JSON string but got " + data['vendor_code']);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data['vendor_vasp_id'] && !(typeof data['vendor_vasp_id'] === 'string' || data['vendor_vasp_id'] instanceof String)) {
116
+ throw new Error("Expected the field `vendor_vasp_id` to be a primitive type in the JSON string but got " + data['vendor_vasp_id']);
117
+ }
118
+ return true;
119
+ }
120
+ }]);
121
+ }();
122
+ Vasp.RequiredProperties = ["name", "vendor_code", "vendor_vasp_id"];
123
+
124
+ /**
125
+ * The name of the vasp.
126
+ * @member {String} name
127
+ */
128
+ Vasp.prototype['name'] = undefined;
129
+
130
+ /**
131
+ * The symbol.
132
+ * @member {String} vendor_code
133
+ */
134
+ Vasp.prototype['vendor_code'] = undefined;
135
+
136
+ /**
137
+ * The vasp str id.
138
+ * @member {String} vendor_vasp_id
139
+ */
140
+ Vasp.prototype['vendor_vasp_id'] = undefined;
141
+ var _default = exports["default"] = Vasp;
@@ -0,0 +1,175 @@
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 _WalletInfo = _interopRequireDefault(require("./WalletInfo"));
9
+ var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ 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; } } }; }
13
+ 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; } }
14
+ 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; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The WalletInfoEventData model module.
31
+ * @module model/WalletInfoEventData
32
+ */
33
+ var WalletInfoEventData = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>WalletInfoEventData</code>.
36
+ * @alias module:model/WalletInfoEventData
37
+ * @implements module:model/WebhookEventDataType
38
+ * @param data_type {module:model/WalletInfoEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
39
+ */
40
+ function WalletInfoEventData(data_type) {
41
+ _classCallCheck(this, WalletInfoEventData);
42
+ _WebhookEventDataType["default"].initialize(this, data_type);
43
+ WalletInfoEventData.initialize(this, data_type);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(WalletInfoEventData, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, data_type) {
54
+ obj['data_type'] = data_type;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>WalletInfoEventData</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/WalletInfoEventData} obj Optional instance to populate.
62
+ * @return {module:model/WalletInfoEventData} The populated <code>WalletInfoEventData</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new WalletInfoEventData();
69
+ _WebhookEventDataType["default"].constructFromObject(data, obj);
70
+ if (data.hasOwnProperty('data_type')) {
71
+ obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('wallet')) {
74
+ obj['wallet'] = _WalletInfo["default"].constructFromObject(data['wallet']);
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+
80
+ /**
81
+ * Validates the JSON data with respect to <code>WalletInfoEventData</code>.
82
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
83
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>WalletInfoEventData</code>.
84
+ */
85
+ }, {
86
+ key: "validateJSON",
87
+ value: function validateJSON(data) {
88
+ // check to make sure all required properties are present in the JSON string
89
+ var _iterator = _createForOfIteratorHelper(WalletInfoEventData.RequiredProperties),
90
+ _step;
91
+ try {
92
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
+ var property = _step.value;
94
+ if (!data.hasOwnProperty(property)) {
95
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
96
+ }
97
+ }
98
+ // ensure the json data is a string
99
+ } catch (err) {
100
+ _iterator.e(err);
101
+ } finally {
102
+ _iterator.f();
103
+ }
104
+ if (data['data_type'] && !(typeof data['data_type'] === 'string' || data['data_type'] instanceof String)) {
105
+ throw new Error("Expected the field `data_type` to be a primitive type in the JSON string but got " + data['data_type']);
106
+ }
107
+ // validate the optional field `wallet`
108
+ if (data['wallet']) {
109
+ // data not null
110
+ if (!!_WalletInfo["default"].validateJSON) {
111
+ _WalletInfo["default"].validateJSON(data['wallet']);
112
+ }
113
+ }
114
+ return true;
115
+ }
116
+ }]);
117
+ }();
118
+ WalletInfoEventData.RequiredProperties = ["data_type"];
119
+
120
+ /**
121
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
122
+ * @member {module:model/WalletInfoEventData.DataTypeEnum} data_type
123
+ */
124
+ WalletInfoEventData.prototype['data_type'] = undefined;
125
+
126
+ /**
127
+ * @member {module:model/WalletInfo} wallet
128
+ */
129
+ WalletInfoEventData.prototype['wallet'] = undefined;
130
+
131
+ // Implement WebhookEventDataType interface:
132
+ /**
133
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
134
+ * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
135
+ */
136
+ _WebhookEventDataType["default"].prototype['data_type'] = undefined;
137
+
138
+ /**
139
+ * Allowed values for the <code>data_type</code> property.
140
+ * @enum {String}
141
+ * @readonly
142
+ */
143
+ WalletInfoEventData['DataTypeEnum'] = {
144
+ /**
145
+ * value: "Transaction"
146
+ * @const
147
+ */
148
+ "Transaction": "Transaction",
149
+ /**
150
+ * value: "TSSRequest"
151
+ * @const
152
+ */
153
+ "TSSRequest": "TSSRequest",
154
+ /**
155
+ * value: "Addresses"
156
+ * @const
157
+ */
158
+ "Addresses": "Addresses",
159
+ /**
160
+ * value: "WalletInfo"
161
+ * @const
162
+ */
163
+ "WalletInfo": "WalletInfo",
164
+ /**
165
+ * value: "MPCVault"
166
+ * @const
167
+ */
168
+ "MPCVault": "MPCVault",
169
+ /**
170
+ * value: "unknown_default_open_api"
171
+ * @const
172
+ */
173
+ "unknown_default_open_api": "unknown_default_open_api"
174
+ };
175
+ var _default = exports["default"] = WalletInfoEventData;
@@ -5,9 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AddressInfo = _interopRequireDefault(require("./AddressInfo"));
9
+ var _AddressesEventData = _interopRequireDefault(require("./AddressesEventData"));
10
+ var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
11
+ var _MPCVaultType = _interopRequireDefault(require("./MPCVaultType"));
12
+ var _RootPubkey = _interopRequireDefault(require("./RootPubkey"));
8
13
  var _SourceGroup = _interopRequireDefault(require("./SourceGroup"));
9
14
  var _TSSRequestStatus = _interopRequireDefault(require("./TSSRequestStatus"));
10
- var _TSSRequestType = _interopRequireDefault(require("./TSSRequestType"));
11
15
  var _TSSRequestWebhookEventData = _interopRequireDefault(require("./TSSRequestWebhookEventData"));
12
16
  var _TransactionBlockInfo = _interopRequireDefault(require("./TransactionBlockInfo"));
13
17
  var _TransactionDestination = _interopRequireDefault(require("./TransactionDestination"));
@@ -19,6 +23,8 @@ var _TransactionResult = _interopRequireDefault(require("./TransactionResult"));
19
23
  var _TransactionSource = _interopRequireDefault(require("./TransactionSource"));
20
24
  var _TransactionSubStatus = _interopRequireDefault(require("./TransactionSubStatus"));
21
25
  var _TransactionWebhookEventData = _interopRequireDefault(require("./TransactionWebhookEventData"));
26
+ var _WalletInfo = _interopRequireDefault(require("./WalletInfo"));
27
+ var _WalletInfoEventData = _interopRequireDefault(require("./WalletInfoEventData"));
22
28
  var _WebhookEventData;
23
29
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
24
30
  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); }
@@ -45,7 +51,7 @@ var WebhookEventData = /*#__PURE__*/function () {
45
51
  /**
46
52
  * Constructs a new <code>WebhookEventData</code>.
47
53
  * @alias module:model/WebhookEventData
48
- * @param {(module:model/TSSRequestWebhookEventData|module:model/TransactionWebhookEventData)} instance The actual instance to initialize WebhookEventData.
54
+ * @param {(module:model/AddressesEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
49
55
  */
50
56
  function WebhookEventData() {
51
57
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -66,6 +72,14 @@ var WebhookEventData = /*#__PURE__*/function () {
66
72
  var discriminatorValue = instance["data_type"];
67
73
  if (discriminatorValue) {
68
74
  switch (discriminatorValue) {
75
+ case "Addresses":
76
+ this.actualInstance = _AddressesEventData["default"].constructFromObject(instance);
77
+ match++;
78
+ break;
79
+ case "MPCVault":
80
+ this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
81
+ match++;
82
+ break;
69
83
  case "TSSRequest":
70
84
  this.actualInstance = _TSSRequestWebhookEventData["default"].constructFromObject(instance);
71
85
  match++;
@@ -74,6 +88,10 @@ var WebhookEventData = /*#__PURE__*/function () {
74
88
  this.actualInstance = _TransactionWebhookEventData["default"].constructFromObject(instance);
75
89
  match++;
76
90
  break;
91
+ case "WalletInfo":
92
+ this.actualInstance = _WalletInfoEventData["default"].constructFromObject(instance);
93
+ match++;
94
+ break;
77
95
  default:
78
96
  errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
79
97
  break;
@@ -126,13 +144,82 @@ var WebhookEventData = /*#__PURE__*/function () {
126
144
  // json data failed to deserialize into TSSRequestWebhookEventData
127
145
  errorMessages.push("Failed to construct TSSRequestWebhookEventData: " + err);
128
146
  }
147
+ try {
148
+ if (instance instanceof _AddressesEventData["default"]) {
149
+ this.actualInstance = instance;
150
+ } else if (!!_AddressesEventData["default"].validateJSON && _AddressesEventData["default"].validateJSON(instance)) {
151
+ // plain JS object
152
+ // create AddressesEventData from JS object
153
+ this.actualInstance = _AddressesEventData["default"].constructFromObject(instance);
154
+ } else {
155
+ if (_AddressesEventData["default"].constructFromObject(instance)) {
156
+ if (!!_AddressesEventData["default"].constructFromObject(instance).toJSON) {
157
+ if (_AddressesEventData["default"].constructFromObject(instance).toJSON()) {
158
+ this.actualInstance = _AddressesEventData["default"].constructFromObject(instance);
159
+ }
160
+ } else {
161
+ this.actualInstance = _AddressesEventData["default"].constructFromObject(instance);
162
+ }
163
+ }
164
+ }
165
+ match++;
166
+ } catch (err) {
167
+ // json data failed to deserialize into AddressesEventData
168
+ errorMessages.push("Failed to construct AddressesEventData: " + err);
169
+ }
170
+ try {
171
+ if (instance instanceof _WalletInfoEventData["default"]) {
172
+ this.actualInstance = instance;
173
+ } else if (!!_WalletInfoEventData["default"].validateJSON && _WalletInfoEventData["default"].validateJSON(instance)) {
174
+ // plain JS object
175
+ // create WalletInfoEventData from JS object
176
+ this.actualInstance = _WalletInfoEventData["default"].constructFromObject(instance);
177
+ } else {
178
+ if (_WalletInfoEventData["default"].constructFromObject(instance)) {
179
+ if (!!_WalletInfoEventData["default"].constructFromObject(instance).toJSON) {
180
+ if (_WalletInfoEventData["default"].constructFromObject(instance).toJSON()) {
181
+ this.actualInstance = _WalletInfoEventData["default"].constructFromObject(instance);
182
+ }
183
+ } else {
184
+ this.actualInstance = _WalletInfoEventData["default"].constructFromObject(instance);
185
+ }
186
+ }
187
+ }
188
+ match++;
189
+ } catch (err) {
190
+ // json data failed to deserialize into WalletInfoEventData
191
+ errorMessages.push("Failed to construct WalletInfoEventData: " + err);
192
+ }
193
+ try {
194
+ if (instance instanceof _MPCVaultEventData["default"]) {
195
+ this.actualInstance = instance;
196
+ } else if (!!_MPCVaultEventData["default"].validateJSON && _MPCVaultEventData["default"].validateJSON(instance)) {
197
+ // plain JS object
198
+ // create MPCVaultEventData from JS object
199
+ this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
200
+ } else {
201
+ if (_MPCVaultEventData["default"].constructFromObject(instance)) {
202
+ if (!!_MPCVaultEventData["default"].constructFromObject(instance).toJSON) {
203
+ if (_MPCVaultEventData["default"].constructFromObject(instance).toJSON()) {
204
+ this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
205
+ }
206
+ } else {
207
+ this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
208
+ }
209
+ }
210
+ }
211
+ match++;
212
+ } catch (err) {
213
+ // json data failed to deserialize into MPCVaultEventData
214
+ errorMessages.push("Failed to construct MPCVaultEventData: " + err);
215
+ }
129
216
 
130
217
  // if (match > 1) {
131
- // throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas TSSRequestWebhookEventData, TransactionWebhookEventData. Input: " + JSON.stringify(instance));
218
+ // throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, MPCVaultEventData, TSSRequestWebhookEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
132
219
  // } else
133
220
  if (match === 0) {
134
221
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
135
- // throw new Error("No match found constructing `WebhookEventData` with oneOf schemas TSSRequestWebhookEventData, TransactionWebhookEventData. Details: " +
222
+ // throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, MPCVaultEventData, TSSRequestWebhookEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
136
223
  // errorMessages.join(", "));
137
224
  return;
138
225
  } else {// only 1 match
@@ -151,16 +238,16 @@ var WebhookEventData = /*#__PURE__*/function () {
151
238
  key: "getActualInstance",
152
239
  value:
153
240
  /**
154
- * Gets the actual instance, which can be <code>TSSRequestWebhookEventData</code>, <code>TransactionWebhookEventData</code>.
155
- * @return {(module:model/TSSRequestWebhookEventData|module:model/TransactionWebhookEventData)} The actual instance.
241
+ * Gets the actual instance, which can be <code>AddressesEventData</code>, <code>MPCVaultEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
242
+ * @return {(module:model/AddressesEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
156
243
  */
157
244
  function getActualInstance() {
158
245
  return this.actualInstance;
159
246
  }
160
247
 
161
248
  /**
162
- * Sets the actual instance, which can be <code>TSSRequestWebhookEventData</code>, <code>TransactionWebhookEventData</code>.
163
- * @param {(module:model/TSSRequestWebhookEventData|module:model/TransactionWebhookEventData)} obj The actual instance.
249
+ * Sets the actual instance, which can be <code>AddressesEventData</code>, <code>MPCVaultEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
250
+ * @param {(module:model/AddressesEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
164
251
  */
165
252
  }, {
166
253
  key: "setActualInstance",
@@ -175,7 +262,7 @@ var WebhookEventData = /*#__PURE__*/function () {
175
262
  }]);
176
263
  }();
177
264
  /**
178
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
265
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
179
266
  * @member {module:model/WebhookEventData.DataTypeEnum} data_type
180
267
  */
181
268
  _WebhookEventData = WebhookEventData;
@@ -214,7 +301,7 @@ WebhookEventData.prototype['request_id'] = undefined;
214
301
  WebhookEventData.prototype['wallet_id'] = undefined;
215
302
 
216
303
  /**
217
- * @member {module:model/TSSRequestType} type
304
+ * @member {module:model/MPCVaultType} type
218
305
  */
219
306
  WebhookEventData.prototype['type'] = undefined;
220
307
 
@@ -235,13 +322,13 @@ WebhookEventData.prototype['sub_status'] = undefined;
235
322
  WebhookEventData.prototype['failed_reason'] = undefined;
236
323
 
237
324
  /**
238
- * 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).
325
+ * The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
239
326
  * @member {String} chain_id
240
327
  */
241
328
  WebhookEventData.prototype['chain_id'] = undefined;
242
329
 
243
330
  /**
244
- * The token ID, which is the unique identifier of a 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).
331
+ * The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
245
332
  * @member {String} token_id
246
333
  */
247
334
  WebhookEventData.prototype['token_id'] = undefined;
@@ -335,7 +422,7 @@ WebhookEventData.prototype['description'] = undefined;
335
422
  WebhookEventData.prototype['is_loop'] = undefined;
336
423
 
337
424
  /**
338
- * The TSS request's creation time in Unix timestamp format, measured in milliseconds.
425
+ * The vault's creation time in Unix timestamp format, measured in milliseconds.
339
426
  * @member {Number} created_timestamp
340
427
  */
341
428
  WebhookEventData.prototype['created_timestamp'] = undefined;
@@ -362,5 +449,39 @@ WebhookEventData.prototype['source_key_share_holder_group'] = undefined;
362
449
  * @member {String} target_key_share_holder_group_id
363
450
  */
364
451
  WebhookEventData.prototype['target_key_share_holder_group_id'] = undefined;
365
- WebhookEventData.OneOf = ["TSSRequestWebhookEventData", "TransactionWebhookEventData"];
452
+
453
+ /**
454
+ * A list of addresses.
455
+ * @member {Array.<module:model/AddressInfo>} addresses
456
+ */
457
+ WebhookEventData.prototype['addresses'] = undefined;
458
+
459
+ /**
460
+ * @member {module:model/WalletInfo} wallet
461
+ */
462
+ WebhookEventData.prototype['wallet'] = undefined;
463
+
464
+ /**
465
+ * The vault ID.
466
+ * @member {String} vault_id
467
+ */
468
+ WebhookEventData.prototype['vault_id'] = undefined;
469
+
470
+ /**
471
+ * The project ID.
472
+ * @member {String} project_id
473
+ */
474
+ WebhookEventData.prototype['project_id'] = undefined;
475
+
476
+ /**
477
+ * The vault name.
478
+ * @member {String} name
479
+ */
480
+ WebhookEventData.prototype['name'] = undefined;
481
+
482
+ /**
483
+ * @member {Array.<module:model/RootPubkey>} root_pubkeys
484
+ */
485
+ WebhookEventData.prototype['root_pubkeys'] = undefined;
486
+ WebhookEventData.OneOf = ["AddressesEventData", "MPCVaultEventData", "TSSRequestWebhookEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
366
487
  var _default = exports["default"] = WebhookEventData;
@@ -33,7 +33,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>WebhookEventDataType</code>.
34
34
  * The data type of the event.
35
35
  * @alias module:model/WebhookEventDataType
36
- * @param data_type {module:model/WebhookEventDataType.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
36
+ * @param data_type {module:model/WebhookEventDataType.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
37
37
  */
38
38
  function WebhookEventDataType(data_type) {
39
39
  _classCallCheck(this, WebhookEventDataType);
@@ -104,7 +104,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
104
104
  WebhookEventDataType.RequiredProperties = ["data_type"];
105
105
 
106
106
  /**
107
- * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
107
+ * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
108
108
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
109
109
  */
110
110
  WebhookEventDataType.prototype['data_type'] = undefined;
@@ -125,6 +125,21 @@ WebhookEventDataType['DataTypeEnum'] = {
125
125
  * @const
126
126
  */
127
127
  "TSSRequest": "TSSRequest",
128
+ /**
129
+ * value: "Addresses"
130
+ * @const
131
+ */
132
+ "Addresses": "Addresses",
133
+ /**
134
+ * value: "WalletInfo"
135
+ * @const
136
+ */
137
+ "WalletInfo": "WalletInfo",
138
+ /**
139
+ * value: "MPCVault"
140
+ * @const
141
+ */
142
+ "MPCVault": "MPCVault",
128
143
  /**
129
144
  * value: "unknown_default_open_api"
130
145
  * @const