@orangefox-recovery/foxinternalclient 5.3.3 → 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 (452) hide show
  1. package/.openapi-generator/FILES +42 -36
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +79 -77
  4. package/dist/apis/DeviceApi.d.ts +116 -77
  5. package/dist/apis/DeviceApi.js +85 -59
  6. package/dist/apis/FoxFactoryApi.d.ts +224 -148
  7. package/dist/apis/FoxFactoryApi.js +201 -224
  8. package/dist/apis/GitlabApi.d.ts +28 -13
  9. package/dist/apis/GitlabApi.js +29 -11
  10. package/dist/apis/InternalApi.d.ts +696 -297
  11. package/dist/apis/InternalApi.js +743 -494
  12. package/dist/apis/PasteApi.d.ts +46 -30
  13. package/dist/apis/PasteApi.js +39 -25
  14. package/dist/apis/ReleaseApi.d.ts +177 -104
  15. package/dist/apis/ReleaseApi.js +132 -81
  16. package/dist/apis/ReportApi.d.ts +64 -0
  17. package/dist/apis/ReportApi.js +89 -0
  18. package/dist/apis/StatsApi.d.ts +25 -15
  19. package/dist/apis/StatsApi.js +22 -13
  20. package/dist/apis/index.d.ts +1 -0
  21. package/dist/apis/index.js +1 -0
  22. package/dist/esm/apis/DeviceApi.d.ts +116 -77
  23. package/dist/esm/apis/DeviceApi.js +86 -60
  24. package/dist/esm/apis/FoxFactoryApi.d.ts +224 -148
  25. package/dist/esm/apis/FoxFactoryApi.js +202 -225
  26. package/dist/esm/apis/GitlabApi.d.ts +28 -13
  27. package/dist/esm/apis/GitlabApi.js +29 -11
  28. package/dist/esm/apis/InternalApi.d.ts +696 -297
  29. package/dist/esm/apis/InternalApi.js +744 -495
  30. package/dist/esm/apis/PasteApi.d.ts +46 -30
  31. package/dist/esm/apis/PasteApi.js +40 -26
  32. package/dist/esm/apis/ReleaseApi.d.ts +177 -104
  33. package/dist/esm/apis/ReleaseApi.js +133 -82
  34. package/dist/esm/apis/ReportApi.d.ts +64 -0
  35. package/dist/esm/apis/ReportApi.js +85 -0
  36. package/dist/esm/apis/StatsApi.d.ts +25 -15
  37. package/dist/esm/apis/StatsApi.js +23 -14
  38. package/dist/esm/apis/index.d.ts +1 -0
  39. package/dist/esm/apis/index.js +1 -0
  40. package/dist/esm/models/BuildTaskResponse.d.ts +22 -26
  41. package/dist/esm/models/BuildTaskResponse.js +30 -24
  42. package/dist/esm/models/BuildTaskShortResponse.d.ts +19 -21
  43. package/dist/esm/models/BuildTaskShortResponse.js +27 -23
  44. package/dist/esm/models/ChangePasswordBody.d.ts +38 -0
  45. package/dist/esm/models/ChangePasswordBody.js +47 -0
  46. package/dist/esm/models/DeletePasskeyBody.d.ts +32 -0
  47. package/dist/esm/models/DeletePasskeyBody.js +43 -0
  48. package/dist/esm/models/DeviceInternalResponse.d.ts +40 -36
  49. package/dist/esm/models/DeviceInternalResponse.js +36 -30
  50. package/dist/esm/models/DeviceResponse.d.ts +33 -29
  51. package/dist/esm/models/DeviceResponse.js +34 -26
  52. package/dist/esm/models/DeviceStatsResponse.d.ts +2 -2
  53. package/dist/esm/models/DeviceStatsResponse.js +2 -2
  54. package/dist/esm/models/DeviceUpdateBody.d.ts +13 -13
  55. package/dist/esm/models/DeviceUpdateBody.js +8 -8
  56. package/dist/esm/models/ErrorResponse.d.ts +32 -0
  57. package/dist/esm/models/ErrorResponse.js +43 -0
  58. package/dist/esm/models/FFStatusResponse.d.ts +4 -5
  59. package/dist/esm/models/FFStatusResponse.js +4 -5
  60. package/dist/esm/models/GlobalStatsResponse.d.ts +52 -0
  61. package/dist/esm/models/{GlobalStatsAggregationModel.js → GlobalStatsResponse.js} +14 -14
  62. package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +8 -8
  63. package/dist/esm/models/ListResponseBuildTaskShortResponse.js +8 -7
  64. package/dist/esm/models/ListResponseBuildTaskShortResponseDataInner.d.ts +87 -0
  65. package/dist/esm/models/ListResponseBuildTaskShortResponseDataInner.js +78 -0
  66. package/dist/esm/models/ListResponsePasteResponse.d.ts +39 -0
  67. package/dist/esm/models/ListResponsePasteResponse.js +48 -0
  68. package/dist/esm/models/ListResponsePasteResponseDataInner.d.ts +50 -0
  69. package/dist/esm/models/ListResponsePasteResponseDataInner.js +53 -0
  70. package/dist/esm/models/ListResponseReleaseResponse.d.ts +8 -8
  71. package/dist/esm/models/ListResponseReleaseResponse.js +8 -7
  72. package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
  73. package/dist/esm/models/ListResponseReleaseResponseDataInner.js +114 -0
  74. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +8 -8
  75. package/dist/esm/models/ListResponseShortDeviceResponse.js +8 -7
  76. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
  77. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +85 -0
  78. package/dist/esm/models/ListResponseString.d.ts +38 -0
  79. package/dist/esm/models/ListResponseString.js +47 -0
  80. package/dist/esm/models/ListResponseUserShortResponse.d.ts +8 -8
  81. package/dist/esm/models/ListResponseUserShortResponse.js +8 -7
  82. package/dist/esm/models/ListResponseUserShortResponseDataInner.d.ts +50 -0
  83. package/dist/esm/models/ListResponseUserShortResponseDataInner.js +55 -0
  84. package/dist/esm/models/LogListResponse.d.ts +5 -5
  85. package/dist/esm/models/LogListResponse.js +6 -6
  86. package/dist/esm/models/LogResponse.d.ts +15 -17
  87. package/dist/esm/models/LogResponse.js +16 -16
  88. package/dist/esm/models/LoginForm.d.ts +38 -0
  89. package/dist/esm/models/LoginForm.js +47 -0
  90. package/dist/esm/models/MaintainerShortResponse.d.ts +50 -0
  91. package/dist/esm/models/MaintainerShortResponse.js +55 -0
  92. package/dist/esm/models/NewBuildTaskBody.d.ts +13 -8
  93. package/dist/esm/models/NewBuildTaskBody.js +8 -7
  94. package/dist/esm/models/NewDeviceBody.d.ts +8 -8
  95. package/dist/esm/models/NewDeviceBody.js +9 -9
  96. package/dist/esm/models/NewReportRequest.d.ts +58 -0
  97. package/dist/esm/models/NewReportRequest.js +55 -0
  98. package/dist/esm/models/PasskeyCredentialResponse.d.ts +68 -0
  99. package/dist/esm/models/PasskeyCredentialResponse.js +61 -0
  100. package/dist/esm/models/PasskeyRegisterOptionsRequest.d.ts +32 -0
  101. package/dist/esm/models/PasskeyRegisterOptionsRequest.js +43 -0
  102. package/dist/esm/models/PasskeyVerifyRequest.d.ts +44 -0
  103. package/dist/esm/models/PasskeyVerifyRequest.js +49 -0
  104. package/dist/esm/models/PasteInput.d.ts +3 -3
  105. package/dist/esm/models/PasteInput.js +2 -2
  106. package/dist/esm/models/PasteResponse.d.ts +50 -0
  107. package/dist/esm/models/PasteResponse.js +53 -0
  108. package/dist/esm/models/RecoveryImgResponse.d.ts +6 -6
  109. package/dist/esm/models/RecoveryImgResponse.js +6 -6
  110. package/dist/esm/models/ReleaseGroupsResponse.d.ts +2 -2
  111. package/dist/esm/models/ReleaseGroupsResponse.js +2 -2
  112. package/dist/esm/models/ReleaseInternalResponse.d.ts +54 -53
  113. package/dist/esm/models/ReleaseInternalResponse.js +52 -53
  114. package/dist/esm/models/ReleaseResponse.d.ts +46 -42
  115. package/dist/esm/models/ReleaseResponse.js +45 -44
  116. package/dist/esm/models/ReleaseStatsResponse.d.ts +2 -2
  117. package/dist/esm/models/ReleaseStatsResponse.js +2 -2
  118. package/dist/esm/models/ReleaseUpdateBody.d.ts +9 -9
  119. package/dist/esm/models/ReleaseUpdateBody.js +6 -6
  120. package/dist/esm/models/RenamePasskeyBody.d.ts +32 -0
  121. package/dist/esm/models/RenamePasskeyBody.js +41 -0
  122. package/dist/esm/models/ShortDeviceResponse.d.ts +29 -25
  123. package/dist/esm/models/ShortDeviceResponse.js +26 -18
  124. package/dist/esm/models/ShortReleaseResponse.d.ts +31 -27
  125. package/dist/esm/models/ShortReleaseResponse.js +35 -32
  126. package/dist/esm/models/TaskUpdateBody.d.ts +7 -8
  127. package/dist/esm/models/TaskUpdateBody.js +4 -5
  128. package/dist/esm/models/TokenResponse.d.ts +3 -3
  129. package/dist/esm/models/TokenResponse.js +5 -3
  130. package/dist/esm/models/UserInternalResponse.d.ts +21 -24
  131. package/dist/esm/models/UserInternalResponse.js +20 -23
  132. package/dist/esm/models/UserShortResponse.d.ts +7 -7
  133. package/dist/esm/models/UserShortResponse.js +9 -9
  134. package/dist/esm/models/UserUpdateBody.d.ts +9 -9
  135. package/dist/esm/models/UserUpdateBody.js +8 -8
  136. package/dist/esm/models/WorkerStatusBody.d.ts +32 -0
  137. package/dist/esm/models/WorkerStatusBody.js +43 -0
  138. package/dist/esm/models/index.d.ts +20 -18
  139. package/dist/esm/models/index.js +20 -18
  140. package/dist/esm/runtime.d.ts +2 -2
  141. package/dist/esm/runtime.js +17 -2
  142. package/dist/models/BuildTaskResponse.d.ts +22 -26
  143. package/dist/models/BuildTaskResponse.js +30 -24
  144. package/dist/models/BuildTaskShortResponse.d.ts +19 -21
  145. package/dist/models/BuildTaskShortResponse.js +27 -23
  146. package/dist/models/ChangePasswordBody.d.ts +38 -0
  147. package/dist/models/ChangePasswordBody.js +54 -0
  148. package/dist/models/DeletePasskeyBody.d.ts +32 -0
  149. package/dist/models/DeletePasskeyBody.js +50 -0
  150. package/dist/models/DeviceInternalResponse.d.ts +40 -36
  151. package/dist/models/DeviceInternalResponse.js +36 -30
  152. package/dist/models/DeviceResponse.d.ts +33 -29
  153. package/dist/models/DeviceResponse.js +34 -26
  154. package/dist/models/DeviceStatsResponse.d.ts +2 -2
  155. package/dist/models/DeviceStatsResponse.js +2 -2
  156. package/dist/models/DeviceUpdateBody.d.ts +13 -13
  157. package/dist/models/DeviceUpdateBody.js +8 -8
  158. package/dist/models/ErrorResponse.d.ts +32 -0
  159. package/dist/models/ErrorResponse.js +50 -0
  160. package/dist/models/FFStatusResponse.d.ts +4 -5
  161. package/dist/models/FFStatusResponse.js +4 -5
  162. package/dist/models/GlobalStatsResponse.d.ts +52 -0
  163. package/dist/models/GlobalStatsResponse.js +62 -0
  164. package/dist/models/ListResponseBuildTaskShortResponse.d.ts +8 -8
  165. package/dist/models/ListResponseBuildTaskShortResponse.js +8 -7
  166. package/dist/models/ListResponseBuildTaskShortResponseDataInner.d.ts +87 -0
  167. package/dist/models/ListResponseBuildTaskShortResponseDataInner.js +85 -0
  168. package/dist/models/ListResponsePasteResponse.d.ts +39 -0
  169. package/dist/models/ListResponsePasteResponse.js +55 -0
  170. package/dist/models/ListResponsePasteResponseDataInner.d.ts +50 -0
  171. package/dist/models/ListResponsePasteResponseDataInner.js +60 -0
  172. package/dist/models/ListResponseReleaseResponse.d.ts +8 -8
  173. package/dist/models/ListResponseReleaseResponse.js +8 -7
  174. package/dist/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
  175. package/dist/models/ListResponseReleaseResponseDataInner.js +121 -0
  176. package/dist/models/ListResponseShortDeviceResponse.d.ts +8 -8
  177. package/dist/models/ListResponseShortDeviceResponse.js +8 -7
  178. package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
  179. package/dist/models/ListResponseShortDeviceResponseDataInner.js +92 -0
  180. package/dist/models/ListResponseString.d.ts +38 -0
  181. package/dist/models/ListResponseString.js +54 -0
  182. package/dist/models/ListResponseUserShortResponse.d.ts +8 -8
  183. package/dist/models/ListResponseUserShortResponse.js +8 -7
  184. package/dist/models/ListResponseUserShortResponseDataInner.d.ts +50 -0
  185. package/dist/models/ListResponseUserShortResponseDataInner.js +62 -0
  186. package/dist/models/LogListResponse.d.ts +5 -5
  187. package/dist/models/LogListResponse.js +6 -6
  188. package/dist/models/LogResponse.d.ts +15 -17
  189. package/dist/models/LogResponse.js +16 -16
  190. package/dist/models/LoginForm.d.ts +38 -0
  191. package/dist/models/LoginForm.js +54 -0
  192. package/dist/models/MaintainerShortResponse.d.ts +50 -0
  193. package/dist/models/MaintainerShortResponse.js +62 -0
  194. package/dist/models/NewBuildTaskBody.d.ts +13 -8
  195. package/dist/models/NewBuildTaskBody.js +8 -7
  196. package/dist/models/NewDeviceBody.d.ts +8 -8
  197. package/dist/models/NewDeviceBody.js +9 -9
  198. package/dist/models/NewReportRequest.d.ts +58 -0
  199. package/dist/models/NewReportRequest.js +62 -0
  200. package/dist/models/PasskeyCredentialResponse.d.ts +68 -0
  201. package/dist/models/PasskeyCredentialResponse.js +68 -0
  202. package/dist/models/PasskeyRegisterOptionsRequest.d.ts +32 -0
  203. package/dist/models/PasskeyRegisterOptionsRequest.js +50 -0
  204. package/dist/models/PasskeyVerifyRequest.d.ts +44 -0
  205. package/dist/models/PasskeyVerifyRequest.js +56 -0
  206. package/dist/models/PasteInput.d.ts +3 -3
  207. package/dist/models/PasteInput.js +2 -2
  208. package/dist/models/PasteResponse.d.ts +50 -0
  209. package/dist/models/PasteResponse.js +60 -0
  210. package/dist/models/RecoveryImgResponse.d.ts +6 -6
  211. package/dist/models/RecoveryImgResponse.js +6 -6
  212. package/dist/models/ReleaseGroupsResponse.d.ts +2 -2
  213. package/dist/models/ReleaseGroupsResponse.js +2 -2
  214. package/dist/models/ReleaseInternalResponse.d.ts +54 -53
  215. package/dist/models/ReleaseInternalResponse.js +52 -53
  216. package/dist/models/ReleaseResponse.d.ts +46 -42
  217. package/dist/models/ReleaseResponse.js +45 -44
  218. package/dist/models/ReleaseStatsResponse.d.ts +2 -2
  219. package/dist/models/ReleaseStatsResponse.js +2 -2
  220. package/dist/models/ReleaseUpdateBody.d.ts +9 -9
  221. package/dist/models/ReleaseUpdateBody.js +6 -6
  222. package/dist/models/RenamePasskeyBody.d.ts +32 -0
  223. package/dist/models/RenamePasskeyBody.js +48 -0
  224. package/dist/models/ShortDeviceResponse.d.ts +29 -25
  225. package/dist/models/ShortDeviceResponse.js +26 -18
  226. package/dist/models/ShortReleaseResponse.d.ts +31 -27
  227. package/dist/models/ShortReleaseResponse.js +35 -32
  228. package/dist/models/TaskUpdateBody.d.ts +7 -8
  229. package/dist/models/TaskUpdateBody.js +4 -5
  230. package/dist/models/TokenResponse.d.ts +3 -3
  231. package/dist/models/TokenResponse.js +5 -3
  232. package/dist/models/UserInternalResponse.d.ts +21 -24
  233. package/dist/models/UserInternalResponse.js +20 -23
  234. package/dist/models/UserShortResponse.d.ts +7 -7
  235. package/dist/models/UserShortResponse.js +9 -9
  236. package/dist/models/UserUpdateBody.d.ts +9 -9
  237. package/dist/models/UserUpdateBody.js +8 -8
  238. package/dist/models/WorkerStatusBody.d.ts +32 -0
  239. package/dist/models/WorkerStatusBody.js +50 -0
  240. package/dist/models/index.d.ts +20 -18
  241. package/dist/models/index.js +20 -18
  242. package/dist/runtime.d.ts +2 -2
  243. package/dist/runtime.js +17 -2
  244. package/docs/BuildTaskResponse.md +13 -13
  245. package/docs/BuildTaskShortResponse.md +12 -12
  246. package/docs/{BodyChangePasswordProfileChangePasswordPost.md → ChangePasswordBody.md} +6 -6
  247. package/docs/{HTTPValidationError.md → DeletePasskeyBody.md} +7 -6
  248. package/docs/DeviceApi.md +83 -90
  249. package/docs/DeviceInternalResponse.md +22 -19
  250. package/docs/DeviceResponse.md +19 -17
  251. package/docs/DeviceUpdateBody.md +7 -6
  252. package/docs/{BuildStatusEnum.md → ErrorResponse.md} +6 -4
  253. package/docs/FFStatusResponse.md +1 -1
  254. package/docs/FoxFactoryApi.md +140 -191
  255. package/docs/GitlabApi.md +21 -14
  256. package/docs/{GlobalStatsAggregationModel.md → GlobalStatsResponse.md} +6 -6
  257. package/docs/InternalApi.md +720 -410
  258. package/docs/ListResponseBuildTaskShortResponse.md +2 -2
  259. package/docs/ListResponseBuildTaskShortResponseDataInner.md +52 -0
  260. package/docs/{ListResponseShortReleaseResponse.md → ListResponsePasteResponse.md} +6 -6
  261. package/docs/{UserGitlab.md → ListResponsePasteResponseDataInner.md} +11 -5
  262. package/docs/ListResponseReleaseResponse.md +2 -2
  263. package/docs/ListResponseReleaseResponseDataInner.md +74 -0
  264. package/docs/ListResponseShortDeviceResponse.md +2 -2
  265. package/docs/ListResponseShortDeviceResponseDataInner.md +56 -0
  266. package/docs/{ListResponseStr.md → ListResponseString.md} +6 -6
  267. package/docs/ListResponseUserShortResponse.md +2 -2
  268. package/docs/ListResponseUserShortResponseDataInner.md +40 -0
  269. package/docs/LogListResponse.md +2 -2
  270. package/docs/LogResponse.md +10 -10
  271. package/docs/{UserMail.md → LoginForm.md} +7 -4
  272. package/docs/{MaintainerShortModel.md → MaintainerShortResponse.md} +9 -7
  273. package/docs/NewBuildTaskBody.md +6 -3
  274. package/docs/NewDeviceBody.md +5 -4
  275. package/docs/NewReportRequest.md +42 -0
  276. package/docs/PasskeyCredentialResponse.md +47 -0
  277. package/docs/PasskeyRegisterOptionsRequest.md +35 -0
  278. package/docs/PasskeyVerifyRequest.md +39 -0
  279. package/docs/PasteApi.md +25 -29
  280. package/docs/{PasteOutput.md → PasteResponse.md} +7 -7
  281. package/docs/RecoveryImgResponse.md +2 -2
  282. package/docs/ReleaseApi.md +176 -118
  283. package/docs/ReleaseInternalResponse.md +34 -31
  284. package/docs/ReleaseResponse.md +28 -26
  285. package/docs/ReleaseUpdateBody.md +5 -4
  286. package/docs/RenamePasskeyBody.md +35 -0
  287. package/docs/ReportApi.md +84 -0
  288. package/docs/ShortDeviceResponse.md +14 -12
  289. package/docs/ShortReleaseResponse.md +22 -20
  290. package/docs/StatsApi.md +10 -10
  291. package/docs/TaskUpdateBody.md +3 -2
  292. package/docs/UserInternalResponse.md +13 -13
  293. package/docs/UserShortResponse.md +4 -4
  294. package/docs/UserUpdateBody.md +7 -6
  295. package/docs/{FFStatusEnum.md → WorkerStatusBody.md} +6 -4
  296. package/package.json +3 -13
  297. package/src/apis/DeviceApi.ts +175 -116
  298. package/src/apis/FoxFactoryApi.ts +359 -345
  299. package/src/apis/GitlabApi.ts +49 -21
  300. package/src/apis/InternalApi.ts +1313 -789
  301. package/src/apis/PasteApi.ts +72 -46
  302. package/src/apis/ReleaseApi.ts +281 -181
  303. package/src/apis/ReportApi.ts +139 -0
  304. package/src/apis/StatsApi.ts +40 -22
  305. package/src/apis/index.ts +1 -0
  306. package/src/models/BuildTaskResponse.ts +45 -57
  307. package/src/models/BuildTaskShortResponse.ts +40 -53
  308. package/src/models/ChangePasswordBody.ts +75 -0
  309. package/src/models/DeletePasskeyBody.ts +66 -0
  310. package/src/models/DeviceInternalResponse.ts +75 -66
  311. package/src/models/DeviceResponse.ts +65 -55
  312. package/src/models/DeviceStatsResponse.ts +2 -2
  313. package/src/models/DeviceUpdateBody.ts +19 -19
  314. package/src/models/ErrorResponse.ts +66 -0
  315. package/src/models/FFStatusResponse.ts +6 -16
  316. package/src/models/GlobalStatsResponse.ts +93 -0
  317. package/src/models/ListResponseBuildTaskShortResponse.ts +17 -16
  318. package/src/models/ListResponseBuildTaskShortResponseDataInner.ts +154 -0
  319. package/src/models/ListResponsePasteResponse.ts +83 -0
  320. package/src/models/ListResponsePasteResponseDataInner.ts +92 -0
  321. package/src/models/ListResponseReleaseResponse.ts +17 -16
  322. package/src/models/ListResponseReleaseResponseDataInner.ts +249 -0
  323. package/src/models/ListResponseShortDeviceResponse.ts +17 -16
  324. package/src/models/ListResponseShortDeviceResponseDataInner.ts +164 -0
  325. package/src/models/ListResponseString.ts +75 -0
  326. package/src/models/ListResponseUserShortResponse.ts +17 -16
  327. package/src/models/ListResponseUserShortResponseDataInner.ts +93 -0
  328. package/src/models/LogListResponse.ts +8 -8
  329. package/src/models/LogResponse.ts +32 -32
  330. package/src/models/LoginForm.ts +75 -0
  331. package/src/models/MaintainerShortResponse.ts +93 -0
  332. package/src/models/NewBuildTaskBody.ts +19 -21
  333. package/src/models/NewDeviceBody.ts +14 -14
  334. package/src/models/NewReportRequest.ts +100 -0
  335. package/src/models/PasskeyCredentialResponse.ts +117 -0
  336. package/src/models/PasskeyRegisterOptionsRequest.ts +66 -0
  337. package/src/models/PasskeyVerifyRequest.ts +83 -0
  338. package/src/models/PasteInput.ts +3 -3
  339. package/src/models/PasteResponse.ts +92 -0
  340. package/src/models/RecoveryImgResponse.ts +9 -9
  341. package/src/models/ReleaseGroupsResponse.ts +2 -2
  342. package/src/models/ReleaseInternalResponse.ts +104 -112
  343. package/src/models/ReleaseResponse.ts +85 -86
  344. package/src/models/ReleaseStatsResponse.ts +2 -2
  345. package/src/models/ReleaseUpdateBody.ts +13 -13
  346. package/src/models/RenamePasskeyBody.ts +65 -0
  347. package/src/models/ShortDeviceResponse.ts +50 -40
  348. package/src/models/ShortReleaseResponse.ts +62 -64
  349. package/src/models/TaskUpdateBody.ts +9 -19
  350. package/src/models/TokenResponse.ts +5 -4
  351. package/src/models/UserInternalResponse.ts +38 -59
  352. package/src/models/UserShortResponse.ts +13 -13
  353. package/src/models/UserUpdateBody.ts +15 -15
  354. package/src/models/WorkerStatusBody.ts +66 -0
  355. package/src/models/index.ts +20 -18
  356. package/src/runtime.ts +20 -2
  357. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +0 -38
  358. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +0 -47
  359. package/dist/esm/models/BuildStatusEnum.d.ts +0 -30
  360. package/dist/esm/models/BuildStatusEnum.js +0 -48
  361. package/dist/esm/models/FFStatusEnum.d.ts +0 -26
  362. package/dist/esm/models/FFStatusEnum.js +0 -44
  363. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +0 -52
  364. package/dist/esm/models/HTTPValidationError.d.ts +0 -33
  365. package/dist/esm/models/HTTPValidationError.js +0 -42
  366. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +0 -39
  367. package/dist/esm/models/ListResponseShortReleaseResponse.js +0 -47
  368. package/dist/esm/models/ListResponseStr.d.ts +0 -38
  369. package/dist/esm/models/ListResponseStr.js +0 -46
  370. package/dist/esm/models/MaintainerShortModel.d.ts +0 -44
  371. package/dist/esm/models/MaintainerShortModel.js +0 -51
  372. package/dist/esm/models/PasteOutput.d.ts +0 -50
  373. package/dist/esm/models/PasteOutput.js +0 -53
  374. package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +0 -26
  375. package/dist/esm/models/ReleaseInternalResponsePropValue.js +0 -31
  376. package/dist/esm/models/ReleaseType.d.ts +0 -26
  377. package/dist/esm/models/ReleaseType.js +0 -44
  378. package/dist/esm/models/ReleasesSort.d.ts +0 -25
  379. package/dist/esm/models/ReleasesSort.js +0 -43
  380. package/dist/esm/models/ResponseGetReleases.d.ts +0 -41
  381. package/dist/esm/models/ResponseGetReleases.js +0 -46
  382. package/dist/esm/models/UserGitlab.d.ts +0 -32
  383. package/dist/esm/models/UserGitlab.js +0 -43
  384. package/dist/esm/models/UserMail.d.ts +0 -32
  385. package/dist/esm/models/UserMail.js +0 -43
  386. package/dist/esm/models/UserTelegram.d.ts +0 -32
  387. package/dist/esm/models/UserTelegram.js +0 -43
  388. package/dist/esm/models/ValidationError.d.ts +0 -45
  389. package/dist/esm/models/ValidationError.js +0 -52
  390. package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -26
  391. package/dist/esm/models/ValidationErrorLocInner.js +0 -31
  392. package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +0 -38
  393. package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +0 -54
  394. package/dist/models/BuildStatusEnum.d.ts +0 -30
  395. package/dist/models/BuildStatusEnum.js +0 -56
  396. package/dist/models/FFStatusEnum.d.ts +0 -26
  397. package/dist/models/FFStatusEnum.js +0 -52
  398. package/dist/models/GlobalStatsAggregationModel.d.ts +0 -52
  399. package/dist/models/GlobalStatsAggregationModel.js +0 -62
  400. package/dist/models/HTTPValidationError.d.ts +0 -33
  401. package/dist/models/HTTPValidationError.js +0 -49
  402. package/dist/models/ListResponseShortReleaseResponse.d.ts +0 -39
  403. package/dist/models/ListResponseShortReleaseResponse.js +0 -54
  404. package/dist/models/ListResponseStr.d.ts +0 -38
  405. package/dist/models/ListResponseStr.js +0 -53
  406. package/dist/models/MaintainerShortModel.d.ts +0 -44
  407. package/dist/models/MaintainerShortModel.js +0 -58
  408. package/dist/models/PasteOutput.d.ts +0 -50
  409. package/dist/models/PasteOutput.js +0 -60
  410. package/dist/models/ReleaseInternalResponsePropValue.d.ts +0 -26
  411. package/dist/models/ReleaseInternalResponsePropValue.js +0 -38
  412. package/dist/models/ReleaseType.d.ts +0 -26
  413. package/dist/models/ReleaseType.js +0 -52
  414. package/dist/models/ReleasesSort.d.ts +0 -25
  415. package/dist/models/ReleasesSort.js +0 -51
  416. package/dist/models/ResponseGetReleases.d.ts +0 -41
  417. package/dist/models/ResponseGetReleases.js +0 -53
  418. package/dist/models/UserGitlab.d.ts +0 -32
  419. package/dist/models/UserGitlab.js +0 -50
  420. package/dist/models/UserMail.d.ts +0 -32
  421. package/dist/models/UserMail.js +0 -50
  422. package/dist/models/UserTelegram.d.ts +0 -32
  423. package/dist/models/UserTelegram.js +0 -50
  424. package/dist/models/ValidationError.d.ts +0 -45
  425. package/dist/models/ValidationError.js +0 -59
  426. package/dist/models/ValidationErrorLocInner.d.ts +0 -26
  427. package/dist/models/ValidationErrorLocInner.js +0 -38
  428. package/docs/ReleaseInternalResponsePropValue.md +0 -32
  429. package/docs/ReleaseType.md +0 -32
  430. package/docs/ReleasesSort.md +0 -32
  431. package/docs/ResponseGetReleases.md +0 -36
  432. package/docs/UserTelegram.md +0 -34
  433. package/docs/ValidationError.md +0 -38
  434. package/docs/ValidationErrorLocInner.md +0 -32
  435. package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +0 -75
  436. package/src/models/BuildStatusEnum.ts +0 -58
  437. package/src/models/FFStatusEnum.ts +0 -54
  438. package/src/models/GlobalStatsAggregationModel.ts +0 -93
  439. package/src/models/HTTPValidationError.ts +0 -73
  440. package/src/models/ListResponseShortReleaseResponse.ts +0 -82
  441. package/src/models/ListResponseStr.ts +0 -74
  442. package/src/models/MaintainerShortModel.ts +0 -84
  443. package/src/models/PasteOutput.ts +0 -92
  444. package/src/models/ReleaseInternalResponsePropValue.ts +0 -46
  445. package/src/models/ReleaseType.ts +0 -54
  446. package/src/models/ReleasesSort.ts +0 -53
  447. package/src/models/ResponseGetReleases.ts +0 -96
  448. package/src/models/UserGitlab.ts +0 -66
  449. package/src/models/UserMail.ts +0 -66
  450. package/src/models/UserTelegram.ts +0 -66
  451. package/src/models/ValidationError.ts +0 -92
  452. package/src/models/ValidationErrorLocInner.ts +0 -46
