@corellium/corellium-cli 1.3.4 → 1.3.5

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 +4 -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,157 @@
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 _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; } } }; }
11
+ 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); }
12
+ 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; }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ 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); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ 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); } /**
18
+ * Corellium API
19
+ * REST API to manage your virtual devices.
20
+ *
21
+ * The version of the OpenAPI document: 4.5.0-16775
22
+ *
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 ValidationError model module.
31
+ * @module model/ValidationError
32
+ * @version 0.3.2
33
+ */
34
+ var ValidationError = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>ValidationError</code>.
37
+ *
38
+ * @alias module:model/ValidationError
39
+ * @param error {String} Error text
40
+ * @param errorID {module:model/ValidationError.ErrorIDEnum} Error ID
41
+ */
42
+ function ValidationError(error, errorID) {
43
+ _classCallCheck(this, ValidationError);
44
+ ValidationError.initialize(this, error, errorID);
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
+ _createClass(ValidationError, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, error, errorID) {
55
+ obj['error'] = error;
56
+ obj['errorID'] = errorID;
57
+ }
58
+
59
+ /**
60
+ * Constructs a <code>ValidationError</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/ValidationError} obj Optional instance to populate.
64
+ * @return {module:model/ValidationError} The populated <code>ValidationError</code> instance.
65
+ */
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new ValidationError();
71
+ if (data.hasOwnProperty('error')) {
72
+ obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('errorID')) {
75
+ obj['errorID'] = _ApiClient["default"].convertToType(data['errorID'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('field')) {
78
+ obj['field'] = _ApiClient["default"].convertToType(data['field'], 'String');
79
+ }
80
+ }
81
+ return obj;
82
+ }
83
+
84
+ /**
85
+ * Validates the JSON data with respect to <code>ValidationError</code>.
86
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
87
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ValidationError</code>.
88
+ */
89
+ }, {
90
+ key: "validateJSON",
91
+ value: function validateJSON(data) {
92
+ // check to make sure all required properties are present in the JSON string
93
+ var _iterator = _createForOfIteratorHelper(ValidationError.RequiredProperties),
94
+ _step;
95
+ try {
96
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
97
+ var property = _step.value;
98
+ if (!data[property]) {
99
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
100
+ }
101
+ }
102
+ // ensure the json data is a string
103
+ } catch (err) {
104
+ _iterator.e(err);
105
+ } finally {
106
+ _iterator.f();
107
+ }
108
+ if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
109
+ throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
110
+ }
111
+ // ensure the json data is a string
112
+ if (data['errorID'] && !(typeof data['errorID'] === 'string' || data['errorID'] instanceof String)) {
113
+ throw new Error("Expected the field `errorID` to be a primitive type in the JSON string but got " + data['errorID']);
114
+ }
115
+ // ensure the json data is a string
116
+ if (data['field'] && !(typeof data['field'] === 'string' || data['field'] instanceof String)) {
117
+ throw new Error("Expected the field `field` to be a primitive type in the JSON string but got " + data['field']);
118
+ }
119
+ return true;
120
+ }
121
+ }]);
122
+ return ValidationError;
123
+ }();
124
+ ValidationError.RequiredProperties = ["error", "errorID"];
125
+
126
+ /**
127
+ * Error text
128
+ * @member {String} error
129
+ */
130
+ ValidationError.prototype['error'] = undefined;
131
+
132
+ /**
133
+ * Error ID
134
+ * @member {module:model/ValidationError.ErrorIDEnum} errorID
135
+ */
136
+ ValidationError.prototype['errorID'] = undefined;
137
+
138
+ /**
139
+ * Field associated with error
140
+ * @member {String} field
141
+ */
142
+ ValidationError.prototype['field'] = undefined;
143
+
144
+ /**
145
+ * Allowed values for the <code>errorID</code> property.
146
+ * @enum {String}
147
+ * @readonly
148
+ */
149
+ ValidationError['ErrorIDEnum'] = {
150
+ /**
151
+ * value: "ValidationError"
152
+ * @const
153
+ */
154
+ "ValidationError": "ValidationError"
155
+ };
156
+ var _default = ValidationError;
157
+ exports["default"] = _default;
@@ -4,42 +4,50 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
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); }
12
10
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- 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, descriptor.key, descriptor); } }
15
-
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); } }
16
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; }
17
-
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
+ */
18
26
  /**
19
27
  * The VolumeOptions model module.
20
28
  * @module model/VolumeOptions
21
- * @version 0.1.0
29
+ * @version 0.3.2
22
30
  */
