@orangefox-recovery/foxclient 5.1.1 → 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.
package/dist/esm/api.js CHANGED
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Fox API
5
- * Warning: Please add a custom \'X-FoxAPI-App=MyAppName\' 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 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
5
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
6
  *
7
- * The version of the OpenAPI document: 5.1.1
7
+ * The version of the OpenAPI document: 5.2.1
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import globalAxios from 'axios';
24
24
  // Some imports not used depending on template conditions
25
25
  // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from './common';
26
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
29
  /**
@@ -52,17 +52,16 @@ export const ReleasesSort = {
52
52
  export const DeviceApiAxiosParamCreator = function (configuration) {
53
53
  return {
54
54
  /**
55
- * Gets device info using device ID.
55
+ * 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.
56
56
  * @summary Get Device
57
- * @param {string} deviceId
57
+ * @param { | null} [deviceId]
58
+ * @param { | null} [id] Filter by Device ID (deprecated)
59
+ * @param {string | null} [codename] Not recommended to use when you can
58
60
  * @param {*} [options] Override http request option.
59
61
  * @throws {RequiredError}
60
62
  */
61
- getDeviceDevicesDeviceIdGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
62
- // verify required parameter 'deviceId' is not null or undefined
63
- assertParamExists('getDeviceDevicesDeviceIdGet', 'deviceId', deviceId);
64
- const localVarPath = `/devices/{device_id}`
65
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
63
+ 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 = {}) {
64
+ const localVarPath = `/devices/get`;
66
65
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
67
66
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
68
67
  let baseOptions;
@@ -72,12 +71,19 @@ export const DeviceApiAxiosParamCreator = function (configuration) {
72
71
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
73
72
  const localVarHeaderParameter = {};
74
73
  const localVarQueryParameter = {};
75
- // authentication oauth2_password required
76
- // oauth required
77
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
78
- // authentication bearer_auth required
79
- // http bearer authentication required
80
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
74
+ if (deviceId !== undefined) {
75
+ for (const [key, value] of Object.entries(deviceId)) {
76
+ localVarQueryParameter[key] = value;
77
+ }
78
+ }
79
+ if (id !== undefined) {
80
+ for (const [key, value] of Object.entries(id)) {
81
+ localVarQueryParameter[key] = value;
82
+ }
83
+ }
84
+ if (codename !== undefined) {
85
+ localVarQueryParameter['codename'] = codename;
86
+ }
81
87
  setSearchParams(localVarUrlObj, localVarQueryParameter);
82
88
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
83
89
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -87,16 +93,18 @@ export const DeviceApiAxiosParamCreator = function (configuration) {
87
93
  };
88
94
  }),
89
95
  /**
90
- * 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.
91
- * @summary Get Device Extended
92
- * @param { | null} [deviceId]
93
- * @param { | null} [id] Filter by Device ID (deprecated)
94
- * @param {string | null} [codename] Not recommended to use when you can
96
+ * Gets device info using device ID.
97
+ * @summary Get Device Short
98
+ * @param {string} deviceId
95
99
  * @param {*} [options] Override http request option.
100
+ * @deprecated
96
101
  * @throws {RequiredError}
97
102
  */
