@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.
- 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 +3 -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,47 +4,58 @@ 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 ApiNotFoundError model module.
|
20
31
|
* @module model/ApiNotFoundError
|
21
|
-
* @version 0.
|
32
|
+
* @version 0.3.2
|
22
33
|
*/
|
23
34
|
var ApiNotFoundError = /*#__PURE__*/function () {
|
24
35
|
/**
|
25
36
|
* Constructs a new <code>ApiNotFoundError</code>.
|
37
|
+
*
|
26
38
|
* @alias module:model/ApiNotFoundError
|
27
39
|
* @param error {String} Error text
|
28
40
|
* @param errorID {String} Error ID
|
29
41
|
*/
|
30
42
|
function ApiNotFoundError(error, errorID) {
|
31
43
|
_classCallCheck(this, ApiNotFoundError);
|
32
|
-
|
33
44
|
ApiNotFoundError.initialize(this, error, errorID);
|
34
45
|
}
|
46
|
+
|
35
47
|
/**
|
36
48
|
* Initializes the fields of this object.
|
37
49
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
38
50
|
* Only for internal use.
|
39
51
|
*/
|
40
|
-
|
41
|
-
|
42
52
|
_createClass(ApiNotFoundError, null, [{
|
43
53
|
key: "initialize",
|
44
54
|
value: function initialize(obj, error, errorID) {
|
45
55
|
obj['error'] = error;
|
46
56
|
obj['errorID'] = errorID;
|
47
57
|
}
|
58
|
+
|
48
59
|
/**
|
49
60
|
* Constructs a <code>ApiNotFoundError</code> from a plain JavaScript object, optionally creating a new instance.
|
50
61
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -52,60 +63,91 @@ var ApiNotFoundError = /*#__PURE__*/function () {
|
|
52
63
|
* @param {module:model/ApiNotFoundError} obj Optional instance to populate.
|
53
64
|
* @return {module:model/ApiNotFoundError} The populated <code>ApiNotFoundError</code> instance.
|
54
65
|
*/
|
55
|
-
|
56
66
|
}, {
|
57
67
|
key: "constructFromObject",
|
58
68
|
value: function constructFromObject(data, obj) {
|
59
69
|
if (data) {
|
60
70
|
obj = obj || new ApiNotFoundError();
|
61
|
-
|
62
71
|
if (data.hasOwnProperty('error')) {
|
63
72
|
obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
|
64
73
|
}
|
65
|
-
|
66
74
|
if (data.hasOwnProperty('errorID')) {
|
67
75
|
obj['errorID'] = _ApiClient["default"].convertToType(data['errorID'], 'String');
|
68
76
|
}
|
69
|
-
|
70
77
|
if (data.hasOwnProperty('name')) {
|
71
78
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
72
79
|
}
|
73
|
-
|
74
80
|
if (data.hasOwnProperty('params')) {
|
75
81
|
obj['params'] = _ApiClient["default"].convertToType(data['params'], Object);
|
76
82
|
}
|
77
83
|
}
|
78
|
-
|
79
84
|
return obj;
|
80
85
|
}
|
81
|
-
}]);
|
82
86
|
|
87
|
+
/**
|
88
|
+
* Validates the JSON data with respect to <code>ApiNotFoundError</code>.
|
89
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
90
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ApiNotFoundError</code>.
|
91
|
+
*/
|
92
|
+
}, {
|
93
|
+
key: "validateJSON",
|
94
|
+
value: function validateJSON(data) {
|
95
|
+
// check to make sure all required properties are present in the JSON string
|
96
|
+
var _iterator = _createForOfIteratorHelper(ApiNotFoundError.RequiredProperties),
|
97
|
+
_step;
|
98
|
+
try {
|
99
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
100
|
+
var property = _step.value;
|
101
|
+
if (!data[property]) {
|
102
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
103
|
+
}
|
104
|
+
}
|
105
|
+
// ensure the json data is a string
|
106
|
+
} catch (err) {
|
107
|
+
_iterator.e(err);
|
108
|
+
} finally {
|
109
|
+
_iterator.f();
|
110
|
+
}
|
111
|
+
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
|
112
|
+
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
|
113
|
+
}
|
114
|
+
// ensure the json data is a string
|
115
|
+
if (data['errorID'] && !(typeof data['errorID'] === 'string' || data['errorID'] instanceof String)) {
|
116
|
+
throw new Error("Expected the field `errorID` to be a primitive type in the JSON string but got " + data['errorID']);
|
117
|
+
}
|
118
|
+
// ensure the json data is a string
|
119
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
120
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
121
|
+
}
|
122
|
+
return true;
|
123
|
+
}
|
124
|
+
}]);
|
83
125
|
return ApiNotFoundError;
|
84
126
|
}();
|
127
|
+
ApiNotFoundError.RequiredProperties = ["error", "errorID"];
|
128
|
+
|
85
129
|
/**
|
86
130
|
* Error text
|
87
131
|
* @member {String} error
|
88
132
|
*/
|
89
|
-
|
90
|
-
|
91
133
|
ApiNotFoundError.prototype['error'] = undefined;
|
134
|
+
|
92
135
|
/**
|
93
136
|
* Error ID
|
94
137
|
* @member {String} errorID
|
95
138
|
*/
|
96
|
-
|
97
139
|
ApiNotFoundError.prototype['errorID'] = undefined;
|
140
|
+
|
98
141
|
/**
|
99
142
|
* Name of the object requested
|
100
143
|
* @member {String} name
|
101
144
|
*/
|
102
|
-
|
103
145
|
ApiNotFoundError.prototype['name'] = undefined;
|
146
|
+
|
104
147
|
/**
|
105
148
|
* params provided by user
|
106
149
|
* @member {Object} params
|
107
150
|
*/
|
108
|
-
|
109
151
|
ApiNotFoundError.prototype['params'] = undefined;
|
110
152
|
var _default = ApiNotFoundError;
|
111
153
|
exports["default"] = _default;
|
@@ -4,45 +4,56 @@ 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 ApiToken model module.
|
20
31
|
* @module model/ApiToken
|
21
|
-
* @version 0.
|
32
|
+
* @version 0.3.2
|
22
33
|
*/
|
23
34
|
var ApiToken = /*#__PURE__*/function () {
|
24
35
|
/**
|
25
36
|
* Constructs a new <code>ApiToken</code>.
|
37
|
+
*
|
26
38
|
* @alias module:model/ApiToken
|
27
39
|
* @param apiToken {String}
|
28
40
|
*/
|
29
41
|
function ApiToken(apiToken) {
|
30
42
|
_classCallCheck(this, ApiToken);
|
31
|
-
|
32
43
|
ApiToken.initialize(this, apiToken);
|
33
44
|
}
|
45
|
+
|
34
46
|
/**
|
35
47
|
* Initializes the fields of this object.
|
36
48
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
37
49
|
* Only for internal use.
|
38
50
|
*/
|
39
|
-
|
40
|
-
|
41
51
|
_createClass(ApiToken, null, [{
|
42
52
|
key: "initialize",
|
43
53
|
value: function initialize(obj, apiToken) {
|
44
54
|
obj['apiToken'] = apiToken;
|
45
55
|
}
|
56
|
+
|
46
57
|
/**
|
47
58
|
* Constructs a <code>ApiToken</code> from a plain JavaScript object, optionally creating a new instance.
|
48
59
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -50,29 +61,56 @@ var ApiToken = /*#__PURE__*/function () {
|
|
50
61
|
* @param {module:model/ApiToken} obj Optional instance to populate.
|
51
62
|
* @return {module:model/ApiToken} The populated <code>ApiToken</code> instance.
|
52
63
|
*/
|
53
|
-
|
54
64
|
}, {
|
55
65
|
key: "constructFromObject",
|
56
66
|
value: function constructFromObject(data, obj) {
|
57
67
|
if (data) {
|
58
68
|
obj = obj || new ApiToken();
|
59
|
-
|
60
69
|
if (data.hasOwnProperty('apiToken')) {
|
61
70
|
obj['apiToken'] = _ApiClient["default"].convertToType(data['apiToken'], 'String');
|
62
71
|
}
|
63
72
|
}
|
64
|
-
|
65
73
|
return obj;
|
66
74
|
}
|
67
|
-
}]);
|
68
75
|
|
76
|
+
/**
|
77
|
+
* Validates the JSON data with respect to <code>ApiToken</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>ApiToken</code>.
|
80
|
+
*/
|
81
|
+
}, {
|
82
|
+
key: "validateJSON",
|
83
|
+
value: function validateJSON(data) {
|
84
|
+
// check to make sure all required properties are present in the JSON string
|
85
|
+
var _iterator = _createForOfIteratorHelper(ApiToken.RequiredProperties),
|
86
|
+
_step;
|
87
|
+
try {
|
88
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
89
|
+
var property = _step.value;
|
90
|
+
if (!data[property]) {
|
91
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
92
|
+
}
|
93
|
+
}
|
94
|
+
// ensure the json data is a string
|
95
|
+
} catch (err) {
|
96
|
+
_iterator.e(err);
|
97
|
+
} finally {
|
98
|
+
_iterator.f();
|
99
|
+
}
|
100
|
+
if (data['apiToken'] && !(typeof data['apiToken'] === 'string' || data['apiToken'] instanceof String)) {
|
101
|
+
throw new Error("Expected the field `apiToken` to be a primitive type in the JSON string but got " + data['apiToken']);
|
102
|
+
}
|
103
|
+
return true;
|
104
|
+
}
|
105
|
+
}]);
|
69
106
|
return ApiToken;
|
70
107
|
}();
|
108
|
+
ApiToken.RequiredProperties = ["apiToken"];
|
109
|
+
|
71
110
|
/**
|
111
|
+
*
|
72
112
|
* @member {String} apiToken
|
73
113
|
*/
|
74
|
-
|
75
|
-
|
76
114
|
ApiToken.prototype['apiToken'] = undefined;
|
77
115
|
var _default = ApiToken;
|
78
116
|
exports["default"] = _default;
|
@@ -4,19 +4,26 @@ 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
|
-
|
18
|
-
function
|
19
|
-
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
15
|
+
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); } /**
|
16
|
+
* Corellium API
|
17
|
+
* REST API to manage your virtual devices.
|
18
|
+
*
|
19
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
20
|
+
*
|
21
|
+
*
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
23
|
+
* https://openapi-generator.tech
|
24
|
+
* Do not edit the class manually.
|
25
|
+
*
|
26
|
+
*/
|
20
27
|
/**
|
21
28
|
* Enum class Bit.
|
22
29
|
* @enum {}
|
@@ -25,12 +32,17 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
25
32
|
var Bit = /*#__PURE__*/function () {
|
26
33
|
function Bit() {
|
27
34
|
_classCallCheck(this, Bit);
|
28
|
-
|
35
|
+
/**
|
36
|
+
* value: 0
|
37
|
+
* @const
|
38
|
+
*/
|
29
39
|
_defineProperty(this, "0", 0);
|
30
|
-
|
40
|
+
/**
|
41
|
+
* value: 1
|
42
|
+
* @const
|
43
|
+
*/
|
31
44
|
_defineProperty(this, "1", 1);
|
32
45
|
}
|
33
|
-
|
34
46
|
_createClass(Bit, null, [{
|
35
47
|
key: "constructFromObject",
|
36
48
|
value:
|
@@ -43,8 +55,6 @@ var Bit = /*#__PURE__*/function () {
|
|
43
55
|
return object;
|
44
56
|
}
|
45
57
|
}]);
|
46
|
-
|
47
58
|
return Bit;
|
48
59
|
}();
|
49
|
-
|
50
60
|
exports["default"] = Bit;
|
@@ -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 BtraceEnableOptions model module.
|
28
|
+
* @module model/BtraceEnableOptions
|
29
|
+
* @version 0.3.2
|
30
|
+
*/
|
31
|
+
var BtraceEnableOptions = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>BtraceEnableOptions</code>.
|
34
|
+
*
|
35
|
+
* @alias module:model/BtraceEnableOptions
|
36
|
+
*/
|
37
|
+
function BtraceEnableOptions() {
|
38
|
+
_classCallCheck(this, BtraceEnableOptions);
|
39
|
+
BtraceEnableOptions.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(BtraceEnableOptions, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj) {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Constructs a <code>BtraceEnableOptions</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/BtraceEnableOptions} obj Optional instance to populate.
|
56
|
+
* @return {module:model/BtraceEnableOptions} The populated <code>BtraceEnableOptions</code> instance.
|
57
|
+
*/
|
58
|
+
}, {
|
59
|
+
key: "constructFromObject",
|
60
|
+
value: function constructFromObject(data, obj) {
|
61
|
+
if (data) {
|
62
|
+
obj = obj || new BtraceEnableOptions();
|
63
|
+
if (data.hasOwnProperty('ranges')) {
|
64
|
+
obj['ranges'] = _ApiClient["default"].convertToType(data['ranges'], [['String']]);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
return obj;
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Validates the JSON data with respect to <code>BtraceEnableOptions</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>BtraceEnableOptions</code>.
|
74
|
+
*/
|
75
|
+
}, {
|
76
|
+
key: "validateJSON",
|
77
|
+
value: function validateJSON(data) {
|
78
|
+
// ensure the json data is an array
|
79
|
+
if (!Array.isArray(data['ranges'])) {
|
80
|
+
throw new Error("Expected the field `ranges` to be an array in the JSON data but got " + data['ranges']);
|
81
|
+
}
|
82
|
+
return true;
|
83
|
+
}
|
84
|
+
}]);
|
85
|
+
return BtraceEnableOptions;
|
86
|
+
}();
|
87
|
+
/**
|
88
|
+
*
|
89
|
+
* @member {Array.<Array.<String>>} ranges
|
90
|
+
*/
|
91
|
+
BtraceEnableOptions.prototype['ranges'] = undefined;
|
92
|
+
var _default = BtraceEnableOptions;
|
93
|
+
exports["default"] = _default;
|
@@ -0,0 +1,90 @@
|
|
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 _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
15
|
+
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); } /**
|
16
|
+
* Corellium API
|
17
|
+
* REST API to manage your virtual devices.
|
18
|
+
*
|
19
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
20
|
+
*
|
21
|
+
*
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
23
|
+
* https://openapi-generator.tech
|
24
|
+
* Do not edit the class manually.
|
25
|
+
*
|
26
|
+
*/
|
27
|
+
/**
|
28
|
+
* Enum class Button.
|
29
|
+
* @enum {}
|
30
|
+
* @readonly
|
31
|
+
*/
|
32
|
+
var Button = /*#__PURE__*/function () {
|
33
|
+
function Button() {
|
34
|
+
_classCallCheck(this, Button);
|
35
|
+
/**
|
36
|
+
* value: "finger"
|
37
|
+
* @const
|
38
|
+
*/
|
39
|
+
_defineProperty(this, "finger", "finger");
|
40
|
+
/**
|
41
|
+
* value: "homeButton"
|
42
|
+
* @const
|
43
|
+
*/
|
44
|
+
_defineProperty(this, "homeButton", "homeButton");
|
45
|
+
/**
|
46
|
+
* value: "holdButton"
|
47
|
+
* @const
|
48
|
+
*/
|
49
|
+
_defineProperty(this, "holdButton", "holdButton");
|
50
|
+
/**
|
51
|
+
* value: "volumeUp"
|
52
|
+
* @const
|
53
|
+
*/
|
54
|
+
_defineProperty(this, "volumeUp", "volumeUp");
|
55
|
+
/**
|
56
|
+
* value: "volumeDown"
|
57
|
+
* @const
|
58
|
+
*/
|
59
|
+
_defineProperty(this, "volumeDown", "volumeDown");
|
60
|
+
/**
|
61
|
+
* value: "ringerSwitch"
|
62
|
+
* @const
|
63
|
+
*/
|
64
|
+
_defineProperty(this, "ringerSwitch", "ringerSwitch");
|
65
|
+
/**
|
66
|
+
* value: "backButton"
|
67
|
+
* @const
|
68
|
+
*/
|
69
|
+
_defineProperty(this, "backButton", "backButton");
|
70
|
+
/**
|
71
|
+
* value: "overviewButton"
|
72
|
+
* @const
|
73
|
+
*/
|
74
|
+
_defineProperty(this, "overviewButton", "overviewButton");
|
75
|
+
}
|
76
|
+
_createClass(Button, null, [{
|
77
|
+
key: "constructFromObject",
|
78
|
+
value:
|
79
|
+
/**
|
80
|
+
* Returns a <code>Button</code> enum value from a Javascript object name.
|
81
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
82
|
+
* @return {module:model/Button} The enum <code>Button</code> value.
|
83
|
+
*/
|
84
|
+
function constructFromObject(object) {
|
85
|
+
return object;
|
86
|
+
}
|
87
|
+
}]);
|
88
|
+
return Button;
|
89
|
+
}();
|
90
|
+
exports["default"] = Button;
|