@orangefox-recovery/foxclient 5.2.6 → 5.2.7

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 (189) hide show
  1. package/.openapi-generator/FILES +28 -30
  2. package/README.md +3 -65
  3. package/dist/apis/DeviceApi.d.ts +158 -0
  4. package/dist/apis/DeviceApi.js +188 -0
  5. package/dist/apis/PasteApi.d.ts +80 -0
  6. package/dist/apis/PasteApi.js +95 -0
  7. package/dist/apis/ReleaseApi.d.ts +188 -0
  8. package/dist/apis/ReleaseApi.js +226 -0
  9. package/dist/apis/StatsApi.d.ts +49 -0
  10. package/dist/apis/StatsApi.js +60 -0
  11. package/dist/apis/index.d.ts +4 -0
  12. package/dist/apis/index.js +22 -0
  13. package/dist/esm/apis/DeviceApi.d.ts +158 -0
  14. package/dist/esm/apis/DeviceApi.js +184 -0
  15. package/dist/esm/apis/PasteApi.d.ts +80 -0
  16. package/dist/esm/apis/PasteApi.js +91 -0
  17. package/dist/esm/apis/ReleaseApi.d.ts +188 -0
  18. package/dist/esm/apis/ReleaseApi.js +222 -0
  19. package/dist/esm/apis/StatsApi.d.ts +49 -0
  20. package/dist/esm/apis/StatsApi.js +56 -0
  21. package/dist/esm/apis/index.d.ts +4 -0
  22. package/dist/esm/apis/index.js +6 -0
  23. package/dist/esm/index.d.ts +3 -13
  24. package/dist/esm/index.js +3 -13
  25. package/dist/esm/models/DeviceResponse.d.ts +101 -0
  26. package/dist/esm/models/DeviceResponse.js +82 -0
  27. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +52 -0
  28. package/dist/esm/models/GlobalStatsAggregationModel.js +55 -0
  29. package/dist/esm/models/HTTPValidationError.d.ts +33 -0
  30. package/dist/esm/models/HTTPValidationError.js +42 -0
  31. package/dist/esm/models/ListResponseReleaseResponse.d.ts +39 -0
  32. package/dist/esm/models/ListResponseReleaseResponse.js +47 -0
  33. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +39 -0
  34. package/dist/esm/models/ListResponseShortDeviceResponse.js +47 -0
  35. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +39 -0
  36. package/dist/esm/models/ListResponseShortReleaseResponse.js +47 -0
  37. package/dist/esm/models/ListResponseStr.d.ts +38 -0
  38. package/dist/esm/models/ListResponseStr.js +46 -0
  39. package/dist/esm/models/MaintainerShortModel.d.ts +44 -0
  40. package/dist/esm/models/MaintainerShortModel.js +51 -0
  41. package/dist/esm/models/PasteInput.d.ts +50 -0
  42. package/dist/esm/models/PasteInput.js +51 -0
  43. package/dist/esm/models/PasteOutput.d.ts +50 -0
  44. package/dist/esm/models/PasteOutput.js +51 -0
  45. package/dist/esm/models/RecoveryImgResponse.d.ts +38 -0
  46. package/dist/esm/models/RecoveryImgResponse.js +47 -0
  47. package/dist/esm/models/ReleaseGroupsResponse.d.ts +35 -0
  48. package/dist/esm/models/ReleaseGroupsResponse.js +43 -0
  49. package/dist/esm/models/ReleaseResponse.d.ts +139 -0
  50. package/dist/esm/models/ReleaseResponse.js +107 -0
  51. package/dist/esm/models/ReleaseType.d.ts +26 -0
  52. package/dist/esm/models/ReleaseType.js +44 -0
  53. package/dist/esm/models/ReleasesSort.d.ts +25 -0
  54. package/dist/esm/models/ReleasesSort.js +43 -0
  55. package/dist/esm/models/ResponseGetReleases.d.ts +41 -0
  56. package/dist/esm/models/ResponseGetReleases.js +46 -0
  57. package/dist/esm/models/ShortDeviceResponse.d.ts +82 -0
  58. package/dist/esm/models/ShortDeviceResponse.js +73 -0
  59. package/dist/esm/models/ShortReleaseResponse.d.ts +100 -0
  60. package/dist/esm/models/ShortReleaseResponse.js +84 -0
  61. package/dist/esm/models/ValidationError.d.ts +45 -0
  62. package/dist/esm/models/ValidationError.js +52 -0
  63. package/dist/esm/models/ValidationErrorLocInner.d.ts +26 -0
  64. package/{index.ts → dist/esm/models/ValidationErrorLocInner.js} +20 -7
  65. package/dist/esm/models/index.d.ts +20 -0
  66. package/dist/esm/models/index.js +22 -0
  67. package/dist/esm/runtime.d.ts +184 -0
  68. package/dist/esm/runtime.js +334 -0
  69. package/dist/index.d.ts +3 -13
  70. package/dist/index.js +5 -15
  71. package/dist/models/DeviceResponse.d.ts +101 -0
  72. package/dist/models/DeviceResponse.js +89 -0
  73. package/dist/models/GlobalStatsAggregationModel.d.ts +52 -0
  74. package/dist/models/GlobalStatsAggregationModel.js +62 -0
  75. package/dist/models/HTTPValidationError.d.ts +33 -0
  76. package/dist/models/HTTPValidationError.js +49 -0
  77. package/dist/models/ListResponseReleaseResponse.d.ts +39 -0
  78. package/dist/models/ListResponseReleaseResponse.js +54 -0
  79. package/dist/models/ListResponseShortDeviceResponse.d.ts +39 -0
  80. package/dist/models/ListResponseShortDeviceResponse.js +54 -0
  81. package/dist/models/ListResponseShortReleaseResponse.d.ts +39 -0
  82. package/dist/models/ListResponseShortReleaseResponse.js +54 -0
  83. package/dist/models/ListResponseStr.d.ts +38 -0
  84. package/dist/models/ListResponseStr.js +53 -0
  85. package/dist/models/MaintainerShortModel.d.ts +44 -0
  86. package/dist/models/MaintainerShortModel.js +58 -0
  87. package/dist/models/PasteInput.d.ts +50 -0
  88. package/dist/models/PasteInput.js +58 -0
  89. package/dist/models/PasteOutput.d.ts +50 -0
  90. package/dist/models/PasteOutput.js +58 -0
  91. package/dist/models/RecoveryImgResponse.d.ts +38 -0
  92. package/dist/models/RecoveryImgResponse.js +54 -0
  93. package/dist/models/ReleaseGroupsResponse.d.ts +35 -0
  94. package/dist/models/ReleaseGroupsResponse.js +50 -0
  95. package/dist/models/ReleaseResponse.d.ts +139 -0
  96. package/dist/models/ReleaseResponse.js +114 -0
  97. package/dist/models/ReleaseType.d.ts +26 -0
  98. package/dist/models/ReleaseType.js +52 -0
  99. package/dist/models/ReleasesSort.d.ts +25 -0
  100. package/dist/models/ReleasesSort.js +51 -0
  101. package/dist/models/ResponseGetReleases.d.ts +41 -0
  102. package/dist/models/ResponseGetReleases.js +53 -0
  103. package/dist/models/ShortDeviceResponse.d.ts +82 -0
  104. package/dist/models/ShortDeviceResponse.js +80 -0
  105. package/dist/models/ShortReleaseResponse.d.ts +100 -0
  106. package/dist/models/ShortReleaseResponse.js +91 -0
  107. package/dist/models/ValidationError.d.ts +45 -0
  108. package/dist/models/ValidationError.js +59 -0
  109. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  110. package/dist/models/ValidationErrorLocInner.js +38 -0
  111. package/dist/models/index.d.ts +20 -0
  112. package/dist/models/index.js +38 -0
  113. package/dist/runtime.d.ts +184 -0
  114. package/dist/runtime.js +350 -0
  115. package/package.json +4 -17
  116. package/src/apis/DeviceApi.ts +326 -0
  117. package/src/apis/PasteApi.ts +158 -0
  118. package/src/apis/ReleaseApi.ts +414 -0
  119. package/src/apis/StatsApi.ts +82 -0
  120. package/src/apis/index.ts +6 -0
  121. package/src/index.ts +5 -0
  122. package/src/models/DeviceResponse.ts +171 -0
  123. package/src/models/GlobalStatsAggregationModel.ts +93 -0
  124. package/src/models/HTTPValidationError.ts +73 -0
  125. package/src/models/ListResponseReleaseResponse.ts +82 -0
  126. package/src/models/ListResponseShortDeviceResponse.ts +82 -0
  127. package/src/models/ListResponseShortReleaseResponse.ts +82 -0
  128. package/src/models/ListResponseStr.ts +74 -0
  129. package/src/models/MaintainerShortModel.ts +84 -0
  130. package/src/models/PasteInput.ts +91 -0
  131. package/src/models/PasteOutput.ts +91 -0
  132. package/src/models/RecoveryImgResponse.ts +75 -0
  133. package/src/models/ReleaseGroupsResponse.ts +74 -0
  134. package/src/models/ReleaseResponse.ts +233 -0
  135. package/src/models/ReleaseType.ts +54 -0
  136. package/src/models/ReleasesSort.ts +53 -0
  137. package/src/models/ResponseGetReleases.ts +96 -0
  138. package/src/models/ShortDeviceResponse.ts +138 -0
  139. package/src/models/ShortReleaseResponse.ts +174 -0
  140. package/src/models/ValidationError.ts +92 -0
  141. package/src/models/ValidationErrorLocInner.ts +46 -0
  142. package/src/models/index.ts +22 -0
  143. package/src/runtime.ts +432 -0
  144. package/tsconfig.json +2 -4
  145. package/api.ts +0 -2101
  146. package/base.ts +0 -86
  147. package/common.ts +0 -150
  148. package/configuration.ts +0 -115
  149. package/dist/api.d.ts +0 -1483
  150. package/dist/api.js +0 -1172
  151. package/dist/base.d.ts +0 -66
  152. package/dist/base.js +0 -65
  153. package/dist/common.d.ts +0 -65
  154. package/dist/common.js +0 -161
  155. package/dist/configuration.d.ts +0 -91
  156. package/dist/configuration.js +0 -44
  157. package/dist/esm/api.d.ts +0 -1483
  158. package/dist/esm/api.js +0 -1153
  159. package/dist/esm/base.d.ts +0 -66
  160. package/dist/esm/base.js +0 -60
  161. package/dist/esm/common.d.ts +0 -65
  162. package/dist/esm/common.js +0 -149
  163. package/dist/esm/configuration.d.ts +0 -91
  164. package/dist/esm/configuration.js +0 -40
  165. package/docs/DeviceApi.md +0 -251
  166. package/docs/DeviceResponse.md +0 -44
  167. package/docs/GlobalStatsAggregationModel.md +0 -26
  168. package/docs/HTTPValidationError.md +0 -20
  169. package/docs/ListResponseReleaseResponse.md +0 -22
  170. package/docs/ListResponseShortDeviceResponse.md +0 -22
  171. package/docs/ListResponseShortReleaseResponse.md +0 -22
  172. package/docs/ListResponseStr.md +0 -22
  173. package/docs/MaintainerShortModel.md +0 -26
  174. package/docs/PasteApi.md +0 -117
  175. package/docs/PasteInput.md +0 -26
  176. package/docs/PasteOutput.md +0 -26
  177. package/docs/RecoveryImgResponse.md +0 -22
  178. package/docs/ReleaseApi.md +0 -289
  179. package/docs/ReleaseGroupsResponse.md +0 -20
  180. package/docs/ReleaseResponse.md +0 -56
  181. package/docs/ReleaseType.md +0 -12
  182. package/docs/ReleasesSort.md +0 -10
  183. package/docs/ResponseGetReleases.md +0 -22
  184. package/docs/ShortDeviceResponse.md +0 -38
  185. package/docs/ShortReleaseResponse.md +0 -44
  186. package/docs/StatsApi.md +0 -53
  187. package/docs/ValidationError.md +0 -24
  188. package/docs/ValidationErrorLocInner.md +0 -18
  189. package/git_push.sh +0 -57