23
31
  var VolumeOptions = /*#__PURE__*/function () {
24
32
  /**
25
33
  * Constructs a new <code>VolumeOptions</code>.
34
+ *
26
35
  * @alias module:model/VolumeOptions
27
36
  */
28
37
  function VolumeOptions() {
29
38
  _classCallCheck(this, VolumeOptions);
30
-
31
39
  VolumeOptions.initialize(this);
32
40
  }
41
+
33
42
  /**
34
43
  * Initializes the fields of this object.
35
44
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
36
45
  * Only for internal use.
37
46
  */
38
-
39
-
40
47
  _createClass(VolumeOptions, null, [{
41
48
  key: "initialize",
42
49
  value: function initialize(obj) {}
50
+
43
51
  /**
44
52
  * Constructs a <code>VolumeOptions</code> from a plain JavaScript object, optionally creating a new instance.
45
53
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -47,48 +55,61 @@ var VolumeOptions = /*#__PURE__*/function () {
47
55
  * @param {module:model/VolumeOptions} obj Optional instance to populate.
48
56
  * @return {module:model/VolumeOptions} The populated <code>VolumeOptions</code> instance.
49
57
  */
50
-
51
58
  }, {
52
59
  key: "constructFromObject",
53
60
  value: function constructFromObject(data, obj) {
54
61
  if (data) {
55
62
  obj = obj || new VolumeOptions();
56
-
57
63
  if (data.hasOwnProperty('allocate')) {
58
64
  obj['allocate'] = _ApiClient["default"].convertToType(data['allocate'], 'Number');
59
65
  }
60
-
61
66
  if (data.hasOwnProperty('partitions')) {
62
67
  obj['partitions'] = _ApiClient["default"].convertToType(data['partitions'], [Object]);
63
68
  }
64
-
65
69
  if (data.hasOwnProperty('computeNode')) {
66
70
  obj['computeNode'] = _ApiClient["default"].convertToType(data['computeNode'], 'String');
67
71
  }
68
72
  }
69
-
70
73
  return obj;
71
74
  }
72
- }]);
73
75
 
76
+ /**
77
+ * Validates the JSON data with respect to <code>VolumeOptions</code>.
78
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
79
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>VolumeOptions</code>.
80
+ */
81
+ }, {
82
+ key: "validateJSON",
83
+ value: function validateJSON(data) {
84
+ // ensure the json data is an array
85
+ if (!Array.isArray(data['partitions'])) {
86
+ throw new Error("Expected the field `partitions` to be an array in the JSON data but got " + data['partitions']);
87
+ }
88
+ // ensure the json data is a string
89
+ if (data['computeNode'] && !(typeof data['computeNode'] === 'string' || data['computeNode'] instanceof String)) {
90
+ throw new Error("Expected the field `computeNode` to be a primitive type in the JSON string but got " + data['computeNode']);
91
+ }
92
+ return true;
93
+ }
94
+ }]);
74
95
  return VolumeOptions;
75
96
  }();
76
97
  /**
77
98
  * GB
78
99
  * @member {Number} allocate
79
100
  */
80
-
81
-
82
101
  VolumeOptions.prototype['allocate'] = undefined;
102
+
83
103
  /**
104
+ *
84
105
  * @member {Array.<Object>} partitions
85
106
  */
86
-
87
107
  VolumeOptions.prototype['partitions'] = undefined;
108
+
88
109
  /**
110
+ *
89
111
  * @member {String} computeNode
90
112
  */
91
-
92
113
  VolumeOptions.prototype['computeNode'] = undefined;
93
114
  var _default = VolumeOptions;
94
115
  exports["default"] = _default;
@@ -4,42 +4,50 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
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); }
12
10
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
-
14
- 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, descriptor.key, descriptor); } }
15
-
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); } }
16
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; }
17
-
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
+ */
18
26
  /**
19
27
  * The VpnDefinition model module.
20
28
  * @module model/VpnDefinition
21
- * @version 0.1.0
29
+ * @version 0.3.2
22
30
  */
