@orangefox-recovery/foxclient 5.4.0 → 6.0.4

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 (212) hide show
  1. package/.openapi-generator/FILES +20 -22
  2. package/README.md +29 -37
  3. package/dist/apis/DeviceApi.d.ts +89 -107
  4. package/dist/apis/DeviceApi.js +60 -71
  5. package/dist/apis/PasteApi.d.ts +33 -39
  6. package/dist/apis/PasteApi.js +23 -27
  7. package/dist/apis/ReleaseApi.d.ts +145 -143
  8. package/dist/apis/ReleaseApi.js +108 -95
  9. package/dist/apis/ReportApi.d.ts +64 -0
  10. package/dist/apis/ReportApi.js +89 -0
  11. package/dist/apis/StatsApi.d.ts +19 -19
  12. package/dist/apis/StatsApi.js +14 -14
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/esm/apis/DeviceApi.d.ts +89 -107
  16. package/dist/esm/apis/DeviceApi.js +61 -72
  17. package/dist/esm/apis/PasteApi.d.ts +33 -39
  18. package/dist/esm/apis/PasteApi.js +24 -28
  19. package/dist/esm/apis/ReleaseApi.d.ts +145 -143
  20. package/dist/esm/apis/ReleaseApi.js +109 -96
  21. package/dist/esm/apis/ReportApi.d.ts +64 -0
  22. package/dist/esm/apis/ReportApi.js +85 -0
  23. package/dist/esm/apis/StatsApi.d.ts +19 -19
  24. package/dist/esm/apis/StatsApi.js +15 -15
  25. package/dist/esm/apis/index.d.ts +1 -0
  26. package/dist/esm/apis/index.js +1 -0
  27. package/dist/esm/models/DeviceResponse.d.ts +33 -29
  28. package/dist/esm/models/DeviceResponse.js +34 -26
  29. package/dist/esm/models/ErrorResponse.d.ts +32 -0
  30. package/dist/esm/models/ErrorResponse.js +43 -0
  31. package/dist/esm/models/GlobalStatsResponse.d.ts +52 -0
  32. package/dist/esm/models/{GlobalStatsAggregationModel.js → GlobalStatsResponse.js} +14 -14
  33. package/dist/esm/models/ListResponseReleaseResponse.d.ts +8 -8
  34. package/dist/esm/models/ListResponseReleaseResponse.js +8 -7
  35. package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
  36. package/dist/esm/models/ListResponseReleaseResponseDataInner.js +114 -0
  37. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +8 -8
  38. package/dist/esm/models/ListResponseShortDeviceResponse.js +8 -7
  39. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
  40. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +85 -0
  41. package/dist/esm/models/ListResponseString.d.ts +38 -0
  42. package/dist/esm/models/ListResponseString.js +47 -0
  43. package/dist/esm/models/MaintainerShortResponse.d.ts +50 -0
  44. package/dist/esm/models/MaintainerShortResponse.js +55 -0
  45. package/dist/esm/models/NewReportRequest.d.ts +58 -0
  46. package/dist/esm/models/NewReportRequest.js +55 -0
  47. package/dist/esm/models/PasteInput.d.ts +3 -3
  48. package/dist/esm/models/PasteInput.js +2 -2
  49. package/dist/esm/models/PasteResponse.d.ts +50 -0
  50. package/dist/esm/models/PasteResponse.js +53 -0
  51. package/dist/esm/models/RecoveryImgResponse.d.ts +6 -6
  52. package/dist/esm/models/RecoveryImgResponse.js +6 -6
  53. package/dist/esm/models/ReleaseGroupsResponse.d.ts +2 -2
  54. package/dist/esm/models/ReleaseGroupsResponse.js +2 -2
  55. package/dist/esm/models/ReleaseResponse.d.ts +46 -42
  56. package/dist/esm/models/ReleaseResponse.js +45 -44
  57. package/dist/esm/models/ShortDeviceResponse.d.ts +29 -25
  58. package/dist/esm/models/ShortDeviceResponse.js +26 -18
  59. package/dist/esm/models/ShortReleaseResponse.d.ts +31 -27
  60. package/dist/esm/models/ShortReleaseResponse.js +35 -32
  61. package/dist/esm/models/TokenResponse.d.ts +38 -0
  62. package/dist/esm/models/TokenResponse.js +47 -0
  63. package/dist/esm/models/index.d.ts +9 -11
  64. package/dist/esm/models/index.js +9 -11
  65. package/dist/esm/runtime.d.ts +2 -2
  66. package/dist/esm/runtime.js +2 -2
  67. package/dist/models/DeviceResponse.d.ts +33 -29
  68. package/dist/models/DeviceResponse.js +34 -26
  69. package/dist/models/ErrorResponse.d.ts +32 -0
  70. package/dist/models/ErrorResponse.js +50 -0
  71. package/dist/models/GlobalStatsResponse.d.ts +52 -0
  72. package/dist/models/GlobalStatsResponse.js +62 -0
  73. package/dist/models/ListResponseReleaseResponse.d.ts +8 -8
  74. package/dist/models/ListResponseReleaseResponse.js +8 -7
  75. package/dist/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
  76. package/dist/models/ListResponseReleaseResponseDataInner.js +121 -0
  77. package/dist/models/ListResponseShortDeviceResponse.d.ts +8 -8
  78. package/dist/models/ListResponseShortDeviceResponse.js +8 -7
  79. package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
  80. package/dist/models/ListResponseShortDeviceResponseDataInner.js +92 -0
  81. package/dist/models/ListResponseString.d.ts +38 -0
  82. package/dist/models/ListResponseString.js +54 -0
  83. package/dist/models/MaintainerShortResponse.d.ts +50 -0
  84. package/dist/models/MaintainerShortResponse.js +62 -0
  85. package/dist/models/NewReportRequest.d.ts +58 -0
  86. package/dist/models/NewReportRequest.js +62 -0
  87. package/dist/models/PasteInput.d.ts +3 -3
  88. package/dist/models/PasteInput.js +2 -2
  89. package/dist/models/PasteResponse.d.ts +50 -0
  90. package/dist/models/PasteResponse.js +60 -0
  91. package/dist/models/RecoveryImgResponse.d.ts +6 -6
  92. package/dist/models/RecoveryImgResponse.js +6 -6
  93. package/dist/models/ReleaseGroupsResponse.d.ts +2 -2
  94. package/dist/models/ReleaseGroupsResponse.js +2 -2
  95. package/dist/models/ReleaseResponse.d.ts +46 -42
  96. package/dist/models/ReleaseResponse.js +45 -44
  97. package/dist/models/ShortDeviceResponse.d.ts +29 -25
  98. package/dist/models/ShortDeviceResponse.js +26 -18
  99. package/dist/models/ShortReleaseResponse.d.ts +31 -27
  100. package/dist/models/ShortReleaseResponse.js +35 -32
  101. package/dist/models/TokenResponse.d.ts +38 -0
  102. package/dist/models/TokenResponse.js +54 -0
  103. package/dist/models/index.d.ts +9 -11
  104. package/dist/models/index.js +9 -11
  105. package/dist/runtime.d.ts +2 -2
  106. package/dist/runtime.js +2 -2
  107. package/docs/DeviceApi.md +83 -90
  108. package/docs/DeviceResponse.md +19 -17
  109. package/docs/{LocationInner.md → ErrorResponse.md} +6 -4
  110. package/docs/{GlobalStatsAggregationModel.md → GlobalStatsResponse.md} +6 -6
  111. package/docs/ListResponseReleaseResponse.md +2 -2
  112. package/docs/ListResponseReleaseResponseDataInner.md +74 -0
  113. package/docs/ListResponseShortDeviceResponse.md +2 -2
  114. package/docs/ListResponseShortDeviceResponseDataInner.md +56 -0
  115. package/docs/{ListResponseStr.md → ListResponseString.md} +6 -6
  116. package/docs/{MaintainerShortModel.md → MaintainerShortResponse.md} +9 -7
  117. package/docs/{HTTPValidationError.md → NewReportRequest.md} +14 -6
  118. package/docs/PasteApi.md +25 -29
  119. package/docs/{PasteOutput.md → PasteResponse.md} +7 -7
  120. package/docs/RecoveryImgResponse.md +2 -2
  121. package/docs/ReleaseApi.md +176 -118
  122. package/docs/ReleaseResponse.md +28 -26
  123. package/docs/ReportApi.md +84 -0
  124. package/docs/ShortDeviceResponse.md +14 -12
  125. package/docs/ShortReleaseResponse.md +22 -20
  126. package/docs/StatsApi.md +10 -10
  127. package/docs/{ReleasesSort.md → TokenResponse.md} +8 -4
  128. package/package.json +3 -12
  129. package/src/apis/DeviceApi.ts +130 -148
  130. package/src/apis/PasteApi.ts +47 -53
  131. package/src/apis/ReleaseApi.ts +237 -228
  132. package/src/apis/ReportApi.ts +139 -0
  133. package/src/apis/StatsApi.ts +28 -25
  134. package/src/apis/index.ts +1 -0
  135. package/src/models/DeviceResponse.ts +65 -55
  136. package/src/models/ErrorResponse.ts +66 -0
  137. package/src/models/GlobalStatsResponse.ts +93 -0
  138. package/src/models/ListResponseReleaseResponse.ts +17 -16
  139. package/src/models/ListResponseReleaseResponseDataInner.ts +249 -0
  140. package/src/models/ListResponseShortDeviceResponse.ts +17 -16
  141. package/src/models/ListResponseShortDeviceResponseDataInner.ts +164 -0
  142. package/src/models/ListResponseString.ts +75 -0
  143. package/src/models/MaintainerShortResponse.ts +93 -0
  144. package/src/models/NewReportRequest.ts +100 -0
  145. package/src/models/PasteInput.ts +3 -3
  146. package/src/models/PasteResponse.ts +92 -0
  147. package/src/models/RecoveryImgResponse.ts +9 -9
  148. package/src/models/ReleaseGroupsResponse.ts +2 -2
  149. package/src/models/ReleaseResponse.ts +85 -86
  150. package/src/models/ShortDeviceResponse.ts +50 -40
  151. package/src/models/ShortReleaseResponse.ts +62 -64
  152. package/src/models/TokenResponse.ts +75 -0
  153. package/src/models/index.ts +9 -11
  154. package/src/runtime.ts +2 -2
  155. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +0 -52
  156. package/dist/esm/models/HTTPValidationError.d.ts +0 -33
  157. package/dist/esm/models/HTTPValidationError.js +0 -42
  158. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +0 -39
  159. package/dist/esm/models/ListResponseShortReleaseResponse.js +0 -47
  160. package/dist/esm/models/ListResponseStr.d.ts +0 -38
  161. package/dist/esm/models/ListResponseStr.js +0 -46
  162. package/dist/esm/models/LocationInner.d.ts +0 -26
  163. package/dist/esm/models/LocationInner.js +0 -31
  164. package/dist/esm/models/MaintainerShortModel.d.ts +0 -44
  165. package/dist/esm/models/MaintainerShortModel.js +0 -51
  166. package/dist/esm/models/PasteOutput.d.ts +0 -50
  167. package/dist/esm/models/PasteOutput.js +0 -53
  168. package/dist/esm/models/ReleaseType.d.ts +0 -26
  169. package/dist/esm/models/ReleaseType.js +0 -44
  170. package/dist/esm/models/ReleasesSort.d.ts +0 -25
  171. package/dist/esm/models/ReleasesSort.js +0 -43
  172. package/dist/esm/models/ResponseGetReleases.d.ts +0 -41
  173. package/dist/esm/models/ResponseGetReleases.js +0 -46
  174. package/dist/esm/models/ValidationError.d.ts +0 -57
  175. package/dist/esm/models/ValidationError.js +0 -56
  176. package/dist/models/GlobalStatsAggregationModel.d.ts +0 -52
  177. package/dist/models/GlobalStatsAggregationModel.js +0 -62
  178. package/dist/models/HTTPValidationError.d.ts +0 -33
  179. package/dist/models/HTTPValidationError.js +0 -49
  180. package/dist/models/ListResponseShortReleaseResponse.d.ts +0 -39
  181. package/dist/models/ListResponseShortReleaseResponse.js +0 -54
  182. package/dist/models/ListResponseStr.d.ts +0 -38
  183. package/dist/models/ListResponseStr.js +0 -53
  184. package/dist/models/LocationInner.d.ts +0 -26
  185. package/dist/models/LocationInner.js +0 -38
  186. package/dist/models/MaintainerShortModel.d.ts +0 -44
  187. package/dist/models/MaintainerShortModel.js +0 -58
  188. package/dist/models/PasteOutput.d.ts +0 -50
  189. package/dist/models/PasteOutput.js +0 -60
  190. package/dist/models/ReleaseType.d.ts +0 -26
  191. package/dist/models/ReleaseType.js +0 -52
  192. package/dist/models/ReleasesSort.d.ts +0 -25
  193. package/dist/models/ReleasesSort.js +0 -51
  194. package/dist/models/ResponseGetReleases.d.ts +0 -41
  195. package/dist/models/ResponseGetReleases.js +0 -53
  196. package/dist/models/ValidationError.d.ts +0 -57
  197. package/dist/models/ValidationError.js +0 -63
  198. package/docs/ListResponseShortReleaseResponse.md +0 -36
  199. package/docs/ReleaseType.md +0 -32
  200. package/docs/ResponseGetReleases.md +0 -36
  201. package/docs/ValidationError.md +0 -42
  202. package/src/models/GlobalStatsAggregationModel.ts +0 -93
  203. package/src/models/HTTPValidationError.ts +0 -73
  204. package/src/models/ListResponseShortReleaseResponse.ts +0 -82
  205. package/src/models/ListResponseStr.ts +0 -74
  206. package/src/models/LocationInner.ts +0 -46
  207. package/src/models/MaintainerShortModel.ts +0 -84
  208. package/src/models/PasteOutput.ts +0 -92
  209. package/src/models/ReleaseType.ts +0 -54
  210. package/src/models/ReleasesSort.ts +0 -53
  211. package/src/models/ResponseGetReleases.ts +0 -96
  212. package/src/models/ValidationError.ts +0 -108
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
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.
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
7
  *
