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