@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.
- package/coverage/cobertura-coverage.xml +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/node_modules/@corellium/client-api/README.md +177 -14
- package/node_modules/@corellium/client-api/dist/ApiClient.js +67 -138
- package/node_modules/@corellium/client-api/dist/api/CorelliumApi.js +4668 -905
- package/node_modules/@corellium/client-api/dist/index.js +469 -37
- package/node_modules/@corellium/client-api/dist/model/Address.js +158 -0
- package/node_modules/@corellium/client-api/dist/model/AgentApp.js +159 -0
- package/node_modules/@corellium/client-api/dist/model/AgentAppReadyResponse.js +112 -0
- package/node_modules/@corellium/client-api/dist/model/AgentAppStatus.js +102 -0
- package/node_modules/@corellium/client-api/dist/model/AgentAppsList.js +127 -0
- package/node_modules/@corellium/client-api/dist/model/AgentAppsStatusList.js +127 -0
- package/node_modules/@corellium/client-api/dist/model/AgentError.js +153 -0
- package/node_modules/@corellium/client-api/dist/model/AgentIcons.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/AgentInstallBody.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/AgentProfilesReturn.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/AgentSystemAdbAuth.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/AgentSystemGetPropBody.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/AgentValueReturn.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/AgreedAck.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/ApiConflictError.js +61 -22
- package/node_modules/@corellium/client-api/dist/model/ApiError.js +64 -21
- package/node_modules/@corellium/client-api/dist/model/ApiInternalConsistencyError.js +144 -0
- package/node_modules/@corellium/client-api/dist/model/ApiNotFoundError.js +65 -23
- package/node_modules/@corellium/client-api/dist/model/ApiToken.js +55 -17
- package/node_modules/@corellium/client-api/dist/model/Bit.js +24 -14
- package/node_modules/@corellium/client-api/dist/model/BtraceEnableOptions.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/Button.js +90 -0
- package/node_modules/@corellium/client-api/dist/model/CouponOptions.js +161 -0
- package/node_modules/@corellium/client-api/dist/model/CreateTeam.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/CreatedBy.js +128 -0
- package/node_modules/@corellium/client-api/dist/model/Credentials.js +59 -19
- package/node_modules/@corellium/client-api/dist/model/DomainOptions.js +103 -0
- package/node_modules/@corellium/client-api/dist/model/Extension.js +167 -0
- package/node_modules/@corellium/client-api/dist/model/Features.js +260 -0
- package/node_modules/@corellium/client-api/dist/model/FileChanges.js +120 -0
- package/node_modules/@corellium/client-api/dist/model/Firmware.js +97 -46
- package/node_modules/@corellium/client-api/dist/model/GpioStateDefinition.js +55 -20
- package/node_modules/@corellium/client-api/dist/model/GpiosState.js +120 -0
- package/node_modules/@corellium/client-api/dist/model/GrantTrialRequestResponse.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/Hook.js +211 -0
- package/node_modules/@corellium/client-api/dist/model/Image.js +99 -49
- package/node_modules/@corellium/client-api/dist/model/Instance.js +201 -71
- package/node_modules/@corellium/client-api/dist/model/InstanceAgentState.js +106 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceBootOptions.js +72 -29
- package/node_modules/@corellium/client-api/dist/model/InstanceBootOptionsAdditionalTag.js +90 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceConsoleEndpoint.js +34 -17
- package/node_modules/@corellium/client-api/dist/model/InstanceCreateOptions.js +126 -49
- package/node_modules/@corellium/client-api/dist/model/InstanceInput.js +181 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceNetdumpState.js +115 -0
- package/node_modules/@corellium/client-api/dist/model/InstanceNetmonState.js +56 -16
- package/node_modules/@corellium/client-api/dist/model/InstanceReturn.js +55 -20
- package/node_modules/@corellium/client-api/dist/model/InstanceServices.js +35 -18
- package/node_modules/@corellium/client-api/dist/model/InstanceStartOptions.js +39 -17
- package/node_modules/@corellium/client-api/dist/model/InstanceState.js +52 -21
- package/node_modules/@corellium/client-api/dist/model/InstanceStopOptions.js +30 -17
- package/node_modules/@corellium/client-api/dist/model/InstanceUpgradeBody.js +129 -0
- package/node_modules/@corellium/client-api/dist/model/Invitation.js +115 -0
- package/node_modules/@corellium/client-api/dist/model/InviteRevokeParams.js +94 -0
- package/node_modules/@corellium/client-api/dist/model/InviteRevokeParamsIds.js +150 -0
- package/node_modules/@corellium/client-api/dist/model/Kcrange.js +106 -0
- package/node_modules/@corellium/client-api/dist/model/KernelTask.js +149 -0
- package/node_modules/@corellium/client-api/dist/model/KernelThread.js +115 -0
- package/node_modules/@corellium/client-api/dist/model/MediaPlayBody.js +106 -0
- package/node_modules/@corellium/client-api/dist/model/Model.js +97 -35
- package/node_modules/@corellium/client-api/dist/model/ModelSoftware.js +77 -28
- package/node_modules/@corellium/client-api/dist/model/NetdumpFilter.js +158 -0
- package/node_modules/@corellium/client-api/dist/model/PasswordChangeBody.js +146 -0
- package/node_modules/@corellium/client-api/dist/model/PasswordResetBody.js +146 -0
- package/node_modules/@corellium/client-api/dist/model/PatchInstanceOptions.js +182 -0
- package/node_modules/@corellium/client-api/dist/model/PeripheralsData.js +63 -33
- package/node_modules/@corellium/client-api/dist/model/Plan.js +106 -0
- package/node_modules/@corellium/client-api/dist/model/Project.js +77 -28
- package/node_modules/@corellium/client-api/dist/model/ProjectKey.js +206 -0
- package/node_modules/@corellium/client-api/dist/model/ProjectQuota.js +35 -21
- package/node_modules/@corellium/client-api/dist/model/ProjectSettings.js +35 -21
- package/node_modules/@corellium/client-api/dist/model/ProjectUsage.js +37 -23
- package/node_modules/@corellium/client-api/dist/model/ProxyConfig.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/RateInfo.js +98 -0
- package/node_modules/@corellium/client-api/dist/model/ResetLinkBody.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/Role.js +164 -0
- package/node_modules/@corellium/client-api/dist/model/RotateBody.js +140 -0
- package/node_modules/@corellium/client-api/dist/model/Snapshot.js +56 -32
- package/node_modules/@corellium/client-api/dist/model/SnapshotCreationOptions.js +54 -17
- package/node_modules/@corellium/client-api/dist/model/SnapshotStatus.js +37 -19
- package/node_modules/@corellium/client-api/dist/model/SubscriberInvite.js +277 -0
- package/node_modules/@corellium/client-api/dist/model/Team.js +162 -0
- package/node_modules/@corellium/client-api/dist/model/TeamCreate.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/TextInput.js +93 -0
- package/node_modules/@corellium/client-api/dist/model/Token.js +56 -19
- package/node_modules/@corellium/client-api/dist/model/TouchCurveInput.js +98 -0
- package/node_modules/@corellium/client-api/dist/model/TouchInput.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/Trial.js +112 -0
- package/node_modules/@corellium/client-api/dist/model/TrialExtension.js +124 -0
- package/node_modules/@corellium/client-api/dist/model/TrialRequestMetadata.js +146 -0
- package/node_modules/@corellium/client-api/dist/model/TrialRequestOptions.js +156 -0
- package/node_modules/@corellium/client-api/dist/model/UpdateExtension.js +89 -0
- package/node_modules/@corellium/client-api/dist/model/User.js +170 -0
- package/node_modules/@corellium/client-api/dist/model/UserError.js +65 -22
- package/node_modules/@corellium/client-api/dist/model/V1CreateHookParameters.js +179 -0
- package/node_modules/@corellium/client-api/dist/model/V1LoadExtensionParameters.js +116 -0
- package/node_modules/@corellium/client-api/dist/model/V1SetStateBody.js +50 -18
- package/node_modules/@corellium/client-api/dist/model/ValidationError.js +157 -0
- package/node_modules/@corellium/client-api/dist/model/VolumeOptions.js +42 -21
- package/node_modules/@corellium/client-api/dist/model/VpnDefinition.js +45 -23
- package/node_modules/@corellium/client-api/dist/model/WebPlayerCreateSessionRequest.js +171 -0
- package/node_modules/@corellium/client-api/dist/model/WebPlayerSession.js +142 -0
- package/node_modules/@corellium/client-api/package.json +1 -1
- package/package.json +2 -2
- package/renovate.json +96 -0
- package/src/commands/login.js +6 -4
- package/src/commands/mast/constants.js +1 -2
- package/src/commands/mast/create-assessment.js +2 -3
- package/src/commands/mast/delete-assessment.js +2 -3
- package/src/commands/mast/download-report.js +4 -4
- package/src/commands/mast/get-assessment.js +2 -3
- package/src/commands/mast/get-assessments.js +2 -3
- package/src/commands/mast/start-monitor.js +2 -3
- package/src/commands/mast/stop-monitor.js +2 -3
- package/src/commands/mast/test.js +2 -3
- package/src/commands/mast/api-base-path.js +0 -21
@@ -4,25 +4,37 @@ 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); }
|
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; }
|
12
13
|
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
|
-
|
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); } }
|
16
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; }
|
17
|
-
|
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
|
+
*/
|
18
29
|
/**
|
19
30
|
* The Model model module.
|
20
31
|
* @module model/Model
|
21
|
-
* @version 0.
|
32
|
+
* @version 0.3.2
|
22
33
|
*/
|
23
34
|
var Model = /*#__PURE__*/function () {
|
24
35
|
/**
|
25
36
|
* Constructs a new <code>Model</code>.
|
37
|
+
*
|
26
38
|
* @alias module:model/Model
|
27
39
|
* @param type {String}
|
28
40
|
* @param name {String}
|
@@ -31,16 +43,14 @@ var Model = /*#__PURE__*/function () {
|
|
31
43
|
*/
|
32
44
|
function Model(type, name, flavor, model) {
|
33
45
|
_classCallCheck(this, Model);
|
34
|
-
|
35
46
|
Model.initialize(this, type, name, flavor, model);
|
36
47
|
}
|
48
|
+
|
37
49
|
/**
|
38
50
|
* Initializes the fields of this object.
|
39
51
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
40
52
|
* Only for internal use.
|
41
53
|
*/
|
42
|
-
|
43
|
-
|
44
54
|
_createClass(Model, null, [{
|
45
55
|
key: "initialize",
|
46
56
|
value: function initialize(obj, type, name, flavor, model) {
|
@@ -49,6 +59,7 @@ var Model = /*#__PURE__*/function () {
|
|
49
59
|
obj['flavor'] = flavor;
|
50
60
|
obj['model'] = model;
|
51
61
|
}
|
62
|
+
|
52
63
|
/**
|
53
64
|
* Constructs a <code>Model</code> from a plain JavaScript object, optionally creating a new instance.
|
54
65
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -56,110 +67,161 @@ var Model = /*#__PURE__*/function () {
|
|
56
67
|
* @param {module:model/Model} obj Optional instance to populate.
|
57
68
|
* @return {module:model/Model} The populated <code>Model</code> instance.
|
58
69
|
*/
|
59
|
-
|
60
70
|
}, {
|
61
71
|
key: "constructFromObject",
|
62
72
|
value: function constructFromObject(data, obj) {
|
63
73
|
if (data) {
|
64
74
|
obj = obj || new Model();
|
65
|
-
|
66
75
|
if (data.hasOwnProperty('type')) {
|
67
76
|
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
68
77
|
}
|
69
|
-
|
70
78
|
if (data.hasOwnProperty('name')) {
|
71
79
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
72
80
|
}
|
73
|
-
|
74
81
|
if (data.hasOwnProperty('flavor')) {
|
75
82
|
obj['flavor'] = _ApiClient["default"].convertToType(data['flavor'], 'String');
|
76
83
|
}
|
77
|
-
|
78
84
|
if (data.hasOwnProperty('description')) {
|
79
85
|
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
80
86
|
}
|
81
|
-
|
82
87
|
if (data.hasOwnProperty('model')) {
|
83
88
|
obj['model'] = _ApiClient["default"].convertToType(data['model'], 'String');
|
84
89
|
}
|
85
|
-
|
86
90
|
if (data.hasOwnProperty('boardConfig')) {
|
87
91
|
obj['boardConfig'] = _ApiClient["default"].convertToType(data['boardConfig'], 'String');
|
88
92
|
}
|
89
|
-
|
90
93
|
if (data.hasOwnProperty('platform')) {
|
91
94
|
obj['platform'] = _ApiClient["default"].convertToType(data['platform'], 'String');
|
92
95
|
}
|
93
|
-
|
94
96
|
if (data.hasOwnProperty('cpid')) {
|
95
97
|
obj['cpid'] = _ApiClient["default"].convertToType(data['cpid'], 'Number');
|
96
98
|
}
|
97
|
-
|
98
99
|
if (data.hasOwnProperty('bdid')) {
|
99
100
|
obj['bdid'] = _ApiClient["default"].convertToType(data['bdid'], 'Number');
|
100
101
|
}
|
101
|
-
|
102
102
|
if (data.hasOwnProperty('peripherals')) {
|
103
103
|
obj['peripherals'] = _ApiClient["default"].convertToType(data['peripherals'], 'Boolean');
|
104
104
|
}
|
105
105
|
}
|
106
|
-
|
107
106
|
return obj;
|
108
107
|
}
|
109
|
-
}]);
|
110
108
|
|
109
|
+
/**
|
110
|
+
* Validates the JSON data with respect to <code>Model</code>.
|
111
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
112
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Model</code>.
|
113
|
+
*/
|
114
|
+
}, {
|
115
|
+
key: "validateJSON",
|
116
|
+
value: function validateJSON(data) {
|
117
|
+
// check to make sure all required properties are present in the JSON string
|
118
|
+
var _iterator = _createForOfIteratorHelper(Model.RequiredProperties),
|
119
|
+
_step;
|
120
|
+
try {
|
121
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
122
|
+
var property = _step.value;
|
123
|
+
if (!data[property]) {
|
124
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
125
|
+
}
|
126
|
+
}
|
127
|
+
// ensure the json data is a string
|
128
|
+
} catch (err) {
|
129
|
+
_iterator.e(err);
|
130
|
+
} finally {
|
131
|
+
_iterator.f();
|
132
|
+
}
|
133
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
134
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
135
|
+
}
|
136
|
+
// ensure the json data is a string
|
137
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
138
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
139
|
+
}
|
140
|
+
// ensure the json data is a string
|
141
|
+
if (data['flavor'] && !(typeof data['flavor'] === 'string' || data['flavor'] instanceof String)) {
|
142
|
+
throw new Error("Expected the field `flavor` to be a primitive type in the JSON string but got " + data['flavor']);
|
143
|
+
}
|
144
|
+
// ensure the json data is a string
|
145
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
146
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
147
|
+
}
|
148
|
+
// ensure the json data is a string
|
149
|
+
if (data['model'] && !(typeof data['model'] === 'string' || data['model'] instanceof String)) {
|
150
|
+
throw new Error("Expected the field `model` to be a primitive type in the JSON string but got " + data['model']);
|
151
|
+
}
|
152
|
+
// ensure the json data is a string
|
153
|
+
if (data['boardConfig'] && !(typeof data['boardConfig'] === 'string' || data['boardConfig'] instanceof String)) {
|
154
|
+
throw new Error("Expected the field `boardConfig` to be a primitive type in the JSON string but got " + data['boardConfig']);
|
155
|
+
}
|
156
|
+
// ensure the json data is a string
|
157
|
+
if (data['platform'] && !(typeof data['platform'] === 'string' || data['platform'] instanceof String)) {
|
158
|
+
throw new Error("Expected the field `platform` to be a primitive type in the JSON string but got " + data['platform']);
|
159
|
+
}
|
160
|
+
return true;
|
161
|
+
}
|
162
|
+
}]);
|
111
163
|
return Model;
|
112
164
|
}();
|
165
|
+
Model.RequiredProperties = ["type", "name", "flavor", "model"];
|
166
|
+
|
113
167
|
/**
|
168
|
+
*
|
114
169
|
* @member {String} type
|
115
170
|
*/
|
116
|
-
|
117
|
-
|
118
171
|
Model.prototype['type'] = undefined;
|
172
|
+
|
119
173
|
/**
|
174
|
+
*
|
120
175
|
* @member {String} name
|
121
176
|
*/
|
122
|
-
|
123
177
|
Model.prototype['name'] = undefined;
|
178
|
+
|
124
179
|
/**
|
180
|
+
*
|
125
181
|
* @member {String} flavor
|
126
182
|
*/
|
127
|
-
|
128
183
|
Model.prototype['flavor'] = undefined;
|
184
|
+
|
129
185
|
/**
|
186
|
+
*
|
130
187
|
* @member {String} description
|
131
188
|
*/
|
132
|
-
|
133
189
|
Model.prototype['description'] = undefined;
|
190
|
+
|
134
191
|
/**
|
192
|
+
*
|
135
193
|
* @member {String} model
|
136
194
|
*/
|
137
|
-
|
138
195
|
Model.prototype['model'] = undefined;
|
196
|
+
|
139
197
|
/**
|
198
|
+
*
|
140
199
|
* @member {String} boardConfig
|
141
200
|
*/
|
142
|
-
|
143
201
|
Model.prototype['boardConfig'] = undefined;
|
202
|
+
|
144
203
|
/**
|
204
|
+
*
|
145
205
|
* @member {String} platform
|
146
206
|
*/
|
147
|
-
|
148
207
|
Model.prototype['platform'] = undefined;
|
208
|
+
|
149
209
|
/**
|
210
|
+
*
|
150
211
|
* @member {Number} cpid
|
151
212
|
*/
|
152
|
-
|
153
213
|
Model.prototype['cpid'] = undefined;
|
214
|
+
|
154
215
|
/**
|
216
|
+
*
|
155
217
|
* @member {Number} bdid
|
156
218
|
*/
|
157
|
-
|
158
219
|
Model.prototype['bdid'] = undefined;
|
220
|
+
|
159
221
|
/**
|
222
|
+
*
|
160
223
|
* @member {Boolean} peripherals
|
161
224
|
*/
|
162
|
-
|
163
225
|
Model.prototype['peripherals'] = undefined;
|
164
226
|
var _default = Model;
|
165
227
|
exports["default"] = _default;
|
@@ -4,44 +4,54 @@ 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
|
var _Firmware = _interopRequireDefault(require("./Firmware"));
|
11
|
-
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
13
|
-
|
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
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
15
|
-
|
16
|
-
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); } }
|
17
|
-
|
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); } }
|
18
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; }
|
19
|
-
|
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
|
+
*/
|
20
30
|
/**
|
21
31
|
* The ModelSoftware model module.
|
22
32
|
* @module model/ModelSoftware
|
23
|
-
* @version 0.
|
33
|
+
* @version 0.3.2
|
24
34
|
*/
|
25
35
|
var ModelSoftware = /*#__PURE__*/function () {
|
26
36
|
/**
|
27
37
|
* Constructs a new <code>ModelSoftware</code>.
|
38
|
+
*
|
28
39
|
* @alias module:model/ModelSoftware
|
29
40
|
*/
|
30
41
|
function ModelSoftware() {
|
31
42
|
_classCallCheck(this, ModelSoftware);
|
32
|
-
|
33
43
|
ModelSoftware.initialize(this);
|
34
44
|
}
|
45
|
+
|
35
46
|
/**
|
36
47
|
* Initializes the fields of this object.
|
37
48
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
38
49
|
* Only for internal use.
|
39
50
|
*/
|
40
|
-
|
41
|
-
|
42
51
|
_createClass(ModelSoftware, null, [{
|
43
52
|
key: "initialize",
|
44
53
|
value: function initialize(obj) {}
|
54
|
+
|
45
55
|
/**
|
46
56
|
* Constructs a <code>ModelSoftware</code> from a plain JavaScript object, optionally creating a new instance.
|
47
57
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -49,74 +59,113 @@ var ModelSoftware = /*#__PURE__*/function () {
|
|
49
59
|
* @param {module:model/ModelSoftware} obj Optional instance to populate.
|
50
60
|
* @return {module:model/ModelSoftware} The populated <code>ModelSoftware</code> instance.
|
51
61
|
*/
|
52
|
-
|
53
62
|
}, {
|
54
63
|
key: "constructFromObject",
|
55
64
|
value: function constructFromObject(data, obj) {
|
56
65
|
if (data) {
|
57
66
|
obj = obj || new ModelSoftware();
|
58
|
-
|
59
67
|
if (data.hasOwnProperty('name')) {
|
60
68
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
61
69
|
}
|
62
|
-
|
63
70
|
if (data.hasOwnProperty('boardConfig')) {
|
64
71
|
obj['boardConfig'] = _ApiClient["default"].convertToType(data['boardConfig'], 'String');
|
65
72
|
}
|
66
|
-
|
67
73
|
if (data.hasOwnProperty('platform')) {
|
68
74
|
obj['platform'] = _ApiClient["default"].convertToType(data['platform'], 'String');
|
69
75
|
}
|
70
|
-
|
71
76
|
if (data.hasOwnProperty('cpid')) {
|
72
77
|
obj['cpid'] = _ApiClient["default"].convertToType(data['cpid'], 'Number');
|
73
78
|
}
|
74
|
-
|
75
79
|
if (data.hasOwnProperty('bdid')) {
|
76
80
|
obj['bdid'] = _ApiClient["default"].convertToType(data['bdid'], 'Number');
|
77
81
|
}
|
78
|
-
|
79
82
|
if (data.hasOwnProperty('firmwares')) {
|
80
83
|
obj['firmwares'] = _ApiClient["default"].convertToType(data['firmwares'], [_Firmware["default"]]);
|
81
84
|
}
|
82
85
|
}
|
83
|
-
|
84
86
|
return obj;
|
85
87
|
}
|
86
|
-
}]);
|
87
88
|
|
89
|
+
/**
|
90
|
+
* Validates the JSON data with respect to <code>ModelSoftware</code>.
|
91
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
92
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ModelSoftware</code>.
|
93
|
+
*/
|
94
|
+
}, {
|
95
|
+
key: "validateJSON",
|
96
|
+
value: function validateJSON(data) {
|
97
|
+
// ensure the json data is a string
|
98
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
99
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
100
|
+
}
|
101
|
+
// ensure the json data is a string
|
102
|
+
if (data['boardConfig'] && !(typeof data['boardConfig'] === 'string' || data['boardConfig'] instanceof String)) {
|
103
|
+
throw new Error("Expected the field `boardConfig` to be a primitive type in the JSON string but got " + data['boardConfig']);
|
104
|
+
}
|
105
|
+
// ensure the json data is a string
|
106
|
+
if (data['platform'] && !(typeof data['platform'] === 'string' || data['platform'] instanceof String)) {
|
107
|
+
throw new Error("Expected the field `platform` to be a primitive type in the JSON string but got " + data['platform']);
|
108
|
+
}
|
109
|
+
if (data['firmwares']) {
|
110
|
+
// data not null
|
111
|
+
// ensure the json data is an array
|
112
|
+
if (!Array.isArray(data['firmwares'])) {
|
113
|
+
throw new Error("Expected the field `firmwares` to be an array in the JSON data but got " + data['firmwares']);
|
114
|
+
}
|
115
|
+
// validate the optional field `firmwares` (array)
|
116
|
+
var _iterator = _createForOfIteratorHelper(data['firmwares']),
|
117
|
+
_step;
|
118
|
+
try {
|
119
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
120
|
+
var item = _step.value;
|
121
|
+
_Firmware["default"].validateJSON(item);
|
122
|
+
}
|
123
|
+
} catch (err) {
|
124
|
+
_iterator.e(err);
|
125
|
+
} finally {
|
126
|
+
_iterator.f();
|
127
|
+
}
|
128
|
+
;
|
129
|
+
}
|
130
|
+
return true;
|
131
|
+
}
|
132
|
+
}]);
|
88
133
|
return ModelSoftware;
|
89
134
|
}();
|
90
135
|
/**
|
136
|
+
*
|
91
137
|
* @member {String} name
|
92
138
|
*/
|
93
|
-
|
94
|
-
|
95
139
|
ModelSoftware.prototype['name'] = undefined;
|
140
|
+
|
96
141
|
/**
|
142
|
+
*
|
97
143
|
* @member {String} boardConfig
|
98
144
|
*/
|
99
|
-
|
100
145
|
ModelSoftware.prototype['boardConfig'] = undefined;
|
146
|
+
|
101
147
|
/**
|
148
|
+
*
|
102
149
|
* @member {String} platform
|
103
150
|
*/
|
104
|
-
|
105
151
|
ModelSoftware.prototype['platform'] = undefined;
|
152
|
+
|
106
153
|
/**
|
154
|
+
*
|
107
155
|
* @member {Number} cpid
|
108
156
|
*/
|
109
|
-
|
110
157
|
ModelSoftware.prototype['cpid'] = undefined;
|
158
|
+
|
111
159
|
/**
|
160
|
+
*
|
112
161
|
* @member {Number} bdid
|
113
162
|
*/
|
114
|
-
|
115
163
|
ModelSoftware.prototype['bdid'] = undefined;
|
164
|
+
|
116
165
|
/**
|
166
|
+
*
|
117
167
|
* @member {Array.<module:model/Firmware>} firmwares
|
118
168
|
*/
|
119
|
-
|
120
169
|
ModelSoftware.prototype['firmwares'] = undefined;
|
121
170
|
var _default = ModelSoftware;
|
122
171
|
exports["default"] = _default;
|
@@ -0,0 +1,158 @@
|
|
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 NetdumpFilter model module.
|
28
|
+
* @module model/NetdumpFilter
|
29
|
+
* @version 0.3.2
|
30
|
+
*/
|
31
|
+
var NetdumpFilter = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>NetdumpFilter</code>.
|
34
|
+
*
|
35
|
+
* @alias module:model/NetdumpFilter
|
36
|
+
*/
|
37
|
+
function NetdumpFilter() {
|
38
|
+
_classCallCheck(this, NetdumpFilter);
|
39
|
+
NetdumpFilter.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(NetdumpFilter, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj) {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Constructs a <code>NetdumpFilter</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/NetdumpFilter} obj Optional instance to populate.
|
56
|
+
* @return {module:model/NetdumpFilter} The populated <code>NetdumpFilter</code> instance.
|
57
|
+
*/
|
58
|
+
}, {
|
59
|
+
key: "constructFromObject",
|
60
|
+
value: function constructFromObject(data, obj) {
|
61
|
+
if (data) {
|
62
|
+
obj = obj || new NetdumpFilter();
|
63
|
+
if (data.hasOwnProperty('portRanges')) {
|
64
|
+
obj['portRanges'] = _ApiClient["default"].convertToType(data['portRanges'], ['String']);
|
65
|
+
}
|
66
|
+
if (data.hasOwnProperty('srcPorts')) {
|
67
|
+
obj['srcPorts'] = _ApiClient["default"].convertToType(data['srcPorts'], ['String']);
|
68
|
+
}
|
69
|
+
if (data.hasOwnProperty('dstPorts')) {
|
70
|
+
obj['dstPorts'] = _ApiClient["default"].convertToType(data['dstPorts'], ['String']);
|
71
|
+
}
|
72
|
+
if (data.hasOwnProperty('ports')) {
|
73
|
+
obj['ports'] = _ApiClient["default"].convertToType(data['ports'], ['String']);
|
74
|
+
}
|
75
|
+
if (data.hasOwnProperty('protocols')) {
|
76
|
+
obj['protocols'] = _ApiClient["default"].convertToType(data['protocols'], ['String']);
|
77
|
+
}
|
78
|
+
if (data.hasOwnProperty('processes')) {
|
79
|
+
obj['processes'] = _ApiClient["default"].convertToType(data['processes'], ['String']);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
return obj;
|
83
|
+
}
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Validates the JSON data with respect to <code>NetdumpFilter</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>NetdumpFilter</code>.
|
89
|
+
*/
|
90
|
+
}, {
|
91
|
+
key: "validateJSON",
|
92
|
+
value: function validateJSON(data) {
|
93
|
+
// ensure the json data is an array
|
94
|
+
if (!Array.isArray(data['portRanges'])) {
|
95
|
+
throw new Error("Expected the field `portRanges` to be an array in the JSON data but got " + data['portRanges']);
|
96
|
+
}
|
97
|
+
// ensure the json data is an array
|
98
|
+
if (!Array.isArray(data['srcPorts'])) {
|
99
|
+
throw new Error("Expected the field `srcPorts` to be an array in the JSON data but got " + data['srcPorts']);
|
100
|
+
}
|
101
|
+
// ensure the json data is an array
|
102
|
+
if (!Array.isArray(data['dstPorts'])) {
|
103
|
+
throw new Error("Expected the field `dstPorts` to be an array in the JSON data but got " + data['dstPorts']);
|
104
|
+
}
|
105
|
+
// ensure the json data is an array
|
106
|
+
if (!Array.isArray(data['ports'])) {
|
107
|
+
throw new Error("Expected the field `ports` to be an array in the JSON data but got " + data['ports']);
|
108
|
+
}
|
109
|
+
// ensure the json data is an array
|
110
|
+
if (!Array.isArray(data['protocols'])) {
|
111
|
+
throw new Error("Expected the field `protocols` to be an array in the JSON data but got " + data['protocols']);
|
112
|
+
}
|
113
|
+
// ensure the json data is an array
|
114
|
+
if (!Array.isArray(data['processes'])) {
|
115
|
+
throw new Error("Expected the field `processes` to be an array in the JSON data but got " + data['processes']);
|
116
|
+
}
|
117
|
+
return true;
|
118
|
+
}
|
119
|
+
}]);
|
120
|
+
return NetdumpFilter;
|
121
|
+
}();
|
122
|
+
/**
|
123
|
+
*
|
124
|
+
* @member {Array.<String>} portRanges
|
125
|
+
*/
|
126
|
+
NetdumpFilter.prototype['portRanges'] = undefined;
|
127
|
+
|
128
|
+
/**
|
129
|
+
*
|
130
|
+
* @member {Array.<String>} srcPorts
|
131
|
+
*/
|
132
|
+
NetdumpFilter.prototype['srcPorts'] = undefined;
|
133
|
+
|
134
|
+
/**
|
135
|
+
*
|
136
|
+
* @member {Array.<String>} dstPorts
|
137
|
+
*/
|
138
|
+
NetdumpFilter.prototype['dstPorts'] = undefined;
|
139
|
+
|
140
|
+
/**
|
141
|
+
*
|
142
|
+
* @member {Array.<String>} ports
|
143
|
+
*/
|
144
|
+
NetdumpFilter.prototype['ports'] = undefined;
|
145
|
+
|
146
|
+
/**
|
147
|
+
*
|
148
|
+
* @member {Array.<String>} protocols
|
149
|
+
*/
|
150
|
+
NetdumpFilter.prototype['protocols'] = undefined;
|
151
|
+
|
152
|
+
/**
|
153
|
+
*
|
154
|
+
* @member {Array.<String>} processes
|
155
|
+
*/
|
156
|
+
NetdumpFilter.prototype['processes'] = undefined;
|
157
|
+
var _default = NetdumpFilter;
|
158
|
+
exports["default"] = _default;
|