@cobo/cobo-waas2 1.20.0 → 1.22.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 (224) hide show
  1. package/README.md +60 -4
  2. package/dist/ApiClient.js +11 -2
  3. package/dist/PreRequestScript.js +2 -4
  4. package/dist/api/AutoSweepApi.js +289 -0
  5. package/dist/api/PaymentApi.js +386 -24
  6. package/dist/api/TokenizationApi.js +1024 -0
  7. package/dist/api/TransactionsApi.js +103 -2
  8. package/dist/api/WalletsApi.js +2 -2
  9. package/dist/crypto/ApiSigner.js +5 -1
  10. package/dist/index.js +175 -0
  11. package/dist/model/AddressesEventData.js +3 -3
  12. package/dist/model/ApprovalDetail.js +7 -7
  13. package/dist/model/AutoSweepTask.js +198 -0
  14. package/dist/model/AutoSweepTaskStatus.js +61 -0
  15. package/dist/model/BalanceUpdateInfoEventData.js +3 -3
  16. package/dist/model/ChainsEventData.js +3 -3
  17. package/dist/model/CreateAutoSweepTask.js +126 -0
  18. package/dist/model/CreateCryptoAddressRequest.js +138 -0
  19. package/dist/model/CreateCustodialWalletParams.js +9 -0
  20. package/dist/model/CreateExchangeWalletParams.js +14 -0
  21. package/dist/model/CreateMpcWalletParams.js +14 -0
  22. package/dist/model/CreatePaymentOrderRequest.js +5 -5
  23. package/dist/model/CreateSafeWalletParams.js +9 -0
  24. package/dist/model/CreateSettlement.js +27 -4
  25. package/dist/model/CreateSmartContractWalletParams.js +6 -0
  26. package/dist/model/CreateSweepToAddress.js +126 -0
  27. package/dist/model/CreateWalletParams.js +6 -0
  28. package/dist/model/CreatedWalletInfo.js +6 -0
  29. package/dist/model/CryptoAddress.js +12 -12
  30. package/dist/model/CustodialWalletInfo.js +9 -0
  31. package/dist/model/DeleteCryptoAddress201Response.js +110 -0
  32. package/dist/model/ExchangeWalletInfo.js +14 -0
  33. package/dist/model/ForcedSweep.js +9 -9
  34. package/dist/model/ForcedSweepRequest.js +8 -9
  35. package/dist/model/GetTokenizationAllowlistActivation200Response.js +107 -0
  36. package/dist/model/ListAutoSweepTask200Response.js +123 -0
  37. package/dist/model/ListMerchantBalances200Response.js +107 -0
  38. package/dist/model/ListPaymentWalletBalances200Response.js +107 -0
  39. package/dist/model/ListSettlementDetails200Response.js +123 -0
  40. package/dist/model/ListTokenizationBlocklistAddresses200Response.js +145 -0
  41. package/dist/model/ListWalletSweepToAddresses200Response.js +107 -0
  42. package/dist/model/MPCVaultEventData.js +3 -3
  43. package/dist/model/MPCWalletInfo.js +14 -0
  44. package/dist/model/MerchantBalance.js +201 -0
  45. package/dist/model/PaymentAddressUpdateEventData.js +13 -13
  46. package/dist/model/PaymentOrderEventData.js +3 -3
  47. package/dist/model/PaymentRefundEventData.js +3 -3
  48. package/dist/model/PaymentSettlementEvent.js +42 -3
  49. package/dist/model/PaymentTransactionEventData.js +6 -6
  50. package/dist/model/PaymentWalletBalance.js +177 -0
  51. package/dist/model/PspBalance.js +175 -0
  52. package/dist/model/ReceivedAmountPerAddress.js +126 -0
  53. package/dist/model/SafeWallet.js +9 -0
  54. package/dist/model/Settlement.js +27 -0
  55. package/dist/model/SettlementDetail.js +26 -0
  56. package/dist/model/SettlementInfo.js +7 -7
  57. package/dist/model/SmartContractWalletInfo.js +6 -0
  58. package/dist/model/SuspendedTokenEventData.js +3 -3
  59. package/dist/model/SweepToAddress.js +135 -0
  60. package/dist/model/SweepToAddressStatus.js +61 -0
  61. package/dist/model/TSSRequestWebhookEventData.js +3 -3
  62. package/dist/model/TokenListingEventData.js +3 -3
  63. package/dist/model/TokenizationActivityInfo.js +8 -4
  64. package/dist/model/TokenizationAllowlistActivationRequest.js +13 -0
  65. package/dist/model/TokenizationAllowlistAddressNote.js +4 -4
  66. package/dist/model/TokenizationAllowlistAddressesResponse.js +145 -0
  67. package/dist/model/TokenizationBlocklistAddressNote.js +4 -4
  68. package/dist/model/TokenizationBurnEstimateFeeParams.js +13 -0
  69. package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +4 -4
  70. package/dist/model/TokenizationBurnTokenRequest.js +13 -0
  71. package/dist/model/TokenizationContractCallEstimateFeeParams.js +13 -0
  72. package/dist/model/TokenizationContractCallParamsData.js +43 -9
  73. package/dist/model/TokenizationContractCallRequest.js +13 -0
  74. package/dist/model/TokenizationContractCallType.js +5 -0
  75. package/dist/model/TokenizationERC20TokenParams.js +4 -4
  76. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +6 -0
  77. package/dist/model/TokenizationEvmContractCallParams.js +2 -2
  78. package/dist/model/TokenizationIssueEstimateFeeParams.js +13 -0
  79. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +40 -12
  80. package/dist/model/TokenizationIssuedTokenRequest.js +14 -1
  81. package/dist/model/TokenizationMintEstimateFeeParams.js +13 -0
  82. package/dist/model/TokenizationMintTokenRequest.js +13 -0
  83. package/dist/model/TokenizationMpcOperationSource.js +2 -2
  84. package/dist/model/TokenizationPauseEstimateFeeParams.js +13 -0
  85. package/dist/model/TokenizationPauseTokenRequest.js +13 -0
  86. package/dist/model/TokenizationSOLTokenParams.js +173 -0
  87. package/dist/model/TokenizationSolContractCallParams.js +137 -0
  88. package/dist/model/TokenizationSolTokenPermissionParams.js +140 -0
  89. package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +13 -0
  90. package/dist/model/TokenizationTokenDetailInfo.js +6 -6
  91. package/dist/model/TokenizationTokenInfo.js +4 -4
  92. package/dist/model/TokenizationTokenOperationSource.js +1 -1
  93. package/dist/model/TokenizationTokenPermissionParams.js +1 -1
  94. package/dist/model/TokenizationTokenPermissionType.js +15 -0
  95. package/dist/model/TokenizationTokenStandard.js +5 -0
  96. package/dist/model/TokenizationUnpauseEstimateFeeParams.js +13 -0
  97. package/dist/model/TokenizationUnpauseTokenRequest.js +13 -0
  98. package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +13 -0
  99. package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
  100. package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +13 -0
  101. package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +13 -0
  102. package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
  103. package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +13 -0
  104. package/dist/model/TokenizationWeb3OperationSource.js +2 -2
  105. package/dist/model/TokensEventData.js +3 -3
  106. package/dist/model/TopUpAddress.js +0 -1
  107. package/dist/model/TransactionWebhookEventData.js +3 -3
  108. package/dist/model/UpdateCustodialWalletParams.js +13 -6
  109. package/dist/model/UpdateMpcWalletParams.js +13 -6
  110. package/dist/model/UpdateTopUpAddress.js +3 -3
  111. package/dist/model/UpdateWalletParams.js +6 -0
  112. package/dist/model/WalletInfo.js +6 -0
  113. package/dist/model/WalletInfoEventData.js +3 -3
  114. package/dist/model/WebhookEventData.js +19 -7
  115. package/dist/model/WebhookEventDataType.js +2 -2
  116. package/docs/AddressesEventData.md +1 -1
  117. package/docs/ApprovalDetail.md +1 -1
  118. package/docs/AutoSweepApi.md +285 -0
  119. package/docs/AutoSweepTask.md +16 -0
  120. package/docs/AutoSweepTaskStatus.md +12 -0
  121. package/docs/BalanceUpdateInfoEventData.md +1 -1
  122. package/docs/ChainsEventData.md +1 -1
  123. package/docs/CreateAutoSweepTask.md +10 -0
  124. package/docs/CreateCryptoAddressRequest.md +11 -0
  125. package/docs/CreateCustodialWalletParams.md +1 -0
  126. package/docs/CreateExchangeWalletParams.md +1 -0
  127. package/docs/CreateMpcWalletParams.md +1 -0
  128. package/docs/CreatePaymentOrderRequest.md +3 -3
  129. package/docs/CreateSafeWalletParams.md +1 -0
  130. package/docs/CreateSettlement.md +1 -1
  131. package/docs/CreateSmartContractWalletParams.md +1 -0
  132. package/docs/CreateSweepToAddress.md +10 -0
  133. package/docs/CreateWalletParams.md +1 -0
  134. package/docs/CreatedWalletInfo.md +1 -0
  135. package/docs/CryptoAddress.md +1 -1
  136. package/docs/CustodialWalletInfo.md +1 -0
  137. package/docs/DeleteCryptoAddress201Response.md +9 -0
  138. package/docs/ExchangeWalletInfo.md +1 -0
  139. package/docs/ForcedSweep.md +7 -7
  140. package/docs/ForcedSweepRequest.md +4 -4
  141. package/docs/GetTokenizationAllowlistActivation200Response.md +9 -0
  142. package/docs/ListAutoSweepTask200Response.md +10 -0
  143. package/docs/ListMerchantBalances200Response.md +9 -0
  144. package/docs/ListPaymentWalletBalances200Response.md +9 -0
  145. package/docs/ListSettlementDetails200Response.md +10 -0
  146. package/docs/ListTokenizationBlocklistAddresses200Response.md +10 -0
  147. package/docs/ListWalletSweepToAddresses200Response.md +9 -0
  148. package/docs/MPCVaultEventData.md +1 -1
  149. package/docs/MPCWalletInfo.md +1 -0
  150. package/docs/MerchantBalance.md +16 -0
  151. package/docs/PaymentAddressUpdateEventData.md +6 -6
  152. package/docs/PaymentApi.md +403 -16
  153. package/docs/PaymentOrderEventData.md +1 -1
  154. package/docs/PaymentRefundEventData.md +1 -1
  155. package/docs/PaymentSettlementEvent.md +4 -1
  156. package/docs/PaymentTransactionEventData.md +4 -4
  157. package/docs/PaymentWalletBalance.md +14 -0
  158. package/docs/PspBalance.md +14 -0
  159. package/docs/ReceivedAmountPerAddress.md +10 -0
  160. package/docs/SafeWallet.md +1 -0
  161. package/docs/Settlement.md +3 -0
  162. package/docs/SettlementDetail.md +2 -0
  163. package/docs/SettlementInfo.md +6 -6
  164. package/docs/SmartContractWalletInfo.md +1 -0
  165. package/docs/SuspendedTokenEventData.md +1 -1
  166. package/docs/SweepToAddress.md +11 -0
  167. package/docs/SweepToAddressStatus.md +12 -0
  168. package/docs/TSSRequestWebhookEventData.md +1 -1
  169. package/docs/TokenListingEventData.md +1 -1
  170. package/docs/TokenizationActivityInfo.md +2 -2
  171. package/docs/TokenizationAllowlistActivationRequest.md +1 -0
  172. package/docs/TokenizationAllowlistAddressNote.md +3 -3
  173. package/docs/TokenizationAllowlistAddressesResponse.md +10 -0
  174. package/docs/TokenizationApi.md +1069 -0
  175. package/docs/TokenizationBlocklistAddressNote.md +3 -3
  176. package/docs/TokenizationBurnEstimateFeeParams.md +1 -0
  177. package/docs/TokenizationBurnTokenParamsBurnsInner.md +2 -2
  178. package/docs/TokenizationBurnTokenRequest.md +1 -0
  179. package/docs/TokenizationContractCallEstimateFeeParams.md +1 -0
  180. package/docs/TokenizationContractCallParamsData.md +2 -1
  181. package/docs/TokenizationContractCallRequest.md +1 -0
  182. package/docs/TokenizationContractCallType.md +2 -0
  183. package/docs/TokenizationERC20TokenParams.md +1 -1
  184. package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -0
  185. package/docs/TokenizationEvmContractCallParams.md +1 -1
  186. package/docs/TokenizationIssueEstimateFeeParams.md +1 -0
  187. package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -2
  188. package/docs/TokenizationIssuedTokenRequest.md +2 -1
  189. package/docs/TokenizationMintEstimateFeeParams.md +1 -0
  190. package/docs/TokenizationMintTokenRequest.md +1 -0
  191. package/docs/TokenizationMpcOperationSource.md +1 -1
  192. package/docs/TokenizationPauseEstimateFeeParams.md +1 -0
  193. package/docs/TokenizationPauseTokenRequest.md +1 -0
  194. package/docs/TokenizationSOLTokenParams.md +14 -0
  195. package/docs/TokenizationSolContractCallParams.md +10 -0
  196. package/docs/TokenizationSolTokenPermissionParams.md +13 -0
  197. package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +1 -0
  198. package/docs/TokenizationTokenDetailInfo.md +1 -1
  199. package/docs/TokenizationTokenInfo.md +1 -1
  200. package/docs/TokenizationTokenOperationSource.md +1 -1
  201. package/docs/TokenizationTokenPermissionType.md +6 -0
  202. package/docs/TokenizationTokenStandard.md +2 -0
  203. package/docs/TokenizationUnpauseEstimateFeeParams.md +1 -0
  204. package/docs/TokenizationUnpauseTokenRequest.md +1 -0
  205. package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +1 -0
  206. package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +1 -1
  207. package/docs/TokenizationUpdateAllowlistAddressesRequest.md +1 -0
  208. package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +1 -0
  209. package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +1 -1
  210. package/docs/TokenizationUpdateBlocklistAddressesRequest.md +1 -0
  211. package/docs/TokenizationWeb3OperationSource.md +1 -1
  212. package/docs/TokensEventData.md +1 -1
  213. package/docs/TransactionWebhookEventData.md +1 -1
  214. package/docs/TransactionsApi.md +113 -1
  215. package/docs/UpdateCustodialWalletParams.md +2 -1
  216. package/docs/UpdateMpcWalletParams.md +2 -1
  217. package/docs/UpdateTopUpAddress.md +1 -1
  218. package/docs/UpdateWalletParams.md +1 -0
  219. package/docs/WalletInfo.md +1 -0
  220. package/docs/WalletInfoEventData.md +1 -1
  221. package/docs/WalletsApi.md +1 -1
  222. package/docs/WebhookEventData.md +9 -7
  223. package/docs/WebhookEventDataType.md +1 -1
  224. package/package.json +1 -1
