@corellium/corellium-cli 1.3.4 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. package/coverage/cobertura-coverage.xml +1 -1
  2. package/coverage/lcov-report/index.html +1 -1
  3. package/node_modules/@corellium/client-api/README.md +177 -14
  4. package/node_modules/@corellium/client-api/dist/ApiClient.js +67 -138
  5. package/node_modules/@corellium/client-api/dist/api/CorelliumApi.js +4668 -905
  6. package/node_modules/@corellium/client-api/dist/index.js +469 -37
  7. package/node_modules/@corellium/client-api/dist/model/Address.js +158 -0
  8. package/node_modules/@corellium/client-api/dist/model/AgentApp.js +159 -0
  9. package/node_modules/@corellium/client-api/dist/model/AgentAppReadyResponse.js +112 -0
  10. package/node_modules/@corellium/client-api/dist/model/AgentAppStatus.js +102 -0
  11. package/node_modules/@corellium/client-api/dist/model/AgentAppsList.js +127 -0
  12. package/node_modules/@corellium/client-api/dist/model/AgentAppsStatusList.js +127 -0
  13. package/node_modules/@corellium/client-api/dist/model/AgentError.js +153 -0
  14. package/node_modules/@corellium/client-api/dist/model/AgentIcons.js +89 -0
  15. package/node_modules/@corellium/client-api/dist/model/AgentInstallBody.js +93 -0
  16. package/node_modules/@corellium/client-api/dist/model/AgentProfilesReturn.js +116 -0
  17. package/node_modules/@corellium/client-api/dist/model/AgentSystemAdbAuth.js +89 -0
  18. package/node_modules/@corellium/client-api/dist/model/AgentSystemGetPropBody.js +116 -0
  19. package/node_modules/@corellium/client-api/dist/model/AgentValueReturn.js +93 -0
  20. package/node_modules/@corellium/client-api/dist/model/AgreedAck.js +89 -0
  21. package/node_modules/@corellium/client-api/dist/model/ApiConflictError.js +61 -22
  22. package/node_modules/@corellium/client-api/dist/model/ApiError.js +64 -21
  23. package/node_modules/@corellium/client-api/dist/model/ApiInternalConsistencyError.js +144 -0
  24. package/node_modules/@corellium/client-api/dist/model/ApiNotFoundError.js +65 -23
  25. package/node_modules/@corellium/client-api/dist/model/ApiToken.js +55 -17
  26. package/node_modules/@corellium/client-api/dist/model/Bit.js +24 -14
  27. package/node_modules/@corellium/client-api/dist/model/BtraceEnableOptions.js +93 -0
  28. package/node_modules/@corellium/client-api/dist/model/Button.js +90 -0
  29. package/node_modules/@corellium/client-api/dist/model/CouponOptions.js +161 -0
  30. package/node_modules/@corellium/client-api/dist/model/CreateTeam.js +116 -0
  31. package/node_modules/@corellium/client-api/dist/model/CreatedBy.js +128 -0
  32. package/node_modules/@corellium/client-api/dist/model/Credentials.js +59 -19
  33. package/node_modules/@corellium/client-api/dist/model/DomainOptions.js +103 -0
  34. package/node_modules/@corellium/client-api/dist/model/Extension.js +167 -0
  35. package/node_modules/@corellium/client-api/dist/model/Features.js +260 -0
  36. package/node_modules/@corellium/client-api/dist/model/FileChanges.js +120 -0
  37. package/node_modules/@corellium/client-api/dist/model/Firmware.js +97 -46
  38. package/node_modules/@corellium/client-api/dist/model/GpioStateDefinition.js +55 -20
  39. package/node_modules/@corellium/client-api/dist/model/GpiosState.js +120 -0
  40. package/node_modules/@corellium/client-api/dist/model/GrantTrialRequestResponse.js +93 -0
  41. package/node_modules/@corellium/client-api/dist/model/Hook.js +211 -0
  42. package/node_modules/@corellium/client-api/dist/model/Image.js +99 -49
  43. package/node_modules/@corellium/client-api/dist/model/Instance.js +201 -71
  44. package/node_modules/@corellium/client-api/dist/model/InstanceAgentState.js +106 -0
  45. package/node_modules/@corellium/client-api/dist/model/InstanceBootOptions.js +72 -29
  46. package/node_modules/@corellium/client-api/dist/model/InstanceBootOptionsAdditionalTag.js +90 -0
  47. package/node_modules/@corellium/client-api/dist/model/InstanceConsoleEndpoint.js +34 -17
  48. package/node_modules/@corellium/client-api/dist/model/InstanceCreateOptions.js +126 -49
  49. package/node_modules/@corellium/client-api/dist/model/InstanceInput.js +181 -0
  50. package/node_modules/@corellium/client-api/dist/model/InstanceNetdumpState.js +115 -0
  51. package/node_modules/@corellium/client-api/dist/model/InstanceNetmonState.js +56 -16
  52. package/node_modules/@corellium/client-api/dist/model/InstanceReturn.js +55 -20
  53. package/node_modules/@corellium/client-api/dist/model/InstanceServices.js +35 -18
  54. package/node_modules/@corellium/client-api/dist/model/InstanceStartOptions.js +39 -17
  55. package/node_modules/@corellium/client-api/dist/model/InstanceState.js +52 -21
  56. package/node_modules/@corellium/client-api/dist/model/InstanceStopOptions.js +30 -17
  57. package/node_modules/@corellium/client-api/dist/model/InstanceUpgradeBody.js +129 -0
  58. package/node_modules/@corellium/client-api/dist/model/Invitation.js +115 -0
  59. package/node_modules/@corellium/client-api/dist/model/InviteRevokeParams.js +94 -0
  60. package/node_modules/@corellium/client-api/dist/model/InviteRevokeParamsIds.js +150 -0
  61. package/node_modules/@corellium/client-api/dist/model/Kcrange.js +106 -0
  62. package/node_modules/@corellium/client-api/dist/model/KernelTask.js +149 -0
  63. package/node_modules/@corellium/client-api/dist/model/KernelThread.js +115 -0
  64. package/node_modules/@corellium/client-api/dist/model/MediaPlayBody.js +106 -0
  65. package/node_modules/@corellium/client-api/dist/model/Model.js +97 -35
  66. package/node_modules/@corellium/client-api/dist/model/ModelSoftware.js +77 -28
  67. package/node_modules/@corellium/client-api/dist/model/NetdumpFilter.js +158 -0
  68. package/node_modules/@corellium/client-api/dist/model/PasswordChangeBody.js +146 -0
  69. package/node_modules/@corellium/client-api/dist/model/PasswordResetBody.js +146 -0
  70. package/node_modules/@corellium/client-api/dist/model/PatchInstanceOptions.js +182 -0
  71. package/node_modules/@corellium/client-api/dist/model/PeripheralsData.js +63 -33
  72. package/node_modules/@corellium/client-api/dist/model/Plan.js +106 -0
  73. package/node_modules/@corellium/client-api/dist/model/Project.js +77 -28
  74. package/node_modules/@corellium/client-api/dist/model/ProjectKey.js +206 -0
  75. package/node_modules/@corellium/client-api/dist/model/ProjectQuota.js +35 -21
  76. package/node_modules/@corellium/client-api/dist/model/ProjectSettings.js +35 -21
  77. package/node_modules/@corellium/client-api/dist/model/ProjectUsage.js +37 -23
  78. package/node_modules/@corellium/client-api/dist/model/ProxyConfig.js +116 -0
  79. package/node_modules/@corellium/client-api/dist/model/RateInfo.js +98 -0
  80. package/node_modules/@corellium/client-api/dist/model/ResetLinkBody.js +116 -0
  81. package/node_modules/@corellium/client-api/dist/model/Role.js +164 -0
  82. package/node_modules/@corellium/client-api/dist/model/RotateBody.js +140 -0
  83. package/node_modules/@corellium/client-api/dist/model/Snapshot.js +56 -32
  84. package/node_modules/@corellium/client-api/dist/model/SnapshotCreationOptions.js +54 -17
  85. package/node_modules/@corellium/client-api/dist/model/SnapshotStatus.js +37 -19
  86. package/node_modules/@corellium/client-api/dist/model/SubscriberInvite.js +277 -0
  87. package/node_modules/@corellium/client-api/dist/model/Team.js +162 -0
  88. package/node_modules/@corellium/client-api/dist/model/TeamCreate.js +93 -0
  89. package/node_modules/@corellium/client-api/dist/model/TextInput.js +93 -0
  90. package/node_modules/@corellium/client-api/dist/model/Token.js +56 -19
  91. package/node_modules/@corellium/client-api/dist/model/TouchCurveInput.js +98 -0
  92. package/node_modules/@corellium/client-api/dist/model/TouchInput.js +89 -0
  93. package/node_modules/@corellium/client-api/dist/model/Trial.js +112 -0
  94. package/node_modules/@corellium/client-api/dist/model/TrialExtension.js +124 -0
  95. package/node_modules/@corellium/client-api/dist/model/TrialRequestMetadata.js +146 -0
  96. package/node_modules/@corellium/client-api/dist/model/TrialRequestOptions.js +156 -0
  97. package/node_modules/@corellium/client-api/dist/model/UpdateExtension.js +89 -0
  98. package/node_modules/@corellium/client-api/dist/model/User.js +170 -0
  99. package/node_modules/@corellium/client-api/dist/model/UserError.js +65 -22
  100. package/node_modules/@corellium/client-api/dist/model/V1CreateHookParameters.js +179 -0
  101. package/node_modules/@corellium/client-api/dist/model/V1LoadExtensionParameters.js +116 -0
  102. package/node_modules/@corellium/client-api/dist/model/V1SetStateBody.js +50 -18
  103. package/node_modules/@corellium/client-api/dist/model/ValidationError.js +157 -0
  104. package/node_modules/@corellium/client-api/dist/model/VolumeOptions.js +42 -21
  105. package/node_modules/@corellium/client-api/dist/model/VpnDefinition.js +45 -23
  106. package/node_modules/@corellium/client-api/dist/model/WebPlayerCreateSessionRequest.js +171 -0
  107. package/node_modules/@corellium/client-api/dist/model/WebPlayerSession.js +142 -0
  108. package/node_modules/@corellium/client-api/package.json +1 -1
  109. package/package.json +2 -2
  110. package/renovate.json +96 -0
  111. package/src/commands/login.js +6 -4
  112. package/src/commands/mast/constants.js +1 -2
  113. package/src/commands/mast/create-assessment.js +2 -3
  114. package/src/commands/mast/delete-assessment.js +2 -3
  115. package/src/commands/mast/download-report.js +3 -4
  116. package/src/commands/mast/get-assessment.js +2 -3
  117. package/src/commands/mast/get-assessments.js +2 -3
  118. package/src/commands/mast/start-monitor.js +2 -3
  119. package/src/commands/mast/stop-monitor.js +2 -3
  120. package/src/commands/mast/test.js +2 -3
  121. package/src/commands/mast/api-base-path.js +0 -21
