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