package/dist/esm/api.js DELETED
@@ -1,1153 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Fox API
5
- * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
- *
7
- * The version of the OpenAPI document: 5.2.6
8
- * Contact: admin@orangefox.tech
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- import globalAxios from 'axios';
24
- // Some imports not used depending on template conditions
25
- // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
- // @ts-ignore
28
- import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
- /**
30
- *
31
- * @export
32
- * @enum {string}
33
- */
34
- export const ReleaseType = {
35
- Stable: 'stable',
36
- Beta: 'beta',
37
- Alpha: 'alpha'
38
- };
39
- /**
40
- *
41
- * @export
42
- * @enum {string}
43
- */
44
- export const ReleasesSort = {
45
- DateAsc: 'date_asc',
46
- DateDesc: 'date_desc'
47
- };
48
- /**
49
- * DeviceApi - axios parameter creator
50
- * @export
51
- */
52
- export const DeviceApiAxiosParamCreator = function (configuration) {
53
- return {
54
- /**
55
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
56
- * @summary Get Device
57
- * @param {string | null} [deviceId]
58
- * @param {string | null} [id] Filter by Device ID (deprecated)
59
- * @param {string | null} [codename] Not recommended to use when you can
60
- * @param {*} [options] Override http request option.
61
- * @throws {RequiredError}
62
- */
63
- getDevice: (deviceId_1, id_1, codename_1, ...args_1) => __awaiter(this, [deviceId_1, id_1, codename_1, ...args_1], void 0, function* (deviceId, id, codename, options = {}) {
64
- const localVarPath = `/devices/get`;
65
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
- let baseOptions;
68
- if (configuration) {
69
- baseOptions = configuration.baseOptions;
70
- }
71
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
72
- const localVarHeaderParameter = {};
73
- const localVarQueryParameter = {};
74
- if (deviceId !== undefined) {
75
- localVarQueryParameter['device_id'] = deviceId;
76
- }
77
- if (id !== undefined) {
78
- localVarQueryParameter['_id'] = id;
79
- }
80
- if (codename !== undefined) {
81
- localVarQueryParameter['codename'] = codename;
82
- }
83
- setSearchParams(localVarUrlObj, localVarQueryParameter);
84
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
85
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
86
- return {
87
- url: toPathString(localVarUrlObj),
88
- options: localVarRequestOptions,
89
- };
90
- }),
91
- /**
92
- * Gets device info using device ID.
93
- * @summary Get Device Short
94
- * @param {string} deviceId
95
- * @param {*} [options] Override http request option.
96
- * @deprecated
97
- * @throws {RequiredError}
98
- */
99
- getDeviceDeprecated: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
100
- // verify required parameter 'deviceId' is not null or undefined
101
- assertParamExists('getDeviceDeprecated', 'deviceId', deviceId);
102
- const localVarPath = `/devices/{device_id}`
103
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
104
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
105
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
106
- let baseOptions;
107
- if (configuration) {
108
- baseOptions = configuration.baseOptions;
109
- }
110
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
111
- const localVarHeaderParameter = {};
112
- const localVarQueryParameter = {};
113
- setSearchParams(localVarUrlObj, localVarQueryParameter);
114
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
115
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
116
- return {
117
- url: toPathString(localVarUrlObj),
118
- options: localVarRequestOptions,
119
- };
120
- }),
121
- /**
122
- * 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.
123
- * @summary Get Devices
124
- * @param {Array<string>} [id] Filter by Device IDs
125
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
126
- * @param {Array<string>} [oemName] Filter by OEM names
127
- * @param {Array<string>} [codename] Filter by device codenames
128
- * @param {Array<string>} [modelName] Filter by model names
129
- * @param {boolean | null} [supported] Supported status
130
- * @param {Array<string>} [maintainer] Filter by maintainer ID
131
- * @param {boolean | null} [freezed] Filter by Freezed status
132
- * @param {boolean | null} [hasReleases] Filter by has releases status
133
- * @param {number | null} [skip] Skip query results
134
- * @param {number | null} [limit] Limit query results (0 means unlimited)
135
- * @param {*} [options] Override http request option.
136
- * @throws {RequiredError}
137
- */
138
- getDevices: (id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options = {}) {
139
- const localVarPath = `/devices/`;
140
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
141
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
142
- let baseOptions;
143
- if (configuration) {
144
- baseOptions = configuration.baseOptions;
145
- }
146
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
147
- const localVarHeaderParameter = {};
148
- const localVarQueryParameter = {};
149
- if (id) {
150
- localVarQueryParameter['id'] = id;
151
- }
152
- if (id2) {
153
- localVarQueryParameter['_id'] = id2;
154
- }
155
- if (oemName) {
156
- localVarQueryParameter['oem_name'] = oemName;
157
- }
158
- if (codename) {
159
- localVarQueryParameter['codename'] = codename;
160
- }
161
- if (modelName) {
162
- localVarQueryParameter['model_name'] = modelName;
163
- }
164
- if (supported !== undefined) {
165
- localVarQueryParameter['supported'] = supported;
166
- }
167
- if (maintainer) {
168
- localVarQueryParameter['maintainer'] = maintainer;
169
- }
170
- if (freezed !== undefined) {
171
- localVarQueryParameter['freezed'] = freezed;
172
- }
173
- if (hasReleases !== undefined) {
174
- localVarQueryParameter['has_releases'] = hasReleases;
175
- }
176
- if (skip !== undefined) {
177
- localVarQueryParameter['skip'] = skip;
178
- }
179
- if (limit !== undefined) {
180
- localVarQueryParameter['limit'] = limit;
181
- }
182
- setSearchParams(localVarUrlObj, localVarQueryParameter);
183
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
185
- return {
186
- url: toPathString(localVarUrlObj),
187
- options: localVarRequestOptions,
188
- };
189
- }),
190
- /**
191
- * Lists all OEM names
192
- * @summary Get Oems
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- */
196
- getOems: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
197
- const localVarPath = `/oems/`;
198
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
200
- let baseOptions;
201
- if (configuration) {
202
- baseOptions = configuration.baseOptions;
203
- }
204
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
205
- const localVarHeaderParameter = {};
206
- const localVarQueryParameter = {};
207
- setSearchParams(localVarUrlObj, localVarQueryParameter);
208
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
209
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
210
- return {
211
- url: toPathString(localVarUrlObj),
212
- options: localVarRequestOptions,
213
- };
214
- }),
215
- };
216
- };
217
- /**
218
- * DeviceApi - functional programming interface
219
- * @export
220
- */
221
- export const DeviceApiFp = function (configuration) {
222
- const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration);
223
- return {
224
- /**
225
- * 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.
226
- * @summary Get Device
227
- * @param {string | null} [deviceId]
228
- * @param {string | null} [id] Filter by Device ID (deprecated)
229
- * @param {string | null} [codename] Not recommended to use when you can
230
- * @param {*} [options] Override http request option.
231
- * @throws {RequiredError}
232
- */
233
- getDevice(deviceId, id, codename, options) {
234
- return __awaiter(this, void 0, void 0, function* () {
235
- var _a, _b, _c;
236
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevice(deviceId, id, codename, options);
237
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
238
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
239
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
240
- });
241
- },
242
- /**
243
- * Gets device info using device ID.
244
- * @summary Get Device Short
245
- * @param {string} deviceId
246
- * @param {*} [options] Override http request option.
247
- * @deprecated
248
- * @throws {RequiredError}
249
- */
250
- getDeviceDeprecated(deviceId, options) {
251
- return __awaiter(this, void 0, void 0, function* () {
252
- var _a, _b, _c;
253
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDeprecated(deviceId, options);
254
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
255
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDeviceDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
256
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
257
- });
258
- },
259
- /**
260
- * 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.
261
- * @summary Get Devices
262
- * @param {Array<string>} [id] Filter by Device IDs
263
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
264
- * @param {Array<string>} [oemName] Filter by OEM names
265
- * @param {Array<string>} [codename] Filter by device codenames
266
- * @param {Array<string>} [modelName] Filter by model names
267
- * @param {boolean | null} [supported] Supported status
268
- * @param {Array<string>} [maintainer] Filter by maintainer ID
269
- * @param {boolean | null} [freezed] Filter by Freezed status
270
- * @param {boolean | null} [hasReleases] Filter by has releases status
271
- * @param {number | null} [skip] Skip query results
272
- * @param {number | null} [limit] Limit query results (0 means unlimited)
273
- * @param {*} [options] Override http request option.
274
- * @throws {RequiredError}
275
- */
276
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
277
- return __awaiter(this, void 0, void 0, function* () {
278
- var _a, _b, _c;
279
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
280
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
281
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
282
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
283
- });
284
- },
285
- /**
286
- * Lists all OEM names
287
- * @summary Get Oems
288
- * @param {*} [options] Override http request option.
289
- * @throws {RequiredError}
290
- */
291
- getOems(options) {
292
- return __awaiter(this, void 0, void 0, function* () {
293
- var _a, _b, _c;
294
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOems(options);
295
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
296
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getOems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
297
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
298
- });
299
- },
300
- };
301
- };
302
- /**
303
- * DeviceApi - factory interface
304
- * @export
305
- */
306
- export const DeviceApiFactory = function (configuration, basePath, axios) {
307
- const localVarFp = DeviceApiFp(configuration);
308
- return {
309
- /**
310
- * 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.
311
- * @summary Get Device
312
- * @param {string | null} [deviceId]
313
- * @param {string | null} [id] Filter by Device ID (deprecated)
314
- * @param {string | null} [codename] Not recommended to use when you can
315
- * @param {*} [options] Override http request option.
316
- * @throws {RequiredError}
317
- */
318
- getDevice(deviceId, id, codename, options) {
319
- return localVarFp.getDevice(deviceId, id, codename, options).then((request) => request(axios, basePath));
320
- },
321
- /**
322
- * Gets device info using device ID.
323
- * @summary Get Device Short
324
- * @param {string} deviceId
325
- * @param {*} [options] Override http request option.
326
- * @deprecated
327
- * @throws {RequiredError}
328
- */
329
- getDeviceDeprecated(deviceId, options) {
330
- return localVarFp.getDeviceDeprecated(deviceId, options).then((request) => request(axios, basePath));
331
- },
332
- /**
333
- * 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.
334
- * @summary Get Devices
335
- * @param {Array<string>} [id] Filter by Device IDs
336
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
337
- * @param {Array<string>} [oemName] Filter by OEM names
338
- * @param {Array<string>} [codename] Filter by device codenames
339
- * @param {Array<string>} [modelName] Filter by model names
340
- * @param {boolean | null} [supported] Supported status
341
- * @param {Array<string>} [maintainer] Filter by maintainer ID
342
- * @param {boolean | null} [freezed] Filter by Freezed status
343
- * @param {boolean | null} [hasReleases] Filter by has releases status
344
- * @param {number | null} [skip] Skip query results
345
- * @param {number | null} [limit] Limit query results (0 means unlimited)
346
- * @param {*} [options] Override http request option.
347
- * @throws {RequiredError}
348
- */
349
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
350
- return localVarFp.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
351
- },
352
- /**
353
- * Lists all OEM names
354
- * @summary Get Oems
355
- * @param {*} [options] Override http request option.
356
- * @throws {RequiredError}
357
- */
358
- getOems(options) {
359
- return localVarFp.getOems(options).then((request) => request(axios, basePath));
360
- },
361
- };
362
- };
363
- /**
364
- * DeviceApi - object-oriented interface
365
- * @export
366
- * @class DeviceApi
367
- * @extends {BaseAPI}
368
- */
369
- export class DeviceApi extends BaseAPI {
370
- /**
371
- * 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.
372
- * @summary Get Device
373
- * @param {string | null} [deviceId]
374
- * @param {string | null} [id] Filter by Device ID (deprecated)
375
- * @param {string | null} [codename] Not recommended to use when you can
376
- * @param {*} [options] Override http request option.
377
- * @throws {RequiredError}
378
- * @memberof DeviceApi
379
- */
380
- getDevice(deviceId, id, codename, options) {
381
- return DeviceApiFp(this.configuration).getDevice(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
382
- }
383
- /**
384
- * Gets device info using device ID.
385
- * @summary Get Device Short
386
- * @param {string} deviceId
387
- * @param {*} [options] Override http request option.
388
- * @deprecated
389
- * @throws {RequiredError}
390
- * @memberof DeviceApi
391
- */
392
- getDeviceDeprecated(deviceId, options) {
393
- return DeviceApiFp(this.configuration).getDeviceDeprecated(deviceId, options).then((request) => request(this.axios, this.basePath));
394
- }
395
- /**
396
- * 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.
397
- * @summary Get Devices
398
- * @param {Array<string>} [id] Filter by Device IDs
399
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
400
- * @param {Array<string>} [oemName] Filter by OEM names
401
- * @param {Array<string>} [codename] Filter by device codenames
402
- * @param {Array<string>} [modelName] Filter by model names
403
- * @param {boolean | null} [supported] Supported status
404
- * @param {Array<string>} [maintainer] Filter by maintainer ID
405
- * @param {boolean | null} [freezed] Filter by Freezed status
406
- * @param {boolean | null} [hasReleases] Filter by has releases status
407
- * @param {number | null} [skip] Skip query results
408
- * @param {number | null} [limit] Limit query results (0 means unlimited)
409
- * @param {*} [options] Override http request option.
410
- * @throws {RequiredError}
411
- * @memberof DeviceApi
412
- */
413
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
414
- return DeviceApiFp(this.configuration).getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
415
- }
416
- /**
417
- * Lists all OEM names
418
- * @summary Get Oems
419
- * @param {*} [options] Override http request option.
420
- * @throws {RequiredError}
421
- * @memberof DeviceApi
422
- */
423
- getOems(options) {
424
- return DeviceApiFp(this.configuration).getOems(options).then((request) => request(this.axios, this.basePath));
425
- }
426
- }
427
- /**
428
- * PasteApi - axios parameter creator
429
- * @export
430
- */
431
- export const PasteApiAxiosParamCreator = function (configuration) {
432
- return {
433
- /**
434
- * Create a new paste.
435
- * @summary Create Paste
436
- * @param {PasteInput} pasteInput
437
- * @param {*} [options] Override http request option.
438
- * @throws {RequiredError}
439
- */
440
- createPastePastePost: (pasteInput_1, ...args_1) => __awaiter(this, [pasteInput_1, ...args_1], void 0, function* (pasteInput, options = {}) {
441
- // verify required parameter 'pasteInput' is not null or undefined
442
- assertParamExists('createPastePastePost', 'pasteInput', pasteInput);
443
- const localVarPath = `/paste/`;
444
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
445
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
446
- let baseOptions;
447
- if (configuration) {
448
- baseOptions = configuration.baseOptions;
449
- }
450
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
451
- const localVarHeaderParameter = {};
452
- const localVarQueryParameter = {};
453
- localVarHeaderParameter['Content-Type'] = 'application/json';
454
- setSearchParams(localVarUrlObj, localVarQueryParameter);
455
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
456
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
457
- localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration);
458
- return {
459
- url: toPathString(localVarUrlObj),
460
- options: localVarRequestOptions,
461
- };
462
- }),
463
- /**
464
- * Get a paste by ID.
465
- * @summary Get Paste
466
- * @param {string} pasteId
467
- * @param {*} [options] Override http request option.
468
- * @throws {RequiredError}
469
- */
470
- getPastePastePasteIdGet: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
471
- // verify required parameter 'pasteId' is not null or undefined
472
- assertParamExists('getPastePastePasteIdGet', 'pasteId', pasteId);
473
- const localVarPath = `/paste/{paste_id}`
474
- .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
475
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
476
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
477
- let baseOptions;
478
- if (configuration) {
479
- baseOptions = configuration.baseOptions;
480
- }
481
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
482
- const localVarHeaderParameter = {};
483
- const localVarQueryParameter = {};
484
- setSearchParams(localVarUrlObj, localVarQueryParameter);
485
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
487
- return {
488
- url: toPathString(localVarUrlObj),
489
- options: localVarRequestOptions,
490
- };
491
- }),
492
- };
493
- };
494
- /**
495
- * PasteApi - functional programming interface
496
- * @export
497
- */
498
- export const PasteApiFp = function (configuration) {
499
- const localVarAxiosParamCreator = PasteApiAxiosParamCreator(configuration);
500
- return {
501
- /**
502
- * Create a new paste.
503
- * @summary Create Paste
504
- * @param {PasteInput} pasteInput
505
- * @param {*} [options] Override http request option.
506
- * @throws {RequiredError}
507
- */
508
- createPastePastePost(pasteInput, options) {
509
- return __awaiter(this, void 0, void 0, function* () {
510
- var _a, _b, _c;
511
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
512
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
513
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PasteApi.createPastePastePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
514
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
515
- });
516
- },
517
- /**
518
- * Get a paste by ID.
519
- * @summary Get Paste
520
- * @param {string} pasteId
521
- * @param {*} [options] Override http request option.
522
- * @throws {RequiredError}
523
- */
524
- getPastePastePasteIdGet(pasteId, options) {
525
- return __awaiter(this, void 0, void 0, function* () {
526
- var _a, _b, _c;
527
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
528
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
529
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PasteApi.getPastePastePasteIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
530
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
531
- });
532
- },
533
- };
534
- };
535
- /**
536
- * PasteApi - factory interface
537
- * @export
538
- */
539
- export const PasteApiFactory = function (configuration, basePath, axios) {
540
- const localVarFp = PasteApiFp(configuration);
541
- return {
542
- /**
543
- * Create a new paste.
544
- * @summary Create Paste
545
- * @param {PasteInput} pasteInput
546
- * @param {*} [options] Override http request option.
547
- * @throws {RequiredError}
548
- */
549
- createPastePastePost(pasteInput, options) {
550
- return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
551
- },
552
- /**
553
- * Get a paste by ID.
554
- * @summary Get Paste
555
- * @param {string} pasteId
556
- * @param {*} [options] Override http request option.
557
- * @throws {RequiredError}
558
- */
559
- getPastePastePasteIdGet(pasteId, options) {
560
- return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
561
- },
562
- };
563
- };
564
- /**
565
- * PasteApi - object-oriented interface
566
- * @export
567
- * @class PasteApi
568
- * @extends {BaseAPI}
569
- */
570
- export class PasteApi extends BaseAPI {
571
- /**
572
- * Create a new paste.
573
- * @summary Create Paste
574
- * @param {PasteInput} pasteInput
575
- * @param {*} [options] Override http request option.
576
- * @throws {RequiredError}
577
- * @memberof PasteApi
578
- */
579
- createPastePastePost(pasteInput, options) {
580
- return PasteApiFp(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
581
- }
582
- /**
583
- * Get a paste by ID.
584
- * @summary Get Paste
585
- * @param {string} pasteId
586
- * @param {*} [options] Override http request option.
587
- * @throws {RequiredError}
588
- * @memberof PasteApi
589
- */
590
- getPastePastePasteIdGet(pasteId, options) {
591
- return PasteApiFp(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
592
- }
593
- }
594
- /**
595
- * ReleaseApi - axios parameter creator
596
- * @export
597
- */
598
- export const ReleaseApiAxiosParamCreator = function (configuration) {
599
- return {
600
- /**
601
- * 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!
602
- * @summary Get Release
603
- * @param {string | null} [releaseId] Release ID
604
- * @param {string | null} [id] Release ID (deprecated)
605
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
606
- * @param {string | null} [filename]
607
- * @param {*} [options] Override http request option.
608
- * @throws {RequiredError}
609
- */
610
- getRelease: (releaseId_1, id_1, buildId_1, filename_1, ...args_1) => __awaiter(this, [releaseId_1, id_1, buildId_1, filename_1, ...args_1], void 0, function* (releaseId, id, buildId, filename, options = {}) {
611
- const localVarPath = `/releases/get`;
612
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
613
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
614
- let baseOptions;
615
- if (configuration) {
616
- baseOptions = configuration.baseOptions;
617
- }
618
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
619
- const localVarHeaderParameter = {};
620
- const localVarQueryParameter = {};
621
- if (releaseId !== undefined) {
622
- localVarQueryParameter['release_id'] = releaseId;
623
- }
624
- if (id !== undefined) {
625
- localVarQueryParameter['_id'] = id;
626
- }
627
- if (buildId !== undefined) {
628
- localVarQueryParameter['build_id'] = buildId;
629
- }
630
- if (filename !== undefined) {
631
- localVarQueryParameter['filename'] = filename;
632
- }
633
- setSearchParams(localVarUrlObj, localVarQueryParameter);
634
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
635
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
636
- return {
637
- url: toPathString(localVarUrlObj),
638
- options: localVarRequestOptions,
639
- };
640
- }),
641
- /**
642
- * Gets release information using the release ID, nothing to discuss really.
643
- * @summary Get Release Short
644
- * @param {string} releaseId
645
- * @param {*} [options] Override http request option.
646
- * @deprecated
647
- * @throws {RequiredError}
648
- */
649
- getReleaseDeprecated: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
650
- // verify required parameter 'releaseId' is not null or undefined
651
- assertParamExists('getReleaseDeprecated', 'releaseId', releaseId);
652
- const localVarPath = `/releases/{release_id}`
653
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
654
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
655
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
656
- let baseOptions;
657
- if (configuration) {
658
- baseOptions = configuration.baseOptions;
659
- }
660
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
661
- const localVarHeaderParameter = {};
662
- const localVarQueryParameter = {};
663
- setSearchParams(localVarUrlObj, localVarQueryParameter);
664
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
665
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
666
- return {
667
- url: toPathString(localVarUrlObj),
668
- options: localVarRequestOptions,
669
- };
670
- }),
671
- /**
672
- * 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.
673
- * @summary Get Releases
674
- * @param {Array<string>} [id] Filter by Release IDs
675
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
676
- * @param {Array<string>} [buildId] Filter by Build IDs
677
- * @param {Array<string>} [deviceId] Filter by Device IDs
678
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
679
- * @param {Array<string>} [codename] Filter by device codenames
680
- * @param {Array<string>} [version] Filter by release version
681
- * @param {Array<ReleaseType>} [type] Filter by release type
682
- * @param {boolean | null} [archived] Filter by the archived status
683
- * @param {boolean | null} [freezed] Filter by the freezed status
684
- * @param {string | null} [afterReleaseId] Show releases after the provided one
685
- * @param {number | null} [afterDate] Show releases after the provided timestamp
686
- * @param {ReleasesSort} [sort] Sort mode
687
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
688
- * @param {number | null} [skip] Skip query results
689
- * @param {number | null} [limit] Limit query results (0 means unlimited)
690
- * @param {*} [options] Override http request option.
691
- * @throws {RequiredError}
692
- */
693
- getReleases: (id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options = {}) {
694
- const localVarPath = `/releases/`;
695
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
696
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
697
- let baseOptions;
698
- if (configuration) {
699
- baseOptions = configuration.baseOptions;
700
- }
701
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
702
- const localVarHeaderParameter = {};
703
- const localVarQueryParameter = {};
704
- if (id) {
705
- localVarQueryParameter['id'] = id;
706
- }
707
- if (id2) {
708
- localVarQueryParameter['_id'] = id2;
709
- }
710
- if (buildId) {
711
- localVarQueryParameter['build_id'] = buildId;
712
- }
713
- if (deviceId) {
714
- localVarQueryParameter['device_id'] = deviceId;
715
- }
716
- if (maintainerId) {
717
- localVarQueryParameter['maintainer_id'] = maintainerId;
718
- }
719
- if (codename) {
720
- localVarQueryParameter['codename'] = codename;
721
- }
722
- if (version) {
723
- localVarQueryParameter['version'] = version;
724
- }
725
- if (type) {
726
- localVarQueryParameter['type'] = type;
727
- }
728
- if (archived !== undefined) {
729
- localVarQueryParameter['archived'] = archived;
730
- }
731
- if (freezed !== undefined) {
732
- localVarQueryParameter['freezed'] = freezed;
733
- }
734
- if (afterReleaseId !== undefined) {
735
- localVarQueryParameter['after_release_id'] = afterReleaseId;
736
- }
737
- if (afterDate !== undefined) {
738
- localVarQueryParameter['after_date'] = afterDate;
739
- }
740
- if (sort !== undefined) {
741
- localVarQueryParameter['sort'] = sort;
742
- }
743
- if (group !== undefined) {
744
- localVarQueryParameter['group'] = group;
745
- }
746
- if (skip !== undefined) {
747
- localVarQueryParameter['skip'] = skip;
748
- }
749
- if (limit !== undefined) {
750
- localVarQueryParameter['limit'] = limit;
751
- }
752
- setSearchParams(localVarUrlObj, localVarQueryParameter);
753
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
754
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
755
- return {
756
- url: toPathString(localVarUrlObj),
757
- options: localVarRequestOptions,
758
- };
759
- }),
760
- /**
761
- * 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!
762
- * @summary Get Updates
763
- * @param {string} lastKnownId
764
- * @param {Array<string>} [deviceId] Filter by device ID
765
- * @param {Array<ReleaseType>} [type] Filter by release type
766
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
767
- * @param {number | null} [skip] Skip query results
768
- * @param {number | null} [limit] Limit query results (0 means unlimited)
769
- * @param {*} [options] Override http request option.
770
- * @deprecated
771
- * @throws {RequiredError}
772
- */
773
- getUpdatesDeprecated: (lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1) => __awaiter(this, [lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1], void 0, function* (lastKnownId, deviceId, type, releaseType, skip, limit, options = {}) {
774
- // verify required parameter 'lastKnownId' is not null or undefined
775
- assertParamExists('getUpdatesDeprecated', 'lastKnownId', lastKnownId);
776
- const localVarPath = `/updates/{last_known_id}`
777
- .replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
778
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
779
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
780
- let baseOptions;
781
- if (configuration) {
782
- baseOptions = configuration.baseOptions;
783
- }
784
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
785
- const localVarHeaderParameter = {};
786
- const localVarQueryParameter = {};
787
- if (deviceId) {
788
- localVarQueryParameter['device_id'] = deviceId;
789
- }
790
- if (type) {
791
- localVarQueryParameter['type'] = type;
792
- }
793
- if (releaseType) {
794
- localVarQueryParameter['release_type'] = releaseType;
795
- }
796
- if (skip !== undefined) {
797
- localVarQueryParameter['skip'] = skip;
798
- }
799
- if (limit !== undefined) {
800
- localVarQueryParameter['limit'] = limit;
801
- }
802
- setSearchParams(localVarUrlObj, localVarQueryParameter);
803
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
804
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
805
- return {
806
- url: toPathString(localVarUrlObj),
807
- options: localVarRequestOptions,
808
- };
809
- }),
810
- };
811
- };
812
- /**
813
- * ReleaseApi - functional programming interface
814
- * @export
815
- */
816
- export const ReleaseApiFp = function (configuration) {
817
- const localVarAxiosParamCreator = ReleaseApiAxiosParamCreator(configuration);
818
- return {
819
- /**
820
- * 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!
821
- * @summary Get Release
822
- * @param {string | null} [releaseId] Release ID
823
- * @param {string | null} [id] Release ID (deprecated)
824
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
825
- * @param {string | null} [filename]
826
- * @param {*} [options] Override http request option.
827
- * @throws {RequiredError}
828
- */
829
- getRelease(releaseId, id, buildId, filename, options) {
830
- return __awaiter(this, void 0, void 0, function* () {
831
- var _a, _b, _c;
832
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRelease(releaseId, id, buildId, filename, options);
833
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
834
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getRelease']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
835
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
836
- });
837
- },
838
- /**
839
- * Gets release information using the release ID, nothing to discuss really.
840
- * @summary Get Release Short
841
- * @param {string} releaseId
842
- * @param {*} [options] Override http request option.
843
- * @deprecated
844
- * @throws {RequiredError}
845
- */
846
- getReleaseDeprecated(releaseId, options) {
847
- return __awaiter(this, void 0, void 0, function* () {
848
- var _a, _b, _c;
849
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseDeprecated(releaseId, options);
850
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
851
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
852
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
853
- });
854
- },
855
- /**
856
- * 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.
857
- * @summary Get Releases
858
- * @param {Array<string>} [id] Filter by Release IDs
859
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
860
- * @param {Array<string>} [buildId] Filter by Build IDs
861
- * @param {Array<string>} [deviceId] Filter by Device IDs
862
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
863
- * @param {Array<string>} [codename] Filter by device codenames
864
- * @param {Array<string>} [version] Filter by release version
865
- * @param {Array<ReleaseType>} [type] Filter by release type
866
- * @param {boolean | null} [archived] Filter by the archived status
867
- * @param {boolean | null} [freezed] Filter by the freezed status
868
- * @param {string | null} [afterReleaseId] Show releases after the provided one
869
- * @param {number | null} [afterDate] Show releases after the provided timestamp
870
- * @param {ReleasesSort} [sort] Sort mode
871
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
872
- * @param {number | null} [skip] Skip query results
873
- * @param {number | null} [limit] Limit query results (0 means unlimited)
874
- * @param {*} [options] Override http request option.
875
- * @throws {RequiredError}
876
- */
877
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
878
- return __awaiter(this, void 0, void 0, function* () {
879
- var _a, _b, _c;
880
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
881
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
882
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
883
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
884
- });
885
- },
886
- /**
887
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
888
- * @summary Get Updates
889
- * @param {string} lastKnownId
890
- * @param {Array<string>} [deviceId] Filter by device ID
891
- * @param {Array<ReleaseType>} [type] Filter by release type
892
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
893
- * @param {number | null} [skip] Skip query results
894
- * @param {number | null} [limit] Limit query results (0 means unlimited)
895
- * @param {*} [options] Override http request option.
896
- * @deprecated
897
- * @throws {RequiredError}
898
- */
899
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
900
- return __awaiter(this, void 0, void 0, function* () {
901
- var _a, _b, _c;
902
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options);
903
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
904
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getUpdatesDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
905
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
906
- });
907
- },
908
- };
909
- };
910
- /**
911
- * ReleaseApi - factory interface
912
- * @export
913
- */
914
- export const ReleaseApiFactory = function (configuration, basePath, axios) {
915
- const localVarFp = ReleaseApiFp(configuration);
916
- return {
917
- /**
918
- * 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!
919
- * @summary Get Release
920
- * @param {string | null} [releaseId] Release ID
921
- * @param {string | null} [id] Release ID (deprecated)
922
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
923
- * @param {string | null} [filename]
924
- * @param {*} [options] Override http request option.
925
- * @throws {RequiredError}
926
- */
927
- getRelease(releaseId, id, buildId, filename, options) {
928
- return localVarFp.getRelease(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
929
- },
930
- /**
931
- * Gets release information using the release ID, nothing to discuss really.
932
- * @summary Get Release Short
933
- * @param {string} releaseId
934
- * @param {*} [options] Override http request option.
935
- * @deprecated
936
- * @throws {RequiredError}
937
- */
938
- getReleaseDeprecated(releaseId, options) {
939
- return localVarFp.getReleaseDeprecated(releaseId, options).then((request) => request(axios, basePath));
940
- },
941
- /**
942
- * 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.
943
- * @summary Get Releases
944
- * @param {Array<string>} [id] Filter by Release IDs
945
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
946
- * @param {Array<string>} [buildId] Filter by Build IDs
947
- * @param {Array<string>} [deviceId] Filter by Device IDs
948
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
949
- * @param {Array<string>} [codename] Filter by device codenames
950
- * @param {Array<string>} [version] Filter by release version
951
- * @param {Array<ReleaseType>} [type] Filter by release type
952
- * @param {boolean | null} [archived] Filter by the archived status
953
- * @param {boolean | null} [freezed] Filter by the freezed status
954
- * @param {string | null} [afterReleaseId] Show releases after the provided one
955
- * @param {number | null} [afterDate] Show releases after the provided timestamp
956
- * @param {ReleasesSort} [sort] Sort mode
957
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
958
- * @param {number | null} [skip] Skip query results
959
- * @param {number | null} [limit] Limit query results (0 means unlimited)
960
- * @param {*} [options] Override http request option.
961
- * @throws {RequiredError}
962
- */
963
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
964
- return localVarFp.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(axios, basePath));
965
- },
966
- /**
967
- * 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!
968
- * @summary Get Updates
969
- * @param {string} lastKnownId
970
- * @param {Array<string>} [deviceId] Filter by device ID
971
- * @param {Array<ReleaseType>} [type] Filter by release type
972
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
973
- * @param {number | null} [skip] Skip query results
974
- * @param {number | null} [limit] Limit query results (0 means unlimited)
975
- * @param {*} [options] Override http request option.
976
- * @deprecated
977
- * @throws {RequiredError}
978
- */
979
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
980
- return localVarFp.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
981
- },
982
- };
983
- };
984
- /**
985
- * ReleaseApi - object-oriented interface
986
- * @export
987
- * @class ReleaseApi
988
- * @extends {BaseAPI}
989
- */
990
- export class ReleaseApi extends BaseAPI {
991
- /**
992
- * 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!
993
- * @summary Get Release
994
- * @param {string | null} [releaseId] Release ID
995
- * @param {string | null} [id] Release ID (deprecated)
996
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
997
- * @param {string | null} [filename]
998
- * @param {*} [options] Override http request option.
999
- * @throws {RequiredError}
1000
- * @memberof ReleaseApi
1001
- */
1002
- getRelease(releaseId, id, buildId, filename, options) {
1003
- return ReleaseApiFp(this.configuration).getRelease(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
1004
- }
1005
- /**
1006
- * Gets release information using the release ID, nothing to discuss really.
1007
- * @summary Get Release Short
1008
- * @param {string} releaseId
1009
- * @param {*} [options] Override http request option.
1010
- * @deprecated
1011
- * @throws {RequiredError}
1012
- * @memberof ReleaseApi
1013
- */
1014
- getReleaseDeprecated(releaseId, options) {
1015
- return ReleaseApiFp(this.configuration).getReleaseDeprecated(releaseId, options).then((request) => request(this.axios, this.basePath));
1016
- }
1017
- /**
1018
- * 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.
1019
- * @summary Get Releases
1020
- * @param {Array<string>} [id] Filter by Release IDs
1021
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
1022
- * @param {Array<string>} [buildId] Filter by Build IDs
1023
- * @param {Array<string>} [deviceId] Filter by Device IDs
1024
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
1025
- * @param {Array<string>} [codename] Filter by device codenames
1026
- * @param {Array<string>} [version] Filter by release version
1027
- * @param {Array<ReleaseType>} [type] Filter by release type
1028
- * @param {boolean | null} [archived] Filter by the archived status
1029
- * @param {boolean | null} [freezed] Filter by the freezed status
1030
- * @param {string | null} [afterReleaseId] Show releases after the provided one
1031
- * @param {number | null} [afterDate] Show releases after the provided timestamp
1032
- * @param {ReleasesSort} [sort] Sort mode
1033
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
1034
- * @param {number | null} [skip] Skip query results
1035
- * @param {number | null} [limit] Limit query results (0 means unlimited)
1036
- * @param {*} [options] Override http request option.
1037
- * @throws {RequiredError}
1038
- * @memberof ReleaseApi
1039
- */
1040
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
1041
- return ReleaseApiFp(this.configuration).getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(this.axios, this.basePath));
1042
- }
1043
- /**
1044
- * 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!
1045
- * @summary Get Updates
1046
- * @param {string} lastKnownId
1047
- * @param {Array<string>} [deviceId] Filter by device ID
1048
- * @param {Array<ReleaseType>} [type] Filter by release type
1049
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
1050
- * @param {number | null} [skip] Skip query results
1051
- * @param {number | null} [limit] Limit query results (0 means unlimited)
1052
- * @param {*} [options] Override http request option.
1053
- * @deprecated
1054
- * @throws {RequiredError}
1055
- * @memberof ReleaseApi
1056
- */
1057
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
1058
- return ReleaseApiFp(this.configuration).getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
1059
- }
1060
- }
1061
- /**
1062
- * StatsApi - axios parameter creator
1063
- * @export
1064
- */
1065
- export const StatsApiAxiosParamCreator = function (configuration) {
1066
- return {
1067
- /**
1068
- * 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.
1069
- * @summary Public Stats
1070
- * @param {*} [options] Override http request option.
1071
- * @throws {RequiredError}
1072
- */
1073
- getPublicStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1074
- const localVarPath = `/stats/`;
1075
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1076
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1077
- let baseOptions;
1078
- if (configuration) {
1079
- baseOptions = configuration.baseOptions;
1080
- }
1081
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1082
- const localVarHeaderParameter = {};
1083
- const localVarQueryParameter = {};
1084
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1085
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1086
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1087
- return {
1088
- url: toPathString(localVarUrlObj),
1089
- options: localVarRequestOptions,
1090
- };
1091
- }),
1092
- };
1093
- };
1094
- /**
1095
- * StatsApi - functional programming interface
1096
- * @export
1097
- */
1098
- export const StatsApiFp = function (configuration) {
1099
- const localVarAxiosParamCreator = StatsApiAxiosParamCreator(configuration);
1100
- return {
1101
- /**
1102
- * 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.
1103
- * @summary Public Stats
1104
- * @param {*} [options] Override http request option.
1105
- * @throws {RequiredError}
1106
- */
1107
- getPublicStats(options) {
1108
- return __awaiter(this, void 0, void 0, function* () {
1109
- var _a, _b, _c;
1110
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicStats(options);
1111
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1112
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StatsApi.getPublicStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1113
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1114
- });
1115
- },
1116
- };
1117
- };
1118
- /**
1119
- * StatsApi - factory interface
1120
- * @export
1121
- */
1122
- export const StatsApiFactory = function (configuration, basePath, axios) {
1123
- const localVarFp = StatsApiFp(configuration);
1124
- return {
1125
- /**
1126
- * 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.
1127
- * @summary Public Stats
1128
- * @param {*} [options] Override http request option.
1129
- * @throws {RequiredError}
1130
- */
1131
- getPublicStats(options) {
1132
- return localVarFp.getPublicStats(options).then((request) => request(axios, basePath));
1133
- },
1134
- };
1135
- };
1136
- /**
1137
- * StatsApi - object-oriented interface
1138
- * @export
1139
- * @class StatsApi
1140
- * @extends {BaseAPI}
1141
- */
1142
- export class StatsApi extends BaseAPI {
1143
- /**
1144
- * 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.
1145
- * @summary Public Stats
1146
- * @param {*} [options] Override http request option.
1147
- * @throws {RequiredError}
1148
- * @memberof StatsApi
1149
- */
1150
- getPublicStats(options) {
1151
- return StatsApiFp(this.configuration).getPublicStats(options).then((request) => request(this.axios, this.basePath));
1152
- }
1153
- }