23
31
  var VpnDefinition = /*#__PURE__*/function () {
24
32
  /**
25
33
  * Constructs a new <code>VpnDefinition</code>.
34
+ *
26
35
  * @alias module:model/VpnDefinition
27
36
  */
28
37
  function VpnDefinition() {
29
38
  _classCallCheck(this, VpnDefinition);
30
-
31
39
  VpnDefinition.initialize(this);
32
40
  }
41
+
33
42
  /**
34
43
  * Initializes the fields of this object.
35
44
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
36
45
  * Only for internal use.
37
46
  */
38
-
39
-
40
47
  _createClass(VpnDefinition, null, [{
41
48
  key: "initialize",
42
49
  value: function initialize(obj) {}
50
+
43
51
  /**
44
52
  * Constructs a <code>VpnDefinition</code> from a plain JavaScript object, optionally creating a new instance.
45
53
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -47,38 +55,52 @@ var VpnDefinition = /*#__PURE__*/function () {
47
55
  * @param {module:model/VpnDefinition} obj Optional instance to populate.
48
56
  * @return {module:model/VpnDefinition} The populated <code>VpnDefinition</code> instance.
49
57
  */
50
-
51
58
  }, {
52
59
  key: "constructFromObject",
53
60
  value: function constructFromObject(data, obj) {
54
61
  if (data) {
55
62
  obj = obj || new VpnDefinition();
56
-
57
63
  if (data.hasOwnProperty('proxy')) {
58
- obj['proxy'] = _ApiClient["default"].convertToType(data['proxy'], ['String']);
64
+ obj['proxy'] = _ApiClient["default"].convertToType(data['proxy'], [Object]);
59
65
  }
60
-
61
66
  if (data.hasOwnProperty('listeners')) {
62
- obj['listeners'] = _ApiClient["default"].convertToType(data['listeners'], ['String']);
67
+ obj['listeners'] = _ApiClient["default"].convertToType(data['listeners'], [Object]);
63
68
  }
64
69
  }
65
-
66
70
  return obj;
67
71
  }
68
- }]);
69
72
 
73
+ /**
74
+ * Validates the JSON data with respect to <code>VpnDefinition</code>.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>VpnDefinition</code>.
77
+ */
78
+ }, {
79
+ key: "validateJSON",
80
+ value: function validateJSON(data) {
81
+ // ensure the json data is an array
82
+ if (!Array.isArray(data['proxy'])) {
83
+ throw new Error("Expected the field `proxy` to be an array in the JSON data but got " + data['proxy']);
84
+ }
85
+ // ensure the json data is an array
86
+ if (!Array.isArray(data['listeners'])) {
87
+ throw new Error("Expected the field `listeners` to be an array in the JSON data but got " + data['listeners']);
88
+ }
89
+ return true;
90
+ }
91
+ }]);
70
92
  return VpnDefinition;
71
93
  }();
72
94
  /**
73
- * @member {Array.<String>} proxy
95
+ *
96
+ * @member {Array.<Object>} proxy
74
97
  */
75
-
76
-
77
98
  VpnDefinition.prototype['proxy'] = undefined;
99
+
78
100
  /**
79
- * @member {Array.<String>} listeners
101
+ *
102
+ * @member {Array.<Object>} listeners
80
103
  */
81
-
82
104
  VpnDefinition.prototype['listeners'] = undefined;
83
105
  var _default = VpnDefinition;
84
106
  exports["default"] = _default;
