@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
@@ -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.3.3
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).
@@ -16,67 +16,65 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  BuildTaskResponse,
19
- FFStatusEnum,
19
+ ErrorResponse,
20
20
  FFStatusResponse,
21
- HTTPValidationError,
22
21
  ListResponseBuildTaskShortResponse,
23
22
  NewBuildTaskBody,
24
23
  TaskUpdateBody,
24
+ WorkerStatusBody,
25
25
  } from '../models/index';
26
26
  import {
27
27
  BuildTaskResponseFromJSON,
28
28
  BuildTaskResponseToJSON,
29
- FFStatusEnumFromJSON,
30
- FFStatusEnumToJSON,
29
+ ErrorResponseFromJSON,
30
+ ErrorResponseToJSON,
31
31
  FFStatusResponseFromJSON,
32
32
  FFStatusResponseToJSON,
33
- HTTPValidationErrorFromJSON,
34
- HTTPValidationErrorToJSON,
35
33
  ListResponseBuildTaskShortResponseFromJSON,
36
34
  ListResponseBuildTaskShortResponseToJSON,
37
35
  NewBuildTaskBodyFromJSON,
38
36
  NewBuildTaskBodyToJSON,
39
37
  TaskUpdateBodyFromJSON,
40
38
  TaskUpdateBodyToJSON,
39
+ WorkerStatusBodyFromJSON,
40
+ WorkerStatusBodyToJSON,
41
41
  } from '../models/index';
42
42
 