8
- * The version of the OpenAPI document: 5.4.0
8
+ * The version of the OpenAPI document: 6.0.4
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,12 +38,12 @@ class DeviceApi extends runtime.BaseAPI {
38
38
  if (requestParameters['deviceId'] != null) {
39
39
  queryParameters['device_id'] = requestParameters['deviceId'];
40
40
  }
41
- if (requestParameters['id'] != null) {
42
- queryParameters['_id'] = requestParameters['id'];
43
- }
44
41
  if (requestParameters['codename'] != null) {
45
42
  queryParameters['codename'] = requestParameters['codename'];
46
43
  }
44
+ if (requestParameters['id'] != null) {
45
+ queryParameters['_id'] = requestParameters['id'];
46
+ }
47
47
  const headerParameters = {};
48
48
  let urlPath = `/devices/get`;
49
49
  return {
@@ -55,8 +55,7 @@ class DeviceApi extends runtime.BaseAPI {
55
55
  });
56
56
  }
57
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
- * Get Device
58
+ * GET /devices/get - Get a single device by device_id, codename, or _id.
60
59
  */
61
60
  getDeviceRaw(requestParameters, initOverrides) {
62
61
  return __awaiter(this, void 0, void 0, function* () {
@@ -66,8 +65,7 @@ class DeviceApi extends runtime.BaseAPI {
66
65
  });
67
66
  }
68
67
  /**
69
- * 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.
70
- * Get Device
68
+ * GET /devices/get - Get a single device by device_id, codename, or _id.
71
69
  */
72
70
  getDevice() {
73
71
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
@@ -76,13 +74,12 @@ class DeviceApi extends runtime.BaseAPI {
76
74
  });
77
75
  }