@@ -0,0 +1,171 @@
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 _Features = _interopRequireDefault(require("./Features"));
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 WebPlayerCreateSessionRequest model module.
32
+ * @module model/WebPlayerCreateSessionRequest
33
+ * @version 0.3.2
34
+ */
35
+ var WebPlayerCreateSessionRequest = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>WebPlayerCreateSessionRequest</code>.
38
+ *
39
+ * @alias module:model/WebPlayerCreateSessionRequest
40
+ * @param projectId {String} Project Identifier
41
+ * @param instanceId {String} VM Instance Identifier
42
+ * @param expiresIn {Number} Number of seconds token remains valid
43
+ * @param features {module:model/Features}
44
+ */
45
+ function WebPlayerCreateSessionRequest(projectId, instanceId, expiresIn, features) {
46
+ _classCallCheck(this, WebPlayerCreateSessionRequest);
47
+ WebPlayerCreateSessionRequest.initialize(this, projectId, instanceId, expiresIn, features);
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
+ _createClass(WebPlayerCreateSessionRequest, null, [{
56
+ key: "initialize",
57
+ value: function initialize(obj, projectId, instanceId, expiresIn, features) {
58
+ obj['projectId'] = projectId;
59
+ obj['instanceId'] = instanceId;
60
+ obj['expiresIn'] = expiresIn;
61
+ obj['features'] = features;
62
+ }
63
+
64
+ /**
65
+ * Constructs a <code>WebPlayerCreateSessionRequest</code> from a plain JavaScript object, optionally creating a new instance.
66
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
67
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
68
+ * @param {module:model/WebPlayerCreateSessionRequest} obj Optional instance to populate.
69
+ * @return {module:model/WebPlayerCreateSessionRequest} The populated <code>WebPlayerCreateSessionRequest</code> instance.
70
+ */
71
+ }, {
72
+ key: "constructFromObject",
73
+ value: function constructFromObject(data, obj) {
74
+ if (data) {
75
+ obj = obj || new WebPlayerCreateSessionRequest();
76
+ if (data.hasOwnProperty('projectId')) {
77
+ obj['projectId'] = _ApiClient["default"].convertToType(data['projectId'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('instanceId')) {
80
+ obj['instanceId'] = _ApiClient["default"].convertToType(data['instanceId'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('expiresIn')) {
83
+ obj['expiresIn'] = _ApiClient["default"].convertToType(data['expiresIn'], 'Number');
84
+ }
85
+ if (data.hasOwnProperty('features')) {
86
+ obj['features'] = _Features["default"].constructFromObject(data['features']);
87
+ }
88
+ if (data.hasOwnProperty('clientId')) {
89
+ obj['clientId'] = _ApiClient["default"].convertToType(data['clientId'], 'String');
90
+ }
91
+ }
92
+ return obj;
93
+ }
94
+
95
+ /**
96
+ * Validates the JSON data with respect to <code>WebPlayerCreateSessionRequest</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>WebPlayerCreateSessionRequest</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(WebPlayerCreateSessionRequest.RequiredProperties),
105
+ _step;
106
+ try {
107
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
108
+ var property = _step.value;
109
+ if (!data[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['projectId'] && !(typeof data['projectId'] === 'string' || data['projectId'] instanceof String)) {
120
+ throw new Error("Expected the field `projectId` to be a primitive type in the JSON string but got " + data['projectId']);
121
+ }
122
+ // ensure the json data is a string
123
+ if (data['instanceId'] && !(typeof data['instanceId'] === 'string' || data['instanceId'] instanceof String)) {
124
+ throw new Error("Expected the field `instanceId` to be a primitive type in the JSON string but got " + data['instanceId']);
125
+ }
126
+ // validate the optional field `features`
127
+ if (data['features']) {
128
+ // data not null
129
+ _Features["default"].validateJSON(data['features']);
130
+ }
131
+ // ensure the json data is a string
132
+ if (data['clientId'] && !(typeof data['clientId'] === 'string' || data['clientId'] instanceof String)) {
133
+ throw new Error("Expected the field `clientId` to be a primitive type in the JSON string but got " + data['clientId']);
134
+ }
135
+ return true;
136
+ }
137
+ }]);
138
+ return WebPlayerCreateSessionRequest;
139
+ }();
140
+ WebPlayerCreateSessionRequest.RequiredProperties = ["projectId", "instanceId", "expiresIn", "features"];
141
+
142
+ /**
143
+ * Project Identifier
144
+ * @member {String} projectId
145
+ */
146
+ WebPlayerCreateSessionRequest.prototype['projectId'] = undefined;
147
+
148
+ /**
149
+ * VM Instance Identifier
150
+ * @member {String} instanceId
151
+ */
152
+ WebPlayerCreateSessionRequest.prototype['instanceId'] = undefined;
153
+
154
+ /**
155
+ * Number of seconds token remains valid
156
+ * @member {Number} expiresIn
157
+ */
158
+ WebPlayerCreateSessionRequest.prototype['expiresIn'] = undefined;
159
+
160
+ /**
161
+ * @member {module:model/Features} features
162
+ */
163
+ WebPlayerCreateSessionRequest.prototype['features'] = undefined;
164
+
165
+ /**
166
+ * Optional string value supplied by client for tracking purposes
167
+ * @member {String} clientId
168
+ */
169
+ WebPlayerCreateSessionRequest.prototype['clientId'] = undefined;
170
+ var _default = WebPlayerCreateSessionRequest;
171
+ exports["default"] = _default;