@cobo/cobo-waas2 1.14.0 → 1.16.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 (216) hide show
  1. package/README.md +70 -5
  2. package/dist/ApiClient.js +2 -3
  3. package/dist/PreRequestScript.js +1 -1
  4. package/dist/api/AddressBooksApi.js +4 -4
  5. package/dist/api/AppWorkflowsApi.js +275 -0
  6. package/dist/api/DevelopersApi.js +4 -4
  7. package/dist/api/DevelopersWebhooksApi.js +12 -12
  8. package/dist/api/FeeStationApi.js +26 -26
  9. package/dist/api/PaymentApi.js +16 -16
  10. package/dist/api/StakingsApi.js +28 -28
  11. package/dist/api/TransactionsApi.js +16 -8
  12. package/dist/api/WalletsApi.js +121 -70
  13. package/dist/api/WalletsExchangeWalletApi.js +8 -8
  14. package/dist/api/WalletsMPCWalletsApi.js +20 -20
  15. package/dist/crypto/ApiSigner.js +1 -2
  16. package/dist/index.js +420 -0
  17. package/dist/model/AddressBook.js +18 -0
  18. package/dist/model/AppWorkflow.js +173 -0
  19. package/dist/model/AppWorkflowField.js +137 -0
  20. package/dist/model/AppWorkflowPolicy.js +144 -0
  21. package/dist/model/ApprovalEntry.js +148 -0
  22. package/dist/model/ApprovalRequest.js +178 -0
  23. package/dist/model/ApprovalRequestDetail.js +176 -0
  24. package/dist/model/ApprovalStatus.js +71 -0
  25. package/dist/model/ApprovalUser.js +146 -0
  26. package/dist/model/BabylonStakeExtra.js +16 -0
  27. package/dist/model/BankAccount.js +18 -0
  28. package/dist/model/BatchCheckUtxo201Response.js +107 -0
  29. package/dist/model/BatchCheckUtxoRequest.js +142 -0
  30. package/dist/model/BatchUTXOParam.js +123 -0
  31. package/dist/model/ChainInfo.js +9 -0
  32. package/dist/model/CreateApprovalRequest201Response.js +109 -0
  33. package/dist/model/CreateSettlement.js +4 -29
  34. package/dist/model/CreateStakeActivityExtra.js +6 -0
  35. package/dist/model/CreateTokenListingRequest201Response.js +2 -2
  36. package/dist/model/CreateTokenListingRequestRequest.js +4 -4
  37. package/dist/model/CustodialWeb3TransferSource.js +1 -1
  38. package/dist/model/EstimateContractCallFeeParams.js +13 -0
  39. package/dist/model/EstimateFeeParams.js +6 -0
  40. package/dist/model/EstimateTransferFeeParams.js +13 -0
  41. package/dist/model/FeeStationTransfer.js +1 -1
  42. package/dist/model/ListApprovalRequests200Response.js +123 -0
  43. package/dist/model/Merchant.js +18 -0
  44. package/dist/model/MpcTransferSource.js +1 -1
  45. package/dist/model/Order.js +49 -0
  46. package/dist/model/PaymentOrderEventData.js +64 -0
  47. package/dist/model/PaymentRefundEventData.js +77 -0
  48. package/dist/model/PaymentSettlementEvent.js +46 -0
  49. package/dist/model/PaymentTransaction.js +13 -0
  50. package/dist/model/PolicyAction.js +123 -0
  51. package/dist/model/PolicyActionContent.js +167 -0
  52. package/dist/model/PolicyActionType.js +66 -0
  53. package/dist/model/PolicyCondition.js +148 -0
  54. package/dist/model/PolicyFieldOperator.js +76 -0
  55. package/dist/model/PolicyFieldValueType.js +61 -0
  56. package/dist/model/Refund.js +53 -0
  57. package/dist/model/RequestApproval.js +188 -0
  58. package/dist/model/RevokeApprovalRequest201Response.js +118 -0
  59. package/dist/model/RevokeApprovalRequestRequest.js +110 -0
  60. package/dist/model/Settlement.js +31 -0
  61. package/dist/model/SettlementDetail.js +57 -0
  62. package/dist/model/SettlementInfo.js +31 -0
  63. package/dist/model/SwapActivity.js +3 -3
  64. package/dist/model/SwapActivityApprovers.js +122 -0
  65. package/dist/model/SwapActivityDetail.js +36 -6
  66. package/dist/model/SwapApproversStatus.js +66 -0
  67. package/dist/model/SwapQuote.js +49 -4
  68. package/dist/model/SwapToken.js +2 -2
  69. package/dist/model/TSSBaseRequestEventData.js +163 -0
  70. package/dist/model/TSSCallbackActionType.js +61 -0
  71. package/dist/model/TSSCallbackRequest.js +122 -0
  72. package/dist/model/TSSCallbackRequestType.js +76 -0
  73. package/dist/model/TSSCallbackResponse.js +118 -0
  74. package/dist/model/TSSCurve.js +61 -0
  75. package/dist/model/TSSCurveType.js +61 -0
  76. package/dist/model/TSSEvent.js +158 -0
  77. package/dist/model/TSSEventData.js +278 -0
  78. package/dist/model/TSSEventDataType.js +71 -0
  79. package/dist/model/TSSEventType.js +136 -0
  80. package/dist/model/TSSGroup.js +221 -0
  81. package/dist/model/TSSGroupType.js +61 -0
  82. package/dist/model/TSSGroups.js +1 -1
  83. package/dist/model/TSSKeyGenEventData.js +228 -0
  84. package/dist/model/TSSKeyGenExtra.js +154 -0
  85. package/dist/model/TSSKeyGenRequest.js +130 -0
  86. package/dist/model/TSSKeyReshareEventData.js +228 -0
  87. package/dist/model/TSSKeyReshareExtra.js +169 -0
  88. package/dist/model/TSSKeyReshareRequest.js +177 -0
  89. package/dist/model/TSSKeyShareSignDetail.js +100 -0
  90. package/dist/model/TSSKeyShareSignEventData.js +228 -0
  91. package/dist/model/TSSKeyShareSignExtra.js +171 -0
  92. package/dist/model/TSSKeyShareSignRequest.js +146 -0
  93. package/dist/model/TSSKeyShareSignSignature.js +126 -0
  94. package/dist/model/TSSKeyShareSignSignatures.js +107 -0
  95. package/dist/model/TSSKeySignEventData.js +228 -0
  96. package/dist/model/TSSKeySignExtra.js +203 -0
  97. package/dist/model/TSSKeySignRequest.js +192 -0
  98. package/dist/model/TSSParticipant.js +113 -0
  99. package/dist/model/TSSProtocol.js +66 -0
  100. package/dist/model/TSSRequestTypeEenum.js +71 -0
  101. package/dist/model/TSSSignature.js +139 -0
  102. package/dist/model/TSSSignatureType.js +66 -0
  103. package/dist/model/TSSSignatures.js +125 -0
  104. package/dist/model/TSSStatus.js +96 -0
  105. package/dist/model/TokenListing.js +10 -10
  106. package/dist/model/TokenListingEventData.js +15 -15
  107. package/dist/model/TransactionCoboCategory.js +102 -7
  108. package/dist/model/TransactionRbfSource.js +1 -1
  109. package/dist/model/TransactionSubStatus.js +35 -0
  110. package/dist/model/UTXO.js +9 -0
  111. package/dist/model/WebhookEventData.js +15 -9
  112. package/docs/AddressBook.md +2 -0
  113. package/docs/AddressBooksApi.md +2 -2
  114. package/docs/AppWorkflow.md +12 -0
  115. package/docs/AppWorkflowField.md +11 -0
  116. package/docs/AppWorkflowPolicy.md +10 -0
  117. package/docs/AppWorkflowsApi.md +273 -0
  118. package/docs/ApprovalEntry.md +11 -0
  119. package/docs/ApprovalRequest.md +13 -0
  120. package/docs/ApprovalRequestDetail.md +13 -0
  121. package/docs/ApprovalStatus.md +16 -0
  122. package/docs/ApprovalUser.md +12 -0
  123. package/docs/BabylonStakeExtra.md +1 -0
  124. package/docs/BankAccount.md +2 -0
  125. package/docs/BatchCheckUtxo201Response.md +9 -0
  126. package/docs/BatchCheckUtxoRequest.md +10 -0
  127. package/docs/BatchUTXOParam.md +10 -0
  128. package/docs/ChainInfo.md +1 -0
  129. package/docs/CreateApprovalRequest201Response.md +9 -0
  130. package/docs/CreateSettlement.md +2 -2
  131. package/docs/CreateStakeActivityExtra.md +1 -0
  132. package/docs/CreateTokenListingRequest201Response.md +1 -1
  133. package/docs/CreateTokenListingRequestRequest.md +2 -2
  134. package/docs/CustodialWeb3TransferSource.md +1 -1
  135. package/docs/DevelopersApi.md +2 -2
  136. package/docs/DevelopersWebhooksApi.md +6 -6
  137. package/docs/EstimateContractCallFeeParams.md +1 -0
  138. package/docs/EstimateFeeParams.md +1 -0
  139. package/docs/EstimateTransferFeeParams.md +1 -0
  140. package/docs/FeeStationApi.md +14 -14
  141. package/docs/ListApprovalRequests200Response.md +10 -0
  142. package/docs/Merchant.md +2 -0
  143. package/docs/MpcTransferSource.md +1 -1
  144. package/docs/Order.md +3 -0
  145. package/docs/PaymentApi.md +8 -8
  146. package/docs/PaymentOrderEventData.md +3 -0
  147. package/docs/PaymentRefundEventData.md +5 -0
  148. package/docs/PaymentSettlementEvent.md +3 -0
  149. package/docs/PaymentTransaction.md +1 -0
  150. package/docs/PolicyAction.md +10 -0
  151. package/docs/PolicyActionContent.md +25 -0
  152. package/docs/PolicyActionType.md +14 -0
  153. package/docs/PolicyCondition.md +12 -0
  154. package/docs/PolicyFieldOperator.md +18 -0
  155. package/docs/PolicyFieldValueType.md +12 -0
  156. package/docs/Refund.md +5 -0
  157. package/docs/RequestApproval.md +13 -0
  158. package/docs/RevokeApprovalRequest201Response.md +10 -0
  159. package/docs/RevokeApprovalRequestRequest.md +9 -0
  160. package/docs/Settlement.md +3 -0
  161. package/docs/SettlementDetail.md +5 -0
  162. package/docs/SettlementInfo.md +3 -0
  163. package/docs/StakingsApi.md +14 -14
  164. package/docs/SwapActivity.md +3 -3
  165. package/docs/SwapActivityApprovers.md +10 -0
  166. package/docs/SwapActivityDetail.md +4 -3
  167. package/docs/SwapApproversStatus.md +14 -0
  168. package/docs/SwapQuote.md +3 -0
  169. package/docs/SwapToken.md +2 -2
  170. package/docs/TSSBaseRequestEventData.md +14 -0
  171. package/docs/TSSCallbackActionType.md +12 -0
  172. package/docs/TSSCallbackRequest.md +12 -0
  173. package/docs/TSSCallbackRequestType.md +18 -0
  174. package/docs/TSSCallbackResponse.md +12 -0
  175. package/docs/TSSCurve.md +12 -0
  176. package/docs/TSSCurveType.md +12 -0
  177. package/docs/TSSEvent.md +13 -0
  178. package/docs/TSSEventData.md +16 -0
  179. package/docs/TSSEventDataType.md +16 -0
  180. package/docs/TSSEventType.md +42 -0
  181. package/docs/TSSGroup.md +19 -0
  182. package/docs/TSSGroupType.md +12 -0
  183. package/docs/TSSKeyGenEventData.md +16 -0
  184. package/docs/TSSKeyGenExtra.md +13 -0
  185. package/docs/TSSKeyGenRequest.md +13 -0
  186. package/docs/TSSKeyReshareEventData.md +16 -0
  187. package/docs/TSSKeyReshareExtra.md +14 -0
  188. package/docs/TSSKeyReshareRequest.md +17 -0
  189. package/docs/TSSKeyShareSignDetail.md +10 -0
  190. package/docs/TSSKeyShareSignEventData.md +16 -0
  191. package/docs/TSSKeyShareSignExtra.md +13 -0
  192. package/docs/TSSKeyShareSignRequest.md +12 -0
  193. package/docs/TSSKeyShareSignSignature.md +12 -0
  194. package/docs/TSSKeyShareSignSignatures.md +9 -0
  195. package/docs/TSSKeySignEventData.md +16 -0
  196. package/docs/TSSKeySignExtra.md +15 -0
  197. package/docs/TSSKeySignRequest.md +18 -0
  198. package/docs/TSSParticipant.md +11 -0
  199. package/docs/TSSProtocol.md +14 -0
  200. package/docs/TSSRequestTypeEenum.md +16 -0
  201. package/docs/TSSSignature.md +13 -0
  202. package/docs/TSSSignatureType.md +14 -0
  203. package/docs/TSSSignatures.md +11 -0
  204. package/docs/TSSStatus.md +26 -0
  205. package/docs/TokenListing.md +6 -6
  206. package/docs/TokenListingEventData.md +6 -6
  207. package/docs/TransactionCoboCategory.md +41 -3
  208. package/docs/TransactionRbfSource.md +1 -1
  209. package/docs/TransactionSubStatus.md +14 -0
  210. package/docs/TransactionsApi.md +8 -4
  211. package/docs/UTXO.md +1 -0
  212. package/docs/WalletsApi.md +91 -36
  213. package/docs/WalletsExchangeWalletApi.md +4 -4
  214. package/docs/WalletsMPCWalletsApi.md +10 -10
  215. package/docs/WebhookEventData.md +8 -7
  216. package/package.json +1 -1