78
76
  /**
79
- * Creates request options for getDeviceDeprecated without sending the request
80
- * @deprecated
77
+ * Creates request options for getDeviceById without sending the request
81
78
  */
82
- getDeviceDeprecatedRequestOpts(requestParameters) {
79
+ getDeviceByIdRequestOpts(requestParameters) {
83
80
  return __awaiter(this, void 0, void 0, function* () {
84
81
  if (requestParameters['deviceId'] == null) {
85
- throw new runtime.RequiredError('deviceId', 'Required parameter "deviceId" was null or undefined when calling getDeviceDeprecated().');
82
+ throw new runtime.RequiredError('deviceId', 'Required parameter "deviceId" was null or undefined when calling getDeviceById().');
86
83
  }
87
84
  const queryParameters = {};
88
85
  const headerParameters = {};
@@ -97,32 +94,63 @@ class DeviceApi extends runtime.BaseAPI {
97
94
  });
98
95
  }
99
96
  /**
100
- * Gets device info using device ID.
101
- * Get Device Short
102
- * @deprecated
97
+ * GET /devices/{device_id} - Get device by ID (deprecated).
103
98
  */
104
- getDeviceDeprecatedRaw(requestParameters, initOverrides) {
99
+ getDeviceByIdRaw(requestParameters, initOverrides) {
105
100
  return __awaiter(this, void 0, void 0, function* () {
106
- const requestOptions = yield this.getDeviceDeprecatedRequestOpts(requestParameters);
101
+ const requestOptions = yield this.getDeviceByIdRequestOpts(requestParameters);
107
102
  const response = yield this.request(requestOptions, initOverrides);
108
103
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeviceResponseFromJSON)(jsonValue));
109
104
  });
110
105
  }
111
106
  /**
112
- * Gets device info using device ID.
113
- * Get Device Short
114
- * @deprecated
107
+ * GET /devices/{device_id} - Get device by ID (deprecated).
108
+ */
109
+ getDeviceById(requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const response = yield this.getDeviceByIdRaw(requestParameters, initOverrides);
112
+ return yield response.value();
113
+ });
114
+ }
115
+ /**
116
+ * Creates request options for getOems without sending the request
117
+ */
118
+ getOemsRequestOpts() {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ const queryParameters = {};
121
+ const headerParameters = {};
122
+ let urlPath = `/oems`;
123
+ return {
124
+ path: urlPath,
125
+ method: 'GET',
126
+ headers: headerParameters,
127
+ query: queryParameters,
128
+ };
129
+ });
130
+ }
131
+ /**
132
+ * GET /oems - Get a list of all unique OEM names.
133
+ */
134
+ getOemsRaw(initOverrides) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const requestOptions = yield this.getOemsRequestOpts();
137
+ const response = yield this.request(requestOptions, initOverrides);
138
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseStringFromJSON)(jsonValue));
139
+ });
140
+ }
141
+ /**
142
+ * GET /oems - Get a list of all unique OEM names.
115
143
  */
