@orangefox-recovery/foxclient 1.0.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.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +34 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +104 -0
  5. package/api.ts +1904 -0
  6. package/base.ts +86 -0
  7. package/common.ts +150 -0
  8. package/configuration.ts +115 -0
  9. package/dist/api.d.ts +1294 -0
  10. package/dist/api.js +1057 -0
  11. package/dist/base.d.ts +66 -0
  12. package/dist/base.js +65 -0
  13. package/dist/common.d.ts +65 -0
  14. package/dist/common.js +161 -0
  15. package/dist/configuration.d.ts +91 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +1294 -0
  18. package/dist/esm/api.js +1042 -0
  19. package/dist/esm/base.d.ts +66 -0
  20. package/dist/esm/base.js +60 -0
  21. package/dist/esm/common.d.ts +65 -0
  22. package/dist/esm/common.js +149 -0
  23. package/dist/esm/configuration.d.ts +91 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/DeviceApi.md +253 -0
  30. package/docs/DeviceResponse.md +44 -0
  31. package/docs/GlobalStatsAggregationModel.md +26 -0
  32. package/docs/HTTPValidationError.md +20 -0
  33. package/docs/ListResponseReleaseResponse.md +22 -0
  34. package/docs/ListResponseShortDeviceResponse.md +22 -0
  35. package/docs/ListResponseShortReleaseResponse.md +22 -0
  36. package/docs/ListResponseStr.md +22 -0
  37. package/docs/MaintainerShortModel.md +26 -0
  38. package/docs/RecoveryImgResponse.md +22 -0
  39. package/docs/ReleaseApi.md +292 -0
  40. package/docs/ReleaseGroupsResponse.md +20 -0
  41. package/docs/ReleaseResponse.md +56 -0
  42. package/docs/ReleaseType.md +12 -0
  43. package/docs/ReleasesSort.md +10 -0
  44. package/docs/ResponseGetReleasesReleasesGet.md +22 -0
  45. package/docs/ShortDeviceResponse.md +38 -0
  46. package/docs/ShortReleaseResponse.md +44 -0
  47. package/docs/StatsApi.md +53 -0
  48. package/docs/ValidationError.md +24 -0
  49. package/docs/ValidationErrorLocInner.md +18 -0
  50. package/git_push.sh +57 -0
  51. package/index.ts +18 -0
  52. package/package.json +41 -0
  53. package/tsconfig.esm.json +7 -0
  54. package/tsconfig.json +18 -0