@@ -0,0 +1,277 @@
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 _CouponOptions = _interopRequireDefault(require("./CouponOptions"));
9
+ var _Plan = _interopRequireDefault(require("./Plan"));
10
+ var _Trial = _interopRequireDefault(require("./Trial"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
14
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
21
+ * Corellium API
22
+ * REST API to manage your virtual devices.
23
+ *
24
+ * The version of the OpenAPI document: 4.5.0-16775
25
+ *
26
+ *
27
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
28
+ * https://openapi-generator.tech
29
+ * Do not edit the class manually.
30
+ *
31
+ */
32
+ /**
33
+ * The SubscriberInvite model module.
34
+ * @module model/SubscriberInvite
35
+ * @version 0.3.2
36
+ */
37
+ var SubscriberInvite = /*#__PURE__*/function () {
38
+ /**
39
+ * Constructs a new <code>SubscriberInvite</code>.
40
+ * Subscriber Invite
41
+ * @alias module:model/SubscriberInvite
42
+ * @param couponCode {String} Coupon code
43
+ * @param aggregate {String} Aggregate
44
+ * @param active {Boolean} Is Active flag
45
+ * @param reusable {Boolean} Is reusable flag
46
+ * @param createdAt {String} Created Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z
47
+ * @param updatedAt {String} Updated Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z
48
+ */
49
+ function SubscriberInvite(couponCode, aggregate, active, reusable, createdAt, updatedAt) {
50
+ _classCallCheck(this, SubscriberInvite);
51
+ SubscriberInvite.initialize(this, couponCode, aggregate, active, reusable, createdAt, updatedAt);
52
+ }
53
+
54
+ /**
55
+ * Initializes the fields of this object.
56
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
57
+ * Only for internal use.
58
+ */
59
+ _createClass(SubscriberInvite, null, [{
60
+ key: "initialize",
61
+ value: function initialize(obj, couponCode, aggregate, active, reusable, createdAt, updatedAt) {
62
+ obj['coupon_code'] = couponCode;
63
+ obj['aggregate'] = aggregate;
64
+ obj['active'] = active;
65
+ obj['reusable'] = reusable;
66
+ obj['createdAt'] = createdAt;
67
+ obj['updatedAt'] = updatedAt;
68
+ }
69
+
70
+ /**
71
+ * Constructs a <code>SubscriberInvite</code> from a plain JavaScript object, optionally creating a new instance.
72
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
73
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
74
+ * @param {module:model/SubscriberInvite} obj Optional instance to populate.
75
+ * @return {module:model/SubscriberInvite} The populated <code>SubscriberInvite</code> instance.
76
+ */
77
+ }, {
78
+ key: "constructFromObject",
79
+ value: function constructFromObject(data, obj) {
80
+ if (data) {
81
+ obj = obj || new SubscriberInvite();
82
+ if (data.hasOwnProperty('coupon_options')) {
83
+ obj['coupon_options'] = _CouponOptions["default"].constructFromObject(data['coupon_options']);
84
+ }
85
+ if (data.hasOwnProperty('plan')) {
86
+ obj['plan'] = _Plan["default"].constructFromObject(data['plan']);
87
+ }
88
+ if (data.hasOwnProperty('trial')) {
89
+ obj['trial'] = _Trial["default"].constructFromObject(data['trial']);
90
+ }
91
+ if (data.hasOwnProperty('name')) {
92
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
93
+ }
94
+ if (data.hasOwnProperty('email')) {
95
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
96
+ }
97
+ if (data.hasOwnProperty('coupon_code')) {
98
+ obj['coupon_code'] = _ApiClient["default"].convertToType(data['coupon_code'], 'String');
99
+ }
100
+ if (data.hasOwnProperty('domain')) {
101
+ obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String');
102
+ }
103
+ if (data.hasOwnProperty('aggregate')) {
104
+ obj['aggregate'] = _ApiClient["default"].convertToType(data['aggregate'], 'String');
105
+ }
106
+ if (data.hasOwnProperty('use_by')) {
107
+ obj['use_by'] = _ApiClient["default"].convertToType(data['use_by'], 'String');
108
+ }
109
+ if (data.hasOwnProperty('active')) {
110
+ obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean');
111
+ }
112
+ if (data.hasOwnProperty('reusable')) {
113
+ obj['reusable'] = _ApiClient["default"].convertToType(data['reusable'], 'Boolean');
114
+ }
115
+ if (data.hasOwnProperty('createdAt')) {
116
+ obj['createdAt'] = _ApiClient["default"].convertToType(data['createdAt'], 'String');
117
+ }
118
+ if (data.hasOwnProperty('updatedAt')) {
119
+ obj['updatedAt'] = _ApiClient["default"].convertToType(data['updatedAt'], 'String');
120
+ }
121
+ }
122
+ return obj;
123
+ }
124
+
125
+ /**
126
+ * Validates the JSON data with respect to <code>SubscriberInvite</code>.
127
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
128
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SubscriberInvite</code>.
129
+ */
130
+ }, {
131
+ key: "validateJSON",
132
+ value: function validateJSON(data) {
133
+ // check to make sure all required properties are present in the JSON string
134
+ var _iterator = _createForOfIteratorHelper(SubscriberInvite.RequiredProperties),
135
+ _step;
136
+ try {
137
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
138
+ var property = _step.value;
139
+ if (!data[property]) {
140
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
141
+ }
142
+ }
143
+ // validate the optional field `coupon_options`
144
+ } catch (err) {
145
+ _iterator.e(err);
146
+ } finally {
147
+ _iterator.f();
148
+ }
149
+ if (data['coupon_options']) {
150
+ // data not null
151
+ _CouponOptions["default"].validateJSON(data['coupon_options']);
152
+ }
153
+ // validate the optional field `plan`
154
+ if (data['plan']) {
155
+ // data not null
156
+ _Plan["default"].validateJSON(data['plan']);
157
+ }
158
+ // validate the optional field `trial`
159
+ if (data['trial']) {
160
+ // data not null
161
+ _Trial["default"].validateJSON(data['trial']);
162
+ }
163
+ // ensure the json data is a string
164
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
165
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
166
+ }
167
+ // ensure the json data is a string
168
+ if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
169
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
170
+ }
171
+ // ensure the json data is a string
172
+ if (data['coupon_code'] && !(typeof data['coupon_code'] === 'string' || data['coupon_code'] instanceof String)) {
173
+ throw new Error("Expected the field `coupon_code` to be a primitive type in the JSON string but got " + data['coupon_code']);
174
+ }
175
+ // ensure the json data is a string
176
+ if (data['domain'] && !(typeof data['domain'] === 'string' || data['domain'] instanceof String)) {
177
+ throw new Error("Expected the field `domain` to be a primitive type in the JSON string but got " + data['domain']);
178
+ }
179
+ // ensure the json data is a string
180
+ if (data['aggregate'] && !(typeof data['aggregate'] === 'string' || data['aggregate'] instanceof String)) {
181
+ throw new Error("Expected the field `aggregate` to be a primitive type in the JSON string but got " + data['aggregate']);
182
+ }
183
+ // ensure the json data is a string
184
+ if (data['use_by'] && !(typeof data['use_by'] === 'string' || data['use_by'] instanceof String)) {
185
+ throw new Error("Expected the field `use_by` to be a primitive type in the JSON string but got " + data['use_by']);
186
+ }
187
+ // ensure the json data is a string
188
+ if (data['createdAt'] && !(typeof data['createdAt'] === 'string' || data['createdAt'] instanceof String)) {
189
+ throw new Error("Expected the field `createdAt` to be a primitive type in the JSON string but got " + data['createdAt']);
190
+ }
191
+ // ensure the json data is a string
192
+ if (data['updatedAt'] && !(typeof data['updatedAt'] === 'string' || data['updatedAt'] instanceof String)) {
193
+ throw new Error("Expected the field `updatedAt` to be a primitive type in the JSON string but got " + data['updatedAt']);
194
+ }
195
+ return true;
196
+ }
197
+ }]);
198
+ return SubscriberInvite;
199
+ }();
200
+ SubscriberInvite.RequiredProperties = ["coupon_code", "aggregate", "active", "reusable", "createdAt", "updatedAt"];
201
+
202
+ /**
203
+ * @member {module:model/CouponOptions} coupon_options
204
+ */
205
+ SubscriberInvite.prototype['coupon_options'] = undefined;
206
+
207
+ /**
208
+ * @member {module:model/Plan} plan
209
+ */
210
+ SubscriberInvite.prototype['plan'] = undefined;
211
+
212
+ /**
213
+ * @member {module:model/Trial} trial
214
+ */
215
+ SubscriberInvite.prototype['trial'] = undefined;
216
+
217
+ /**
218
+ * Name
219
+ * @member {String} name
220
+ */
221
+ SubscriberInvite.prototype['name'] = undefined;
222
+
223
+ /**
224
+ * Email
225
+ * @member {String} email
226
+ */
227
+ SubscriberInvite.prototype['email'] = undefined;
228
+
229
+ /**
230
+ * Coupon code
231
+ * @member {String} coupon_code
232
+ */
233
+ SubscriberInvite.prototype['coupon_code'] = undefined;
234
+
235
+ /**
236
+ * Domain
237
+ * @member {String} domain
238
+ */
239
+ SubscriberInvite.prototype['domain'] = undefined;
240
+
241
+ /**
242
+ * Aggregate
243
+ * @member {String} aggregate
244
+ */
245
+ SubscriberInvite.prototype['aggregate'] = undefined;
246
+
247
+ /**
248
+ * Used By
249
+ * @member {String} use_by
250
+ */
251
+ SubscriberInvite.prototype['use_by'] = undefined;
252
+
253
+ /**
254
+ * Is Active flag
255
+ * @member {Boolean} active
256
+ */
257
+ SubscriberInvite.prototype['active'] = undefined;
258
+
259
+ /**
260
+ * Is reusable flag
261
+ * @member {Boolean} reusable
262
+ */
263
+ SubscriberInvite.prototype['reusable'] = undefined;
264
+
265
+ /**
266
+ * Created Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z
267
+ * @member {String} createdAt
268
+ */
269
+ SubscriberInvite.prototype['createdAt'] = undefined;
270
+
271
+ /**
272
+ * Updated Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z
273
+ * @member {String} updatedAt
274
+ */
275
+ SubscriberInvite.prototype['updatedAt'] = undefined;
276
+ var _default = SubscriberInvite;
277
+ exports["default"] = _default;
@@ -0,0 +1,162 @@
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 _User = _interopRequireDefault(require("./User"));
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
16
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
19
+ * Corellium API
20
+ * REST API to manage your virtual devices.
21
+ *
22
+ * The version of the OpenAPI document: 4.5.0-16775
23
+ *
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 Team model module.
32
+ * @module model/Team
33
+ * @version 0.3.2
34
+ */
35
+ var Team = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>Team</code>.
38
+ *
39
+ * @alias module:model/Team
40
+ * @param id {String} Team ID
41
+ * @param label {String} Team Label
42
+ */
43
+ function Team(id, label) {
44
+ _classCallCheck(this, Team);
45
+ Team.initialize(this, id, label);
46
+ }
47
+
48
+ /**
49
+ * Initializes the fields of this object.
50
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
+ * Only for internal use.
52
+ */
53
+ _createClass(Team, null, [{
54
+ key: "initialize",
55
+ value: function initialize(obj, id, label) {
56
+ obj['id'] = id;
57
+ obj['label'] = label;
58
+ }
59
+
60
+ /**
61
+ * Constructs a <code>Team</code> from a plain JavaScript object, optionally creating a new instance.
62
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
63
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
64
+ * @param {module:model/Team} obj Optional instance to populate.
65
+ * @return {module:model/Team} The populated <code>Team</code> instance.
66
+ */
67
+ }, {
68
+ key: "constructFromObject",
69
+ value: function constructFromObject(data, obj) {
70
+ if (data) {
71
+ obj = obj || new Team();
72
+ if (data.hasOwnProperty('id')) {
73
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('label')) {
76
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('users')) {
79
+ obj['users'] = _ApiClient["default"].convertToType(data['users'], [_User["default"]]);
80
+ }
81
+ }
82
+ return obj;
83
+ }
84
+
85
+ /**
86
+ * Validates the JSON data with respect to <code>Team</code>.
87
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
88
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Team</code>.
89
+ */
90
+ }, {
91
+ key: "validateJSON",
92
+ value: function validateJSON(data) {
93
+ // check to make sure all required properties are present in the JSON string
94
+ var _iterator = _createForOfIteratorHelper(Team.RequiredProperties),
95
+ _step;
96
+ try {
97
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
98
+ var property = _step.value;
99
+ if (!data[property]) {
100
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
101
+ }
102
+ }
103
+ // ensure the json data is a string
104
+ } catch (err) {
105
+ _iterator.e(err);
106
+ } finally {
107
+ _iterator.f();
108
+ }
109
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
110
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
111
+ }
112
+ // ensure the json data is a string
113
+ if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
114
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
115
+ }
116
+ if (data['users']) {
117
+ // data not null
118
+ // ensure the json data is an array
119
+ if (!Array.isArray(data['users'])) {
120
+ throw new Error("Expected the field `users` to be an array in the JSON data but got " + data['users']);
121
+ }
122
+ // validate the optional field `users` (array)
123
+ var _iterator2 = _createForOfIteratorHelper(data['users']),
124
+ _step2;
125
+ try {
126
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
127
+ var item = _step2.value;
128
+ _User["default"].validateJSON(item);
129
+ }
130
+ } catch (err) {
131
+ _iterator2.e(err);
132
+ } finally {
133
+ _iterator2.f();
134
+ }
135
+ ;
136
+ }
137
+ return true;
138
+ }
139
+ }]);
140
+ return Team;
141
+ }();
142
+ Team.RequiredProperties = ["id", "label"];
143
+
144
+ /**
145
+ * Team ID
146
+ * @member {String} id
147
+ */
148
+ Team.prototype['id'] = undefined;
149
+
150
+ /**
151
+ * Team Label
152
+ * @member {String} label
153
+ */
154
+ Team.prototype['label'] = undefined;
155
+
156
+ /**
157
+ * Users
158
+ * @member {Array.<module:model/User>} users
159
+ */
160
+ Team.prototype['users'] = undefined;
161
+ var _default = Team;
162
+ exports["default"] = _default;
@@ -0,0 +1,93 @@
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
15
+ * Corellium API
16
+ * REST API to manage your virtual devices.
17
+ *
18
+ * The version of the OpenAPI document: 4.5.0-16775
19
+ *
20
+ *
21
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
+ * https://openapi-generator.tech
23
+ * Do not edit the class manually.
24
+ *
25
+ */
26
+ /**
27
+ * The TeamCreate model module.
28
+ * @module model/TeamCreate
29
+ * @version 0.3.2
30
+ */
31
+ var TeamCreate = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>TeamCreate</code>.
34
+ *
35
+ * @alias module:model/TeamCreate
36
+ */
37
+ function TeamCreate() {
38
+ _classCallCheck(this, TeamCreate);
39
+ TeamCreate.initialize(this);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ _createClass(TeamCreate, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj) {}
50
+
51
+ /**
52
+ * Constructs a <code>TeamCreate</code> from a plain JavaScript object, optionally creating a new instance.
53
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
55
+ * @param {module:model/TeamCreate} obj Optional instance to populate.
56
+ * @return {module:model/TeamCreate} The populated <code>TeamCreate</code> instance.
57
+ */
58
+ }, {
59
+ key: "constructFromObject",
60
+ value: function constructFromObject(data, obj) {
61
+ if (data) {
62
+ obj = obj || new TeamCreate();
63
+ if (data.hasOwnProperty('id')) {
64
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+
70
+ /**
71
+ * Validates the JSON data with respect to <code>TeamCreate</code>.
72
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
73
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TeamCreate</code>.
74
+ */
75
+ }, {
76
+ key: "validateJSON",
77
+ value: function validateJSON(data) {
78
+ // ensure the json data is a string
79
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
80
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
81
+ }
82
+ return true;
83
+ }
84
+ }]);
85
+ return TeamCreate;
86
+ }();
87
+ /**
88
+ * ID of newly created team
89
+ * @member {String} id
90
+ */
91
+ TeamCreate.prototype['id'] = undefined;
92
+ var _default = TeamCreate;
93
+ exports["default"] = _default;
@@ -0,0 +1,93 @@
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
15
+ * Corellium API
16
+ * REST API to manage your virtual devices.
17
+ *
18
+ * The version of the OpenAPI document: 4.5.0-16775
19
+ *
20
+ *
21
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
+ * https://openapi-generator.tech
23
+ * Do not edit the class manually.
24
+ *
25
+ */
26
+ /**
27
+ * The TextInput model module.
28
+ * @module model/TextInput
29
+ * @version 0.3.2
30
+ */
31
+ var TextInput = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>TextInput</code>.
34
+ *
35
+ * @alias module:model/TextInput
36
+ */
37
+ function TextInput() {
38
+ _classCallCheck(this, TextInput);
39
+ TextInput.initialize(this);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ _createClass(TextInput, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj) {}
50
+
51
+ /**
52
+ * Constructs a <code>TextInput</code> from a plain JavaScript object, optionally creating a new instance.
53
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
55
+ * @param {module:model/TextInput} obj Optional instance to populate.
56
+ * @return {module:model/TextInput} The populated <code>TextInput</code> instance.
57
+ */
58
+ }, {
59
+ key: "constructFromObject",
60
+ value: function constructFromObject(data, obj) {
61
+ if (data) {
62
+ obj = obj || new TextInput();
63
+ if (data.hasOwnProperty('text')) {
64
+ obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
65
+ }
66
+ }
67
+ return obj;
68
+ }
69
+
70
+ /**
71
+ * Validates the JSON data with respect to <code>TextInput</code>.
72
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
73
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TextInput</code>.
74
+ */
75
+ }, {
76
+ key: "validateJSON",
77
+ value: function validateJSON(data) {
78
+ // ensure the json data is a string
79
+ if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) {
80
+ throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']);
81
+ }
82
+ return true;
83
+ }
84
+ }]);
85
+ return TextInput;
86
+ }();
87
+ /**
88
+ * text to type
89
+ * @member {String} text
90
+ */
91
+ TextInput.prototype['text'] = undefined;
92
+ var _default = TextInput;
93
+ exports["default"] = _default;