@orangefox-recovery/foxclient 1.0.0 → 5.2.0
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/README.md +8 -8
- package/api.ts +127 -189
- package/base.ts +3 -3
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +87 -77
- package/dist/api.js +109 -155
- package/dist/base.d.ts +2 -2
- package/dist/base.js +3 -3
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +87 -77
- package/dist/esm/api.js +110 -156
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +3 -3
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/DeviceApi.md +36 -36
- package/docs/ReleaseApi.md +13 -13
- package/docs/StatsApi.md +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
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
|
|
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 20 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.
|
|
7
|
+
* The version of the OpenAPI document: 5.2.0
|
|
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,
|
|
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
|
-
*
|
|
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 {
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
assertParamExists('getDeviceDevicesDeviceIdGet', 'deviceId', deviceId);
|
|
64
|
-
const localVarPath = `/devices/{device_id}`
|
|
65
|
-
.replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
|
|
63
|
+
getDeviceDevicesGetGet: (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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
*
|
|
91
|
-
* @summary Get Device
|
|
92
|
-
* @param {
|
|
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
|
-
|
|
99
|
-
|
|
103
|
+
getDeviceShortDevicesDeviceIdGet: (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('getDeviceShortDevicesDeviceIdGet', '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
|
|
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
|
-
|
|
142
|
+
getDevicesDevicesGet: (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
|
}
|
|
@@ -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
|
-
*
|
|
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 {
|
|
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
|
-
|
|
237
|
+
getDeviceDevicesGetGet(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.
|
|
240
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDevicesGetGet(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.
|
|
242
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDeviceDevicesGetGet']) === 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
|
-
*
|
|
269
|
-
* @summary Get Device
|
|
270
|
-
* @param {
|
|
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
|
-
|
|
254
|
+
getDeviceShortDevicesDeviceIdGet(deviceId, options) {
|
|
277
255
|
return __awaiter(this, void 0, void 0, function* () {
|
|
278
256
|
var _a, _b, _c;
|
|
279
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceShortDevicesDeviceIdGet(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.
|
|
259
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDeviceShortDevicesDeviceIdGet']) === 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
|
|
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,12 +277,12 @@ export const DeviceApiFp = function (configuration) {
|
|
|
299
277
|
* @param {*} [options] Override http request option.
|
|
300
278
|
* @throws {RequiredError}
|
|
301
279
|
*/
|
|
302
|
-
|
|
280
|
+
getDevicesDevicesGet(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.
|
|
283
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevicesDevicesGet(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.
|
|
285
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevicesDevicesGet']) === 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
|
},
|
|
@@ -333,30 +311,31 @@ export const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
|
333
311
|
const localVarFp = DeviceApiFp(configuration);
|
|
334
312
|
return {
|
|
335
313
|
/**
|
|
336
|
-
*
|
|
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 {
|
|
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
|
-
|
|
343
|
-
return localVarFp.
|
|
322
|
+
getDeviceDevicesGetGet(deviceId, id, codename, options) {
|
|
323
|
+
return localVarFp.getDeviceDevicesGetGet(deviceId, id, codename, options).then((request) => request(axios, basePath));
|
|
344
324
|
},
|
|
345
325
|
/**
|
|
346
|
-
*
|
|
347
|
-
* @summary Get Device
|
|
348
|
-
* @param {
|
|
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
|
-
|
|
355
|
-
return localVarFp.
|
|
333
|
+
getDeviceShortDevicesDeviceIdGet(deviceId, options) {
|
|
334
|
+
return localVarFp.getDeviceShortDevicesDeviceIdGet(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
|
|
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,8 +350,8 @@ export const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
|
371
350
|
* @param {*} [options] Override http request option.
|
|
372
351
|
* @throws {RequiredError}
|
|
373
352
|
*/
|
|
374
|
-
|
|
375
|
-
return localVarFp.
|
|
353
|
+
getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
354
|
+
return localVarFp.getDevicesDevicesGet(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
|
|
@@ -393,32 +372,33 @@ export const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
|
393
372
|
*/
|
|
394
373
|
export class DeviceApi extends BaseAPI {
|
|
395
374
|
/**
|
|
396
|
-
*
|
|
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 {
|
|
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
|
-
|
|
404
|
-
return DeviceApiFp(this.configuration).
|
|
384
|
+
getDeviceDevicesGetGet(deviceId, id, codename, options) {
|
|
385
|
+
return DeviceApiFp(this.configuration).getDeviceDevicesGetGet(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
|
|
405
386
|
}
|
|
406
387
|
/**
|
|
407
|
-
*
|
|
408
|
-
* @summary Get Device
|
|
409
|
-
* @param {
|
|
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
|
-
|
|
417
|
-
return DeviceApiFp(this.configuration).
|
|
396
|
+
getDeviceShortDevicesDeviceIdGet(deviceId, options) {
|
|
397
|
+
return DeviceApiFp(this.configuration).getDeviceShortDevicesDeviceIdGet(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
|
|
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,8 +414,8 @@ export class DeviceApi extends BaseAPI {
|
|
|
434
414
|
* @throws {RequiredError}
|
|
435
415
|
* @memberof DeviceApi
|
|
436
416
|
*/
|
|
437
|
-
|
|
438
|
-
return DeviceApiFp(this.configuration).
|
|
417
|
+
getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
418
|
+
return DeviceApiFp(this.configuration).getDevicesDevicesGet(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
|
|
@@ -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
|
|
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, `ro.build.fox_id` 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
|
-
|
|
447
|
+
getReleaseReleasesGetGet: (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
|
-
|
|
490
|
+
getReleaseShortReleasesReleaseIdGet: (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('
|
|
492
|
+
assertParamExists('getReleaseShortReleasesReleaseIdGet', '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);
|
|
@@ -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
|
}
|
|
@@ -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
|
|
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, `ro.build.fox_id` 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
|
-
|
|
672
|
+
getReleaseReleasesGetGet(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.
|
|
675
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseReleasesGetGet(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.
|
|
677
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseReleasesGetGet']) === 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
|
-
|
|
689
|
+
getReleaseShortReleasesReleaseIdGet(releaseId, options) {
|
|
732
690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
733
691
|
var _a, _b, _c;
|
|
734
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
692
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseShortReleasesReleaseIdGet(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.
|
|
694
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseShortReleasesReleaseIdGet']) === 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
|
},
|
|
@@ -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
|
|
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, `ro.build.fox_id` 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
|
-
|
|
813
|
-
return localVarFp.
|
|
770
|
+
getReleaseReleasesGetGet(releaseId, id, buildId, filename, options) {
|
|
771
|
+
return localVarFp.getReleaseReleasesGetGet(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
|
-
|
|
823
|
-
return localVarFp.
|
|
781
|
+
getReleaseShortReleasesReleaseIdGet(releaseId, options) {
|
|
782
|
+
return localVarFp.getReleaseShortReleasesReleaseIdGet(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.
|
|
@@ -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
|
|
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, `ro.build.fox_id` prop
|
|
@@ -883,19 +842,20 @@ export class ReleaseApi extends BaseAPI {
|
|
|
883
842
|
* @throws {RequiredError}
|
|
884
843
|
* @memberof ReleaseApi
|
|
885
844
|
*/
|
|
886
|
-
|
|
887
|
-
return ReleaseApiFp(this.configuration).
|
|
845
|
+
getReleaseReleasesGetGet(releaseId, id, buildId, filename, options) {
|
|
846
|
+
return ReleaseApiFp(this.configuration).getReleaseReleasesGetGet(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
|
-
|
|
898
|
-
return ReleaseApiFp(this.configuration).
|
|
857
|
+
getReleaseShortReleasesReleaseIdGet(releaseId, options) {
|
|
858
|
+
return ReleaseApiFp(this.configuration).getReleaseShortReleasesReleaseIdGet(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.
|
|
@@ -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);
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Fox API
|
|
3
|
-
* Warning: Please add a custom
|
|
3
|
+
* 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 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Fox API
|
|
5
|
-
* Warning: Please add a custom
|
|
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 20 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.
|
|
7
|
+
* The version of the OpenAPI document: 5.2.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
|
-
export const BASE_PATH = "
|
|
15
|
+
export const BASE_PATH = "https://api.orangefox.download".replace(/\/+$/, "");
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|