@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
@@ -0,0 +1,120 @@
|
|
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 FileChanges model module.
|
28
|
+
* @module model/FileChanges
|
29
|
+
* @version 0.3.2
|
30
|
+
*/
|
31
|
+
var FileChanges = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>FileChanges</code>.
|
34
|
+
*
|
35
|
+
* @alias module:model/FileChanges
|
36
|
+
*/
|
37
|
+
function FileChanges() {
|
38
|
+
_classCallCheck(this, FileChanges);
|
39
|
+
FileChanges.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(FileChanges, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj) {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Constructs a <code>FileChanges</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/FileChanges} obj Optional instance to populate.
|
56
|
+
* @return {module:model/FileChanges} The populated <code>FileChanges</code> instance.
|
57
|
+
*/
|
58
|
+
}, {
|
59
|
+
key: "constructFromObject",
|
60
|
+
value: function constructFromObject(data, obj) {
|
61
|
+
if (data) {
|
62
|
+
obj = obj || new FileChanges();
|
63
|
+
if (data.hasOwnProperty('path')) {
|
64
|
+
obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String');
|
65
|
+
}
|
66
|
+
if (data.hasOwnProperty('mode')) {
|
67
|
+
obj['mode'] = _ApiClient["default"].convertToType(data['mode'], 'Number');
|
68
|
+
}
|
69
|
+
if (data.hasOwnProperty('uid')) {
|
70
|
+
obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'Number');
|
71
|
+
}
|
72
|
+
if (data.hasOwnProperty('gid')) {
|
73
|
+
obj['gid'] = _ApiClient["default"].convertToType(data['gid'], 'Number');
|
74
|
+
}
|
75
|
+
}
|
76
|
+
return obj;
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Validates the JSON data with respect to <code>FileChanges</code>.
|
81
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
82
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>FileChanges</code>.
|
83
|
+
*/
|
84
|
+
}, {
|
85
|
+
key: "validateJSON",
|
86
|
+
value: function validateJSON(data) {
|
87
|
+
// ensure the json data is a string
|
88
|
+
if (data['path'] && !(typeof data['path'] === 'string' || data['path'] instanceof String)) {
|
89
|
+
throw new Error("Expected the field `path` to be a primitive type in the JSON string but got " + data['path']);
|
90
|
+
}
|
91
|
+
return true;
|
92
|
+
}
|
93
|
+
}]);
|
94
|
+
return FileChanges;
|
95
|
+
}();
|
96
|
+
/**
|
97
|
+
* Optional New path
|
98
|
+
* @member {String} path
|
99
|
+
*/
|
100
|
+
FileChanges.prototype['path'] = undefined;
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Optional New Mode
|
104
|
+
* @member {Number} mode
|
105
|
+
*/
|
106
|
+
FileChanges.prototype['mode'] = undefined;
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Optional New Owner UID
|
110
|
+
* @member {Number} uid
|
111
|
+
*/
|
112
|
+
FileChanges.prototype['uid'] = undefined;
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Optional New Group GID
|
116
|
+
* @member {Number} gid
|
117
|
+
*/
|
118
|
+
FileChanges.prototype['gid'] = undefined;
|
119
|
+
var _default = FileChanges;
|
120
|
+
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 Firmware model module.
|
20
28
|
* @module model/Firmware
|
21
|
-
* @version 0.
|
29
|
+
* @version 0.3.2
|
22
30
|
*/
|
23
31
|
var Firmware = /*#__PURE__*/function () {
|
24
32
|
/**
|
25
33
|
* Constructs a new <code>Firmware</code>.
|
34
|
+
*
|
26
35
|
* @alias module:model/Firmware
|
27
36
|
*/
|
28
37
|
function Firmware() {
|
29
38
|
_classCallCheck(this, Firmware);
|
30
|
-
|
31
39
|
Firmware.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(Firmware, null, [{
|
41
48
|
key: "initialize",
|
42
49
|
value: function initialize(obj) {}
|
50
|
+
|
43
51
|
/**
|
44
52
|
* Constructs a <code>Firmware</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,162 +55,205 @@ var Firmware = /*#__PURE__*/function () {
|
|
47
55
|
* @param {module:model/Firmware} obj Optional instance to populate.
|
48
56
|
* @return {module:model/Firmware} The populated <code>Firmware</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 Firmware();
|
56
|
-
|
57
63
|
if (data.hasOwnProperty('version')) {
|
58
64
|
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
59
65
|
}
|
60
|
-
|
61
66
|
if (data.hasOwnProperty('buildid')) {
|
62
67
|
obj['buildid'] = _ApiClient["default"].convertToType(data['buildid'], 'String');
|
63
68
|
}
|
64
|
-
|
65
69
|
if (data.hasOwnProperty('AndroidFlavor')) {
|
66
70
|
obj['AndroidFlavor'] = _ApiClient["default"].convertToType(data['AndroidFlavor'], 'String');
|
67
71
|
}
|
68
|
-
|
69
72
|
if (data.hasOwnProperty('APIVersion')) {
|
70
73
|
obj['APIVersion'] = _ApiClient["default"].convertToType(data['APIVersion'], 'String');
|
71
74
|
}
|
72
|
-
|
73
75
|
if (data.hasOwnProperty('sha256sum')) {
|
74
76
|
obj['sha256sum'] = _ApiClient["default"].convertToType(data['sha256sum'], 'String');
|
75
77
|
}
|
76
|
-
|
77
78
|
if (data.hasOwnProperty('sha1sum')) {
|
78
79
|
obj['sha1sum'] = _ApiClient["default"].convertToType(data['sha1sum'], 'String');
|
79
80
|
}
|
80
|
-
|
81
81
|
if (data.hasOwnProperty('md5sum')) {
|
82
82
|
obj['md5sum'] = _ApiClient["default"].convertToType(data['md5sum'], 'String');
|
83
83
|
}
|
84
|
-
|
85
84
|
if (data.hasOwnProperty('size')) {
|
86
85
|
obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number');
|
87
86
|
}
|
88
|
-
|
89
87
|
if (data.hasOwnProperty('uniqueId')) {
|
90
88
|
obj['uniqueId'] = _ApiClient["default"].convertToType(data['uniqueId'], 'String');
|
91
89
|
}
|
92
|
-
|
93
90
|
if (data.hasOwnProperty('metadata')) {
|
94
91
|
obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
|
95
92
|
}
|
96
|
-
|
97
93
|
if (data.hasOwnProperty('releasedate')) {
|
98
94
|
obj['releasedate'] = _ApiClient["default"].convertToType(data['releasedate'], 'Date');
|
99
95
|
}
|
100
|
-
|
101
96
|
if (data.hasOwnProperty('uploaddate')) {
|
102
97
|
obj['uploaddate'] = _ApiClient["default"].convertToType(data['uploaddate'], 'Date');
|
103
98
|
}
|
104
|
-
|
105
99
|
if (data.hasOwnProperty('url')) {
|
106
100
|
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
107
101
|
}
|
108
|
-
|
109
102
|
if (data.hasOwnProperty('orig_url')) {
|
110
103
|
obj['orig_url'] = _ApiClient["default"].convertToType(data['orig_url'], 'String');
|
111
104
|
}
|
112
|
-
|
113
105
|
if (data.hasOwnProperty('filename')) {
|
114
106
|
obj['filename'] = _ApiClient["default"].convertToType(data['filename'], 'String');
|
115
107
|
}
|
116
108
|
}
|
117
|
-
|
118
109
|
return obj;
|
119
110
|
}
|
120
|
-
}]);
|
121
111
|
|
112
|
+
/**
|
113
|
+
* Validates the JSON data with respect to <code>Firmware</code>.
|
114
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
115
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Firmware</code>.
|
116
|
+
*/
|
117
|
+
}, {
|
118
|
+
key: "validateJSON",
|
119
|
+
value: function validateJSON(data) {
|
120
|
+
// ensure the json data is a string
|
121
|
+
if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
|
122
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
|
123
|
+
}
|
124
|
+
// ensure the json data is a string
|
125
|
+
if (data['buildid'] && !(typeof data['buildid'] === 'string' || data['buildid'] instanceof String)) {
|
126
|
+
throw new Error("Expected the field `buildid` to be a primitive type in the JSON string but got " + data['buildid']);
|
127
|
+
}
|
128
|
+
// ensure the json data is a string
|
129
|
+
if (data['AndroidFlavor'] && !(typeof data['AndroidFlavor'] === 'string' || data['AndroidFlavor'] instanceof String)) {
|
130
|
+
throw new Error("Expected the field `AndroidFlavor` to be a primitive type in the JSON string but got " + data['AndroidFlavor']);
|
131
|
+
}
|
132
|
+
// ensure the json data is a string
|
133
|
+
if (data['APIVersion'] && !(typeof data['APIVersion'] === 'string' || data['APIVersion'] instanceof String)) {
|
134
|
+
throw new Error("Expected the field `APIVersion` to be a primitive type in the JSON string but got " + data['APIVersion']);
|
135
|
+
}
|
136
|
+
// ensure the json data is a string
|
137
|
+
if (data['sha256sum'] && !(typeof data['sha256sum'] === 'string' || data['sha256sum'] instanceof String)) {
|
138
|
+
throw new Error("Expected the field `sha256sum` to be a primitive type in the JSON string but got " + data['sha256sum']);
|
139
|
+
}
|
140
|
+
// ensure the json data is a string
|
141
|
+
if (data['sha1sum'] && !(typeof data['sha1sum'] === 'string' || data['sha1sum'] instanceof String)) {
|
142
|
+
throw new Error("Expected the field `sha1sum` to be a primitive type in the JSON string but got " + data['sha1sum']);
|
143
|
+
}
|
144
|
+
// ensure the json data is a string
|
145
|
+
if (data['md5sum'] && !(typeof data['md5sum'] === 'string' || data['md5sum'] instanceof String)) {
|
146
|
+
throw new Error("Expected the field `md5sum` to be a primitive type in the JSON string but got " + data['md5sum']);
|
147
|
+
}
|
148
|
+
// ensure the json data is a string
|
149
|
+
if (data['uniqueId'] && !(typeof data['uniqueId'] === 'string' || data['uniqueId'] instanceof String)) {
|
150
|
+
throw new Error("Expected the field `uniqueId` to be a primitive type in the JSON string but got " + data['uniqueId']);
|
151
|
+
}
|
152
|
+
// ensure the json data is a string
|
153
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
154
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
155
|
+
}
|
156
|
+
// ensure the json data is a string
|
157
|
+
if (data['orig_url'] && !(typeof data['orig_url'] === 'string' || data['orig_url'] instanceof String)) {
|
158
|
+
throw new Error("Expected the field `orig_url` to be a primitive type in the JSON string but got " + data['orig_url']);
|
159
|
+
}
|
160
|
+
// ensure the json data is a string
|
161
|
+
if (data['filename'] && !(typeof data['filename'] === 'string' || data['filename'] instanceof String)) {
|
162
|
+
throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data['filename']);
|
163
|
+
}
|
164
|
+
return true;
|
165
|
+
}
|
166
|
+
}]);
|
122
167
|
return Firmware;
|
123
168
|
}();
|
124
169
|
/**
|
170
|
+
*
|
125
171
|
* @member {String} version
|
126
172
|
*/
|
127
|
-
|
128
|
-
|
129
173
|
Firmware.prototype['version'] = undefined;
|
174
|
+
|
130
175
|
/**
|
176
|
+
*
|
131
177
|
* @member {String} buildid
|
132
178
|
*/
|
133
|
-
|
134
179
|
Firmware.prototype['buildid'] = undefined;
|
180
|
+
|
135
181
|
/**
|
136
|
-
*
|
182
|
+
* Android only flavor
|
137
183
|
* @member {String} AndroidFlavor
|
138
184
|
*/
|
139
|
-
|
140
185
|
Firmware.prototype['AndroidFlavor'] = undefined;
|
186
|
+
|
141
187
|
/**
|
142
188
|
* Android only API version
|
143
189
|
* @member {String} APIVersion
|
144
190
|
*/
|
145
|
-
|
146
191
|
Firmware.prototype['APIVersion'] = undefined;
|
192
|
+
|
147
193
|
/**
|
194
|
+
*
|
148
195
|
* @member {String} sha256sum
|
149
196
|
*/
|
150
|
-
|
151
197
|
Firmware.prototype['sha256sum'] = undefined;
|
198
|
+
|
152
199
|
/**
|
200
|
+
*
|
153
201
|
* @member {String} sha1sum
|
154
202
|
*/
|
155
|
-
|
156
203
|
Firmware.prototype['sha1sum'] = undefined;
|
204
|
+
|
157
205
|
/**
|
206
|
+
*
|
158
207
|
* @member {String} md5sum
|
159
208
|
*/
|
160
|
-
|
161
209
|
Firmware.prototype['md5sum'] = undefined;
|
210
|
+
|
162
211
|
/**
|
212
|
+
*
|
163
213
|
* @member {Number} size
|
164
214
|
*/
|
165
|
-
|
166
215
|
Firmware.prototype['size'] = undefined;
|
216
|
+
|
167
217
|
/**
|
218
|
+
*
|
168
219
|
* @member {String} uniqueId
|
169
220
|
*/
|
170
|
-
|
171
221
|
Firmware.prototype['uniqueId'] = undefined;
|
222
|
+
|
172
223
|
/**
|
173
224
|
* Firmware metadata
|
174
225
|
* @member {Object} metadata
|
175
226
|
*/
|
176
|
-
|
177
227
|
Firmware.prototype['metadata'] = undefined;
|
228
|
+
|
178
229
|
/**
|
179
230
|
* Release Date
|
180
231
|
* @member {Date} releasedate
|
181
232
|
*/
|
182
|
-
|
183
233
|
Firmware.prototype['releasedate'] = undefined;
|
234
|
+
|
184
235
|
/**
|
185
236
|
* Date uploaded
|
186
237
|
* @member {Date} uploaddate
|
187
238
|
*/
|
188
|
-
|
189
239
|
Firmware.prototype['uploaddate'] = undefined;
|
240
|
+
|
190
241
|
/**
|
191
242
|
* URL firmware is available at
|
192
243
|
* @member {String} url
|
193
244
|
*/
|
194
|
-
|
195
245
|
Firmware.prototype['url'] = undefined;
|
246
|
+
|
196
247
|
/**
|
197
248
|
* URL firmware is available at from vendor
|
198
249
|
* @member {String} orig_url
|
199
250
|
*/
|
200
|
-
|
201
251
|
Firmware.prototype['orig_url'] = undefined;
|
252
|
+
|
202
253
|
/**
|
254
|
+
*
|
203
255
|
* @member {String} filename
|
204
256
|
*/
|
205
|
-
|
206
257
|
Firmware.prototype['filename'] = undefined;
|
207
258
|
var _default = Firmware;
|
208
259
|
exports["default"] = _default;
|
@@ -4,49 +4,59 @@ 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 _Bit = _interopRequireDefault(require("./Bit"));
|
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 GpioStateDefinition model module.
|
22
32
|
* @module model/GpioStateDefinition
|
23
|
-
* @version 0.
|
33
|
+
* @version 0.3.2
|
24
34
|
*/
|
25
35
|
var GpioStateDefinition = /*#__PURE__*/function () {
|
26
36
|
/**
|
27
37
|
* Constructs a new <code>GpioStateDefinition</code>.
|
38
|
+
*
|
28
39
|
* @alias module:model/GpioStateDefinition
|
29
40
|
* @param bitCount {Number} count of bits in members of this bank
|
30
41
|
* @param banks {Array.<Array.<module:model/Bit>>} bits for each bank of this name as an array of arrays
|
31
42
|
*/
|
32
43
|
function GpioStateDefinition(bitCount, banks) {
|
33
44
|
_classCallCheck(this, GpioStateDefinition);
|
34
|
-
|
35
45
|
GpioStateDefinition.initialize(this, bitCount, banks);
|
36
46
|
}
|
47
|
+
|
37
48
|
/**
|
38
49
|
* Initializes the fields of this object.
|
39
50
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
40
51
|
* Only for internal use.
|
41
52
|
*/
|
42
|
-
|
43
|
-
|
44
53
|
_createClass(GpioStateDefinition, null, [{
|
45
54
|
key: "initialize",
|
46
55
|
value: function initialize(obj, bitCount, banks) {
|
47
56
|
obj['bitCount'] = bitCount;
|
48
57
|
obj['banks'] = banks;
|
49
58
|
}
|
59
|
+
|
50
60
|
/**
|
51
61
|
* Constructs a <code>GpioStateDefinition</code> from a plain JavaScript object, optionally creating a new instance.
|
52
62
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
@@ -54,40 +64,65 @@ var GpioStateDefinition = /*#__PURE__*/function () {
|
|
54
64
|
* @param {module:model/GpioStateDefinition} obj Optional instance to populate.
|
55
65
|
* @return {module:model/GpioStateDefinition} The populated <code>GpioStateDefinition</code> instance.
|
56
66
|
*/
|
57
|
-
|
58
67
|
}, {
|
59
68
|
key: "constructFromObject",
|
60
69
|
value: function constructFromObject(data, obj) {
|
61
70
|
if (data) {
|
62
71
|
obj = obj || new GpioStateDefinition();
|
63
|
-
|
64
72
|
if (data.hasOwnProperty('bitCount')) {
|
65
73
|
obj['bitCount'] = _ApiClient["default"].convertToType(data['bitCount'], 'Number');
|
66
74
|
}
|
67
|
-
|
68
75
|
if (data.hasOwnProperty('banks')) {
|
69
76
|
obj['banks'] = _ApiClient["default"].convertToType(data['banks'], [[_Bit["default"]]]);
|
70
77
|
}
|
71
78
|
}
|
72
|
-
|
73
79
|
return obj;
|
74
80
|
}
|
75
|
-
}]);
|
76
81
|
|
82
|
+
/**
|
83
|
+
* Validates the JSON data with respect to <code>GpioStateDefinition</code>.
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
85
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GpioStateDefinition</code>.
|
86
|
+
*/
|
87
|
+
}, {
|
88
|
+
key: "validateJSON",
|
89
|
+
value: function validateJSON(data) {
|
90
|
+
// check to make sure all required properties are present in the JSON string
|
91
|
+
var _iterator = _createForOfIteratorHelper(GpioStateDefinition.RequiredProperties),
|
92
|
+
_step;
|
93
|
+
try {
|
94
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
95
|
+
var property = _step.value;
|
96
|
+
if (!data[property]) {
|
97
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
98
|
+
}
|
99
|
+
}
|
100
|
+
// ensure the json data is an array
|
101
|
+
} catch (err) {
|
102
|
+
_iterator.e(err);
|
103
|
+
} finally {
|
104
|
+
_iterator.f();
|
105
|
+
}
|
106
|
+
if (!Array.isArray(data['banks'])) {
|
107
|
+
throw new Error("Expected the field `banks` to be an array in the JSON data but got " + data['banks']);
|
108
|
+
}
|
109
|
+
return true;
|
110
|
+
}
|
111
|
+
}]);
|
77
112
|
return GpioStateDefinition;
|
78
113
|
}();
|
114
|
+
GpioStateDefinition.RequiredProperties = ["bitCount", "banks"];
|
115
|
+
|
79
116
|
/**
|
80
117
|
* count of bits in members of this bank
|
81
118
|
* @member {Number} bitCount
|
82
119
|
*/
|
83
|
-
|
84
|
-
|
85
120
|
GpioStateDefinition.prototype['bitCount'] = undefined;
|
121
|
+
|
86
122
|
/**
|
87
123
|
* bits for each bank of this name as an array of arrays
|
88
124
|
* @member {Array.<Array.<module:model/Bit>>} banks
|
89
125
|
*/
|
90
|
-
|
91
126
|
GpioStateDefinition.prototype['banks'] = undefined;
|
92
127
|
var _default = GpioStateDefinition;
|
93
128
|
exports["default"] = _default;
|