@orangefox-recovery/foxinternalclient 5.2.8 → 5.3.2

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 (333) hide show
  1. package/.openapi-generator/FILES +54 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +199 -28
  4. package/dist/apis/DeviceApi.d.ts +1 -1
  5. package/dist/apis/DeviceApi.js +10 -5
  6. package/dist/apis/FoxFactoryApi.d.ts +1 -1
  7. package/dist/apis/FoxFactoryApi.js +27 -11
  8. package/dist/apis/GitlabApi.d.ts +1 -1
  9. package/dist/apis/GitlabApi.js +4 -2
  10. package/dist/apis/InternalApi.d.ts +48 -1
  11. package/dist/apis/InternalApi.js +135 -20
  12. package/dist/apis/PasteApi.d.ts +1 -1
  13. package/dist/apis/PasteApi.js +6 -3
  14. package/dist/apis/ReleaseApi.d.ts +1 -1
  15. package/dist/apis/ReleaseApi.js +11 -5
  16. package/dist/apis/StatsApi.d.ts +1 -1
  17. package/dist/apis/StatsApi.js +3 -2
  18. package/dist/esm/apis/DeviceApi.d.ts +1 -1
  19. package/dist/esm/apis/DeviceApi.js +10 -5
  20. package/dist/esm/apis/FoxFactoryApi.d.ts +1 -1
  21. package/dist/esm/apis/FoxFactoryApi.js +27 -11
  22. package/dist/esm/apis/GitlabApi.d.ts +1 -1
  23. package/dist/esm/apis/GitlabApi.js +4 -2
  24. package/dist/esm/apis/InternalApi.d.ts +48 -1
  25. package/dist/esm/apis/InternalApi.js +135 -20
  26. package/dist/esm/apis/PasteApi.d.ts +1 -1
  27. package/dist/esm/apis/PasteApi.js +6 -3
  28. package/dist/esm/apis/ReleaseApi.d.ts +1 -1
  29. package/dist/esm/apis/ReleaseApi.js +11 -5
  30. package/dist/esm/apis/StatsApi.d.ts +1 -1
  31. package/dist/esm/apis/StatsApi.js +3 -2
  32. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +1 -1
  33. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +1 -1
  34. package/dist/esm/models/BuildStatusEnum.d.ts +1 -1
  35. package/dist/esm/models/BuildStatusEnum.js +1 -1
  36. package/dist/esm/models/BuildTaskResponse.d.ts +1 -1
  37. package/dist/esm/models/BuildTaskResponse.js +3 -3
  38. package/dist/esm/models/BuildTaskShortResponse.d.ts +1 -1
  39. package/dist/esm/models/BuildTaskShortResponse.js +3 -3
  40. package/dist/esm/models/DeviceInternalResponse.d.ts +13 -1
  41. package/dist/esm/models/DeviceInternalResponse.js +5 -1
  42. package/dist/esm/models/DeviceResponse.d.ts +13 -1
  43. package/dist/esm/models/DeviceResponse.js +5 -1
  44. package/dist/esm/models/DeviceStatsResponse.d.ts +1 -1
  45. package/dist/esm/models/DeviceStatsResponse.js +1 -1
  46. package/dist/esm/models/DeviceUpdateBody.d.ts +1 -1
  47. package/dist/esm/models/DeviceUpdateBody.js +1 -1
  48. package/dist/esm/models/FFStatusEnum.d.ts +1 -1
  49. package/dist/esm/models/FFStatusEnum.js +1 -1
  50. package/dist/esm/models/FFStatusResponse.d.ts +1 -1
  51. package/dist/esm/models/FFStatusResponse.js +1 -1
  52. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +1 -1
  53. package/dist/esm/models/GlobalStatsAggregationModel.js +1 -1
  54. package/dist/esm/models/HTTPValidationError.d.ts +1 -1
  55. package/dist/esm/models/HTTPValidationError.js +1 -1
  56. package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +1 -1
  57. package/dist/esm/models/ListResponseBuildTaskShortResponse.js +1 -1
  58. package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
  59. package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
  60. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
  61. package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
  62. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +1 -1
  63. package/dist/esm/models/ListResponseShortReleaseResponse.js +1 -1
  64. package/dist/esm/models/ListResponseStr.d.ts +1 -1
  65. package/dist/esm/models/ListResponseStr.js +1 -1
  66. package/dist/esm/models/ListResponseUserShortResponse.d.ts +1 -1
  67. package/dist/esm/models/ListResponseUserShortResponse.js +1 -1
  68. package/dist/esm/models/LogListResponse.d.ts +1 -1
  69. package/dist/esm/models/LogListResponse.js +1 -1
  70. package/dist/esm/models/LogResponse.d.ts +1 -1
  71. package/dist/esm/models/LogResponse.js +2 -2
  72. package/dist/esm/models/MaintainerShortModel.d.ts +1 -1
  73. package/dist/esm/models/MaintainerShortModel.js +1 -1
  74. package/dist/esm/models/NewBuildTaskBody.d.ts +1 -1
  75. package/dist/esm/models/NewBuildTaskBody.js +1 -1
  76. package/dist/esm/models/NewDeviceBody.d.ts +1 -1
  77. package/dist/esm/models/NewDeviceBody.js +1 -1
  78. package/dist/esm/models/PasteInput.d.ts +2 -20
  79. package/dist/esm/models/PasteInput.js +1 -9
  80. package/dist/esm/models/PasteOutput.d.ts +9 -9
  81. package/dist/esm/models/PasteOutput.js +10 -8
  82. package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
  83. package/dist/esm/models/RecoveryImgResponse.js +1 -1
  84. package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
  85. package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
  86. package/dist/esm/models/ReleaseInternalResponse.d.ts +14 -2
  87. package/dist/esm/models/ReleaseInternalResponse.js +7 -1
  88. package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +1 -1
  89. package/dist/esm/models/ReleaseInternalResponsePropValue.js +1 -1
  90. package/dist/esm/models/ReleaseResponse.d.ts +14 -2
  91. package/dist/esm/models/ReleaseResponse.js +7 -1
  92. package/dist/esm/models/ReleaseStatsResponse.d.ts +1 -1
  93. package/dist/esm/models/ReleaseStatsResponse.js +1 -1
  94. package/dist/esm/models/ReleaseType.d.ts +1 -1
  95. package/dist/esm/models/ReleaseType.js +1 -1
  96. package/dist/esm/models/ReleaseUpdateBody.d.ts +1 -1
  97. package/dist/esm/models/ReleaseUpdateBody.js +1 -1
  98. package/dist/esm/models/ReleasesSort.d.ts +1 -1
  99. package/dist/esm/models/ReleasesSort.js +1 -1
  100. package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
  101. package/dist/esm/models/ResponseGetReleases.js +1 -1
  102. package/dist/esm/models/ShortDeviceResponse.d.ts +13 -1
  103. package/dist/esm/models/ShortDeviceResponse.js +5 -1
  104. package/dist/esm/models/ShortReleaseResponse.d.ts +14 -2
  105. package/dist/esm/models/ShortReleaseResponse.js +7 -1
  106. package/dist/esm/models/TaskUpdateBody.d.ts +1 -1
  107. package/dist/esm/models/TaskUpdateBody.js +1 -1
  108. package/dist/esm/models/TokenResponse.d.ts +1 -1
  109. package/dist/esm/models/TokenResponse.js +1 -1
  110. package/dist/esm/models/UserGitlab.d.ts +1 -1
  111. package/dist/esm/models/UserGitlab.js +1 -1
  112. package/dist/esm/models/UserInternalResponse.d.ts +1 -1
  113. package/dist/esm/models/UserInternalResponse.js +1 -1
  114. package/dist/esm/models/UserMail.d.ts +1 -1
  115. package/dist/esm/models/UserMail.js +1 -1
  116. package/dist/esm/models/UserShortResponse.d.ts +1 -1
  117. package/dist/esm/models/UserShortResponse.js +1 -1
  118. package/dist/esm/models/UserTelegram.d.ts +1 -1
  119. package/dist/esm/models/UserTelegram.js +1 -1
  120. package/dist/esm/models/UserUpdateBody.d.ts +1 -1
  121. package/dist/esm/models/UserUpdateBody.js +1 -1
  122. package/dist/esm/models/ValidationError.d.ts +1 -1
  123. package/dist/esm/models/ValidationError.js +1 -1
  124. package/dist/esm/models/ValidationErrorLocInner.d.ts +1 -1
  125. package/dist/esm/models/ValidationErrorLocInner.js +1 -1
  126. package/dist/esm/runtime.d.ts +1 -1
  127. package/dist/esm/runtime.js +1 -1
  128. package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +1 -1
  129. package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +1 -1
  130. package/dist/models/BuildStatusEnum.d.ts +1 -1
  131. package/dist/models/BuildStatusEnum.js +1 -1
  132. package/dist/models/BuildTaskResponse.d.ts +1 -1
  133. package/dist/models/BuildTaskResponse.js +3 -3
  134. package/dist/models/BuildTaskShortResponse.d.ts +1 -1
  135. package/dist/models/BuildTaskShortResponse.js +3 -3
  136. package/dist/models/DeviceInternalResponse.d.ts +13 -1
  137. package/dist/models/DeviceInternalResponse.js +5 -1
  138. package/dist/models/DeviceResponse.d.ts +13 -1
  139. package/dist/models/DeviceResponse.js +5 -1
  140. package/dist/models/DeviceStatsResponse.d.ts +1 -1
  141. package/dist/models/DeviceStatsResponse.js +1 -1
  142. package/dist/models/DeviceUpdateBody.d.ts +1 -1
  143. package/dist/models/DeviceUpdateBody.js +1 -1
  144. package/dist/models/FFStatusEnum.d.ts +1 -1
  145. package/dist/models/FFStatusEnum.js +1 -1
  146. package/dist/models/FFStatusResponse.d.ts +1 -1
  147. package/dist/models/FFStatusResponse.js +1 -1
  148. package/dist/models/GlobalStatsAggregationModel.d.ts +1 -1
  149. package/dist/models/GlobalStatsAggregationModel.js +1 -1
  150. package/dist/models/HTTPValidationError.d.ts +1 -1
  151. package/dist/models/HTTPValidationError.js +1 -1
  152. package/dist/models/ListResponseBuildTaskShortResponse.d.ts +1 -1
  153. package/dist/models/ListResponseBuildTaskShortResponse.js +1 -1
  154. package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
  155. package/dist/models/ListResponseReleaseResponse.js +1 -1
  156. package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
  157. package/dist/models/ListResponseShortDeviceResponse.js +1 -1
  158. package/dist/models/ListResponseShortReleaseResponse.d.ts +1 -1
  159. package/dist/models/ListResponseShortReleaseResponse.js +1 -1
  160. package/dist/models/ListResponseStr.d.ts +1 -1
  161. package/dist/models/ListResponseStr.js +1 -1
  162. package/dist/models/ListResponseUserShortResponse.d.ts +1 -1
  163. package/dist/models/ListResponseUserShortResponse.js +1 -1
  164. package/dist/models/LogListResponse.d.ts +1 -1
  165. package/dist/models/LogListResponse.js +1 -1
  166. package/dist/models/LogResponse.d.ts +1 -1
  167. package/dist/models/LogResponse.js +2 -2
  168. package/dist/models/MaintainerShortModel.d.ts +1 -1
  169. package/dist/models/MaintainerShortModel.js +1 -1
  170. package/dist/models/NewBuildTaskBody.d.ts +1 -1
  171. package/dist/models/NewBuildTaskBody.js +1 -1
  172. package/dist/models/NewDeviceBody.d.ts +1 -1
  173. package/dist/models/NewDeviceBody.js +1 -1
  174. package/dist/models/PasteInput.d.ts +2 -20
  175. package/dist/models/PasteInput.js +1 -9
  176. package/dist/models/PasteOutput.d.ts +9 -9
  177. package/dist/models/PasteOutput.js +10 -8
  178. package/dist/models/RecoveryImgResponse.d.ts +1 -1
  179. package/dist/models/RecoveryImgResponse.js +1 -1
  180. package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
  181. package/dist/models/ReleaseGroupsResponse.js +1 -1
  182. package/dist/models/ReleaseInternalResponse.d.ts +14 -2
  183. package/dist/models/ReleaseInternalResponse.js +7 -1
  184. package/dist/models/ReleaseInternalResponsePropValue.d.ts +1 -1
  185. package/dist/models/ReleaseInternalResponsePropValue.js +1 -1
  186. package/dist/models/ReleaseResponse.d.ts +14 -2
  187. package/dist/models/ReleaseResponse.js +7 -1
  188. package/dist/models/ReleaseStatsResponse.d.ts +1 -1
  189. package/dist/models/ReleaseStatsResponse.js +1 -1
  190. package/dist/models/ReleaseType.d.ts +1 -1
  191. package/dist/models/ReleaseType.js +1 -1
  192. package/dist/models/ReleaseUpdateBody.d.ts +1 -1
  193. package/dist/models/ReleaseUpdateBody.js +1 -1
  194. package/dist/models/ReleasesSort.d.ts +1 -1
  195. package/dist/models/ReleasesSort.js +1 -1
  196. package/dist/models/ResponseGetReleases.d.ts +1 -1
  197. package/dist/models/ResponseGetReleases.js +1 -1
  198. package/dist/models/ShortDeviceResponse.d.ts +13 -1
  199. package/dist/models/ShortDeviceResponse.js +5 -1
  200. package/dist/models/ShortReleaseResponse.d.ts +14 -2
  201. package/dist/models/ShortReleaseResponse.js +7 -1
  202. package/dist/models/TaskUpdateBody.d.ts +1 -1
  203. package/dist/models/TaskUpdateBody.js +1 -1
  204. package/dist/models/TokenResponse.d.ts +1 -1
  205. package/dist/models/TokenResponse.js +1 -1
  206. package/dist/models/UserGitlab.d.ts +1 -1
  207. package/dist/models/UserGitlab.js +1 -1
  208. package/dist/models/UserInternalResponse.d.ts +1 -1
  209. package/dist/models/UserInternalResponse.js +1 -1
  210. package/dist/models/UserMail.d.ts +1 -1
  211. package/dist/models/UserMail.js +1 -1
  212. package/dist/models/UserShortResponse.d.ts +1 -1
  213. package/dist/models/UserShortResponse.js +1 -1
  214. package/dist/models/UserTelegram.d.ts +1 -1
  215. package/dist/models/UserTelegram.js +1 -1
  216. package/dist/models/UserUpdateBody.d.ts +1 -1
  217. package/dist/models/UserUpdateBody.js +1 -1
  218. package/dist/models/ValidationError.d.ts +1 -1
  219. package/dist/models/ValidationError.js +1 -1
  220. package/dist/models/ValidationErrorLocInner.d.ts +1 -1
  221. package/dist/models/ValidationErrorLocInner.js +1 -1
  222. package/dist/runtime.d.ts +1 -1
  223. package/dist/runtime.js +1 -1
  224. package/docs/BodyChangePasswordProfileChangePasswordPost.md +36 -0
  225. package/docs/BuildStatusEnum.md +32 -0
  226. package/docs/BuildTaskResponse.md +56 -0
  227. package/docs/BuildTaskShortResponse.md +52 -0
  228. package/docs/DeviceApi.md +315 -0
  229. package/docs/DeviceInternalResponse.md +64 -0
  230. package/docs/DeviceResponse.md +60 -0
  231. package/docs/DeviceStatsResponse.md +38 -0
  232. package/docs/DeviceUpdateBody.md +44 -0
  233. package/docs/FFStatusEnum.md +32 -0
  234. package/docs/FFStatusResponse.md +34 -0
  235. package/docs/FoxFactoryApi.md +758 -0
  236. package/docs/GitlabApi.md +78 -0
  237. package/docs/GlobalStatsAggregationModel.md +40 -0
  238. package/docs/HTTPValidationError.md +34 -0
  239. package/docs/InternalApi.md +1608 -0
  240. package/docs/ListResponseBuildTaskShortResponse.md +36 -0
  241. package/docs/ListResponseReleaseResponse.md +36 -0
  242. package/docs/ListResponseShortDeviceResponse.md +36 -0
  243. package/docs/ListResponseShortReleaseResponse.md +36 -0
  244. package/docs/ListResponseStr.md +36 -0
  245. package/docs/ListResponseUserShortResponse.md +36 -0
  246. package/docs/LogListResponse.md +40 -0
  247. package/docs/LogResponse.md +50 -0
  248. package/docs/MaintainerShortModel.md +38 -0
  249. package/docs/NewBuildTaskBody.md +42 -0
  250. package/docs/NewDeviceBody.md +40 -0
  251. package/docs/PasteApi.md +149 -0
  252. package/docs/PasteInput.md +34 -0
  253. package/docs/PasteOutput.md +40 -0
  254. package/docs/RecoveryImgResponse.md +36 -0
  255. package/docs/ReleaseApi.md +354 -0
  256. package/docs/ReleaseGroupsResponse.md +34 -0
  257. package/docs/ReleaseInternalResponse.md +78 -0
  258. package/docs/ReleaseInternalResponsePropValue.md +32 -0
  259. package/docs/ReleaseResponse.md +72 -0
  260. package/docs/ReleaseStatsResponse.md +38 -0
  261. package/docs/ReleaseType.md +32 -0
  262. package/docs/ReleaseUpdateBody.md +40 -0
  263. package/docs/ReleasesSort.md +32 -0
  264. package/docs/ResponseGetReleases.md +36 -0
  265. package/docs/ShortDeviceResponse.md +54 -0
  266. package/docs/ShortReleaseResponse.md +60 -0
  267. package/docs/StatsApi.md +69 -0
  268. package/docs/TaskUpdateBody.md +36 -0
  269. package/docs/TokenResponse.md +36 -0
  270. package/docs/UserGitlab.md +34 -0
  271. package/docs/UserInternalResponse.md +52 -0
  272. package/docs/UserMail.md +34 -0
  273. package/docs/UserShortResponse.md +40 -0
  274. package/docs/UserTelegram.md +34 -0
  275. package/docs/UserUpdateBody.md +42 -0
  276. package/docs/ValidationError.md +38 -0
  277. package/docs/ValidationErrorLocInner.md +32 -0
  278. package/package.json +5 -2
  279. package/src/apis/DeviceApi.ts +18 -5
  280. package/src/apis/FoxFactoryApi.ts +47 -11
  281. package/src/apis/GitlabApi.ts +6 -2
  282. package/src/apis/InternalApi.ts +220 -20
  283. package/src/apis/PasteApi.ts +10 -3
  284. package/src/apis/ReleaseApi.ts +19 -5
  285. package/src/apis/StatsApi.ts +5 -2
  286. package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +1 -1
  287. package/src/models/BuildStatusEnum.ts +1 -1
  288. package/src/models/BuildTaskResponse.ts +3 -3
  289. package/src/models/BuildTaskShortResponse.ts +3 -3
  290. package/src/models/DeviceInternalResponse.ts +17 -1
  291. package/src/models/DeviceResponse.ts +17 -1
  292. package/src/models/DeviceStatsResponse.ts +1 -1
  293. package/src/models/DeviceUpdateBody.ts +1 -1
  294. package/src/models/FFStatusEnum.ts +1 -1
  295. package/src/models/FFStatusResponse.ts +1 -1
  296. package/src/models/GlobalStatsAggregationModel.ts +1 -1
  297. package/src/models/HTTPValidationError.ts +1 -1
  298. package/src/models/ListResponseBuildTaskShortResponse.ts +1 -1
  299. package/src/models/ListResponseReleaseResponse.ts +1 -1
  300. package/src/models/ListResponseShortDeviceResponse.ts +1 -1
  301. package/src/models/ListResponseShortReleaseResponse.ts +1 -1
  302. package/src/models/ListResponseStr.ts +1 -1
  303. package/src/models/ListResponseUserShortResponse.ts +1 -1
  304. package/src/models/LogListResponse.ts +1 -1
  305. package/src/models/LogResponse.ts +2 -2
  306. package/src/models/MaintainerShortModel.ts +1 -1
  307. package/src/models/NewBuildTaskBody.ts +1 -1
  308. package/src/models/NewDeviceBody.ts +1 -1
  309. package/src/models/PasteInput.ts +2 -27
  310. package/src/models/PasteOutput.ts +17 -16
  311. package/src/models/RecoveryImgResponse.ts +1 -1
  312. package/src/models/ReleaseGroupsResponse.ts +1 -1
  313. package/src/models/ReleaseInternalResponse.ts +19 -2
  314. package/src/models/ReleaseInternalResponsePropValue.ts +1 -1
  315. package/src/models/ReleaseResponse.ts +19 -2
  316. package/src/models/ReleaseStatsResponse.ts +1 -1
  317. package/src/models/ReleaseType.ts +1 -1
  318. package/src/models/ReleaseUpdateBody.ts +1 -1
  319. package/src/models/ReleasesSort.ts +1 -1
  320. package/src/models/ResponseGetReleases.ts +1 -1
  321. package/src/models/ShortDeviceResponse.ts +17 -1
  322. package/src/models/ShortReleaseResponse.ts +19 -2
  323. package/src/models/TaskUpdateBody.ts +1 -1
  324. package/src/models/TokenResponse.ts +1 -1
  325. package/src/models/UserGitlab.ts +1 -1
  326. package/src/models/UserInternalResponse.ts +1 -1
  327. package/src/models/UserMail.ts +1 -1
  328. package/src/models/UserShortResponse.ts +1 -1
  329. package/src/models/UserTelegram.ts +1 -1
  330. package/src/models/UserUpdateBody.ts +1 -1
  331. package/src/models/ValidationError.ts +1 -1
  332. package/src/models/ValidationErrorLocInner.ts +1 -1
  333. package/src/runtime.ts +1 -1