116
- getDeviceDeprecated(requestParameters, initOverrides) {
144
+ getOems(initOverrides) {
117
145
  return __awaiter(this, void 0, void 0, function* () {
118
- const response = yield this.getDeviceDeprecatedRaw(requestParameters, initOverrides);
146
+ const response = yield this.getOemsRaw(initOverrides);
119
147
  return yield response.value();
120
148
  });
121
149
  }
122
150
  /**
123
- * Creates request options for getDevices without sending the request
151
+ * Creates request options for listDevices without sending the request
124
152
  */
125
- getDevicesRequestOpts(requestParameters) {
153
+ listDevicesRequestOpts(requestParameters) {
126
154
  return __awaiter(this, void 0, void 0, function* () {
127
155
  const queryParameters = {};
128
156
  if (requestParameters['id'] != null) {
@@ -159,7 +187,7 @@ class DeviceApi extends runtime.BaseAPI {
159
187
  queryParameters['limit'] = requestParameters['limit'];
160
188
  }
161
189
  const headerParameters = {};
162
- let urlPath = `/devices/`;
190
+ let urlPath = `/devices`;
163
191
  return {
164
192
  path: urlPath,
165
193
  method: 'GET',
@@ -169,60 +197,21 @@ class DeviceApi extends runtime.BaseAPI {
169
197
  });
170
198
  }
171
199
  /**
172
- * 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.
173
- * Get Devices
200
+ * GET /devices/ - List devices with filters.
174
201
  */
175
- getDevicesRaw(requestParameters, initOverrides) {
202
+ listDevicesRaw(requestParameters, initOverrides) {
176
203
  return __awaiter(this, void 0, void 0, function* () {
177
- const requestOptions = yield this.getDevicesRequestOpts(requestParameters);
204
+ const requestOptions = yield this.listDevicesRequestOpts(requestParameters);
178
205
  const response = yield this.request(requestOptions, initOverrides);
179
206
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseShortDeviceResponseFromJSON)(jsonValue));
180
207
  });
181
208
  }
182
209
  /**
183
- * 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.
184
- * Get Devices
210
+ * GET /devices/ - List devices with filters.
185
211
  */
186
- getDevices() {
212
+ listDevices() {
187
213
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
188
- const response = yield this.getDevicesRaw(requestParameters, initOverrides);
189
- return yield response.value();
190
- });
191
- }
192
- /**
193
- * Creates request options for getOems without sending the request
194
- */
195
- getOemsRequestOpts() {
196
- return __awaiter(this, void 0, void 0, function* () {
197
- const queryParameters = {};
198
- const headerParameters = {};
199
- let urlPath = `/oems/`;
200
- return {
201
- path: urlPath,
202
- method: 'GET',
203
- headers: headerParameters,
204
- query: queryParameters,
205
- };
206
- });
207
- }
208
- /**
209
- * Lists all OEM names
210
- * Get Oems
211
- */
212
- getOemsRaw(initOverrides) {
213
- return __awaiter(this, void 0, void 0, function* () {
214
- const requestOptions = yield this.getOemsRequestOpts();
215
- const response = yield this.request(requestOptions, initOverrides);
216
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseStrFromJSON)(jsonValue));
217
- });
218
- }
219
- /**
220
- * Lists all OEM names
221
- * Get Oems
222
- */
223
- getOems(initOverrides) {
224
- return __awaiter(this, void 0, void 0, function* () {
225
- const response = yield this.getOemsRaw(initOverrides);
214
+ const response = yield this.listDevicesRaw(requestParameters, initOverrides);
226
215
  return yield response.value();
227
216
  });
228
217
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Fox API
3
- * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.4.0
5
+ * The version of the OpenAPI document: 6.0.4
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { PasteInput, PasteOutput } from '../models/index';
14
- export interface CreatePastePastePostRequest {
13
+ import type { PasteInput, PasteResponse } from '../models/index';
14
+ export interface CreatePasteRequest {
15
15
  pasteInput: PasteInput;
16
16
  }
17
- export interface GetPastePastePasteIdGetRequest {
17
+ export interface GetPasteRequest {
18
18
  pasteId: string;
19
19
  }
20
20
  /**
@@ -25,78 +25,72 @@ export interface GetPastePastePasteIdGetRequest {
25
25
  */
26
26
  export interface PasteApiInterface {
27
27
  /**
28
- * Creates request options for createPastePastePost without sending the request
28
+ * Creates request options for createPaste without sending the request
29
29
  * @param {PasteInput} pasteInput
30
30
  * @throws {RequiredError}
31
31
  * @memberof PasteApiInterface
32
32
  */
33
- createPastePastePostRequestOpts(requestParameters: CreatePastePastePostRequest): Promise<runtime.RequestOpts>;
33
+ createPasteRequestOpts(requestParameters: CreatePasteRequest): Promise<runtime.RequestOpts>;
34
34
  /**
35
- * Create a new paste.
36
- * @summary Create Paste
35
+ *
36
+ * @summary POST /paste/ - Create a new paste.
37
37
  * @param {PasteInput} pasteInput
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  * @memberof PasteApiInterface
41
41
  */
42
- createPastePastePostRaw(requestParameters: CreatePastePastePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteOutput>>;
42
+ createPasteRaw(requestParameters: CreatePasteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteResponse>>;
43
43
  /**
44
- * Create a new paste.
45
- * Create Paste
44
+ * POST /paste/ - Create a new paste.
46
45
  */
47
- createPastePastePost(requestParameters: CreatePastePastePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteOutput>;
46
+ createPaste(requestParameters: CreatePasteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteResponse>;
48
47
  /**
49
- * Creates request options for getPastePastePasteIdGet without sending the request
50
- * @param {string} pasteId
48
+ * Creates request options for getPaste without sending the request
49
+ * @param {string} pasteId Paste ID
51
50
  * @throws {RequiredError}
52
51
  * @memberof PasteApiInterface
53
52
  */
54
- getPastePastePasteIdGetRequestOpts(requestParameters: GetPastePastePasteIdGetRequest): Promise<runtime.RequestOpts>;
53
+ getPasteRequestOpts(requestParameters: GetPasteRequest): Promise<runtime.RequestOpts>;
55
54
  /**
56
- * Get a paste by ID.
57
- * @summary Get Paste
58
- * @param {string} pasteId
55
+ *
56
+ * @summary GET /paste/{paste_id} - Get a paste by ID.
57
+ * @param {string} pasteId Paste ID
59
58
  * @param {*} [options] Override http request option.
60
59
  * @throws {RequiredError}
61
60
  * @memberof PasteApiInterface
62
61
  */
63
- getPastePastePasteIdGetRaw(requestParameters: GetPastePastePasteIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteOutput>>;
62
+ getPasteRaw(requestParameters: GetPasteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteResponse>>;
64
63
  /**
65
- * Get a paste by ID.
66
- * Get Paste
64
+ * GET /paste/{paste_id} - Get a paste by ID.
67
65
  */
68
- getPastePastePasteIdGet(requestParameters: GetPastePastePasteIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteOutput>;
66
+ getPaste(requestParameters: GetPasteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteResponse>;
69
67
  }
70
68
  /**
71
69
  *
72
70
  */
73
71
  export declare class PasteApi extends runtime.BaseAPI implements PasteApiInterface {
74
72
  /**
75
- * Creates request options for createPastePastePost without sending the request
73
+ * Creates request options for createPaste without sending the request
76
74
  */
77
- createPastePastePostRequestOpts(requestParameters: CreatePastePastePostRequest): Promise<runtime.RequestOpts>;
75
+ createPasteRequestOpts(requestParameters: CreatePasteRequest): Promise<runtime.RequestOpts>;
78
76
  /**
79
- * Create a new paste.
80
- * Create Paste
77
+ * POST /paste/ - Create a new paste.
81
78
  */
82
- createPastePastePostRaw(requestParameters: CreatePastePastePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteOutput>>;
79
+ createPasteRaw(requestParameters: CreatePasteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteResponse>>;
83
80
  /**
84
- * Create a new paste.
85
- * Create Paste
81
+ * POST /paste/ - Create a new paste.
86
82
  */
87
- createPastePastePost(requestParameters: CreatePastePastePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteOutput>;
83
+ createPaste(requestParameters: CreatePasteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteResponse>;
88
84
  /**
89
- * Creates request options for getPastePastePasteIdGet without sending the request
85
+ * Creates request options for getPaste without sending the request
90
86
  */
91
- getPastePastePasteIdGetRequestOpts(requestParameters: GetPastePastePasteIdGetRequest): Promise<runtime.RequestOpts>;
87
+ getPasteRequestOpts(requestParameters: GetPasteRequest): Promise<runtime.RequestOpts>;
92
88
  /**
93
- * Get a paste by ID.
94
- * Get Paste
89
+ * GET /paste/{paste_id} - Get a paste by ID.
95
90
  */
96
- getPastePastePasteIdGetRaw(requestParameters: GetPastePastePasteIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteOutput>>;
91
+ getPasteRaw(requestParameters: GetPasteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteResponse>>;
97
92
  /**
98
- * Get a paste by ID.
99
- * Get Paste
93
+ * GET /paste/{paste_id} - Get a paste by ID.
100
94
  */
101
- getPastePastePasteIdGet(requestParameters: GetPastePastePasteIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteOutput>;
95
+ getPaste(requestParameters: GetPasteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteResponse>;
102
96
  }
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
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.
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
7
  *
8
- * The version of the OpenAPI document: 5.4.0
8
+ * The version of the OpenAPI document: 6.0.4
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,17 +30,17 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class PasteApi extends runtime.BaseAPI {
32
32
  /**
33
- * Creates request options for createPastePastePost without sending the request
33
+ * Creates request options for createPaste without sending the request
34
34
  */
35
- createPastePastePostRequestOpts(requestParameters) {
35
+ createPasteRequestOpts(requestParameters) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
37
  if (requestParameters['pasteInput'] == null) {
38
- throw new runtime.RequiredError('pasteInput', 'Required parameter "pasteInput" was null or undefined when calling createPastePastePost().');
38
+ throw new runtime.RequiredError('pasteInput', 'Required parameter "pasteInput" was null or undefined when calling createPaste().');
39
39
  }
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
42
  headerParameters['Content-Type'] = 'application/json';
43
- let urlPath = `/paste/`;
43
+ let urlPath = `/paste`;
44
44
  return {
45
45
  path: urlPath,
46
46
  method: 'POST',
@@ -51,33 +51,31 @@ class PasteApi extends runtime.BaseAPI {
51
51
  });
52
52
  }
53
53
  /**
54
- * Create a new paste.
55
- * Create Paste
54
+ * POST /paste/ - Create a new paste.
56
55
  */
57
- createPastePastePostRaw(requestParameters, initOverrides) {
56
+ createPasteRaw(requestParameters, initOverrides) {
58
57
  return __awaiter(this, void 0, void 0, function* () {
59
- const requestOptions = yield this.createPastePastePostRequestOpts(requestParameters);
58
+ const requestOptions = yield this.createPasteRequestOpts(requestParameters);
60
59
  const response = yield this.request(requestOptions, initOverrides);
61
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PasteOutputFromJSON)(jsonValue));
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PasteResponseFromJSON)(jsonValue));
62
61
  });
63
62
  }
64
63
  /**
65
- * Create a new paste.
66
- * Create Paste
64
+ * POST /paste/ - Create a new paste.
67
65
  */
68
- createPastePastePost(requestParameters, initOverrides) {
66
+ createPaste(requestParameters, initOverrides) {
69
67
  return __awaiter(this, void 0, void 0, function* () {
70
- const response = yield this.createPastePastePostRaw(requestParameters, initOverrides);
68
+ const response = yield this.createPasteRaw(requestParameters, initOverrides);
71
69
  return yield response.value();
72
70
  });
73
71
  }
74
72
  /**
75
- * Creates request options for getPastePastePasteIdGet without sending the request
73
+ * Creates request options for getPaste without sending the request
76
74
  */
77
- getPastePastePasteIdGetRequestOpts(requestParameters) {
75
+ getPasteRequestOpts(requestParameters) {
78
76
  return __awaiter(this, void 0, void 0, function* () {
79
77
  if (requestParameters['pasteId'] == null) {
80
- throw new runtime.RequiredError('pasteId', 'Required parameter "pasteId" was null or undefined when calling getPastePastePasteIdGet().');
78
+ throw new runtime.RequiredError('pasteId', 'Required parameter "pasteId" was null or undefined when calling getPaste().');
81
79
  }
82
80
  const queryParameters = {};
83
81
  const headerParameters = {};
@@ -92,23 +90,21 @@ class PasteApi extends runtime.BaseAPI {
92
90
  });
93
91
  }
94
92
  /**
95
- * Get a paste by ID.
96
- * Get Paste
93
+ * GET /paste/{paste_id} - Get a paste by ID.
97
94
  */
98
- getPastePastePasteIdGetRaw(requestParameters, initOverrides) {
95
+ getPasteRaw(requestParameters, initOverrides) {
99
96
  return __awaiter(this, void 0, void 0, function* () {
100
- const requestOptions = yield this.getPastePastePasteIdGetRequestOpts(requestParameters);
97
+ const requestOptions = yield this.getPasteRequestOpts(requestParameters);
101
98
  const response = yield this.request(requestOptions, initOverrides);
102
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PasteOutputFromJSON)(jsonValue));
99
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PasteResponseFromJSON)(jsonValue));
103
100
  });
104
101
  }
105
102
  /**
106
- * Get a paste by ID.
107
- * Get Paste
103
+ * GET /paste/{paste_id} - Get a paste by ID.
108
104
  */
109
- getPastePastePasteIdGet(requestParameters, initOverrides) {
105
+ getPaste(requestParameters, initOverrides) {
110
106
  return __awaiter(this, void 0, void 0, function* () {
111
- const response = yield this.getPastePastePasteIdGetRaw(requestParameters, initOverrides);
107
+ const response = yield this.getPasteRaw(requestParameters, initOverrides);
112
108
  return yield response.value();
113
109
  });
114
110
  }