@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,161 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports["default"] = void 0;
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
10
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
14
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
18
|
+
* Corellium API
|
19
|
+
* REST API to manage your virtual devices.
|
20
|
+
*
|
21
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
22
|
+
*
|
23
|
+
*
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
25
|
+
* https://openapi-generator.tech
|
26
|
+
* Do not edit the class manually.
|
27
|
+
*
|
28
|
+
*/
|
29
|
+
/**
|
30
|
+
* The CouponOptions model module.
|
31
|
+
* @module model/CouponOptions
|
32
|
+
* @version 0.3.2
|
33
|
+
*/
|
34
|
+
var CouponOptions = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>CouponOptions</code>.
|
37
|
+
* Coupon options
|
38
|
+
* @alias module:model/CouponOptions
|
39
|
+
* @param type {module:model/CouponOptions.TypeEnum}
|
40
|
+
* @param amount {Number} Amount
|
41
|
+
* @param used {Boolean} Is Used. If true, this coupon has been used and cannot be used again
|
42
|
+
*/
|
43
|
+
function CouponOptions(type, amount, used) {
|
44
|
+
_classCallCheck(this, CouponOptions);
|
45
|
+
CouponOptions.initialize(this, type, amount, used);
|
46
|
+
}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Initializes the fields of this object.
|
50
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
51
|
+
* Only for internal use.
|
52
|
+
*/
|
53
|
+
_createClass(CouponOptions, null, [{
|
54
|
+
key: "initialize",
|
55
|
+
value: function initialize(obj, type, amount, used) {
|
56
|
+
obj['type'] = type;
|
57
|
+
obj['amount'] = amount;
|
58
|
+
obj['used'] = used;
|
59
|
+
}
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Constructs a <code>CouponOptions</code> from a plain JavaScript object, optionally creating a new instance.
|
63
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
64
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
65
|
+
* @param {module:model/CouponOptions} obj Optional instance to populate.
|
66
|
+
* @return {module:model/CouponOptions} The populated <code>CouponOptions</code> instance.
|
67
|
+
*/
|
68
|
+
}, {
|
69
|
+
key: "constructFromObject",
|
70
|
+
value: function constructFromObject(data, obj) {
|
71
|
+
if (data) {
|
72
|
+
obj = obj || new CouponOptions();
|
73
|
+
if (data.hasOwnProperty('type')) {
|
74
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
75
|
+
}
|
76
|
+
if (data.hasOwnProperty('amount')) {
|
77
|
+
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number');
|
78
|
+
}
|
79
|
+
if (data.hasOwnProperty('used')) {
|
80
|
+
obj['used'] = _ApiClient["default"].convertToType(data['used'], 'Boolean');
|
81
|
+
}
|
82
|
+
}
|
83
|
+
return obj;
|
84
|
+
}
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Validates the JSON data with respect to <code>CouponOptions</code>.
|
88
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
89
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CouponOptions</code>.
|
90
|
+
*/
|
91
|
+
}, {
|
92
|
+
key: "validateJSON",
|
93
|
+
value: function validateJSON(data) {
|
94
|
+
// check to make sure all required properties are present in the JSON string
|
95
|
+
var _iterator = _createForOfIteratorHelper(CouponOptions.RequiredProperties),
|
96
|
+
_step;
|
97
|
+
try {
|
98
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
99
|
+
var property = _step.value;
|
100
|
+
if (!data[property]) {
|
101
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
102
|
+
}
|
103
|
+
}
|
104
|
+
// ensure the json data is a string
|
105
|
+
} catch (err) {
|
106
|
+
_iterator.e(err);
|
107
|
+
} finally {
|
108
|
+
_iterator.f();
|
109
|
+
}
|
110
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
111
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
112
|
+
}
|
113
|
+
return true;
|
114
|
+
}
|
115
|
+
}]);
|
116
|
+
return CouponOptions;
|
117
|
+
}();
|
118
|
+
CouponOptions.RequiredProperties = ["type", "amount", "used"];
|
119
|
+
|
120
|
+
/**
|
121
|
+
*
|
122
|
+
* @member {module:model/CouponOptions.TypeEnum} type
|
123
|
+
*/
|
124
|
+
CouponOptions.prototype['type'] = undefined;
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Amount
|
128
|
+
* @member {Number} amount
|
129
|
+
*/
|
130
|
+
CouponOptions.prototype['amount'] = undefined;
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Is Used. If true, this coupon has been used and cannot be used again
|
134
|
+
* @member {Boolean} used
|
135
|
+
*/
|
136
|
+
CouponOptions.prototype['used'] = undefined;
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Allowed values for the <code>type</code> property.
|
140
|
+
* @enum {String}
|
141
|
+
* @readonly
|
142
|
+
*/
|
143
|
+
CouponOptions['TypeEnum'] = {
|
144
|
+
/**
|
145
|
+
* value: "percent"
|
146
|
+
* @const
|
147
|
+
*/
|
148
|
+
"percent": "percent",
|
149
|
+
/**
|
150
|
+
* value: "discount"
|
151
|
+
* @const
|
152
|
+
*/
|
153
|
+
"discount": "discount",
|
154
|
+
/**
|
155
|
+
* value: "absolute"
|
156
|
+
* @const
|
157
|
+
*/
|
158
|
+
"absolute": "absolute"
|
159
|
+
};
|
160
|
+
var _default = CouponOptions;
|
161
|
+
exports["default"] = _default;
|
@@ -0,0 +1,116 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports["default"] = void 0;
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
10
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
14
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
18
|
+
* Corellium API
|
19
|
+
* REST API to manage your virtual devices.
|
20
|
+
*
|
21
|
+
* The version of the OpenAPI document: 4.5.0-16775
|
22
|
+
*
|
23
|
+
*
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
25
|
+
* https://openapi-generator.tech
|
26
|
+
* Do not edit the class manually.
|
27
|
+
*
|
28
|
+
*/
|
29
|
+
/**
|
30
|
+
* The CreateTeam model module.
|
31
|
+
* @module model/CreateTeam
|
32
|
+
* @version 0.3.2
|
33
|
+
*/
|
34
|
+
var CreateTeam = /*#__PURE__*/function () {
|
35
|
+
/**
|
36
|
+
* Constructs a new <code>CreateTeam</code>.
|
37
|
+
*
|
38
|
+
* @alias module:model/CreateTeam
|
39
|
+
* @param name {String} Team name
|
40
|
+
*/
|
41
|
+
function CreateTeam(name) {
|
42
|
+
_classCallCheck(this, CreateTeam);
|
43
|
+
CreateTeam.initialize(this, name);
|
44
|
+
}
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Initializes the fields of this object.
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
49
|
+
* Only for internal use.
|
50
|
+
*/
|
51
|
+
_createClass(CreateTeam, null, [{
|
52
|
+
key: "initialize",
|
53
|
+
value: function initialize(obj, name) {
|
54
|
+
obj['name'] = name;
|
55
|
+
}
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Constructs a <code>CreateTeam</code> from a plain JavaScript object, optionally creating a new instance.
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
61
|
+
* @param {module:model/CreateTeam} obj Optional instance to populate.
|
62
|
+
* @return {module:model/CreateTeam} The populated <code>CreateTeam</code> instance.
|
63
|
+
*/
|
64
|
+
}, {
|
65
|
+
key: "constructFromObject",
|
66
|
+
value: function constructFromObject(data, obj) {
|
67
|
+
if (data) {
|
68
|
+
obj = obj || new CreateTeam();
|
69
|
+
if (data.hasOwnProperty('name')) {
|
70
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
71
|
+
}
|
72
|
+
}
|
73
|
+
return obj;
|
74
|
+
}
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Validates the JSON data with respect to <code>CreateTeam</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>CreateTeam</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(CreateTeam.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['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
101
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
102
|
+
}
|
103
|
+
return true;
|
104
|
+
}
|
105
|
+
}]);
|
106
|
+
return CreateTeam;
|
107
|
+
}();
|
108
|
+
CreateTeam.RequiredProperties = ["name"];
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Team name
|
112
|
+
* @member {String} name
|
113
|
+
*/
|
114
|
+
CreateTeam.prototype['name'] = undefined;
|
115
|
+
var _default = CreateTeam;
|
116
|
+
exports["default"] = _default;
|
@@ -0,0 +1,128 @@
|
|
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 CreatedBy model module.
|
28
|
+
* @module model/CreatedBy
|
29
|
+
* @version 0.3.2
|
30
|
+
*/
|
31
|
+
var CreatedBy = /*#__PURE__*/function () {
|
32
|
+
/**
|
33
|
+
* Constructs a new <code>CreatedBy</code>.
|
34
|
+
*
|
35
|
+
* @alias module:model/CreatedBy
|
36
|
+
*/
|
37
|
+
function CreatedBy() {
|
38
|
+
_classCallCheck(this, CreatedBy);
|
39
|
+
CreatedBy.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(CreatedBy, null, [{
|
48
|
+
key: "initialize",
|
49
|
+
value: function initialize(obj) {}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Constructs a <code>CreatedBy</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/CreatedBy} obj Optional instance to populate.
|
56
|
+
* @return {module:model/CreatedBy} The populated <code>CreatedBy</code> instance.
|
57
|
+
*/
|
58
|
+
}, {
|
59
|
+
key: "constructFromObject",
|
60
|
+
value: function constructFromObject(data, obj) {
|
61
|
+
if (data) {
|
62
|
+
obj = obj || new CreatedBy();
|
63
|
+
if (data.hasOwnProperty('id')) {
|
64
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
65
|
+
}
|
66
|
+
if (data.hasOwnProperty('username')) {
|
67
|
+
obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
|
68
|
+
}
|
69
|
+
if (data.hasOwnProperty('label')) {
|
70
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
71
|
+
}
|
72
|
+
if (data.hasOwnProperty('deleted')) {
|
73
|
+
obj['deleted'] = _ApiClient["default"].convertToType(data['deleted'], 'Boolean');
|
74
|
+
}
|
75
|
+
}
|
76
|
+
return obj;
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Validates the JSON data with respect to <code>CreatedBy</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>CreatedBy</code>.
|
83
|
+
*/
|
84
|
+
}, {
|
85
|
+
key: "validateJSON",
|
86
|
+
value: function validateJSON(data) {
|
87
|
+
// ensure the json data is a string
|
88
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
89
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
90
|
+
}
|
91
|
+
// ensure the json data is a string
|
92
|
+
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
|
93
|
+
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
|
94
|
+
}
|
95
|
+
// ensure the json data is a string
|
96
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
97
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
98
|
+
}
|
99
|
+
return true;
|
100
|
+
}
|
101
|
+
}]);
|
102
|
+
return CreatedBy;
|
103
|
+
}();
|
104
|
+
/**
|
105
|
+
* User Identifier
|
106
|
+
* @member {String} id
|
107
|
+
*/
|
108
|
+
CreatedBy.prototype['id'] = undefined;
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Username
|
112
|
+
* @member {String} username
|
113
|
+
*/
|
114
|
+
CreatedBy.prototype['username'] = undefined;
|
115
|
+
|
116
|
+
/**
|
117
|
+
* User Label
|
118
|
+
* @member {String} label
|
119
|
+
*/
|
120
|
+
CreatedBy.prototype['label'] = undefined;
|
121
|
+
|
122
|
+
/**
|
123
|
+
* Indicates if user was deleted
|
124
|
+
* @member {Boolean} deleted
|
125
|
+
*/
|
126
|
+
CreatedBy.prototype['deleted'] = undefined;
|
127
|
+
var _default = CreatedBy;
|
128
|
+
exports["default"] = _default;
|
@@ -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 Credentials model module.
|
20
31
|
* @module model/Credentials
|
21
|
-
* @version 0.
|
32
|
+
* @version 0.3.2
|
22
33
|
*/
|
23
34
|
var Credentials = /*#__PURE__*/function () {
|
24
35
|
/**
|
25
36
|
* Constructs a new <code>Credentials</code>.
|
37
|
+
*
|
26
38
|
* @alias module:model/Credentials
|
27
39
|
* @param username {String} Authentication Username
|
28
40
|
* @param password {String} Authentication Password
|
29
41
|
*/
|
30
42
|
function Credentials(username, password) {
|
31
43
|
_classCallCheck(this, Credentials);
|
32
|
-
|
33
44
|
Credentials.initialize(this, username, password);
|
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(Credentials, null, [{
|
43
53
|
key: "initialize",
|
44
54
|
value: function initialize(obj, username, password) {
|
45
55
|
obj['username'] = username;
|
46
56
|
obj['password'] = password;
|
47
57
|
}
|
58
|
+
|
48
59
|
/**
|
49
60
|
* Constructs a <code>Credentials</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,40 +63,69 @@ var Credentials = /*#__PURE__*/function () {
|
|
52
63
|
* @param {module:model/Credentials} obj Optional instance to populate.
|
53
64
|
* @return {module:model/Credentials} The populated <code>Credentials</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 Credentials();
|
61
|
-
|
62
71
|
if (data.hasOwnProperty('username')) {
|
63
72
|
obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
|
64
73
|
}
|
65
|
-
|
66
74
|
if (data.hasOwnProperty('password')) {
|
67
75
|
obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
|
68
76
|
}
|
69
77
|
}
|
70
|
-
|
71
78
|
return obj;
|
72
79
|
}
|
73
|
-
}]);
|
74
80
|
|
81
|
+
/**
|
82
|
+
* Validates the JSON data with respect to <code>Credentials</code>.
|
83
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
84
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Credentials</code>.
|
85
|
+
*/
|
86
|
+
}, {
|
87
|
+
key: "validateJSON",
|
88
|
+
value: function validateJSON(data) {
|
89
|
+
// check to make sure all required properties are present in the JSON string
|
90
|
+
var _iterator = _createForOfIteratorHelper(Credentials.RequiredProperties),
|
91
|
+
_step;
|
92
|
+
try {
|
93
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
94
|
+
var property = _step.value;
|
95
|
+
if (!data[property]) {
|
96
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
97
|
+
}
|
98
|
+
}
|
99
|
+
// ensure the json data is a string
|
100
|
+
} catch (err) {
|
101
|
+
_iterator.e(err);
|
102
|
+
} finally {
|
103
|
+
_iterator.f();
|
104
|
+
}
|
105
|
+
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
|
106
|
+
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
|
107
|
+
}
|
108
|
+
// ensure the json data is a string
|
109
|
+
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
110
|
+
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
111
|
+
}
|
112
|
+
return true;
|
113
|
+
}
|
114
|
+
}]);
|
75
115
|
return Credentials;
|
76
116
|
}();
|
117
|
+
Credentials.RequiredProperties = ["username", "password"];
|
118
|
+
|
77
119
|
/**
|
78
120
|
* Authentication Username
|
79
121
|
* @member {String} username
|
80
122
|
*/
|
81
|
-
|
82
|
-
|
83
123
|
Credentials.prototype['username'] = undefined;
|
124
|
+
|
84
125
|
/**
|
85
126
|
* Authentication Password
|
86
127
|
* @member {String} password
|
87
128
|
*/
|
88
|
-
|
89
129
|
Credentials.prototype['password'] = undefined;
|
90
130
|
var _default = Credentials;
|
91
131
|
exports["default"] = _default;
|