@@ -0,0 +1,758 @@
1
+ # FoxFactoryApi
2
+
3
+ All URIs are relative to *https://api.orangefox.download*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**cancelTaskFactoryTaskIdCancelPost**](FoxFactoryApi.md#canceltaskfactorytaskidcancelpost) | **POST** /factory/{task_id}/cancel | Cancel Task |
8
+ | [**deleteTaskFactoryTaskIdDelete**](FoxFactoryApi.md#deletetaskfactorytaskiddelete) | **DELETE** /factory/{task_id} | Delete Task |
9
+ | [**downloadArtifactFactoryTaskIdArtifactGet**](FoxFactoryApi.md#downloadartifactfactorytaskidartifactget) | **GET** /factory/{task_id}/artifact | Download Artifact |
10
+ | [**factoryStatusFactoryStatusGet**](FoxFactoryApi.md#factorystatusfactorystatusget) | **GET** /factory/status | Factory Status |
11
+ | [**getTaskFactoryTaskIdGet**](FoxFactoryApi.md#gettaskfactorytaskidget) | **GET** /factory/{task_id} | Get Task |
12
+ | [**listTasksFactoryGet**](FoxFactoryApi.md#listtasksfactoryget) | **GET** /factory/ | List Tasks |
13
+ | [**newTaskFactoryPost**](FoxFactoryApi.md#newtaskfactorypost) | **POST** /factory/ | New Task |
14
+ | [**updateTaskFactoryTaskIdPatch**](FoxFactoryApi.md#updatetaskfactorytaskidpatch) | **PATCH** /factory/{task_id} | Update Task |
15
+ | [**updateWorkerStatusFactoryUpdateStatusPost**](FoxFactoryApi.md#updateworkerstatusfactoryupdatestatuspost) | **POST** /factory/update_status | Update Worker Status |
16
+ | [**uploadArtifactFactoryTaskIdArtifactPost**](FoxFactoryApi.md#uploadartifactfactorytaskidartifactpost) | **POST** /factory/{task_id}/artifact | Upload Artifact |
17
+
18
+
19
+
20
+ ## cancelTaskFactoryTaskIdCancelPost
21
+
22
+ > BuildTaskResponse cancelTaskFactoryTaskIdCancelPost(taskId)
23
+
24
+ Cancel Task
25
+
26
+ 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.
27
+
28
+ ### Example
29
+
30
+ ```ts
31
+ import {
32
+ Configuration,
33
+ FoxFactoryApi,
34
+ } from '@orangefox-recovery/foxinternalclient';
35
+ import type { CancelTaskFactoryTaskIdCancelPostRequest } from '@orangefox-recovery/foxinternalclient';
36
+
37
+ async function example() {
38
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
39
+ const config = new Configuration({
40
+ // To configure OAuth2 access token for authorization: oauth2_password password
41
+ accessToken: "YOUR ACCESS TOKEN",
42
+ // Configure HTTP bearer authorization: bearer_auth
43
+ accessToken: "YOUR BEARER TOKEN",
44
+ });
45
+ const api = new FoxFactoryApi(config);
46
+
47
+ const body = {
48
+ // string
49
+ taskId: taskId_example,
50
+ } satisfies CancelTaskFactoryTaskIdCancelPostRequest;
51
+
52
+ try {
53
+ const data = await api.cancelTaskFactoryTaskIdCancelPost(body);
54
+ console.log(data);
55
+ } catch (error) {
56
+ console.error(error);
57
+ }
58
+ }
59
+
60
+ // Run the test
61
+ example().catch(console.error);
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+
67
+ | Name | Type | Description | Notes |
68
+ |------------- | ------------- | ------------- | -------------|
69
+ | **taskId** | `string` | | [Defaults to `undefined`] |
70
+
71
+ ### Return type
72
+
73
+ [**BuildTaskResponse**](BuildTaskResponse.md)
74
+
75
+ ### Authorization
76
+
77
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
78
+
79
+ ### HTTP request headers
80
+
81
+ - **Content-Type**: Not defined
82
+ - **Accept**: `application/json`
83
+
84
+
85
+ ### HTTP response details
86
+ | Status code | Description | Response headers |
87
+ |-------------|-------------|------------------|
88
+ | **200** | Successful Response | - |
89
+ | **422** | Validation Error | - |
90
+
91
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
92
+
93
+
94
+ ## deleteTaskFactoryTaskIdDelete
95
+
96
+ > boolean deleteTaskFactoryTaskIdDelete(taskId)
97
+
98
+ Delete Task
99
+
100
+ 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.
101
+
102
+ ### Example
103
+
104
+ ```ts
105
+ import {
106
+ Configuration,
107
+ FoxFactoryApi,
108
+ } from '@orangefox-recovery/foxinternalclient';
109
+ import type { DeleteTaskFactoryTaskIdDeleteRequest } from '@orangefox-recovery/foxinternalclient';
110
+
111
+ async function example() {
112
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
113
+ const config = new Configuration({
114
+ // To configure OAuth2 access token for authorization: oauth2_password password
115
+ accessToken: "YOUR ACCESS TOKEN",
116
+ // Configure HTTP bearer authorization: bearer_auth
117
+ accessToken: "YOUR BEARER TOKEN",
118
+ });
119
+ const api = new FoxFactoryApi(config);
120
+
121
+ const body = {
122
+ // string
123
+ taskId: taskId_example,
124
+ } satisfies DeleteTaskFactoryTaskIdDeleteRequest;
125
+
126
+ try {
127
+ const data = await api.deleteTaskFactoryTaskIdDelete(body);
128
+ console.log(data);
129
+ } catch (error) {
130
+ console.error(error);
131
+ }
132
+ }
133
+
134
+ // Run the test
135
+ example().catch(console.error);
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+
141
+ | Name | Type | Description | Notes |
142
+ |------------- | ------------- | ------------- | -------------|
143
+ | **taskId** | `string` | | [Defaults to `undefined`] |
144
+
145
+ ### Return type
146
+
147
+ **boolean**
148
+
149
+ ### Authorization
150
+
151
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: Not defined
156
+ - **Accept**: `application/json`
157
+
158
+
159
+ ### HTTP response details
160
+ | Status code | Description | Response headers |
161
+ |-------------|-------------|------------------|
162
+ | **200** | Successful Response | - |
163
+ | **422** | Validation Error | - |
164
+
165
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
166
+
167
+
168
+ ## downloadArtifactFactoryTaskIdArtifactGet
169
+
170
+ > any downloadArtifactFactoryTaskIdArtifactGet(taskId)
171
+
172
+ Download Artifact
173
+
174
+ 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
175
+
176
+ ### Example
177
+
178
+ ```ts
179
+ import {
180
+ Configuration,
181
+ FoxFactoryApi,
182
+ } from '@orangefox-recovery/foxinternalclient';
183
+ import type { DownloadArtifactFactoryTaskIdArtifactGetRequest } from '@orangefox-recovery/foxinternalclient';
184
+
185
+ async function example() {
186
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
187
+ const config = new Configuration({
188
+ // To configure OAuth2 access token for authorization: oauth2_password password
189
+ accessToken: "YOUR ACCESS TOKEN",
190
+ // Configure HTTP bearer authorization: bearer_auth
191
+ accessToken: "YOUR BEARER TOKEN",
192
+ });
193
+ const api = new FoxFactoryApi(config);
194
+
195
+ const body = {
196
+ // string
197
+ taskId: taskId_example,
198
+ } satisfies DownloadArtifactFactoryTaskIdArtifactGetRequest;
199
+
200
+ try {
201
+ const data = await api.downloadArtifactFactoryTaskIdArtifactGet(body);
202
+ console.log(data);
203
+ } catch (error) {
204
+ console.error(error);
205
+ }
206
+ }
207
+
208
+ // Run the test
209
+ example().catch(console.error);
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+
215
+ | Name | Type | Description | Notes |
216
+ |------------- | ------------- | ------------- | -------------|
217
+ | **taskId** | `string` | | [Defaults to `undefined`] |
218
+
219
+ ### Return type
220
+
221
+ **any**
222
+
223
+ ### Authorization
224
+
225
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: Not defined
230
+ - **Accept**: `application/json`
231
+
232
+
233
+ ### HTTP response details
234
+ | Status code | Description | Response headers |
235
+ |-------------|-------------|------------------|
236
+ | **200** | Successful Response | - |
237
+ | **422** | Validation Error | - |
238
+
239
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
240
+
241
+
242
+ ## factoryStatusFactoryStatusGet
243
+
244
+ > FFStatusResponse factoryStatusFactoryStatusGet()
245
+
246
+ Factory Status
247
+
248
+ 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.
249
+
250
+ ### Example
251
+
252
+ ```ts
253
+ import {
254
+ Configuration,
255
+ FoxFactoryApi,
256
+ } from '@orangefox-recovery/foxinternalclient';
257
+ import type { FactoryStatusFactoryStatusGetRequest } from '@orangefox-recovery/foxinternalclient';
258
+
259
+ async function example() {
260
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
261
+ const config = new Configuration({
262
+ // To configure OAuth2 access token for authorization: oauth2_password password
263
+ accessToken: "YOUR ACCESS TOKEN",
264
+ // Configure HTTP bearer authorization: bearer_auth
265
+ accessToken: "YOUR BEARER TOKEN",
266
+ });
267
+ const api = new FoxFactoryApi(config);
268
+
269
+ try {
270
+ const data = await api.factoryStatusFactoryStatusGet();
271
+ console.log(data);
272
+ } catch (error) {
273
+ console.error(error);
274
+ }
275
+ }
276
+
277
+ // Run the test
278
+ example().catch(console.error);
279
+ ```
280
+
281
+ ### Parameters
282
+
283
+ This endpoint does not need any parameter.
284
+
285
+ ### Return type
286
+
287
+ [**FFStatusResponse**](FFStatusResponse.md)
288
+
289
+ ### Authorization
290
+
291
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: Not defined
296
+ - **Accept**: `application/json`
297
+
298
+
299
+ ### HTTP response details
300
+ | Status code | Description | Response headers |
301
+ |-------------|-------------|------------------|
302
+ | **200** | Successful Response | - |
303
+
304
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
305
+
306
+
307
+ ## getTaskFactoryTaskIdGet
308
+
309
+ > BuildTaskResponse getTaskFactoryTaskIdGet(taskId)
310
+
311
+ Get Task
312
+
313
+ 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.
314
+
315
+ ### Example
316
+
317
+ ```ts
318
+ import {
319
+ Configuration,
320
+ FoxFactoryApi,
321
+ } from '@orangefox-recovery/foxinternalclient';
322
+ import type { GetTaskFactoryTaskIdGetRequest } from '@orangefox-recovery/foxinternalclient';
323
+
324
+ async function example() {
325
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
326
+ const config = new Configuration({
327
+ // To configure OAuth2 access token for authorization: oauth2_password password
328
+ accessToken: "YOUR ACCESS TOKEN",
329
+ // Configure HTTP bearer authorization: bearer_auth
330
+ accessToken: "YOUR BEARER TOKEN",
331
+ });
332
+ const api = new FoxFactoryApi(config);
333
+
334
+ const body = {
335
+ // string
336
+ taskId: taskId_example,
337
+ } satisfies GetTaskFactoryTaskIdGetRequest;
338
+
339
+ try {
340
+ const data = await api.getTaskFactoryTaskIdGet(body);
341
+ console.log(data);
342
+ } catch (error) {
343
+ console.error(error);
344
+ }
345
+ }
346
+
347
+ // Run the test
348
+ example().catch(console.error);
349
+ ```
350
+
351
+ ### Parameters
352
+
353
+
354
+ | Name | Type | Description | Notes |
355
+ |------------- | ------------- | ------------- | -------------|
356
+ | **taskId** | `string` | | [Defaults to `undefined`] |
357
+
358
+ ### Return type
359
+
360
+ [**BuildTaskResponse**](BuildTaskResponse.md)
361
+
362
+ ### Authorization
363
+
364
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
365
+
366
+ ### HTTP request headers
367
+
368
+ - **Content-Type**: Not defined
369
+ - **Accept**: `application/json`
370
+
371
+
372
+ ### HTTP response details
373
+ | Status code | Description | Response headers |
374
+ |-------------|-------------|------------------|
375
+ | **200** | Successful Response | - |
376
+ | **422** | Validation Error | - |
377
+
378
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
379
+
380
+
381
+ ## listTasksFactoryGet
382
+
383
+ > ListResponseBuildTaskShortResponse listTasksFactoryGet(deviceId)
384
+
385
+ List Tasks
386
+
387
+ 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
388
+
389
+ ### Example
390
+
391
+ ```ts
392
+ import {
393
+ Configuration,
394
+ FoxFactoryApi,
395
+ } from '@orangefox-recovery/foxinternalclient';
396
+ import type { ListTasksFactoryGetRequest } from '@orangefox-recovery/foxinternalclient';
397
+
398
+ async function example() {
399
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
400
+ const config = new Configuration({
401
+ // To configure OAuth2 access token for authorization: oauth2_password password
402
+ accessToken: "YOUR ACCESS TOKEN",
403
+ // Configure HTTP bearer authorization: bearer_auth
404
+ accessToken: "YOUR BEARER TOKEN",
405
+ });
406
+ const api = new FoxFactoryApi(config);
407
+
408
+ const body = {
409
+ // string (optional)
410
+ deviceId: deviceId_example,
411
+ } satisfies ListTasksFactoryGetRequest;
412
+
413
+ try {
414
+ const data = await api.listTasksFactoryGet(body);
415
+ console.log(data);
416
+ } catch (error) {
417
+ console.error(error);
418
+ }
419
+ }
420
+
421
+ // Run the test
422
+ example().catch(console.error);
423
+ ```
424
+
425
+ ### Parameters
426
+
427
+
428
+ | Name | Type | Description | Notes |
429
+ |------------- | ------------- | ------------- | -------------|
430
+ | **deviceId** | `string` | | [Optional] [Defaults to `undefined`] |
431
+
432
+ ### Return type
433
+
434
+ [**ListResponseBuildTaskShortResponse**](ListResponseBuildTaskShortResponse.md)
435
+
436
+ ### Authorization
437
+
438
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
439
+
440
+ ### HTTP request headers
441
+
442
+ - **Content-Type**: Not defined
443
+ - **Accept**: `application/json`
444
+
445
+
446
+ ### HTTP response details
447
+ | Status code | Description | Response headers |
448
+ |-------------|-------------|------------------|
449
+ | **200** | Successful Response | - |
450
+ | **422** | Validation Error | - |
451
+
452
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
453
+
454
+
455
+ ## newTaskFactoryPost
456
+
457
+ > boolean newTaskFactoryPost(newBuildTaskBody)
458
+
459
+ New Task
460
+
461
+ 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.
462
+
463
+ ### Example
464
+
465
+ ```ts
466
+ import {
467
+ Configuration,
468
+ FoxFactoryApi,
469
+ } from '@orangefox-recovery/foxinternalclient';
470
+ import type { NewTaskFactoryPostRequest } from '@orangefox-recovery/foxinternalclient';
471
+
472
+ async function example() {
473
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
474
+ const config = new Configuration({
475
+ // To configure OAuth2 access token for authorization: oauth2_password password
476
+ accessToken: "YOUR ACCESS TOKEN",
477
+ // Configure HTTP bearer authorization: bearer_auth
478
+ accessToken: "YOUR BEARER TOKEN",
479
+ });
480
+ const api = new FoxFactoryApi(config);
481
+
482
+ const body = {
483
+ // NewBuildTaskBody
484
+ newBuildTaskBody: ...,
485
+ } satisfies NewTaskFactoryPostRequest;
486
+
487
+ try {
488
+ const data = await api.newTaskFactoryPost(body);
489
+ console.log(data);
490
+ } catch (error) {
491
+ console.error(error);
492
+ }
493
+ }
494
+
495
+ // Run the test
496
+ example().catch(console.error);
497
+ ```
498
+
499
+ ### Parameters
500
+
501
+
502
+ | Name | Type | Description | Notes |
503
+ |------------- | ------------- | ------------- | -------------|
504
+ | **newBuildTaskBody** | [NewBuildTaskBody](NewBuildTaskBody.md) | | |
505
+
506
+ ### Return type
507
+
508
+ **boolean**
509
+
510
+ ### Authorization
511
+
512
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
513
+
514
+ ### HTTP request headers
515
+
516
+ - **Content-Type**: `application/json`
517
+ - **Accept**: `application/json`
518
+
519
+
520
+ ### HTTP response details
521
+ | Status code | Description | Response headers |
522
+ |-------------|-------------|------------------|
523
+ | **200** | Successful Response | - |
524
+ | **422** | Validation Error | - |
525
+
526
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
527
+
528
+
529
+ ## updateTaskFactoryTaskIdPatch
530
+
531
+ > boolean updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody)
532
+
533
+ Update Task
534
+
535
+ 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.
536
+
537
+ ### Example
538
+
539
+ ```ts
540
+ import {
541
+ Configuration,
542
+ FoxFactoryApi,
543
+ } from '@orangefox-recovery/foxinternalclient';
544
+ import type { UpdateTaskFactoryTaskIdPatchRequest } from '@orangefox-recovery/foxinternalclient';
545
+
546
+ async function example() {
547
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
548
+ const config = new Configuration({
549
+ // To configure OAuth2 access token for authorization: oauth2_password password
550
+ accessToken: "YOUR ACCESS TOKEN",
551
+ // Configure HTTP bearer authorization: bearer_auth
552
+ accessToken: "YOUR BEARER TOKEN",
553
+ });
554
+ const api = new FoxFactoryApi(config);
555
+
556
+ const body = {
557
+ // string
558
+ taskId: taskId_example,
559
+ // TaskUpdateBody
560
+ taskUpdateBody: ...,
561
+ } satisfies UpdateTaskFactoryTaskIdPatchRequest;
562
+
563
+ try {
564
+ const data = await api.updateTaskFactoryTaskIdPatch(body);
565
+ console.log(data);
566
+ } catch (error) {
567
+ console.error(error);
568
+ }
569
+ }
570
+
571
+ // Run the test
572
+ example().catch(console.error);
573
+ ```
574
+
575
+ ### Parameters
576
+
577
+
578
+ | Name | Type | Description | Notes |
579
+ |------------- | ------------- | ------------- | -------------|
580
+ | **taskId** | `string` | | [Defaults to `undefined`] |
581
+ | **taskUpdateBody** | [TaskUpdateBody](TaskUpdateBody.md) | | |
582
+
583
+ ### Return type
584
+
585
+ **boolean**
586
+
587
+ ### Authorization
588
+
589
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
590
+
591
+ ### HTTP request headers
592
+
593
+ - **Content-Type**: `application/json`
594
+ - **Accept**: `application/json`
595
+
596
+
597
+ ### HTTP response details
598
+ | Status code | Description | Response headers |
599
+ |-------------|-------------|------------------|
600
+ | **200** | Successful Response | - |
601
+ | **422** | Validation Error | - |
602
+
603
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
604
+
605
+
606
+ ## updateWorkerStatusFactoryUpdateStatusPost
607
+
608
+ > any updateWorkerStatusFactoryUpdateStatusPost(body)
609
+
610
+ Update Worker Status
611
+
612
+ Endpoint for FoxFactory worker to update its status.
613
+
614
+ ### Example
615
+
616
+ ```ts
617
+ import {
618
+ Configuration,
619
+ FoxFactoryApi,
620
+ } from '@orangefox-recovery/foxinternalclient';
621
+ import type { UpdateWorkerStatusFactoryUpdateStatusPostRequest } from '@orangefox-recovery/foxinternalclient';
622
+
623
+ async function example() {
624
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
625
+ const config = new Configuration({
626
+ // To configure OAuth2 access token for authorization: oauth2_password password
627
+ accessToken: "YOUR ACCESS TOKEN",
628
+ // Configure HTTP bearer authorization: bearer_auth
629
+ accessToken: "YOUR BEARER TOKEN",
630
+ });
631
+ const api = new FoxFactoryApi(config);
632
+
633
+ const body = {
634
+ // string
635
+ body: ...,
636
+ } satisfies UpdateWorkerStatusFactoryUpdateStatusPostRequest;
637
+
638
+ try {
639
+ const data = await api.updateWorkerStatusFactoryUpdateStatusPost(body);
640
+ console.log(data);
641
+ } catch (error) {
642
+ console.error(error);
643
+ }
644
+ }
645
+
646
+ // Run the test
647
+ example().catch(console.error);
648
+ ```
649
+
650
+ ### Parameters
651
+
652
+
653
+ | Name | Type | Description | Notes |
654
+ |------------- | ------------- | ------------- | -------------|
655
+ | **body** | `string` | | |
656
+
657
+ ### Return type
658
+
659
+ **any**
660
+
661
+ ### Authorization
662
+
663
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
664
+
665
+ ### HTTP request headers
666
+
667
+ - **Content-Type**: `application/json`
668
+ - **Accept**: `application/json`
669
+
670
+
671
+ ### HTTP response details
672
+ | Status code | Description | Response headers |
673
+ |-------------|-------------|------------------|
674
+ | **200** | Successful Response | - |
675
+ | **422** | Validation Error | - |
676
+
677
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
678
+
679
+
680
+ ## uploadArtifactFactoryTaskIdArtifactPost
681
+
682
+ > boolean uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash)
683
+
684
+ Upload Artifact
685
+
686
+ 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
687
+
688
+ ### Example
689
+
690
+ ```ts
691
+ import {
692
+ Configuration,
693
+ FoxFactoryApi,
694
+ } from '@orangefox-recovery/foxinternalclient';
695
+ import type { UploadArtifactFactoryTaskIdArtifactPostRequest } from '@orangefox-recovery/foxinternalclient';
696
+
697
+ async function example() {
698
+ console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
699
+ const config = new Configuration({
700
+ // To configure OAuth2 access token for authorization: oauth2_password password
701
+ accessToken: "YOUR ACCESS TOKEN",
702
+ // Configure HTTP bearer authorization: bearer_auth
703
+ accessToken: "YOUR BEARER TOKEN",
704
+ });
705
+ const api = new FoxFactoryApi(config);
706
+
707
+ const body = {
708
+ // string
709
+ taskId: taskId_example,
710
+ // Blob
711
+ artifact: BINARY_DATA_HERE,
712
+ // string
713
+ md5Hash: md5Hash_example,
714
+ } satisfies UploadArtifactFactoryTaskIdArtifactPostRequest;
715
+
716
+ try {
717
+ const data = await api.uploadArtifactFactoryTaskIdArtifactPost(body);
718
+ console.log(data);
719
+ } catch (error) {
720
+ console.error(error);
721
+ }
722
+ }
723
+
724
+ // Run the test
725
+ example().catch(console.error);
726
+ ```
727
+
728
+ ### Parameters
729
+
730
+
731
+ | Name | Type | Description | Notes |
732
+ |------------- | ------------- | ------------- | -------------|
733
+ | **taskId** | `string` | | [Defaults to `undefined`] |
734
+ | **artifact** | `Blob` | | [Defaults to `undefined`] |
735
+ | **md5Hash** | `string` | | [Defaults to `undefined`] |
736
+
737
+ ### Return type
738
+
739
+ **boolean**
740
+
741
+ ### Authorization
742
+
743
+ [oauth2_password password](../README.md#oauth2_password-password), [bearer_auth](../README.md#bearer_auth)
744
+
745
+ ### HTTP request headers
746
+
747
+ - **Content-Type**: `multipart/form-data`
748
+ - **Accept**: `application/json`
749
+
750
+
751
+ ### HTTP response details
752
+ | Status code | Description | Response headers |
753
+ |-------------|-------------|------------------|
754
+ | **200** | Successful Response | - |
755
+ | **422** | Validation Error | - |
756
+
757
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
758
+