@@ -0,0 +1,136 @@
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class TSSEventType.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var TSSEventType = exports["default"] = /*#__PURE__*/function () {
31
+ function TSSEventType() {
32
+ _classCallCheck(this, TSSEventType);
33
+ /**
34
+ * value: "ping"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "ping", "ping");
38
+ /**
39
+ * value: "request.keygen.created"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "request.keygen.created", "request.keygen.created");
43
+ /**
44
+ * value: "request.keygen.updated"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "request.keygen.updated", "request.keygen.updated");
48
+ /**
49
+ * value: "request.keygen.failed"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "request.keygen.failed", "request.keygen.failed");
53
+ /**
54
+ * value: "request.keygen.succeeded"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "request.keygen.succeeded", "request.keygen.succeeded");
58
+ /**
59
+ * value: "request.keyreshare.created"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "request.keyreshare.created", "request.keyreshare.created");
63
+ /**
64
+ * value: "request.keyreshare.updated"
65
+ * @const
66
+ */
67
+ _defineProperty(this, "request.keyreshare.updated", "request.keyreshare.updated");
68
+ /**
69
+ * value: "request.keyreshare.failed"
70
+ * @const
71
+ */
72
+ _defineProperty(this, "request.keyreshare.failed", "request.keyreshare.failed");
73
+ /**
74
+ * value: "request.keyreshare.succeeded"
75
+ * @const
76
+ */
77
+ _defineProperty(this, "request.keyreshare.succeeded", "request.keyreshare.succeeded");
78
+ /**
79
+ * value: "request.keysign.created"
80
+ * @const
81
+ */
82
+ _defineProperty(this, "request.keysign.created", "request.keysign.created");
83
+ /**
84
+ * value: "request.keysign.updated"
85
+ * @const
86
+ */
87
+ _defineProperty(this, "request.keysign.updated", "request.keysign.updated");
88
+ /**
89
+ * value: "request.keysign.failed"
90
+ * @const
91
+ */
92
+ _defineProperty(this, "request.keysign.failed", "request.keysign.failed");
93
+ /**
94
+ * value: "request.keysign.succeeded"
95
+ * @const
96
+ */
97
+ _defineProperty(this, "request.keysign.succeeded", "request.keysign.succeeded");
98
+ /**
99
+ * value: "request.keysharesign.created"
100
+ * @const
101
+ */
102
+ _defineProperty(this, "request.keysharesign.created", "request.keysharesign.created");
103
+ /**
104
+ * value: "request.keysharesign.updated"
105
+ * @const
106
+ */
107
+ _defineProperty(this, "request.keysharesign.updated", "request.keysharesign.updated");
108
+ /**
109
+ * value: "request.keysharesign.failed"
110
+ * @const
111
+ */
112
+ _defineProperty(this, "request.keysharesign.failed", "request.keysharesign.failed");
113
+ /**
114
+ * value: "request.keysharesign.succeeded"
115
+ * @const
116
+ */
117
+ _defineProperty(this, "request.keysharesign.succeeded", "request.keysharesign.succeeded");
118
+ /**
119
+ * value: "unknown_default_open_api"
120
+ * @const
121
+ */
122
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
123
+ }
124
+ return _createClass(TSSEventType, null, [{
125
+ key: "constructFromObject",
126
+ value:
127
+ /**
128
+ * Returns a <code>TSSEventType</code> enum value from a Javascript object name.
129
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
130
+ * @return {module:model/TSSEventType} The enum <code>TSSEventType</code> value.
131
+ */
132
+ function constructFromObject(object) {
133
+ return object;
134
+ }
135
+ }]);
136
+ }();
@@ -0,0 +1,221 @@
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 _TSSCurveType = _interopRequireDefault(require("./TSSCurveType"));
9
+ var _TSSGroupType = _interopRequireDefault(require("./TSSGroupType"));
10
+ var _TSSParticipant = _interopRequireDefault(require("./TSSParticipant"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ 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; } } }; }
14
+ 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; } }
15
+ 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; }
16
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
17
+ 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); } }
18
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
+ 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); } /**
21
+ * Cobo Wallet as a Service 2.0
22
+ *
23
+ * Contact: help@cobo.com
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The TSSGroup model module.
32
+ * @module model/TSSGroup
33
+ */
34
+ var TSSGroup = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>TSSGroup</code>.
37
+ * @alias module:model/TSSGroup
38
+ */
39
+ function TSSGroup() {
40
+ _classCallCheck(this, TSSGroup);
41
+ TSSGroup.initialize(this);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(TSSGroup, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj) {}
52
+
53
+ /**
54
+ * Constructs a <code>TSSGroup</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
57
+ * @param {module:model/TSSGroup} obj Optional instance to populate.
58
+ * @return {module:model/TSSGroup} The populated <code>TSSGroup</code> instance.
59
+ */
60
+ }, {
61
+ key: "constructFromObject",
62
+ value: function constructFromObject(data, obj) {
63
+ if (data) {
64
+ obj = obj || new TSSGroup();
65
+ if (data.hasOwnProperty('id')) {
66
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
67
+ }
68
+ if (data.hasOwnProperty('canonical_group_id')) {
69
+ obj['canonical_group_id'] = _ApiClient["default"].convertToType(data['canonical_group_id'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('protocol_group_id')) {
72
+ obj['protocol_group_id'] = _ApiClient["default"].convertToType(data['protocol_group_id'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('protocol_type')) {
75
+ obj['protocol_type'] = _ApiClient["default"].convertToType(data['protocol_type'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('created_timestamp')) {
78
+ obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
79
+ }
80
+ if (data.hasOwnProperty('type')) {
81
+ obj['type'] = _TSSGroupType["default"].constructFromObject(data['type']);
82
+ }
83
+ if (data.hasOwnProperty('root_extended_public_key')) {
84
+ obj['root_extended_public_key'] = _ApiClient["default"].convertToType(data['root_extended_public_key'], 'String');
85
+ }
86
+ if (data.hasOwnProperty('chaincode')) {
87
+ obj['chaincode'] = _ApiClient["default"].convertToType(data['chaincode'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('curve')) {
90
+ obj['curve'] = _TSSCurveType["default"].constructFromObject(data['curve']);
91
+ }
92
+ if (data.hasOwnProperty('threshold')) {
93
+ obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
94
+ }
95
+ if (data.hasOwnProperty('participants')) {
96
+ obj['participants'] = _ApiClient["default"].convertToType(data['participants'], [_TSSParticipant["default"]]);
97
+ }
98
+ }
99
+ return obj;
100
+ }
101
+
102
+ /**
103
+ * Validates the JSON data with respect to <code>TSSGroup</code>.
104
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
105
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TSSGroup</code>.
106
+ */
107
+ }, {
108
+ key: "validateJSON",
109
+ value: function validateJSON(data) {
110
+ // ensure the json data is a string
111
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
112
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
113
+ }
114
+ // ensure the json data is a string
115
+ if (data['canonical_group_id'] && !(typeof data['canonical_group_id'] === 'string' || data['canonical_group_id'] instanceof String)) {
116
+ throw new Error("Expected the field `canonical_group_id` to be a primitive type in the JSON string but got " + data['canonical_group_id']);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data['protocol_group_id'] && !(typeof data['protocol_group_id'] === 'string' || data['protocol_group_id'] instanceof String)) {
120
+ throw new Error("Expected the field `protocol_group_id` to be a primitive type in the JSON string but got " + data['protocol_group_id']);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data['protocol_type'] && !(typeof data['protocol_type'] === 'string' || data['protocol_type'] instanceof String)) {
124
+ throw new Error("Expected the field `protocol_type` to be a primitive type in the JSON string but got " + data['protocol_type']);
125
+ }
126
+ // ensure the json data is a string
127
+ if (data['root_extended_public_key'] && !(typeof data['root_extended_public_key'] === 'string' || data['root_extended_public_key'] instanceof String)) {
128
+ throw new Error("Expected the field `root_extended_public_key` to be a primitive type in the JSON string but got " + data['root_extended_public_key']);
129
+ }
130
+ // ensure the json data is a string
131
+ if (data['chaincode'] && !(typeof data['chaincode'] === 'string' || data['chaincode'] instanceof String)) {
132
+ throw new Error("Expected the field `chaincode` to be a primitive type in the JSON string but got " + data['chaincode']);
133
+ }
134
+ if (data['participants']) {
135
+ // data not null
136
+ // ensure the json data is an array
137
+ if (!Array.isArray(data['participants'])) {
138
+ throw new Error("Expected the field `participants` to be an array in the JSON data but got " + data['participants']);
139
+ }
140
+ // validate the optional field `participants` (array)
141
+ var _iterator = _createForOfIteratorHelper(data['participants']),
142
+ _step;
143
+ try {
144
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
145
+ var item = _step.value;
146
+ _TSSParticipant["default"].validateJSON(item);
147
+ }
148
+ } catch (err) {
149
+ _iterator.e(err);
150
+ } finally {
151
+ _iterator.f();
152
+ }
153
+ ;
154
+ }
155
+ return true;
156
+ }
157
+ }]);
158
+ }();
159
+ /**
160
+ * The TSS key share group ID.
161
+ * @member {String} id
162
+ */
163
+ TSSGroup.prototype['id'] = undefined;
164
+
165
+ /**
166
+ * The canonical group ID.
167
+ * @member {String} canonical_group_id
168
+ */
169
+ TSSGroup.prototype['canonical_group_id'] = undefined;
170
+
171
+ /**
172
+ * The protocol group ID.
173
+ * @member {String} protocol_group_id
174
+ */
175
+ TSSGroup.prototype['protocol_group_id'] = undefined;
176
+
177
+ /**
178
+ * The protocol type.
179
+ * @member {String} protocol_type
180
+ */
181
+ TSSGroup.prototype['protocol_type'] = undefined;
182
+
183
+ /**
184
+ * The group creation timestamp, in Unix timestamp format, measured in milliseconds.
185
+ * @member {Number} created_timestamp
186
+ */
187
+ TSSGroup.prototype['created_timestamp'] = undefined;
188
+
189
+ /**
190
+ * @member {module:model/TSSGroupType} type
191
+ */
192
+ TSSGroup.prototype['type'] = undefined;
193
+
194
+ /**
195
+ * The root extended public key.
196
+ * @member {String} root_extended_public_key
197
+ */
198
+ TSSGroup.prototype['root_extended_public_key'] = undefined;
199
+
200
+ /**
201
+ * The chaincode.
202
+ * @member {String} chaincode
203
+ */
204
+ TSSGroup.prototype['chaincode'] = undefined;
205
+
206
+ /**
207
+ * @member {module:model/TSSCurveType} curve
208
+ */
209
+ TSSGroup.prototype['curve'] = undefined;
210
+
211
+ /**
212
+ * The threshold.
213
+ * @member {Number} threshold
214
+ */
215
+ TSSGroup.prototype['threshold'] = undefined;
216
+
217
+ /**
218
+ * @member {Array.<module:model/TSSParticipant>} participants
219
+ */
220
+ TSSGroup.prototype['participants'] = undefined;
221
+ var _default = exports["default"] = TSSGroup;
@@ -0,0 +1,61 @@
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ 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); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class TSSGroupType.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var TSSGroupType = exports["default"] = /*#__PURE__*/function () {
31
+ function TSSGroupType() {
32
+ _classCallCheck(this, TSSGroupType);
33
+ /**
34
+ * value: 1
35
+ * @const
36
+ */
37
+ _defineProperty(this, "ECDSA", 1);
38
+ /**
39
+ * value: 2
40
+ * @const
41
+ */
42
+ _defineProperty(this, "EdDSA", 2);
43
+ /**
44
+ * value: 11184809
45
+ * @const
46
+ */
47
+ _defineProperty(this, "unknown_default_open_api", 11184809);
48
+ }
49
+ return _createClass(TSSGroupType, null, [{
50
+ key: "constructFromObject",
51
+ value:
52
+ /**
53
+ * Returns a <code>TSSGroupType</code> enum value from a Javascript object name.
54
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
55
+ * @return {module:model/TSSGroupType} The enum <code>TSSGroupType</code> value.
56
+ */
57
+ function constructFromObject(object) {
58
+ return object;
59
+ }
60
+ }]);
61
+ }();
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  var TSSGroups = /*#__PURE__*/function () {
30
30
  /**
31
31
  * Constructs a new <code>TSSGroups</code>.
32
- * The data for the TSS key share group ID.
32
+ * The data for the TSS key share group.
33
33
  * @alias module:model/TSSGroups
34
34
  */
35
35
  function TSSGroups() {
@@ -0,0 +1,228 @@
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 _TSSBaseRequestEventData = _interopRequireDefault(require("./TSSBaseRequestEventData"));
9
+ var _TSSEventDataType = _interopRequireDefault(require("./TSSEventDataType"));
10
+ var _TSSGroup = _interopRequireDefault(require("./TSSGroup"));
11
+ var _TSSKeyGenRequest = _interopRequireDefault(require("./TSSKeyGenRequest"));
12
+ var _TSSRequestTypeEenum = _interopRequireDefault(require("./TSSRequestTypeEenum"));
13
+ var _TSSStatus = _interopRequireDefault(require("./TSSStatus"));
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ 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); }
16
+ 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; } } }; }
17
+ 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; } }
18
+ 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; }
19
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
+ 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); } }
21
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
+ 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); } /**
24
+ * Cobo Wallet as a Service 2.0
25
+ *
26
+ * Contact: help@cobo.com
27
+ *
28
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
29
+ * https://openapi-generator.tech
30
+ * Do not edit the class manually.
31
+ *
32
+ */
33
+ /**
34
+ * The TSSKeyGenEventData model module.
35
+ * @module model/TSSKeyGenEventData
36
+ */
37
+ var TSSKeyGenEventData = /*#__PURE__*/function () {
38
+ /**
39
+ * Constructs a new <code>TSSKeyGenEventData</code>.
40
+ * @alias module:model/TSSKeyGenEventData
41
+ * @implements module:model/TSSBaseRequestEventData
42
+ * @param data_type {module:model/TSSEventDataType}
43
+ */
44
+ function TSSKeyGenEventData(data_type) {
45
+ _classCallCheck(this, TSSKeyGenEventData);
46
+ _TSSBaseRequestEventData["default"].initialize(this, data_type);
47
+ TSSKeyGenEventData.initialize(this, data_type);
48
+ }
49
+
50
+ /**
51
+ * Initializes the fields of this object.
52
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
53
+ * Only for internal use.
54
+ */
55
+ return _createClass(TSSKeyGenEventData, null, [{
56
+ key: "initialize",
57
+ value: function initialize(obj, data_type) {
58
+ obj['data_type'] = data_type;
59
+ }
60
+
61
+ /**
62
+ * Constructs a <code>TSSKeyGenEventData</code> from a plain JavaScript object, optionally creating a new instance.
63
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
64
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
65
+ * @param {module:model/TSSKeyGenEventData} obj Optional instance to populate.
66
+ * @return {module:model/TSSKeyGenEventData} The populated <code>TSSKeyGenEventData</code> instance.
67
+ */
68
+ }, {
69
+ key: "constructFromObject",
70
+ value: function constructFromObject(data, obj) {
71
+ if (data) {
72
+ obj = obj || new TSSKeyGenEventData();
73
+ _TSSBaseRequestEventData["default"].constructFromObject(data, obj);
74
+ if (data.hasOwnProperty('data_type')) {
75
+ obj['data_type'] = _TSSEventDataType["default"].constructFromObject(data['data_type']);
76
+ }
77
+ if (data.hasOwnProperty('request_id')) {
78
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
79
+ }
80
+ if (data.hasOwnProperty('request_type')) {
81
+ obj['request_type'] = _TSSRequestTypeEenum["default"].constructFromObject(data['request_type']);
82
+ }
83
+ if (data.hasOwnProperty('request_status')) {
84
+ obj['request_status'] = _TSSStatus["default"].constructFromObject(data['request_status']);
85
+ }
86
+ if (data.hasOwnProperty('extra_info')) {
87
+ obj['extra_info'] = _ApiClient["default"].convertToType(data['extra_info'], 'String');
88
+ }
89
+ if (data.hasOwnProperty('failed_reason')) {
90
+ obj['failed_reason'] = _ApiClient["default"].convertToType(data['failed_reason'], 'String');
91
+ }
92
+ if (data.hasOwnProperty('request_detail')) {
93
+ obj['request_detail'] = _TSSKeyGenRequest["default"].constructFromObject(data['request_detail']);
94
+ }
95
+ if (data.hasOwnProperty('result')) {
96
+ obj['result'] = _TSSGroup["default"].constructFromObject(data['result']);
97
+ }
98
+ }
99
+ return obj;
100
+ }
101
+
102
+ /**
103
+ * Validates the JSON data with respect to <code>TSSKeyGenEventData</code>.
104
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
105
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TSSKeyGenEventData</code>.
106
+ */
107
+ }, {
108
+ key: "validateJSON",
109
+ value: function validateJSON(data) {
110
+ // check to make sure all required properties are present in the JSON string
111
+ var _iterator = _createForOfIteratorHelper(TSSKeyGenEventData.RequiredProperties),
112
+ _step;
113
+ try {
114
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
115
+ var property = _step.value;
116
+ if (!data.hasOwnProperty(property)) {
117
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
118
+ }
119
+ }
120
+ // ensure the json data is a string
121
+ } catch (err) {
122
+ _iterator.e(err);
123
+ } finally {
124
+ _iterator.f();
125
+ }
126
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
127
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
128
+ }
129
+ // ensure the json data is a string
130
+ if (data['extra_info'] && !(typeof data['extra_info'] === 'string' || data['extra_info'] instanceof String)) {
131
+ throw new Error("Expected the field `extra_info` to be a primitive type in the JSON string but got " + data['extra_info']);
132
+ }
133
+ // ensure the json data is a string
134
+ if (data['failed_reason'] && !(typeof data['failed_reason'] === 'string' || data['failed_reason'] instanceof String)) {
135
+ throw new Error("Expected the field `failed_reason` to be a primitive type in the JSON string but got " + data['failed_reason']);
136
+ }
137
+ // validate the optional field `request_detail`
138
+ if (data['request_detail']) {
139
+ // data not null
140
+ if (!!_TSSKeyGenRequest["default"].validateJSON) {
141
+ _TSSKeyGenRequest["default"].validateJSON(data['request_detail']);
142
+ }
143
+ }
144
+ // validate the optional field `result`
145
+ if (data['result']) {
146
+ // data not null
147
+ if (!!_TSSGroup["default"].validateJSON) {
148
+ _TSSGroup["default"].validateJSON(data['result']);
149
+ }
150
+ }
151
+ return true;
152
+ }
153
+ }]);
154
+ }();
155
+ TSSKeyGenEventData.RequiredProperties = ["data_type"];
156
+
157
+ /**
158
+ * @member {module:model/TSSEventDataType} data_type
159
+ */
160
+ TSSKeyGenEventData.prototype['data_type'] = undefined;
161
+
162
+ /**
163
+ * The request ID.
164
+ * @member {String} request_id
165
+ */
166
+ TSSKeyGenEventData.prototype['request_id'] = undefined;
167
+
168
+ /**
169
+ * @member {module:model/TSSRequestTypeEenum} request_type
170
+ */
171
+ TSSKeyGenEventData.prototype['request_type'] = undefined;
172
+
173
+ /**
174
+ * @member {module:model/TSSStatus} request_status
175
+ */
176
+ TSSKeyGenEventData.prototype['request_status'] = undefined;
177
+
178
+ /**
179
+ * The extra info.
180
+ * @member {String} extra_info
181
+ */
182
+ TSSKeyGenEventData.prototype['extra_info'] = undefined;
183
+
184
+ /**
185
+ * The failed reason.
186
+ * @member {String} failed_reason
187
+ */
188
+ TSSKeyGenEventData.prototype['failed_reason'] = undefined;
189
+
190
+ /**
191
+ * @member {module:model/TSSKeyGenRequest} request_detail
192
+ */
193
+ TSSKeyGenEventData.prototype['request_detail'] = undefined;
194
+
195
+ /**
196
+ * @member {module:model/TSSGroup} result
197
+ */
198
+ TSSKeyGenEventData.prototype['result'] = undefined;
199
+
200
+ // Implement TSSBaseRequestEventData interface:
201
+ /**
202
+ * @member {module:model/TSSEventDataType} data_type
203
+ */
204
+ _TSSBaseRequestEventData["default"].prototype['data_type'] = undefined;
205
+ /**
206
+ * The request ID.
207
+ * @member {String} request_id
208
+ */
209
+ _TSSBaseRequestEventData["default"].prototype['request_id'] = undefined;
210
+ /**
211
+ * @member {module:model/TSSRequestTypeEenum} request_type
212
+ */
213
+ _TSSBaseRequestEventData["default"].prototype['request_type'] = undefined;
214
+ /**
215
+ * @member {module:model/TSSStatus} request_status
216
+ */
217
+ _TSSBaseRequestEventData["default"].prototype['request_status'] = undefined;
218
+ /**
219
+ * The extra info.
220
+ * @member {String} extra_info
221
+ */
222
+ _TSSBaseRequestEventData["default"].prototype['extra_info'] = undefined;
223
+ /**
224
+ * The failed reason.
225
+ * @member {String} failed_reason
226
+ */
227
+ _TSSBaseRequestEventData["default"].prototype['failed_reason'] = undefined;
228
+ var _default = exports["default"] = TSSKeyGenEventData;