@@ -0,0 +1,173 @@
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 _TokenizationSolTokenPermissionParams = _interopRequireDefault(require("./TokenizationSolTokenPermissionParams"));
9
+ var _TokenizationTokenStandard = _interopRequireDefault(require("./TokenizationTokenStandard"));
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 TokenizationSOLTokenParams model module.
31
+ * @module model/TokenizationSOLTokenParams
32
+ */
33
+ var TokenizationSOLTokenParams = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>TokenizationSOLTokenParams</code>.
36
+ * @alias module:model/TokenizationSOLTokenParams
37
+ * @param standard {module:model/TokenizationTokenStandard}
38
+ * @param name {String} The name of the token.
39
+ * @param symbol {String} The symbol of the token.
40
+ * @param decimals {Number} The number of decimals for the token (0-18).
41
+ */
42
+ function TokenizationSOLTokenParams(standard, name, symbol, decimals) {
43
+ _classCallCheck(this, TokenizationSOLTokenParams);
44
+ TokenizationSOLTokenParams.initialize(this, standard, name, symbol, decimals);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(TokenizationSOLTokenParams, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, standard, name, symbol, decimals) {
55
+ obj['standard'] = standard;
56
+ obj['name'] = name;
57
+ obj['symbol'] = symbol;
58
+ obj['decimals'] = decimals;
59
+ }
60
+
61
+ /**
62
+ * Constructs a <code>TokenizationSOLTokenParams</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/TokenizationSOLTokenParams} obj Optional instance to populate.
66
+ * @return {module:model/TokenizationSOLTokenParams} The populated <code>TokenizationSOLTokenParams</code> instance.
67
+ */
68
+ }, {
69
+ key: "constructFromObject",
70
+ value: function constructFromObject(data, obj) {
71
+ if (data) {
72
+ obj = obj || new TokenizationSOLTokenParams();
73
+ if (data.hasOwnProperty('standard')) {
74
+ obj['standard'] = _TokenizationTokenStandard["default"].constructFromObject(data['standard']);
75
+ }
76
+ if (data.hasOwnProperty('name')) {
77
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('symbol')) {
80
+ obj['symbol'] = _ApiClient["default"].convertToType(data['symbol'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('decimals')) {
83
+ obj['decimals'] = _ApiClient["default"].convertToType(data['decimals'], 'Number');
84
+ }
85
+ if (data.hasOwnProperty('token_access_activated')) {
86
+ obj['token_access_activated'] = _ApiClient["default"].convertToType(data['token_access_activated'], 'Boolean');
87
+ }
88
+ if (data.hasOwnProperty('permissions')) {
89
+ obj['permissions'] = _TokenizationSolTokenPermissionParams["default"].constructFromObject(data['permissions']);
90
+ }
91
+ }
92
+ return obj;
93
+ }
94
+
95
+ /**
96
+ * Validates the JSON data with respect to <code>TokenizationSOLTokenParams</code>.
97
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
98
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TokenizationSOLTokenParams</code>.
99
+ */
100
+ }, {
101
+ key: "validateJSON",
102
+ value: function validateJSON(data) {
103
+ // check to make sure all required properties are present in the JSON string
104
+ var _iterator = _createForOfIteratorHelper(TokenizationSOLTokenParams.RequiredProperties),
105
+ _step;
106
+ try {
107
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
108
+ var property = _step.value;
109
+ if (!data.hasOwnProperty(property)) {
110
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
111
+ }
112
+ }
113
+ // ensure the json data is a string
114
+ } catch (err) {
115
+ _iterator.e(err);
116
+ } finally {
117
+ _iterator.f();
118
+ }
119
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
120
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data['symbol'] && !(typeof data['symbol'] === 'string' || data['symbol'] instanceof String)) {
124
+ throw new Error("Expected the field `symbol` to be a primitive type in the JSON string but got " + data['symbol']);
125
+ }
126
+ // validate the optional field `permissions`
127
+ if (data['permissions']) {
128
+ // data not null
129
+ if (!!_TokenizationSolTokenPermissionParams["default"].validateJSON) {
130
+ _TokenizationSolTokenPermissionParams["default"].validateJSON(data['permissions']);
131
+ }
132
+ }
133
+ return true;
134
+ }
135
+ }]);
136
+ }();
137
+ TokenizationSOLTokenParams.RequiredProperties = ["standard", "name", "symbol", "decimals"];
138
+
139
+ /**
140
+ * @member {module:model/TokenizationTokenStandard} standard
141
+ */
142
+ TokenizationSOLTokenParams.prototype['standard'] = undefined;
143
+
144
+ /**
145
+ * The name of the token.
146
+ * @member {String} name
147
+ */
148
+ TokenizationSOLTokenParams.prototype['name'] = undefined;
149
+
150
+ /**
151
+ * The symbol of the token.
152
+ * @member {String} symbol
153
+ */
154
+ TokenizationSOLTokenParams.prototype['symbol'] = undefined;
155
+
156
+ /**
157
+ * The number of decimals for the token (0-18).
158
+ * @member {Number} decimals
159
+ */
160
+ TokenizationSOLTokenParams.prototype['decimals'] = undefined;
161
+
162
+ /**
163
+ * Whether the allowlist feature is activated for the token. When activated, only addresses in the allowlist can perform token operations.
164
+ * @member {Boolean} token_access_activated
165
+ * @default false
166
+ */
167
+ TokenizationSOLTokenParams.prototype['token_access_activated'] = false;
168
+
169
+ /**
170
+ * @member {module:model/TokenizationSolTokenPermissionParams} permissions
171
+ */
172
+ TokenizationSOLTokenParams.prototype['permissions'] = undefined;
173
+ var _default = exports["default"] = TokenizationSOLTokenParams;
@@ -0,0 +1,137 @@
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 _SolContractCallInstruction = _interopRequireDefault(require("./SolContractCallInstruction"));
9
+ var _TokenizationContractCallType = _interopRequireDefault(require("./TokenizationContractCallType"));
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 TokenizationSolContractCallParams model module.
31
+ * @module model/TokenizationSolContractCallParams
32
+ */
33
+ var TokenizationSolContractCallParams = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>TokenizationSolContractCallParams</code>.
36
+ * The information about the Solana program call.
37
+ * @alias module:model/TokenizationSolContractCallParams
38
+ * @param instructions {Array.<module:model/SolContractCallInstruction>}
39
+ */
40
+ function TokenizationSolContractCallParams(instructions) {
41
+ _classCallCheck(this, TokenizationSolContractCallParams);
42
+ TokenizationSolContractCallParams.initialize(this, instructions);
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(TokenizationSolContractCallParams, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, instructions) {
53
+ obj['instructions'] = instructions;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>TokenizationSolContractCallParams</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/TokenizationSolContractCallParams} obj Optional instance to populate.
61
+ * @return {module:model/TokenizationSolContractCallParams} The populated <code>TokenizationSolContractCallParams</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new TokenizationSolContractCallParams();
68
+ if (data.hasOwnProperty('type')) {
69
+ obj['type'] = _TokenizationContractCallType["default"].constructFromObject(data['type']);
70
+ }
71
+ if (data.hasOwnProperty('instructions')) {
72
+ obj['instructions'] = _ApiClient["default"].convertToType(data['instructions'], [_SolContractCallInstruction["default"]]);
73
+ }
74
+ }
75
+ return obj;
76
+ }
77
+
78
+ /**
79
+ * Validates the JSON data with respect to <code>TokenizationSolContractCallParams</code>.
80
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
81
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TokenizationSolContractCallParams</code>.
82
+ */
83
+ }, {
84
+ key: "validateJSON",
85
+ value: function validateJSON(data) {
86
+ // check to make sure all required properties are present in the JSON string
87
+ var _iterator = _createForOfIteratorHelper(TokenizationSolContractCallParams.RequiredProperties),
88
+ _step;
89
+ try {
90
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
91
+ var property = _step.value;
92
+ if (!data.hasOwnProperty(property)) {
93
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
94
+ }
95
+ }
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ if (data['instructions']) {
102
+ // data not null
103
+ // ensure the json data is an array
104
+ if (!Array.isArray(data['instructions'])) {
105
+ throw new Error("Expected the field `instructions` to be an array in the JSON data but got " + data['instructions']);
106
+ }
107
+ // validate the optional field `instructions` (array)
108
+ var _iterator2 = _createForOfIteratorHelper(data['instructions']),
109
+ _step2;
110
+ try {
111
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
112
+ var item = _step2.value;
113
+ _SolContractCallInstruction["default"].validateJSON(item);
114
+ }
115
+ } catch (err) {
116
+ _iterator2.e(err);
117
+ } finally {
118
+ _iterator2.f();
119
+ }
120
+ ;
121
+ }
122
+ return true;
123
+ }
124
+ }]);
125
+ }();
126
+ TokenizationSolContractCallParams.RequiredProperties = ["instructions"];
127
+
128
+ /**
129
+ * @member {module:model/TokenizationContractCallType} type
130
+ */
131
+ TokenizationSolContractCallParams.prototype['type'] = undefined;
132
+
133
+ /**
134
+ * @member {Array.<module:model/SolContractCallInstruction>} instructions
135
+ */
136
+ TokenizationSolContractCallParams.prototype['instructions'] = undefined;
137
+ var _default = exports["default"] = TokenizationSolContractCallParams;
@@ -0,0 +1,140 @@
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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
+ 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); } /**
15
+ * Cobo Wallet as a Service 2.0
16
+ *
17
+ * Contact: help@cobo.com
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The TokenizationSolTokenPermissionParams model module.
26
+ * @module model/TokenizationSolTokenPermissionParams
27
+ */
28
+ var TokenizationSolTokenPermissionParams = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>TokenizationSolTokenPermissionParams</code>.
31
+ * Role-based permission settings for the Solana Token-2022 Program. If not provided, all permissions will be granted to the issuing wallet by default.
32
+ * @alias module:model/TokenizationSolTokenPermissionParams
33
+ */
34
+ function TokenizationSolTokenPermissionParams() {
35
+ _classCallCheck(this, TokenizationSolTokenPermissionParams);
36
+ TokenizationSolTokenPermissionParams.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ return _createClass(TokenizationSolTokenPermissionParams, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>TokenizationSolTokenPermissionParams</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/TokenizationSolTokenPermissionParams} obj Optional instance to populate.
53
+ * @return {module:model/TokenizationSolTokenPermissionParams} The populated <code>TokenizationSolTokenPermissionParams</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new TokenizationSolTokenPermissionParams();
60
+ if (data.hasOwnProperty('permanent_delegate')) {
61
+ obj['permanent_delegate'] = _ApiClient["default"].convertToType(data['permanent_delegate'], 'String');
62
+ }
63
+ if (data.hasOwnProperty('minter')) {
64
+ obj['minter'] = _ApiClient["default"].convertToType(data['minter'], 'String');
65
+ }
66
+ if (data.hasOwnProperty('freezer')) {
67
+ obj['freezer'] = _ApiClient["default"].convertToType(data['freezer'], 'String');
68
+ }
69
+ if (data.hasOwnProperty('updater')) {
70
+ obj['updater'] = _ApiClient["default"].convertToType(data['updater'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('pauser')) {
73
+ obj['pauser'] = _ApiClient["default"].convertToType(data['pauser'], 'String');
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+
79
+ /**
80
+ * Validates the JSON data with respect to <code>TokenizationSolTokenPermissionParams</code>.
81
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
82
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TokenizationSolTokenPermissionParams</code>.
83
+ */
84
+ }, {
85
+ key: "validateJSON",
86
+ value: function validateJSON(data) {
87
+ // ensure the json data is a string
88
+ if (data['permanent_delegate'] && !(typeof data['permanent_delegate'] === 'string' || data['permanent_delegate'] instanceof String)) {
89
+ throw new Error("Expected the field `permanent_delegate` to be a primitive type in the JSON string but got " + data['permanent_delegate']);
90
+ }
91
+ // ensure the json data is a string
92
+ if (data['minter'] && !(typeof data['minter'] === 'string' || data['minter'] instanceof String)) {
93
+ throw new Error("Expected the field `minter` to be a primitive type in the JSON string but got " + data['minter']);
94
+ }
95
+ // ensure the json data is a string
96
+ if (data['freezer'] && !(typeof data['freezer'] === 'string' || data['freezer'] instanceof String)) {
97
+ throw new Error("Expected the field `freezer` to be a primitive type in the JSON string but got " + data['freezer']);
98
+ }
99
+ // ensure the json data is a string
100
+ if (data['updater'] && !(typeof data['updater'] === 'string' || data['updater'] instanceof String)) {
101
+ throw new Error("Expected the field `updater` to be a primitive type in the JSON string but got " + data['updater']);
102
+ }
103
+ // ensure the json data is a string
104
+ if (data['pauser'] && !(typeof data['pauser'] === 'string' || data['pauser'] instanceof String)) {
105
+ throw new Error("Expected the field `pauser` to be a primitive type in the JSON string but got " + data['pauser']);
106
+ }
107
+ return true;
108
+ }
109
+ }]);
110
+ }();
111
+ /**
112
+ * Solana wallet address assigned as the permanent delegate authority. It can perform delegated operations on behalf of token holders.
113
+ * @member {String} permanent_delegate
114
+ */
115
+ TokenizationSolTokenPermissionParams.prototype['permanent_delegate'] = undefined;
116
+
117
+ /**
118
+ * Solana wallet address assigned as the mint authority. It can mint new tokens.
119
+ * @member {String} minter
120
+ */
121
+ TokenizationSolTokenPermissionParams.prototype['minter'] = undefined;
122
+
123
+ /**
124
+ * Solana wallet address assigned as the freeze authority. It can freeze token accounts.
125
+ * @member {String} freezer
126
+ */
127
+ TokenizationSolTokenPermissionParams.prototype['freezer'] = undefined;
128
+
129
+ /**
130
+ * Solana wallet address assigned as the update authority. It can update token metadata.
131
+ * @member {String} updater
132
+ */
133
+ TokenizationSolTokenPermissionParams.prototype['updater'] = undefined;
134
+
135
+ /**
136
+ * Solana wallet address assigned as the pause authority. It can pause or unpause all token activities including transfers, burns, and mints.
137
+ * @member {String} pauser
138
+ */
139
+ TokenizationSolTokenPermissionParams.prototype['pauser'] = undefined;
140
+ var _default = exports["default"] = TokenizationSolTokenPermissionParams;
@@ -86,6 +86,9 @@ var TokenizationToggleAllowlistEstimateFeeParams = /*#__PURE__*/function () {
86
86
  if (data.hasOwnProperty('token_id')) {
87
87
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
88
88
  }
89
+ if (data.hasOwnProperty('request_id')) {
90
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
91
+ }
89
92
  }