@@ -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.3.3
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,23 +10,23 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DeviceResponse, ListResponseShortDeviceResponse, ListResponseStr } from '../models/index';
13
+ import type { DeviceResponse, ListResponseShortDeviceResponse, ListResponseString } from '../models/index';
14
14
  export interface GetDeviceRequest {
15
15
  deviceId?: string | null;
16
- id?: string | null;
17
16
  codename?: string | null;
17
+ id?: string | null;
18
18
  }
19
- export interface GetDeviceDeprecatedRequest {
19
+ export interface GetDeviceByIdRequest {
20
20
  deviceId: string;
21
21
  }
22
- export interface GetDevicesRequest {
23
- id?: Array<string>;
24
- id2?: Array<string>;
25
- oemName?: Array<string>;
26
- codename?: Array<string>;
27
- modelName?: Array<string>;
22
+ export interface ListDevicesRequest {
23
+ id?: string | null;
24
+ id2?: string | null;
25
+ oemName?: string | null;
26
+ codename?: string | null;
27
+ modelName?: string | null;
28
28
  supported?: boolean | null;
29
- maintainer?: Array<string>;
29
+ maintainer?: string | null;
30
30
  freezed?: boolean | null;
31
31
  hasReleases?: boolean | null;
32
32
  skip?: number | null;
@@ -40,119 +40,158 @@ export interface GetDevicesRequest {
40
40
  */
41
41
  export interface DeviceApiInterface {
42
42
  /**
43
- * 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.
44
- * @summary Get Device
43
+ * Creates request options for getDevice without sending the request
44
+ * @param {string} [deviceId]
45
+ * @param {string} [codename]
46
+ * @param {string} [id]
47
+ * @throws {RequiredError}
48
+ * @memberof DeviceApiInterface
49
+ */
50
+ getDeviceRequestOpts(requestParameters: GetDeviceRequest): Promise<runtime.RequestOpts>;
51
+ /**
52
+ *
53
+ * @summary GET /devices/get - Get a single device by device_id, codename, or _id.
45
54
  * @param {string} [deviceId]
46
- * @param {string} [id] Filter by Device ID (deprecated)
47
- * @param {string} [codename] Not recommended to use when you can
55
+ * @param {string} [codename]
56
+ * @param {string} [id]
48
57
  * @param {*} [options] Override http request option.
49
58
  * @throws {RequiredError}
50
59
  * @memberof DeviceApiInterface
51
60
  */
52
61
  getDeviceRaw(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
53
62
  /**
54
- * 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.
55
- * Get Device
63
+ * GET /devices/get - Get a single device by device_id, codename, or _id.
56
64
  */
57
65
  getDevice(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
58
66
  /**
59
- * Gets device info using device ID.
60
- * @summary Get Device Short
61
- * @param {string} deviceId
67
+ * Creates request options for getDeviceById without sending the request
68
+ * @param {string} deviceId Device ID
69
+ * @throws {RequiredError}
70
+ * @memberof DeviceApiInterface
71
+ */
72
+ getDeviceByIdRequestOpts(requestParameters: GetDeviceByIdRequest): Promise<runtime.RequestOpts>;
73
+ /**
74
+ *
75
+ * @summary GET /devices/{device_id} - Get device by ID (deprecated).
76
+ * @param {string} deviceId Device ID
62
77
  * @param {*} [options] Override http request option.
63
- * @deprecated
64
78
  * @throws {RequiredError}
65
79
  * @memberof DeviceApiInterface
66
80
  */
67
- getDeviceDeprecatedRaw(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
68
- /**
69
- * Gets device info using device ID.
70
- * Get Device Short
71
- * @deprecated
72
- */
73
- getDeviceDeprecated(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
74
- /**
75
- * 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.
76
- * @summary Get Devices
77
- * @param {Array<string>} [id] Filter by Device IDs
78
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
79
- * @param {Array<string>} [oemName] Filter by OEM names
80
- * @param {Array<string>} [codename] Filter by device codenames
81
- * @param {Array<string>} [modelName] Filter by model names
82
- * @param {boolean} [supported] Supported status
83
- * @param {Array<string>} [maintainer] Filter by maintainer ID
84
- * @param {boolean} [freezed] Filter by Freezed status
85
- * @param {boolean} [hasReleases] Filter by has releases status
86
- * @param {number} [skip] Skip query results
87
- * @param {number} [limit] Limit query results (0 means unlimited)
81
+ getDeviceByIdRaw(requestParameters: GetDeviceByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
82
+ /**
83
+ * GET /devices/{device_id} - Get device by ID (deprecated).
84
+ */
85
+ getDeviceById(requestParameters: GetDeviceByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
86
+ /**
87
+ * Creates request options for getOems without sending the request
88
+ * @throws {RequiredError}
89
+ * @memberof DeviceApiInterface
90
+ */
91
+ getOemsRequestOpts(): Promise<runtime.RequestOpts>;
92
+ /**
93
+ *
94
+ * @summary GET /oems - Get a list of all unique OEM names.
88
95
  * @param {*} [options] Override http request option.
89
96
  * @throws {RequiredError}
90
97
  * @memberof DeviceApiInterface
91
98
  */
92
- getDevicesRaw(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
99
+ getOemsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseString>>;
93
100
  /**
94
- * 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.
95
- * Get Devices
101
+ * GET /oems - Get a list of all unique OEM names.
96
102
  */
97
- getDevices(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
103
+ getOems(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseString>;
98
104
  /**
99
- * Lists all OEM names
100
- * @summary Get Oems
105
+ * Creates request options for listDevices without sending the request
106
+ * @param {string} [id]
107
+ * @param {string} [id2]
108
+ * @param {string} [oemName]
109
+ * @param {string} [codename]
110
+ * @param {string} [modelName]
111
+ * @param {boolean} [supported]
112
+ * @param {string} [maintainer]
113
+ * @param {boolean} [freezed]
114
+ * @param {boolean} [hasReleases]
115
+ * @param {number} [skip]
116
+ * @param {number} [limit]
117
+ * @throws {RequiredError}
118
+ * @memberof DeviceApiInterface
119
+ */
120
+ listDevicesRequestOpts(requestParameters: ListDevicesRequest): Promise<runtime.RequestOpts>;
121
+ /**
122
+ *
123
+ * @summary GET /devices/ - List devices with filters.
124
+ * @param {string} [id]
125
+ * @param {string} [id2]
126
+ * @param {string} [oemName]
127
+ * @param {string} [codename]
128
+ * @param {string} [modelName]
129
+ * @param {boolean} [supported]
130
+ * @param {string} [maintainer]
131
+ * @param {boolean} [freezed]
132
+ * @param {boolean} [hasReleases]
133
+ * @param {number} [skip]
134
+ * @param {number} [limit]
101
135
  * @param {*} [options] Override http request option.
102
136
  * @throws {RequiredError}
103
137
  * @memberof DeviceApiInterface
104
138
  */
105
- getOemsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseStr>>;
139
+ listDevicesRaw(requestParameters: ListDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
106
140
  /**
107
- * Lists all OEM names
108
- * Get Oems
141
+ * GET /devices/ - List devices with filters.
109
142
  */
110
- getOems(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseStr>;
143
+ listDevices(requestParameters: ListDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
111
144
  }
112
145
  /**
113
146
  *
114
147
  */
115
148
  export declare class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
116
149
  /**
117
- * 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.
118
- * Get Device
150
+ * Creates request options for getDevice without sending the request
151
+ */
152
+ getDeviceRequestOpts(requestParameters: GetDeviceRequest): Promise<runtime.RequestOpts>;
153
+ /**
154
+ * GET /devices/get - Get a single device by device_id, codename, or _id.
119
155
  */
120
156
  getDeviceRaw(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
121
157
  /**
122
- * 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.
123
- * Get Device
158
+ * GET /devices/get - Get a single device by device_id, codename, or _id.
124
159
  */
125
160
  getDevice(requestParameters?: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
126
161
  /**
127
- * Gets device info using device ID.
128
- * Get Device Short
129
- * @deprecated
162
+ * Creates request options for getDeviceById without sending the request
163
+ */
164
+ getDeviceByIdRequestOpts(requestParameters: GetDeviceByIdRequest): Promise<runtime.RequestOpts>;
165
+ /**
166
+ * GET /devices/{device_id} - Get device by ID (deprecated).
167
+ */
168
+ getDeviceByIdRaw(requestParameters: GetDeviceByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
169
+ /**
170
+ * GET /devices/{device_id} - Get device by ID (deprecated).
171
+ */
172
+ getDeviceById(requestParameters: GetDeviceByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
173
+ /**
174
+ * Creates request options for getOems without sending the request
130
175
  */
131
- getDeviceDeprecatedRaw(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
176
+ getOemsRequestOpts(): Promise<runtime.RequestOpts>;
132
177
  /**
133
- * Gets device info using device ID.
134
- * Get Device Short
135
- * @deprecated
178
+ * GET /oems - Get a list of all unique OEM names.
136
179
  */
137
- getDeviceDeprecated(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
180
+ getOemsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseString>>;
138
181
  /**
139
- * 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.
140
- * Get Devices
182
+ * GET /oems - Get a list of all unique OEM names.
141
183
  */
142
- getDevicesRaw(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
184
+ getOems(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseString>;
143
185
  /**
144
- * 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.
145
- * Get Devices
186
+ * Creates request options for listDevices without sending the request
146
187
  */
147
- getDevices(requestParameters?: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
188
+ listDevicesRequestOpts(requestParameters: ListDevicesRequest): Promise<runtime.RequestOpts>;
148
189
  /**
149
- * Lists all OEM names
150
- * Get Oems
190
+ * GET /devices/ - List devices with filters.
151
191
  */
152
- getOemsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseStr>>;
192
+ listDevicesRaw(requestParameters: ListDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
153
193
  /**
154
- * Lists all OEM names
155
- * Get Oems
194
+ * GET /devices/ - List devices with filters.
156
195
  */
157
- getOems(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseStr>;
196
+ listDevices(requestParameters?: ListDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
158
197
  }
@@ -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.3.3
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,35 +30,42 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class DeviceApi extends runtime.BaseAPI {
32
32
  /**
33
- * 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.
34
- * Get Device
33
+ * Creates request options for getDevice without sending the request
35
34
  */
36
- getDeviceRaw(requestParameters, initOverrides) {
35
+ getDeviceRequestOpts(requestParameters) {
37
36
  return __awaiter(this, void 0, void 0, function* () {
38
37
  const queryParameters = {};
39
38
  if (requestParameters['deviceId'] != null) {
40
39
  queryParameters['device_id'] = requestParameters['deviceId'];
41
40
  }
42
- if (requestParameters['id'] != null) {
43
- queryParameters['_id'] = requestParameters['id'];
44
- }
45
41
  if (requestParameters['codename'] != null) {
46
42
  queryParameters['codename'] = requestParameters['codename'];
47
43
  }
44
+ if (requestParameters['id'] != null) {
45
+ queryParameters['_id'] = requestParameters['id'];
46
+ }
48
47
  const headerParameters = {};
49
48
  let urlPath = `/devices/get`;
50
- const response = yield this.request({
49
+ return {
51
50
  path: urlPath,
52
51
  method: 'GET',
53
52
  headers: headerParameters,
54
53
  query: queryParameters,
55
- }, initOverrides);
54
+ };
55
+ });
56
+ }
57
+ /**
58
+ * GET /devices/get - Get a single device by device_id, codename, or _id.
59
+ */
60
+ getDeviceRaw(requestParameters, initOverrides) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const requestOptions = yield this.getDeviceRequestOpts(requestParameters);
63
+ const response = yield this.request(requestOptions, initOverrides);
56
64
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeviceResponseFromJSON)(jsonValue));
57
65
  });
58
66
  }
59
67
  /**
60
- * 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.
61
- * Get Device
68
+ * GET /devices/get - Get a single device by device_id, codename, or _id.
62
69
  */
63
70
  getDevice() {
64
71
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
@@ -67,44 +74,83 @@ class DeviceApi extends runtime.BaseAPI {
67
74
  });
68
75
  }
69
76
  /**
70
- * Gets device info using device ID.
71
- * Get Device Short
72
- * @deprecated
77
+ * Creates request options for getDeviceById without sending the request
73
78
  */
74
- getDeviceDeprecatedRaw(requestParameters, initOverrides) {
79
+ getDeviceByIdRequestOpts(requestParameters) {
75
80
  return __awaiter(this, void 0, void 0, function* () {
76
81
  if (requestParameters['deviceId'] == null) {
77
- 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().');
78
83
  }
79
84
  const queryParameters = {};
80
85
  const headerParameters = {};
81
86
  let urlPath = `/devices/{device_id}`;
82
87
  urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
83
- const response = yield this.request({
88
+ return {
84
89
  path: urlPath,
85
90
  method: 'GET',
86
91
  headers: headerParameters,
87
92
  query: queryParameters,
88
- }, initOverrides);
93
+ };
94
+ });
95
+ }
96
+ /**
97
+ * GET /devices/{device_id} - Get device by ID (deprecated).
98
+ */
99
+ getDeviceByIdRaw(requestParameters, initOverrides) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const requestOptions = yield this.getDeviceByIdRequestOpts(requestParameters);
102
+ const response = yield this.request(requestOptions, initOverrides);
89
103
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeviceResponseFromJSON)(jsonValue));
90
104
  });
91
105
  }
92
106
  /**
93
- * Gets device info using device ID.
94
- * Get Device Short
95
- * @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.
96
143
  */
97
- getDeviceDeprecated(requestParameters, initOverrides) {
144
+ getOems(initOverrides) {
98
145
  return __awaiter(this, void 0, void 0, function* () {
99
- const response = yield this.getDeviceDeprecatedRaw(requestParameters, initOverrides);
146
+ const response = yield this.getOemsRaw(initOverrides);
100
147
  return yield response.value();
101
148
  });
102
149
  }
103
150
  /**
104
- * 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.
105
- * Get Devices
151
+ * Creates request options for listDevices without sending the request
106
152
  */
107
- getDevicesRaw(requestParameters, initOverrides) {
153
+ listDevicesRequestOpts(requestParameters) {
108
154
  return __awaiter(this, void 0, void 0, function* () {
109
155
  const queryParameters = {};
110
156
  if (requestParameters['id'] != null) {
@@ -141,51 +187,31 @@ class DeviceApi extends runtime.BaseAPI {
141
187
  queryParameters['limit'] = requestParameters['limit'];
142
188
  }
143
189
  const headerParameters = {};
144
- let urlPath = `/devices/`;
145
- const response = yield this.request({
190
+ let urlPath = `/devices`;
191
+ return {
146
192
  path: urlPath,
147
193
  method: 'GET',
148
194
  headers: headerParameters,
149
195
  query: queryParameters,
150
- }, initOverrides);
151
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseShortDeviceResponseFromJSON)(jsonValue));
196
+ };
152
197
  });
153
198
  }
154
199
  /**
155
- * 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.
156
- * Get Devices
200
+ * GET /devices/ - List devices with filters.
157
201
  */
158
- getDevices() {
159
- return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
160
- const response = yield this.getDevicesRaw(requestParameters, initOverrides);
161
- return yield response.value();
162
- });
163
- }
164
- /**
165
- * Lists all OEM names
166
- * Get Oems
167
- */
168
- getOemsRaw(initOverrides) {
202
+ listDevicesRaw(requestParameters, initOverrides) {
169
203
  return __awaiter(this, void 0, void 0, function* () {
170
- const queryParameters = {};
171
- const headerParameters = {};
172
- let urlPath = `/oems/`;
173
- const response = yield this.request({
174
- path: urlPath,
175
- method: 'GET',
176
- headers: headerParameters,
177
- query: queryParameters,
178
- }, initOverrides);
179
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseStrFromJSON)(jsonValue));
204
+ const requestOptions = yield this.listDevicesRequestOpts(requestParameters);
205
+ const response = yield this.request(requestOptions, initOverrides);
206
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseShortDeviceResponseFromJSON)(jsonValue));
180
207
  });
181
208
  }
182
209
  /**
183
- * Lists all OEM names
184
- * Get Oems
210
+ * GET /devices/ - List devices with filters.
185
211
  */
186
- getOems(initOverrides) {
187
- return __awaiter(this, void 0, void 0, function* () {
188
- const response = yield this.getOemsRaw(initOverrides);
212
+ listDevices() {
213
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
214
+ const response = yield this.listDevicesRaw(requestParameters, initOverrides);
189
215
  return yield response.value();
190
216
  });
191
217
  }