98
- getDeviceExtendedDevicesGetGet: (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 = {}) {
99
- const localVarPath = `/devices/get`;
103
+ getDeviceDeprecated: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
104
+ // verify required parameter 'deviceId' is not null or undefined
105
+ assertParamExists('getDeviceDeprecated', 'deviceId', deviceId);
106
+ const localVarPath = `/devices/{device_id}`
107
+ .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
100
108
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
109
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
110
  let baseOptions;
@@ -106,25 +114,6 @@ export const DeviceApiAxiosParamCreator = function (configuration) {
106
114
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
107
115
  const localVarHeaderParameter = {};
108
116
  const localVarQueryParameter = {};
109
- // authentication oauth2_password required
110
- // oauth required
111
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
112
- // authentication bearer_auth required
113
- // http bearer authentication required
114
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
115
- if (deviceId !== undefined) {
116
- for (const [key, value] of Object.entries(deviceId)) {
117
- localVarQueryParameter[key] = value;
118
- }
119
- }
120
- if (id !== undefined) {
121
- for (const [key, value] of Object.entries(id)) {
122
- localVarQueryParameter[key] = value;
123
- }
124
- }
125
- if (codename !== undefined) {
126
- localVarQueryParameter['codename'] = codename;
127
- }
128
117
  setSearchParams(localVarUrlObj, localVarQueryParameter);
129
118
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
119
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -135,7 +124,7 @@ export const DeviceApiAxiosParamCreator = function (configuration) {
135
124
  }),
136
125
  /**
137
126
  * 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.
138
- * @summary Get Devices List
127
+ * @summary Get Devices
139
128
  * @param {Array<any>} [id] Filter by Device IDs
140
129
  * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
141
130
  * @param {Array<string>} [oemName] Filter by OEM names
@@ -150,7 +139,7 @@ export const DeviceApiAxiosParamCreator = function (configuration) {
150
139
  * @param {*} [options] Override http request option.
151
140
  * @throws {RequiredError}
152
141
  */
153
- getDevicesListDevicesGet: (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 = {}) {
142
+ 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 = {}) {
154
143
  const localVarPath = `/devices/`;
155
144
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
145
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -161,12 +150,6 @@ export const DeviceApiAxiosParamCreator = function (configuration) {
161
150
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
162
151
  const localVarHeaderParameter = {};
163
152
  const localVarQueryParameter = {};
164
- // authentication oauth2_password required
165
- // oauth required
166
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
167
- // authentication bearer_auth required
168
- // http bearer authentication required
169
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
170
153
  if (id) {
171
154
  localVarQueryParameter['id'] = id;
172
155
  }
@@ -210,11 +193,11 @@ export const DeviceApiAxiosParamCreator = function (configuration) {
210
193
  }),
211
194
  /**
212
195
  * Lists all OEM names
213
- * @summary Get Oems List
196
+ * @summary Get Oems
214
197
  * @param {*} [options] Override http request option.
215
198
  * @throws {RequiredError}
216
199
  */
217
- getOemsListOemsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
200
+ getOems: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
218
201
  const localVarPath = `/oems/`;
219
202
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
203
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -225,12 +208,6 @@ export const DeviceApiAxiosParamCreator = function (configuration) {
225
208
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
226
209
  const localVarHeaderParameter = {};
227
210
  const localVarQueryParameter = {};
228
- // authentication oauth2_password required
229
- // oauth required
230
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
231
- // authentication bearer_auth required
232
- // http bearer authentication required
233
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
234
211
  setSearchParams(localVarUrlObj, localVarQueryParameter);
235
212
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
213
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -249,42 +226,43 @@ export const DeviceApiFp = function (configuration) {
249
226
  const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration);
250
227
  return {
251
228
  /**
252
- * Gets device info using device ID.
229
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
253
230
  * @summary Get Device
254
- * @param {string} deviceId
231
+ * @param { | null} [deviceId]
232
+ * @param { | null} [id] Filter by Device ID (deprecated)
233
+ * @param {string | null} [codename] Not recommended to use when you can
255
234
  * @param {*} [options] Override http request option.
256
235
  * @throws {RequiredError}
257
236
  */
258
- getDeviceDevicesDeviceIdGet(deviceId, options) {
237
+ getDevice(deviceId, id, codename, options) {
259
238
  return __awaiter(this, void 0, void 0, function* () {
260
239
  var _a, _b, _c;
261
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDevicesDeviceIdGet(deviceId, options);
240
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevice(deviceId, id, codename, options);
262
241
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
263
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDeviceDevicesDeviceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
242
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
264
243
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
265
244
  });
266
245
  },
267
246
  /**
268
- * 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.
269
- * @summary Get Device Extended
270
- * @param { | null} [deviceId]
271
- * @param { | null} [id] Filter by Device ID (deprecated)
272
- * @param {string | null} [codename] Not recommended to use when you can
247
+ * Gets device info using device ID.
248
+ * @summary Get Device Short
249
+ * @param {string} deviceId
273
250
  * @param {*} [options] Override http request option.
251
+ * @deprecated
274
252
  * @throws {RequiredError}
275
253
  */
276
- getDeviceExtendedDevicesGetGet(deviceId, id, codename, options) {
254
+ getDeviceDeprecated(deviceId, options) {
277
255
  return __awaiter(this, void 0, void 0, function* () {
278
256
  var _a, _b, _c;
279
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceExtendedDevicesGetGet(deviceId, id, codename, options);
257
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDeprecated(deviceId, options);
280
258
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
281
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDeviceExtendedDevicesGetGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
259
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDeviceDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
282
260
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
283
261
  });
284
262
  },
285
263
  /**
286
264
  * 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.
287
- * @summary Get Devices List
265
+ * @summary Get Devices
288
266
  * @param {Array<any>} [id] Filter by Device IDs
289
267
  * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
290
268
  * @param {Array<string>} [oemName] Filter by OEM names
@@ -299,27 +277,27 @@ export const DeviceApiFp = function (configuration) {
299
277
  * @param {*} [options] Override http request option.
300
278
  * @throws {RequiredError}
301
279
  */
302
- getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
280
+ getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
303
281
  return __awaiter(this, void 0, void 0, function* () {
304
282
  var _a, _b, _c;
305
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
283
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
306
284
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
307
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevicesListDevicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
285
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
308
286
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
309
287
  });
310
288
  },
311
289
  /**
312
290
  * Lists all OEM names
313
- * @summary Get Oems List
291
+ * @summary Get Oems
314
292
  * @param {*} [options] Override http request option.
315
293
  * @throws {RequiredError}
316
294
  */
317
- getOemsListOemsGet(options) {
295
+ getOems(options) {
318
296
  return __awaiter(this, void 0, void 0, function* () {
319
297
  var _a, _b, _c;
320
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOemsListOemsGet(options);
298
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOems(options);
321
299
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
322
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getOemsListOemsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
300
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getOems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
323
301
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
324
302
  });
325
303
  },
@@ -333,30 +311,31 @@ export const DeviceApiFactory = function (configuration, basePath, axios) {
333
311
  const localVarFp = DeviceApiFp(configuration);
334
312
  return {
335
313
  /**
336
- * Gets device info using device ID.
314
+ * 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.
337
315
  * @summary Get Device
338
- * @param {string} deviceId
316
+ * @param { | null} [deviceId]
317
+ * @param { | null} [id] Filter by Device ID (deprecated)
318
+ * @param {string | null} [codename] Not recommended to use when you can
339
319
  * @param {*} [options] Override http request option.
340
320
  * @throws {RequiredError}
341
321
  */
342
- getDeviceDevicesDeviceIdGet(deviceId, options) {
343
- return localVarFp.getDeviceDevicesDeviceIdGet(deviceId, options).then((request) => request(axios, basePath));
322
+ getDevice(deviceId, id, codename, options) {
323
+ return localVarFp.getDevice(deviceId, id, codename, options).then((request) => request(axios, basePath));
344
324
  },
345
325
  /**
346
- * 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.
347
- * @summary Get Device Extended
348
- * @param { | null} [deviceId]
349
- * @param { | null} [id] Filter by Device ID (deprecated)
350
- * @param {string | null} [codename] Not recommended to use when you can
326
+ * Gets device info using device ID.
327
+ * @summary Get Device Short
328
+ * @param {string} deviceId
351
329
  * @param {*} [options] Override http request option.
330
+ * @deprecated
352
331
  * @throws {RequiredError}
353
332
  */
354
- getDeviceExtendedDevicesGetGet(deviceId, id, codename, options) {
355
- return localVarFp.getDeviceExtendedDevicesGetGet(deviceId, id, codename, options).then((request) => request(axios, basePath));
333
+ getDeviceDeprecated(deviceId, options) {
334
+ return localVarFp.getDeviceDeprecated(deviceId, options).then((request) => request(axios, basePath));
356
335
  },
357
336
  /**
358
337
  * 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.
359
- * @summary Get Devices List
338
+ * @summary Get Devices
360
339
  * @param {Array<any>} [id] Filter by Device IDs
361
340
  * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
362
341
  * @param {Array<string>} [oemName] Filter by OEM names
@@ -371,17 +350,17 @@ export const DeviceApiFactory = function (configuration, basePath, axios) {
371
350
  * @param {*} [options] Override http request option.
372
351
  * @throws {RequiredError}
373
352
  */
374
- getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
375
- return localVarFp.getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
353
+ getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
354
+ return localVarFp.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
376
355
  },
377
356
  /**
378
357
  * Lists all OEM names
379
- * @summary Get Oems List
358
+ * @summary Get Oems
380
359
  * @param {*} [options] Override http request option.
381
360
  * @throws {RequiredError}
382
361
  */
383
- getOemsListOemsGet(options) {
384
- return localVarFp.getOemsListOemsGet(options).then((request) => request(axios, basePath));
362
+ getOems(options) {
363
+ return localVarFp.getOems(options).then((request) => request(axios, basePath));
385
364
  },
386
365
  };
387
366
  };
@@ -393,32 +372,33 @@ export const DeviceApiFactory = function (configuration, basePath, axios) {
393
372
  */
394
373
  export class DeviceApi extends BaseAPI {
395
374
  /**
396
- * Gets device info using device ID.
375
+ * 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.
397
376
  * @summary Get Device
398
- * @param {string} deviceId
377
+ * @param { | null} [deviceId]
378
+ * @param { | null} [id] Filter by Device ID (deprecated)
379
+ * @param {string | null} [codename] Not recommended to use when you can
399
380
  * @param {*} [options] Override http request option.
400
381
  * @throws {RequiredError}
401
382
  * @memberof DeviceApi
402
383
  */
403
- getDeviceDevicesDeviceIdGet(deviceId, options) {
404
- return DeviceApiFp(this.configuration).getDeviceDevicesDeviceIdGet(deviceId, options).then((request) => request(this.axios, this.basePath));
384
+ getDevice(deviceId, id, codename, options) {
385
+ return DeviceApiFp(this.configuration).getDevice(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
405
386
  }
406
387
  /**
407
- * 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.
408
- * @summary Get Device Extended
409
- * @param { | null} [deviceId]
410
- * @param { | null} [id] Filter by Device ID (deprecated)
411
- * @param {string | null} [codename] Not recommended to use when you can
388
+ * Gets device info using device ID.
389
+ * @summary Get Device Short
390
+ * @param {string} deviceId
412
391
  * @param {*} [options] Override http request option.
392
+ * @deprecated
413
393
  * @throws {RequiredError}
414
394
  * @memberof DeviceApi
415
395
  */
416
- getDeviceExtendedDevicesGetGet(deviceId, id, codename, options) {
417
- return DeviceApiFp(this.configuration).getDeviceExtendedDevicesGetGet(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
396
+ getDeviceDeprecated(deviceId, options) {
397
+ return DeviceApiFp(this.configuration).getDeviceDeprecated(deviceId, options).then((request) => request(this.axios, this.basePath));
418
398
  }
419
399
  /**
420
400
  * 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.
421
- * @summary Get Devices List
401
+ * @summary Get Devices
422
402
  * @param {Array<any>} [id] Filter by Device IDs
423
403
  * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
424
404
  * @param {Array<string>} [oemName] Filter by OEM names
@@ -434,18 +414,18 @@ export class DeviceApi extends BaseAPI {
434
414
  * @throws {RequiredError}
435
415
  * @memberof DeviceApi
436
416
  */
437
- getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
438
- return DeviceApiFp(this.configuration).getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
417
+ getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
418
+ return DeviceApiFp(this.configuration).getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
439
419
  }
440
420
  /**
441
421
  * Lists all OEM names
442
- * @summary Get Oems List
422
+ * @summary Get Oems
443
423
  * @param {*} [options] Override http request option.
444
424
  * @throws {RequiredError}
445
425
  * @memberof DeviceApi
446
426
  */
447
- getOemsListOemsGet(options) {
448
- return DeviceApiFp(this.configuration).getOemsListOemsGet(options).then((request) => request(this.axios, this.basePath));
427
+ getOems(options) {
428
+ return DeviceApiFp(this.configuration).getOems(options).then((request) => request(this.axios, this.basePath));
449
429
  }
450
430
  }
451
431
  /**
@@ -456,7 +436,7 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
456
436
  return {
457
437
  /**
458
438
  * 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!
459
- * @summary Get Release Extended
439
+ * @summary Get Release
460
440
  * @param { | null} [releaseId] Release ID
461
441
  * @param { | null} [id] Release ID (deprecated)
462
442
  * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
@@ -464,7 +444,7 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
464
444
  * @param {*} [options] Override http request option.
465
445
  * @throws {RequiredError}
466
446
  */
467
- getReleaseExtendedReleasesGetGet: (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 = {}) {
447
+ 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 = {}) {
468
448
  const localVarPath = `/releases/get`;
469
449
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
470
450
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -475,12 +455,6 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
475
455
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
476
456
  const localVarHeaderParameter = {};
477
457
  const localVarQueryParameter = {};
478
- // authentication oauth2_password required
479
- // oauth required
480
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
481
- // authentication bearer_auth required
482
- // http bearer authentication required
483
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
484
458
  if (releaseId !== undefined) {
485
459
  for (const [key, value] of Object.entries(releaseId)) {
486
460
  localVarQueryParameter[key] = value;
@@ -507,14 +481,15 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
507
481
  }),
508
482
  /**
509
483
  * Gets release information using the release ID, nothing to discuss really.
510
- * @summary Get Release
484
+ * @summary Get Release Short
511
485
  * @param {any} releaseId
512
486
  * @param {*} [options] Override http request option.
487
+ * @deprecated
513
488
  * @throws {RequiredError}
514
489
  */
515
- getReleaseReleasesReleaseIdGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
490
+ getReleaseDeprecated: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
516
491
  // verify required parameter 'releaseId' is not null or undefined
517
- assertParamExists('getReleaseReleasesReleaseIdGet', 'releaseId', releaseId);
492
+ assertParamExists('getReleaseDeprecated', 'releaseId', releaseId);
518
493
  const localVarPath = `/releases/{release_id}`
519
494
  .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
520
495
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -526,12 +501,6 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
526
501
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
527
502
  const localVarHeaderParameter = {};
528
503
  const localVarQueryParameter = {};
529
- // authentication oauth2_password required
530
- // oauth required
531
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
532
- // authentication bearer_auth required
533
- // http bearer authentication required
534
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
535
504
  setSearchParams(localVarUrlObj, localVarQueryParameter);
536
505
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
537
506
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -562,7 +531,7 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
562
531
  * @param {*} [options] Override http request option.
563
532
  * @throws {RequiredError}
564
533
  */
565
- getReleasesReleasesGet: (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 = {}) {
534
+ 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 = {}) {
566
535
  const localVarPath = `/releases/`;
567
536
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
568
537
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -573,12 +542,6 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
573
542
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
574
543
  const localVarHeaderParameter = {};
575
544
  const localVarQueryParameter = {};
576
- // authentication oauth2_password required
577
- // oauth required
578
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
579
- // authentication bearer_auth required
580
- // http bearer authentication required
581
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
582
545
  if (id) {
583
546
  localVarQueryParameter['id'] = id;
584
547
  }
@@ -650,9 +613,9 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
650
613
  * @deprecated
651
614
  * @throws {RequiredError}
652
615
  */
653
- getUpdatesUpdatesLastKnownIdGet: (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 = {}) {
616
+ 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 = {}) {
654
617
  // verify required parameter 'lastKnownId' is not null or undefined
655
- assertParamExists('getUpdatesUpdatesLastKnownIdGet', 'lastKnownId', lastKnownId);
618
+ assertParamExists('getUpdatesDeprecated', 'lastKnownId', lastKnownId);
656
619
  const localVarPath = `/updates/{last_known_id}`
657
620
  .replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
658
621
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -664,12 +627,6 @@ export const ReleaseApiAxiosParamCreator = function (configuration) {
664
627
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
665
628
  const localVarHeaderParameter = {};
666
629
  const localVarQueryParameter = {};
667
- // authentication oauth2_password required
668
- // oauth required
669
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
670
- // authentication bearer_auth required
671
- // http bearer authentication required
672
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
673
630
  if (deviceId) {
674
631
  localVarQueryParameter['device_id'] = deviceId;
675
632
  }
@@ -704,7 +661,7 @@ export const ReleaseApiFp = function (configuration) {
704
661
  return {
705
662
  /**
706
663
  * 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!
707
- * @summary Get Release Extended
664
+ * @summary Get Release
708
665
  * @param { | null} [releaseId] Release ID
709
666
  * @param { | null} [id] Release ID (deprecated)
710
667
  * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
@@ -712,28 +669,29 @@ export const ReleaseApiFp = function (configuration) {
712
669
  * @param {*} [options] Override http request option.
713
670
  * @throws {RequiredError}
714
671
  */
715
- getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options) {
672
+ getRelease(releaseId, id, buildId, filename, options) {
716
673
  return __awaiter(this, void 0, void 0, function* () {
717
674
  var _a, _b, _c;
718
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options);
675
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRelease(releaseId, id, buildId, filename, options);
719
676
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
720
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseExtendedReleasesGetGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
677
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getRelease']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
721
678
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
722
679
  });
723
680
  },
724
681
  /**
725
682
  * Gets release information using the release ID, nothing to discuss really.
726
- * @summary Get Release
683
+ * @summary Get Release Short
727
684
  * @param {any} releaseId
728
685
  * @param {*} [options] Override http request option.
686
+ * @deprecated
729
687
  * @throws {RequiredError}
730
688
  */
731
- getReleaseReleasesReleaseIdGet(releaseId, options) {
689
+ getReleaseDeprecated(releaseId, options) {
732
690
  return __awaiter(this, void 0, void 0, function* () {
733
691
  var _a, _b, _c;
734
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseReleasesReleaseIdGet(releaseId, options);
692
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseDeprecated(releaseId, options);
735
693
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
736
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseReleasesReleaseIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
694
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
737
695
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
738
696
  });
739
697
  },
@@ -759,12 +717,12 @@ export const ReleaseApiFp = function (configuration) {
759
717
  * @param {*} [options] Override http request option.
760
718
  * @throws {RequiredError}
761
719
  */
762
- getReleasesReleasesGet(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
720
+ getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
763
721
  return __awaiter(this, void 0, void 0, function* () {
764
722
  var _a, _b, _c;
765
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleasesReleasesGet(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
723
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
766
724
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
767
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleasesReleasesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
725
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
768
726
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
769
727
  });
770
728
  },
@@ -781,12 +739,12 @@ export const ReleaseApiFp = function (configuration) {
781
739
  * @deprecated
782
740
  * @throws {RequiredError}
783
741
  */
784
- getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
742
+ getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
785
743
  return __awaiter(this, void 0, void 0, function* () {
786
744
  var _a, _b, _c;
787
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options);
745
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options);
788
746
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
789
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getUpdatesUpdatesLastKnownIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
747
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getUpdatesDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
790
748
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
791
749
  });
792
750
  },
@@ -801,7 +759,7 @@ export const ReleaseApiFactory = function (configuration, basePath, axios) {
801
759
  return {
802
760
  /**
803
761
  * 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!
804
- * @summary Get Release Extended
762
+ * @summary Get Release
805
763
  * @param { | null} [releaseId] Release ID
806
764
  * @param { | null} [id] Release ID (deprecated)
807
765
  * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
@@ -809,18 +767,19 @@ export const ReleaseApiFactory = function (configuration, basePath, axios) {
809
767
  * @param {*} [options] Override http request option.
810
768
  * @throws {RequiredError}
811
769
  */
812
- getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options) {
813
- return localVarFp.getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
770
+ getRelease(releaseId, id, buildId, filename, options) {
771
+ return localVarFp.getRelease(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
814
772
  },
815
773
  /**
816
774
  * Gets release information using the release ID, nothing to discuss really.
817
- * @summary Get Release
775
+ * @summary Get Release Short
818
776
  * @param {any} releaseId
819
777
  * @param {*} [options] Override http request option.
778
+ * @deprecated
820
779
  * @throws {RequiredError}
821
780
  */
822
- getReleaseReleasesReleaseIdGet(releaseId, options) {
823
- return localVarFp.getReleaseReleasesReleaseIdGet(releaseId, options).then((request) => request(axios, basePath));
781
+ getReleaseDeprecated(releaseId, options) {
782
+ return localVarFp.getReleaseDeprecated(releaseId, options).then((request) => request(axios, basePath));
824
783
  },
825
784
  /**
826
785
  * 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.
@@ -844,8 +803,8 @@ export const ReleaseApiFactory = function (configuration, basePath, axios) {
844
803
  * @param {*} [options] Override http request option.
845
804
  * @throws {RequiredError}
846
805
  */
847
- getReleasesReleasesGet(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
848
- return localVarFp.getReleasesReleasesGet(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(axios, basePath));
806
+ getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
807
+ 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));
849
808
  },
850
809
  /**
851
810
  * 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!
@@ -860,8 +819,8 @@ export const ReleaseApiFactory = function (configuration, basePath, axios) {
860
819
  * @deprecated
861
820
  * @throws {RequiredError}
862
821
  */
863
- getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
864
- return localVarFp.getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
822
+ getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
823
+ return localVarFp.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
865
824
  },
866
825
  };
867
826
  };
@@ -874,7 +833,7 @@ export const ReleaseApiFactory = function (configuration, basePath, axios) {
874
833
  export class ReleaseApi extends BaseAPI {
875
834
  /**
876
835
  * 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!
877
- * @summary Get Release Extended
836
+ * @summary Get Release
878
837
  * @param { | null} [releaseId] Release ID
879
838
  * @param { | null} [id] Release ID (deprecated)
880
839
  * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
@@ -883,19 +842,20 @@ export class ReleaseApi extends BaseAPI {
883
842
  * @throws {RequiredError}
884
843
  * @memberof ReleaseApi
885
844
  */
886
- getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options) {
887
- return ReleaseApiFp(this.configuration).getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
845
+ getRelease(releaseId, id, buildId, filename, options) {
846
+ return ReleaseApiFp(this.configuration).getRelease(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
888
847
  }
889
848
  /**
890
849
  * Gets release information using the release ID, nothing to discuss really.
891
- * @summary Get Release
850
+ * @summary Get Release Short
892
851
  * @param {any} releaseId
893
852
  * @param {*} [options] Override http request option.
853
+ * @deprecated
894
854
  * @throws {RequiredError}
895
855
  * @memberof ReleaseApi
896
856
  */
897
- getReleaseReleasesReleaseIdGet(releaseId, options) {
898
- return ReleaseApiFp(this.configuration).getReleaseReleasesReleaseIdGet(releaseId, options).then((request) => request(this.axios, this.basePath));
857
+ getReleaseDeprecated(releaseId, options) {
858
+ return ReleaseApiFp(this.configuration).getReleaseDeprecated(releaseId, options).then((request) => request(this.axios, this.basePath));
899
859
  }
900
860
  /**
901
861
  * 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.
@@ -920,8 +880,8 @@ export class ReleaseApi extends BaseAPI {
920
880
  * @throws {RequiredError}
921
881
  * @memberof ReleaseApi
922
882
  */
923
- getReleasesReleasesGet(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
924
- return ReleaseApiFp(this.configuration).getReleasesReleasesGet(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(this.axios, this.basePath));
883
+ getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
884
+ return ReleaseApiFp(this.configuration).getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(this.axios, this.basePath));
925
885
  }
926
886
  /**
927
887
  * 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!
@@ -937,8 +897,8 @@ export class ReleaseApi extends BaseAPI {
937
897
  * @throws {RequiredError}
938
898
  * @memberof ReleaseApi
939
899
  */
940
- getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
941
- return ReleaseApiFp(this.configuration).getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
900
+ getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
901
+ return ReleaseApiFp(this.configuration).getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
942
902
  }
943
903
  }
944
904
  /**
@@ -953,7 +913,7 @@ export const StatsApiAxiosParamCreator = function (configuration) {
953
913
  * @param {*} [options] Override http request option.
954
914
  * @throws {RequiredError}
955
915
  */
956
- publicStatsStatsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
916
+ getPublicStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
957
917
  const localVarPath = `/stats/`;
958
918
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
959
919
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -964,12 +924,6 @@ export const StatsApiAxiosParamCreator = function (configuration) {
964
924
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
965
925
  const localVarHeaderParameter = {};
966
926
  const localVarQueryParameter = {};
967
- // authentication oauth2_password required
968
- // oauth required
969
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
970
- // authentication bearer_auth required
971
- // http bearer authentication required
972
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
973
927
  setSearchParams(localVarUrlObj, localVarQueryParameter);
974
928
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
975
929
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -993,12 +947,12 @@ export const StatsApiFp = function (configuration) {
993
947
  * @param {*} [options] Override http request option.
994
948
  * @throws {RequiredError}
995
949
  */
996
- publicStatsStatsGet(options) {
950
+ getPublicStats(options) {
997
951
  return __awaiter(this, void 0, void 0, function* () {
998
952
  var _a, _b, _c;
999
- const localVarAxiosArgs = yield localVarAxiosParamCreator.publicStatsStatsGet(options);
953
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicStats(options);
1000
954
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1001
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StatsApi.publicStatsStatsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
955
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StatsApi.getPublicStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1002
956
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1003
957
  });
1004
958
  },
@@ -1017,8 +971,8 @@ export const StatsApiFactory = function (configuration, basePath, axios) {
1017
971
  * @param {*} [options] Override http request option.
1018
972
  * @throws {RequiredError}
1019
973
  */
1020
- publicStatsStatsGet(options) {
1021
- return localVarFp.publicStatsStatsGet(options).then((request) => request(axios, basePath));
974
+ getPublicStats(options) {
975
+ return localVarFp.getPublicStats(options).then((request) => request(axios, basePath));
1022
976
  },
1023
977
  };
1024
978
  };
@@ -1036,7 +990,7 @@ export class StatsApi extends BaseAPI {
1036
990
  * @throws {RequiredError}
1037
991
  * @memberof StatsApi
1038
992
  */
1039
- publicStatsStatsGet(options) {
1040
- return StatsApiFp(this.configuration).publicStatsStatsGet(options).then((request) => request(this.axios, this.basePath));
993
+ getPublicStats(options) {
994
+ return StatsApiFp(this.configuration).getPublicStats(options).then((request) => request(this.axios, this.basePath));
1041
995
  }
1042
996
  }