43
- export interface CancelTaskFactoryTaskIdCancelPostRequest {
43
+ export interface CancelTaskRequest {
44
44
  taskId: string;
45
45
  }
46
46
 
47
- export interface DeleteTaskFactoryTaskIdDeleteRequest {
48
- taskId: string;
47
+ export interface CreateTaskRequest {
48
+ newBuildTaskBody: NewBuildTaskBody;
49
49
  }
50
50
 
51
- export interface DownloadArtifactFactoryTaskIdArtifactGetRequest {
51
+ export interface DeleteTaskRequest {
52
52
  taskId: string;
53
53
  }
54
54
 
55
- export interface GetTaskFactoryTaskIdGetRequest {
55
+ export interface DownloadArtifactRequest {
56
56
  taskId: string;
57
57
  }
58
58
 
59
- export interface ListTasksFactoryGetRequest {
60
- deviceId?: string | null;
59
+ export interface GetTaskRequest {
60
+ taskId: string;
61
61
  }
62
62
 
63
- export interface NewTaskFactoryPostRequest {
64
- newBuildTaskBody: NewBuildTaskBody;
63
+ export interface ListTasksRequest {
64
+ deviceId?: string | null;
65
65
  }
66
66
 
67
- export interface UpdateTaskFactoryTaskIdPatchRequest {
67
+ export interface UpdateTaskRequest {
68
68
  taskId: string;
69
69
  taskUpdateBody: TaskUpdateBody;
70
70
  }
71
71
 
72
- export interface UpdateWorkerStatusFactoryUpdateStatusPostRequest {
73
- body: string;
72
+ export interface UpdateWorkerStatusRequest {
73
+ workerStatusBody: WorkerStatusBody;
74
74
  }
75
75
 
76
- export interface UploadArtifactFactoryTaskIdArtifactPostRequest {
76
+ export interface UploadArtifactRequest {
77
77
  taskId: string;
78
- artifact: Blob;
79
- md5Hash: string;
80
78
  }
81
79
 
82
80
  /**
@@ -87,166 +85,234 @@ export interface UploadArtifactFactoryTaskIdArtifactPostRequest {
87
85
  */
88
86
  export interface FoxFactoryApiInterface {
89
87
  /**
90
- * 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.
91
- * @summary Cancel Task
92
- * @param {string} taskId
88
+ * Creates request options for cancelTask without sending the request
89
+ * @param {string} taskId Build task ID
90
+ * @throws {RequiredError}
91
+ * @memberof FoxFactoryApiInterface
92
+ */
93
+ cancelTaskRequestOpts(requestParameters: CancelTaskRequest): Promise<runtime.RequestOpts>;
94
+
95
+ /**
96
+ *
97
+ * @summary POST /internal/factory/{task_id}/cancel – Cancel a running build task.
98
+ * @param {string} taskId Build task ID
93
99
  * @param {*} [options] Override http request option.
94
100
  * @throws {RequiredError}
95
101
  * @memberof FoxFactoryApiInterface
96
102
  */
97
- cancelTaskFactoryTaskIdCancelPostRaw(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
103
+ cancelTaskRaw(requestParameters: CancelTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
98
104
 
99
105
  /**
100
- * 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.
101
- * Cancel Task
106
+ * POST /internal/factory/{task_id}/cancel Cancel a running build task.
107
+ */
108
+ cancelTask(requestParameters: CancelTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
109
+
110
+ /**
111
+ * Creates request options for createTask without sending the request
112
+ * @param {NewBuildTaskBody} newBuildTaskBody
113
+ * @throws {RequiredError}
114
+ * @memberof FoxFactoryApiInterface
102
115
  */
103
- cancelTaskFactoryTaskIdCancelPost(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
116
+ createTaskRequestOpts(requestParameters: CreateTaskRequest): Promise<runtime.RequestOpts>;
104
117
 
105
118
  /**
106
- * 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.
107
- * @summary Delete Task
108
- * @param {string} taskId
119
+ *
120
+ * @summary POST /internal/factory – Create a new build task.
121
+ * @param {NewBuildTaskBody} newBuildTaskBody
109
122
  * @param {*} [options] Override http request option.
110
123
  * @throws {RequiredError}
111
124
  * @memberof FoxFactoryApiInterface
112
125
  */
113
- deleteTaskFactoryTaskIdDeleteRaw(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
126
+ createTaskRaw(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
127
+
128
+ /**
129
+ * POST /internal/factory – Create a new build task.
130
+ */
131
+ createTask(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
132
 
115
133
  /**
116
- * 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.
117
- * Delete Task
134
+ * Creates request options for deleteTask without sending the request
135
+ * @param {string} taskId Build task ID
136
+ * @throws {RequiredError}
137
+ * @memberof FoxFactoryApiInterface
118
138
  */
119
- deleteTaskFactoryTaskIdDelete(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
139
+ deleteTaskRequestOpts(requestParameters: DeleteTaskRequest): Promise<runtime.RequestOpts>;
120
140
 
121
141
  /**
122
- * 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
123
- * @summary Download Artifact
124
- * @param {string} taskId
142
+ *
143
+ * @summary DELETE /internal/factory/{task_id} – Delete a build task and its artifact.
144
+ * @param {string} taskId Build task ID
125
145
  * @param {*} [options] Override http request option.
126
146
  * @throws {RequiredError}
127
147
  * @memberof FoxFactoryApiInterface
128
148
  */
129
- downloadArtifactFactoryTaskIdArtifactGetRaw(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
149
+ deleteTaskRaw(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
130
150
 
131
151
  /**
132
- * 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
133
- * Download Artifact
152
+ * DELETE /internal/factory/{task_id} Delete a build task and its artifact.
134
153
  */
135
- downloadArtifactFactoryTaskIdArtifactGet(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
154
+ deleteTask(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
136
155
 
137
156
  /**
138
- * 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.
139
- * @summary Factory Status
157
+ * Creates request options for downloadArtifact without sending the request
158
+ * @param {string} taskId Build task ID
159
+ * @throws {RequiredError}
160
+ * @memberof FoxFactoryApiInterface
161
+ */
162
+ downloadArtifactRequestOpts(requestParameters: DownloadArtifactRequest): Promise<runtime.RequestOpts>;
163
+
164
+ /**
165
+ *
166
+ * @summary GET /internal/factory/{task_id}/artifact – Download a build artifact.
167
+ * @param {string} taskId Build task ID
140
168
  * @param {*} [options] Override http request option.
141
169
  * @throws {RequiredError}
142
170
  * @memberof FoxFactoryApiInterface
143
171
  */
144
- factoryStatusFactoryStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>>;
172
+ downloadArtifactRaw(requestParameters: DownloadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
145
173
 
146
174
  /**
147
- * 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.
148
- * Factory Status
175
+ * GET /internal/factory/{task_id}/artifact Download a build artifact.
149
176
  */
150
- factoryStatusFactoryStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
177
+ downloadArtifact(requestParameters: DownloadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
151
178
 
152
179
  /**
153
- * 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.
154
- * @summary Get Task
155
- * @param {string} taskId
180
+ * Creates request options for getFactoryStatus without sending the request
181
+ * @throws {RequiredError}
182
+ * @memberof FoxFactoryApiInterface
183
+ */
184
+ getFactoryStatusRequestOpts(): Promise<runtime.RequestOpts>;
185
+
186
+ /**
187
+ *
188
+ * @summary GET /internal/factory/status – Get the current FoxFactory worker status.
156
189
  * @param {*} [options] Override http request option.
157
190
  * @throws {RequiredError}
158
191
  * @memberof FoxFactoryApiInterface
159
192
  */
160
- getTaskFactoryTaskIdGetRaw(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
193
+ getFactoryStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>>;
161
194
 
162
195
  /**
163
- * 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.
164
- * Get Task
196
+ * GET /internal/factory/status Get the current FoxFactory worker status.
165
197
  */
166
- getTaskFactoryTaskIdGet(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
198
+ getFactoryStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
167
199
 
168
200
  /**
169
- * 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
170
- * @summary List Tasks
171
- * @param {string} [deviceId]
201
+ * Creates request options for getTask without sending the request
202
+ * @param {string} taskId Build task ID
203
+ * @throws {RequiredError}
204
+ * @memberof FoxFactoryApiInterface
205
+ */
206
+ getTaskRequestOpts(requestParameters: GetTaskRequest): Promise<runtime.RequestOpts>;
207
+
208
+ /**
209
+ *
210
+ * @summary GET /internal/factory/{task_id} – Get a single build task.
211
+ * @param {string} taskId Build task ID
172
212
  * @param {*} [options] Override http request option.
173
213
  * @throws {RequiredError}
174
214
  * @memberof FoxFactoryApiInterface
175
215
  */
176
- listTasksFactoryGetRaw(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>>;
216
+ getTaskRaw(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>>;
177
217
 
178
218
  /**
179
- * 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
180
- * List Tasks
219
+ * GET /internal/factory/{task_id} Get a single build task.
181
220
  */
182
- listTasksFactoryGet(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
221
+ getTask(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
183
222
 
184
223
  /**
185
- * 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.
186
- * @summary New Task
187
- * @param {NewBuildTaskBody} newBuildTaskBody
224
+ * Creates request options for listTasks without sending the request
225
+ * @param {string} [deviceId]
226
+ * @throws {RequiredError}
227
+ * @memberof FoxFactoryApiInterface
228
+ */
229
+ listTasksRequestOpts(requestParameters: ListTasksRequest): Promise<runtime.RequestOpts>;
230
+
231
+ /**
232
+ *
233
+ * @summary GET /internal/factory – List build tasks.
234
+ * @param {string} [deviceId]
188
235
  * @param {*} [options] Override http request option.
189
236
  * @throws {RequiredError}
190
237
  * @memberof FoxFactoryApiInterface
191
238
  */
192
- newTaskFactoryPostRaw(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
239
+ listTasksRaw(requestParameters: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>>;
193
240
 
194
241
  /**
195
- * 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.
196
- * New Task
242
+ * GET /internal/factory List build tasks.
243
+ */
244
+ listTasks(requestParameters: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
245
+
246
+ /**
247
+ * Creates request options for updateTask without sending the request
248
+ * @param {string} taskId Build task ID
249
+ * @param {TaskUpdateBody} taskUpdateBody
250
+ * @throws {RequiredError}
251
+ * @memberof FoxFactoryApiInterface
197
252
  */
198
- newTaskFactoryPost(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
253
+ updateTaskRequestOpts(requestParameters: UpdateTaskRequest): Promise<runtime.RequestOpts>;
199
254
 
200
255
  /**
201
- * 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.
202
- * @summary Update Task
203
- * @param {string} taskId
256
+ *
257
+ * @summary PATCH /internal/factory/{task_id} – Update task status / logs.
258
+ * @param {string} taskId Build task ID
204
259
  * @param {TaskUpdateBody} taskUpdateBody
205
260
  * @param {*} [options] Override http request option.
206
261
  * @throws {RequiredError}
207
262
  * @memberof FoxFactoryApiInterface
208
263
  */
209
- updateTaskFactoryTaskIdPatchRaw(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
264
+ updateTaskRaw(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
210
265
 
211
266
  /**
212
- * 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.
213
- * Update Task
267
+ * PATCH /internal/factory/{task_id} Update task status / logs.
214
268
  */
215
- updateTaskFactoryTaskIdPatch(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
269
+ updateTask(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
216
270
 
217
271
  /**
218
- * Endpoint for FoxFactory worker to update its status.
219
- * @summary Update Worker Status
220
- * @param {string} body
272
+ * Creates request options for updateWorkerStatus without sending the request
273
+ * @param {WorkerStatusBody} workerStatusBody
274
+ * @throws {RequiredError}
275
+ * @memberof FoxFactoryApiInterface
276
+ */
277
+ updateWorkerStatusRequestOpts(requestParameters: UpdateWorkerStatusRequest): Promise<runtime.RequestOpts>;
278
+
279
+ /**
280
+ *
281
+ * @summary POST /internal/factory/update_status – Worker heartbeat / status update.
282
+ * @param {WorkerStatusBody} workerStatusBody
221
283
  * @param {*} [options] Override http request option.
222
284
  * @throws {RequiredError}
223
285
  * @memberof FoxFactoryApiInterface
224
286
  */
225
- updateWorkerStatusFactoryUpdateStatusPostRaw(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
287
+ updateWorkerStatusRaw(requestParameters: UpdateWorkerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
288
+
289
+ /**
290
+ * POST /internal/factory/update_status – Worker heartbeat / status update.
291
+ */
292
+ updateWorkerStatus(requestParameters: UpdateWorkerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
226
293
 
227
294
  /**
228
- * Endpoint for FoxFactory worker to update its status.
229
- * Update Worker Status
295
+ * Creates request options for uploadArtifact without sending the request
296
+ * @param {string} taskId Build task ID
297
+ * @throws {RequiredError}
298
+ * @memberof FoxFactoryApiInterface
230
299
  */
231
- updateWorkerStatusFactoryUpdateStatusPost(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
300
+ uploadArtifactRequestOpts(requestParameters: UploadArtifactRequest): Promise<runtime.RequestOpts>;
232
301
 
233
302
  /**
234
- * 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
235
- * @summary Upload Artifact
236
- * @param {string} taskId
237
- * @param {Blob} artifact
238
- * @param {string} md5Hash
303
+ *
304
+ * @summary POST /internal/factory/{task_id}/artifact – Upload a build artifact.
305
+ * @param {string} taskId Build task ID
239
306
  * @param {*} [options] Override http request option.
240
307
  * @throws {RequiredError}
241
308
  * @memberof FoxFactoryApiInterface
242
309
  */
243
- uploadArtifactFactoryTaskIdArtifactPostRaw(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
310
+ uploadArtifactRaw(requestParameters: UploadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
244
311
 
245
312
  /**
246
- * 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
247
- * Upload Artifact
313
+ * POST /internal/factory/{task_id}/artifact Upload a build artifact.
248
314
  */
249
- uploadArtifactFactoryTaskIdArtifactPost(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
315
+ uploadArtifact(requestParameters: UploadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
250
316
 
251
317
  }
252
318
 
@@ -256,14 +322,13 @@ export interface FoxFactoryApiInterface {
256
322
  export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInterface {
257
323
 
258
324
  /**
259
- * 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.
260
- * Cancel Task
325
+ * Creates request options for cancelTask without sending the request
261
326
  */
262
- async cancelTaskFactoryTaskIdCancelPostRaw(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>> {
327
+ async cancelTaskRequestOpts(requestParameters: CancelTaskRequest): Promise<runtime.RequestOpts> {
263
328
  if (requestParameters['taskId'] == null) {
264
329
  throw new runtime.RequiredError(
265
330
  'taskId',
266
- 'Required parameter "taskId" was null or undefined when calling cancelTaskFactoryTaskIdCancelPost().'
331
+ 'Required parameter "taskId" was null or undefined when calling cancelTask().'
267
332
  );
268
333
  }
269
334
 
@@ -271,11 +336,6 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
271
336
 
272
337
  const headerParameters: runtime.HTTPHeaders = {};
273
338
 
274
- if (this.configuration && this.configuration.accessToken) {
275
- // oauth required
276
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
277
- }
278
-
279
339
  if (this.configuration && this.configuration.accessToken) {
280
340
  const token = this.configuration.accessToken;
281
341
  const tokenString = await token("bearer_auth", []);
@@ -288,34 +348,40 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
288
348
  let urlPath = `/factory/{task_id}/cancel`;
289
349
  urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
290
350
 
291
- const response = await this.request({
351
+ return {
292
352
  path: urlPath,
293
353
  method: 'POST',
294
354
  headers: headerParameters,
295
355
  query: queryParameters,
296
- }, initOverrides);
356
+ };
357
+ }
358
+
359
+ /**
360
+ * POST /internal/factory/{task_id}/cancel – Cancel a running build task.
361
+ */
362
+ async cancelTaskRaw(requestParameters: CancelTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>> {
363
+ const requestOptions = await this.cancelTaskRequestOpts(requestParameters);
364
+ const response = await this.request(requestOptions, initOverrides);
297
365
 
298
366
  return new runtime.JSONApiResponse(response, (jsonValue) => BuildTaskResponseFromJSON(jsonValue));
299
367
  }
300
368
 
301
369
  /**
302
- * 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.
303
- * Cancel Task
370
+ * POST /internal/factory/{task_id}/cancel Cancel a running build task.
304
371
  */
305
- async cancelTaskFactoryTaskIdCancelPost(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse> {
306
- const response = await this.cancelTaskFactoryTaskIdCancelPostRaw(requestParameters, initOverrides);
372
+ async cancelTask(requestParameters: CancelTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse> {
373
+ const response = await this.cancelTaskRaw(requestParameters, initOverrides);
307
374
  return await response.value();
308
375
  }
309
376
 
310
377
  /**
311
- * 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.
312
- * Delete Task
378
+ * Creates request options for createTask without sending the request
313
379
  */
314
- async deleteTaskFactoryTaskIdDeleteRaw(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
315
- if (requestParameters['taskId'] == null) {
380
+ async createTaskRequestOpts(requestParameters: CreateTaskRequest): Promise<runtime.RequestOpts> {
381
+ if (requestParameters['newBuildTaskBody'] == null) {
316
382
  throw new runtime.RequiredError(
317
- 'taskId',
318
- 'Required parameter "taskId" was null or undefined when calling deleteTaskFactoryTaskIdDelete().'
383
+ 'newBuildTaskBody',
384
+ 'Required parameter "newBuildTaskBody" was null or undefined when calling createTask().'
319
385
  );
320
386
  }
321
387
 
@@ -323,10 +389,7 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
323
389
 
324
390
  const headerParameters: runtime.HTTPHeaders = {};
325
391
 
326
- if (this.configuration && this.configuration.accessToken) {
327
- // oauth required
328
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
329
- }
392
+ headerParameters['Content-Type'] = 'application/json';
330
393
 
331
394
  if (this.configuration && this.configuration.accessToken) {
332
395
  const token = this.configuration.accessToken;
@@ -337,41 +400,42 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
337
400
  }
338
401
  }
339
402
 
340
- let urlPath = `/factory/{task_id}`;
341
- urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
403
+ let urlPath = `/factory`;
342
404
 
343
- const response = await this.request({
405
+ return {
344
406
  path: urlPath,
345
- method: 'DELETE',
407
+ method: 'POST',
346
408
  headers: headerParameters,
347
409
  query: queryParameters,
348
- }, initOverrides);
410
+ body: NewBuildTaskBodyToJSON(requestParameters['newBuildTaskBody']),
411
+ };
412
+ }
349
413
 
350
- if (this.isJsonMime(response.headers.get('content-type'))) {
351
- return new runtime.JSONApiResponse<boolean>(response);
352
- } else {
353
- return new runtime.TextApiResponse(response) as any;
354
- }
414
+ /**
415
+ * POST /internal/factory – Create a new build task.
416
+ */
417
+ async createTaskRaw(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
418
+ const requestOptions = await this.createTaskRequestOpts(requestParameters);
419
+ const response = await this.request(requestOptions, initOverrides);
420
+
421
+ return new runtime.VoidApiResponse(response);
355
422
  }
356
423
 
357
424
  /**
358
- * 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.
359
- * Delete Task
425
+ * POST /internal/factory Create a new build task.
360
426
  */
361
- async deleteTaskFactoryTaskIdDelete(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean> {
362
- const response = await this.deleteTaskFactoryTaskIdDeleteRaw(requestParameters, initOverrides);
363
- return await response.value();
427
+ async createTask(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
428
+ await this.createTaskRaw(requestParameters, initOverrides);
364
429
  }
365
430
 
366
431
  /**
367
- * 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
368
- * Download Artifact
432
+ * Creates request options for deleteTask without sending the request
369
433
  */
370
- async downloadArtifactFactoryTaskIdArtifactGetRaw(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
434
+ async deleteTaskRequestOpts(requestParameters: DeleteTaskRequest): Promise<runtime.RequestOpts> {
371
435
  if (requestParameters['taskId'] == null) {
372
436
  throw new runtime.RequiredError(
373
437
  'taskId',
374
- 'Required parameter "taskId" was null or undefined when calling downloadArtifactFactoryTaskIdArtifactGet().'
438
+ 'Required parameter "taskId" was null or undefined when calling deleteTask().'
375
439
  );
376
440
  }
377
441
 
@@ -379,11 +443,6 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
379
443
 
380
444
  const headerParameters: runtime.HTTPHeaders = {};
381
445
 
382
- if (this.configuration && this.configuration.accessToken) {
383
- // oauth required
384
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
385
- }
386
-
387
446
  if (this.configuration && this.configuration.accessToken) {
388
447
  const token = this.configuration.accessToken;
389
448
  const tokenString = await token("bearer_auth", []);
@@ -393,46 +452,54 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
393
452
  }
394
453
  }
395
454
 
396
- let urlPath = `/factory/{task_id}/artifact`;
455
+ let urlPath = `/factory/{task_id}`;
397
456
  urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
398
457
 
399
- const response = await this.request({
458
+ return {
400
459
  path: urlPath,
401
- method: 'GET',
460
+ method: 'DELETE',
402
461
  headers: headerParameters,
403
462
  query: queryParameters,
404
- }, initOverrides);
463
+ };
464
+ }
465
+
466
+ /**
467
+ * DELETE /internal/factory/{task_id} – Delete a build task and its artifact.
468
+ */
469
+ async deleteTaskRaw(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
470
+ const requestOptions = await this.deleteTaskRequestOpts(requestParameters);
471
+ const response = await this.request(requestOptions, initOverrides);
405
472
 
406
473
  if (this.isJsonMime(response.headers.get('content-type'))) {
407
- return new runtime.JSONApiResponse<any>(response);
474
+ return new runtime.JSONApiResponse<boolean>(response);
408
475
  } else {
409
476
  return new runtime.TextApiResponse(response) as any;
410
477
  }
411
478
  }
412
479
 
413
480
  /**
414
- * 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
415
- * Download Artifact
481
+ * DELETE /internal/factory/{task_id} Delete a build task and its artifact.
416
482
  */
417
- async downloadArtifactFactoryTaskIdArtifactGet(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
418
- const response = await this.downloadArtifactFactoryTaskIdArtifactGetRaw(requestParameters, initOverrides);
483
+ async deleteTask(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean> {
484
+ const response = await this.deleteTaskRaw(requestParameters, initOverrides);
419
485
  return await response.value();
420
486
  }
421
487
 
422
488
  /**
423
- * 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.
424
- * Factory Status
489
+ * Creates request options for downloadArtifact without sending the request
425
490
  */
426
- async factoryStatusFactoryStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>> {
491
+ async downloadArtifactRequestOpts(requestParameters: DownloadArtifactRequest): Promise<runtime.RequestOpts> {
492
+ if (requestParameters['taskId'] == null) {
493
+ throw new runtime.RequiredError(
494
+ 'taskId',
495
+ 'Required parameter "taskId" was null or undefined when calling downloadArtifact().'
496
+ );
497
+ }
498
+
427
499
  const queryParameters: any = {};
428
500
 
429
501
  const headerParameters: runtime.HTTPHeaders = {};
430
502
 
431
- if (this.configuration && this.configuration.accessToken) {
432
- // oauth required
433
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
434
- }
435
-
436
503
  if (this.configuration && this.configuration.accessToken) {
437
504
  const token = this.configuration.accessToken;
438
505
  const tokenString = await token("bearer_auth", []);
@@ -442,36 +509,79 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
442
509
  }
443
510
  }
444
511
 
512
+ let urlPath = `/factory/{task_id}/artifact`;
513
+ urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
514
+
515
+ return {
516
+ path: urlPath,
517
+ method: 'GET',
518
+ headers: headerParameters,
519
+ query: queryParameters,
520
+ };
521
+ }
522
+
523
+ /**
524
+ * GET /internal/factory/{task_id}/artifact – Download a build artifact.
525
+ */
526
+ async downloadArtifactRaw(requestParameters: DownloadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
527
+ const requestOptions = await this.downloadArtifactRequestOpts(requestParameters);
528
+ const response = await this.request(requestOptions, initOverrides);
529
+
530
+ return new runtime.VoidApiResponse(response);
531
+ }
532
+
533
+ /**
534
+ * GET /internal/factory/{task_id}/artifact – Download a build artifact.
535
+ */
536
+ async downloadArtifact(requestParameters: DownloadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
537
+ await this.downloadArtifactRaw(requestParameters, initOverrides);
538
+ }
539
+
540
+ /**
541
+ * Creates request options for getFactoryStatus without sending the request
542
+ */
543
+ async getFactoryStatusRequestOpts(): Promise<runtime.RequestOpts> {
544
+ const queryParameters: any = {};
545
+
546
+ const headerParameters: runtime.HTTPHeaders = {};
547
+
548
+
445
549
  let urlPath = `/factory/status`;
446
550
 
447
- const response = await this.request({
551
+ return {
448
552
  path: urlPath,
449
553
  method: 'GET',
450
554
  headers: headerParameters,
451
555
  query: queryParameters,
452
- }, initOverrides);
556
+ };
557
+ }
558
+
559
+ /**
560
+ * GET /internal/factory/status – Get the current FoxFactory worker status.
561
+ */
562
+ async getFactoryStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>> {
563
+ const requestOptions = await this.getFactoryStatusRequestOpts();
564
+ const response = await this.request(requestOptions, initOverrides);
453
565
 
454
566
  return new runtime.JSONApiResponse(response, (jsonValue) => FFStatusResponseFromJSON(jsonValue));
455
567
  }
456
568
 
457
569
  /**
458
- * 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.
459
- * Factory Status
570
+ * GET /internal/factory/status Get the current FoxFactory worker status.
460
571
  */
461
- async factoryStatusFactoryStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse> {
462
- const response = await this.factoryStatusFactoryStatusGetRaw(initOverrides);
572
+ async getFactoryStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse> {
573
+ const response = await this.getFactoryStatusRaw(initOverrides);
463
574
  return await response.value();
464
575
  }
465
576
 
466
577
  /**
467
- * 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.
468
- * Get Task
578
+ * Creates request options for getTask without sending the request
469
579
  */
470
- async getTaskFactoryTaskIdGetRaw(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>> {
580
+ async getTaskRequestOpts(requestParameters: GetTaskRequest): Promise<runtime.RequestOpts> {
471
581
  if (requestParameters['taskId'] == null) {
472
582
  throw new runtime.RequiredError(
473
583
  'taskId',
474
- 'Required parameter "taskId" was null or undefined when calling getTaskFactoryTaskIdGet().'
584
+ 'Required parameter "taskId" was null or undefined when calling getTask().'
475
585
  );
476
586
  }
477
587
 
@@ -479,11 +589,6 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
479
589
 
480
590
  const headerParameters: runtime.HTTPHeaders = {};
481
591
 
482
- if (this.configuration && this.configuration.accessToken) {
483
- // oauth required
484
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
485
- }
486
-
487
592
  if (this.configuration && this.configuration.accessToken) {
488
593
  const token = this.configuration.accessToken;
489
594
  const tokenString = await token("bearer_auth", []);
@@ -496,30 +601,36 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
496
601
  let urlPath = `/factory/{task_id}`;
497
602
  urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
498
603
 
499
- const response = await this.request({
604
+ return {
500
605
  path: urlPath,
501
606
  method: 'GET',
502
607
  headers: headerParameters,
503
608
  query: queryParameters,
504
- }, initOverrides);
609
+ };
610
+ }
611
+
612
+ /**
613
+ * GET /internal/factory/{task_id} – Get a single build task.
614
+ */
615
+ async getTaskRaw(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>> {
616
+ const requestOptions = await this.getTaskRequestOpts(requestParameters);
617
+ const response = await this.request(requestOptions, initOverrides);
505
618
 
506
619
  return new runtime.JSONApiResponse(response, (jsonValue) => BuildTaskResponseFromJSON(jsonValue));
507
620
  }
508
621
 
509
622
  /**
510
- * 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.
511
- * Get Task
623
+ * GET /internal/factory/{task_id} Get a single build task.
512
624
  */
513
- async getTaskFactoryTaskIdGet(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse> {
514
- const response = await this.getTaskFactoryTaskIdGetRaw(requestParameters, initOverrides);
625
+ async getTask(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse> {
626
+ const response = await this.getTaskRaw(requestParameters, initOverrides);
515
627
  return await response.value();
516
628
  }
517
629
 
518
630
  /**
519
- * 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
520
- * List Tasks
631
+ * Creates request options for listTasks without sending the request
521
632
  */
522
- async listTasksFactoryGetRaw(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>> {
633
+ async listTasksRequestOpts(requestParameters: ListTasksRequest): Promise<runtime.RequestOpts> {
523
634
  const queryParameters: any = {};
524
635
 
525
636
  if (requestParameters['deviceId'] != null) {
@@ -528,11 +639,6 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
528
639
 
529
640
  const headerParameters: runtime.HTTPHeaders = {};
530
641
 
531
- if (this.configuration && this.configuration.accessToken) {
532
- // oauth required
533
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
534
- }
535
-
536
642
  if (this.configuration && this.configuration.accessToken) {
537
643
  const token = this.configuration.accessToken;
538
644
  const tokenString = await token("bearer_auth", []);
@@ -542,101 +648,49 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
542
648
  }
543
649
  }
544
650
 
545
- let urlPath = `/factory/`;
651
+ let urlPath = `/factory`;
546
652
 
547
- const response = await this.request({
653
+ return {
548
654
  path: urlPath,
549
655
  method: 'GET',
550
656
  headers: headerParameters,
551
657
  query: queryParameters,
552
- }, initOverrides);
553
-
554
- return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseBuildTaskShortResponseFromJSON(jsonValue));
658
+ };
555
659
  }
556
660
 
557
661
  /**
558
- * 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
559
- * List Tasks
662
+ * GET /internal/factory List build tasks.
560
663
  */
561
- async listTasksFactoryGet(requestParameters: ListTasksFactoryGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse> {
562
- const response = await this.listTasksFactoryGetRaw(requestParameters, initOverrides);
563
- return await response.value();
564
- }
565
-
566
- /**
567
- * 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.
568
- * New Task
569
- */
570
- async newTaskFactoryPostRaw(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
571
- if (requestParameters['newBuildTaskBody'] == null) {
572
- throw new runtime.RequiredError(
573
- 'newBuildTaskBody',
574
- 'Required parameter "newBuildTaskBody" was null or undefined when calling newTaskFactoryPost().'
575
- );
576
- }
577
-
578
- const queryParameters: any = {};
579
-
580
- const headerParameters: runtime.HTTPHeaders = {};
581
-
582
- headerParameters['Content-Type'] = 'application/json';
583
-
584
- if (this.configuration && this.configuration.accessToken) {
585
- // oauth required
586
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
587
- }
588
-
589
- if (this.configuration && this.configuration.accessToken) {
590
- const token = this.configuration.accessToken;
591
- const tokenString = await token("bearer_auth", []);
664
+ async listTasksRaw(requestParameters: ListTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>> {
665
+ const requestOptions = await this.listTasksRequestOpts(requestParameters);
666
+ const response = await this.request(requestOptions, initOverrides);
592
667
 
593
- if (tokenString) {
594
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
595
- }
596
- }
597
-
598
- let urlPath = `/factory/`;
599
-
600
- const response = await this.request({
601
- path: urlPath,
602
- method: 'POST',
603
- headers: headerParameters,
604
- query: queryParameters,
605
- body: NewBuildTaskBodyToJSON(requestParameters['newBuildTaskBody']),
606
- }, initOverrides);
607
-
608
- if (this.isJsonMime(response.headers.get('content-type'))) {
609
- return new runtime.JSONApiResponse<boolean>(response);
610
- } else {
611
- return new runtime.TextApiResponse(response) as any;
612
- }
668
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseBuildTaskShortResponseFromJSON(jsonValue));
613
669
  }
614
670
 
615
671
  /**
616
- * 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.
617
- * New Task
672
+ * GET /internal/factory List build tasks.
618
673
  */
619
- async newTaskFactoryPost(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean> {
620
- const response = await this.newTaskFactoryPostRaw(requestParameters, initOverrides);
674
+ async listTasks(requestParameters: ListTasksRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse> {
675
+ const response = await this.listTasksRaw(requestParameters, initOverrides);
621
676
  return await response.value();
622
677
  }
623
678
 
624
679
  /**
625
- * 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.
626
- * Update Task
680
+ * Creates request options for updateTask without sending the request
627
681
  */
628
- async updateTaskFactoryTaskIdPatchRaw(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
682
+ async updateTaskRequestOpts(requestParameters: UpdateTaskRequest): Promise<runtime.RequestOpts> {
629
683
  if (requestParameters['taskId'] == null) {
630
684
  throw new runtime.RequiredError(
631
685
  'taskId',
632
- 'Required parameter "taskId" was null or undefined when calling updateTaskFactoryTaskIdPatch().'
686
+ 'Required parameter "taskId" was null or undefined when calling updateTask().'
633
687
  );
634
688
  }
635
689
 
636
690
  if (requestParameters['taskUpdateBody'] == null) {
637
691
  throw new runtime.RequiredError(
638
692
  'taskUpdateBody',
639
- 'Required parameter "taskUpdateBody" was null or undefined when calling updateTaskFactoryTaskIdPatch().'
693
+ 'Required parameter "taskUpdateBody" was null or undefined when calling updateTask().'
640
694
  );
641
695
  }
642
696
 
@@ -646,11 +700,6 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
646
700
 
647
701
  headerParameters['Content-Type'] = 'application/json';
648
702
 
649
- if (this.configuration && this.configuration.accessToken) {
650
- // oauth required
651
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
652
- }
653
-
654
703
  if (this.configuration && this.configuration.accessToken) {
655
704
  const token = this.configuration.accessToken;
656
705
  const tokenString = await token("bearer_auth", []);
@@ -663,13 +712,21 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
663
712
  let urlPath = `/factory/{task_id}`;
664
713
  urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
665
714
 
666
- const response = await this.request({
715
+ return {
667
716
  path: urlPath,
668
717
  method: 'PATCH',
669
718
  headers: headerParameters,
670
719
  query: queryParameters,
671
720
  body: TaskUpdateBodyToJSON(requestParameters['taskUpdateBody']),
672
- }, initOverrides);
721
+ };
722
+ }
723
+
724
+ /**
725
+ * PATCH /internal/factory/{task_id} – Update task status / logs.
726
+ */
727
+ async updateTaskRaw(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
728
+ const requestOptions = await this.updateTaskRequestOpts(requestParameters);
729
+ const response = await this.request(requestOptions, initOverrides);
673
730
 
674
731
  if (this.isJsonMime(response.headers.get('content-type'))) {
675
732
  return new runtime.JSONApiResponse<boolean>(response);
@@ -679,23 +736,21 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
679
736
  }
680
737
 
681
738
  /**
682
- * 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.
683
- * Update Task
739
+ * PATCH /internal/factory/{task_id} Update task status / logs.
684
740
  */
685
- async updateTaskFactoryTaskIdPatch(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean> {
686
- const response = await this.updateTaskFactoryTaskIdPatchRaw(requestParameters, initOverrides);
741
+ async updateTask(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean> {
742
+ const response = await this.updateTaskRaw(requestParameters, initOverrides);
687
743
  return await response.value();
688
744
  }
689
745
 
690
746
  /**
691
- * Endpoint for FoxFactory worker to update its status.
692
- * Update Worker Status
747
+ * Creates request options for updateWorkerStatus without sending the request
693
748
  */
694
- async updateWorkerStatusFactoryUpdateStatusPostRaw(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
695
- if (requestParameters['body'] == null) {
749
+ async updateWorkerStatusRequestOpts(requestParameters: UpdateWorkerStatusRequest): Promise<runtime.RequestOpts> {
750
+ if (requestParameters['workerStatusBody'] == null) {
696
751
  throw new runtime.RequiredError(
697
- 'body',
698
- 'Required parameter "body" was null or undefined when calling updateWorkerStatusFactoryUpdateStatusPost().'
752
+ 'workerStatusBody',
753
+ 'Required parameter "workerStatusBody" was null or undefined when calling updateWorkerStatus().'
699
754
  );
700
755
  }
701
756
 
@@ -705,11 +760,6 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
705
760
 
706
761
  headerParameters['Content-Type'] = 'application/json';
707
762
 
708
- if (this.configuration && this.configuration.accessToken) {
709
- // oauth required
710
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
711
- }
712
-
713
763
  if (this.configuration && this.configuration.accessToken) {
714
764
  const token = this.configuration.accessToken;
715
765
  const tokenString = await token("bearer_auth", []);
@@ -721,53 +771,40 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
721
771
 
722
772
  let urlPath = `/factory/update_status`;
723
773
 
724
- const response = await this.request({
774
+ return {
725
775
  path: urlPath,
726
776
  method: 'POST',
727
777
  headers: headerParameters,
728
778
  query: queryParameters,
729
- body: requestParameters['body'] as any,
730
- }, initOverrides);
779
+ body: WorkerStatusBodyToJSON(requestParameters['workerStatusBody']),
780
+ };
781
+ }
731
782
 
732
- if (this.isJsonMime(response.headers.get('content-type'))) {
733
- return new runtime.JSONApiResponse<any>(response);
734
- } else {
735
- return new runtime.TextApiResponse(response) as any;
736
- }
783
+ /**
784
+ * POST /internal/factory/update_status – Worker heartbeat / status update.
785
+ */
786
+ async updateWorkerStatusRaw(requestParameters: UpdateWorkerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
787
+ const requestOptions = await this.updateWorkerStatusRequestOpts(requestParameters);
788
+ const response = await this.request(requestOptions, initOverrides);
789
+
790
+ return new runtime.VoidApiResponse(response);
737
791
  }
738
792
 
739
793
  /**
740
- * Endpoint for FoxFactory worker to update its status.
741
- * Update Worker Status
794
+ * POST /internal/factory/update_status Worker heartbeat / status update.
742
795
  */
743
- async updateWorkerStatusFactoryUpdateStatusPost(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
744
- const response = await this.updateWorkerStatusFactoryUpdateStatusPostRaw(requestParameters, initOverrides);
745
- return await response.value();
796
+ async updateWorkerStatus(requestParameters: UpdateWorkerStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
797
+ await this.updateWorkerStatusRaw(requestParameters, initOverrides);
746
798
  }
747
799
 
748
800
  /**
749
- * 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
750
- * Upload Artifact
801
+ * Creates request options for uploadArtifact without sending the request
751
802
  */
752
- async uploadArtifactFactoryTaskIdArtifactPostRaw(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
803
+ async uploadArtifactRequestOpts(requestParameters: UploadArtifactRequest): Promise<runtime.RequestOpts> {
753
804
  if (requestParameters['taskId'] == null) {
754
805
  throw new runtime.RequiredError(
755
806
  'taskId',
756
- 'Required parameter "taskId" was null or undefined when calling uploadArtifactFactoryTaskIdArtifactPost().'
757
- );
758
- }
759
-
760
- if (requestParameters['artifact'] == null) {
761
- throw new runtime.RequiredError(
762
- 'artifact',
763
- 'Required parameter "artifact" was null or undefined when calling uploadArtifactFactoryTaskIdArtifactPost().'
764
- );
765
- }
766
-
767
- if (requestParameters['md5Hash'] == null) {
768
- throw new runtime.RequiredError(
769
- 'md5Hash',
770
- 'Required parameter "md5Hash" was null or undefined when calling uploadArtifactFactoryTaskIdArtifactPost().'
807
+ 'Required parameter "taskId" was null or undefined when calling uploadArtifact().'
771
808
  );
772
809
  }
773
810
 
@@ -775,11 +812,6 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
775
812
 
776
813
  const headerParameters: runtime.HTTPHeaders = {};
777
814
 
778
- if (this.configuration && this.configuration.accessToken) {
779
- // oauth required
780
- headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
781
- }
782
-
783
815
  if (this.configuration && this.configuration.accessToken) {
784
816
  const token = this.configuration.accessToken;
785
817
  const tokenString = await token("bearer_auth", []);
@@ -788,41 +820,24 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
788
820
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
789
821
  }
790
822
  }
791
- const consumes: runtime.Consume[] = [
792
- { contentType: 'multipart/form-data' },
793
- ];
794
- // @ts-ignore: canConsumeForm may be unused
795
- const canConsumeForm = runtime.canConsumeForm(consumes);
796
-
797
- let formParams: { append(param: string, value: any): any };
798
- let useForm = false;
799
- // use FormData to transmit files using content-type "multipart/form-data"
800
- useForm = canConsumeForm;
801
- if (useForm) {
802
- formParams = new FormData();
803
- } else {
804
- formParams = new URLSearchParams();
805
- }
806
-
807
- if (requestParameters['artifact'] != null) {
808
- formParams.append('artifact', requestParameters['artifact'] as any);
809
- }
810
-
811
- if (requestParameters['md5Hash'] != null) {
812
- formParams.append('md5_hash', requestParameters['md5Hash'] as any);
813
- }
814
-
815
823
 
816
824
  let urlPath = `/factory/{task_id}/artifact`;
817
825
  urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
818
826
 
819
- const response = await this.request({
827
+ return {
820
828
  path: urlPath,
821
829
  method: 'POST',
822
830
  headers: headerParameters,
823
831
  query: queryParameters,
824
- body: formParams,
825
- }, initOverrides);
832
+ };
833
+ }
834
+
835
+ /**
836
+ * POST /internal/factory/{task_id}/artifact – Upload a build artifact.
837
+ */
838
+ async uploadArtifactRaw(requestParameters: UploadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
839
+ const requestOptions = await this.uploadArtifactRequestOpts(requestParameters);
840
+ const response = await this.request(requestOptions, initOverrides);
826
841
 
827
842
  if (this.isJsonMime(response.headers.get('content-type'))) {
828
843
  return new runtime.JSONApiResponse<boolean>(response);
@@ -832,11 +847,10 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
832
847
  }
833
848
 
834
849
  /**
835
- * 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
836
- * Upload Artifact
850
+ * POST /internal/factory/{task_id}/artifact Upload a build artifact.
837
851
  */
838
- async uploadArtifactFactoryTaskIdArtifactPost(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean> {
839
- const response = await this.uploadArtifactFactoryTaskIdArtifactPostRaw(requestParameters, initOverrides);
852
+ async uploadArtifact(requestParameters: UploadArtifactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean> {
853
+ const response = await this.uploadArtifactRaw(requestParameters, initOverrides);
840
854
  return await response.value();
841
855
  }
842
856