@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,36 +10,34 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BuildTaskResponse, FFStatusResponse, ListResponseBuildTaskShortResponse, NewBuildTaskBody, TaskUpdateBody } from '../models/index';
14
- export interface CancelTaskFactoryTaskIdCancelPostRequest {
13
+ import type { BuildTaskResponse, FFStatusResponse, ListResponseBuildTaskShortResponse, NewBuildTaskBody, TaskUpdateBody, WorkerStatusBody } from '../models/index';
14
+ export interface CancelTaskRequest {
15
15
  taskId: string;
16
16
  }
17
- export interface DeleteTaskFactoryTaskIdDeleteRequest {
17
+ export interface CreateTaskRequest {
18
+ newBuildTaskBody: NewBuildTaskBody;
19
+ }
20
+ export interface DeleteTaskRequest {
18
21
  taskId: string;
19
22
  }
20
- export interface DownloadArtifactFactoryTaskIdArtifactGetRequest {
23
+ export interface DownloadArtifactRequest {
21
24
  taskId: string;
22
25
  }
23
- export interface GetTaskFactoryTaskIdGetRequest {
26
+ export interface GetTaskRequest {
24
27
  taskId: string;
25
28
  }
26
- export interface ListTasksFactoryGetRequest {
29
+ export interface ListTasksRequest {
27
30
  deviceId?: string | null;
28
31
  }
29
- export interface NewTaskFactoryPostRequest {
30
- newBuildTaskBody: NewBuildTaskBody;
31
- }
32
- export interface UpdateTaskFactoryTaskIdPatchRequest {
32
+ export interface UpdateTaskRequest {
33
33
  taskId: string;
34
34
  taskUpdateBody: TaskUpdateBody;
35
35
  }
36
- export interface UpdateWorkerStatusFactoryUpdateStatusPostRequest {
37
- body: string;
36
+ export interface UpdateWorkerStatusRequest {
37
+ workerStatusBody: WorkerStatusBody;
38
38
  }
39
- export interface UploadArtifactFactoryTaskIdArtifactPostRequest {
39
+ export interface UploadArtifactRequest {
40
40
  taskId: string;
41
- artifact: Blob;
42
- md5Hash: string;
43
41
  }
44
42
  /**
45
43
  * FoxFactoryApi - interface
@@ -49,250 +47,328 @@ export interface UploadArtifactFactoryTaskIdArtifactPostRequest {
49
47
  */
50
48
  export interface FoxFactoryApiInterface {
51
49
  /**
52
- * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
53
- * @summary Cancel Task
54
- * @param {string} taskId
50
+ * Creates request options for cancelTask without sending the request
51
+ * @param {string} taskId Build task ID
52
+ * @throws {RequiredError}
53
+ * @memberof FoxFactoryApiInterface
54
+ */
55
+ cancelTaskRequestOpts(requestParameters: CancelTaskRequest): Promise<runtime.RequestOpts>;
56
+ /**
57
+ *
58
+ * @summary POST /internal/factory/{task_id}/cancel – Cancel a running build task.
59
+ * @param {string} taskId Build task ID
55
60
  * @param {*} [options] Override http request option.
56
61
  * @throws {RequiredError}
57
62
  * @memberof FoxFactoryApiInterface
58
63
  */
59
- cancelTaskFactoryTaskIdCancelPostRaw(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
64
+ cancelTaskRaw(requestParameters: CancelTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
65
+ /**
66
+ * POST /internal/factory/{task_id}/cancel – Cancel a running build task.
67
+ */
68
+ cancelTask(requestParameters: CancelTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
60
69
  /**
61
- * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
62
- * Cancel Task
70
+ * Creates request options for createTask without sending the request
71
+ * @param {NewBuildTaskBody} newBuildTaskBody
72
+ * @throws {RequiredError}
73
+ * @memberof FoxFactoryApiInterface
63
74
  */
64
- cancelTaskFactoryTaskIdCancelPost(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
75
+ createTaskRequestOpts(requestParameters: CreateTaskRequest): Promise<runtime.RequestOpts>;
65
76
  /**
66
- * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
67
- * @summary Delete Task
68
- * @param {string} taskId
77
+ *
78
+ * @summary POST /internal/factory – Create a new build task.
79
+ * @param {NewBuildTaskBody} newBuildTaskBody
69
80
  * @param {*} [options] Override http request option.
70
81
  * @throws {RequiredError}
71
82
  * @memberof FoxFactoryApiInterface
72
83
  */
73
- deleteTaskFactoryTaskIdDeleteRaw(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
84
+ createTaskRaw(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
74
85
  /**
75
- * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
76
- * Delete Task
86
+ * POST /internal/factory Create a new build task.
87
+ */
88
+ createTask(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
89
+ /**
90
+ * Creates request options for deleteTask without sending the request
91
+ * @param {string} taskId Build task ID
92
+ * @throws {RequiredError}
93
+ * @memberof FoxFactoryApiInterface
77
94
  */
78
- deleteTaskFactoryTaskIdDelete(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
95
+ deleteTaskRequestOpts(requestParameters: DeleteTaskRequest): Promise<runtime.RequestOpts>;
79
96
  /**
80
- * Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
81
- * @summary Download Artifact
82
- * @param {string} taskId
97
+ *
98
+ * @summary DELETE /internal/factory/{task_id} – Delete a build task and its artifact.
99
+ * @param {string} taskId Build task ID
83
100
  * @param {*} [options] Override http request option.
84
101
  * @throws {RequiredError}
85
102
  * @memberof FoxFactoryApiInterface
86
103
  */
87
- downloadArtifactFactoryTaskIdArtifactGetRaw(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
104
+ deleteTaskRaw(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
88
105
  /**
89
- * Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
90
- * Download Artifact
106
+ * DELETE /internal/factory/{task_id} Delete a build task and its artifact.
91
107
  */
92
- downloadArtifactFactoryTaskIdArtifactGet(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
108
+ deleteTask(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
93
109
  /**
94
- * Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
95
- * @summary Factory Status
110
+ * Creates request options for downloadArtifact without sending the request
111
+ * @param {string} taskId Build task ID
112
+ * @throws {RequiredError}
113
+ * @memberof FoxFactoryApiInterface
114
+ */
115
+ downloadArtifactRequestOpts(requestParameters: DownloadArtifactRequest): Promise<runtime.RequestOpts>;
116
+ /**
117
+ *
118
+ * @summary GET /internal/factory/{task_id}/artifact – Download a build artifact.
119
+ * @param {string} taskId Build task ID
96
120
  * @param {*} [options] Override http request option.
97
121
  * @throws {RequiredError}
98
122
  * @memberof FoxFactoryApiInterface
99
123
  */
100
- factoryStatusFactoryStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>>;
124
+ downloadArtifactRaw(requestParameters: DownloadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
101
125
  /**
102
- * Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
103
- * Factory Status
126
+ * GET /internal/factory/{task_id}/artifact Download a build artifact.
104
127
  */
105
- factoryStatusFactoryStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
128
+ downloadArtifact(requestParameters: DownloadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
106
129
  /**
107
- * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
108
- * @summary Get Task
109
- * @param {string} taskId
130
+ * Creates request options for getFactoryStatus without sending the request
131
+ * @throws {RequiredError}
132
+ * @memberof FoxFactoryApiInterface
133
+ */
134
+ getFactoryStatusRequestOpts(): Promise<runtime.RequestOpts>;
135
+ /**
136
+ *
137
+ * @summary GET /internal/factory/status – Get the current FoxFactory worker status.
110
138
  * @param {*} [options] Override http request option.
111
139
  * @throws {RequiredError}
112
140
  * @memberof FoxFactoryApiInterface
113
141
  */
114
- getTaskFactoryTaskIdGetRaw(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
142
+ getFactoryStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>>;
115
143
  /**
116
- * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
117
- * Get Task
144
+ * GET /internal/factory/status Get the current FoxFactory worker status.
118
145
  */
119
- getTaskFactoryTaskIdGet(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
146
+ getFactoryStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
120
147
  /**
121
- * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
122
- * @summary List Tasks
123
- * @param {string} [deviceId]
148
+ * Creates request options for getTask without sending the request
149
+ * @param {string} taskId Build task ID
150
+ * @throws {RequiredError}
151
+ * @memberof FoxFactoryApiInterface
152
+ */
153
+ getTaskRequestOpts(requestParameters: GetTaskRequest): Promise<runtime.RequestOpts>;
154
+ /**
155
+ *
156
+ * @summary GET /internal/factory/{task_id} – Get a single build task.
157
+ * @param {string} taskId Build task ID
124
158
  * @param {*} [options] Override http request option.
125
159
  * @throws {RequiredError}
126
160
  * @memberof FoxFactoryApiInterface
127
161
  */
128
- listTasksFactoryGetRaw(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>>;
162
+ getTaskRaw(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
129
163
  /**
130
- * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
131
- * List Tasks
164
+ * GET /internal/factory/{task_id} Get a single build task.
132
165
  */
133
- listTasksFactoryGet(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
166
+ getTask(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
134
167
  /**
135
- * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
136
- * @summary New Task
137
- * @param {NewBuildTaskBody} newBuildTaskBody
168
+ * Creates request options for listTasks without sending the request
169
+ * @param {string} [deviceId]
170
+ * @throws {RequiredError}
171
+ * @memberof FoxFactoryApiInterface
172
+ */
173
+ listTasksRequestOpts(requestParameters: ListTasksRequest): Promise<runtime.RequestOpts>;
174
+ /**
175
+ *
176
+ * @summary GET /internal/factory – List build tasks.
177
+ * @param {string} [deviceId]
138
178
  * @param {*} [options] Override http request option.
139
179
  * @throws {RequiredError}
140
180
  * @memberof FoxFactoryApiInterface
141
181
  */
142
- newTaskFactoryPostRaw(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
182
+ listTasksRaw(requestParameters: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>>;
143
183
  /**
144
- * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
145
- * New Task
184
+ * GET /internal/factory List build tasks.
146
185
  */
147
- newTaskFactoryPost(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
186
+ listTasks(requestParameters: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
148
187
  /**
149
- * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
150
- * @summary Update Task
151
- * @param {string} taskId
188
+ * Creates request options for updateTask without sending the request
189
+ * @param {string} taskId Build task ID
190
+ * @param {TaskUpdateBody} taskUpdateBody
191
+ * @throws {RequiredError}
192
+ * @memberof FoxFactoryApiInterface
193
+ */
194
+ updateTaskRequestOpts(requestParameters: UpdateTaskRequest): Promise<runtime.RequestOpts>;
195
+ /**
196
+ *
197
+ * @summary PATCH /internal/factory/{task_id} – Update task status / logs.
198
+ * @param {string} taskId Build task ID
152
199
  * @param {TaskUpdateBody} taskUpdateBody
153
200
  * @param {*} [options] Override http request option.
154
201
  * @throws {RequiredError}
155
202
  * @memberof FoxFactoryApiInterface
156
203
  */
157
- updateTaskFactoryTaskIdPatchRaw(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
204
+ updateTaskRaw(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
205
+ /**
206
+ * PATCH /internal/factory/{task_id} – Update task status / logs.
207
+ */
208
+ updateTask(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
158
209
  /**
159
- * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
160
- * Update Task
210
+ * Creates request options for updateWorkerStatus without sending the request
211
+ * @param {WorkerStatusBody} workerStatusBody
212
+ * @throws {RequiredError}
213
+ * @memberof FoxFactoryApiInterface
161
214
  */
162
- updateTaskFactoryTaskIdPatch(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
215
+ updateWorkerStatusRequestOpts(requestParameters: UpdateWorkerStatusRequest): Promise<runtime.RequestOpts>;
163
216
  /**
164
- * Endpoint for FoxFactory worker to update its status.
165
- * @summary Update Worker Status
166
- * @param {string} body
217
+ *
218
+ * @summary POST /internal/factory/update_status – Worker heartbeat / status update.
219
+ * @param {WorkerStatusBody} workerStatusBody
167
220
  * @param {*} [options] Override http request option.
168
221
  * @throws {RequiredError}
169
222
  * @memberof FoxFactoryApiInterface
170
223
  */
171
- updateWorkerStatusFactoryUpdateStatusPostRaw(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
224
+ updateWorkerStatusRaw(requestParameters: UpdateWorkerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
172
225
  /**
173
- * Endpoint for FoxFactory worker to update its status.
174
- * Update Worker Status
226
+ * POST /internal/factory/update_status Worker heartbeat / status update.
175
227
  */
176
- updateWorkerStatusFactoryUpdateStatusPost(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
228
+ updateWorkerStatus(requestParameters: UpdateWorkerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
177
229
  /**
178
- * Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
179
- * @summary Upload Artifact
180
- * @param {string} taskId
181
- * @param {Blob} artifact
182
- * @param {string} md5Hash
230
+ * Creates request options for uploadArtifact without sending the request
231
+ * @param {string} taskId Build task ID
232
+ * @throws {RequiredError}
233
+ * @memberof FoxFactoryApiInterface
234
+ */
235
+ uploadArtifactRequestOpts(requestParameters: UploadArtifactRequest): Promise<runtime.RequestOpts>;
236
+ /**
237
+ *
238
+ * @summary POST /internal/factory/{task_id}/artifact – Upload a build artifact.
239
+ * @param {string} taskId Build task ID
183
240
  * @param {*} [options] Override http request option.
184
241
  * @throws {RequiredError}
185
242
  * @memberof FoxFactoryApiInterface
186
243
  */
187
- uploadArtifactFactoryTaskIdArtifactPostRaw(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
244
+ uploadArtifactRaw(requestParameters: UploadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
188
245
  /**
189
- * Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
190
- * Upload Artifact
246
+ * POST /internal/factory/{task_id}/artifact Upload a build artifact.
191
247
  */
192
- uploadArtifactFactoryTaskIdArtifactPost(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
248
+ uploadArtifact(requestParameters: UploadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
193
249
  }
194
250
  /**
195
251
  *
196
252
  */
197
253
  export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInterface {
198
254
  /**
199
- * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
200
- * Cancel Task
255
+ * Creates request options for cancelTask without sending the request
256
+ */
257
+ cancelTaskRequestOpts(requestParameters: CancelTaskRequest): Promise<runtime.RequestOpts>;
258
+ /**
259
+ * POST /internal/factory/{task_id}/cancel – Cancel a running build task.
260
+ */
261
+ cancelTaskRaw(requestParameters: CancelTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
262
+ /**
263
+ * POST /internal/factory/{task_id}/cancel – Cancel a running build task.
264
+ */
265
+ cancelTask(requestParameters: CancelTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
266
+ /**
267
+ * Creates request options for createTask without sending the request
268
+ */
269
+ createTaskRequestOpts(requestParameters: CreateTaskRequest): Promise<runtime.RequestOpts>;
270
+ /**
271
+ * POST /internal/factory – Create a new build task.
272
+ */
273
+ createTaskRaw(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
274
+ /**
275
+ * POST /internal/factory – Create a new build task.
276
+ */
277
+ createTask(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
278
+ /**
279
+ * Creates request options for deleteTask without sending the request
280
+ */
281
+ deleteTaskRequestOpts(requestParameters: DeleteTaskRequest): Promise<runtime.RequestOpts>;
282
+ /**
283
+ * DELETE /internal/factory/{task_id} – Delete a build task and its artifact.
284
+ */
285
+ deleteTaskRaw(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
286
+ /**
287
+ * DELETE /internal/factory/{task_id} – Delete a build task and its artifact.
288
+ */
289
+ deleteTask(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
290
+ /**
291
+ * Creates request options for downloadArtifact without sending the request
292
+ */
293
+ downloadArtifactRequestOpts(requestParameters: DownloadArtifactRequest): Promise<runtime.RequestOpts>;
294
+ /**
295
+ * GET /internal/factory/{task_id}/artifact – Download a build artifact.
201
296
  */
202
- cancelTaskFactoryTaskIdCancelPostRaw(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
297
+ downloadArtifactRaw(requestParameters: DownloadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
203
298
  /**
204
- * Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
205
- * Cancel Task
299
+ * GET /internal/factory/{task_id}/artifact Download a build artifact.
206
300
  */
207
- cancelTaskFactoryTaskIdCancelPost(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
301
+ downloadArtifact(requestParameters: DownloadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
208
302
  /**
209
- * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
210
- * Delete Task
303
+ * Creates request options for getFactoryStatus without sending the request
211
304
  */
212
- deleteTaskFactoryTaskIdDeleteRaw(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
305
+ getFactoryStatusRequestOpts(): Promise<runtime.RequestOpts>;
213
306
  /**
214
- * Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
215
- * Delete Task
307
+ * GET /internal/factory/status Get the current FoxFactory worker status.
216
308
  */
217
- deleteTaskFactoryTaskIdDelete(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
309
+ getFactoryStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>>;
218
310
  /**
219
- * Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
220
- * Download Artifact
311
+ * GET /internal/factory/status Get the current FoxFactory worker status.
221
312
  */
222
- downloadArtifactFactoryTaskIdArtifactGetRaw(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
313
+ getFactoryStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
223
314
  /**
224
- * Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
225
- * Download Artifact
315
+ * Creates request options for getTask without sending the request
226
316
  */
227
- downloadArtifactFactoryTaskIdArtifactGet(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
317
+ getTaskRequestOpts(requestParameters: GetTaskRequest): Promise<runtime.RequestOpts>;
228
318
  /**
229
- * Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
230
- * Factory Status
319
+ * GET /internal/factory/{task_id} Get a single build task.
231
320
  */
232
- factoryStatusFactoryStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>>;
321
+ getTaskRaw(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
233
322
  /**
234
- * Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
235
- * Factory Status
323
+ * GET /internal/factory/{task_id} Get a single build task.
236
324
  */
237
- factoryStatusFactoryStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
325
+ getTask(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
238
326
  /**
239
- * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
240
- * Get Task
327
+ * Creates request options for listTasks without sending the request
241
328
  */
242
- getTaskFactoryTaskIdGetRaw(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
329
+ listTasksRequestOpts(requestParameters: ListTasksRequest): Promise<runtime.RequestOpts>;
243
330
  /**
244
- * Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
245
- * Get Task
331
+ * GET /internal/factory List build tasks.
246
332
  */
247
- getTaskFactoryTaskIdGet(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
333
+ listTasksRaw(requestParameters: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>>;
248
334
  /**
249
- * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
250
- * List Tasks
335
+ * GET /internal/factory List build tasks.
251
336
  */
252
- listTasksFactoryGetRaw(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>>;
337
+ listTasks(requestParameters?: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
253
338
  /**
254
- * Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
255
- * List Tasks
339
+ * Creates request options for updateTask without sending the request
256
340
  */
257
- listTasksFactoryGet(requestParameters?: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
341
+ updateTaskRequestOpts(requestParameters: UpdateTaskRequest): Promise<runtime.RequestOpts>;
258
342
  /**
259
- * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
260
- * New Task
343
+ * PATCH /internal/factory/{task_id} Update task status / logs.
261
344
  */
262
- newTaskFactoryPostRaw(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
345
+ updateTaskRaw(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
263
346
  /**
264
- * Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
265
- * New Task
347
+ * PATCH /internal/factory/{task_id} Update task status / logs.
266
348
  */
267
- newTaskFactoryPost(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
349
+ updateTask(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
268
350
  /**
269
- * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
270
- * Update Task
351
+ * Creates request options for updateWorkerStatus without sending the request
271
352
  */
272
- updateTaskFactoryTaskIdPatchRaw(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
353
+ updateWorkerStatusRequestOpts(requestParameters: UpdateWorkerStatusRequest): Promise<runtime.RequestOpts>;
273
354
  /**
274
- * Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
275
- * Update Task
355
+ * POST /internal/factory/update_status Worker heartbeat / status update.
276
356
  */
277
- updateTaskFactoryTaskIdPatch(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
357
+ updateWorkerStatusRaw(requestParameters: UpdateWorkerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
278
358
  /**
279
- * Endpoint for FoxFactory worker to update its status.
280
- * Update Worker Status
359
+ * POST /internal/factory/update_status Worker heartbeat / status update.
281
360
  */
282
- updateWorkerStatusFactoryUpdateStatusPostRaw(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
361
+ updateWorkerStatus(requestParameters: UpdateWorkerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
283
362
  /**
284
- * Endpoint for FoxFactory worker to update its status.
285
- * Update Worker Status
363
+ * Creates request options for uploadArtifact without sending the request
286
364
  */
287
- updateWorkerStatusFactoryUpdateStatusPost(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
365
+ uploadArtifactRequestOpts(requestParameters: UploadArtifactRequest): Promise<runtime.RequestOpts>;
288
366
  /**
289
- * Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
290
- * Upload Artifact
367
+ * POST /internal/factory/{task_id}/artifact Upload a build artifact.
291
368
  */
292
- uploadArtifactFactoryTaskIdArtifactPostRaw(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
369
+ uploadArtifactRaw(requestParameters: UploadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
293
370
  /**
294
- * Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
295
- * Upload Artifact
371
+ * POST /internal/factory/{task_id}/artifact Upload a build artifact.
296
372
  */
297
- uploadArtifactFactoryTaskIdArtifactPost(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
373
+ uploadArtifact(requestParameters: UploadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
298
374
  }