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