90
93
  return obj;
91
94
  }
@@ -124,6 +127,10 @@ var TokenizationToggleAllowlistEstimateFeeParams = /*#__PURE__*/function () {
124
127
  if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
125
128
  throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
126
129
  }
130
+ // ensure the json data is a string
131
+ if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
132
+ throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
133
+ }
127
134
  return true;
128
135
  }
129
136
  }]);
@@ -152,6 +159,12 @@ TokenizationToggleAllowlistEstimateFeeParams.prototype['operation_type'] = undef
152
159
  */
153
160
  TokenizationToggleAllowlistEstimateFeeParams.prototype['token_id'] = undefined;
154
161
 
162
+ /**
163
+ * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
164
+ * @member {String} request_id
165
+ */
166
+ TokenizationToggleAllowlistEstimateFeeParams.prototype['request_id'] = undefined;
167
+
155
168
  // Implement TokenizationAllowlistActivationParams interface:
156
169
  /**
157
170
  * @member {module:model/TokenizationTokenOperationSource} source
@@ -94,8 +94,8 @@ var TokenizationTokenDetailInfo = /*#__PURE__*/function () {
94
94
  if (data.hasOwnProperty('decimals')) {
95
95
  obj['decimals'] = _ApiClient["default"].convertToType(data['decimals'], 'Number');
96
96
  }
97
- if (data.hasOwnProperty('allowlist_activated')) {
98
- obj['allowlist_activated'] = _ApiClient["default"].convertToType(data['allowlist_activated'], 'Boolean');
97
+ if (data.hasOwnProperty('token_access_activated')) {
98
+ obj['token_access_activated'] = _ApiClient["default"].convertToType(data['token_access_activated'], 'Boolean');
99
99
  }
100
100
  if (data.hasOwnProperty('status')) {
101
101
  obj['status'] = _TokenizationStatus["default"].constructFromObject(data['status']);
@@ -229,9 +229,9 @@ TokenizationTokenDetailInfo.prototype['decimals'] = undefined;
229
229
 
230
230
  /**
231
231
  * Whether the allowlist feature is activated for the token.
232
- * @member {Boolean} allowlist_activated
232
+ * @member {Boolean} token_access_activated
233
233
  */
234
- TokenizationTokenDetailInfo.prototype['allowlist_activated'] = undefined;
234
+ TokenizationTokenDetailInfo.prototype['token_access_activated'] = undefined;
235
235
 
236
236
  /**
237
237
  * @member {module:model/TokenizationStatus} status
@@ -289,9 +289,9 @@ _TokenizationTokenInfo["default"].prototype['token_symbol'] = undefined;
289
289
  _TokenizationTokenInfo["default"].prototype['decimals'] = undefined;
290
290
  /**
291
291
  * Whether the allowlist feature is activated for the token.
292
- * @member {Boolean} allowlist_activated
292
+ * @member {Boolean} token_access_activated
293
293
  */
294
- _TokenizationTokenInfo["default"].prototype['allowlist_activated'] = undefined;
294
+ _TokenizationTokenInfo["default"].prototype['token_access_activated'] = undefined;
295
295
  /**
296
296
  * @member {module:model/TokenizationStatus} status
297
297
  */
@@ -89,8 +89,8 @@ var TokenizationTokenInfo = /*#__PURE__*/function () {
89
89
  if (data.hasOwnProperty('decimals')) {
90
90
  obj['decimals'] = _ApiClient["default"].convertToType(data['decimals'], 'Number');
91
91
  }
92
- if (data.hasOwnProperty('allowlist_activated')) {
93
- obj['allowlist_activated'] = _ApiClient["default"].convertToType(data['allowlist_activated'], 'Boolean');
92
+ if (data.hasOwnProperty('token_access_activated')) {
93
+ obj['token_access_activated'] = _ApiClient["default"].convertToType(data['token_access_activated'], 'Boolean');
94
94
  }
95
95
  if (data.hasOwnProperty('status')) {
96
96
  obj['status'] = _TokenizationStatus["default"].constructFromObject(data['status']);
@@ -200,9 +200,9 @@ TokenizationTokenInfo.prototype['decimals'] = undefined;
200
200
 
201
201
  /**
202
202
  * Whether the allowlist feature is activated for the token.
203
- * @member {Boolean} allowlist_activated
203
+ * @member {Boolean} token_access_activated
204
204
  */
205
- TokenizationTokenInfo.prototype['allowlist_activated'] = undefined;
205
+ TokenizationTokenInfo.prototype['token_access_activated'] = undefined;
206
206
 
207
207
  /**
208
208
  * @member {module:model/TokenizationStatus} status
@@ -184,7 +184,7 @@ TokenizationTokenOperationSource.prototype['source_type'] = undefined;
184
184
  TokenizationTokenOperationSource.prototype['wallet_id'] = undefined;
185
185
 
186
186
  /**
187
- * The wallet address to interact with the token contract from.
187
+ * The wallet address used to interact with the token contract.
188
188
  * @member {String} address
189
189
  */
190
190
  TokenizationTokenOperationSource.prototype['address'] = undefined;
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  var TokenizationTokenPermissionParams = /*#__PURE__*/function () {
29
29
  /**
30
30
  * Constructs a new <code>TokenizationTokenPermissionParams</code>.
31
- * Role-based permission settings for token contract. If not provided, all permissions will be granted to the issuance wallet by default.
31
+ * Role-based permission settings for token contract. If not provided, all permissions will be granted to the issuing wallet by default.
32
32
  * @alias module:model/TokenizationTokenPermissionParams
33
33
  */
34
34
  function TokenizationTokenPermissionParams() {
@@ -65,6 +65,21 @@ var TokenizationTokenPermissionType = exports["default"] = /*#__PURE__*/function
65
65
  * @const
66
66
  */
67
67
  _defineProperty(this, "PauseContract", "PauseContract");
68
+ /**
69
+ * value: "FreezeAccounts"
70
+ * @const
71
+ */
72
+ _defineProperty(this, "FreezeAccounts", "FreezeAccounts");
73
+ /**
74
+ * value: "UpdateMetadata"
75
+ * @const
76
+ */
77
+ _defineProperty(this, "UpdateMetadata", "UpdateMetadata");
78
+ /**
79
+ * value: "PermanentDelegate"
80
+ * @const
81
+ */
82
+ _defineProperty(this, "PermanentDelegate", "PermanentDelegate");
68
83
  /**
69
84
  * value: "unknown_default_open_api"
70
85
  * @const
@@ -35,6 +35,11 @@ var TokenizationTokenStandard = exports["default"] = /*#__PURE__*/function () {
35
35
  * @const
36
36
  */
37
37
  _defineProperty(this, "ERC20", "ERC20");
38
+ /**
39
+ * value: "SPLToken2022"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "SPLToken2022", "SPLToken2022");
38
43
  /**
39
44
  * value: "unknown_default_open_api"
40
45
  * @const
@@ -81,6 +81,9 @@ var TokenizationUnpauseEstimateFeeParams = /*#__PURE__*/function () {
81
81
  if (data.hasOwnProperty('token_id')) {
82
82
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
83
83
  }
84
+ if (data.hasOwnProperty('request_id')) {
85
+ obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
86
+ }
84
87
  }
85
88
  return obj;
86
89
  }
@@ -119,6 +122,10 @@ var TokenizationUnpauseEstimateFeeParams = /*#__PURE__*/function () {
119
122
  if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
120
123
  throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
121
124
  }
125
+ // ensure the json data is a string
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
+ }
122
129
  return true;
123
130
  }
124
131
  }]);
@@ -141,6 +148,12 @@ TokenizationUnpauseEstimateFeeParams.prototype['operation_type'] = undefined;
141
148
  */
142
149
  TokenizationUnpauseEstimateFeeParams.prototype['token_id'] = undefined;
143
150
 
151
+ /**
152
+ * The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
153
+ * @member {String} request_id
154
+ */
155
+ TokenizationUnpauseEstimateFeeParams.prototype['request_id'] = undefined;
156
+
144
157
  // Implement TokenizationUnpauseTokenParams interface:
145
158
  /**
146
159
  * @member {module:model/TokenizationTokenOperationSource} source