@orangefox-recovery/foxinternalclient 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/.openapi-generator/FILES +63 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +155 -0
  5. package/api.ts +5275 -0
  6. package/base.ts +86 -0
  7. package/common.ts +150 -0
  8. package/configuration.ts +115 -0
  9. package/dist/api.d.ts +3508 -0
  10. package/dist/api.js +3078 -0
  11. package/dist/base.d.ts +66 -0
  12. package/dist/base.js +65 -0
  13. package/dist/common.d.ts +65 -0
  14. package/dist/common.js +161 -0
  15. package/dist/configuration.d.ts +91 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +3508 -0
  18. package/dist/esm/api.js +3051 -0
  19. package/dist/esm/base.d.ts +66 -0
  20. package/dist/esm/base.js +60 -0
  21. package/dist/esm/common.d.ts +65 -0
  22. package/dist/esm/common.js +149 -0
  23. package/dist/esm/configuration.d.ts +91 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/BodyChangePasswordProfileChangePasswordPost.md +22 -0
  30. package/docs/BuildStatusEnum.md +18 -0
  31. package/docs/BuildTaskResponse.md +36 -0
  32. package/docs/BuildTaskShortResponse.md +32 -0
  33. package/docs/DeviceApi.md +253 -0
  34. package/docs/DeviceInternalResponse.md +48 -0
  35. package/docs/DeviceResponse.md +44 -0
  36. package/docs/DeviceStatsResponse.md +24 -0
  37. package/docs/DeviceUpdateBody.md +30 -0
  38. package/docs/FFStatusEnum.md +12 -0
  39. package/docs/FFStatusResponse.md +20 -0
  40. package/docs/FoxFactoryApi.md +375 -0
  41. package/docs/GitlabApi.md +62 -0
  42. package/docs/GlobalStatsAggregationModel.md +26 -0
  43. package/docs/HTTPValidationError.md +20 -0
  44. package/docs/InternalApi.md +961 -0
  45. package/docs/ListResponseReleaseResponse.md +22 -0
  46. package/docs/ListResponseShortDeviceResponse.md +22 -0
  47. package/docs/ListResponseShortReleaseResponse.md +22 -0
  48. package/docs/ListResponseStr.md +22 -0
  49. package/docs/ListResponseUserShortResponse.md +22 -0
  50. package/docs/LogListResponse.md +26 -0
  51. package/docs/LogResponse.md +36 -0
  52. package/docs/MaintainerShortModel.md +26 -0
  53. package/docs/NewBuildTaskBody.md +28 -0
  54. package/docs/NewDeviceBody.md +26 -0
  55. package/docs/RecoveryImgResponse.md +22 -0
  56. package/docs/ReleaseApi.md +292 -0
  57. package/docs/ReleaseGroupsResponse.md +20 -0
  58. package/docs/ReleaseInternalResponse.md +62 -0
  59. package/docs/ReleaseInternalResponsePropValue.md +18 -0
  60. package/docs/ReleaseResponse.md +56 -0
  61. package/docs/ReleaseStatsResponse.md +24 -0
  62. package/docs/ReleaseType.md +12 -0
  63. package/docs/ReleaseUpdateBody.md +26 -0
  64. package/docs/ReleasesSort.md +10 -0
  65. package/docs/ResponseGetReleases.md +22 -0
  66. package/docs/ShortDeviceResponse.md +38 -0
  67. package/docs/ShortReleaseResponse.md +44 -0
  68. package/docs/StatsApi.md +53 -0
  69. package/docs/TaskUpdateBody.md +22 -0
  70. package/docs/TokenResponse.md +22 -0
  71. package/docs/UserGitlab.md +20 -0
  72. package/docs/UserInternalResponse.md +38 -0
  73. package/docs/UserMail.md +20 -0
  74. package/docs/UserShortResponse.md +26 -0
  75. package/docs/UserTelegram.md +20 -0
  76. package/docs/UserUpdateBody.md +28 -0
  77. package/docs/ValidationError.md +24 -0
  78. package/docs/ValidationErrorLocInner.md +18 -0
  79. package/git_push.sh +57 -0
  80. package/index.ts +18 -0
  81. package/package.json +41 -0
  82. package/tsconfig.esm.json +7 -0
  83. package/tsconfig.json +18 -0