package/api.ts ADDED
@@ -0,0 +1,1904 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
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.
6
+ *
7
+ * The version of the OpenAPI document: 5.1.1
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from './configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
+ import type { RequestArgs } from './base';
23
+ // @ts-ignore
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
+
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface DeviceResponse
30
+ */
31
+ export interface DeviceResponse {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof DeviceResponse
36
+ * @deprecated
37
+ */
38
+ '_id': string;
39
+ /**
40
+ * Device codename, legacy
41
+ * @type {string}
42
+ * @memberof DeviceResponse
43
+ * @deprecated
44
+ */
45
+ 'codename': string;
46
+ /**
47
+ * Model name of device, does not include the OEM part, legacy
48
+ * @type {string}
49
+ * @memberof DeviceResponse
50
+ * @deprecated
51
+ */
52
+ 'model_name': string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof DeviceResponse
57
+ */
58
+ 'oem_name': string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof DeviceResponse
63
+ */
64
+ 'id': string;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof DeviceResponse
69
+ */
70
+ 'codenames': Array<string>;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof DeviceResponse
75
+ */
76
+ 'model_names': Array<string>;
77
+ /**
78
+ *
79
+ * @type {boolean}
80
+ * @memberof DeviceResponse
81
+ */
82
+ 'supported': boolean;
83
+ /**
84
+ *
85
+ * @type {MaintainerShortModel}
86
+ * @memberof DeviceResponse
87
+ */
88
+ 'maintainer': MaintainerShortModel;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof DeviceResponse
93
+ */
94
+ 'notes'?: string | null;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof DeviceResponse
99
+ */
100
+ 'device_tree'?: string | null;
101
+ /**
102
+ * Full name of device / devices, legacy
103
+ * @type {string}
104
+ * @memberof DeviceResponse
105
+ */
106
+ 'full_name': string;
107
+ /**
108
+ * URL of the device on the official website
109
+ * @type {string}
110
+ * @memberof DeviceResponse
111
+ */
112
+ 'url': string;
113
+ }
114
+ /**
115
+ *
116
+ * @export
117
+ * @interface GlobalStatsAggregationModel
118
+ */
119
+ export interface GlobalStatsAggregationModel {
120
+ /**
121
+ *
122
+ * @type {number}
123
+ * @memberof GlobalStatsAggregationModel
124
+ */
125
+ 'count': number;
126
+ /**
127
+ *
128
+ * @type {number}
129
+ * @memberof GlobalStatsAggregationModel
130
+ */
131
+ 'deviceCount': number;
132
+ /**
133
+ *
134
+ * @type {number}
135
+ * @memberof GlobalStatsAggregationModel
136
+ */
137
+ 'releaseCount': number;
138
+ /**
139
+ *
140
+ * @type {{ [key: string]: number; }}
141
+ * @memberof GlobalStatsAggregationModel
142
+ */
143
+ 'days': { [key: string]: number; };
144
+ }
145
+ /**
146
+ *
147
+ * @export
148
+ * @interface HTTPValidationError
149
+ */
150
+ export interface HTTPValidationError {
151
+ /**
152
+ *
153
+ * @type {Array<ValidationError>}
154
+ * @memberof HTTPValidationError
155
+ */
156
+ 'detail'?: Array<ValidationError>;
157
+ }
158
+ /**
159
+ *
160
+ * @export
161
+ * @interface ListResponseReleaseResponse
162
+ */
163
+ export interface ListResponseReleaseResponse {
164
+ /**
165
+ *
166
+ * @type {Array<ReleaseResponse>}
167
+ * @memberof ListResponseReleaseResponse
168
+ */
169
+ 'data': Array<ReleaseResponse>;
170
+ /**
171
+ *
172
+ * @type {number}
173
+ * @memberof ListResponseReleaseResponse
174
+ */
175
+ 'count': number;
176
+ }
177
+ /**
178
+ *
179
+ * @export
180
+ * @interface ListResponseShortDeviceResponse
181
+ */
182
+ export interface ListResponseShortDeviceResponse {
183
+ /**
184
+ *
185
+ * @type {Array<ShortDeviceResponse>}
186
+ * @memberof ListResponseShortDeviceResponse
187
+ */
188
+ 'data': Array<ShortDeviceResponse>;
189
+ /**
190
+ *
191
+ * @type {number}
192
+ * @memberof ListResponseShortDeviceResponse
193
+ */
194
+ 'count': number;
195
+ }
196
+ /**
197
+ *
198
+ * @export
199
+ * @interface ListResponseShortReleaseResponse
200
+ */
201
+ export interface ListResponseShortReleaseResponse {
202
+ /**
203
+ *
204
+ * @type {Array<ShortReleaseResponse>}
205
+ * @memberof ListResponseShortReleaseResponse
206
+ */
207
+ 'data': Array<ShortReleaseResponse>;
208
+ /**
209
+ *
210
+ * @type {number}
211
+ * @memberof ListResponseShortReleaseResponse
212
+ */
213
+ 'count': number;
214
+ }
215
+ /**
216
+ *
217
+ * @export
218
+ * @interface ListResponseStr
219
+ */
220
+ export interface ListResponseStr {
221
+ /**
222
+ *
223
+ * @type {Array<string>}
224
+ * @memberof ListResponseStr
225
+ */
226
+ 'data': Array<string>;
227
+ /**
228
+ *
229
+ * @type {number}
230
+ * @memberof ListResponseStr
231
+ */
232
+ 'count': number;
233
+ }
234
+ /**
235
+ *
236
+ * @export
237
+ * @interface MaintainerShortModel
238
+ */
239
+ export interface MaintainerShortModel {
240
+ /**
241
+ *
242
+ * @type {string}
243
+ * @memberof MaintainerShortModel
244
+ * @deprecated
245
+ */
246
+ '_id': string;
247
+ /**
248
+ *
249
+ * @type {string}
250
+ * @memberof MaintainerShortModel
251
+ */
252
+ 'id': string;
253
+ /**
254
+ *
255
+ * @type {string}
256
+ * @memberof MaintainerShortModel
257
+ */
258
+ 'name': string;
259
+ /**
260
+ *
261
+ * @type {string}
262
+ * @memberof MaintainerShortModel
263
+ */
264
+ 'username': string;
265
+ }
266
+ /**
267
+ *
268
+ * @export
269
+ * @interface RecoveryImgResponse
270
+ */
271
+ export interface RecoveryImgResponse {
272
+ /**
273
+ *
274
+ * @type {number}
275
+ * @memberof RecoveryImgResponse
276
+ */
277
+ 'size': number;
278
+ /**
279
+ *
280
+ * @type {string}
281
+ * @memberof RecoveryImgResponse
282
+ */
283
+ 'md5': string;
284
+ }
285
+ /**
286
+ *
287
+ * @export
288
+ * @interface ReleaseGroupsResponse
289
+ */
290
+ export interface ReleaseGroupsResponse {
291
+ /**
292
+ *
293
+ * @type {{ [key: string]: Array<ReleaseResponse>; }}
294
+ * @memberof ReleaseGroupsResponse
295
+ */
296
+ 'data': { [key: string]: Array<ReleaseResponse>; };
297
+ }
298
+ /**
299
+ *
300
+ * @export
301
+ * @interface ReleaseResponse
302
+ */
303
+ export interface ReleaseResponse {
304
+ /**
305
+ *
306
+ * @type {string}
307
+ * @memberof ReleaseResponse
308
+ * @deprecated
309
+ */
310
+ '_id': string;
311
+ /**
312
+ *
313
+ * @type {number}
314
+ * @memberof ReleaseResponse
315
+ * @deprecated
316
+ */
317
+ 'size': number;
318
+ /**
319
+ * Release ID, that\'s how we indentify the release in the infrastructure
320
+ * @type {string}
321
+ * @memberof ReleaseResponse
322
+ */
323
+ 'id': string;
324
+ /**
325
+ *
326
+ * @type {string}
327
+ * @memberof ReleaseResponse
328
+ */
329
+ 'build_id'?: string | null;
330
+ /**
331
+ *
332
+ * @type {string}
333
+ * @memberof ReleaseResponse
334
+ */
335
+ 'filename': string;
336
+ /**
337
+ *
338
+ * @type {string}
339
+ * @memberof ReleaseResponse
340
+ */
341
+ 'variant': string;
342
+ /**
343
+ *
344
+ * @type {string}
345
+ * @memberof ReleaseResponse
346
+ */
347
+ 'device_id': string;
348
+ /**
349
+ *
350
+ * @type {string}
351
+ * @memberof ReleaseResponse
352
+ */
353
+ 'date': string;
354
+ /**
355
+ *
356
+ * @type {string}
357
+ * @memberof ReleaseResponse
358
+ */
359
+ 'md5': string;
360
+ /**
361
+ *
362
+ * @type {string}
363
+ * @memberof ReleaseResponse
364
+ */
365
+ 'version': string;
366
+ /**
367
+ *
368
+ * @type {ReleaseType}
369
+ * @memberof ReleaseResponse
370
+ */
371
+ 'type': ReleaseType;
372
+ /**
373
+ *
374
+ * @type {string}
375
+ * @memberof ReleaseResponse
376
+ */
377
+ 'maintainer_id'?: string | null;
378
+ /**
379
+ *
380
+ * @type {boolean}
381
+ * @memberof ReleaseResponse
382
+ */
383
+ 'archived': boolean;
384
+ /**
385
+ *
386
+ * @type {RecoveryImgResponse}
387
+ * @memberof ReleaseResponse
388
+ */
389
+ 'recovery_img': RecoveryImgResponse;
390
+ /**
391
+ *
392
+ * @type {Array<string>}
393
+ * @memberof ReleaseResponse
394
+ */
395
+ 'changelog': Array<string>;
396
+ /**
397
+ *
398
+ * @type {Array<string>}
399
+ * @memberof ReleaseResponse
400
+ */
401
+ 'bugs': Array<string> | null;
402
+ /**
403
+ *
404
+ * @type {string}
405
+ * @memberof ReleaseResponse
406
+ */
407
+ 'notes': string | null;
408
+ /**
409
+ * URL of the release on the official website
410
+ * @type {string}
411
+ * @memberof ReleaseResponse
412
+ */
413
+ 'url': string;
414
+ /**
415
+ * Mirrors list (deprecated)
416
+ * @type {{ [key: string]: string; }}
417
+ * @memberof ReleaseResponse
418
+ */
419
+ 'mirrors': { [key: string]: string; };
420
+ }
421
+
422
+
423
+ /**
424
+ *
425
+ * @export
426
+ * @enum {string}
427
+ */
428
+
429
+ export const ReleaseType = {
430
+ Stable: 'stable',
431
+ Beta: 'beta',
432
+ Alpha: 'alpha'
433
+ } as const;
434
+
435
+ export type ReleaseType = typeof ReleaseType[keyof typeof ReleaseType];
436
+
437
+
438
+ /**
439
+ *
440
+ * @export
441
+ * @enum {string}
442
+ */
443
+
444
+ export const ReleasesSort = {
445
+ DateAsc: 'date_asc',
446
+ DateDesc: 'date_desc'
447
+ } as const;
448
+
449
+ export type ReleasesSort = typeof ReleasesSort[keyof typeof ReleasesSort];
450
+
451
+
452
+ /**
453
+ *
454
+ * @export
455
+ * @interface ResponseGetReleasesReleasesGet
456
+ */
457
+ export interface ResponseGetReleasesReleasesGet {
458
+ /**
459
+ *
460
+ * @type {{ [key: string]: Array<ReleaseResponse>; }}
461
+ * @memberof ResponseGetReleasesReleasesGet
462
+ */
463
+ 'data': { [key: string]: Array<ReleaseResponse>; };
464
+ /**
465
+ *
466
+ * @type {number}
467
+ * @memberof ResponseGetReleasesReleasesGet
468
+ */
469
+ 'count': number;
470
+ }
471
+ /**
472
+ *
473
+ * @export
474
+ * @interface ShortDeviceResponse
475
+ */
476
+ export interface ShortDeviceResponse {
477
+ /**
478
+ *
479
+ * @type {string}
480
+ * @memberof ShortDeviceResponse
481
+ * @deprecated
482
+ */
483
+ '_id': string;
484
+ /**
485
+ * Device codename, legacy
486
+ * @type {string}
487
+ * @memberof ShortDeviceResponse
488
+ * @deprecated
489
+ */
490
+ 'codename': string;
491
+ /**
492
+ * Model name of device, does not include the OEM part, legacy
493
+ * @type {string}
494
+ * @memberof ShortDeviceResponse
495
+ * @deprecated
496
+ */
497
+ 'model_name': string;
498
+ /**
499
+ *
500
+ * @type {string}
501
+ * @memberof ShortDeviceResponse
502
+ */
503
+ 'oem_name': string;
504
+ /**
505
+ *
506
+ * @type {string}
507
+ * @memberof ShortDeviceResponse
508
+ */
509
+ 'id': string;
510
+ /**
511
+ *
512
+ * @type {Array<string>}
513
+ * @memberof ShortDeviceResponse
514
+ */
515
+ 'codenames': Array<string>;
516
+ /**
517
+ *
518
+ * @type {Array<string>}
519
+ * @memberof ShortDeviceResponse
520
+ */
521
+ 'model_names': Array<string>;
522
+ /**
523
+ *
524
+ * @type {boolean}
525
+ * @memberof ShortDeviceResponse
526
+ */
527
+ 'supported': boolean;
528
+ /**
529
+ * Full name of device / devices, legacy
530
+ * @type {string}
531
+ * @memberof ShortDeviceResponse
532
+ */
533
+ 'full_name': string;
534
+ /**
535
+ * URL of the device on the official website
536
+ * @type {string}
537
+ * @memberof ShortDeviceResponse
538
+ */
539
+ 'url': string;
540
+ }
541
+ /**
542
+ *
543
+ * @export
544
+ * @interface ShortReleaseResponse
545
+ */
546
+ export interface ShortReleaseResponse {
547
+ /**
548
+ *
549
+ * @type {string}
550
+ * @memberof ShortReleaseResponse
551
+ * @deprecated
552
+ */
553
+ '_id': string;
554
+ /**
555
+ *
556
+ * @type {number}
557
+ * @memberof ShortReleaseResponse
558
+ * @deprecated
559
+ */
560
+ 'size': number;
561
+ /**
562
+ * Release ID, that\'s how we indentify the release in the infrastructure
563
+ * @type {string}
564
+ * @memberof ShortReleaseResponse
565
+ */
566
+ 'id': string;
567
+ /**
568
+ *
569
+ * @type {string}
570
+ * @memberof ShortReleaseResponse
571
+ */
572
+ 'build_id'?: string | null;
573
+ /**
574
+ *
575
+ * @type {string}
576
+ * @memberof ShortReleaseResponse
577
+ */
578
+ 'filename': string;
579
+ /**
580
+ *
581
+ * @type {string}
582
+ * @memberof ShortReleaseResponse
583
+ */
584
+ 'variant': string;
585
+ /**
586
+ *
587
+ * @type {string}
588
+ * @memberof ShortReleaseResponse
589
+ */
590
+ 'device_id': string;
591
+ /**
592
+ *
593
+ * @type {string}
594
+ * @memberof ShortReleaseResponse
595
+ */
596
+ 'date': string;
597
+ /**
598
+ *
599
+ * @type {string}
600
+ * @memberof ShortReleaseResponse
601
+ */
602
+ 'md5': string;
603
+ /**
604
+ *
605
+ * @type {string}
606
+ * @memberof ShortReleaseResponse
607
+ */
608
+ 'version': string;
609
+ /**
610
+ *
611
+ * @type {ReleaseType}
612
+ * @memberof ShortReleaseResponse
613
+ */
614
+ 'type': ReleaseType;
615
+ /**
616
+ *
617
+ * @type {string}
618
+ * @memberof ShortReleaseResponse
619
+ */
620
+ 'maintainer_id'?: string | null;
621
+ /**
622
+ *
623
+ * @type {boolean}
624
+ * @memberof ShortReleaseResponse
625
+ */
626
+ 'archived': boolean;
627
+ }
628
+
629
+
630
+ /**
631
+ *
632
+ * @export
633
+ * @interface ValidationError
634
+ */
635
+ export interface ValidationError {
636
+ /**
637
+ *
638
+ * @type {Array<ValidationErrorLocInner>}
639
+ * @memberof ValidationError
640
+ */
641
+ 'loc': Array<ValidationErrorLocInner>;
642
+ /**
643
+ *
644
+ * @type {string}
645
+ * @memberof ValidationError
646
+ */
647
+ 'msg': string;
648
+ /**
649
+ *
650
+ * @type {string}
651
+ * @memberof ValidationError
652
+ */
653
+ 'type': string;
654
+ }
655
+ /**
656
+ *
657
+ * @export
658
+ * @interface ValidationErrorLocInner
659
+ */
660
+ export interface ValidationErrorLocInner {
661
+ }
662
+
663
+ /**
664
+ * DeviceApi - axios parameter creator
665
+ * @export
666
+ */
667
+ export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
668
+ return {
669
+ /**
670
+ * Gets device info using device ID.
671
+ * @summary Get Device
672
+ * @param {string} deviceId
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ getDeviceDevicesDeviceIdGet: async (deviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
677
+ // verify required parameter 'deviceId' is not null or undefined
678
+ assertParamExists('getDeviceDevicesDeviceIdGet', 'deviceId', deviceId)
679
+ const localVarPath = `/devices/{device_id}`
680
+ .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
681
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
682
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
683
+ let baseOptions;
684
+ if (configuration) {
685
+ baseOptions = configuration.baseOptions;
686
+ }
687
+
688
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
689
+ const localVarHeaderParameter = {} as any;
690
+ const localVarQueryParameter = {} as any;
691
+
692
+ // authentication oauth2_password required
693
+ // oauth required
694
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
695
+
696
+ // authentication bearer_auth required
697
+ // http bearer authentication required
698
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
699
+
700
+
701
+
702
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
703
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
704
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
705
+
706
+ return {
707
+ url: toPathString(localVarUrlObj),
708
+ options: localVarRequestOptions,
709
+ };
710
+ },
711
+ /**
712
+ * 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.
713
+ * @summary Get Device Extended
714
+ * @param { | null} [deviceId]
715
+ * @param { | null} [id] Filter by Device ID (deprecated)
716
+ * @param {string | null} [codename] Not recommended to use when you can
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ getDeviceExtendedDevicesGetGet: async (deviceId?: | null, id?: | null, codename?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
721
+ const localVarPath = `/devices/get`;
722
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
723
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
724
+ let baseOptions;
725
+ if (configuration) {
726
+ baseOptions = configuration.baseOptions;
727
+ }
728
+
729
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
730
+ const localVarHeaderParameter = {} as any;
731
+ const localVarQueryParameter = {} as any;
732
+
733
+ // authentication oauth2_password required
734
+ // oauth required
735
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
736
+
737
+ // authentication bearer_auth required
738
+ // http bearer authentication required
739
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
740
+
741
+ if (deviceId !== undefined) {
742
+ for (const [key, value] of Object.entries(deviceId)) {
743
+ localVarQueryParameter[key] = value;
744
+ }
745
+ }
746
+
747
+ if (id !== undefined) {
748
+ for (const [key, value] of Object.entries(id)) {
749
+ localVarQueryParameter[key] = value;
750
+ }
751
+ }
752
+
753
+ if (codename !== undefined) {
754
+ localVarQueryParameter['codename'] = codename;
755
+ }
756
+
757
+
758
+
759
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
760
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
761
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
762
+
763
+ return {
764
+ url: toPathString(localVarUrlObj),
765
+ options: localVarRequestOptions,
766
+ };
767
+ },
768
+ /**
769
+ * 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.
770
+ * @summary Get Devices List
771
+ * @param {Array<any>} [id] Filter by Device IDs
772
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
773
+ * @param {Array<string>} [oemName] Filter by OEM names
774
+ * @param {Array<string>} [codename] Filter by device codenames
775
+ * @param {Array<string>} [modelName] Filter by model names
776
+ * @param {boolean | null} [supported] Supported status
777
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
778
+ * @param {boolean | null} [freezed] Filter by Freezed status
779
+ * @param {boolean | null} [hasReleases] Filter by has releases status
780
+ * @param {number | null} [skip] Skip query results
781
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ */
785
+ getDevicesListDevicesGet: async (id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
786
+ const localVarPath = `/devices/`;
787
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
788
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
789
+ let baseOptions;
790
+ if (configuration) {
791
+ baseOptions = configuration.baseOptions;
792
+ }
793
+
794
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
795
+ const localVarHeaderParameter = {} as any;
796
+ const localVarQueryParameter = {} as any;
797
+
798
+ // authentication oauth2_password required
799
+ // oauth required
800
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
801
+
802
+ // authentication bearer_auth required
803
+ // http bearer authentication required
804
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
805
+
806
+ if (id) {
807
+ localVarQueryParameter['id'] = id;
808
+ }
809
+
810
+ if (id2) {
811
+ localVarQueryParameter['_id'] = id2;
812
+ }
813
+
814
+ if (oemName) {
815
+ localVarQueryParameter['oem_name'] = oemName;
816
+ }
817
+
818
+ if (codename) {
819
+ localVarQueryParameter['codename'] = codename;
820
+ }
821
+
822
+ if (modelName) {
823
+ localVarQueryParameter['model_name'] = modelName;
824
+ }
825
+
826
+ if (supported !== undefined) {
827
+ localVarQueryParameter['supported'] = supported;
828
+ }
829
+
830
+ if (maintainer) {
831
+ localVarQueryParameter['maintainer'] = maintainer;
832
+ }
833
+
834
+ if (freezed !== undefined) {
835
+ localVarQueryParameter['freezed'] = freezed;
836
+ }
837
+
838
+ if (hasReleases !== undefined) {
839
+ localVarQueryParameter['has_releases'] = hasReleases;
840
+ }
841
+
842
+ if (skip !== undefined) {
843
+ localVarQueryParameter['skip'] = skip;
844
+ }
845
+
846
+ if (limit !== undefined) {
847
+ localVarQueryParameter['limit'] = limit;
848
+ }
849
+
850
+
851
+
852
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
853
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
854
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
855
+
856
+ return {
857
+ url: toPathString(localVarUrlObj),
858
+ options: localVarRequestOptions,
859
+ };
860
+ },
861
+ /**
862
+ * Lists all OEM names
863
+ * @summary Get Oems List
864
+ * @param {*} [options] Override http request option.
865
+ * @throws {RequiredError}
866
+ */
867
+ getOemsListOemsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
868
+ const localVarPath = `/oems/`;
869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
870
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
871
+ let baseOptions;
872
+ if (configuration) {
873
+ baseOptions = configuration.baseOptions;
874
+ }
875
+
876
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
877
+ const localVarHeaderParameter = {} as any;
878
+ const localVarQueryParameter = {} as any;
879
+
880
+ // authentication oauth2_password required
881
+ // oauth required
882
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
883
+
884
+ // authentication bearer_auth required
885
+ // http bearer authentication required
886
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
887
+
888
+
889
+
890
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
891
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
892
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
893
+
894
+ return {
895
+ url: toPathString(localVarUrlObj),
896
+ options: localVarRequestOptions,
897
+ };
898
+ },
899
+ }
900
+ };
901
+
902
+ /**
903
+ * DeviceApi - functional programming interface
904
+ * @export
905
+ */
906
+ export const DeviceApiFp = function(configuration?: Configuration) {
907
+ const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
908
+ return {
909
+ /**
910
+ * Gets device info using device ID.
911
+ * @summary Get Device
912
+ * @param {string} deviceId
913
+ * @param {*} [options] Override http request option.
914
+ * @throws {RequiredError}
915
+ */
916
+ async getDeviceDevicesDeviceIdGet(deviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceResponse>> {
917
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceDevicesDeviceIdGet(deviceId, options);
918
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
919
+ const localVarOperationServerBasePath = operationServerMap['DeviceApi.getDeviceDevicesDeviceIdGet']?.[localVarOperationServerIndex]?.url;
920
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
921
+ },
922
+ /**
923
+ * 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.
924
+ * @summary Get Device Extended
925
+ * @param { | null} [deviceId]
926
+ * @param { | null} [id] Filter by Device ID (deprecated)
927
+ * @param {string | null} [codename] Not recommended to use when you can
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ */
931
+ async getDeviceExtendedDevicesGetGet(deviceId?: | null, id?: | null, codename?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceResponse>> {
932
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceExtendedDevicesGetGet(deviceId, id, codename, options);
933
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
934
+ const localVarOperationServerBasePath = operationServerMap['DeviceApi.getDeviceExtendedDevicesGetGet']?.[localVarOperationServerIndex]?.url;
935
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
936
+ },
937
+ /**
938
+ * 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.
939
+ * @summary Get Devices List
940
+ * @param {Array<any>} [id] Filter by Device IDs
941
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
942
+ * @param {Array<string>} [oemName] Filter by OEM names
943
+ * @param {Array<string>} [codename] Filter by device codenames
944
+ * @param {Array<string>} [modelName] Filter by model names
945
+ * @param {boolean | null} [supported] Supported status
946
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
947
+ * @param {boolean | null} [freezed] Filter by Freezed status
948
+ * @param {boolean | null} [hasReleases] Filter by has releases status
949
+ * @param {number | null} [skip] Skip query results
950
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
951
+ * @param {*} [options] Override http request option.
952
+ * @throws {RequiredError}
953
+ */
954
+ async getDevicesListDevicesGet(id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseShortDeviceResponse>> {
955
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
956
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
957
+ const localVarOperationServerBasePath = operationServerMap['DeviceApi.getDevicesListDevicesGet']?.[localVarOperationServerIndex]?.url;
958
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
959
+ },
960
+ /**
961
+ * Lists all OEM names
962
+ * @summary Get Oems List
963
+ * @param {*} [options] Override http request option.
964
+ * @throws {RequiredError}
965
+ */
966
+ async getOemsListOemsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseStr>> {
967
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOemsListOemsGet(options);
968
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
969
+ const localVarOperationServerBasePath = operationServerMap['DeviceApi.getOemsListOemsGet']?.[localVarOperationServerIndex]?.url;
970
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
971
+ },
972
+ }
973
+ };
974
+
975
+ /**
976
+ * DeviceApi - factory interface
977
+ * @export
978
+ */
979
+ export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
980
+ const localVarFp = DeviceApiFp(configuration)
981
+ return {
982
+ /**
983
+ * Gets device info using device ID.
984
+ * @summary Get Device
985
+ * @param {string} deviceId
986
+ * @param {*} [options] Override http request option.
987
+ * @throws {RequiredError}
988
+ */
989
+ getDeviceDevicesDeviceIdGet(deviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeviceResponse> {
990
+ return localVarFp.getDeviceDevicesDeviceIdGet(deviceId, options).then((request) => request(axios, basePath));
991
+ },
992
+ /**
993
+ * 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.
994
+ * @summary Get Device Extended
995
+ * @param { | null} [deviceId]
996
+ * @param { | null} [id] Filter by Device ID (deprecated)
997
+ * @param {string | null} [codename] Not recommended to use when you can
998
+ * @param {*} [options] Override http request option.
999
+ * @throws {RequiredError}
1000
+ */
1001
+ getDeviceExtendedDevicesGetGet(deviceId?: | null, id?: | null, codename?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<DeviceResponse> {
1002
+ return localVarFp.getDeviceExtendedDevicesGetGet(deviceId, id, codename, options).then((request) => request(axios, basePath));
1003
+ },
1004
+ /**
1005
+ * 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.
1006
+ * @summary Get Devices List
1007
+ * @param {Array<any>} [id] Filter by Device IDs
1008
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
1009
+ * @param {Array<string>} [oemName] Filter by OEM names
1010
+ * @param {Array<string>} [codename] Filter by device codenames
1011
+ * @param {Array<string>} [modelName] Filter by model names
1012
+ * @param {boolean | null} [supported] Supported status
1013
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
1014
+ * @param {boolean | null} [freezed] Filter by Freezed status
1015
+ * @param {boolean | null} [hasReleases] Filter by has releases status
1016
+ * @param {number | null} [skip] Skip query results
1017
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1018
+ * @param {*} [options] Override http request option.
1019
+ * @throws {RequiredError}
1020
+ */
1021
+ getDevicesListDevicesGet(id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseShortDeviceResponse> {
1022
+ return localVarFp.getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
1023
+ },
1024
+ /**
1025
+ * Lists all OEM names
1026
+ * @summary Get Oems List
1027
+ * @param {*} [options] Override http request option.
1028
+ * @throws {RequiredError}
1029
+ */
1030
+ getOemsListOemsGet(options?: RawAxiosRequestConfig): AxiosPromise<ListResponseStr> {
1031
+ return localVarFp.getOemsListOemsGet(options).then((request) => request(axios, basePath));
1032
+ },
1033
+ };
1034
+ };
1035
+
1036
+ /**
1037
+ * DeviceApi - interface
1038
+ * @export
1039
+ * @interface DeviceApi
1040
+ */
1041
+ export interface DeviceApiInterface {
1042
+ /**
1043
+ * Gets device info using device ID.
1044
+ * @summary Get Device
1045
+ * @param {string} deviceId
1046
+ * @param {*} [options] Override http request option.
1047
+ * @throws {RequiredError}
1048
+ * @memberof DeviceApiInterface
1049
+ */
1050
+ getDeviceDevicesDeviceIdGet(deviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeviceResponse>;
1051
+
1052
+ /**
1053
+ * 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.
1054
+ * @summary Get Device Extended
1055
+ * @param { | null} [deviceId]
1056
+ * @param { | null} [id] Filter by Device ID (deprecated)
1057
+ * @param {string | null} [codename] Not recommended to use when you can
1058
+ * @param {*} [options] Override http request option.
1059
+ * @throws {RequiredError}
1060
+ * @memberof DeviceApiInterface
1061
+ */
1062
+ getDeviceExtendedDevicesGetGet(deviceId?: | null, id?: | null, codename?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<DeviceResponse>;
1063
+
1064
+ /**
1065
+ * 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.
1066
+ * @summary Get Devices List
1067
+ * @param {Array<any>} [id] Filter by Device IDs
1068
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
1069
+ * @param {Array<string>} [oemName] Filter by OEM names
1070
+ * @param {Array<string>} [codename] Filter by device codenames
1071
+ * @param {Array<string>} [modelName] Filter by model names
1072
+ * @param {boolean | null} [supported] Supported status
1073
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
1074
+ * @param {boolean | null} [freezed] Filter by Freezed status
1075
+ * @param {boolean | null} [hasReleases] Filter by has releases status
1076
+ * @param {number | null} [skip] Skip query results
1077
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1078
+ * @param {*} [options] Override http request option.
1079
+ * @throws {RequiredError}
1080
+ * @memberof DeviceApiInterface
1081
+ */
1082
+ getDevicesListDevicesGet(id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseShortDeviceResponse>;
1083
+
1084
+ /**
1085
+ * Lists all OEM names
1086
+ * @summary Get Oems List
1087
+ * @param {*} [options] Override http request option.
1088
+ * @throws {RequiredError}
1089
+ * @memberof DeviceApiInterface
1090
+ */
1091
+ getOemsListOemsGet(options?: RawAxiosRequestConfig): AxiosPromise<ListResponseStr>;
1092
+
1093
+ }
1094
+
1095
+ /**
1096
+ * DeviceApi - object-oriented interface
1097
+ * @export
1098
+ * @class DeviceApi
1099
+ * @extends {BaseAPI}
1100
+ */
1101
+ export class DeviceApi extends BaseAPI implements DeviceApiInterface {
1102
+ /**
1103
+ * Gets device info using device ID.
1104
+ * @summary Get Device
1105
+ * @param {string} deviceId
1106
+ * @param {*} [options] Override http request option.
1107
+ * @throws {RequiredError}
1108
+ * @memberof DeviceApi
1109
+ */
1110
+ public getDeviceDevicesDeviceIdGet(deviceId: string, options?: RawAxiosRequestConfig) {
1111
+ return DeviceApiFp(this.configuration).getDeviceDevicesDeviceIdGet(deviceId, options).then((request) => request(this.axios, this.basePath));
1112
+ }
1113
+
1114
+ /**
1115
+ * 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.
1116
+ * @summary Get Device Extended
1117
+ * @param { | null} [deviceId]
1118
+ * @param { | null} [id] Filter by Device ID (deprecated)
1119
+ * @param {string | null} [codename] Not recommended to use when you can
1120
+ * @param {*} [options] Override http request option.
1121
+ * @throws {RequiredError}
1122
+ * @memberof DeviceApi
1123
+ */
1124
+ public getDeviceExtendedDevicesGetGet(deviceId?: | null, id?: | null, codename?: string | null, options?: RawAxiosRequestConfig) {
1125
+ return DeviceApiFp(this.configuration).getDeviceExtendedDevicesGetGet(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
1126
+ }
1127
+
1128
+ /**
1129
+ * 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.
1130
+ * @summary Get Devices List
1131
+ * @param {Array<any>} [id] Filter by Device IDs
1132
+ * @param {Array<any>} [id2] Filter by Device IDs (deprecated)
1133
+ * @param {Array<string>} [oemName] Filter by OEM names
1134
+ * @param {Array<string>} [codename] Filter by device codenames
1135
+ * @param {Array<string>} [modelName] Filter by model names
1136
+ * @param {boolean | null} [supported] Supported status
1137
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
1138
+ * @param {boolean | null} [freezed] Filter by Freezed status
1139
+ * @param {boolean | null} [hasReleases] Filter by has releases status
1140
+ * @param {number | null} [skip] Skip query results
1141
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1142
+ * @param {*} [options] Override http request option.
1143
+ * @throws {RequiredError}
1144
+ * @memberof DeviceApi
1145
+ */
1146
+ public getDevicesListDevicesGet(id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig) {
1147
+ return DeviceApiFp(this.configuration).getDevicesListDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
1148
+ }
1149
+
1150
+ /**
1151
+ * Lists all OEM names
1152
+ * @summary Get Oems List
1153
+ * @param {*} [options] Override http request option.
1154
+ * @throws {RequiredError}
1155
+ * @memberof DeviceApi
1156
+ */
1157
+ public getOemsListOemsGet(options?: RawAxiosRequestConfig) {
1158
+ return DeviceApiFp(this.configuration).getOemsListOemsGet(options).then((request) => request(this.axios, this.basePath));
1159
+ }
1160
+ }
1161
+
1162
+
1163
+
1164
+ /**
1165
+ * ReleaseApi - axios parameter creator
1166
+ * @export
1167
+ */
1168
+ export const ReleaseApiAxiosParamCreator = function (configuration?: Configuration) {
1169
+ return {
1170
+ /**
1171
+ * 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!
1172
+ * @summary Get Release Extended
1173
+ * @param { | null} [releaseId] Release ID
1174
+ * @param { | null} [id] Release ID (deprecated)
1175
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
1176
+ * @param {string | null} [filename]
1177
+ * @param {*} [options] Override http request option.
1178
+ * @throws {RequiredError}
1179
+ */
1180
+ getReleaseExtendedReleasesGetGet: async (releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1181
+ const localVarPath = `/releases/get`;
1182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1183
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1184
+ let baseOptions;
1185
+ if (configuration) {
1186
+ baseOptions = configuration.baseOptions;
1187
+ }
1188
+
1189
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1190
+ const localVarHeaderParameter = {} as any;
1191
+ const localVarQueryParameter = {} as any;
1192
+
1193
+ // authentication oauth2_password required
1194
+ // oauth required
1195
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
1196
+
1197
+ // authentication bearer_auth required
1198
+ // http bearer authentication required
1199
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1200
+
1201
+ if (releaseId !== undefined) {
1202
+ for (const [key, value] of Object.entries(releaseId)) {
1203
+ localVarQueryParameter[key] = value;
1204
+ }
1205
+ }
1206
+
1207
+ if (id !== undefined) {
1208
+ for (const [key, value] of Object.entries(id)) {
1209
+ localVarQueryParameter[key] = value;
1210
+ }
1211
+ }
1212
+
1213
+ if (buildId !== undefined) {
1214
+ localVarQueryParameter['build_id'] = buildId;
1215
+ }
1216
+
1217
+ if (filename !== undefined) {
1218
+ localVarQueryParameter['filename'] = filename;
1219
+ }
1220
+
1221
+
1222
+
1223
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1225
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1226
+
1227
+ return {
1228
+ url: toPathString(localVarUrlObj),
1229
+ options: localVarRequestOptions,
1230
+ };
1231
+ },
1232
+ /**
1233
+ * Gets release information using the release ID, nothing to discuss really.
1234
+ * @summary Get Release
1235
+ * @param {any} releaseId
1236
+ * @param {*} [options] Override http request option.
1237
+ * @throws {RequiredError}
1238
+ */
1239
+ getReleaseReleasesReleaseIdGet: async (releaseId: any, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1240
+ // verify required parameter 'releaseId' is not null or undefined
1241
+ assertParamExists('getReleaseReleasesReleaseIdGet', 'releaseId', releaseId)
1242
+ const localVarPath = `/releases/{release_id}`
1243
+ .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1244
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1245
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1246
+ let baseOptions;
1247
+ if (configuration) {
1248
+ baseOptions = configuration.baseOptions;
1249
+ }
1250
+
1251
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1252
+ const localVarHeaderParameter = {} as any;
1253
+ const localVarQueryParameter = {} as any;
1254
+
1255
+ // authentication oauth2_password required
1256
+ // oauth required
1257
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
1258
+
1259
+ // authentication bearer_auth required
1260
+ // http bearer authentication required
1261
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1262
+
1263
+
1264
+
1265
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1266
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1267
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1268
+
1269
+ return {
1270
+ url: toPathString(localVarUrlObj),
1271
+ options: localVarRequestOptions,
1272
+ };
1273
+ },
1274
+ /**
1275
+ * 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.
1276
+ * @summary Get Releases
1277
+ * @param {Array<any>} [id] Filter by Release IDs
1278
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
1279
+ * @param {Array<string>} [buildId] Filter by Build IDs
1280
+ * @param {Array<any>} [deviceId] Filter by Device IDs
1281
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
1282
+ * @param {Array<string>} [codename] Filter by device codenames
1283
+ * @param {Array<string>} [version] Filter by release version
1284
+ * @param {Array<ReleaseType>} [type] Filter by release type
1285
+ * @param {boolean | null} [archived] Filter by the archived status
1286
+ * @param {boolean | null} [freezed] Filter by the freezed status
1287
+ * @param { | null} [afterReleaseId] Show releases after the provided one
1288
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
1289
+ * @param {ReleasesSort} [sort] Sort mode
1290
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
1291
+ * @param {number | null} [skip] Skip query results
1292
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1293
+ * @param {*} [options] Override http request option.
1294
+ * @throws {RequiredError}
1295
+ */
1296
+ getReleasesReleasesGet: async (id?: Array<any>, id2?: Array<any>, buildId?: Array<string>, deviceId?: Array<any>, maintainerId?: Array<any>, codename?: Array<string>, version?: Array<string>, type?: Array<ReleaseType>, archived?: boolean | null, freezed?: boolean | null, afterReleaseId?: | null, afterDate?: number | null, sort?: ReleasesSort, group?: boolean | null, skip?: number | null, limit?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1297
+ const localVarPath = `/releases/`;
1298
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1299
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1300
+ let baseOptions;
1301
+ if (configuration) {
1302
+ baseOptions = configuration.baseOptions;
1303
+ }
1304
+
1305
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1306
+ const localVarHeaderParameter = {} as any;
1307
+ const localVarQueryParameter = {} as any;
1308
+
1309
+ // authentication oauth2_password required
1310
+ // oauth required
1311
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
1312
+
1313
+ // authentication bearer_auth required
1314
+ // http bearer authentication required
1315
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1316
+
1317
+ if (id) {
1318
+ localVarQueryParameter['id'] = id;
1319
+ }
1320
+
1321
+ if (id2) {
1322
+ localVarQueryParameter['_id'] = id2;
1323
+ }
1324
+
1325
+ if (buildId) {
1326
+ localVarQueryParameter['build_id'] = buildId;
1327
+ }
1328
+
1329
+ if (deviceId) {
1330
+ localVarQueryParameter['device_id'] = deviceId;
1331
+ }
1332
+
1333
+ if (maintainerId) {
1334
+ localVarQueryParameter['maintainer_id'] = maintainerId;
1335
+ }
1336
+
1337
+ if (codename) {
1338
+ localVarQueryParameter['codename'] = codename;
1339
+ }
1340
+
1341
+ if (version) {
1342
+ localVarQueryParameter['version'] = version;
1343
+ }
1344
+
1345
+ if (type) {
1346
+ localVarQueryParameter['type'] = type;
1347
+ }
1348
+
1349
+ if (archived !== undefined) {
1350
+ localVarQueryParameter['archived'] = archived;
1351
+ }
1352
+
1353
+ if (freezed !== undefined) {
1354
+ localVarQueryParameter['freezed'] = freezed;
1355
+ }
1356
+
1357
+ if (afterReleaseId !== undefined) {
1358
+ for (const [key, value] of Object.entries(afterReleaseId)) {
1359
+ localVarQueryParameter[key] = value;
1360
+ }
1361
+ }
1362
+
1363
+ if (afterDate !== undefined) {
1364
+ localVarQueryParameter['after_date'] = afterDate;
1365
+ }
1366
+
1367
+ if (sort !== undefined) {
1368
+ localVarQueryParameter['sort'] = sort;
1369
+ }
1370
+
1371
+ if (group !== undefined) {
1372
+ localVarQueryParameter['group'] = group;
1373
+ }
1374
+
1375
+ if (skip !== undefined) {
1376
+ localVarQueryParameter['skip'] = skip;
1377
+ }
1378
+
1379
+ if (limit !== undefined) {
1380
+ localVarQueryParameter['limit'] = limit;
1381
+ }
1382
+
1383
+
1384
+
1385
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1386
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1387
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1388
+
1389
+ return {
1390
+ url: toPathString(localVarUrlObj),
1391
+ options: localVarRequestOptions,
1392
+ };
1393
+ },
1394
+ /**
1395
+ * 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!
1396
+ * @summary Get Updates
1397
+ * @param {any} lastKnownId
1398
+ * @param {Array<any>} [deviceId] Filter by device ID
1399
+ * @param {Array<ReleaseType>} [type] Filter by release type
1400
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
1401
+ * @param {number | null} [skip] Skip query results
1402
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1403
+ * @param {*} [options] Override http request option.
1404
+ * @deprecated
1405
+ * @throws {RequiredError}
1406
+ */
1407
+ getUpdatesUpdatesLastKnownIdGet: async (lastKnownId: any, deviceId?: Array<any>, type?: Array<ReleaseType>, releaseType?: Array<ReleaseType>, skip?: number | null, limit?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1408
+ // verify required parameter 'lastKnownId' is not null or undefined
1409
+ assertParamExists('getUpdatesUpdatesLastKnownIdGet', 'lastKnownId', lastKnownId)
1410
+ const localVarPath = `/updates/{last_known_id}`
1411
+ .replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
1412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1413
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1414
+ let baseOptions;
1415
+ if (configuration) {
1416
+ baseOptions = configuration.baseOptions;
1417
+ }
1418
+
1419
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1420
+ const localVarHeaderParameter = {} as any;
1421
+ const localVarQueryParameter = {} as any;
1422
+
1423
+ // authentication oauth2_password required
1424
+ // oauth required
1425
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
1426
+
1427
+ // authentication bearer_auth required
1428
+ // http bearer authentication required
1429
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1430
+
1431
+ if (deviceId) {
1432
+ localVarQueryParameter['device_id'] = deviceId;
1433
+ }
1434
+
1435
+ if (type) {
1436
+ localVarQueryParameter['type'] = type;
1437
+ }
1438
+
1439
+ if (releaseType) {
1440
+ localVarQueryParameter['release_type'] = releaseType;
1441
+ }
1442
+
1443
+ if (skip !== undefined) {
1444
+ localVarQueryParameter['skip'] = skip;
1445
+ }
1446
+
1447
+ if (limit !== undefined) {
1448
+ localVarQueryParameter['limit'] = limit;
1449
+ }
1450
+
1451
+
1452
+
1453
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1454
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1455
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1456
+
1457
+ return {
1458
+ url: toPathString(localVarUrlObj),
1459
+ options: localVarRequestOptions,
1460
+ };
1461
+ },
1462
+ }
1463
+ };
1464
+
1465
+ /**
1466
+ * ReleaseApi - functional programming interface
1467
+ * @export
1468
+ */
1469
+ export const ReleaseApiFp = function(configuration?: Configuration) {
1470
+ const localVarAxiosParamCreator = ReleaseApiAxiosParamCreator(configuration)
1471
+ return {
1472
+ /**
1473
+ * 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!
1474
+ * @summary Get Release Extended
1475
+ * @param { | null} [releaseId] Release ID
1476
+ * @param { | null} [id] Release ID (deprecated)
1477
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
1478
+ * @param {string | null} [filename]
1479
+ * @param {*} [options] Override http request option.
1480
+ * @throws {RequiredError}
1481
+ */
1482
+ async getReleaseExtendedReleasesGetGet(releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReleaseResponse>> {
1483
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options);
1484
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1485
+ const localVarOperationServerBasePath = operationServerMap['ReleaseApi.getReleaseExtendedReleasesGetGet']?.[localVarOperationServerIndex]?.url;
1486
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1487
+ },
1488
+ /**
1489
+ * Gets release information using the release ID, nothing to discuss really.
1490
+ * @summary Get Release
1491
+ * @param {any} releaseId
1492
+ * @param {*} [options] Override http request option.
1493
+ * @throws {RequiredError}
1494
+ */
1495
+ async getReleaseReleasesReleaseIdGet(releaseId: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReleaseResponse>> {
1496
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReleaseReleasesReleaseIdGet(releaseId, options);
1497
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1498
+ const localVarOperationServerBasePath = operationServerMap['ReleaseApi.getReleaseReleasesReleaseIdGet']?.[localVarOperationServerIndex]?.url;
1499
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1500
+ },
1501
+ /**
1502
+ * 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.
1503
+ * @summary Get Releases
1504
+ * @param {Array<any>} [id] Filter by Release IDs
1505
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
1506
+ * @param {Array<string>} [buildId] Filter by Build IDs
1507
+ * @param {Array<any>} [deviceId] Filter by Device IDs
1508
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
1509
+ * @param {Array<string>} [codename] Filter by device codenames
1510
+ * @param {Array<string>} [version] Filter by release version
1511
+ * @param {Array<ReleaseType>} [type] Filter by release type
1512
+ * @param {boolean | null} [archived] Filter by the archived status
1513
+ * @param {boolean | null} [freezed] Filter by the freezed status
1514
+ * @param { | null} [afterReleaseId] Show releases after the provided one
1515
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
1516
+ * @param {ReleasesSort} [sort] Sort mode
1517
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
1518
+ * @param {number | null} [skip] Skip query results
1519
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1520
+ * @param {*} [options] Override http request option.
1521
+ * @throws {RequiredError}
1522
+ */
1523
+ async getReleasesReleasesGet(id?: Array<any>, id2?: Array<any>, buildId?: Array<string>, deviceId?: Array<any>, maintainerId?: Array<any>, codename?: Array<string>, version?: Array<string>, type?: Array<ReleaseType>, archived?: boolean | null, freezed?: boolean | null, afterReleaseId?: | null, afterDate?: number | null, sort?: ReleasesSort, group?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseGetReleasesReleasesGet>> {
1524
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReleasesReleasesGet(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
1525
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1526
+ const localVarOperationServerBasePath = operationServerMap['ReleaseApi.getReleasesReleasesGet']?.[localVarOperationServerIndex]?.url;
1527
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1528
+ },
1529
+ /**
1530
+ * 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!
1531
+ * @summary Get Updates
1532
+ * @param {any} lastKnownId
1533
+ * @param {Array<any>} [deviceId] Filter by device ID
1534
+ * @param {Array<ReleaseType>} [type] Filter by release type
1535
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
1536
+ * @param {number | null} [skip] Skip query results
1537
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1538
+ * @param {*} [options] Override http request option.
1539
+ * @deprecated
1540
+ * @throws {RequiredError}
1541
+ */
1542
+ async getUpdatesUpdatesLastKnownIdGet(lastKnownId: any, deviceId?: Array<any>, type?: Array<ReleaseType>, releaseType?: Array<ReleaseType>, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseShortReleaseResponse>> {
1543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options);
1544
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1545
+ const localVarOperationServerBasePath = operationServerMap['ReleaseApi.getUpdatesUpdatesLastKnownIdGet']?.[localVarOperationServerIndex]?.url;
1546
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1547
+ },
1548
+ }
1549
+ };
1550
+
1551
+ /**
1552
+ * ReleaseApi - factory interface
1553
+ * @export
1554
+ */
1555
+ export const ReleaseApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1556
+ const localVarFp = ReleaseApiFp(configuration)
1557
+ return {
1558
+ /**
1559
+ * 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!
1560
+ * @summary Get Release Extended
1561
+ * @param { | null} [releaseId] Release ID
1562
+ * @param { | null} [id] Release ID (deprecated)
1563
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
1564
+ * @param {string | null} [filename]
1565
+ * @param {*} [options] Override http request option.
1566
+ * @throws {RequiredError}
1567
+ */
1568
+ getReleaseExtendedReleasesGetGet(releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<ReleaseResponse> {
1569
+ return localVarFp.getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
1570
+ },
1571
+ /**
1572
+ * Gets release information using the release ID, nothing to discuss really.
1573
+ * @summary Get Release
1574
+ * @param {any} releaseId
1575
+ * @param {*} [options] Override http request option.
1576
+ * @throws {RequiredError}
1577
+ */
1578
+ getReleaseReleasesReleaseIdGet(releaseId: any, options?: RawAxiosRequestConfig): AxiosPromise<ReleaseResponse> {
1579
+ return localVarFp.getReleaseReleasesReleaseIdGet(releaseId, options).then((request) => request(axios, basePath));
1580
+ },
1581
+ /**
1582
+ * 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.
1583
+ * @summary Get Releases
1584
+ * @param {Array<any>} [id] Filter by Release IDs
1585
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
1586
+ * @param {Array<string>} [buildId] Filter by Build IDs
1587
+ * @param {Array<any>} [deviceId] Filter by Device IDs
1588
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
1589
+ * @param {Array<string>} [codename] Filter by device codenames
1590
+ * @param {Array<string>} [version] Filter by release version
1591
+ * @param {Array<ReleaseType>} [type] Filter by release type
1592
+ * @param {boolean | null} [archived] Filter by the archived status
1593
+ * @param {boolean | null} [freezed] Filter by the freezed status
1594
+ * @param { | null} [afterReleaseId] Show releases after the provided one
1595
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
1596
+ * @param {ReleasesSort} [sort] Sort mode
1597
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
1598
+ * @param {number | null} [skip] Skip query results
1599
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1600
+ * @param {*} [options] Override http request option.
1601
+ * @throws {RequiredError}
1602
+ */
1603
+ getReleasesReleasesGet(id?: Array<any>, id2?: Array<any>, buildId?: Array<string>, deviceId?: Array<any>, maintainerId?: Array<any>, codename?: Array<string>, version?: Array<string>, type?: Array<ReleaseType>, archived?: boolean | null, freezed?: boolean | null, afterReleaseId?: | null, afterDate?: number | null, sort?: ReleasesSort, group?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetReleasesReleasesGet> {
1604
+ 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));
1605
+ },
1606
+ /**
1607
+ * 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!
1608
+ * @summary Get Updates
1609
+ * @param {any} lastKnownId
1610
+ * @param {Array<any>} [deviceId] Filter by device ID
1611
+ * @param {Array<ReleaseType>} [type] Filter by release type
1612
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
1613
+ * @param {number | null} [skip] Skip query results
1614
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1615
+ * @param {*} [options] Override http request option.
1616
+ * @deprecated
1617
+ * @throws {RequiredError}
1618
+ */
1619
+ getUpdatesUpdatesLastKnownIdGet(lastKnownId: any, deviceId?: Array<any>, type?: Array<ReleaseType>, releaseType?: Array<ReleaseType>, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseShortReleaseResponse> {
1620
+ return localVarFp.getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
1621
+ },
1622
+ };
1623
+ };
1624
+
1625
+ /**
1626
+ * ReleaseApi - interface
1627
+ * @export
1628
+ * @interface ReleaseApi
1629
+ */
1630
+ export interface ReleaseApiInterface {
1631
+ /**
1632
+ * 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!
1633
+ * @summary Get Release Extended
1634
+ * @param { | null} [releaseId] Release ID
1635
+ * @param { | null} [id] Release ID (deprecated)
1636
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
1637
+ * @param {string | null} [filename]
1638
+ * @param {*} [options] Override http request option.
1639
+ * @throws {RequiredError}
1640
+ * @memberof ReleaseApiInterface
1641
+ */
1642
+ getReleaseExtendedReleasesGetGet(releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<ReleaseResponse>;
1643
+
1644
+ /**
1645
+ * Gets release information using the release ID, nothing to discuss really.
1646
+ * @summary Get Release
1647
+ * @param {any} releaseId
1648
+ * @param {*} [options] Override http request option.
1649
+ * @throws {RequiredError}
1650
+ * @memberof ReleaseApiInterface
1651
+ */
1652
+ getReleaseReleasesReleaseIdGet(releaseId: any, options?: RawAxiosRequestConfig): AxiosPromise<ReleaseResponse>;
1653
+
1654
+ /**
1655
+ * 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.
1656
+ * @summary Get Releases
1657
+ * @param {Array<any>} [id] Filter by Release IDs
1658
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
1659
+ * @param {Array<string>} [buildId] Filter by Build IDs
1660
+ * @param {Array<any>} [deviceId] Filter by Device IDs
1661
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
1662
+ * @param {Array<string>} [codename] Filter by device codenames
1663
+ * @param {Array<string>} [version] Filter by release version
1664
+ * @param {Array<ReleaseType>} [type] Filter by release type
1665
+ * @param {boolean | null} [archived] Filter by the archived status
1666
+ * @param {boolean | null} [freezed] Filter by the freezed status
1667
+ * @param { | null} [afterReleaseId] Show releases after the provided one
1668
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
1669
+ * @param {ReleasesSort} [sort] Sort mode
1670
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
1671
+ * @param {number | null} [skip] Skip query results
1672
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1673
+ * @param {*} [options] Override http request option.
1674
+ * @throws {RequiredError}
1675
+ * @memberof ReleaseApiInterface
1676
+ */
1677
+ getReleasesReleasesGet(id?: Array<any>, id2?: Array<any>, buildId?: Array<string>, deviceId?: Array<any>, maintainerId?: Array<any>, codename?: Array<string>, version?: Array<string>, type?: Array<ReleaseType>, archived?: boolean | null, freezed?: boolean | null, afterReleaseId?: | null, afterDate?: number | null, sort?: ReleasesSort, group?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetReleasesReleasesGet>;
1678
+
1679
+ /**
1680
+ * 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!
1681
+ * @summary Get Updates
1682
+ * @param {any} lastKnownId
1683
+ * @param {Array<any>} [deviceId] Filter by device ID
1684
+ * @param {Array<ReleaseType>} [type] Filter by release type
1685
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
1686
+ * @param {number | null} [skip] Skip query results
1687
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1688
+ * @param {*} [options] Override http request option.
1689
+ * @deprecated
1690
+ * @throws {RequiredError}
1691
+ * @memberof ReleaseApiInterface
1692
+ */
1693
+ getUpdatesUpdatesLastKnownIdGet(lastKnownId: any, deviceId?: Array<any>, type?: Array<ReleaseType>, releaseType?: Array<ReleaseType>, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseShortReleaseResponse>;
1694
+
1695
+ }
1696
+
1697
+ /**
1698
+ * ReleaseApi - object-oriented interface
1699
+ * @export
1700
+ * @class ReleaseApi
1701
+ * @extends {BaseAPI}
1702
+ */
1703
+ export class ReleaseApi extends BaseAPI implements ReleaseApiInterface {
1704
+ /**
1705
+ * 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!
1706
+ * @summary Get Release Extended
1707
+ * @param { | null} [releaseId] Release ID
1708
+ * @param { | null} [id] Release ID (deprecated)
1709
+ * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
1710
+ * @param {string | null} [filename]
1711
+ * @param {*} [options] Override http request option.
1712
+ * @throws {RequiredError}
1713
+ * @memberof ReleaseApi
1714
+ */
1715
+ public getReleaseExtendedReleasesGetGet(releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options?: RawAxiosRequestConfig) {
1716
+ return ReleaseApiFp(this.configuration).getReleaseExtendedReleasesGetGet(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
1717
+ }
1718
+
1719
+ /**
1720
+ * Gets release information using the release ID, nothing to discuss really.
1721
+ * @summary Get Release
1722
+ * @param {any} releaseId
1723
+ * @param {*} [options] Override http request option.
1724
+ * @throws {RequiredError}
1725
+ * @memberof ReleaseApi
1726
+ */
1727
+ public getReleaseReleasesReleaseIdGet(releaseId: any, options?: RawAxiosRequestConfig) {
1728
+ return ReleaseApiFp(this.configuration).getReleaseReleasesReleaseIdGet(releaseId, options).then((request) => request(this.axios, this.basePath));
1729
+ }
1730
+
1731
+ /**
1732
+ * 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.
1733
+ * @summary Get Releases
1734
+ * @param {Array<any>} [id] Filter by Release IDs
1735
+ * @param {Array<any>} [id2] Filter by Release IDs (deprecated)
1736
+ * @param {Array<string>} [buildId] Filter by Build IDs
1737
+ * @param {Array<any>} [deviceId] Filter by Device IDs
1738
+ * @param {Array<any>} [maintainerId] Filter by Maintainer IDs
1739
+ * @param {Array<string>} [codename] Filter by device codenames
1740
+ * @param {Array<string>} [version] Filter by release version
1741
+ * @param {Array<ReleaseType>} [type] Filter by release type
1742
+ * @param {boolean | null} [archived] Filter by the archived status
1743
+ * @param {boolean | null} [freezed] Filter by the freezed status
1744
+ * @param { | null} [afterReleaseId] Show releases after the provided one
1745
+ * @param {number | null} [afterDate] Show releases after the provided timestamp
1746
+ * @param {ReleasesSort} [sort] Sort mode
1747
+ * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
1748
+ * @param {number | null} [skip] Skip query results
1749
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1750
+ * @param {*} [options] Override http request option.
1751
+ * @throws {RequiredError}
1752
+ * @memberof ReleaseApi
1753
+ */
1754
+ public getReleasesReleasesGet(id?: Array<any>, id2?: Array<any>, buildId?: Array<string>, deviceId?: Array<any>, maintainerId?: Array<any>, codename?: Array<string>, version?: Array<string>, type?: Array<ReleaseType>, archived?: boolean | null, freezed?: boolean | null, afterReleaseId?: | null, afterDate?: number | null, sort?: ReleasesSort, group?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig) {
1755
+ 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));
1756
+ }
1757
+
1758
+ /**
1759
+ * 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!
1760
+ * @summary Get Updates
1761
+ * @param {any} lastKnownId
1762
+ * @param {Array<any>} [deviceId] Filter by device ID
1763
+ * @param {Array<ReleaseType>} [type] Filter by release type
1764
+ * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
1765
+ * @param {number | null} [skip] Skip query results
1766
+ * @param {number | null} [limit] Limit query results (0 means unlimited)
1767
+ * @param {*} [options] Override http request option.
1768
+ * @deprecated
1769
+ * @throws {RequiredError}
1770
+ * @memberof ReleaseApi
1771
+ */
1772
+ public getUpdatesUpdatesLastKnownIdGet(lastKnownId: any, deviceId?: Array<any>, type?: Array<ReleaseType>, releaseType?: Array<ReleaseType>, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig) {
1773
+ return ReleaseApiFp(this.configuration).getUpdatesUpdatesLastKnownIdGet(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
1774
+ }
1775
+ }
1776
+
1777
+
1778
+
1779
+ /**
1780
+ * StatsApi - axios parameter creator
1781
+ * @export
1782
+ */
1783
+ export const StatsApiAxiosParamCreator = function (configuration?: Configuration) {
1784
+ return {
1785
+ /**
1786
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
1787
+ * @summary Public Stats
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ */
1791
+ publicStatsStatsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1792
+ const localVarPath = `/stats/`;
1793
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1794
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1795
+ let baseOptions;
1796
+ if (configuration) {
1797
+ baseOptions = configuration.baseOptions;
1798
+ }
1799
+
1800
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1801
+ const localVarHeaderParameter = {} as any;
1802
+ const localVarQueryParameter = {} as any;
1803
+
1804
+ // authentication oauth2_password required
1805
+ // oauth required
1806
+ await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
1807
+
1808
+ // authentication bearer_auth required
1809
+ // http bearer authentication required
1810
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1811
+
1812
+
1813
+
1814
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1815
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1816
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1817
+
1818
+ return {
1819
+ url: toPathString(localVarUrlObj),
1820
+ options: localVarRequestOptions,
1821
+ };
1822
+ },
1823
+ }
1824
+ };
1825
+
1826
+ /**
1827
+ * StatsApi - functional programming interface
1828
+ * @export
1829
+ */
1830
+ export const StatsApiFp = function(configuration?: Configuration) {
1831
+ const localVarAxiosParamCreator = StatsApiAxiosParamCreator(configuration)
1832
+ return {
1833
+ /**
1834
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
1835
+ * @summary Public Stats
1836
+ * @param {*} [options] Override http request option.
1837
+ * @throws {RequiredError}
1838
+ */
1839
+ async publicStatsStatsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GlobalStatsAggregationModel>> {
1840
+ const localVarAxiosArgs = await localVarAxiosParamCreator.publicStatsStatsGet(options);
1841
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1842
+ const localVarOperationServerBasePath = operationServerMap['StatsApi.publicStatsStatsGet']?.[localVarOperationServerIndex]?.url;
1843
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1844
+ },
1845
+ }
1846
+ };
1847
+
1848
+ /**
1849
+ * StatsApi - factory interface
1850
+ * @export
1851
+ */
1852
+ export const StatsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1853
+ const localVarFp = StatsApiFp(configuration)
1854
+ return {
1855
+ /**
1856
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
1857
+ * @summary Public Stats
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ publicStatsStatsGet(options?: RawAxiosRequestConfig): AxiosPromise<GlobalStatsAggregationModel> {
1862
+ return localVarFp.publicStatsStatsGet(options).then((request) => request(axios, basePath));
1863
+ },
1864
+ };
1865
+ };
1866
+
1867
+ /**
1868
+ * StatsApi - interface
1869
+ * @export
1870
+ * @interface StatsApi
1871
+ */
1872
+ export interface StatsApiInterface {
1873
+ /**
1874
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
1875
+ * @summary Public Stats
1876
+ * @param {*} [options] Override http request option.
1877
+ * @throws {RequiredError}
1878
+ * @memberof StatsApiInterface
1879
+ */
1880
+ publicStatsStatsGet(options?: RawAxiosRequestConfig): AxiosPromise<GlobalStatsAggregationModel>;
1881
+
1882
+ }
1883
+
1884
+ /**
1885
+ * StatsApi - object-oriented interface
1886
+ * @export
1887
+ * @class StatsApi
1888
+ * @extends {BaseAPI}
1889
+ */
1890
+ export class StatsApi extends BaseAPI implements StatsApiInterface {
1891
+ /**
1892
+ * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
1893
+ * @summary Public Stats
1894
+ * @param {*} [options] Override http request option.
1895
+ * @throws {RequiredError}
1896
+ * @memberof StatsApi
1897
+ */
1898
+ public publicStatsStatsGet(options?: RawAxiosRequestConfig) {
1899
+ return StatsApiFp(this.configuration).publicStatsStatsGet(options).then((request) => request(this.axios, this.basePath));
1900
+ }
1901
+ }
1902
+
1903
+
1904
+