@@ -0,0 +1,3051 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
+ *
7
+ * The version of the OpenAPI document: 5.2.1
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from './base';
29
+ /**
30
+ *
31
+ * @export
32
+ * @enum {string}
33
+ */
34
+ export const BuildStatusEnum = {
35
+ Pending: 'pending',
36
+ Running: 'running',
37
+ Cancelling: 'cancelling',
38
+ Success: 'success',
39
+ Cancelled: 'cancelled',
40
+ Failed: 'failed'
41
+ };
42
+ /**
43
+ *
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+ export const FFStatusEnum = {
48
+ Free: 'free',
49
+ Busy: 'busy',
50
+ Offline: 'offline'
51
+ };
52
+ /**
53
+ *
54
+ * @export
55
+ * @enum {string}
56
+ */
57
+ export const ReleaseType = {
58
+ Stable: 'stable',
59
+ Beta: 'beta',
60
+ Alpha: 'alpha'
61
+ };
62
+ /**
63
+ *
64
+ * @export
65
+ * @enum {string}
66
+ */
67
+ export const ReleasesSort = {
68
+ DateAsc: 'date_asc',
69
+ DateDesc: 'date_desc'
70
+ };
71
+ /**
72
+ * DeviceApi - axios parameter creator
73
+ * @export
74
+ */
75
+ export const DeviceApiAxiosParamCreator = function (configuration) {
76
+ return {
77
+ /**
78
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
79
+ * @summary Get Device
80
+ * @param { | null} [deviceId]
81
+ * @param { | null} [id] Filter by Device ID (deprecated)
82
+ * @param {string | null} [codename] Not recommended to use when you can
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ getDevice: (deviceId_1, id_1, codename_1, ...args_1) => __awaiter(this, [deviceId_1, id_1, codename_1, ...args_1], void 0, function* (deviceId, id, codename, options = {}) {
87
+ const localVarPath = `/devices/get`;
88
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90
+ let baseOptions;
91
+ if (configuration) {
92
+ baseOptions = configuration.baseOptions;
93
+ }
94
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
95
+ const localVarHeaderParameter = {};
96
+ const localVarQueryParameter = {};
97
+ if (deviceId !== undefined) {
98
+ for (const [key, value] of Object.entries(deviceId)) {
99
+ localVarQueryParameter[key] = value;
100
+ }
101
+ }
102
+ if (id !== undefined) {
103
+ for (const [key, value] of Object.entries(id)) {
104
+ localVarQueryParameter[key] = value;
105
+ }
106
+ }
107
+ if (codename !== undefined) {
108
+ localVarQueryParameter['codename'] = codename;
109
+ }
110
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
113
+ return {
114
+ url: toPathString(localVarUrlObj),
115
+ options: localVarRequestOptions,
116
+ };
117
+ }),
118
+ /**
119
+ * Gets device info using device ID.
120
+ * @summary Get Device Short
121
+ * @param {string} deviceId
122
+ * @param {*} [options] Override http request option.
123
+ * @deprecated
124
+ * @throws {RequiredError}
125
+ */
126
+ getDeviceDeprecated: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
127
+ // verify required parameter 'deviceId' is not null or undefined
128
+ assertParamExists('getDeviceDeprecated', 'deviceId', deviceId);
129
+ const localVarPath = `/devices/{device_id}`
130
+ .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
131
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
132
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
133
+ let baseOptions;
134
+ if (configuration) {
135
+ baseOptions = configuration.baseOptions;
136
+ }
137
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
138
+ const localVarHeaderParameter = {};
139
+ const localVarQueryParameter = {};
140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ return {
144
+ url: toPathString(localVarUrlObj),
145
+ options: localVarRequestOptions,
146
+ };
147
+ }),
148
+ /**
149
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
150
+ * @summary Get Devices
151
+ * @param {Array<any>} [id] Filter by Device IDs
152
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
153
+ * @param {Array<string>} [oemName] Filter by OEM names
154
+ * @param {Array<string>} [codename] Filter by device codenames
155
+ * @param {Array<string>} [modelName] Filter by model names
156
+ * @param {boolean | null} [supported] Supported status
157
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
158
+ * @param {boolean | null} [freezed] Filter by Freezed status
159
+ * @param {boolean | null} [hasReleases] Filter by has releases status
160
+ * @param {number | null} [skip] Skip query results
161
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ getDevices: (id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options = {}) {
166
+ const localVarPath = `/devices/`;
167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
169
+ let baseOptions;
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ }
173
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
174
+ const localVarHeaderParameter = {};
175
+ const localVarQueryParameter = {};
176
+ if (id) {
177
+ localVarQueryParameter['id'] = id;
178
+ }
179
+ if (id2) {
180
+ localVarQueryParameter['_id'] = id2;
181
+ }
182
+ if (oemName) {
183
+ localVarQueryParameter['oem_name'] = oemName;
184
+ }
185
+ if (codename) {
186
+ localVarQueryParameter['codename'] = codename;
187
+ }
188
+ if (modelName) {
189
+ localVarQueryParameter['model_name'] = modelName;
190
+ }
191
+ if (supported !== undefined) {
192
+ localVarQueryParameter['supported'] = supported;
193
+ }
194
+ if (maintainer) {
195
+ localVarQueryParameter['maintainer'] = maintainer;
196
+ }
197
+ if (freezed !== undefined) {
198
+ localVarQueryParameter['freezed'] = freezed;
199
+ }
200
+ if (hasReleases !== undefined) {
201
+ localVarQueryParameter['has_releases'] = hasReleases;
202
+ }
203
+ if (skip !== undefined) {
204
+ localVarQueryParameter['skip'] = skip;
205
+ }
206
+ if (limit !== undefined) {
207
+ localVarQueryParameter['limit'] = limit;
208
+ }
209
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
210
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
211
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
212
+ return {
213
+ url: toPathString(localVarUrlObj),
214
+ options: localVarRequestOptions,
215
+ };
216
+ }),
217
+ /**
218
+ * Lists all OEM names
219
+ * @summary Get Oems
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ getOems: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
224
+ const localVarPath = `/oems/`;
225
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
226
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
227
+ let baseOptions;
228
+ if (configuration) {
229
+ baseOptions = configuration.baseOptions;
230
+ }
231
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
232
+ const localVarHeaderParameter = {};
233
+ const localVarQueryParameter = {};
234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
237
+ return {
238
+ url: toPathString(localVarUrlObj),
239
+ options: localVarRequestOptions,
240
+ };
241
+ }),
242
+ };
243
+ };
244
+ /**
245
+ * DeviceApi - functional programming interface
246
+ * @export
247
+ */
248
+ export const DeviceApiFp = function (configuration) {
249
+ const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration);
250
+ return {
251
+ /**
252
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
253
+ * @summary Get Device
254
+ * @param { | null} [deviceId]
255
+ * @param { | null} [id] Filter by Device ID (deprecated)
256
+ * @param {string | null} [codename] Not recommended to use when you can
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ getDevice(deviceId, id, codename, options) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ var _a, _b, _c;
263
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevice(deviceId, id, codename, options);
264
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
265
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
266
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
267
+ });
268
+ },
269
+ /**
270
+ * Gets device info using device ID.
271
+ * @summary Get Device Short
272
+ * @param {string} deviceId
273
+ * @param {*} [options] Override http request option.
274
+ * @deprecated
275
+ * @throws {RequiredError}
276
+ */
277
+ getDeviceDeprecated(deviceId, options) {
278
+ return __awaiter(this, void 0, void 0, function* () {
279
+ var _a, _b, _c;
280
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDeprecated(deviceId, options);
281
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
282
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDeviceDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
283
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
284
+ });
285
+ },
286
+ /**
287
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
288
+ * @summary Get Devices
289
+ * @param {Array<any>} [id] Filter by Device IDs
290
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
291
+ * @param {Array<string>} [oemName] Filter by OEM names
292
+ * @param {Array<string>} [codename] Filter by device codenames
293
+ * @param {Array<string>} [modelName] Filter by model names
294
+ * @param {boolean | null} [supported] Supported status
295
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
296
+ * @param {boolean | null} [freezed] Filter by Freezed status
297
+ * @param {boolean | null} [hasReleases] Filter by has releases status
298
+ * @param {number | null} [skip] Skip query results
299
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
304
+ return __awaiter(this, void 0, void 0, function* () {
305
+ var _a, _b, _c;
306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
307
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
308
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
310
+ });
311
+ },
312
+ /**
313
+ * Lists all OEM names
314
+ * @summary Get Oems
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ getOems(options) {
319
+ return __awaiter(this, void 0, void 0, function* () {
320
+ var _a, _b, _c;
321
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOems(options);
322
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
323
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getOems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
324
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
325
+ });
326
+ },
327
+ };
328
+ };
329
+ /**
330
+ * DeviceApi - factory interface
331
+ * @export
332
+ */
333
+ export const DeviceApiFactory = function (configuration, basePath, axios) {
334
+ const localVarFp = DeviceApiFp(configuration);
335
+ return {
336
+ /**
337
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
338
+ * @summary Get Device
339
+ * @param { | null} [deviceId]
340
+ * @param { | null} [id] Filter by Device ID (deprecated)
341
+ * @param {string | null} [codename] Not recommended to use when you can
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ getDevice(deviceId, id, codename, options) {
346
+ return localVarFp.getDevice(deviceId, id, codename, options).then((request) => request(axios, basePath));
347
+ },
348
+ /**
349
+ * Gets device info using device ID.
350
+ * @summary Get Device Short
351
+ * @param {string} deviceId
352
+ * @param {*} [options] Override http request option.
353
+ * @deprecated
354
+ * @throws {RequiredError}
355
+ */
356
+ getDeviceDeprecated(deviceId, options) {
357
+ return localVarFp.getDeviceDeprecated(deviceId, options).then((request) => request(axios, basePath));
358
+ },
359
+ /**
360
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
361
+ * @summary Get Devices
362
+ * @param {Array<any>} [id] Filter by Device IDs
363
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
364
+ * @param {Array<string>} [oemName] Filter by OEM names
365
+ * @param {Array<string>} [codename] Filter by device codenames
366
+ * @param {Array<string>} [modelName] Filter by model names
367
+ * @param {boolean | null} [supported] Supported status
368
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
369
+ * @param {boolean | null} [freezed] Filter by Freezed status
370
+ * @param {boolean | null} [hasReleases] Filter by has releases status
371
+ * @param {number | null} [skip] Skip query results
372
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
377
+ return localVarFp.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
378
+ },
379
+ /**
380
+ * Lists all OEM names
381
+ * @summary Get Oems
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ getOems(options) {
386
+ return localVarFp.getOems(options).then((request) => request(axios, basePath));
387
+ },
388
+ };
389
+ };
390
+ /**
391
+ * DeviceApi - object-oriented interface
392
+ * @export
393
+ * @class DeviceApi
394
+ * @extends {BaseAPI}
395
+ */
396
+ export class DeviceApi extends BaseAPI {
397
+ /**
398
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
399
+ * @summary Get Device
400
+ * @param { | null} [deviceId]
401
+ * @param { | null} [id] Filter by Device ID (deprecated)
402
+ * @param {string | null} [codename] Not recommended to use when you can
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ * @memberof DeviceApi
406
+ */
407
+ getDevice(deviceId, id, codename, options) {
408
+ return DeviceApiFp(this.configuration).getDevice(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
409
+ }
410
+ /**
411
+ * Gets device info using device ID.
412
+ * @summary Get Device Short
413
+ * @param {string} deviceId
414
+ * @param {*} [options] Override http request option.
415
+ * @deprecated
416
+ * @throws {RequiredError}
417
+ * @memberof DeviceApi
418
+ */
419
+ getDeviceDeprecated(deviceId, options) {
420
+ return DeviceApiFp(this.configuration).getDeviceDeprecated(deviceId, options).then((request) => request(this.axios, this.basePath));
421
+ }
422
+ /**
423
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
424
+ * @summary Get Devices
425
+ * @param {Array<any>} [id] Filter by Device IDs
426
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
427
+ * @param {Array<string>} [oemName] Filter by OEM names
428
+ * @param {Array<string>} [codename] Filter by device codenames
429
+ * @param {Array<string>} [modelName] Filter by model names
430
+ * @param {boolean | null} [supported] Supported status
431
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
432
+ * @param {boolean | null} [freezed] Filter by Freezed status
433
+ * @param {boolean | null} [hasReleases] Filter by has releases status
434
+ * @param {number | null} [skip] Skip query results
435
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ * @memberof DeviceApi
439
+ */
440
+ getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
441
+ return DeviceApiFp(this.configuration).getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
442
+ }
443
+ /**
444
+ * Lists all OEM names
445
+ * @summary Get Oems
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ * @memberof DeviceApi
449
+ */
450
+ getOems(options) {
451
+ return DeviceApiFp(this.configuration).getOems(options).then((request) => request(this.axios, this.basePath));
452
+ }
453
+ }
454
+ /**
455
+ * FoxFactoryApi - axios parameter creator
456
+ * @export
457
+ */
458
+ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
459
+ return {
460
+ /**
461
+ * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
462
+ * @summary Cancel Task
463
+ * @param {any} taskId
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ cancelTaskFactoryTaskIdCancelPost: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
468
+ // verify required parameter 'taskId' is not null or undefined
469
+ assertParamExists('cancelTaskFactoryTaskIdCancelPost', 'taskId', taskId);
470
+ const localVarPath = `/factory/{task_id}/cancel`
471
+ .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
472
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
473
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
474
+ let baseOptions;
475
+ if (configuration) {
476
+ baseOptions = configuration.baseOptions;
477
+ }
478
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
479
+ const localVarHeaderParameter = {};
480
+ const localVarQueryParameter = {};
481
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
482
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
483
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
484
+ return {
485
+ url: toPathString(localVarUrlObj),
486
+ options: localVarRequestOptions,
487
+ };
488
+ }),
489
+ /**
490
+ * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
491
+ * @summary Delete Task
492
+ * @param {any} taskId
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ deleteTaskFactoryTaskIdDelete: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
497
+ // verify required parameter 'taskId' is not null or undefined
498
+ assertParamExists('deleteTaskFactoryTaskIdDelete', 'taskId', taskId);
499
+ const localVarPath = `/factory/{task_id}`
500
+ .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
501
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
502
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
503
+ let baseOptions;
504
+ if (configuration) {
505
+ baseOptions = configuration.baseOptions;
506
+ }
507
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
508
+ const localVarHeaderParameter = {};
509
+ const localVarQueryParameter = {};
510
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
512
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
513
+ return {
514
+ url: toPathString(localVarUrlObj),
515
+ options: localVarRequestOptions,
516
+ };
517
+ }),
518
+ /**
519
+ *
520
+ * @summary Factory Status
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ factoryStatusFactoryStatusGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
525
+ const localVarPath = `/factory/status`;
526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
527
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
528
+ let baseOptions;
529
+ if (configuration) {
530
+ baseOptions = configuration.baseOptions;
531
+ }
532
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
533
+ const localVarHeaderParameter = {};
534
+ const localVarQueryParameter = {};
535
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
536
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
537
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
538
+ return {
539
+ url: toPathString(localVarUrlObj),
540
+ options: localVarRequestOptions,
541
+ };
542
+ }),
543
+ /**
544
+ * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
545
+ * @summary Get Task
546
+ * @param {any} taskId
547
+ * @param {*} [options] Override http request option.
548
+ * @throws {RequiredError}
549
+ */
550
+ getTaskFactoryTaskIdGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
551
+ // verify required parameter 'taskId' is not null or undefined
552
+ assertParamExists('getTaskFactoryTaskIdGet', 'taskId', taskId);
553
+ const localVarPath = `/factory/{task_id}`
554
+ .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
555
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
556
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
557
+ let baseOptions;
558
+ if (configuration) {
559
+ baseOptions = configuration.baseOptions;
560
+ }
561
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
562
+ const localVarHeaderParameter = {};
563
+ const localVarQueryParameter = {};
564
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
565
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
566
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
567
+ return {
568
+ url: toPathString(localVarUrlObj),
569
+ options: localVarRequestOptions,
570
+ };
571
+ }),
572
+ /**
573
+ * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
574
+ * @summary List Tasks
575
+ * @param { | null} [deviceId]
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ */
579
+ listTasksFactoryGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
580
+ const localVarPath = `/factory/`;
581
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
582
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
583
+ let baseOptions;
584
+ if (configuration) {
585
+ baseOptions = configuration.baseOptions;
586
+ }
587
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
588
+ const localVarHeaderParameter = {};
589
+ const localVarQueryParameter = {};
590
+ if (deviceId !== undefined) {
591
+ for (const [key, value] of Object.entries(deviceId)) {
592
+ localVarQueryParameter[key] = value;
593
+ }
594
+ }
595
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
597
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
598
+ return {
599
+ url: toPathString(localVarUrlObj),
600
+ options: localVarRequestOptions,
601
+ };
602
+ }),
603
+ /**
604
+ * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
605
+ * @summary New Task
606
+ * @param {NewBuildTaskBody} newBuildTaskBody
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ newTaskFactoryPost: (newBuildTaskBody_1, ...args_1) => __awaiter(this, [newBuildTaskBody_1, ...args_1], void 0, function* (newBuildTaskBody, options = {}) {
611
+ // verify required parameter 'newBuildTaskBody' is not null or undefined
612
+ assertParamExists('newTaskFactoryPost', 'newBuildTaskBody', newBuildTaskBody);
613
+ const localVarPath = `/factory/`;
614
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
615
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
616
+ let baseOptions;
617
+ if (configuration) {
618
+ baseOptions = configuration.baseOptions;
619
+ }
620
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
621
+ const localVarHeaderParameter = {};
622
+ const localVarQueryParameter = {};
623
+ localVarHeaderParameter['Content-Type'] = 'application/json';
624
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
625
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
626
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
627
+ localVarRequestOptions.data = serializeDataIfNeeded(newBuildTaskBody, localVarRequestOptions, configuration);
628
+ return {
629
+ url: toPathString(localVarUrlObj),
630
+ options: localVarRequestOptions,
631
+ };
632
+ }),
633
+ /**
634
+ * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
635
+ * @summary Update Task
636
+ * @param {any} taskId
637
+ * @param {TaskUpdateBody} taskUpdateBody
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ updateTaskFactoryTaskIdPatch: (taskId_1, taskUpdateBody_1, ...args_1) => __awaiter(this, [taskId_1, taskUpdateBody_1, ...args_1], void 0, function* (taskId, taskUpdateBody, options = {}) {
642
+ // verify required parameter 'taskId' is not null or undefined
643
+ assertParamExists('updateTaskFactoryTaskIdPatch', 'taskId', taskId);
644
+ // verify required parameter 'taskUpdateBody' is not null or undefined
645
+ assertParamExists('updateTaskFactoryTaskIdPatch', 'taskUpdateBody', taskUpdateBody);
646
+ const localVarPath = `/factory/{task_id}`
647
+ .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
648
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
649
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
650
+ let baseOptions;
651
+ if (configuration) {
652
+ baseOptions = configuration.baseOptions;
653
+ }
654
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
655
+ const localVarHeaderParameter = {};
656
+ const localVarQueryParameter = {};
657
+ localVarHeaderParameter['Content-Type'] = 'application/json';
658
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
659
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
660
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
661
+ localVarRequestOptions.data = serializeDataIfNeeded(taskUpdateBody, localVarRequestOptions, configuration);
662
+ return {
663
+ url: toPathString(localVarUrlObj),
664
+ options: localVarRequestOptions,
665
+ };
666
+ }),
667
+ };
668
+ };
669
+ /**
670
+ * FoxFactoryApi - functional programming interface
671
+ * @export
672
+ */
673
+ export const FoxFactoryApiFp = function (configuration) {
674
+ const localVarAxiosParamCreator = FoxFactoryApiAxiosParamCreator(configuration);
675
+ return {
676
+ /**
677
+ * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
678
+ * @summary Cancel Task
679
+ * @param {any} taskId
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ cancelTaskFactoryTaskIdCancelPost(taskId, options) {
684
+ return __awaiter(this, void 0, void 0, function* () {
685
+ var _a, _b, _c;
686
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelTaskFactoryTaskIdCancelPost(taskId, options);
687
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
688
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.cancelTaskFactoryTaskIdCancelPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
689
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
690
+ });
691
+ },
692
+ /**
693
+ * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
694
+ * @summary Delete Task
695
+ * @param {any} taskId
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ deleteTaskFactoryTaskIdDelete(taskId, options) {
700
+ return __awaiter(this, void 0, void 0, function* () {
701
+ var _a, _b, _c;
702
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTaskFactoryTaskIdDelete(taskId, options);
703
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
704
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.deleteTaskFactoryTaskIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
705
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
706
+ });
707
+ },
708
+ /**
709
+ *
710
+ * @summary Factory Status
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ factoryStatusFactoryStatusGet(options) {
715
+ return __awaiter(this, void 0, void 0, function* () {
716
+ var _a, _b, _c;
717
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.factoryStatusFactoryStatusGet(options);
718
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
719
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.factoryStatusFactoryStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
720
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
721
+ });
722
+ },
723
+ /**
724
+ * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
725
+ * @summary Get Task
726
+ * @param {any} taskId
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ getTaskFactoryTaskIdGet(taskId, options) {
731
+ return __awaiter(this, void 0, void 0, function* () {
732
+ var _a, _b, _c;
733
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTaskFactoryTaskIdGet(taskId, options);
734
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
735
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.getTaskFactoryTaskIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
736
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
737
+ });
738
+ },
739
+ /**
740
+ * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
741
+ * @summary List Tasks
742
+ * @param { | null} [deviceId]
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ */
746
+ listTasksFactoryGet(deviceId, options) {
747
+ return __awaiter(this, void 0, void 0, function* () {
748
+ var _a, _b, _c;
749
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksFactoryGet(deviceId, options);
750
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
751
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.listTasksFactoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
752
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
753
+ });
754
+ },
755
+ /**
756
+ * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
757
+ * @summary New Task
758
+ * @param {NewBuildTaskBody} newBuildTaskBody
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ newTaskFactoryPost(newBuildTaskBody, options) {
763
+ return __awaiter(this, void 0, void 0, function* () {
764
+ var _a, _b, _c;
765
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.newTaskFactoryPost(newBuildTaskBody, options);
766
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
767
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.newTaskFactoryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
768
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
769
+ });
770
+ },
771
+ /**
772
+ * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
773
+ * @summary Update Task
774
+ * @param {any} taskId
775
+ * @param {TaskUpdateBody} taskUpdateBody
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
780
+ return __awaiter(this, void 0, void 0, function* () {
781
+ var _a, _b, _c;
782
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options);
783
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
784
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.updateTaskFactoryTaskIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
785
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
786
+ });
787
+ },
788
+ };
789
+ };
790
+ /**
791
+ * FoxFactoryApi - factory interface
792
+ * @export
793
+ */
794
+ export const FoxFactoryApiFactory = function (configuration, basePath, axios) {
795
+ const localVarFp = FoxFactoryApiFp(configuration);
796
+ return {
797
+ /**
798
+ * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
799
+ * @summary Cancel Task
800
+ * @param {any} taskId
801
+ * @param {*} [options] Override http request option.
802
+ * @throws {RequiredError}
803
+ */
804
+ cancelTaskFactoryTaskIdCancelPost(taskId, options) {
805
+ return localVarFp.cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(axios, basePath));
806
+ },
807
+ /**
808
+ * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
809
+ * @summary Delete Task
810
+ * @param {any} taskId
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ deleteTaskFactoryTaskIdDelete(taskId, options) {
815
+ return localVarFp.deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(axios, basePath));
816
+ },
817
+ /**
818
+ *
819
+ * @summary Factory Status
820
+ * @param {*} [options] Override http request option.
821
+ * @throws {RequiredError}
822
+ */
823
+ factoryStatusFactoryStatusGet(options) {
824
+ return localVarFp.factoryStatusFactoryStatusGet(options).then((request) => request(axios, basePath));
825
+ },
826
+ /**
827
+ * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
828
+ * @summary Get Task
829
+ * @param {any} taskId
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ getTaskFactoryTaskIdGet(taskId, options) {
834
+ return localVarFp.getTaskFactoryTaskIdGet(taskId, options).then((request) => request(axios, basePath));
835
+ },
836
+ /**
837
+ * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
838
+ * @summary List Tasks
839
+ * @param { | null} [deviceId]
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ listTasksFactoryGet(deviceId, options) {
844
+ return localVarFp.listTasksFactoryGet(deviceId, options).then((request) => request(axios, basePath));
845
+ },
846
+ /**
847
+ * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
848
+ * @summary New Task
849
+ * @param {NewBuildTaskBody} newBuildTaskBody
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ */
853
+ newTaskFactoryPost(newBuildTaskBody, options) {
854
+ return localVarFp.newTaskFactoryPost(newBuildTaskBody, options).then((request) => request(axios, basePath));
855
+ },
856
+ /**
857
+ * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
858
+ * @summary Update Task
859
+ * @param {any} taskId
860
+ * @param {TaskUpdateBody} taskUpdateBody
861
+ * @param {*} [options] Override http request option.
862
+ * @throws {RequiredError}
863
+ */
864
+ updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
865
+ return localVarFp.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(axios, basePath));
866
+ },
867
+ };
868
+ };
869
+ /**
870
+ * FoxFactoryApi - object-oriented interface
871
+ * @export
872
+ * @class FoxFactoryApi
873
+ * @extends {BaseAPI}
874
+ */
875
+ export class FoxFactoryApi extends BaseAPI {
876
+ /**
877
+ * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
878
+ * @summary Cancel Task
879
+ * @param {any} taskId
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ * @memberof FoxFactoryApi
883
+ */
884
+ cancelTaskFactoryTaskIdCancelPost(taskId, options) {
885
+ return FoxFactoryApiFp(this.configuration).cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(this.axios, this.basePath));
886
+ }
887
+ /**
888
+ * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
889
+ * @summary Delete Task
890
+ * @param {any} taskId
891
+ * @param {*} [options] Override http request option.
892
+ * @throws {RequiredError}
893
+ * @memberof FoxFactoryApi
894
+ */
895
+ deleteTaskFactoryTaskIdDelete(taskId, options) {
896
+ return FoxFactoryApiFp(this.configuration).deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(this.axios, this.basePath));
897
+ }
898
+ /**
899
+ *
900
+ * @summary Factory Status
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ * @memberof FoxFactoryApi
904
+ */
905
+ factoryStatusFactoryStatusGet(options) {
906
+ return FoxFactoryApiFp(this.configuration).factoryStatusFactoryStatusGet(options).then((request) => request(this.axios, this.basePath));
907
+ }
908
+ /**
909
+ * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
910
+ * @summary Get Task
911
+ * @param {any} taskId
912
+ * @param {*} [options] Override http request option.
913
+ * @throws {RequiredError}
914
+ * @memberof FoxFactoryApi
915
+ */
916
+ getTaskFactoryTaskIdGet(taskId, options) {
917
+ return FoxFactoryApiFp(this.configuration).getTaskFactoryTaskIdGet(taskId, options).then((request) => request(this.axios, this.basePath));
918
+ }
919
+ /**
920
+ * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
921
+ * @summary List Tasks
922
+ * @param { | null} [deviceId]
923
+ * @param {*} [options] Override http request option.
924
+ * @throws {RequiredError}
925
+ * @memberof FoxFactoryApi
926
+ */
927
+ listTasksFactoryGet(deviceId, options) {
928
+ return FoxFactoryApiFp(this.configuration).listTasksFactoryGet(deviceId, options).then((request) => request(this.axios, this.basePath));
929
+ }
930
+ /**
931
+ * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
932
+ * @summary New Task
933
+ * @param {NewBuildTaskBody} newBuildTaskBody
934
+ * @param {*} [options] Override http request option.
935
+ * @throws {RequiredError}
936
+ * @memberof FoxFactoryApi
937
+ */
938
+ newTaskFactoryPost(newBuildTaskBody, options) {
939
+ return FoxFactoryApiFp(this.configuration).newTaskFactoryPost(newBuildTaskBody, options).then((request) => request(this.axios, this.basePath));
940
+ }
941
+ /**
942
+ * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
943
+ * @summary Update Task
944
+ * @param {any} taskId
945
+ * @param {TaskUpdateBody} taskUpdateBody
946
+ * @param {*} [options] Override http request option.
947
+ * @throws {RequiredError}
948
+ * @memberof FoxFactoryApi
949
+ */
950
+ updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
951
+ return FoxFactoryApiFp(this.configuration).updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(this.axios, this.basePath));
952
+ }
953
+ }
954
+ /**
955
+ * GitlabApi - axios parameter creator
956
+ * @export
957
+ */
958
+ export const GitlabApiAxiosParamCreator = function (configuration) {
959
+ return {
960
+ /**
961
+ *
962
+ * @summary Device Add Gitlab Repo
963
+ * @param {string} deviceId
964
+ * @param {string} glProjectUrl
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost: (deviceId_1, glProjectUrl_1, ...args_1) => __awaiter(this, [deviceId_1, glProjectUrl_1, ...args_1], void 0, function* (deviceId, glProjectUrl, options = {}) {
969
+ // verify required parameter 'deviceId' is not null or undefined
970
+ assertParamExists('deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost', 'deviceId', deviceId);
971
+ // verify required parameter 'glProjectUrl' is not null or undefined
972
+ assertParamExists('deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost', 'glProjectUrl', glProjectUrl);
973
+ const localVarPath = `/gitlab/device/{device_id}/gitlab`
974
+ .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
975
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
976
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
977
+ let baseOptions;
978
+ if (configuration) {
979
+ baseOptions = configuration.baseOptions;
980
+ }
981
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
982
+ const localVarHeaderParameter = {};
983
+ const localVarQueryParameter = {};
984
+ if (glProjectUrl !== undefined) {
985
+ localVarQueryParameter['gl_project_url'] = glProjectUrl;
986
+ }
987
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
988
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
989
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
990
+ return {
991
+ url: toPathString(localVarUrlObj),
992
+ options: localVarRequestOptions,
993
+ };
994
+ }),
995
+ };
996
+ };
997
+ /**
998
+ * GitlabApi - functional programming interface
999
+ * @export
1000
+ */
1001
+ export const GitlabApiFp = function (configuration) {
1002
+ const localVarAxiosParamCreator = GitlabApiAxiosParamCreator(configuration);
1003
+ return {
1004
+ /**
1005
+ *
1006
+ * @summary Device Add Gitlab Repo
1007
+ * @param {string} deviceId
1008
+ * @param {string} glProjectUrl
1009
+ * @param {*} [options] Override http request option.
1010
+ * @throws {RequiredError}
1011
+ */
1012
+ deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1013
+ return __awaiter(this, void 0, void 0, function* () {
1014
+ var _a, _b, _c;
1015
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options);
1016
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1017
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GitlabApi.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1019
+ });
1020
+ },
1021
+ };
1022
+ };
1023
+ /**
1024
+ * GitlabApi - factory interface
1025
+ * @export
1026
+ */
1027
+ export const GitlabApiFactory = function (configuration, basePath, axios) {
1028
+ const localVarFp = GitlabApiFp(configuration);
1029
+ return {
1030
+ /**
1031
+ *
1032
+ * @summary Device Add Gitlab Repo
1033
+ * @param {string} deviceId
1034
+ * @param {string} glProjectUrl
1035
+ * @param {*} [options] Override http request option.
1036
+ * @throws {RequiredError}
1037
+ */
1038
+ deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1039
+ return localVarFp.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options).then((request) => request(axios, basePath));
1040
+ },
1041
+ };
1042
+ };
1043
+ /**
1044
+ * GitlabApi - object-oriented interface
1045
+ * @export
1046
+ * @class GitlabApi
1047
+ * @extends {BaseAPI}
1048
+ */
1049
+ export class GitlabApi extends BaseAPI {
1050
+ /**
1051
+ *
1052
+ * @summary Device Add Gitlab Repo
1053
+ * @param {string} deviceId
1054
+ * @param {string} glProjectUrl
1055
+ * @param {*} [options] Override http request option.
1056
+ * @throws {RequiredError}
1057
+ * @memberof GitlabApi
1058
+ */
1059
+ deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1060
+ return GitlabApiFp(this.configuration).deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options).then((request) => request(this.axios, this.basePath));
1061
+ }
1062
+ }
1063
+ /**
1064
+ * InternalApi - axios parameter creator
1065
+ * @export
1066
+ */
1067
+ export const InternalApiAxiosParamCreator = function (configuration) {
1068
+ return {
1069
+ /**
1070
+ * Change the password for a user.
1071
+ * @summary Change Password
1072
+ * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
1073
+ * @param {*} [options] Override http request option.
1074
+ * @throws {RequiredError}
1075
+ */
1076
+ changePasswordProfileChangePasswordPost: (bodyChangePasswordProfileChangePasswordPost_1, ...args_1) => __awaiter(this, [bodyChangePasswordProfileChangePasswordPost_1, ...args_1], void 0, function* (bodyChangePasswordProfileChangePasswordPost, options = {}) {
1077
+ // verify required parameter 'bodyChangePasswordProfileChangePasswordPost' is not null or undefined
1078
+ assertParamExists('changePasswordProfileChangePasswordPost', 'bodyChangePasswordProfileChangePasswordPost', bodyChangePasswordProfileChangePasswordPost);
1079
+ const localVarPath = `/profile/change_password`;
1080
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1081
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1082
+ let baseOptions;
1083
+ if (configuration) {
1084
+ baseOptions = configuration.baseOptions;
1085
+ }
1086
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1087
+ const localVarHeaderParameter = {};
1088
+ const localVarQueryParameter = {};
1089
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1090
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1091
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1092
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1093
+ localVarRequestOptions.data = serializeDataIfNeeded(bodyChangePasswordProfileChangePasswordPost, localVarRequestOptions, configuration);
1094
+ return {
1095
+ url: toPathString(localVarUrlObj),
1096
+ options: localVarRequestOptions,
1097
+ };
1098
+ }),
1099
+ /**
1100
+ * Delete release
1101
+ * @summary Del Release
1102
+ * @param {any} releaseId
1103
+ * @param {*} [options] Override http request option.
1104
+ * @throws {RequiredError}
1105
+ */
1106
+ delReleaseInternalReleasesReleaseIdDelete: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1107
+ // verify required parameter 'releaseId' is not null or undefined
1108
+ assertParamExists('delReleaseInternalReleasesReleaseIdDelete', 'releaseId', releaseId);
1109
+ const localVarPath = `/internal/releases/{release_id}`
1110
+ .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1113
+ let baseOptions;
1114
+ if (configuration) {
1115
+ baseOptions = configuration.baseOptions;
1116
+ }
1117
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1118
+ const localVarHeaderParameter = {};
1119
+ const localVarQueryParameter = {};
1120
+ // authentication oauth2_password required
1121
+ // oauth required
1122
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1123
+ // authentication bearer_auth required
1124
+ // http bearer authentication required
1125
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1128
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1129
+ return {
1130
+ url: toPathString(localVarUrlObj),
1131
+ options: localVarRequestOptions,
1132
+ };
1133
+ }),
1134
+ /**
1135
+ *
1136
+ * @summary Delete User
1137
+ * @param {any} userId
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ deleteUserInternalUsersUserIdDelete: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
1142
+ // verify required parameter 'userId' is not null or undefined
1143
+ assertParamExists('deleteUserInternalUsersUserIdDelete', 'userId', userId);
1144
+ const localVarPath = `/internal/users/{user_id}`
1145
+ .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1148
+ let baseOptions;
1149
+ if (configuration) {
1150
+ baseOptions = configuration.baseOptions;
1151
+ }
1152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1153
+ const localVarHeaderParameter = {};
1154
+ const localVarQueryParameter = {};
1155
+ // authentication oauth2_password required
1156
+ // oauth required
1157
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1158
+ // authentication bearer_auth required
1159
+ // http bearer authentication required
1160
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1161
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1162
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1163
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1164
+ return {
1165
+ url: toPathString(localVarUrlObj),
1166
+ options: localVarRequestOptions,
1167
+ };
1168
+ }),
1169
+ /**
1170
+ * Edit Release information
1171
+ * @summary Edit Release
1172
+ * @param {any} releaseId
1173
+ * @param {ReleaseUpdateBody} releaseUpdateBody
1174
+ * @param {*} [options] Override http request option.
1175
+ * @throws {RequiredError}
1176
+ */
1177
+ editReleaseInternalReleasesReleaseIdPut: (releaseId_1, releaseUpdateBody_1, ...args_1) => __awaiter(this, [releaseId_1, releaseUpdateBody_1, ...args_1], void 0, function* (releaseId, releaseUpdateBody, options = {}) {
1178
+ // verify required parameter 'releaseId' is not null or undefined
1179
+ assertParamExists('editReleaseInternalReleasesReleaseIdPut', 'releaseId', releaseId);
1180
+ // verify required parameter 'releaseUpdateBody' is not null or undefined
1181
+ assertParamExists('editReleaseInternalReleasesReleaseIdPut', 'releaseUpdateBody', releaseUpdateBody);
1182
+ const localVarPath = `/internal/releases/{release_id}`
1183
+ .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1184
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1185
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1186
+ let baseOptions;
1187
+ if (configuration) {
1188
+ baseOptions = configuration.baseOptions;
1189
+ }
1190
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1191
+ const localVarHeaderParameter = {};
1192
+ const localVarQueryParameter = {};
1193
+ // authentication oauth2_password required
1194
+ // oauth required
1195
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1196
+ // authentication bearer_auth required
1197
+ // http bearer authentication required
1198
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1199
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1200
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1202
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1203
+ localVarRequestOptions.data = serializeDataIfNeeded(releaseUpdateBody, localVarRequestOptions, configuration);
1204
+ return {
1205
+ url: toPathString(localVarUrlObj),
1206
+ options: localVarRequestOptions,
1207
+ };
1208
+ }),
1209
+ /**
1210
+ *
1211
+ * @summary Get Device Info
1212
+ * @param {any} deviceId
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ */
1216
+ getDeviceInfoInternalDevicesDeviceIdGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
1217
+ // verify required parameter 'deviceId' is not null or undefined
1218
+ assertParamExists('getDeviceInfoInternalDevicesDeviceIdGet', 'deviceId', deviceId);
1219
+ const localVarPath = `/internal/devices/{device_id}`
1220
+ .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1222
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1223
+ let baseOptions;
1224
+ if (configuration) {
1225
+ baseOptions = configuration.baseOptions;
1226
+ }
1227
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1228
+ const localVarHeaderParameter = {};
1229
+ const localVarQueryParameter = {};
1230
+ // authentication oauth2_password required
1231
+ // oauth required
1232
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1233
+ // authentication bearer_auth required
1234
+ // http bearer authentication required
1235
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1239
+ return {
1240
+ url: toPathString(localVarUrlObj),
1241
+ options: localVarRequestOptions,
1242
+ };
1243
+ }),
1244
+ /**
1245
+ * Get a paginated list of logs with optional filtering.
1246
+ * @summary Get Logs
1247
+ * @param {number} [page]
1248
+ * @param {number} [perPage]
1249
+ * @param { | null} [deviceId]
1250
+ * @param { | null} [releaseId]
1251
+ * @param { | null} [userId]
1252
+ * @param {boolean | null} [hideVerbose]
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ */
1256
+ getLogsInternalLogsGet: (page_1, perPage_1, deviceId_1, releaseId_1, userId_1, hideVerbose_1, ...args_1) => __awaiter(this, [page_1, perPage_1, deviceId_1, releaseId_1, userId_1, hideVerbose_1, ...args_1], void 0, function* (page, perPage, deviceId, releaseId, userId, hideVerbose, options = {}) {
1257
+ const localVarPath = `/internal/logs/`;
1258
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1259
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1260
+ let baseOptions;
1261
+ if (configuration) {
1262
+ baseOptions = configuration.baseOptions;
1263
+ }
1264
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1265
+ const localVarHeaderParameter = {};
1266
+ const localVarQueryParameter = {};
1267
+ // authentication oauth2_password required
1268
+ // oauth required
1269
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1270
+ // authentication bearer_auth required
1271
+ // http bearer authentication required
1272
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1273
+ if (page !== undefined) {
1274
+ localVarQueryParameter['page'] = page;
1275
+ }
1276
+ if (perPage !== undefined) {
1277
+ localVarQueryParameter['per_page'] = perPage;
1278
+ }
1279
+ if (deviceId !== undefined) {
1280
+ for (const [key, value] of Object.entries(deviceId)) {
1281
+ localVarQueryParameter[key] = value;
1282
+ }
1283
+ }
1284
+ if (releaseId !== undefined) {
1285
+ for (const [key, value] of Object.entries(releaseId)) {
1286
+ localVarQueryParameter[key] = value;
1287
+ }
1288
+ }
1289
+ if (userId !== undefined) {
1290
+ for (const [key, value] of Object.entries(userId)) {
1291
+ localVarQueryParameter[key] = value;
1292
+ }
1293
+ }
1294
+ if (hideVerbose !== undefined) {
1295
+ localVarQueryParameter['hide_verbose'] = hideVerbose;
1296
+ }
1297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1299
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1300
+ return {
1301
+ url: toPathString(localVarUrlObj),
1302
+ options: localVarRequestOptions,
1303
+ };
1304
+ }),
1305
+ /**
1306
+ * Get release information
1307
+ * @summary Get Release Info
1308
+ * @param {any} releaseId
1309
+ * @param {*} [options] Override http request option.
1310
+ * @throws {RequiredError}
1311
+ */
1312
+ getReleaseInfoInternalReleasesReleaseIdGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1313
+ // verify required parameter 'releaseId' is not null or undefined
1314
+ assertParamExists('getReleaseInfoInternalReleasesReleaseIdGet', 'releaseId', releaseId);
1315
+ const localVarPath = `/internal/releases/{release_id}`
1316
+ .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1318
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1319
+ let baseOptions;
1320
+ if (configuration) {
1321
+ baseOptions = configuration.baseOptions;
1322
+ }
1323
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1324
+ const localVarHeaderParameter = {};
1325
+ const localVarQueryParameter = {};
1326
+ // authentication oauth2_password required
1327
+ // oauth required
1328
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1329
+ // authentication bearer_auth required
1330
+ // http bearer authentication required
1331
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1332
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1333
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1334
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1335
+ return {
1336
+ url: toPathString(localVarUrlObj),
1337
+ options: localVarRequestOptions,
1338
+ };
1339
+ }),
1340
+ /**
1341
+ * Download release ZIP directly
1342
+ * @summary Get Release Zip
1343
+ * @param {any} releaseId
1344
+ * @param {*} [options] Override http request option.
1345
+ * @throws {RequiredError}
1346
+ */
1347
+ getReleaseZipInternalReleasesReleaseIdDlGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1348
+ // verify required parameter 'releaseId' is not null or undefined
1349
+ assertParamExists('getReleaseZipInternalReleasesReleaseIdDlGet', 'releaseId', releaseId);
1350
+ const localVarPath = `/internal/releases/{release_id}/dl`
1351
+ .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1352
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1353
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1354
+ let baseOptions;
1355
+ if (configuration) {
1356
+ baseOptions = configuration.baseOptions;
1357
+ }
1358
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1359
+ const localVarHeaderParameter = {};
1360
+ const localVarQueryParameter = {};
1361
+ // authentication oauth2_password required
1362
+ // oauth required
1363
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1364
+ // authentication bearer_auth required
1365
+ // http bearer authentication required
1366
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1367
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1368
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1369
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1370
+ return {
1371
+ url: toPathString(localVarUrlObj),
1372
+ options: localVarRequestOptions,
1373
+ };
1374
+ }),
1375
+ /**
1376
+ *
1377
+ * @summary Get User By Id
1378
+ * @param {string} userId
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ */
1382
+ getUserByIdInternalUsersUserIdGet: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
1383
+ // verify required parameter 'userId' is not null or undefined
1384
+ assertParamExists('getUserByIdInternalUsersUserIdGet', 'userId', userId);
1385
+ const localVarPath = `/internal/users/{user_id}`
1386
+ .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1388
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1389
+ let baseOptions;
1390
+ if (configuration) {
1391
+ baseOptions = configuration.baseOptions;
1392
+ }
1393
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1394
+ const localVarHeaderParameter = {};
1395
+ const localVarQueryParameter = {};
1396
+ // authentication oauth2_password required
1397
+ // oauth required
1398
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1399
+ // authentication bearer_auth required
1400
+ // http bearer authentication required
1401
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1402
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1403
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1404
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1405
+ return {
1406
+ url: toPathString(localVarUrlObj),
1407
+ options: localVarRequestOptions,
1408
+ };
1409
+ }),
1410
+ /**
1411
+ *
1412
+ * @summary List Users
1413
+ * @param {*} [options] Override http request option.
1414
+ * @throws {RequiredError}
1415
+ */
1416
+ listUsersInternalUsersGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1417
+ const localVarPath = `/internal/users/`;
1418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1419
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1420
+ let baseOptions;
1421
+ if (configuration) {
1422
+ baseOptions = configuration.baseOptions;
1423
+ }
1424
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1425
+ const localVarHeaderParameter = {};
1426
+ const localVarQueryParameter = {};
1427
+ // authentication oauth2_password required
1428
+ // oauth required
1429
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1430
+ // authentication bearer_auth required
1431
+ // http bearer authentication required
1432
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1433
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1435
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1436
+ return {
1437
+ url: toPathString(localVarUrlObj),
1438
+ options: localVarRequestOptions,
1439
+ };
1440
+ }),
1441
+ /**
1442
+ * OAuth2 compatible token login, get an access token for future requests
1443
+ * @summary Login Oauth
1444
+ * @param {string} username
1445
+ * @param {string} password
1446
+ * @param {number} [minTime]
1447
+ * @param {number} [maxTime]
1448
+ * @param {string | null} [grantType]
1449
+ * @param {string} [scope]
1450
+ * @param {string | null} [clientId]
1451
+ * @param {string | null} [clientSecret]
1452
+ * @param {*} [options] Override http request option.
1453
+ * @throws {RequiredError}
1454
+ */
1455
+ loginOauthAuthLoginPost: (username_1, password_1, minTime_1, maxTime_1, grantType_1, scope_1, clientId_1, clientSecret_1, ...args_1) => __awaiter(this, [username_1, password_1, minTime_1, maxTime_1, grantType_1, scope_1, clientId_1, clientSecret_1, ...args_1], void 0, function* (username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options = {}) {
1456
+ // verify required parameter 'username' is not null or undefined
1457
+ assertParamExists('loginOauthAuthLoginPost', 'username', username);
1458
+ // verify required parameter 'password' is not null or undefined
1459
+ assertParamExists('loginOauthAuthLoginPost', 'password', password);
1460
+ const localVarPath = `/auth/login`;
1461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1463
+ let baseOptions;
1464
+ if (configuration) {
1465
+ baseOptions = configuration.baseOptions;
1466
+ }
1467
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1468
+ const localVarHeaderParameter = {};
1469
+ const localVarQueryParameter = {};
1470
+ const localVarFormParams = new URLSearchParams();
1471
+ // authentication oauth2_password required
1472
+ // oauth required
1473
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1474
+ // authentication bearer_auth required
1475
+ // http bearer authentication required
1476
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1477
+ if (minTime !== undefined) {
1478
+ localVarQueryParameter['min_time'] = minTime;
1479
+ }
1480
+ if (maxTime !== undefined) {
1481
+ localVarQueryParameter['max_time'] = maxTime;
1482
+ }
1483
+ if (grantType !== undefined) {
1484
+ localVarFormParams.set('grant_type', grantType);
1485
+ }
1486
+ if (username !== undefined) {
1487
+ localVarFormParams.set('username', username);
1488
+ }
1489
+ if (password !== undefined) {
1490
+ localVarFormParams.set('password', password);
1491
+ }
1492
+ if (scope !== undefined) {
1493
+ localVarFormParams.set('scope', scope);
1494
+ }
1495
+ if (clientId !== undefined) {
1496
+ localVarFormParams.set('client_id', clientId);
1497
+ }
1498
+ if (clientSecret !== undefined) {
1499
+ localVarFormParams.set('client_secret', clientSecret);
1500
+ }
1501
+ localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1502
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1503
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1504
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1505
+ localVarRequestOptions.data = localVarFormParams.toString();
1506
+ return {
1507
+ url: toPathString(localVarUrlObj),
1508
+ options: localVarRequestOptions,
1509
+ };
1510
+ }),
1511
+ /**
1512
+ *
1513
+ * @summary Logout
1514
+ * @param {string} body
1515
+ * @param {*} [options] Override http request option.
1516
+ * @throws {RequiredError}
1517
+ */
1518
+ logoutAuthLogoutPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1519
+ // verify required parameter 'body' is not null or undefined
1520
+ assertParamExists('logoutAuthLogoutPost', 'body', body);
1521
+ const localVarPath = `/auth/logout`;
1522
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1523
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1524
+ let baseOptions;
1525
+ if (configuration) {
1526
+ baseOptions = configuration.baseOptions;
1527
+ }
1528
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1529
+ const localVarHeaderParameter = {};
1530
+ const localVarQueryParameter = {};
1531
+ // authentication oauth2_password required
1532
+ // oauth required
1533
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1534
+ // authentication bearer_auth required
1535
+ // http bearer authentication required
1536
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1537
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1538
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1539
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1540
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1541
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1542
+ return {
1543
+ url: toPathString(localVarUrlObj),
1544
+ options: localVarRequestOptions,
1545
+ };
1546
+ }),
1547
+ /**
1548
+ *
1549
+ * @summary New Device
1550
+ * @param {NewDeviceBody} newDeviceBody
1551
+ * @param {*} [options] Override http request option.
1552
+ * @throws {RequiredError}
1553
+ */
1554
+ newDeviceInternalDevicesPost: (newDeviceBody_1, ...args_1) => __awaiter(this, [newDeviceBody_1, ...args_1], void 0, function* (newDeviceBody, options = {}) {
1555
+ // verify required parameter 'newDeviceBody' is not null or undefined
1556
+ assertParamExists('newDeviceInternalDevicesPost', 'newDeviceBody', newDeviceBody);
1557
+ const localVarPath = `/internal/devices/`;
1558
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1559
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1560
+ let baseOptions;
1561
+ if (configuration) {
1562
+ baseOptions = configuration.baseOptions;
1563
+ }
1564
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1565
+ const localVarHeaderParameter = {};
1566
+ const localVarQueryParameter = {};
1567
+ // authentication oauth2_password required
1568
+ // oauth required
1569
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1570
+ // authentication bearer_auth required
1571
+ // http bearer authentication required
1572
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1573
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1574
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1575
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1576
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1577
+ localVarRequestOptions.data = serializeDataIfNeeded(newDeviceBody, localVarRequestOptions, configuration);
1578
+ return {
1579
+ url: toPathString(localVarUrlObj),
1580
+ options: localVarRequestOptions,
1581
+ };
1582
+ }),
1583
+ /**
1584
+ *
1585
+ * @summary New Release
1586
+ * @param {any} deviceId
1587
+ * @param {File} releaseZip
1588
+ * @param {string} md5
1589
+ * @param {Array<string>} changelog
1590
+ * @param {Array<string>} [bugs]
1591
+ * @param {string | null} [notes]
1592
+ * @param {boolean} [force]
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ newReleaseInternalReleasesPost: (deviceId_1, releaseZip_1, md5_1, changelog_1, bugs_1, notes_1, force_1, ...args_1) => __awaiter(this, [deviceId_1, releaseZip_1, md5_1, changelog_1, bugs_1, notes_1, force_1, ...args_1], void 0, function* (deviceId, releaseZip, md5, changelog, bugs, notes, force, options = {}) {
1597
+ // verify required parameter 'deviceId' is not null or undefined
1598
+ assertParamExists('newReleaseInternalReleasesPost', 'deviceId', deviceId);
1599
+ // verify required parameter 'releaseZip' is not null or undefined
1600
+ assertParamExists('newReleaseInternalReleasesPost', 'releaseZip', releaseZip);
1601
+ // verify required parameter 'md5' is not null or undefined
1602
+ assertParamExists('newReleaseInternalReleasesPost', 'md5', md5);
1603
+ // verify required parameter 'changelog' is not null or undefined
1604
+ assertParamExists('newReleaseInternalReleasesPost', 'changelog', changelog);
1605
+ const localVarPath = `/internal/releases/`;
1606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1608
+ let baseOptions;
1609
+ if (configuration) {
1610
+ baseOptions = configuration.baseOptions;
1611
+ }
1612
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1613
+ const localVarHeaderParameter = {};
1614
+ const localVarQueryParameter = {};
1615
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1616
+ // authentication oauth2_password required
1617
+ // oauth required
1618
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1619
+ // authentication bearer_auth required
1620
+ // http bearer authentication required
1621
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1622
+ if (deviceId !== undefined) {
1623
+ localVarFormParams.append('device_id', new Blob([JSON.stringify(deviceId)], { type: "application/json", }));
1624
+ }
1625
+ if (releaseZip !== undefined) {
1626
+ localVarFormParams.append('release_zip', releaseZip);
1627
+ }
1628
+ if (md5 !== undefined) {
1629
+ localVarFormParams.append('md5', md5);
1630
+ }
1631
+ if (changelog) {
1632
+ localVarFormParams.append('changelog', changelog.join(COLLECTION_FORMATS.csv));
1633
+ }
1634
+ if (bugs) {
1635
+ localVarFormParams.append('bugs', bugs.join(COLLECTION_FORMATS.csv));
1636
+ }
1637
+ if (notes !== undefined) {
1638
+ localVarFormParams.append('notes', notes);
1639
+ }
1640
+ if (force !== undefined) {
1641
+ localVarFormParams.append('force', String(force));
1642
+ }
1643
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1644
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1646
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1647
+ localVarRequestOptions.data = localVarFormParams;
1648
+ return {
1649
+ url: toPathString(localVarUrlObj),
1650
+ options: localVarRequestOptions,
1651
+ };
1652
+ }),
1653
+ /**
1654
+ *
1655
+ * @summary Renew
1656
+ * @param {string} body
1657
+ * @param {*} [options] Override http request option.
1658
+ * @throws {RequiredError}
1659
+ */
1660
+ renewAuthRenewPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1661
+ // verify required parameter 'body' is not null or undefined
1662
+ assertParamExists('renewAuthRenewPost', 'body', body);
1663
+ const localVarPath = `/auth/renew`;
1664
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1665
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1666
+ let baseOptions;
1667
+ if (configuration) {
1668
+ baseOptions = configuration.baseOptions;
1669
+ }
1670
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1671
+ const localVarHeaderParameter = {};
1672
+ const localVarQueryParameter = {};
1673
+ // authentication oauth2_password required
1674
+ // oauth required
1675
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1676
+ // authentication bearer_auth required
1677
+ // http bearer authentication required
1678
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1679
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1680
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1681
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1682
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1683
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1684
+ return {
1685
+ url: toPathString(localVarUrlObj),
1686
+ options: localVarRequestOptions,
1687
+ };
1688
+ }),
1689
+ /**
1690
+ *
1691
+ * @summary Update Device
1692
+ * @param {any} deviceId
1693
+ * @param {DeviceUpdateBody} deviceUpdateBody
1694
+ * @param {*} [options] Override http request option.
1695
+ * @throws {RequiredError}
1696
+ */
1697
+ updateDeviceInternalDevicesDeviceIdPut: (deviceId_1, deviceUpdateBody_1, ...args_1) => __awaiter(this, [deviceId_1, deviceUpdateBody_1, ...args_1], void 0, function* (deviceId, deviceUpdateBody, options = {}) {
1698
+ // verify required parameter 'deviceId' is not null or undefined
1699
+ assertParamExists('updateDeviceInternalDevicesDeviceIdPut', 'deviceId', deviceId);
1700
+ // verify required parameter 'deviceUpdateBody' is not null or undefined
1701
+ assertParamExists('updateDeviceInternalDevicesDeviceIdPut', 'deviceUpdateBody', deviceUpdateBody);
1702
+ const localVarPath = `/internal/devices/{device_id}`
1703
+ .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1706
+ let baseOptions;
1707
+ if (configuration) {
1708
+ baseOptions = configuration.baseOptions;
1709
+ }
1710
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1711
+ const localVarHeaderParameter = {};
1712
+ const localVarQueryParameter = {};
1713
+ // authentication oauth2_password required
1714
+ // oauth required
1715
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1716
+ // authentication bearer_auth required
1717
+ // http bearer authentication required
1718
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1719
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1720
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1721
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1722
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1723
+ localVarRequestOptions.data = serializeDataIfNeeded(deviceUpdateBody, localVarRequestOptions, configuration);
1724
+ return {
1725
+ url: toPathString(localVarUrlObj),
1726
+ options: localVarRequestOptions,
1727
+ };
1728
+ }),
1729
+ /**
1730
+ *
1731
+ * @summary Update User
1732
+ * @param {any} userId
1733
+ * @param {UserUpdateBody} userUpdateBody
1734
+ * @param {*} [options] Override http request option.
1735
+ * @throws {RequiredError}
1736
+ */
1737
+ updateUserInternalUsersUserIdPut: (userId_1, userUpdateBody_1, ...args_1) => __awaiter(this, [userId_1, userUpdateBody_1, ...args_1], void 0, function* (userId, userUpdateBody, options = {}) {
1738
+ // verify required parameter 'userId' is not null or undefined
1739
+ assertParamExists('updateUserInternalUsersUserIdPut', 'userId', userId);
1740
+ // verify required parameter 'userUpdateBody' is not null or undefined
1741
+ assertParamExists('updateUserInternalUsersUserIdPut', 'userUpdateBody', userUpdateBody);
1742
+ const localVarPath = `/internal/users/{user_id}`
1743
+ .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1745
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1746
+ let baseOptions;
1747
+ if (configuration) {
1748
+ baseOptions = configuration.baseOptions;
1749
+ }
1750
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1751
+ const localVarHeaderParameter = {};
1752
+ const localVarQueryParameter = {};
1753
+ // authentication oauth2_password required
1754
+ // oauth required
1755
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1756
+ // authentication bearer_auth required
1757
+ // http bearer authentication required
1758
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1759
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1760
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1761
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1762
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1763
+ localVarRequestOptions.data = serializeDataIfNeeded(userUpdateBody, localVarRequestOptions, configuration);
1764
+ return {
1765
+ url: toPathString(localVarUrlObj),
1766
+ options: localVarRequestOptions,
1767
+ };
1768
+ }),
1769
+ };
1770
+ };
1771
+ /**
1772
+ * InternalApi - functional programming interface
1773
+ * @export
1774
+ */
1775
+ export const InternalApiFp = function (configuration) {
1776
+ const localVarAxiosParamCreator = InternalApiAxiosParamCreator(configuration);
1777
+ return {
1778
+ /**
1779
+ * Change the password for a user.
1780
+ * @summary Change Password
1781
+ * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
1782
+ * @param {*} [options] Override http request option.
1783
+ * @throws {RequiredError}
1784
+ */
1785
+ changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
1786
+ return __awaiter(this, void 0, void 0, function* () {
1787
+ var _a, _b, _c;
1788
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options);
1789
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1790
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.changePasswordProfileChangePasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1791
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1792
+ });
1793
+ },
1794
+ /**
1795
+ * Delete release
1796
+ * @summary Del Release
1797
+ * @param {any} releaseId
1798
+ * @param {*} [options] Override http request option.
1799
+ * @throws {RequiredError}
1800
+ */
1801
+ delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
1802
+ return __awaiter(this, void 0, void 0, function* () {
1803
+ var _a, _b, _c;
1804
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.delReleaseInternalReleasesReleaseIdDelete(releaseId, options);
1805
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1806
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.delReleaseInternalReleasesReleaseIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1807
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1808
+ });
1809
+ },
1810
+ /**
1811
+ *
1812
+ * @summary Delete User
1813
+ * @param {any} userId
1814
+ * @param {*} [options] Override http request option.
1815
+ * @throws {RequiredError}
1816
+ */
1817
+ deleteUserInternalUsersUserIdDelete(userId, options) {
1818
+ return __awaiter(this, void 0, void 0, function* () {
1819
+ var _a, _b, _c;
1820
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserInternalUsersUserIdDelete(userId, options);
1821
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1822
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.deleteUserInternalUsersUserIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1823
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1824
+ });
1825
+ },
1826
+ /**
1827
+ * Edit Release information
1828
+ * @summary Edit Release
1829
+ * @param {any} releaseId
1830
+ * @param {ReleaseUpdateBody} releaseUpdateBody
1831
+ * @param {*} [options] Override http request option.
1832
+ * @throws {RequiredError}
1833
+ */
1834
+ editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
1835
+ return __awaiter(this, void 0, void 0, function* () {
1836
+ var _a, _b, _c;
1837
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options);
1838
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1839
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.editReleaseInternalReleasesReleaseIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1840
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1841
+ });
1842
+ },
1843
+ /**
1844
+ *
1845
+ * @summary Get Device Info
1846
+ * @param {any} deviceId
1847
+ * @param {*} [options] Override http request option.
1848
+ * @throws {RequiredError}
1849
+ */
1850
+ getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
1851
+ return __awaiter(this, void 0, void 0, function* () {
1852
+ var _a, _b, _c;
1853
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options);
1854
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1855
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getDeviceInfoInternalDevicesDeviceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1856
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1857
+ });
1858
+ },
1859
+ /**
1860
+ * Get a paginated list of logs with optional filtering.
1861
+ * @summary Get Logs
1862
+ * @param {number} [page]
1863
+ * @param {number} [perPage]
1864
+ * @param { | null} [deviceId]
1865
+ * @param { | null} [releaseId]
1866
+ * @param { | null} [userId]
1867
+ * @param {boolean | null} [hideVerbose]
1868
+ * @param {*} [options] Override http request option.
1869
+ * @throws {RequiredError}
1870
+ */
1871
+ getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
1872
+ return __awaiter(this, void 0, void 0, function* () {
1873
+ var _a, _b, _c;
1874
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options);
1875
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1876
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getLogsInternalLogsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1877
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1878
+ });
1879
+ },
1880
+ /**
1881
+ * Get release information
1882
+ * @summary Get Release Info
1883
+ * @param {any} releaseId
1884
+ * @param {*} [options] Override http request option.
1885
+ * @throws {RequiredError}
1886
+ */
1887
+ getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
1888
+ return __awaiter(this, void 0, void 0, function* () {
1889
+ var _a, _b, _c;
1890
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options);
1891
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1892
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getReleaseInfoInternalReleasesReleaseIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1893
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1894
+ });
1895
+ },
1896
+ /**
1897
+ * Download release ZIP directly
1898
+ * @summary Get Release Zip
1899
+ * @param {any} releaseId
1900
+ * @param {*} [options] Override http request option.
1901
+ * @throws {RequiredError}
1902
+ */
1903
+ getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
1904
+ return __awaiter(this, void 0, void 0, function* () {
1905
+ var _a, _b, _c;
1906
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options);
1907
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1908
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getReleaseZipInternalReleasesReleaseIdDlGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1909
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1910
+ });
1911
+ },
1912
+ /**
1913
+ *
1914
+ * @summary Get User By Id
1915
+ * @param {string} userId
1916
+ * @param {*} [options] Override http request option.
1917
+ * @throws {RequiredError}
1918
+ */
1919
+ getUserByIdInternalUsersUserIdGet(userId, options) {
1920
+ return __awaiter(this, void 0, void 0, function* () {
1921
+ var _a, _b, _c;
1922
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserByIdInternalUsersUserIdGet(userId, options);
1923
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1924
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getUserByIdInternalUsersUserIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1925
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1926
+ });
1927
+ },
1928
+ /**
1929
+ *
1930
+ * @summary List Users
1931
+ * @param {*} [options] Override http request option.
1932
+ * @throws {RequiredError}
1933
+ */
1934
+ listUsersInternalUsersGet(options) {
1935
+ return __awaiter(this, void 0, void 0, function* () {
1936
+ var _a, _b, _c;
1937
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsersInternalUsersGet(options);
1938
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1939
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.listUsersInternalUsersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1940
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1941
+ });
1942
+ },
1943
+ /**
1944
+ * OAuth2 compatible token login, get an access token for future requests
1945
+ * @summary Login Oauth
1946
+ * @param {string} username
1947
+ * @param {string} password
1948
+ * @param {number} [minTime]
1949
+ * @param {number} [maxTime]
1950
+ * @param {string | null} [grantType]
1951
+ * @param {string} [scope]
1952
+ * @param {string | null} [clientId]
1953
+ * @param {string | null} [clientSecret]
1954
+ * @param {*} [options] Override http request option.
1955
+ * @throws {RequiredError}
1956
+ */
1957
+ loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
1958
+ return __awaiter(this, void 0, void 0, function* () {
1959
+ var _a, _b, _c;
1960
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options);
1961
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1962
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.loginOauthAuthLoginPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1963
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1964
+ });
1965
+ },
1966
+ /**
1967
+ *
1968
+ * @summary Logout
1969
+ * @param {string} body
1970
+ * @param {*} [options] Override http request option.
1971
+ * @throws {RequiredError}
1972
+ */
1973
+ logoutAuthLogoutPost(body, options) {
1974
+ return __awaiter(this, void 0, void 0, function* () {
1975
+ var _a, _b, _c;
1976
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.logoutAuthLogoutPost(body, options);
1977
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1978
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.logoutAuthLogoutPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1979
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1980
+ });
1981
+ },
1982
+ /**
1983
+ *
1984
+ * @summary New Device
1985
+ * @param {NewDeviceBody} newDeviceBody
1986
+ * @param {*} [options] Override http request option.
1987
+ * @throws {RequiredError}
1988
+ */
1989
+ newDeviceInternalDevicesPost(newDeviceBody, options) {
1990
+ return __awaiter(this, void 0, void 0, function* () {
1991
+ var _a, _b, _c;
1992
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.newDeviceInternalDevicesPost(newDeviceBody, options);
1993
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1994
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.newDeviceInternalDevicesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1995
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1996
+ });
1997
+ },
1998
+ /**
1999
+ *
2000
+ * @summary New Release
2001
+ * @param {any} deviceId
2002
+ * @param {File} releaseZip
2003
+ * @param {string} md5
2004
+ * @param {Array<string>} changelog
2005
+ * @param {Array<string>} [bugs]
2006
+ * @param {string | null} [notes]
2007
+ * @param {boolean} [force]
2008
+ * @param {*} [options] Override http request option.
2009
+ * @throws {RequiredError}
2010
+ */
2011
+ newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2012
+ return __awaiter(this, void 0, void 0, function* () {
2013
+ var _a, _b, _c;
2014
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options);
2015
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2016
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.newReleaseInternalReleasesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2017
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2018
+ });
2019
+ },
2020
+ /**
2021
+ *
2022
+ * @summary Renew
2023
+ * @param {string} body
2024
+ * @param {*} [options] Override http request option.
2025
+ * @throws {RequiredError}
2026
+ */
2027
+ renewAuthRenewPost(body, options) {
2028
+ return __awaiter(this, void 0, void 0, function* () {
2029
+ var _a, _b, _c;
2030
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.renewAuthRenewPost(body, options);
2031
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2032
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.renewAuthRenewPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2033
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2034
+ });
2035
+ },
2036
+ /**
2037
+ *
2038
+ * @summary Update Device
2039
+ * @param {any} deviceId
2040
+ * @param {DeviceUpdateBody} deviceUpdateBody
2041
+ * @param {*} [options] Override http request option.
2042
+ * @throws {RequiredError}
2043
+ */
2044
+ updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2045
+ return __awaiter(this, void 0, void 0, function* () {
2046
+ var _a, _b, _c;
2047
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options);
2048
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2049
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.updateDeviceInternalDevicesDeviceIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2050
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2051
+ });
2052
+ },
2053
+ /**
2054
+ *
2055
+ * @summary Update User
2056
+ * @param {any} userId
2057
+ * @param {UserUpdateBody} userUpdateBody
2058
+ * @param {*} [options] Override http request option.
2059
+ * @throws {RequiredError}
2060
+ */
2061
+ updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2062
+ return __awaiter(this, void 0, void 0, function* () {
2063
+ var _a, _b, _c;
2064
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserInternalUsersUserIdPut(userId, userUpdateBody, options);
2065
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2066
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.updateUserInternalUsersUserIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2067
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2068
+ });
2069
+ },
2070
+ };
2071
+ };
2072
+ /**
2073
+ * InternalApi - factory interface
2074
+ * @export
2075
+ */
2076
+ export const InternalApiFactory = function (configuration, basePath, axios) {
2077
+ const localVarFp = InternalApiFp(configuration);
2078
+ return {
2079
+ /**
2080
+ * Change the password for a user.
2081
+ * @summary Change Password
2082
+ * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2083
+ * @param {*} [options] Override http request option.
2084
+ * @throws {RequiredError}
2085
+ */
2086
+ changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2087
+ return localVarFp.changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options).then((request) => request(axios, basePath));
2088
+ },
2089
+ /**
2090
+ * Delete release
2091
+ * @summary Del Release
2092
+ * @param {any} releaseId
2093
+ * @param {*} [options] Override http request option.
2094
+ * @throws {RequiredError}
2095
+ */
2096
+ delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2097
+ return localVarFp.delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(axios, basePath));
2098
+ },
2099
+ /**
2100
+ *
2101
+ * @summary Delete User
2102
+ * @param {any} userId
2103
+ * @param {*} [options] Override http request option.
2104
+ * @throws {RequiredError}
2105
+ */
2106
+ deleteUserInternalUsersUserIdDelete(userId, options) {
2107
+ return localVarFp.deleteUserInternalUsersUserIdDelete(userId, options).then((request) => request(axios, basePath));
2108
+ },
2109
+ /**
2110
+ * Edit Release information
2111
+ * @summary Edit Release
2112
+ * @param {any} releaseId
2113
+ * @param {ReleaseUpdateBody} releaseUpdateBody
2114
+ * @param {*} [options] Override http request option.
2115
+ * @throws {RequiredError}
2116
+ */
2117
+ editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2118
+ return localVarFp.editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options).then((request) => request(axios, basePath));
2119
+ },
2120
+ /**
2121
+ *
2122
+ * @summary Get Device Info
2123
+ * @param {any} deviceId
2124
+ * @param {*} [options] Override http request option.
2125
+ * @throws {RequiredError}
2126
+ */
2127
+ getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2128
+ return localVarFp.getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options).then((request) => request(axios, basePath));
2129
+ },
2130
+ /**
2131
+ * Get a paginated list of logs with optional filtering.
2132
+ * @summary Get Logs
2133
+ * @param {number} [page]
2134
+ * @param {number} [perPage]
2135
+ * @param { | null} [deviceId]
2136
+ * @param { | null} [releaseId]
2137
+ * @param { | null} [userId]
2138
+ * @param {boolean | null} [hideVerbose]
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ */
2142
+ getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2143
+ return localVarFp.getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options).then((request) => request(axios, basePath));
2144
+ },
2145
+ /**
2146
+ * Get release information
2147
+ * @summary Get Release Info
2148
+ * @param {any} releaseId
2149
+ * @param {*} [options] Override http request option.
2150
+ * @throws {RequiredError}
2151
+ */
2152
+ getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2153
+ return localVarFp.getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options).then((request) => request(axios, basePath));
2154
+ },
2155
+ /**
2156
+ * Download release ZIP directly
2157
+ * @summary Get Release Zip
2158
+ * @param {any} releaseId
2159
+ * @param {*} [options] Override http request option.
2160
+ * @throws {RequiredError}
2161
+ */
2162
+ getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2163
+ return localVarFp.getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options).then((request) => request(axios, basePath));
2164
+ },
2165
+ /**
2166
+ *
2167
+ * @summary Get User By Id
2168
+ * @param {string} userId
2169
+ * @param {*} [options] Override http request option.
2170
+ * @throws {RequiredError}
2171
+ */
2172
+ getUserByIdInternalUsersUserIdGet(userId, options) {
2173
+ return localVarFp.getUserByIdInternalUsersUserIdGet(userId, options).then((request) => request(axios, basePath));
2174
+ },
2175
+ /**
2176
+ *
2177
+ * @summary List Users
2178
+ * @param {*} [options] Override http request option.
2179
+ * @throws {RequiredError}
2180
+ */
2181
+ listUsersInternalUsersGet(options) {
2182
+ return localVarFp.listUsersInternalUsersGet(options).then((request) => request(axios, basePath));
2183
+ },
2184
+ /**
2185
+ * OAuth2 compatible token login, get an access token for future requests
2186
+ * @summary Login Oauth
2187
+ * @param {string} username
2188
+ * @param {string} password
2189
+ * @param {number} [minTime]
2190
+ * @param {number} [maxTime]
2191
+ * @param {string | null} [grantType]
2192
+ * @param {string} [scope]
2193
+ * @param {string | null} [clientId]
2194
+ * @param {string | null} [clientSecret]
2195
+ * @param {*} [options] Override http request option.
2196
+ * @throws {RequiredError}
2197
+ */
2198
+ loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2199
+ return localVarFp.loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options).then((request) => request(axios, basePath));
2200
+ },
2201
+ /**
2202
+ *
2203
+ * @summary Logout
2204
+ * @param {string} body
2205
+ * @param {*} [options] Override http request option.
2206
+ * @throws {RequiredError}
2207
+ */
2208
+ logoutAuthLogoutPost(body, options) {
2209
+ return localVarFp.logoutAuthLogoutPost(body, options).then((request) => request(axios, basePath));
2210
+ },
2211
+ /**
2212
+ *
2213
+ * @summary New Device
2214
+ * @param {NewDeviceBody} newDeviceBody
2215
+ * @param {*} [options] Override http request option.
2216
+ * @throws {RequiredError}
2217
+ */
2218
+ newDeviceInternalDevicesPost(newDeviceBody, options) {
2219
+ return localVarFp.newDeviceInternalDevicesPost(newDeviceBody, options).then((request) => request(axios, basePath));
2220
+ },
2221
+ /**
2222
+ *
2223
+ * @summary New Release
2224
+ * @param {any} deviceId
2225
+ * @param {File} releaseZip
2226
+ * @param {string} md5
2227
+ * @param {Array<string>} changelog
2228
+ * @param {Array<string>} [bugs]
2229
+ * @param {string | null} [notes]
2230
+ * @param {boolean} [force]
2231
+ * @param {*} [options] Override http request option.
2232
+ * @throws {RequiredError}
2233
+ */
2234
+ newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2235
+ return localVarFp.newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options).then((request) => request(axios, basePath));
2236
+ },
2237
+ /**
2238
+ *
2239
+ * @summary Renew
2240
+ * @param {string} body
2241
+ * @param {*} [options] Override http request option.
2242
+ * @throws {RequiredError}
2243
+ */
2244
+ renewAuthRenewPost(body, options) {
2245
+ return localVarFp.renewAuthRenewPost(body, options).then((request) => request(axios, basePath));
2246
+ },
2247
+ /**
2248
+ *
2249
+ * @summary Update Device
2250
+ * @param {any} deviceId
2251
+ * @param {DeviceUpdateBody} deviceUpdateBody
2252
+ * @param {*} [options] Override http request option.
2253
+ * @throws {RequiredError}
2254
+ */
2255
+ updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2256
+ return localVarFp.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(axios, basePath));
2257
+ },
2258
+ /**
2259
+ *
2260
+ * @summary Update User
2261
+ * @param {any} userId
2262
+ * @param {UserUpdateBody} userUpdateBody
2263
+ * @param {*} [options] Override http request option.
2264
+ * @throws {RequiredError}
2265
+ */
2266
+ updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2267
+ return localVarFp.updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(axios, basePath));
2268
+ },
2269
+ };
2270
+ };
2271
+ /**
2272
+ * InternalApi - object-oriented interface
2273
+ * @export
2274
+ * @class InternalApi
2275
+ * @extends {BaseAPI}
2276
+ */
2277
+ export class InternalApi extends BaseAPI {
2278
+ /**
2279
+ * Change the password for a user.
2280
+ * @summary Change Password
2281
+ * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2282
+ * @param {*} [options] Override http request option.
2283
+ * @throws {RequiredError}
2284
+ * @memberof InternalApi
2285
+ */
2286
+ changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2287
+ return InternalApiFp(this.configuration).changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options).then((request) => request(this.axios, this.basePath));
2288
+ }
2289
+ /**
2290
+ * Delete release
2291
+ * @summary Del Release
2292
+ * @param {any} releaseId
2293
+ * @param {*} [options] Override http request option.
2294
+ * @throws {RequiredError}
2295
+ * @memberof InternalApi
2296
+ */
2297
+ delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2298
+ return InternalApiFp(this.configuration).delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(this.axios, this.basePath));
2299
+ }
2300
+ /**
2301
+ *
2302
+ * @summary Delete User
2303
+ * @param {any} userId
2304
+ * @param {*} [options] Override http request option.
2305
+ * @throws {RequiredError}
2306
+ * @memberof InternalApi
2307
+ */
2308
+ deleteUserInternalUsersUserIdDelete(userId, options) {
2309
+ return InternalApiFp(this.configuration).deleteUserInternalUsersUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
2310
+ }
2311
+ /**
2312
+ * Edit Release information
2313
+ * @summary Edit Release
2314
+ * @param {any} releaseId
2315
+ * @param {ReleaseUpdateBody} releaseUpdateBody
2316
+ * @param {*} [options] Override http request option.
2317
+ * @throws {RequiredError}
2318
+ * @memberof InternalApi
2319
+ */
2320
+ editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2321
+ return InternalApiFp(this.configuration).editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options).then((request) => request(this.axios, this.basePath));
2322
+ }
2323
+ /**
2324
+ *
2325
+ * @summary Get Device Info
2326
+ * @param {any} deviceId
2327
+ * @param {*} [options] Override http request option.
2328
+ * @throws {RequiredError}
2329
+ * @memberof InternalApi
2330
+ */
2331
+ getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2332
+ return InternalApiFp(this.configuration).getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options).then((request) => request(this.axios, this.basePath));
2333
+ }
2334
+ /**
2335
+ * Get a paginated list of logs with optional filtering.
2336
+ * @summary Get Logs
2337
+ * @param {number} [page]
2338
+ * @param {number} [perPage]
2339
+ * @param { | null} [deviceId]
2340
+ * @param { | null} [releaseId]
2341
+ * @param { | null} [userId]
2342
+ * @param {boolean | null} [hideVerbose]
2343
+ * @param {*} [options] Override http request option.
2344
+ * @throws {RequiredError}
2345
+ * @memberof InternalApi
2346
+ */
2347
+ getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2348
+ return InternalApiFp(this.configuration).getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options).then((request) => request(this.axios, this.basePath));
2349
+ }
2350
+ /**
2351
+ * Get release information
2352
+ * @summary Get Release Info
2353
+ * @param {any} releaseId
2354
+ * @param {*} [options] Override http request option.
2355
+ * @throws {RequiredError}
2356
+ * @memberof InternalApi
2357
+ */
2358
+ getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2359
+ return InternalApiFp(this.configuration).getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options).then((request) => request(this.axios, this.basePath));
2360
+ }
2361
+ /**
2362
+ * Download release ZIP directly
2363
+ * @summary Get Release Zip
2364
+ * @param {any} releaseId
2365
+ * @param {*} [options] Override http request option.
2366
+ * @throws {RequiredError}
2367
+ * @memberof InternalApi
2368
+ */
2369
+ getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2370
+ return InternalApiFp(this.configuration).getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options).then((request) => request(this.axios, this.basePath));
2371
+ }
2372
+ /**
2373
+ *
2374
+ * @summary Get User By Id
2375
+ * @param {string} userId
2376
+ * @param {*} [options] Override http request option.
2377
+ * @throws {RequiredError}
2378
+ * @memberof InternalApi
2379
+ */
2380
+ getUserByIdInternalUsersUserIdGet(userId, options) {
2381
+ return InternalApiFp(this.configuration).getUserByIdInternalUsersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
2382
+ }
2383
+ /**
2384
+ *
2385
+ * @summary List Users
2386
+ * @param {*} [options] Override http request option.
2387
+ * @throws {RequiredError}
2388
+ * @memberof InternalApi
2389
+ */
2390
+ listUsersInternalUsersGet(options) {
2391
+ return InternalApiFp(this.configuration).listUsersInternalUsersGet(options).then((request) => request(this.axios, this.basePath));
2392
+ }
2393
+ /**
2394
+ * OAuth2 compatible token login, get an access token for future requests
2395
+ * @summary Login Oauth
2396
+ * @param {string} username
2397
+ * @param {string} password
2398
+ * @param {number} [minTime]
2399
+ * @param {number} [maxTime]
2400
+ * @param {string | null} [grantType]
2401
+ * @param {string} [scope]
2402
+ * @param {string | null} [clientId]
2403
+ * @param {string | null} [clientSecret]
2404
+ * @param {*} [options] Override http request option.
2405
+ * @throws {RequiredError}
2406
+ * @memberof InternalApi
2407
+ */
2408
+ loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2409
+ return InternalApiFp(this.configuration).loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options).then((request) => request(this.axios, this.basePath));
2410
+ }
2411
+ /**
2412
+ *
2413
+ * @summary Logout
2414
+ * @param {string} body
2415
+ * @param {*} [options] Override http request option.
2416
+ * @throws {RequiredError}
2417
+ * @memberof InternalApi
2418
+ */
2419
+ logoutAuthLogoutPost(body, options) {
2420
+ return InternalApiFp(this.configuration).logoutAuthLogoutPost(body, options).then((request) => request(this.axios, this.basePath));
2421
+ }
2422
+ /**
2423
+ *
2424
+ * @summary New Device
2425
+ * @param {NewDeviceBody} newDeviceBody
2426
+ * @param {*} [options] Override http request option.
2427
+ * @throws {RequiredError}
2428
+ * @memberof InternalApi
2429
+ */
2430
+ newDeviceInternalDevicesPost(newDeviceBody, options) {
2431
+ return InternalApiFp(this.configuration).newDeviceInternalDevicesPost(newDeviceBody, options).then((request) => request(this.axios, this.basePath));
2432
+ }
2433
+ /**
2434
+ *
2435
+ * @summary New Release
2436
+ * @param {any} deviceId
2437
+ * @param {File} releaseZip
2438
+ * @param {string} md5
2439
+ * @param {Array<string>} changelog
2440
+ * @param {Array<string>} [bugs]
2441
+ * @param {string | null} [notes]
2442
+ * @param {boolean} [force]
2443
+ * @param {*} [options] Override http request option.
2444
+ * @throws {RequiredError}
2445
+ * @memberof InternalApi
2446
+ */
2447
+ newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2448
+ return InternalApiFp(this.configuration).newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options).then((request) => request(this.axios, this.basePath));
2449
+ }
2450
+ /**
2451
+ *
2452
+ * @summary Renew
2453
+ * @param {string} body
2454
+ * @param {*} [options] Override http request option.
2455
+ * @throws {RequiredError}
2456
+ * @memberof InternalApi
2457
+ */
2458
+ renewAuthRenewPost(body, options) {
2459
+ return InternalApiFp(this.configuration).renewAuthRenewPost(body, options).then((request) => request(this.axios, this.basePath));
2460
+ }
2461
+ /**
2462
+ *
2463
+ * @summary Update Device
2464
+ * @param {any} deviceId
2465
+ * @param {DeviceUpdateBody} deviceUpdateBody
2466
+ * @param {*} [options] Override http request option.
2467
+ * @throws {RequiredError}
2468
+ * @memberof InternalApi
2469
+ */
2470
+ updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2471
+ return InternalApiFp(this.configuration).updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(this.axios, this.basePath));
2472
+ }
2473
+ /**
2474
+ *
2475
+ * @summary Update User
2476
+ * @param {any} userId
2477
+ * @param {UserUpdateBody} userUpdateBody
2478
+ * @param {*} [options] Override http request option.
2479
+ * @throws {RequiredError}
2480
+ * @memberof InternalApi
2481
+ */
2482
+ updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2483
+ return InternalApiFp(this.configuration).updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(this.axios, this.basePath));
2484
+ }
2485
+ }
2486
+ /**
2487
+ * ReleaseApi - axios parameter creator
2488
+ * @export
2489
+ */
2490
+ export const ReleaseApiAxiosParamCreator = function (configuration) {
2491
+ return {
2492
+ /**
2493
+ * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
2494
+ * @summary Get Release
2495
+ * @param { | null} [releaseId] Release ID
2496
+ * @param { | null} [id] Release ID (deprecated)
2497
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
2498
+ * @param {string | null} [filename]
2499
+ * @param {*} [options] Override http request option.
2500
+ * @throws {RequiredError}
2501
+ */
2502
+ getRelease: (releaseId_1, id_1, buildId_1, filename_1, ...args_1) => __awaiter(this, [releaseId_1, id_1, buildId_1, filename_1, ...args_1], void 0, function* (releaseId, id, buildId, filename, options = {}) {
2503
+ const localVarPath = `/releases/get`;
2504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2505
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2506
+ let baseOptions;
2507
+ if (configuration) {
2508
+ baseOptions = configuration.baseOptions;
2509
+ }
2510
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2511
+ const localVarHeaderParameter = {};
2512
+ const localVarQueryParameter = {};
2513
+ if (releaseId !== undefined) {
2514
+ for (const [key, value] of Object.entries(releaseId)) {
2515
+ localVarQueryParameter[key] = value;
2516
+ }
2517
+ }
2518
+ if (id !== undefined) {
2519
+ for (const [key, value] of Object.entries(id)) {
2520
+ localVarQueryParameter[key] = value;
2521
+ }
2522
+ }
2523
+ if (buildId !== undefined) {
2524
+ localVarQueryParameter['build_id'] = buildId;
2525
+ }
2526
+ if (filename !== undefined) {
2527
+ localVarQueryParameter['filename'] = filename;
2528
+ }
2529
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2530
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2531
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2532
+ return {
2533
+ url: toPathString(localVarUrlObj),
2534
+ options: localVarRequestOptions,
2535
+ };
2536
+ }),
2537
+ /**
2538
+ * Gets release information using the release ID, nothing to discuss really.
2539
+ * @summary Get Release Short
2540
+ * @param {any} releaseId
2541
+ * @param {*} [options] Override http request option.
2542
+ * @deprecated
2543
+ * @throws {RequiredError}
2544
+ */
2545
+ getReleaseDeprecated: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
2546
+ // verify required parameter 'releaseId' is not null or undefined
2547
+ assertParamExists('getReleaseDeprecated', 'releaseId', releaseId);
2548
+ const localVarPath = `/releases/{release_id}`
2549
+ .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
2550
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2551
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2552
+ let baseOptions;
2553
+ if (configuration) {
2554
+ baseOptions = configuration.baseOptions;
2555
+ }
2556
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2557
+ const localVarHeaderParameter = {};
2558
+ const localVarQueryParameter = {};
2559
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2560
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2561
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2562
+ return {
2563
+ url: toPathString(localVarUrlObj),
2564
+ options: localVarRequestOptions,
2565
+ };
2566
+ }),
2567
+ /**
2568
+ * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
2569
+ * @summary Get Releases
2570
+ * @param {Array<any>} [id] Filter by Release IDs
2571
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
2572
+ * @param {Array<string>} [buildId] Filter by Build IDs
2573
+ * @param {Array<any>} [deviceId] Filter by Device IDs
2574
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
2575
+ * @param {Array<string>} [codename] Filter by device codenames
2576
+ * @param {Array<string>} [version] Filter by release version
2577
+ * @param {Array<ReleaseType>} [type] Filter by release type
2578
+ * @param {boolean | null} [archived] Filter by the archived status
2579
+ * @param {boolean | null} [freezed] Filter by the freezed status
2580
+ * @param { | null} [afterReleaseId] Show releases after the provided one
2581
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
2582
+ * @param {ReleasesSort} [sort] Sort mode
2583
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
2584
+ * @param {number | null} [skip] Skip query results
2585
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
2586
+ * @param {*} [options] Override http request option.
2587
+ * @throws {RequiredError}
2588
+ */
2589
+ getReleases: (id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options = {}) {
2590
+ const localVarPath = `/releases/`;
2591
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2592
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2593
+ let baseOptions;
2594
+ if (configuration) {
2595
+ baseOptions = configuration.baseOptions;
2596
+ }
2597
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2598
+ const localVarHeaderParameter = {};
2599
+ const localVarQueryParameter = {};
2600
+ if (id) {
2601
+ localVarQueryParameter['id'] = id;
2602
+ }
2603
+ if (id2) {
2604
+ localVarQueryParameter['_id'] = id2;
2605
+ }
2606
+ if (buildId) {
2607
+ localVarQueryParameter['build_id'] = buildId;
2608
+ }
2609
+ if (deviceId) {
2610
+ localVarQueryParameter['device_id'] = deviceId;
2611
+ }
2612
+ if (maintainerId) {
2613
+ localVarQueryParameter['maintainer_id'] = maintainerId;
2614
+ }
2615
+ if (codename) {
2616
+ localVarQueryParameter['codename'] = codename;
2617
+ }
2618
+ if (version) {
2619
+ localVarQueryParameter['version'] = version;
2620
+ }
2621
+ if (type) {
2622
+ localVarQueryParameter['type'] = type;
2623
+ }
2624
+ if (archived !== undefined) {
2625
+ localVarQueryParameter['archived'] = archived;
2626
+ }
2627
+ if (freezed !== undefined) {
2628
+ localVarQueryParameter['freezed'] = freezed;
2629
+ }
2630
+ if (afterReleaseId !== undefined) {
2631
+ for (const [key, value] of Object.entries(afterReleaseId)) {
2632
+ localVarQueryParameter[key] = value;
2633
+ }
2634
+ }
2635
+ if (afterDate !== undefined) {
2636
+ localVarQueryParameter['after_date'] = afterDate;
2637
+ }
2638
+ if (sort !== undefined) {
2639
+ localVarQueryParameter['sort'] = sort;
2640
+ }
2641
+ if (group !== undefined) {
2642
+ localVarQueryParameter['group'] = group;
2643
+ }
2644
+ if (skip !== undefined) {
2645
+ localVarQueryParameter['skip'] = skip;
2646
+ }
2647
+ if (limit !== undefined) {
2648
+ localVarQueryParameter['limit'] = limit;
2649
+ }
2650
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2651
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2652
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2653
+ return {
2654
+ url: toPathString(localVarUrlObj),
2655
+ options: localVarRequestOptions,
2656
+ };
2657
+ }),
2658
+ /**
2659
+ * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
2660
+ * @summary Get Updates
2661
+ * @param {any} lastKnownId
2662
+ * @param {Array<any>} [deviceId] Filter by device ID
2663
+ * @param {Array<ReleaseType>} [type] Filter by release type
2664
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
2665
+ * @param {number | null} [skip] Skip query results
2666
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
2667
+ * @param {*} [options] Override http request option.
2668
+ * @deprecated
2669
+ * @throws {RequiredError}
2670
+ */
2671
+ getUpdatesDeprecated: (lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1) => __awaiter(this, [lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1], void 0, function* (lastKnownId, deviceId, type, releaseType, skip, limit, options = {}) {
2672
+ // verify required parameter 'lastKnownId' is not null or undefined
2673
+ assertParamExists('getUpdatesDeprecated', 'lastKnownId', lastKnownId);
2674
+ const localVarPath = `/updates/{last_known_id}`
2675
+ .replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
2676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2677
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2678
+ let baseOptions;
2679
+ if (configuration) {
2680
+ baseOptions = configuration.baseOptions;
2681
+ }
2682
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2683
+ const localVarHeaderParameter = {};
2684
+ const localVarQueryParameter = {};
2685
+ if (deviceId) {
2686
+ localVarQueryParameter['device_id'] = deviceId;
2687
+ }
2688
+ if (type) {
2689
+ localVarQueryParameter['type'] = type;
2690
+ }
2691
+ if (releaseType) {
2692
+ localVarQueryParameter['release_type'] = releaseType;
2693
+ }
2694
+ if (skip !== undefined) {
2695
+ localVarQueryParameter['skip'] = skip;
2696
+ }
2697
+ if (limit !== undefined) {
2698
+ localVarQueryParameter['limit'] = limit;
2699
+ }
2700
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2701
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2702
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2703
+ return {
2704
+ url: toPathString(localVarUrlObj),
2705
+ options: localVarRequestOptions,
2706
+ };
2707
+ }),
2708
+ };
2709
+ };
2710
+ /**
2711
+ * ReleaseApi - functional programming interface
2712
+ * @export
2713
+ */
2714
+ export const ReleaseApiFp = function (configuration) {
2715
+ const localVarAxiosParamCreator = ReleaseApiAxiosParamCreator(configuration);
2716
+ return {
2717
+ /**
2718
+ * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
2719
+ * @summary Get Release
2720
+ * @param { | null} [releaseId] Release ID
2721
+ * @param { | null} [id] Release ID (deprecated)
2722
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
2723
+ * @param {string | null} [filename]
2724
+ * @param {*} [options] Override http request option.
2725
+ * @throws {RequiredError}
2726
+ */
2727
+ getRelease(releaseId, id, buildId, filename, options) {
2728
+ return __awaiter(this, void 0, void 0, function* () {
2729
+ var _a, _b, _c;
2730
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRelease(releaseId, id, buildId, filename, options);
2731
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2732
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getRelease']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2733
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2734
+ });
2735
+ },
2736
+ /**
2737
+ * Gets release information using the release ID, nothing to discuss really.
2738
+ * @summary Get Release Short
2739
+ * @param {any} releaseId
2740
+ * @param {*} [options] Override http request option.
2741
+ * @deprecated
2742
+ * @throws {RequiredError}
2743
+ */
2744
+ getReleaseDeprecated(releaseId, options) {
2745
+ return __awaiter(this, void 0, void 0, function* () {
2746
+ var _a, _b, _c;
2747
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseDeprecated(releaseId, options);
2748
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2749
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2750
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2751
+ });
2752
+ },
2753
+ /**
2754
+ * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
2755
+ * @summary Get Releases
2756
+ * @param {Array<any>} [id] Filter by Release IDs
2757
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
2758
+ * @param {Array<string>} [buildId] Filter by Build IDs
2759
+ * @param {Array<any>} [deviceId] Filter by Device IDs
2760
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
2761
+ * @param {Array<string>} [codename] Filter by device codenames
2762
+ * @param {Array<string>} [version] Filter by release version
2763
+ * @param {Array<ReleaseType>} [type] Filter by release type
2764
+ * @param {boolean | null} [archived] Filter by the archived status
2765
+ * @param {boolean | null} [freezed] Filter by the freezed status
2766
+ * @param { | null} [afterReleaseId] Show releases after the provided one
2767
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
2768
+ * @param {ReleasesSort} [sort] Sort mode
2769
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
2770
+ * @param {number | null} [skip] Skip query results
2771
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
2772
+ * @param {*} [options] Override http request option.
2773
+ * @throws {RequiredError}
2774
+ */
2775
+ getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
2776
+ return __awaiter(this, void 0, void 0, function* () {
2777
+ var _a, _b, _c;
2778
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
2779
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2780
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2781
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2782
+ });
2783
+ },
2784
+ /**
2785
+ * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
2786
+ * @summary Get Updates
2787
+ * @param {any} lastKnownId
2788
+ * @param {Array<any>} [deviceId] Filter by device ID
2789
+ * @param {Array<ReleaseType>} [type] Filter by release type
2790
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
2791
+ * @param {number | null} [skip] Skip query results
2792
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
2793
+ * @param {*} [options] Override http request option.
2794
+ * @deprecated
2795
+ * @throws {RequiredError}
2796
+ */
2797
+ getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
2798
+ return __awaiter(this, void 0, void 0, function* () {
2799
+ var _a, _b, _c;
2800
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options);
2801
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2802
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getUpdatesDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2803
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2804
+ });
2805
+ },
2806
+ };
2807
+ };
2808
+ /**
2809
+ * ReleaseApi - factory interface
2810
+ * @export
2811
+ */
2812
+ export const ReleaseApiFactory = function (configuration, basePath, axios) {
2813
+ const localVarFp = ReleaseApiFp(configuration);
2814
+ return {
2815
+ /**
2816
+ * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
2817
+ * @summary Get Release
2818
+ * @param { | null} [releaseId] Release ID
2819
+ * @param { | null} [id] Release ID (deprecated)
2820
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
2821
+ * @param {string | null} [filename]
2822
+ * @param {*} [options] Override http request option.
2823
+ * @throws {RequiredError}
2824
+ */
2825
+ getRelease(releaseId, id, buildId, filename, options) {
2826
+ return localVarFp.getRelease(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
2827
+ },
2828
+ /**
2829
+ * Gets release information using the release ID, nothing to discuss really.
2830
+ * @summary Get Release Short
2831
+ * @param {any} releaseId
2832
+ * @param {*} [options] Override http request option.
2833
+ * @deprecated
2834
+ * @throws {RequiredError}
2835
+ */
2836
+ getReleaseDeprecated(releaseId, options) {
2837
+ return localVarFp.getReleaseDeprecated(releaseId, options).then((request) => request(axios, basePath));
2838
+ },
2839
+ /**
2840
+ * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
2841
+ * @summary Get Releases
2842
+ * @param {Array<any>} [id] Filter by Release IDs
2843
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
2844
+ * @param {Array<string>} [buildId] Filter by Build IDs
2845
+ * @param {Array<any>} [deviceId] Filter by Device IDs
2846
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
2847
+ * @param {Array<string>} [codename] Filter by device codenames
2848
+ * @param {Array<string>} [version] Filter by release version
2849
+ * @param {Array<ReleaseType>} [type] Filter by release type
2850
+ * @param {boolean | null} [archived] Filter by the archived status
2851
+ * @param {boolean | null} [freezed] Filter by the freezed status
2852
+ * @param { | null} [afterReleaseId] Show releases after the provided one
2853
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
2854
+ * @param {ReleasesSort} [sort] Sort mode
2855
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
2856
+ * @param {number | null} [skip] Skip query results
2857
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
2858
+ * @param {*} [options] Override http request option.
2859
+ * @throws {RequiredError}
2860
+ */
2861
+ getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
2862
+ return localVarFp.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(axios, basePath));
2863
+ },
2864
+ /**
2865
+ * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
2866
+ * @summary Get Updates
2867
+ * @param {any} lastKnownId
2868
+ * @param {Array<any>} [deviceId] Filter by device ID
2869
+ * @param {Array<ReleaseType>} [type] Filter by release type
2870
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
2871
+ * @param {number | null} [skip] Skip query results
2872
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
2873
+ * @param {*} [options] Override http request option.
2874
+ * @deprecated
2875
+ * @throws {RequiredError}
2876
+ */
2877
+ getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
2878
+ return localVarFp.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
2879
+ },
2880
+ };
2881
+ };
2882
+ /**
2883
+ * ReleaseApi - object-oriented interface
2884
+ * @export
2885
+ * @class ReleaseApi
2886
+ * @extends {BaseAPI}
2887
+ */
2888
+ export class ReleaseApi extends BaseAPI {
2889
+ /**
2890
+ * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
2891
+ * @summary Get Release
2892
+ * @param { | null} [releaseId] Release ID
2893
+ * @param { | null} [id] Release ID (deprecated)
2894
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
2895
+ * @param {string | null} [filename]
2896
+ * @param {*} [options] Override http request option.
2897
+ * @throws {RequiredError}
2898
+ * @memberof ReleaseApi
2899
+ */
2900
+ getRelease(releaseId, id, buildId, filename, options) {
2901
+ return ReleaseApiFp(this.configuration).getRelease(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
2902
+ }
2903
+ /**
2904
+ * Gets release information using the release ID, nothing to discuss really.
2905
+ * @summary Get Release Short
2906
+ * @param {any} releaseId
2907
+ * @param {*} [options] Override http request option.
2908
+ * @deprecated
2909
+ * @throws {RequiredError}
2910
+ * @memberof ReleaseApi
2911
+ */
2912
+ getReleaseDeprecated(releaseId, options) {
2913
+ return ReleaseApiFp(this.configuration).getReleaseDeprecated(releaseId, options).then((request) => request(this.axios, this.basePath));
2914
+ }
2915
+ /**
2916
+ * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
2917
+ * @summary Get Releases
2918
+ * @param {Array<any>} [id] Filter by Release IDs
2919
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
2920
+ * @param {Array<string>} [buildId] Filter by Build IDs
2921
+ * @param {Array<any>} [deviceId] Filter by Device IDs
2922
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
2923
+ * @param {Array<string>} [codename] Filter by device codenames
2924
+ * @param {Array<string>} [version] Filter by release version
2925
+ * @param {Array<ReleaseType>} [type] Filter by release type
2926
+ * @param {boolean | null} [archived] Filter by the archived status
2927
+ * @param {boolean | null} [freezed] Filter by the freezed status
2928
+ * @param { | null} [afterReleaseId] Show releases after the provided one
2929
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
2930
+ * @param {ReleasesSort} [sort] Sort mode
2931
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
2932
+ * @param {number | null} [skip] Skip query results
2933
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
2934
+ * @param {*} [options] Override http request option.
2935
+ * @throws {RequiredError}
2936
+ * @memberof ReleaseApi
2937
+ */
2938
+ getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
2939
+ return ReleaseApiFp(this.configuration).getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(this.axios, this.basePath));
2940
+ }
2941
+ /**
2942
+ * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
2943
+ * @summary Get Updates
2944
+ * @param {any} lastKnownId
2945
+ * @param {Array<any>} [deviceId] Filter by device ID
2946
+ * @param {Array<ReleaseType>} [type] Filter by release type
2947
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
2948
+ * @param {number | null} [skip] Skip query results
2949
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
2950
+ * @param {*} [options] Override http request option.
2951
+ * @deprecated
2952
+ * @throws {RequiredError}
2953
+ * @memberof ReleaseApi
2954
+ */
2955
+ getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
2956
+ return ReleaseApiFp(this.configuration).getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
2957
+ }
2958
+ }
2959
+ /**
2960
+ * StatsApi - axios parameter creator
2961
+ * @export
2962
+ */
2963
+ export const StatsApiAxiosParamCreator = function (configuration) {
2964
+ return {
2965
+ /**
2966
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
2967
+ * @summary Public Stats
2968
+ * @param {*} [options] Override http request option.
2969
+ * @throws {RequiredError}
2970
+ */
2971
+ getPublicStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2972
+ const localVarPath = `/stats/`;
2973
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2974
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2975
+ let baseOptions;
2976
+ if (configuration) {
2977
+ baseOptions = configuration.baseOptions;
2978
+ }
2979
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2980
+ const localVarHeaderParameter = {};
2981
+ const localVarQueryParameter = {};
2982
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2983
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2984
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2985
+ return {
2986
+ url: toPathString(localVarUrlObj),
2987
+ options: localVarRequestOptions,
2988
+ };
2989
+ }),
2990
+ };
2991
+ };
2992
+ /**
2993
+ * StatsApi - functional programming interface
2994
+ * @export
2995
+ */
2996
+ export const StatsApiFp = function (configuration) {
2997
+ const localVarAxiosParamCreator = StatsApiAxiosParamCreator(configuration);
2998
+ return {
2999
+ /**
3000
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3001
+ * @summary Public Stats
3002
+ * @param {*} [options] Override http request option.
3003
+ * @throws {RequiredError}
3004
+ */
3005
+ getPublicStats(options) {
3006
+ return __awaiter(this, void 0, void 0, function* () {
3007
+ var _a, _b, _c;
3008
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicStats(options);
3009
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3010
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StatsApi.getPublicStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3011
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3012
+ });
3013
+ },
3014
+ };
3015
+ };
3016
+ /**
3017
+ * StatsApi - factory interface
3018
+ * @export
3019
+ */
3020
+ export const StatsApiFactory = function (configuration, basePath, axios) {
3021
+ const localVarFp = StatsApiFp(configuration);
3022
+ return {
3023
+ /**
3024
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3025
+ * @summary Public Stats
3026
+ * @param {*} [options] Override http request option.
3027
+ * @throws {RequiredError}
3028
+ */
3029
+ getPublicStats(options) {
3030
+ return localVarFp.getPublicStats(options).then((request) => request(axios, basePath));
3031
+ },
3032
+ };
3033
+ };
3034
+ /**
3035
+ * StatsApi - object-oriented interface
3036
+ * @export
3037
+ * @class StatsApi
3038
+ * @extends {BaseAPI}
3039
+ */
3040
+ export class StatsApi extends BaseAPI {
3041
+ /**
3042
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3043
+ * @summary Public Stats
3044
+ * @param {*} [options] Override http request option.
3045
+ * @throws {RequiredError}
3046
+ * @memberof StatsApi
3047
+ */
3048
+ getPublicStats(options) {
3049
+ return StatsApiFp(this.configuration).getPublicStats(options).then((request) => request(this.axios, this.basePath));
3050
+ }
3051
+ }