@orangefox-recovery/foxinternalclient 5.2.6 → 5.2.7

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 (369) hide show
  1. package/.openapi-generator/FILES +58 -60
  2. package/README.md +3 -122
  3. package/dist/apis/DeviceApi.d.ts +158 -0
  4. package/dist/apis/DeviceApi.js +188 -0
  5. package/dist/apis/FoxFactoryApi.d.ts +298 -0
  6. package/dist/apis/FoxFactoryApi.js +507 -0
  7. package/dist/apis/GitlabApi.d.ts +51 -0
  8. package/dist/apis/GitlabApi.js +71 -0
  9. package/dist/apis/InternalApi.d.ts +549 -0
  10. package/dist/apis/InternalApi.js +957 -0
  11. package/dist/apis/PasteApi.d.ts +80 -0
  12. package/dist/apis/PasteApi.js +95 -0
  13. package/dist/apis/ReleaseApi.d.ts +188 -0
  14. package/dist/apis/ReleaseApi.js +226 -0
  15. package/dist/apis/StatsApi.d.ts +49 -0
  16. package/dist/apis/StatsApi.js +60 -0
  17. package/dist/apis/index.d.ts +7 -0
  18. package/dist/apis/index.js +25 -0
  19. package/dist/esm/apis/DeviceApi.d.ts +158 -0
  20. package/dist/esm/apis/DeviceApi.js +184 -0
  21. package/dist/esm/apis/FoxFactoryApi.d.ts +298 -0
  22. package/dist/esm/apis/FoxFactoryApi.js +503 -0
  23. package/dist/esm/apis/GitlabApi.d.ts +51 -0
  24. package/dist/esm/apis/GitlabApi.js +67 -0
  25. package/dist/esm/apis/InternalApi.d.ts +549 -0
  26. package/dist/esm/apis/InternalApi.js +953 -0
  27. package/dist/esm/apis/PasteApi.d.ts +80 -0
  28. package/dist/esm/apis/PasteApi.js +91 -0
  29. package/dist/esm/apis/ReleaseApi.d.ts +188 -0
  30. package/dist/esm/apis/ReleaseApi.js +222 -0
  31. package/dist/esm/apis/StatsApi.d.ts +49 -0
  32. package/dist/esm/apis/StatsApi.js +56 -0
  33. package/dist/esm/apis/index.d.ts +7 -0
  34. package/dist/esm/apis/index.js +9 -0
  35. package/dist/esm/index.d.ts +3 -13
  36. package/dist/esm/index.js +3 -13
  37. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +38 -0
  38. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +47 -0
  39. package/dist/esm/models/BuildStatusEnum.d.ts +30 -0
  40. package/dist/esm/models/BuildStatusEnum.js +48 -0
  41. package/dist/esm/models/BuildTaskResponse.d.ts +103 -0
  42. package/dist/esm/models/BuildTaskResponse.js +78 -0
  43. package/dist/esm/models/BuildTaskShortResponse.d.ts +89 -0
  44. package/dist/esm/models/BuildTaskShortResponse.js +74 -0
  45. package/dist/esm/models/DeviceInternalResponse.d.ts +114 -0
  46. package/dist/esm/models/DeviceInternalResponse.js +91 -0
  47. package/dist/esm/models/DeviceResponse.d.ts +101 -0
  48. package/dist/esm/models/DeviceResponse.js +82 -0
  49. package/dist/esm/models/DeviceStatsResponse.d.ts +48 -0
  50. package/dist/esm/models/DeviceStatsResponse.js +51 -0
  51. package/dist/esm/models/DeviceUpdateBody.d.ts +62 -0
  52. package/dist/esm/models/DeviceUpdateBody.js +51 -0
  53. package/dist/esm/models/FFStatusEnum.d.ts +26 -0
  54. package/dist/esm/models/FFStatusEnum.js +44 -0
  55. package/dist/esm/models/FFStatusResponse.d.ts +33 -0
  56. package/dist/esm/models/FFStatusResponse.js +44 -0
  57. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +52 -0
  58. package/dist/esm/models/GlobalStatsAggregationModel.js +55 -0
  59. package/dist/esm/models/HTTPValidationError.d.ts +33 -0
  60. package/dist/esm/models/HTTPValidationError.js +42 -0
  61. package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +39 -0
  62. package/dist/esm/models/ListResponseBuildTaskShortResponse.js +47 -0
  63. package/dist/esm/models/ListResponseReleaseResponse.d.ts +39 -0
  64. package/dist/esm/models/ListResponseReleaseResponse.js +47 -0
  65. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +39 -0
  66. package/dist/esm/models/ListResponseShortDeviceResponse.js +47 -0
  67. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +39 -0
  68. package/dist/esm/models/ListResponseShortReleaseResponse.js +47 -0
  69. package/dist/esm/models/ListResponseStr.d.ts +38 -0
  70. package/dist/esm/models/ListResponseStr.js +46 -0
  71. package/dist/esm/models/ListResponseUserShortResponse.d.ts +39 -0
  72. package/dist/esm/models/ListResponseUserShortResponse.js +47 -0
  73. package/dist/esm/models/LogListResponse.d.ts +51 -0
  74. package/dist/esm/models/LogListResponse.js +56 -0
  75. package/dist/esm/models/LogResponse.d.ts +83 -0
  76. package/dist/esm/models/LogResponse.js +66 -0
  77. package/dist/esm/models/MaintainerShortModel.d.ts +44 -0
  78. package/dist/esm/models/MaintainerShortModel.js +51 -0
  79. package/dist/esm/models/NewBuildTaskBody.d.ts +57 -0
  80. package/dist/esm/models/NewBuildTaskBody.js +52 -0
  81. package/dist/esm/models/NewDeviceBody.d.ts +50 -0
  82. package/dist/esm/models/NewDeviceBody.js +55 -0
  83. package/dist/esm/models/PasteInput.d.ts +50 -0
  84. package/dist/esm/models/PasteInput.js +51 -0
  85. package/dist/esm/models/PasteOutput.d.ts +50 -0
  86. package/dist/esm/models/PasteOutput.js +51 -0
  87. package/dist/esm/models/RecoveryImgResponse.d.ts +38 -0
  88. package/dist/esm/models/RecoveryImgResponse.js +47 -0
  89. package/dist/esm/models/ReleaseGroupsResponse.d.ts +35 -0
  90. package/dist/esm/models/ReleaseGroupsResponse.js +43 -0
  91. package/dist/esm/models/ReleaseInternalResponse.d.ts +162 -0
  92. package/dist/esm/models/ReleaseInternalResponse.js +119 -0
  93. package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +26 -0
  94. package/dist/esm/models/ReleaseInternalResponsePropValue.js +31 -0
  95. package/dist/esm/models/ReleaseResponse.d.ts +139 -0
  96. package/dist/esm/models/ReleaseResponse.js +107 -0
  97. package/dist/esm/models/ReleaseStatsResponse.d.ts +48 -0
  98. package/dist/esm/models/ReleaseStatsResponse.js +51 -0
  99. package/dist/esm/models/ReleaseType.d.ts +26 -0
  100. package/dist/esm/models/ReleaseType.js +44 -0
  101. package/dist/esm/models/ReleaseUpdateBody.d.ts +50 -0
  102. package/dist/esm/models/ReleaseUpdateBody.js +47 -0
  103. package/dist/esm/models/ReleasesSort.d.ts +25 -0
  104. package/dist/esm/models/ReleasesSort.js +43 -0
  105. package/dist/esm/models/ResponseGetReleases.d.ts +41 -0
  106. package/dist/esm/models/ResponseGetReleases.js +46 -0
  107. package/dist/esm/models/ShortDeviceResponse.d.ts +82 -0
  108. package/dist/esm/models/ShortDeviceResponse.js +73 -0
  109. package/dist/esm/models/ShortReleaseResponse.d.ts +100 -0
  110. package/dist/esm/models/ShortReleaseResponse.js +84 -0
  111. package/dist/esm/models/TaskUpdateBody.d.ts +39 -0
  112. package/dist/esm/models/TaskUpdateBody.js +44 -0
  113. package/dist/esm/models/TokenResponse.d.ts +38 -0
  114. package/dist/esm/models/TokenResponse.js +45 -0
  115. package/dist/esm/models/UserGitlab.d.ts +32 -0
  116. package/dist/esm/models/UserGitlab.js +43 -0
  117. package/dist/esm/models/UserInternalResponse.d.ts +90 -0
  118. package/dist/esm/models/UserInternalResponse.js +75 -0
  119. package/dist/esm/models/UserMail.d.ts +32 -0
  120. package/dist/esm/models/UserMail.js +43 -0
  121. package/dist/esm/models/UserShortResponse.d.ts +50 -0
  122. package/dist/esm/models/UserShortResponse.js +55 -0
  123. package/dist/esm/models/UserTelegram.d.ts +32 -0
  124. package/dist/esm/models/UserTelegram.js +43 -0
  125. package/dist/esm/models/UserUpdateBody.d.ts +56 -0
  126. package/dist/esm/models/UserUpdateBody.js +49 -0
  127. package/dist/esm/models/ValidationError.d.ts +45 -0
  128. package/dist/esm/models/ValidationError.js +52 -0
  129. package/dist/esm/models/ValidationErrorLocInner.d.ts +26 -0
  130. package/{index.ts → dist/esm/models/ValidationErrorLocInner.js} +20 -7
  131. package/dist/esm/models/index.d.ts +47 -0
  132. package/dist/esm/models/index.js +49 -0
  133. package/dist/esm/runtime.d.ts +184 -0
  134. package/dist/esm/runtime.js +334 -0
  135. package/dist/index.d.ts +3 -13
  136. package/dist/index.js +5 -15
  137. package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +38 -0
  138. package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +54 -0
  139. package/dist/models/BuildStatusEnum.d.ts +30 -0
  140. package/dist/models/BuildStatusEnum.js +56 -0
  141. package/dist/models/BuildTaskResponse.d.ts +103 -0
  142. package/dist/models/BuildTaskResponse.js +85 -0
  143. package/dist/models/BuildTaskShortResponse.d.ts +89 -0
  144. package/dist/models/BuildTaskShortResponse.js +81 -0
  145. package/dist/models/DeviceInternalResponse.d.ts +114 -0
  146. package/dist/models/DeviceInternalResponse.js +98 -0
  147. package/dist/models/DeviceResponse.d.ts +101 -0
  148. package/dist/models/DeviceResponse.js +89 -0
  149. package/dist/models/DeviceStatsResponse.d.ts +48 -0
  150. package/dist/models/DeviceStatsResponse.js +58 -0
  151. package/dist/models/DeviceUpdateBody.d.ts +62 -0
  152. package/dist/models/DeviceUpdateBody.js +58 -0
  153. package/dist/models/FFStatusEnum.d.ts +26 -0
  154. package/dist/models/FFStatusEnum.js +52 -0
  155. package/dist/models/FFStatusResponse.d.ts +33 -0
  156. package/dist/models/FFStatusResponse.js +51 -0
  157. package/dist/models/GlobalStatsAggregationModel.d.ts +52 -0
  158. package/dist/models/GlobalStatsAggregationModel.js +62 -0
  159. package/dist/models/HTTPValidationError.d.ts +33 -0
  160. package/dist/models/HTTPValidationError.js +49 -0
  161. package/dist/models/ListResponseBuildTaskShortResponse.d.ts +39 -0
  162. package/dist/models/ListResponseBuildTaskShortResponse.js +54 -0
  163. package/dist/models/ListResponseReleaseResponse.d.ts +39 -0
  164. package/dist/models/ListResponseReleaseResponse.js +54 -0
  165. package/dist/models/ListResponseShortDeviceResponse.d.ts +39 -0
  166. package/dist/models/ListResponseShortDeviceResponse.js +54 -0
  167. package/dist/models/ListResponseShortReleaseResponse.d.ts +39 -0
  168. package/dist/models/ListResponseShortReleaseResponse.js +54 -0
  169. package/dist/models/ListResponseStr.d.ts +38 -0
  170. package/dist/models/ListResponseStr.js +53 -0
  171. package/dist/models/ListResponseUserShortResponse.d.ts +39 -0
  172. package/dist/models/ListResponseUserShortResponse.js +54 -0
  173. package/dist/models/LogListResponse.d.ts +51 -0
  174. package/dist/models/LogListResponse.js +63 -0
  175. package/dist/models/LogResponse.d.ts +83 -0
  176. package/dist/models/LogResponse.js +73 -0
  177. package/dist/models/MaintainerShortModel.d.ts +44 -0
  178. package/dist/models/MaintainerShortModel.js +58 -0
  179. package/dist/models/NewBuildTaskBody.d.ts +57 -0
  180. package/dist/models/NewBuildTaskBody.js +59 -0
  181. package/dist/models/NewDeviceBody.d.ts +50 -0
  182. package/dist/models/NewDeviceBody.js +62 -0
  183. package/dist/models/PasteInput.d.ts +50 -0
  184. package/dist/models/PasteInput.js +58 -0
  185. package/dist/models/PasteOutput.d.ts +50 -0
  186. package/dist/models/PasteOutput.js +58 -0
  187. package/dist/models/RecoveryImgResponse.d.ts +38 -0
  188. package/dist/models/RecoveryImgResponse.js +54 -0
  189. package/dist/models/ReleaseGroupsResponse.d.ts +35 -0
  190. package/dist/models/ReleaseGroupsResponse.js +50 -0
  191. package/dist/models/ReleaseInternalResponse.d.ts +162 -0
  192. package/dist/models/ReleaseInternalResponse.js +126 -0
  193. package/dist/models/ReleaseInternalResponsePropValue.d.ts +26 -0
  194. package/dist/models/ReleaseInternalResponsePropValue.js +38 -0
  195. package/dist/models/ReleaseResponse.d.ts +139 -0
  196. package/dist/models/ReleaseResponse.js +114 -0
  197. package/dist/models/ReleaseStatsResponse.d.ts +48 -0
  198. package/dist/models/ReleaseStatsResponse.js +58 -0
  199. package/dist/models/ReleaseType.d.ts +26 -0
  200. package/dist/models/ReleaseType.js +52 -0
  201. package/dist/models/ReleaseUpdateBody.d.ts +50 -0
  202. package/dist/models/ReleaseUpdateBody.js +54 -0
  203. package/dist/models/ReleasesSort.d.ts +25 -0
  204. package/dist/models/ReleasesSort.js +51 -0
  205. package/dist/models/ResponseGetReleases.d.ts +41 -0
  206. package/dist/models/ResponseGetReleases.js +53 -0
  207. package/dist/models/ShortDeviceResponse.d.ts +82 -0
  208. package/dist/models/ShortDeviceResponse.js +80 -0
  209. package/dist/models/ShortReleaseResponse.d.ts +100 -0
  210. package/dist/models/ShortReleaseResponse.js +91 -0
  211. package/dist/models/TaskUpdateBody.d.ts +39 -0
  212. package/dist/models/TaskUpdateBody.js +51 -0
  213. package/dist/models/TokenResponse.d.ts +38 -0
  214. package/dist/models/TokenResponse.js +52 -0
  215. package/dist/models/UserGitlab.d.ts +32 -0
  216. package/dist/models/UserGitlab.js +50 -0
  217. package/dist/models/UserInternalResponse.d.ts +90 -0
  218. package/dist/models/UserInternalResponse.js +82 -0
  219. package/dist/models/UserMail.d.ts +32 -0
  220. package/dist/models/UserMail.js +50 -0
  221. package/dist/models/UserShortResponse.d.ts +50 -0
  222. package/dist/models/UserShortResponse.js +62 -0
  223. package/dist/models/UserTelegram.d.ts +32 -0
  224. package/dist/models/UserTelegram.js +50 -0
  225. package/dist/models/UserUpdateBody.d.ts +56 -0
  226. package/dist/models/UserUpdateBody.js +56 -0
  227. package/dist/models/ValidationError.d.ts +45 -0
  228. package/dist/models/ValidationError.js +59 -0
  229. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  230. package/dist/models/ValidationErrorLocInner.js +38 -0
  231. package/dist/models/index.d.ts +47 -0
  232. package/dist/models/index.js +65 -0
  233. package/dist/runtime.d.ts +184 -0
  234. package/dist/runtime.js +350 -0
  235. package/package.json +4 -17
  236. package/src/apis/DeviceApi.ts +326 -0
  237. package/src/apis/FoxFactoryApi.ts +807 -0
  238. package/src/apis/GitlabApi.ts +108 -0
  239. package/src/apis/InternalApi.ts +1590 -0
  240. package/src/apis/PasteApi.ts +158 -0
  241. package/src/apis/ReleaseApi.ts +414 -0
  242. package/src/apis/StatsApi.ts +82 -0
  243. package/src/apis/index.ts +9 -0
  244. package/src/index.ts +5 -0
  245. package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +75 -0
  246. package/src/models/BuildStatusEnum.ts +58 -0
  247. package/src/models/BuildTaskResponse.ts +183 -0
  248. package/src/models/BuildTaskShortResponse.ts +167 -0
  249. package/src/models/DeviceInternalResponse.ts +196 -0
  250. package/src/models/DeviceResponse.ts +171 -0
  251. package/src/models/DeviceStatsResponse.ts +84 -0
  252. package/src/models/DeviceUpdateBody.ts +105 -0
  253. package/src/models/FFStatusEnum.ts +54 -0
  254. package/src/models/FFStatusResponse.ts +76 -0
  255. package/src/models/GlobalStatsAggregationModel.ts +93 -0
  256. package/src/models/HTTPValidationError.ts +73 -0
  257. package/src/models/ListResponseBuildTaskShortResponse.ts +82 -0
  258. package/src/models/ListResponseReleaseResponse.ts +82 -0
  259. package/src/models/ListResponseShortDeviceResponse.ts +82 -0
  260. package/src/models/ListResponseShortReleaseResponse.ts +82 -0
  261. package/src/models/ListResponseStr.ts +74 -0
  262. package/src/models/ListResponseUserShortResponse.ts +82 -0
  263. package/src/models/LogListResponse.ts +101 -0
  264. package/src/models/LogResponse.ts +141 -0
  265. package/src/models/MaintainerShortModel.ts +84 -0
  266. package/src/models/NewBuildTaskBody.ts +108 -0
  267. package/src/models/NewDeviceBody.ts +93 -0
  268. package/src/models/PasteInput.ts +91 -0
  269. package/src/models/PasteOutput.ts +91 -0
  270. package/src/models/RecoveryImgResponse.ts +75 -0
  271. package/src/models/ReleaseGroupsResponse.ts +74 -0
  272. package/src/models/ReleaseInternalResponse.ts +279 -0
  273. package/src/models/ReleaseInternalResponsePropValue.ts +46 -0
  274. package/src/models/ReleaseResponse.ts +233 -0
  275. package/src/models/ReleaseStatsResponse.ts +84 -0
  276. package/src/models/ReleaseType.ts +54 -0
  277. package/src/models/ReleaseUpdateBody.ts +89 -0
  278. package/src/models/ReleasesSort.ts +53 -0
  279. package/src/models/ResponseGetReleases.ts +96 -0
  280. package/src/models/ShortDeviceResponse.ts +138 -0
  281. package/src/models/ShortReleaseResponse.ts +174 -0
  282. package/src/models/TaskUpdateBody.ts +83 -0
  283. package/src/models/TokenResponse.ts +74 -0
  284. package/src/models/UserGitlab.ts +66 -0
  285. package/src/models/UserInternalResponse.ts +172 -0
  286. package/src/models/UserMail.ts +66 -0
  287. package/src/models/UserShortResponse.ts +93 -0
  288. package/src/models/UserTelegram.ts +66 -0
  289. package/src/models/UserUpdateBody.ts +97 -0
  290. package/src/models/ValidationError.ts +92 -0
  291. package/src/models/ValidationErrorLocInner.ts +46 -0
  292. package/src/models/index.ts +49 -0
  293. package/src/runtime.ts +432 -0
  294. package/tsconfig.json +2 -4
  295. package/api.ts +0 -6111
  296. package/base.ts +0 -86
  297. package/common.ts +0 -150
  298. package/configuration.ts +0 -115
  299. package/dist/api.d.ts +0 -3964
  300. package/dist/api.js +0 -3664
  301. package/dist/base.d.ts +0 -66
  302. package/dist/base.js +0 -65
  303. package/dist/common.d.ts +0 -65
  304. package/dist/common.js +0 -161
  305. package/dist/configuration.d.ts +0 -91
  306. package/dist/configuration.js +0 -44
  307. package/dist/esm/api.d.ts +0 -3964
  308. package/dist/esm/api.js +0 -3633
  309. package/dist/esm/base.d.ts +0 -66
  310. package/dist/esm/base.js +0 -60
  311. package/dist/esm/common.d.ts +0 -65
  312. package/dist/esm/common.js +0 -149
  313. package/dist/esm/configuration.d.ts +0 -91
  314. package/dist/esm/configuration.js +0 -40
  315. package/docs/BodyChangePasswordProfileChangePasswordPost.md +0 -22
  316. package/docs/BuildStatusEnum.md +0 -20
  317. package/docs/BuildTaskResponse.md +0 -42
  318. package/docs/BuildTaskShortResponse.md +0 -38
  319. package/docs/DeviceApi.md +0 -251
  320. package/docs/DeviceInternalResponse.md +0 -48
  321. package/docs/DeviceResponse.md +0 -44
  322. package/docs/DeviceStatsResponse.md +0 -24
  323. package/docs/DeviceUpdateBody.md +0 -30
  324. package/docs/FFStatusEnum.md +0 -12
  325. package/docs/FFStatusResponse.md +0 -20
  326. package/docs/FoxFactoryApi.md +0 -540
  327. package/docs/GitlabApi.md +0 -62
  328. package/docs/GlobalStatsAggregationModel.md +0 -26
  329. package/docs/HTTPValidationError.md +0 -20
  330. package/docs/InternalApi.md +0 -1072
  331. package/docs/ListResponseBuildTaskShortResponse.md +0 -22
  332. package/docs/ListResponseReleaseResponse.md +0 -22
  333. package/docs/ListResponseShortDeviceResponse.md +0 -22
  334. package/docs/ListResponseShortReleaseResponse.md +0 -22
  335. package/docs/ListResponseStr.md +0 -22
  336. package/docs/ListResponseUserShortResponse.md +0 -22
  337. package/docs/LogListResponse.md +0 -26
  338. package/docs/LogResponse.md +0 -36
  339. package/docs/MaintainerShortModel.md +0 -26
  340. package/docs/NewBuildTaskBody.md +0 -28
  341. package/docs/NewDeviceBody.md +0 -26
  342. package/docs/PasteApi.md +0 -117
  343. package/docs/PasteInput.md +0 -26
  344. package/docs/PasteOutput.md +0 -26
  345. package/docs/RecoveryImgResponse.md +0 -22
  346. package/docs/ReleaseApi.md +0 -289
  347. package/docs/ReleaseGroupsResponse.md +0 -20
  348. package/docs/ReleaseInternalResponse.md +0 -62
  349. package/docs/ReleaseInternalResponsePropValue.md +0 -18
  350. package/docs/ReleaseResponse.md +0 -56
  351. package/docs/ReleaseStatsResponse.md +0 -24
  352. package/docs/ReleaseType.md +0 -12
  353. package/docs/ReleaseUpdateBody.md +0 -26
  354. package/docs/ReleasesSort.md +0 -10
  355. package/docs/ResponseGetReleases.md +0 -22
  356. package/docs/ShortDeviceResponse.md +0 -38
  357. package/docs/ShortReleaseResponse.md +0 -44
  358. package/docs/StatsApi.md +0 -53
  359. package/docs/TaskUpdateBody.md +0 -22
  360. package/docs/TokenResponse.md +0 -22
  361. package/docs/UserGitlab.md +0 -20
  362. package/docs/UserInternalResponse.md +0 -38
  363. package/docs/UserMail.md +0 -20
  364. package/docs/UserShortResponse.md +0 -26
  365. package/docs/UserTelegram.md +0 -20
  366. package/docs/UserUpdateBody.md +0 -28
  367. package/docs/ValidationError.md +0 -24
  368. package/docs/ValidationErrorLocInner.md +0 -18
  369. package/git_push.sh +0 -57
package/dist/esm/api.js DELETED
@@ -1,3633 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
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.
6
- *
7
- * The version of the OpenAPI document: 5.2.6
8
- * Contact: admin@orangefox.tech
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- import globalAxios from 'axios';
24
- // Some imports not used depending on template conditions
25
- // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
- // @ts-ignore
28
- import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from './base';
29
- /**
30
- *
31
- * @export
32
- * @enum {string}
33
- */
34
- export const BuildStatusEnum = {
35
- Pending: 'pending',
36
- Running: 'running',
37
- Cancelling: 'cancelling',
38
- Uploading: 'uploading',
39
- Success: 'success',
40
- Cancelled: 'cancelled',
41
- Failed: 'failed'
42
- };
43
- /**
44
- *
45
- * @export
46
- * @enum {string}
47
- */
48
- export const FFStatusEnum = {
49
- Free: 'free',
50
- Busy: 'busy',
51
- Offline: 'offline'
52
- };
53
- /**
54
- *
55
- * @export
56
- * @enum {string}
57
- */
58
- export const ReleaseType = {
59
- Stable: 'stable',
60
- Beta: 'beta',
61
- Alpha: 'alpha'
62
- };
63
- /**
64
- *
65
- * @export
66
- * @enum {string}
67
- */
68
- export const ReleasesSort = {
69
- DateAsc: 'date_asc',
70
- DateDesc: 'date_desc'
71
- };
72
- /**
73
- * DeviceApi - axios parameter creator
74
- * @export
75
- */
76
- export const DeviceApiAxiosParamCreator = function (configuration) {
77
- return {
78
- /**
79
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
80
- * @summary Get Device
81
- * @param {string | null} [deviceId]
82
- * @param {string | null} [id] Filter by Device ID (deprecated)
83
- * @param {string | null} [codename] Not recommended to use when you can
84
- * @param {*} [options] Override http request option.
85
- * @throws {RequiredError}
86
- */
87
- getDevice: (deviceId_1, id_1, codename_1, ...args_1) => __awaiter(this, [deviceId_1, id_1, codename_1, ...args_1], void 0, function* (deviceId, id, codename, options = {}) {
88
- const localVarPath = `/devices/get`;
89
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
- let baseOptions;
92
- if (configuration) {
93
- baseOptions = configuration.baseOptions;
94
- }
95
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
96
- const localVarHeaderParameter = {};
97
- const localVarQueryParameter = {};
98
- if (deviceId !== undefined) {
99
- localVarQueryParameter['device_id'] = deviceId;
100
- }
101
- if (id !== undefined) {
102
- localVarQueryParameter['_id'] = id;
103
- }
104
- if (codename !== undefined) {
105
- localVarQueryParameter['codename'] = codename;
106
- }
107
- setSearchParams(localVarUrlObj, localVarQueryParameter);
108
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
110
- return {
111
- url: toPathString(localVarUrlObj),
112
- options: localVarRequestOptions,
113
- };
114
- }),
115
- /**
116
- * Gets device info using device ID.
117
- * @summary Get Device Short
118
- * @param {string} deviceId
119
- * @param {*} [options] Override http request option.
120
- * @deprecated
121
- * @throws {RequiredError}
122
- */
123
- getDeviceDeprecated: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
124
- // verify required parameter 'deviceId' is not null or undefined
125
- assertParamExists('getDeviceDeprecated', 'deviceId', deviceId);
126
- const localVarPath = `/devices/{device_id}`
127
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
128
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
130
- let baseOptions;
131
- if (configuration) {
132
- baseOptions = configuration.baseOptions;
133
- }
134
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
135
- const localVarHeaderParameter = {};
136
- const localVarQueryParameter = {};
137
- setSearchParams(localVarUrlObj, localVarQueryParameter);
138
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
140
- return {
141
- url: toPathString(localVarUrlObj),
142
- options: localVarRequestOptions,
143
- };
144
- }),
145
- /**
146
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
147
- * @summary Get Devices
148
- * @param {Array<string>} [id] Filter by Device IDs
149
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
150
- * @param {Array<string>} [oemName] Filter by OEM names
151
- * @param {Array<string>} [codename] Filter by device codenames
152
- * @param {Array<string>} [modelName] Filter by model names
153
- * @param {boolean | null} [supported] Supported status
154
- * @param {Array<string>} [maintainer] Filter by maintainer ID
155
- * @param {boolean | null} [freezed] Filter by Freezed status
156
- * @param {boolean | null} [hasReleases] Filter by has releases status
157
- * @param {number | null} [skip] Skip query results
158
- * @param {number | null} [limit] Limit query results (0 means unlimited)
159
- * @param {*} [options] Override http request option.
160
- * @throws {RequiredError}
161
- */
162
- getDevices: (id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options = {}) {
163
- const localVarPath = `/devices/`;
164
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
165
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
166
- let baseOptions;
167
- if (configuration) {
168
- baseOptions = configuration.baseOptions;
169
- }
170
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
171
- const localVarHeaderParameter = {};
172
- const localVarQueryParameter = {};
173
- if (id) {
174
- localVarQueryParameter['id'] = id;
175
- }
176
- if (id2) {
177
- localVarQueryParameter['_id'] = id2;
178
- }
179
- if (oemName) {
180
- localVarQueryParameter['oem_name'] = oemName;
181
- }
182
- if (codename) {
183
- localVarQueryParameter['codename'] = codename;
184
- }
185
- if (modelName) {
186
- localVarQueryParameter['model_name'] = modelName;
187
- }
188
- if (supported !== undefined) {
189
- localVarQueryParameter['supported'] = supported;
190
- }
191
- if (maintainer) {
192
- localVarQueryParameter['maintainer'] = maintainer;
193
- }
194
- if (freezed !== undefined) {
195
- localVarQueryParameter['freezed'] = freezed;
196
- }
197
- if (hasReleases !== undefined) {
198
- localVarQueryParameter['has_releases'] = hasReleases;
199
- }
200
- if (skip !== undefined) {
201
- localVarQueryParameter['skip'] = skip;
202
- }
203
- if (limit !== undefined) {
204
- localVarQueryParameter['limit'] = limit;
205
- }
206
- setSearchParams(localVarUrlObj, localVarQueryParameter);
207
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
208
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
209
- return {
210
- url: toPathString(localVarUrlObj),
211
- options: localVarRequestOptions,
212
- };
213
- }),
214
- /**
215
- * Lists all OEM names
216
- * @summary Get Oems
217
- * @param {*} [options] Override http request option.
218
- * @throws {RequiredError}
219
- */
220
- getOems: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
221
- const localVarPath = `/oems/`;
222
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
223
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
224
- let baseOptions;
225
- if (configuration) {
226
- baseOptions = configuration.baseOptions;
227
- }
228
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
229
- const localVarHeaderParameter = {};
230
- const localVarQueryParameter = {};
231
- setSearchParams(localVarUrlObj, localVarQueryParameter);
232
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
233
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
234
- return {
235
- url: toPathString(localVarUrlObj),
236
- options: localVarRequestOptions,
237
- };
238
- }),
239
- };
240
- };
241
- /**
242
- * DeviceApi - functional programming interface
243
- * @export
244
- */
245
- export const DeviceApiFp = function (configuration) {
246
- const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration);
247
- return {
248
- /**
249
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
250
- * @summary Get Device
251
- * @param {string | null} [deviceId]
252
- * @param {string | null} [id] Filter by Device ID (deprecated)
253
- * @param {string | null} [codename] Not recommended to use when you can
254
- * @param {*} [options] Override http request option.
255
- * @throws {RequiredError}
256
- */
257
- getDevice(deviceId, id, codename, options) {
258
- return __awaiter(this, void 0, void 0, function* () {
259
- var _a, _b, _c;
260
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevice(deviceId, id, codename, options);
261
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
262
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
263
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
264
- });
265
- },
266
- /**
267
- * Gets device info using device ID.
268
- * @summary Get Device Short
269
- * @param {string} deviceId
270
- * @param {*} [options] Override http request option.
271
- * @deprecated
272
- * @throws {RequiredError}
273
- */
274
- getDeviceDeprecated(deviceId, options) {
275
- return __awaiter(this, void 0, void 0, function* () {
276
- var _a, _b, _c;
277
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDeprecated(deviceId, options);
278
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
279
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDeviceDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
280
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
281
- });
282
- },
283
- /**
284
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
285
- * @summary Get Devices
286
- * @param {Array<string>} [id] Filter by Device IDs
287
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
288
- * @param {Array<string>} [oemName] Filter by OEM names
289
- * @param {Array<string>} [codename] Filter by device codenames
290
- * @param {Array<string>} [modelName] Filter by model names
291
- * @param {boolean | null} [supported] Supported status
292
- * @param {Array<string>} [maintainer] Filter by maintainer ID
293
- * @param {boolean | null} [freezed] Filter by Freezed status
294
- * @param {boolean | null} [hasReleases] Filter by has releases status
295
- * @param {number | null} [skip] Skip query results
296
- * @param {number | null} [limit] Limit query results (0 means unlimited)
297
- * @param {*} [options] Override http request option.
298
- * @throws {RequiredError}
299
- */
300
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
301
- return __awaiter(this, void 0, void 0, function* () {
302
- var _a, _b, _c;
303
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
304
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
305
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getDevices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
306
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
307
- });
308
- },
309
- /**
310
- * Lists all OEM names
311
- * @summary Get Oems
312
- * @param {*} [options] Override http request option.
313
- * @throws {RequiredError}
314
- */
315
- getOems(options) {
316
- return __awaiter(this, void 0, void 0, function* () {
317
- var _a, _b, _c;
318
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOems(options);
319
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
320
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DeviceApi.getOems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
321
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
322
- });
323
- },
324
- };
325
- };
326
- /**
327
- * DeviceApi - factory interface
328
- * @export
329
- */
330
- export const DeviceApiFactory = function (configuration, basePath, axios) {
331
- const localVarFp = DeviceApiFp(configuration);
332
- return {
333
- /**
334
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
335
- * @summary Get Device
336
- * @param {string | null} [deviceId]
337
- * @param {string | null} [id] Filter by Device ID (deprecated)
338
- * @param {string | null} [codename] Not recommended to use when you can
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- getDevice(deviceId, id, codename, options) {
343
- return localVarFp.getDevice(deviceId, id, codename, options).then((request) => request(axios, basePath));
344
- },
345
- /**
346
- * Gets device info using device ID.
347
- * @summary Get Device Short
348
- * @param {string} deviceId
349
- * @param {*} [options] Override http request option.
350
- * @deprecated
351
- * @throws {RequiredError}
352
- */
353
- getDeviceDeprecated(deviceId, options) {
354
- return localVarFp.getDeviceDeprecated(deviceId, options).then((request) => request(axios, basePath));
355
- },
356
- /**
357
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
358
- * @summary Get Devices
359
- * @param {Array<string>} [id] Filter by Device IDs
360
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
361
- * @param {Array<string>} [oemName] Filter by OEM names
362
- * @param {Array<string>} [codename] Filter by device codenames
363
- * @param {Array<string>} [modelName] Filter by model names
364
- * @param {boolean | null} [supported] Supported status
365
- * @param {Array<string>} [maintainer] Filter by maintainer ID
366
- * @param {boolean | null} [freezed] Filter by Freezed status
367
- * @param {boolean | null} [hasReleases] Filter by has releases status
368
- * @param {number | null} [skip] Skip query results
369
- * @param {number | null} [limit] Limit query results (0 means unlimited)
370
- * @param {*} [options] Override http request option.
371
- * @throws {RequiredError}
372
- */
373
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
374
- return localVarFp.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
375
- },
376
- /**
377
- * Lists all OEM names
378
- * @summary Get Oems
379
- * @param {*} [options] Override http request option.
380
- * @throws {RequiredError}
381
- */
382
- getOems(options) {
383
- return localVarFp.getOems(options).then((request) => request(axios, basePath));
384
- },
385
- };
386
- };
387
- /**
388
- * DeviceApi - object-oriented interface
389
- * @export
390
- * @class DeviceApi
391
- * @extends {BaseAPI}
392
- */
393
- export class DeviceApi extends BaseAPI {
394
- /**
395
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
396
- * @summary Get Device
397
- * @param {string | null} [deviceId]
398
- * @param {string | null} [id] Filter by Device ID (deprecated)
399
- * @param {string | null} [codename] Not recommended to use when you can
400
- * @param {*} [options] Override http request option.
401
- * @throws {RequiredError}
402
- * @memberof DeviceApi
403
- */
404
- getDevice(deviceId, id, codename, options) {
405
- return DeviceApiFp(this.configuration).getDevice(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
406
- }
407
- /**
408
- * Gets device info using device ID.
409
- * @summary Get Device Short
410
- * @param {string} deviceId
411
- * @param {*} [options] Override http request option.
412
- * @deprecated
413
- * @throws {RequiredError}
414
- * @memberof DeviceApi
415
- */
416
- getDeviceDeprecated(deviceId, options) {
417
- return DeviceApiFp(this.configuration).getDeviceDeprecated(deviceId, options).then((request) => request(this.axios, this.basePath));
418
- }
419
- /**
420
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
421
- * @summary Get Devices
422
- * @param {Array<string>} [id] Filter by Device IDs
423
- * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
424
- * @param {Array<string>} [oemName] Filter by OEM names
425
- * @param {Array<string>} [codename] Filter by device codenames
426
- * @param {Array<string>} [modelName] Filter by model names
427
- * @param {boolean | null} [supported] Supported status
428
- * @param {Array<string>} [maintainer] Filter by maintainer ID
429
- * @param {boolean | null} [freezed] Filter by Freezed status
430
- * @param {boolean | null} [hasReleases] Filter by has releases status
431
- * @param {number | null} [skip] Skip query results
432
- * @param {number | null} [limit] Limit query results (0 means unlimited)
433
- * @param {*} [options] Override http request option.
434
- * @throws {RequiredError}
435
- * @memberof DeviceApi
436
- */
437
- getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
438
- return DeviceApiFp(this.configuration).getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
439
- }
440
- /**
441
- * Lists all OEM names
442
- * @summary Get Oems
443
- * @param {*} [options] Override http request option.
444
- * @throws {RequiredError}
445
- * @memberof DeviceApi
446
- */
447
- getOems(options) {
448
- return DeviceApiFp(this.configuration).getOems(options).then((request) => request(this.axios, this.basePath));
449
- }
450
- }
451
- /**
452
- * FoxFactoryApi - axios parameter creator
453
- * @export
454
- */
455
- export const FoxFactoryApiAxiosParamCreator = function (configuration) {
456
- return {
457
- /**
458
- * 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.
459
- * @summary Cancel Task
460
- * @param {string} taskId
461
- * @param {*} [options] Override http request option.
462
- * @throws {RequiredError}
463
- */
464
- cancelTaskFactoryTaskIdCancelPost: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
465
- // verify required parameter 'taskId' is not null or undefined
466
- assertParamExists('cancelTaskFactoryTaskIdCancelPost', 'taskId', taskId);
467
- const localVarPath = `/factory/{task_id}/cancel`
468
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
469
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
470
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
471
- let baseOptions;
472
- if (configuration) {
473
- baseOptions = configuration.baseOptions;
474
- }
475
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
476
- const localVarHeaderParameter = {};
477
- const localVarQueryParameter = {};
478
- // authentication oauth2_password required
479
- // oauth required
480
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
481
- // authentication bearer_auth required
482
- // http bearer authentication required
483
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
484
- setSearchParams(localVarUrlObj, localVarQueryParameter);
485
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
487
- return {
488
- url: toPathString(localVarUrlObj),
489
- options: localVarRequestOptions,
490
- };
491
- }),
492
- /**
493
- * 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.
494
- * @summary Delete Task
495
- * @param {string} taskId
496
- * @param {*} [options] Override http request option.
497
- * @throws {RequiredError}
498
- */
499
- deleteTaskFactoryTaskIdDelete: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
500
- // verify required parameter 'taskId' is not null or undefined
501
- assertParamExists('deleteTaskFactoryTaskIdDelete', 'taskId', taskId);
502
- const localVarPath = `/factory/{task_id}`
503
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
504
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
505
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
506
- let baseOptions;
507
- if (configuration) {
508
- baseOptions = configuration.baseOptions;
509
- }
510
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
511
- const localVarHeaderParameter = {};
512
- const localVarQueryParameter = {};
513
- // authentication oauth2_password required
514
- // oauth required
515
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
516
- // authentication bearer_auth required
517
- // http bearer authentication required
518
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
519
- setSearchParams(localVarUrlObj, localVarQueryParameter);
520
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
521
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
522
- return {
523
- url: toPathString(localVarUrlObj),
524
- options: localVarRequestOptions,
525
- };
526
- }),
527
- /**
528
- * 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
529
- * @summary Download Artifact
530
- * @param {string} taskId
531
- * @param {*} [options] Override http request option.
532
- * @throws {RequiredError}
533
- */
534
- downloadArtifactFactoryTaskIdArtifactGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
535
- // verify required parameter 'taskId' is not null or undefined
536
- assertParamExists('downloadArtifactFactoryTaskIdArtifactGet', 'taskId', taskId);
537
- const localVarPath = `/factory/{task_id}/artifact`
538
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
539
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
540
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
541
- let baseOptions;
542
- if (configuration) {
543
- baseOptions = configuration.baseOptions;
544
- }
545
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
546
- const localVarHeaderParameter = {};
547
- const localVarQueryParameter = {};
548
- // authentication oauth2_password required
549
- // oauth required
550
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
551
- // authentication bearer_auth required
552
- // http bearer authentication required
553
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
554
- setSearchParams(localVarUrlObj, localVarQueryParameter);
555
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
556
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
557
- return {
558
- url: toPathString(localVarUrlObj),
559
- options: localVarRequestOptions,
560
- };
561
- }),
562
- /**
563
- * 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.
564
- * @summary Factory Status
565
- * @param {*} [options] Override http request option.
566
- * @throws {RequiredError}
567
- */
568
- factoryStatusFactoryStatusGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
569
- const localVarPath = `/factory/status`;
570
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
571
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
572
- let baseOptions;
573
- if (configuration) {
574
- baseOptions = configuration.baseOptions;
575
- }
576
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
577
- const localVarHeaderParameter = {};
578
- const localVarQueryParameter = {};
579
- // authentication oauth2_password required
580
- // oauth required
581
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
582
- // authentication bearer_auth required
583
- // http bearer authentication required
584
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
585
- setSearchParams(localVarUrlObj, localVarQueryParameter);
586
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
587
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
588
- return {
589
- url: toPathString(localVarUrlObj),
590
- options: localVarRequestOptions,
591
- };
592
- }),
593
- /**
594
- * 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.
595
- * @summary Get Task
596
- * @param {string} taskId
597
- * @param {*} [options] Override http request option.
598
- * @throws {RequiredError}
599
- */
600
- getTaskFactoryTaskIdGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
601
- // verify required parameter 'taskId' is not null or undefined
602
- assertParamExists('getTaskFactoryTaskIdGet', 'taskId', taskId);
603
- const localVarPath = `/factory/{task_id}`
604
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
605
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
606
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
607
- let baseOptions;
608
- if (configuration) {
609
- baseOptions = configuration.baseOptions;
610
- }
611
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
612
- const localVarHeaderParameter = {};
613
- const localVarQueryParameter = {};
614
- // authentication oauth2_password required
615
- // oauth required
616
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
617
- // authentication bearer_auth required
618
- // http bearer authentication required
619
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
620
- setSearchParams(localVarUrlObj, localVarQueryParameter);
621
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
622
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
623
- return {
624
- url: toPathString(localVarUrlObj),
625
- options: localVarRequestOptions,
626
- };
627
- }),
628
- /**
629
- * 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
630
- * @summary List Tasks
631
- * @param {string | null} [deviceId]
632
- * @param {*} [options] Override http request option.
633
- * @throws {RequiredError}
634
- */
635
- listTasksFactoryGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
636
- const localVarPath = `/factory/`;
637
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
638
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
639
- let baseOptions;
640
- if (configuration) {
641
- baseOptions = configuration.baseOptions;
642
- }
643
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
644
- const localVarHeaderParameter = {};
645
- const localVarQueryParameter = {};
646
- // authentication oauth2_password required
647
- // oauth required
648
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
649
- // authentication bearer_auth required
650
- // http bearer authentication required
651
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
652
- if (deviceId !== undefined) {
653
- localVarQueryParameter['device_id'] = deviceId;
654
- }
655
- setSearchParams(localVarUrlObj, localVarQueryParameter);
656
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
657
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
658
- return {
659
- url: toPathString(localVarUrlObj),
660
- options: localVarRequestOptions,
661
- };
662
- }),
663
- /**
664
- * 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.
665
- * @summary New Task
666
- * @param {NewBuildTaskBody} newBuildTaskBody
667
- * @param {*} [options] Override http request option.
668
- * @throws {RequiredError}
669
- */
670
- newTaskFactoryPost: (newBuildTaskBody_1, ...args_1) => __awaiter(this, [newBuildTaskBody_1, ...args_1], void 0, function* (newBuildTaskBody, options = {}) {
671
- // verify required parameter 'newBuildTaskBody' is not null or undefined
672
- assertParamExists('newTaskFactoryPost', 'newBuildTaskBody', newBuildTaskBody);
673
- const localVarPath = `/factory/`;
674
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
675
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
676
- let baseOptions;
677
- if (configuration) {
678
- baseOptions = configuration.baseOptions;
679
- }
680
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
681
- const localVarHeaderParameter = {};
682
- const localVarQueryParameter = {};
683
- // authentication oauth2_password required
684
- // oauth required
685
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
686
- // authentication bearer_auth required
687
- // http bearer authentication required
688
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
689
- localVarHeaderParameter['Content-Type'] = 'application/json';
690
- setSearchParams(localVarUrlObj, localVarQueryParameter);
691
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
692
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
693
- localVarRequestOptions.data = serializeDataIfNeeded(newBuildTaskBody, localVarRequestOptions, configuration);
694
- return {
695
- url: toPathString(localVarUrlObj),
696
- options: localVarRequestOptions,
697
- };
698
- }),
699
- /**
700
- * 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.
701
- * @summary Update Task
702
- * @param {string} taskId
703
- * @param {TaskUpdateBody} taskUpdateBody
704
- * @param {*} [options] Override http request option.
705
- * @throws {RequiredError}
706
- */
707
- updateTaskFactoryTaskIdPatch: (taskId_1, taskUpdateBody_1, ...args_1) => __awaiter(this, [taskId_1, taskUpdateBody_1, ...args_1], void 0, function* (taskId, taskUpdateBody, options = {}) {
708
- // verify required parameter 'taskId' is not null or undefined
709
- assertParamExists('updateTaskFactoryTaskIdPatch', 'taskId', taskId);
710
- // verify required parameter 'taskUpdateBody' is not null or undefined
711
- assertParamExists('updateTaskFactoryTaskIdPatch', 'taskUpdateBody', taskUpdateBody);
712
- const localVarPath = `/factory/{task_id}`
713
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
714
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
715
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
716
- let baseOptions;
717
- if (configuration) {
718
- baseOptions = configuration.baseOptions;
719
- }
720
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
721
- const localVarHeaderParameter = {};
722
- const localVarQueryParameter = {};
723
- // authentication oauth2_password required
724
- // oauth required
725
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
726
- // authentication bearer_auth required
727
- // http bearer authentication required
728
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
729
- localVarHeaderParameter['Content-Type'] = 'application/json';
730
- setSearchParams(localVarUrlObj, localVarQueryParameter);
731
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
732
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
733
- localVarRequestOptions.data = serializeDataIfNeeded(taskUpdateBody, localVarRequestOptions, configuration);
734
- return {
735
- url: toPathString(localVarUrlObj),
736
- options: localVarRequestOptions,
737
- };
738
- }),
739
- /**
740
- * Endpoint for FoxFactory worker to update its status.
741
- * @summary Update Worker Status
742
- * @param {string} body
743
- * @param {*} [options] Override http request option.
744
- * @throws {RequiredError}
745
- */
746
- updateWorkerStatusFactoryUpdateStatusPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
747
- // verify required parameter 'body' is not null or undefined
748
- assertParamExists('updateWorkerStatusFactoryUpdateStatusPost', 'body', body);
749
- const localVarPath = `/factory/update_status`;
750
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
751
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
752
- let baseOptions;
753
- if (configuration) {
754
- baseOptions = configuration.baseOptions;
755
- }
756
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
757
- const localVarHeaderParameter = {};
758
- const localVarQueryParameter = {};
759
- // authentication oauth2_password required
760
- // oauth required
761
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
762
- // authentication bearer_auth required
763
- // http bearer authentication required
764
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
765
- localVarHeaderParameter['Content-Type'] = 'application/json';
766
- setSearchParams(localVarUrlObj, localVarQueryParameter);
767
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
768
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
769
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
770
- return {
771
- url: toPathString(localVarUrlObj),
772
- options: localVarRequestOptions,
773
- };
774
- }),
775
- /**
776
- * 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
777
- * @summary Upload Artifact
778
- * @param {string} taskId
779
- * @param {File} artifact
780
- * @param {string} md5Hash
781
- * @param {*} [options] Override http request option.
782
- * @throws {RequiredError}
783
- */
784
- uploadArtifactFactoryTaskIdArtifactPost: (taskId_1, artifact_1, md5Hash_1, ...args_1) => __awaiter(this, [taskId_1, artifact_1, md5Hash_1, ...args_1], void 0, function* (taskId, artifact, md5Hash, options = {}) {
785
- // verify required parameter 'taskId' is not null or undefined
786
- assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'taskId', taskId);
787
- // verify required parameter 'artifact' is not null or undefined
788
- assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'artifact', artifact);
789
- // verify required parameter 'md5Hash' is not null or undefined
790
- assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'md5Hash', md5Hash);
791
- const localVarPath = `/factory/{task_id}/artifact`
792
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
793
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
794
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
795
- let baseOptions;
796
- if (configuration) {
797
- baseOptions = configuration.baseOptions;
798
- }
799
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
800
- const localVarHeaderParameter = {};
801
- const localVarQueryParameter = {};
802
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
803
- // authentication oauth2_password required
804
- // oauth required
805
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
806
- // authentication bearer_auth required
807
- // http bearer authentication required
808
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
809
- if (artifact !== undefined) {
810
- localVarFormParams.append('artifact', artifact);
811
- }
812
- if (md5Hash !== undefined) {
813
- localVarFormParams.append('md5_hash', md5Hash);
814
- }
815
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
816
- setSearchParams(localVarUrlObj, localVarQueryParameter);
817
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
818
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
819
- localVarRequestOptions.data = localVarFormParams;
820
- return {
821
- url: toPathString(localVarUrlObj),
822
- options: localVarRequestOptions,
823
- };
824
- }),
825
- };
826
- };
827
- /**
828
- * FoxFactoryApi - functional programming interface
829
- * @export
830
- */
831
- export const FoxFactoryApiFp = function (configuration) {
832
- const localVarAxiosParamCreator = FoxFactoryApiAxiosParamCreator(configuration);
833
- return {
834
- /**
835
- * 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.
836
- * @summary Cancel Task
837
- * @param {string} taskId
838
- * @param {*} [options] Override http request option.
839
- * @throws {RequiredError}
840
- */
841
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
842
- return __awaiter(this, void 0, void 0, function* () {
843
- var _a, _b, _c;
844
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelTaskFactoryTaskIdCancelPost(taskId, options);
845
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
846
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.cancelTaskFactoryTaskIdCancelPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
847
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
848
- });
849
- },
850
- /**
851
- * 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.
852
- * @summary Delete Task
853
- * @param {string} taskId
854
- * @param {*} [options] Override http request option.
855
- * @throws {RequiredError}
856
- */
857
- deleteTaskFactoryTaskIdDelete(taskId, options) {
858
- return __awaiter(this, void 0, void 0, function* () {
859
- var _a, _b, _c;
860
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTaskFactoryTaskIdDelete(taskId, options);
861
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
862
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.deleteTaskFactoryTaskIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
863
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
864
- });
865
- },
866
- /**
867
- * 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
868
- * @summary Download Artifact
869
- * @param {string} taskId
870
- * @param {*} [options] Override http request option.
871
- * @throws {RequiredError}
872
- */
873
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
874
- return __awaiter(this, void 0, void 0, function* () {
875
- var _a, _b, _c;
876
- const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadArtifactFactoryTaskIdArtifactGet(taskId, options);
877
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
878
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.downloadArtifactFactoryTaskIdArtifactGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
879
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
880
- });
881
- },
882
- /**
883
- * 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.
884
- * @summary Factory Status
885
- * @param {*} [options] Override http request option.
886
- * @throws {RequiredError}
887
- */
888
- factoryStatusFactoryStatusGet(options) {
889
- return __awaiter(this, void 0, void 0, function* () {
890
- var _a, _b, _c;
891
- const localVarAxiosArgs = yield localVarAxiosParamCreator.factoryStatusFactoryStatusGet(options);
892
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
893
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.factoryStatusFactoryStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
894
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
895
- });
896
- },
897
- /**
898
- * 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.
899
- * @summary Get Task
900
- * @param {string} taskId
901
- * @param {*} [options] Override http request option.
902
- * @throws {RequiredError}
903
- */
904
- getTaskFactoryTaskIdGet(taskId, options) {
905
- return __awaiter(this, void 0, void 0, function* () {
906
- var _a, _b, _c;
907
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTaskFactoryTaskIdGet(taskId, options);
908
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
909
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.getTaskFactoryTaskIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
910
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
911
- });
912
- },
913
- /**
914
- * 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
915
- * @summary List Tasks
916
- * @param {string | null} [deviceId]
917
- * @param {*} [options] Override http request option.
918
- * @throws {RequiredError}
919
- */
920
- listTasksFactoryGet(deviceId, options) {
921
- return __awaiter(this, void 0, void 0, function* () {
922
- var _a, _b, _c;
923
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksFactoryGet(deviceId, options);
924
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
925
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.listTasksFactoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
926
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
927
- });
928
- },
929
- /**
930
- * 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.
931
- * @summary New Task
932
- * @param {NewBuildTaskBody} newBuildTaskBody
933
- * @param {*} [options] Override http request option.
934
- * @throws {RequiredError}
935
- */
936
- newTaskFactoryPost(newBuildTaskBody, options) {
937
- return __awaiter(this, void 0, void 0, function* () {
938
- var _a, _b, _c;
939
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newTaskFactoryPost(newBuildTaskBody, options);
940
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
941
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.newTaskFactoryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
942
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
943
- });
944
- },
945
- /**
946
- * 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.
947
- * @summary Update Task
948
- * @param {string} taskId
949
- * @param {TaskUpdateBody} taskUpdateBody
950
- * @param {*} [options] Override http request option.
951
- * @throws {RequiredError}
952
- */
953
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
954
- return __awaiter(this, void 0, void 0, function* () {
955
- var _a, _b, _c;
956
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options);
957
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
958
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.updateTaskFactoryTaskIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
959
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
960
- });
961
- },
962
- /**
963
- * Endpoint for FoxFactory worker to update its status.
964
- * @summary Update Worker Status
965
- * @param {string} body
966
- * @param {*} [options] Override http request option.
967
- * @throws {RequiredError}
968
- */
969
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
970
- return __awaiter(this, void 0, void 0, function* () {
971
- var _a, _b, _c;
972
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWorkerStatusFactoryUpdateStatusPost(body, options);
973
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
974
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.updateWorkerStatusFactoryUpdateStatusPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
975
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
976
- });
977
- },
978
- /**
979
- * 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
980
- * @summary Upload Artifact
981
- * @param {string} taskId
982
- * @param {File} artifact
983
- * @param {string} md5Hash
984
- * @param {*} [options] Override http request option.
985
- * @throws {RequiredError}
986
- */
987
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
988
- return __awaiter(this, void 0, void 0, function* () {
989
- var _a, _b, _c;
990
- const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options);
991
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
992
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.uploadArtifactFactoryTaskIdArtifactPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
993
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
994
- });
995
- },
996
- };
997
- };
998
- /**
999
- * FoxFactoryApi - factory interface
1000
- * @export
1001
- */
1002
- export const FoxFactoryApiFactory = function (configuration, basePath, axios) {
1003
- const localVarFp = FoxFactoryApiFp(configuration);
1004
- return {
1005
- /**
1006
- * 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.
1007
- * @summary Cancel Task
1008
- * @param {string} taskId
1009
- * @param {*} [options] Override http request option.
1010
- * @throws {RequiredError}
1011
- */
1012
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
1013
- return localVarFp.cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(axios, basePath));
1014
- },
1015
- /**
1016
- * 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.
1017
- * @summary Delete Task
1018
- * @param {string} taskId
1019
- * @param {*} [options] Override http request option.
1020
- * @throws {RequiredError}
1021
- */
1022
- deleteTaskFactoryTaskIdDelete(taskId, options) {
1023
- return localVarFp.deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(axios, basePath));
1024
- },
1025
- /**
1026
- * 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
1027
- * @summary Download Artifact
1028
- * @param {string} taskId
1029
- * @param {*} [options] Override http request option.
1030
- * @throws {RequiredError}
1031
- */
1032
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
1033
- return localVarFp.downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(axios, basePath));
1034
- },
1035
- /**
1036
- * 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.
1037
- * @summary Factory Status
1038
- * @param {*} [options] Override http request option.
1039
- * @throws {RequiredError}
1040
- */
1041
- factoryStatusFactoryStatusGet(options) {
1042
- return localVarFp.factoryStatusFactoryStatusGet(options).then((request) => request(axios, basePath));
1043
- },
1044
- /**
1045
- * 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.
1046
- * @summary Get Task
1047
- * @param {string} taskId
1048
- * @param {*} [options] Override http request option.
1049
- * @throws {RequiredError}
1050
- */
1051
- getTaskFactoryTaskIdGet(taskId, options) {
1052
- return localVarFp.getTaskFactoryTaskIdGet(taskId, options).then((request) => request(axios, basePath));
1053
- },
1054
- /**
1055
- * 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
1056
- * @summary List Tasks
1057
- * @param {string | null} [deviceId]
1058
- * @param {*} [options] Override http request option.
1059
- * @throws {RequiredError}
1060
- */
1061
- listTasksFactoryGet(deviceId, options) {
1062
- return localVarFp.listTasksFactoryGet(deviceId, options).then((request) => request(axios, basePath));
1063
- },
1064
- /**
1065
- * 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.
1066
- * @summary New Task
1067
- * @param {NewBuildTaskBody} newBuildTaskBody
1068
- * @param {*} [options] Override http request option.
1069
- * @throws {RequiredError}
1070
- */
1071
- newTaskFactoryPost(newBuildTaskBody, options) {
1072
- return localVarFp.newTaskFactoryPost(newBuildTaskBody, options).then((request) => request(axios, basePath));
1073
- },
1074
- /**
1075
- * 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.
1076
- * @summary Update Task
1077
- * @param {string} taskId
1078
- * @param {TaskUpdateBody} taskUpdateBody
1079
- * @param {*} [options] Override http request option.
1080
- * @throws {RequiredError}
1081
- */
1082
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
1083
- return localVarFp.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(axios, basePath));
1084
- },
1085
- /**
1086
- * Endpoint for FoxFactory worker to update its status.
1087
- * @summary Update Worker Status
1088
- * @param {string} body
1089
- * @param {*} [options] Override http request option.
1090
- * @throws {RequiredError}
1091
- */
1092
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
1093
- return localVarFp.updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(axios, basePath));
1094
- },
1095
- /**
1096
- * 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
1097
- * @summary Upload Artifact
1098
- * @param {string} taskId
1099
- * @param {File} artifact
1100
- * @param {string} md5Hash
1101
- * @param {*} [options] Override http request option.
1102
- * @throws {RequiredError}
1103
- */
1104
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
1105
- return localVarFp.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(axios, basePath));
1106
- },
1107
- };
1108
- };
1109
- /**
1110
- * FoxFactoryApi - object-oriented interface
1111
- * @export
1112
- * @class FoxFactoryApi
1113
- * @extends {BaseAPI}
1114
- */
1115
- export class FoxFactoryApi extends BaseAPI {
1116
- /**
1117
- * 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.
1118
- * @summary Cancel Task
1119
- * @param {string} taskId
1120
- * @param {*} [options] Override http request option.
1121
- * @throws {RequiredError}
1122
- * @memberof FoxFactoryApi
1123
- */
1124
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
1125
- return FoxFactoryApiFp(this.configuration).cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(this.axios, this.basePath));
1126
- }
1127
- /**
1128
- * 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.
1129
- * @summary Delete Task
1130
- * @param {string} taskId
1131
- * @param {*} [options] Override http request option.
1132
- * @throws {RequiredError}
1133
- * @memberof FoxFactoryApi
1134
- */
1135
- deleteTaskFactoryTaskIdDelete(taskId, options) {
1136
- return FoxFactoryApiFp(this.configuration).deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(this.axios, this.basePath));
1137
- }
1138
- /**
1139
- * 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
1140
- * @summary Download Artifact
1141
- * @param {string} taskId
1142
- * @param {*} [options] Override http request option.
1143
- * @throws {RequiredError}
1144
- * @memberof FoxFactoryApi
1145
- */
1146
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
1147
- return FoxFactoryApiFp(this.configuration).downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(this.axios, this.basePath));
1148
- }
1149
- /**
1150
- * 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.
1151
- * @summary Factory Status
1152
- * @param {*} [options] Override http request option.
1153
- * @throws {RequiredError}
1154
- * @memberof FoxFactoryApi
1155
- */
1156
- factoryStatusFactoryStatusGet(options) {
1157
- return FoxFactoryApiFp(this.configuration).factoryStatusFactoryStatusGet(options).then((request) => request(this.axios, this.basePath));
1158
- }
1159
- /**
1160
- * 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.
1161
- * @summary Get Task
1162
- * @param {string} taskId
1163
- * @param {*} [options] Override http request option.
1164
- * @throws {RequiredError}
1165
- * @memberof FoxFactoryApi
1166
- */
1167
- getTaskFactoryTaskIdGet(taskId, options) {
1168
- return FoxFactoryApiFp(this.configuration).getTaskFactoryTaskIdGet(taskId, options).then((request) => request(this.axios, this.basePath));
1169
- }
1170
- /**
1171
- * 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
1172
- * @summary List Tasks
1173
- * @param {string | null} [deviceId]
1174
- * @param {*} [options] Override http request option.
1175
- * @throws {RequiredError}
1176
- * @memberof FoxFactoryApi
1177
- */
1178
- listTasksFactoryGet(deviceId, options) {
1179
- return FoxFactoryApiFp(this.configuration).listTasksFactoryGet(deviceId, options).then((request) => request(this.axios, this.basePath));
1180
- }
1181
- /**
1182
- * 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.
1183
- * @summary New Task
1184
- * @param {NewBuildTaskBody} newBuildTaskBody
1185
- * @param {*} [options] Override http request option.
1186
- * @throws {RequiredError}
1187
- * @memberof FoxFactoryApi
1188
- */
1189
- newTaskFactoryPost(newBuildTaskBody, options) {
1190
- return FoxFactoryApiFp(this.configuration).newTaskFactoryPost(newBuildTaskBody, options).then((request) => request(this.axios, this.basePath));
1191
- }
1192
- /**
1193
- * 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.
1194
- * @summary Update Task
1195
- * @param {string} taskId
1196
- * @param {TaskUpdateBody} taskUpdateBody
1197
- * @param {*} [options] Override http request option.
1198
- * @throws {RequiredError}
1199
- * @memberof FoxFactoryApi
1200
- */
1201
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
1202
- return FoxFactoryApiFp(this.configuration).updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(this.axios, this.basePath));
1203
- }
1204
- /**
1205
- * Endpoint for FoxFactory worker to update its status.
1206
- * @summary Update Worker Status
1207
- * @param {string} body
1208
- * @param {*} [options] Override http request option.
1209
- * @throws {RequiredError}
1210
- * @memberof FoxFactoryApi
1211
- */
1212
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
1213
- return FoxFactoryApiFp(this.configuration).updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(this.axios, this.basePath));
1214
- }
1215
- /**
1216
- * 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
1217
- * @summary Upload Artifact
1218
- * @param {string} taskId
1219
- * @param {File} artifact
1220
- * @param {string} md5Hash
1221
- * @param {*} [options] Override http request option.
1222
- * @throws {RequiredError}
1223
- * @memberof FoxFactoryApi
1224
- */
1225
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
1226
- return FoxFactoryApiFp(this.configuration).uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(this.axios, this.basePath));
1227
- }
1228
- }
1229
- /**
1230
- * GitlabApi - axios parameter creator
1231
- * @export
1232
- */
1233
- export const GitlabApiAxiosParamCreator = function (configuration) {
1234
- return {
1235
- /**
1236
- *
1237
- * @summary Device Add Gitlab Repo
1238
- * @param {string} deviceId
1239
- * @param {string} glProjectUrl
1240
- * @param {*} [options] Override http request option.
1241
- * @throws {RequiredError}
1242
- */
1243
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost: (deviceId_1, glProjectUrl_1, ...args_1) => __awaiter(this, [deviceId_1, glProjectUrl_1, ...args_1], void 0, function* (deviceId, glProjectUrl, options = {}) {
1244
- // verify required parameter 'deviceId' is not null or undefined
1245
- assertParamExists('deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost', 'deviceId', deviceId);
1246
- // verify required parameter 'glProjectUrl' is not null or undefined
1247
- assertParamExists('deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost', 'glProjectUrl', glProjectUrl);
1248
- const localVarPath = `/gitlab/device/{device_id}/gitlab`
1249
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1250
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1251
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1252
- let baseOptions;
1253
- if (configuration) {
1254
- baseOptions = configuration.baseOptions;
1255
- }
1256
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1257
- const localVarHeaderParameter = {};
1258
- const localVarQueryParameter = {};
1259
- if (glProjectUrl !== undefined) {
1260
- localVarQueryParameter['gl_project_url'] = glProjectUrl;
1261
- }
1262
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1263
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1264
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1265
- return {
1266
- url: toPathString(localVarUrlObj),
1267
- options: localVarRequestOptions,
1268
- };
1269
- }),
1270
- };
1271
- };
1272
- /**
1273
- * GitlabApi - functional programming interface
1274
- * @export
1275
- */
1276
- export const GitlabApiFp = function (configuration) {
1277
- const localVarAxiosParamCreator = GitlabApiAxiosParamCreator(configuration);
1278
- return {
1279
- /**
1280
- *
1281
- * @summary Device Add Gitlab Repo
1282
- * @param {string} deviceId
1283
- * @param {string} glProjectUrl
1284
- * @param {*} [options] Override http request option.
1285
- * @throws {RequiredError}
1286
- */
1287
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1288
- return __awaiter(this, void 0, void 0, function* () {
1289
- var _a, _b, _c;
1290
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options);
1291
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1292
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GitlabApi.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1293
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1294
- });
1295
- },
1296
- };
1297
- };
1298
- /**
1299
- * GitlabApi - factory interface
1300
- * @export
1301
- */
1302
- export const GitlabApiFactory = function (configuration, basePath, axios) {
1303
- const localVarFp = GitlabApiFp(configuration);
1304
- return {
1305
- /**
1306
- *
1307
- * @summary Device Add Gitlab Repo
1308
- * @param {string} deviceId
1309
- * @param {string} glProjectUrl
1310
- * @param {*} [options] Override http request option.
1311
- * @throws {RequiredError}
1312
- */
1313
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1314
- return localVarFp.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options).then((request) => request(axios, basePath));
1315
- },
1316
- };
1317
- };
1318
- /**
1319
- * GitlabApi - object-oriented interface
1320
- * @export
1321
- * @class GitlabApi
1322
- * @extends {BaseAPI}
1323
- */
1324
- export class GitlabApi extends BaseAPI {
1325
- /**
1326
- *
1327
- * @summary Device Add Gitlab Repo
1328
- * @param {string} deviceId
1329
- * @param {string} glProjectUrl
1330
- * @param {*} [options] Override http request option.
1331
- * @throws {RequiredError}
1332
- * @memberof GitlabApi
1333
- */
1334
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1335
- return GitlabApiFp(this.configuration).deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options).then((request) => request(this.axios, this.basePath));
1336
- }
1337
- }
1338
- /**
1339
- * InternalApi - axios parameter creator
1340
- * @export
1341
- */
1342
- export const InternalApiAxiosParamCreator = function (configuration) {
1343
- return {
1344
- /**
1345
- * Change the password for a user.
1346
- * @summary Change Password
1347
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
1348
- * @param {*} [options] Override http request option.
1349
- * @throws {RequiredError}
1350
- */
1351
- changePasswordProfileChangePasswordPost: (bodyChangePasswordProfileChangePasswordPost_1, ...args_1) => __awaiter(this, [bodyChangePasswordProfileChangePasswordPost_1, ...args_1], void 0, function* (bodyChangePasswordProfileChangePasswordPost, options = {}) {
1352
- // verify required parameter 'bodyChangePasswordProfileChangePasswordPost' is not null or undefined
1353
- assertParamExists('changePasswordProfileChangePasswordPost', 'bodyChangePasswordProfileChangePasswordPost', bodyChangePasswordProfileChangePasswordPost);
1354
- const localVarPath = `/profile/change_password`;
1355
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1356
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1357
- let baseOptions;
1358
- if (configuration) {
1359
- baseOptions = configuration.baseOptions;
1360
- }
1361
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1362
- const localVarHeaderParameter = {};
1363
- const localVarQueryParameter = {};
1364
- localVarHeaderParameter['Content-Type'] = 'application/json';
1365
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1366
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1367
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1368
- localVarRequestOptions.data = serializeDataIfNeeded(bodyChangePasswordProfileChangePasswordPost, localVarRequestOptions, configuration);
1369
- return {
1370
- url: toPathString(localVarUrlObj),
1371
- options: localVarRequestOptions,
1372
- };
1373
- }),
1374
- /**
1375
- * Delete release
1376
- * @summary Del Release
1377
- * @param {string} releaseId
1378
- * @param {*} [options] Override http request option.
1379
- * @throws {RequiredError}
1380
- */
1381
- delReleaseInternalReleasesReleaseIdDelete: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1382
- // verify required parameter 'releaseId' is not null or undefined
1383
- assertParamExists('delReleaseInternalReleasesReleaseIdDelete', 'releaseId', releaseId);
1384
- const localVarPath = `/internal/releases/{release_id}`
1385
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1386
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1387
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1388
- let baseOptions;
1389
- if (configuration) {
1390
- baseOptions = configuration.baseOptions;
1391
- }
1392
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1393
- const localVarHeaderParameter = {};
1394
- const localVarQueryParameter = {};
1395
- // authentication oauth2_password required
1396
- // oauth required
1397
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1398
- // authentication bearer_auth required
1399
- // http bearer authentication required
1400
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1401
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1402
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1403
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1404
- return {
1405
- url: toPathString(localVarUrlObj),
1406
- options: localVarRequestOptions,
1407
- };
1408
- }),
1409
- /**
1410
- * Delete a paste by ID. Requires admin permissions.
1411
- * @summary Delete Paste
1412
- * @param {string} pasteId
1413
- * @param {*} [options] Override http request option.
1414
- * @throws {RequiredError}
1415
- */
1416
- deletePasteInternalPastePasteIdDelete: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
1417
- // verify required parameter 'pasteId' is not null or undefined
1418
- assertParamExists('deletePasteInternalPastePasteIdDelete', 'pasteId', pasteId);
1419
- const localVarPath = `/internal/paste/{paste_id}`
1420
- .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
1421
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1422
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1423
- let baseOptions;
1424
- if (configuration) {
1425
- baseOptions = configuration.baseOptions;
1426
- }
1427
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1428
- const localVarHeaderParameter = {};
1429
- const localVarQueryParameter = {};
1430
- // authentication oauth2_password required
1431
- // oauth required
1432
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1433
- // authentication bearer_auth required
1434
- // http bearer authentication required
1435
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1436
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1437
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1438
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1439
- return {
1440
- url: toPathString(localVarUrlObj),
1441
- options: localVarRequestOptions,
1442
- };
1443
- }),
1444
- /**
1445
- *
1446
- * @summary Delete User
1447
- * @param {string} userId
1448
- * @param {*} [options] Override http request option.
1449
- * @throws {RequiredError}
1450
- */
1451
- deleteUserInternalUsersUserIdDelete: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
1452
- // verify required parameter 'userId' is not null or undefined
1453
- assertParamExists('deleteUserInternalUsersUserIdDelete', 'userId', userId);
1454
- const localVarPath = `/internal/users/{user_id}`
1455
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1456
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1457
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1458
- let baseOptions;
1459
- if (configuration) {
1460
- baseOptions = configuration.baseOptions;
1461
- }
1462
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1463
- const localVarHeaderParameter = {};
1464
- const localVarQueryParameter = {};
1465
- // authentication oauth2_password required
1466
- // oauth required
1467
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1468
- // authentication bearer_auth required
1469
- // http bearer authentication required
1470
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1471
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1472
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1473
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1474
- return {
1475
- url: toPathString(localVarUrlObj),
1476
- options: localVarRequestOptions,
1477
- };
1478
- }),
1479
- /**
1480
- * Edit Release information
1481
- * @summary Edit Release
1482
- * @param {string} releaseId
1483
- * @param {ReleaseUpdateBody} releaseUpdateBody
1484
- * @param {*} [options] Override http request option.
1485
- * @throws {RequiredError}
1486
- */
1487
- editReleaseInternalReleasesReleaseIdPut: (releaseId_1, releaseUpdateBody_1, ...args_1) => __awaiter(this, [releaseId_1, releaseUpdateBody_1, ...args_1], void 0, function* (releaseId, releaseUpdateBody, options = {}) {
1488
- // verify required parameter 'releaseId' is not null or undefined
1489
- assertParamExists('editReleaseInternalReleasesReleaseIdPut', 'releaseId', releaseId);
1490
- // verify required parameter 'releaseUpdateBody' is not null or undefined
1491
- assertParamExists('editReleaseInternalReleasesReleaseIdPut', 'releaseUpdateBody', releaseUpdateBody);
1492
- const localVarPath = `/internal/releases/{release_id}`
1493
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1494
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1495
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1496
- let baseOptions;
1497
- if (configuration) {
1498
- baseOptions = configuration.baseOptions;
1499
- }
1500
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1501
- const localVarHeaderParameter = {};
1502
- const localVarQueryParameter = {};
1503
- // authentication oauth2_password required
1504
- // oauth required
1505
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1506
- // authentication bearer_auth required
1507
- // http bearer authentication required
1508
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1509
- localVarHeaderParameter['Content-Type'] = 'application/json';
1510
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1511
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1512
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1513
- localVarRequestOptions.data = serializeDataIfNeeded(releaseUpdateBody, localVarRequestOptions, configuration);
1514
- return {
1515
- url: toPathString(localVarUrlObj),
1516
- options: localVarRequestOptions,
1517
- };
1518
- }),
1519
- /**
1520
- *
1521
- * @summary Get Device Info
1522
- * @param {string} deviceId
1523
- * @param {*} [options] Override http request option.
1524
- * @throws {RequiredError}
1525
- */
1526
- getDeviceInfoInternalDevicesDeviceIdGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
1527
- // verify required parameter 'deviceId' is not null or undefined
1528
- assertParamExists('getDeviceInfoInternalDevicesDeviceIdGet', 'deviceId', deviceId);
1529
- const localVarPath = `/internal/devices/{device_id}`
1530
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1531
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1532
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1533
- let baseOptions;
1534
- if (configuration) {
1535
- baseOptions = configuration.baseOptions;
1536
- }
1537
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1538
- const localVarHeaderParameter = {};
1539
- const localVarQueryParameter = {};
1540
- // authentication oauth2_password required
1541
- // oauth required
1542
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1543
- // authentication bearer_auth required
1544
- // http bearer authentication required
1545
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1546
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1547
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1548
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1549
- return {
1550
- url: toPathString(localVarUrlObj),
1551
- options: localVarRequestOptions,
1552
- };
1553
- }),
1554
- /**
1555
- * Get a paginated list of logs with optional filtering.
1556
- * @summary Get Logs
1557
- * @param {number} [page]
1558
- * @param {number} [perPage]
1559
- * @param {string | null} [deviceId]
1560
- * @param {string | null} [releaseId]
1561
- * @param {string | null} [userId]
1562
- * @param {boolean | null} [hideVerbose]
1563
- * @param {*} [options] Override http request option.
1564
- * @throws {RequiredError}
1565
- */
1566
- getLogsInternalLogsGet: (page_1, perPage_1, deviceId_1, releaseId_1, userId_1, hideVerbose_1, ...args_1) => __awaiter(this, [page_1, perPage_1, deviceId_1, releaseId_1, userId_1, hideVerbose_1, ...args_1], void 0, function* (page, perPage, deviceId, releaseId, userId, hideVerbose, options = {}) {
1567
- const localVarPath = `/internal/logs/`;
1568
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1569
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1570
- let baseOptions;
1571
- if (configuration) {
1572
- baseOptions = configuration.baseOptions;
1573
- }
1574
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1575
- const localVarHeaderParameter = {};
1576
- const localVarQueryParameter = {};
1577
- // authentication oauth2_password required
1578
- // oauth required
1579
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1580
- // authentication bearer_auth required
1581
- // http bearer authentication required
1582
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1583
- if (page !== undefined) {
1584
- localVarQueryParameter['page'] = page;
1585
- }
1586
- if (perPage !== undefined) {
1587
- localVarQueryParameter['per_page'] = perPage;
1588
- }
1589
- if (deviceId !== undefined) {
1590
- localVarQueryParameter['device_id'] = deviceId;
1591
- }
1592
- if (releaseId !== undefined) {
1593
- localVarQueryParameter['release_id'] = releaseId;
1594
- }
1595
- if (userId !== undefined) {
1596
- localVarQueryParameter['user_id'] = userId;
1597
- }
1598
- if (hideVerbose !== undefined) {
1599
- localVarQueryParameter['hide_verbose'] = hideVerbose;
1600
- }
1601
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1602
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1603
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1604
- return {
1605
- url: toPathString(localVarUrlObj),
1606
- options: localVarRequestOptions,
1607
- };
1608
- }),
1609
- /**
1610
- * Get release information
1611
- * @summary Get Release Info
1612
- * @param {string} releaseId
1613
- * @param {*} [options] Override http request option.
1614
- * @throws {RequiredError}
1615
- */
1616
- getReleaseInfoInternalReleasesReleaseIdGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1617
- // verify required parameter 'releaseId' is not null or undefined
1618
- assertParamExists('getReleaseInfoInternalReleasesReleaseIdGet', 'releaseId', releaseId);
1619
- const localVarPath = `/internal/releases/{release_id}`
1620
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1621
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1622
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1623
- let baseOptions;
1624
- if (configuration) {
1625
- baseOptions = configuration.baseOptions;
1626
- }
1627
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1628
- const localVarHeaderParameter = {};
1629
- const localVarQueryParameter = {};
1630
- // authentication oauth2_password required
1631
- // oauth required
1632
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1633
- // authentication bearer_auth required
1634
- // http bearer authentication required
1635
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1636
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1637
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1638
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1639
- return {
1640
- url: toPathString(localVarUrlObj),
1641
- options: localVarRequestOptions,
1642
- };
1643
- }),
1644
- /**
1645
- * Download release ZIP directly
1646
- * @summary Get Release Zip
1647
- * @param {string} releaseId
1648
- * @param {*} [options] Override http request option.
1649
- * @throws {RequiredError}
1650
- */
1651
- getReleaseZipInternalReleasesReleaseIdDlGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1652
- // verify required parameter 'releaseId' is not null or undefined
1653
- assertParamExists('getReleaseZipInternalReleasesReleaseIdDlGet', 'releaseId', releaseId);
1654
- const localVarPath = `/internal/releases/{release_id}/dl`
1655
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1656
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1657
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1658
- let baseOptions;
1659
- if (configuration) {
1660
- baseOptions = configuration.baseOptions;
1661
- }
1662
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1663
- const localVarHeaderParameter = {};
1664
- const localVarQueryParameter = {};
1665
- // authentication oauth2_password required
1666
- // oauth required
1667
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1668
- // authentication bearer_auth required
1669
- // http bearer authentication required
1670
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1671
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1672
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1673
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1674
- return {
1675
- url: toPathString(localVarUrlObj),
1676
- options: localVarRequestOptions,
1677
- };
1678
- }),
1679
- /**
1680
- *
1681
- * @summary Get User By Id
1682
- * @param {string} userId
1683
- * @param {*} [options] Override http request option.
1684
- * @throws {RequiredError}
1685
- */
1686
- getUserByIdInternalUsersUserIdGet: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
1687
- // verify required parameter 'userId' is not null or undefined
1688
- assertParamExists('getUserByIdInternalUsersUserIdGet', 'userId', userId);
1689
- const localVarPath = `/internal/users/{user_id}`
1690
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1691
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1692
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1693
- let baseOptions;
1694
- if (configuration) {
1695
- baseOptions = configuration.baseOptions;
1696
- }
1697
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1698
- const localVarHeaderParameter = {};
1699
- const localVarQueryParameter = {};
1700
- // authentication oauth2_password required
1701
- // oauth required
1702
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1703
- // authentication bearer_auth required
1704
- // http bearer authentication required
1705
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1706
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1707
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1708
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1709
- return {
1710
- url: toPathString(localVarUrlObj),
1711
- options: localVarRequestOptions,
1712
- };
1713
- }),
1714
- /**
1715
- *
1716
- * @summary List Users
1717
- * @param {*} [options] Override http request option.
1718
- * @throws {RequiredError}
1719
- */
1720
- listUsersInternalUsersGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1721
- const localVarPath = `/internal/users/`;
1722
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1723
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1724
- let baseOptions;
1725
- if (configuration) {
1726
- baseOptions = configuration.baseOptions;
1727
- }
1728
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1729
- const localVarHeaderParameter = {};
1730
- const localVarQueryParameter = {};
1731
- // authentication oauth2_password required
1732
- // oauth required
1733
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1734
- // authentication bearer_auth required
1735
- // http bearer authentication required
1736
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1737
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1738
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1739
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1740
- return {
1741
- url: toPathString(localVarUrlObj),
1742
- options: localVarRequestOptions,
1743
- };
1744
- }),
1745
- /**
1746
- * OAuth2 compatible token login, get an access token for future requests
1747
- * @summary Login Oauth
1748
- * @param {string} username
1749
- * @param {string} password
1750
- * @param {number} [minTime]
1751
- * @param {number} [maxTime]
1752
- * @param {string | null} [grantType]
1753
- * @param {string} [scope]
1754
- * @param {string | null} [clientId]
1755
- * @param {string | null} [clientSecret]
1756
- * @param {*} [options] Override http request option.
1757
- * @throws {RequiredError}
1758
- */
1759
- loginOauthAuthLoginPost: (username_1, password_1, minTime_1, maxTime_1, grantType_1, scope_1, clientId_1, clientSecret_1, ...args_1) => __awaiter(this, [username_1, password_1, minTime_1, maxTime_1, grantType_1, scope_1, clientId_1, clientSecret_1, ...args_1], void 0, function* (username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options = {}) {
1760
- // verify required parameter 'username' is not null or undefined
1761
- assertParamExists('loginOauthAuthLoginPost', 'username', username);
1762
- // verify required parameter 'password' is not null or undefined
1763
- assertParamExists('loginOauthAuthLoginPost', 'password', password);
1764
- const localVarPath = `/auth/login`;
1765
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1766
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1767
- let baseOptions;
1768
- if (configuration) {
1769
- baseOptions = configuration.baseOptions;
1770
- }
1771
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1772
- const localVarHeaderParameter = {};
1773
- const localVarQueryParameter = {};
1774
- const localVarFormParams = new URLSearchParams();
1775
- // authentication oauth2_password required
1776
- // oauth required
1777
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1778
- // authentication bearer_auth required
1779
- // http bearer authentication required
1780
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1781
- if (minTime !== undefined) {
1782
- localVarQueryParameter['min_time'] = minTime;
1783
- }
1784
- if (maxTime !== undefined) {
1785
- localVarQueryParameter['max_time'] = maxTime;
1786
- }
1787
- if (grantType !== undefined) {
1788
- localVarFormParams.set('grant_type', grantType);
1789
- }
1790
- if (username !== undefined) {
1791
- localVarFormParams.set('username', username);
1792
- }
1793
- if (password !== undefined) {
1794
- localVarFormParams.set('password', password);
1795
- }
1796
- if (scope !== undefined) {
1797
- localVarFormParams.set('scope', scope);
1798
- }
1799
- if (clientId !== undefined) {
1800
- localVarFormParams.set('client_id', clientId);
1801
- }
1802
- if (clientSecret !== undefined) {
1803
- localVarFormParams.set('client_secret', clientSecret);
1804
- }
1805
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1806
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1807
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1808
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1809
- localVarRequestOptions.data = localVarFormParams.toString();
1810
- return {
1811
- url: toPathString(localVarUrlObj),
1812
- options: localVarRequestOptions,
1813
- };
1814
- }),
1815
- /**
1816
- *
1817
- * @summary Logout
1818
- * @param {string} body
1819
- * @param {*} [options] Override http request option.
1820
- * @throws {RequiredError}
1821
- */
1822
- logoutAuthLogoutPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1823
- // verify required parameter 'body' is not null or undefined
1824
- assertParamExists('logoutAuthLogoutPost', 'body', body);
1825
- const localVarPath = `/auth/logout`;
1826
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1827
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1828
- let baseOptions;
1829
- if (configuration) {
1830
- baseOptions = configuration.baseOptions;
1831
- }
1832
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1833
- const localVarHeaderParameter = {};
1834
- const localVarQueryParameter = {};
1835
- // authentication oauth2_password required
1836
- // oauth required
1837
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1838
- // authentication bearer_auth required
1839
- // http bearer authentication required
1840
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1841
- localVarHeaderParameter['Content-Type'] = 'application/json';
1842
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1843
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1844
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1845
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1846
- return {
1847
- url: toPathString(localVarUrlObj),
1848
- options: localVarRequestOptions,
1849
- };
1850
- }),
1851
- /**
1852
- *
1853
- * @summary New Device
1854
- * @param {NewDeviceBody} newDeviceBody
1855
- * @param {*} [options] Override http request option.
1856
- * @throws {RequiredError}
1857
- */
1858
- newDeviceInternalDevicesPost: (newDeviceBody_1, ...args_1) => __awaiter(this, [newDeviceBody_1, ...args_1], void 0, function* (newDeviceBody, options = {}) {
1859
- // verify required parameter 'newDeviceBody' is not null or undefined
1860
- assertParamExists('newDeviceInternalDevicesPost', 'newDeviceBody', newDeviceBody);
1861
- const localVarPath = `/internal/devices/`;
1862
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1863
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1864
- let baseOptions;
1865
- if (configuration) {
1866
- baseOptions = configuration.baseOptions;
1867
- }
1868
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1869
- const localVarHeaderParameter = {};
1870
- const localVarQueryParameter = {};
1871
- // authentication oauth2_password required
1872
- // oauth required
1873
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1874
- // authentication bearer_auth required
1875
- // http bearer authentication required
1876
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1877
- localVarHeaderParameter['Content-Type'] = 'application/json';
1878
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1879
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1880
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1881
- localVarRequestOptions.data = serializeDataIfNeeded(newDeviceBody, localVarRequestOptions, configuration);
1882
- return {
1883
- url: toPathString(localVarUrlObj),
1884
- options: localVarRequestOptions,
1885
- };
1886
- }),
1887
- /**
1888
- *
1889
- * @summary New Release
1890
- * @param {string} deviceId
1891
- * @param {File} releaseZip
1892
- * @param {string} md5
1893
- * @param {Array<string>} changelog
1894
- * @param {Array<string>} [bugs]
1895
- * @param {string | null} [notes]
1896
- * @param {boolean} [force]
1897
- * @param {*} [options] Override http request option.
1898
- * @throws {RequiredError}
1899
- */
1900
- newReleaseInternalReleasesPost: (deviceId_1, releaseZip_1, md5_1, changelog_1, bugs_1, notes_1, force_1, ...args_1) => __awaiter(this, [deviceId_1, releaseZip_1, md5_1, changelog_1, bugs_1, notes_1, force_1, ...args_1], void 0, function* (deviceId, releaseZip, md5, changelog, bugs, notes, force, options = {}) {
1901
- // verify required parameter 'deviceId' is not null or undefined
1902
- assertParamExists('newReleaseInternalReleasesPost', 'deviceId', deviceId);
1903
- // verify required parameter 'releaseZip' is not null or undefined
1904
- assertParamExists('newReleaseInternalReleasesPost', 'releaseZip', releaseZip);
1905
- // verify required parameter 'md5' is not null or undefined
1906
- assertParamExists('newReleaseInternalReleasesPost', 'md5', md5);
1907
- // verify required parameter 'changelog' is not null or undefined
1908
- assertParamExists('newReleaseInternalReleasesPost', 'changelog', changelog);
1909
- const localVarPath = `/internal/releases/`;
1910
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1911
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1912
- let baseOptions;
1913
- if (configuration) {
1914
- baseOptions = configuration.baseOptions;
1915
- }
1916
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1917
- const localVarHeaderParameter = {};
1918
- const localVarQueryParameter = {};
1919
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1920
- // authentication oauth2_password required
1921
- // oauth required
1922
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1923
- // authentication bearer_auth required
1924
- // http bearer authentication required
1925
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1926
- if (deviceId !== undefined) {
1927
- localVarFormParams.append('device_id', deviceId);
1928
- }
1929
- if (releaseZip !== undefined) {
1930
- localVarFormParams.append('release_zip', releaseZip);
1931
- }
1932
- if (md5 !== undefined) {
1933
- localVarFormParams.append('md5', md5);
1934
- }
1935
- if (changelog) {
1936
- localVarFormParams.append('changelog', changelog.join(COLLECTION_FORMATS.csv));
1937
- }
1938
- if (bugs) {
1939
- localVarFormParams.append('bugs', bugs.join(COLLECTION_FORMATS.csv));
1940
- }
1941
- if (notes !== undefined) {
1942
- localVarFormParams.append('notes', notes);
1943
- }
1944
- if (force !== undefined) {
1945
- localVarFormParams.append('force', String(force));
1946
- }
1947
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1948
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1949
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1950
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1951
- localVarRequestOptions.data = localVarFormParams;
1952
- return {
1953
- url: toPathString(localVarUrlObj),
1954
- options: localVarRequestOptions,
1955
- };
1956
- }),
1957
- /**
1958
- *
1959
- * @summary Renew
1960
- * @param {string} body
1961
- * @param {*} [options] Override http request option.
1962
- * @throws {RequiredError}
1963
- */
1964
- renewAuthRenewPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1965
- // verify required parameter 'body' is not null or undefined
1966
- assertParamExists('renewAuthRenewPost', 'body', body);
1967
- const localVarPath = `/auth/renew`;
1968
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1969
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1970
- let baseOptions;
1971
- if (configuration) {
1972
- baseOptions = configuration.baseOptions;
1973
- }
1974
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1975
- const localVarHeaderParameter = {};
1976
- const localVarQueryParameter = {};
1977
- // authentication oauth2_password required
1978
- // oauth required
1979
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1980
- // authentication bearer_auth required
1981
- // http bearer authentication required
1982
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1983
- localVarHeaderParameter['Content-Type'] = 'application/json';
1984
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1985
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1986
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1987
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1988
- return {
1989
- url: toPathString(localVarUrlObj),
1990
- options: localVarRequestOptions,
1991
- };
1992
- }),
1993
- /**
1994
- *
1995
- * @summary Update Device
1996
- * @param {string} deviceId
1997
- * @param {DeviceUpdateBody} deviceUpdateBody
1998
- * @param {*} [options] Override http request option.
1999
- * @throws {RequiredError}
2000
- */
2001
- updateDeviceInternalDevicesDeviceIdPut: (deviceId_1, deviceUpdateBody_1, ...args_1) => __awaiter(this, [deviceId_1, deviceUpdateBody_1, ...args_1], void 0, function* (deviceId, deviceUpdateBody, options = {}) {
2002
- // verify required parameter 'deviceId' is not null or undefined
2003
- assertParamExists('updateDeviceInternalDevicesDeviceIdPut', 'deviceId', deviceId);
2004
- // verify required parameter 'deviceUpdateBody' is not null or undefined
2005
- assertParamExists('updateDeviceInternalDevicesDeviceIdPut', 'deviceUpdateBody', deviceUpdateBody);
2006
- const localVarPath = `/internal/devices/{device_id}`
2007
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
2008
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2009
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2010
- let baseOptions;
2011
- if (configuration) {
2012
- baseOptions = configuration.baseOptions;
2013
- }
2014
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2015
- const localVarHeaderParameter = {};
2016
- const localVarQueryParameter = {};
2017
- // authentication oauth2_password required
2018
- // oauth required
2019
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
2020
- // authentication bearer_auth required
2021
- // http bearer authentication required
2022
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2023
- localVarHeaderParameter['Content-Type'] = 'application/json';
2024
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2025
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2026
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2027
- localVarRequestOptions.data = serializeDataIfNeeded(deviceUpdateBody, localVarRequestOptions, configuration);
2028
- return {
2029
- url: toPathString(localVarUrlObj),
2030
- options: localVarRequestOptions,
2031
- };
2032
- }),
2033
- /**
2034
- * Update a paste by ID. Requires admin permissions.
2035
- * @summary Update Paste
2036
- * @param {string} pasteId
2037
- * @param {PasteInput} pasteInput
2038
- * @param {*} [options] Override http request option.
2039
- * @throws {RequiredError}
2040
- */
2041
- updatePasteInternalPastePasteIdPut: (pasteId_1, pasteInput_1, ...args_1) => __awaiter(this, [pasteId_1, pasteInput_1, ...args_1], void 0, function* (pasteId, pasteInput, options = {}) {
2042
- // verify required parameter 'pasteId' is not null or undefined
2043
- assertParamExists('updatePasteInternalPastePasteIdPut', 'pasteId', pasteId);
2044
- // verify required parameter 'pasteInput' is not null or undefined
2045
- assertParamExists('updatePasteInternalPastePasteIdPut', 'pasteInput', pasteInput);
2046
- const localVarPath = `/internal/paste/{paste_id}`
2047
- .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
2048
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2049
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2050
- let baseOptions;
2051
- if (configuration) {
2052
- baseOptions = configuration.baseOptions;
2053
- }
2054
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2055
- const localVarHeaderParameter = {};
2056
- const localVarQueryParameter = {};
2057
- // authentication oauth2_password required
2058
- // oauth required
2059
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
2060
- // authentication bearer_auth required
2061
- // http bearer authentication required
2062
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2063
- localVarHeaderParameter['Content-Type'] = 'application/json';
2064
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2065
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2066
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2067
- localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration);
2068
- return {
2069
- url: toPathString(localVarUrlObj),
2070
- options: localVarRequestOptions,
2071
- };
2072
- }),
2073
- /**
2074
- *
2075
- * @summary Update User
2076
- * @param {string} userId
2077
- * @param {UserUpdateBody} userUpdateBody
2078
- * @param {*} [options] Override http request option.
2079
- * @throws {RequiredError}
2080
- */
2081
- updateUserInternalUsersUserIdPut: (userId_1, userUpdateBody_1, ...args_1) => __awaiter(this, [userId_1, userUpdateBody_1, ...args_1], void 0, function* (userId, userUpdateBody, options = {}) {
2082
- // verify required parameter 'userId' is not null or undefined
2083
- assertParamExists('updateUserInternalUsersUserIdPut', 'userId', userId);
2084
- // verify required parameter 'userUpdateBody' is not null or undefined
2085
- assertParamExists('updateUserInternalUsersUserIdPut', 'userUpdateBody', userUpdateBody);
2086
- const localVarPath = `/internal/users/{user_id}`
2087
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
2088
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2089
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2090
- let baseOptions;
2091
- if (configuration) {
2092
- baseOptions = configuration.baseOptions;
2093
- }
2094
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2095
- const localVarHeaderParameter = {};
2096
- const localVarQueryParameter = {};
2097
- // authentication oauth2_password required
2098
- // oauth required
2099
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
2100
- // authentication bearer_auth required
2101
- // http bearer authentication required
2102
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2103
- localVarHeaderParameter['Content-Type'] = 'application/json';
2104
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2105
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2106
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2107
- localVarRequestOptions.data = serializeDataIfNeeded(userUpdateBody, localVarRequestOptions, configuration);
2108
- return {
2109
- url: toPathString(localVarUrlObj),
2110
- options: localVarRequestOptions,
2111
- };
2112
- }),
2113
- };
2114
- };
2115
- /**
2116
- * InternalApi - functional programming interface
2117
- * @export
2118
- */
2119
- export const InternalApiFp = function (configuration) {
2120
- const localVarAxiosParamCreator = InternalApiAxiosParamCreator(configuration);
2121
- return {
2122
- /**
2123
- * Change the password for a user.
2124
- * @summary Change Password
2125
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2126
- * @param {*} [options] Override http request option.
2127
- * @throws {RequiredError}
2128
- */
2129
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2130
- return __awaiter(this, void 0, void 0, function* () {
2131
- var _a, _b, _c;
2132
- const localVarAxiosArgs = yield localVarAxiosParamCreator.changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options);
2133
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2134
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.changePasswordProfileChangePasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2135
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2136
- });
2137
- },
2138
- /**
2139
- * Delete release
2140
- * @summary Del Release
2141
- * @param {string} releaseId
2142
- * @param {*} [options] Override http request option.
2143
- * @throws {RequiredError}
2144
- */
2145
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2146
- return __awaiter(this, void 0, void 0, function* () {
2147
- var _a, _b, _c;
2148
- const localVarAxiosArgs = yield localVarAxiosParamCreator.delReleaseInternalReleasesReleaseIdDelete(releaseId, options);
2149
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2150
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.delReleaseInternalReleasesReleaseIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2151
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2152
- });
2153
- },
2154
- /**
2155
- * Delete a paste by ID. Requires admin permissions.
2156
- * @summary Delete Paste
2157
- * @param {string} pasteId
2158
- * @param {*} [options] Override http request option.
2159
- * @throws {RequiredError}
2160
- */
2161
- deletePasteInternalPastePasteIdDelete(pasteId, options) {
2162
- return __awaiter(this, void 0, void 0, function* () {
2163
- var _a, _b, _c;
2164
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePasteInternalPastePasteIdDelete(pasteId, options);
2165
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2166
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.deletePasteInternalPastePasteIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2167
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2168
- });
2169
- },
2170
- /**
2171
- *
2172
- * @summary Delete User
2173
- * @param {string} userId
2174
- * @param {*} [options] Override http request option.
2175
- * @throws {RequiredError}
2176
- */
2177
- deleteUserInternalUsersUserIdDelete(userId, options) {
2178
- return __awaiter(this, void 0, void 0, function* () {
2179
- var _a, _b, _c;
2180
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserInternalUsersUserIdDelete(userId, options);
2181
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2182
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.deleteUserInternalUsersUserIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2183
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2184
- });
2185
- },
2186
- /**
2187
- * Edit Release information
2188
- * @summary Edit Release
2189
- * @param {string} releaseId
2190
- * @param {ReleaseUpdateBody} releaseUpdateBody
2191
- * @param {*} [options] Override http request option.
2192
- * @throws {RequiredError}
2193
- */
2194
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2195
- return __awaiter(this, void 0, void 0, function* () {
2196
- var _a, _b, _c;
2197
- const localVarAxiosArgs = yield localVarAxiosParamCreator.editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options);
2198
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2199
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.editReleaseInternalReleasesReleaseIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2200
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2201
- });
2202
- },
2203
- /**
2204
- *
2205
- * @summary Get Device Info
2206
- * @param {string} deviceId
2207
- * @param {*} [options] Override http request option.
2208
- * @throws {RequiredError}
2209
- */
2210
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2211
- return __awaiter(this, void 0, void 0, function* () {
2212
- var _a, _b, _c;
2213
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options);
2214
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2215
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getDeviceInfoInternalDevicesDeviceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2216
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2217
- });
2218
- },
2219
- /**
2220
- * Get a paginated list of logs with optional filtering.
2221
- * @summary Get Logs
2222
- * @param {number} [page]
2223
- * @param {number} [perPage]
2224
- * @param {string | null} [deviceId]
2225
- * @param {string | null} [releaseId]
2226
- * @param {string | null} [userId]
2227
- * @param {boolean | null} [hideVerbose]
2228
- * @param {*} [options] Override http request option.
2229
- * @throws {RequiredError}
2230
- */
2231
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2232
- return __awaiter(this, void 0, void 0, function* () {
2233
- var _a, _b, _c;
2234
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options);
2235
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2236
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getLogsInternalLogsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2237
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2238
- });
2239
- },
2240
- /**
2241
- * Get release information
2242
- * @summary Get Release Info
2243
- * @param {string} releaseId
2244
- * @param {*} [options] Override http request option.
2245
- * @throws {RequiredError}
2246
- */
2247
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2248
- return __awaiter(this, void 0, void 0, function* () {
2249
- var _a, _b, _c;
2250
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options);
2251
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2252
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getReleaseInfoInternalReleasesReleaseIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2253
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2254
- });
2255
- },
2256
- /**
2257
- * Download release ZIP directly
2258
- * @summary Get Release Zip
2259
- * @param {string} releaseId
2260
- * @param {*} [options] Override http request option.
2261
- * @throws {RequiredError}
2262
- */
2263
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2264
- return __awaiter(this, void 0, void 0, function* () {
2265
- var _a, _b, _c;
2266
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options);
2267
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2268
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getReleaseZipInternalReleasesReleaseIdDlGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2269
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2270
- });
2271
- },
2272
- /**
2273
- *
2274
- * @summary Get User By Id
2275
- * @param {string} userId
2276
- * @param {*} [options] Override http request option.
2277
- * @throws {RequiredError}
2278
- */
2279
- getUserByIdInternalUsersUserIdGet(userId, options) {
2280
- return __awaiter(this, void 0, void 0, function* () {
2281
- var _a, _b, _c;
2282
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserByIdInternalUsersUserIdGet(userId, options);
2283
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2284
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getUserByIdInternalUsersUserIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2285
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2286
- });
2287
- },
2288
- /**
2289
- *
2290
- * @summary List Users
2291
- * @param {*} [options] Override http request option.
2292
- * @throws {RequiredError}
2293
- */
2294
- listUsersInternalUsersGet(options) {
2295
- return __awaiter(this, void 0, void 0, function* () {
2296
- var _a, _b, _c;
2297
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsersInternalUsersGet(options);
2298
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2299
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.listUsersInternalUsersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2300
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2301
- });
2302
- },
2303
- /**
2304
- * OAuth2 compatible token login, get an access token for future requests
2305
- * @summary Login Oauth
2306
- * @param {string} username
2307
- * @param {string} password
2308
- * @param {number} [minTime]
2309
- * @param {number} [maxTime]
2310
- * @param {string | null} [grantType]
2311
- * @param {string} [scope]
2312
- * @param {string | null} [clientId]
2313
- * @param {string | null} [clientSecret]
2314
- * @param {*} [options] Override http request option.
2315
- * @throws {RequiredError}
2316
- */
2317
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2318
- return __awaiter(this, void 0, void 0, function* () {
2319
- var _a, _b, _c;
2320
- const localVarAxiosArgs = yield localVarAxiosParamCreator.loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options);
2321
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2322
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.loginOauthAuthLoginPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2323
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2324
- });
2325
- },
2326
- /**
2327
- *
2328
- * @summary Logout
2329
- * @param {string} body
2330
- * @param {*} [options] Override http request option.
2331
- * @throws {RequiredError}
2332
- */
2333
- logoutAuthLogoutPost(body, options) {
2334
- return __awaiter(this, void 0, void 0, function* () {
2335
- var _a, _b, _c;
2336
- const localVarAxiosArgs = yield localVarAxiosParamCreator.logoutAuthLogoutPost(body, options);
2337
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2338
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.logoutAuthLogoutPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2339
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2340
- });
2341
- },
2342
- /**
2343
- *
2344
- * @summary New Device
2345
- * @param {NewDeviceBody} newDeviceBody
2346
- * @param {*} [options] Override http request option.
2347
- * @throws {RequiredError}
2348
- */
2349
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2350
- return __awaiter(this, void 0, void 0, function* () {
2351
- var _a, _b, _c;
2352
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newDeviceInternalDevicesPost(newDeviceBody, options);
2353
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2354
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.newDeviceInternalDevicesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2355
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2356
- });
2357
- },
2358
- /**
2359
- *
2360
- * @summary New Release
2361
- * @param {string} deviceId
2362
- * @param {File} releaseZip
2363
- * @param {string} md5
2364
- * @param {Array<string>} changelog
2365
- * @param {Array<string>} [bugs]
2366
- * @param {string | null} [notes]
2367
- * @param {boolean} [force]
2368
- * @param {*} [options] Override http request option.
2369
- * @throws {RequiredError}
2370
- */
2371
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2372
- return __awaiter(this, void 0, void 0, function* () {
2373
- var _a, _b, _c;
2374
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options);
2375
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2376
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.newReleaseInternalReleasesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2377
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2378
- });
2379
- },
2380
- /**
2381
- *
2382
- * @summary Renew
2383
- * @param {string} body
2384
- * @param {*} [options] Override http request option.
2385
- * @throws {RequiredError}
2386
- */
2387
- renewAuthRenewPost(body, options) {
2388
- return __awaiter(this, void 0, void 0, function* () {
2389
- var _a, _b, _c;
2390
- const localVarAxiosArgs = yield localVarAxiosParamCreator.renewAuthRenewPost(body, options);
2391
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2392
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.renewAuthRenewPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2393
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2394
- });
2395
- },
2396
- /**
2397
- *
2398
- * @summary Update Device
2399
- * @param {string} deviceId
2400
- * @param {DeviceUpdateBody} deviceUpdateBody
2401
- * @param {*} [options] Override http request option.
2402
- * @throws {RequiredError}
2403
- */
2404
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2405
- return __awaiter(this, void 0, void 0, function* () {
2406
- var _a, _b, _c;
2407
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options);
2408
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2409
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.updateDeviceInternalDevicesDeviceIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2410
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2411
- });
2412
- },
2413
- /**
2414
- * Update a paste by ID. Requires admin permissions.
2415
- * @summary Update Paste
2416
- * @param {string} pasteId
2417
- * @param {PasteInput} pasteInput
2418
- * @param {*} [options] Override http request option.
2419
- * @throws {RequiredError}
2420
- */
2421
- updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
2422
- return __awaiter(this, void 0, void 0, function* () {
2423
- var _a, _b, _c;
2424
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options);
2425
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2426
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.updatePasteInternalPastePasteIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2427
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2428
- });
2429
- },
2430
- /**
2431
- *
2432
- * @summary Update User
2433
- * @param {string} userId
2434
- * @param {UserUpdateBody} userUpdateBody
2435
- * @param {*} [options] Override http request option.
2436
- * @throws {RequiredError}
2437
- */
2438
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2439
- return __awaiter(this, void 0, void 0, function* () {
2440
- var _a, _b, _c;
2441
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserInternalUsersUserIdPut(userId, userUpdateBody, options);
2442
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2443
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.updateUserInternalUsersUserIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2444
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2445
- });
2446
- },
2447
- };
2448
- };
2449
- /**
2450
- * InternalApi - factory interface
2451
- * @export
2452
- */
2453
- export const InternalApiFactory = function (configuration, basePath, axios) {
2454
- const localVarFp = InternalApiFp(configuration);
2455
- return {
2456
- /**
2457
- * Change the password for a user.
2458
- * @summary Change Password
2459
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2460
- * @param {*} [options] Override http request option.
2461
- * @throws {RequiredError}
2462
- */
2463
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2464
- return localVarFp.changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options).then((request) => request(axios, basePath));
2465
- },
2466
- /**
2467
- * Delete release
2468
- * @summary Del Release
2469
- * @param {string} releaseId
2470
- * @param {*} [options] Override http request option.
2471
- * @throws {RequiredError}
2472
- */
2473
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2474
- return localVarFp.delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(axios, basePath));
2475
- },
2476
- /**
2477
- * Delete a paste by ID. Requires admin permissions.
2478
- * @summary Delete Paste
2479
- * @param {string} pasteId
2480
- * @param {*} [options] Override http request option.
2481
- * @throws {RequiredError}
2482
- */
2483
- deletePasteInternalPastePasteIdDelete(pasteId, options) {
2484
- return localVarFp.deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(axios, basePath));
2485
- },
2486
- /**
2487
- *
2488
- * @summary Delete User
2489
- * @param {string} userId
2490
- * @param {*} [options] Override http request option.
2491
- * @throws {RequiredError}
2492
- */
2493
- deleteUserInternalUsersUserIdDelete(userId, options) {
2494
- return localVarFp.deleteUserInternalUsersUserIdDelete(userId, options).then((request) => request(axios, basePath));
2495
- },
2496
- /**
2497
- * Edit Release information
2498
- * @summary Edit Release
2499
- * @param {string} releaseId
2500
- * @param {ReleaseUpdateBody} releaseUpdateBody
2501
- * @param {*} [options] Override http request option.
2502
- * @throws {RequiredError}
2503
- */
2504
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2505
- return localVarFp.editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options).then((request) => request(axios, basePath));
2506
- },
2507
- /**
2508
- *
2509
- * @summary Get Device Info
2510
- * @param {string} deviceId
2511
- * @param {*} [options] Override http request option.
2512
- * @throws {RequiredError}
2513
- */
2514
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2515
- return localVarFp.getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options).then((request) => request(axios, basePath));
2516
- },
2517
- /**
2518
- * Get a paginated list of logs with optional filtering.
2519
- * @summary Get Logs
2520
- * @param {number} [page]
2521
- * @param {number} [perPage]
2522
- * @param {string | null} [deviceId]
2523
- * @param {string | null} [releaseId]
2524
- * @param {string | null} [userId]
2525
- * @param {boolean | null} [hideVerbose]
2526
- * @param {*} [options] Override http request option.
2527
- * @throws {RequiredError}
2528
- */
2529
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2530
- return localVarFp.getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options).then((request) => request(axios, basePath));
2531
- },
2532
- /**
2533
- * Get release information
2534
- * @summary Get Release Info
2535
- * @param {string} releaseId
2536
- * @param {*} [options] Override http request option.
2537
- * @throws {RequiredError}
2538
- */
2539
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2540
- return localVarFp.getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options).then((request) => request(axios, basePath));
2541
- },
2542
- /**
2543
- * Download release ZIP directly
2544
- * @summary Get Release Zip
2545
- * @param {string} releaseId
2546
- * @param {*} [options] Override http request option.
2547
- * @throws {RequiredError}
2548
- */
2549
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2550
- return localVarFp.getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options).then((request) => request(axios, basePath));
2551
- },
2552
- /**
2553
- *
2554
- * @summary Get User By Id
2555
- * @param {string} userId
2556
- * @param {*} [options] Override http request option.
2557
- * @throws {RequiredError}
2558
- */
2559
- getUserByIdInternalUsersUserIdGet(userId, options) {
2560
- return localVarFp.getUserByIdInternalUsersUserIdGet(userId, options).then((request) => request(axios, basePath));
2561
- },
2562
- /**
2563
- *
2564
- * @summary List Users
2565
- * @param {*} [options] Override http request option.
2566
- * @throws {RequiredError}
2567
- */
2568
- listUsersInternalUsersGet(options) {
2569
- return localVarFp.listUsersInternalUsersGet(options).then((request) => request(axios, basePath));
2570
- },
2571
- /**
2572
- * OAuth2 compatible token login, get an access token for future requests
2573
- * @summary Login Oauth
2574
- * @param {string} username
2575
- * @param {string} password
2576
- * @param {number} [minTime]
2577
- * @param {number} [maxTime]
2578
- * @param {string | null} [grantType]
2579
- * @param {string} [scope]
2580
- * @param {string | null} [clientId]
2581
- * @param {string | null} [clientSecret]
2582
- * @param {*} [options] Override http request option.
2583
- * @throws {RequiredError}
2584
- */
2585
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2586
- return localVarFp.loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options).then((request) => request(axios, basePath));
2587
- },
2588
- /**
2589
- *
2590
- * @summary Logout
2591
- * @param {string} body
2592
- * @param {*} [options] Override http request option.
2593
- * @throws {RequiredError}
2594
- */
2595
- logoutAuthLogoutPost(body, options) {
2596
- return localVarFp.logoutAuthLogoutPost(body, options).then((request) => request(axios, basePath));
2597
- },
2598
- /**
2599
- *
2600
- * @summary New Device
2601
- * @param {NewDeviceBody} newDeviceBody
2602
- * @param {*} [options] Override http request option.
2603
- * @throws {RequiredError}
2604
- */
2605
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2606
- return localVarFp.newDeviceInternalDevicesPost(newDeviceBody, options).then((request) => request(axios, basePath));
2607
- },
2608
- /**
2609
- *
2610
- * @summary New Release
2611
- * @param {string} deviceId
2612
- * @param {File} releaseZip
2613
- * @param {string} md5
2614
- * @param {Array<string>} changelog
2615
- * @param {Array<string>} [bugs]
2616
- * @param {string | null} [notes]
2617
- * @param {boolean} [force]
2618
- * @param {*} [options] Override http request option.
2619
- * @throws {RequiredError}
2620
- */
2621
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2622
- return localVarFp.newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options).then((request) => request(axios, basePath));
2623
- },
2624
- /**
2625
- *
2626
- * @summary Renew
2627
- * @param {string} body
2628
- * @param {*} [options] Override http request option.
2629
- * @throws {RequiredError}
2630
- */
2631
- renewAuthRenewPost(body, options) {
2632
- return localVarFp.renewAuthRenewPost(body, options).then((request) => request(axios, basePath));
2633
- },
2634
- /**
2635
- *
2636
- * @summary Update Device
2637
- * @param {string} deviceId
2638
- * @param {DeviceUpdateBody} deviceUpdateBody
2639
- * @param {*} [options] Override http request option.
2640
- * @throws {RequiredError}
2641
- */
2642
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2643
- return localVarFp.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(axios, basePath));
2644
- },
2645
- /**
2646
- * Update a paste by ID. Requires admin permissions.
2647
- * @summary Update Paste
2648
- * @param {string} pasteId
2649
- * @param {PasteInput} pasteInput
2650
- * @param {*} [options] Override http request option.
2651
- * @throws {RequiredError}
2652
- */
2653
- updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
2654
- return localVarFp.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(axios, basePath));
2655
- },
2656
- /**
2657
- *
2658
- * @summary Update User
2659
- * @param {string} userId
2660
- * @param {UserUpdateBody} userUpdateBody
2661
- * @param {*} [options] Override http request option.
2662
- * @throws {RequiredError}
2663
- */
2664
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2665
- return localVarFp.updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(axios, basePath));
2666
- },
2667
- };
2668
- };
2669
- /**
2670
- * InternalApi - object-oriented interface
2671
- * @export
2672
- * @class InternalApi
2673
- * @extends {BaseAPI}
2674
- */
2675
- export class InternalApi extends BaseAPI {
2676
- /**
2677
- * Change the password for a user.
2678
- * @summary Change Password
2679
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2680
- * @param {*} [options] Override http request option.
2681
- * @throws {RequiredError}
2682
- * @memberof InternalApi
2683
- */
2684
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2685
- return InternalApiFp(this.configuration).changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options).then((request) => request(this.axios, this.basePath));
2686
- }
2687
- /**
2688
- * Delete release
2689
- * @summary Del Release
2690
- * @param {string} releaseId
2691
- * @param {*} [options] Override http request option.
2692
- * @throws {RequiredError}
2693
- * @memberof InternalApi
2694
- */
2695
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2696
- return InternalApiFp(this.configuration).delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(this.axios, this.basePath));
2697
- }
2698
- /**
2699
- * Delete a paste by ID. Requires admin permissions.
2700
- * @summary Delete Paste
2701
- * @param {string} pasteId
2702
- * @param {*} [options] Override http request option.
2703
- * @throws {RequiredError}
2704
- * @memberof InternalApi
2705
- */
2706
- deletePasteInternalPastePasteIdDelete(pasteId, options) {
2707
- return InternalApiFp(this.configuration).deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(this.axios, this.basePath));
2708
- }
2709
- /**
2710
- *
2711
- * @summary Delete User
2712
- * @param {string} userId
2713
- * @param {*} [options] Override http request option.
2714
- * @throws {RequiredError}
2715
- * @memberof InternalApi
2716
- */
2717
- deleteUserInternalUsersUserIdDelete(userId, options) {
2718
- return InternalApiFp(this.configuration).deleteUserInternalUsersUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
2719
- }
2720
- /**
2721
- * Edit Release information
2722
- * @summary Edit Release
2723
- * @param {string} releaseId
2724
- * @param {ReleaseUpdateBody} releaseUpdateBody
2725
- * @param {*} [options] Override http request option.
2726
- * @throws {RequiredError}
2727
- * @memberof InternalApi
2728
- */
2729
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2730
- return InternalApiFp(this.configuration).editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options).then((request) => request(this.axios, this.basePath));
2731
- }
2732
- /**
2733
- *
2734
- * @summary Get Device Info
2735
- * @param {string} deviceId
2736
- * @param {*} [options] Override http request option.
2737
- * @throws {RequiredError}
2738
- * @memberof InternalApi
2739
- */
2740
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2741
- return InternalApiFp(this.configuration).getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options).then((request) => request(this.axios, this.basePath));
2742
- }
2743
- /**
2744
- * Get a paginated list of logs with optional filtering.
2745
- * @summary Get Logs
2746
- * @param {number} [page]
2747
- * @param {number} [perPage]
2748
- * @param {string | null} [deviceId]
2749
- * @param {string | null} [releaseId]
2750
- * @param {string | null} [userId]
2751
- * @param {boolean | null} [hideVerbose]
2752
- * @param {*} [options] Override http request option.
2753
- * @throws {RequiredError}
2754
- * @memberof InternalApi
2755
- */
2756
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2757
- return InternalApiFp(this.configuration).getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options).then((request) => request(this.axios, this.basePath));
2758
- }
2759
- /**
2760
- * Get release information
2761
- * @summary Get Release Info
2762
- * @param {string} releaseId
2763
- * @param {*} [options] Override http request option.
2764
- * @throws {RequiredError}
2765
- * @memberof InternalApi
2766
- */
2767
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2768
- return InternalApiFp(this.configuration).getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options).then((request) => request(this.axios, this.basePath));
2769
- }
2770
- /**
2771
- * Download release ZIP directly
2772
- * @summary Get Release Zip
2773
- * @param {string} releaseId
2774
- * @param {*} [options] Override http request option.
2775
- * @throws {RequiredError}
2776
- * @memberof InternalApi
2777
- */
2778
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2779
- return InternalApiFp(this.configuration).getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options).then((request) => request(this.axios, this.basePath));
2780
- }
2781
- /**
2782
- *
2783
- * @summary Get User By Id
2784
- * @param {string} userId
2785
- * @param {*} [options] Override http request option.
2786
- * @throws {RequiredError}
2787
- * @memberof InternalApi
2788
- */
2789
- getUserByIdInternalUsersUserIdGet(userId, options) {
2790
- return InternalApiFp(this.configuration).getUserByIdInternalUsersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
2791
- }
2792
- /**
2793
- *
2794
- * @summary List Users
2795
- * @param {*} [options] Override http request option.
2796
- * @throws {RequiredError}
2797
- * @memberof InternalApi
2798
- */
2799
- listUsersInternalUsersGet(options) {
2800
- return InternalApiFp(this.configuration).listUsersInternalUsersGet(options).then((request) => request(this.axios, this.basePath));
2801
- }
2802
- /**
2803
- * OAuth2 compatible token login, get an access token for future requests
2804
- * @summary Login Oauth
2805
- * @param {string} username
2806
- * @param {string} password
2807
- * @param {number} [minTime]
2808
- * @param {number} [maxTime]
2809
- * @param {string | null} [grantType]
2810
- * @param {string} [scope]
2811
- * @param {string | null} [clientId]
2812
- * @param {string | null} [clientSecret]
2813
- * @param {*} [options] Override http request option.
2814
- * @throws {RequiredError}
2815
- * @memberof InternalApi
2816
- */
2817
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2818
- return InternalApiFp(this.configuration).loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options).then((request) => request(this.axios, this.basePath));
2819
- }
2820
- /**
2821
- *
2822
- * @summary Logout
2823
- * @param {string} body
2824
- * @param {*} [options] Override http request option.
2825
- * @throws {RequiredError}
2826
- * @memberof InternalApi
2827
- */
2828
- logoutAuthLogoutPost(body, options) {
2829
- return InternalApiFp(this.configuration).logoutAuthLogoutPost(body, options).then((request) => request(this.axios, this.basePath));
2830
- }
2831
- /**
2832
- *
2833
- * @summary New Device
2834
- * @param {NewDeviceBody} newDeviceBody
2835
- * @param {*} [options] Override http request option.
2836
- * @throws {RequiredError}
2837
- * @memberof InternalApi
2838
- */
2839
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2840
- return InternalApiFp(this.configuration).newDeviceInternalDevicesPost(newDeviceBody, options).then((request) => request(this.axios, this.basePath));
2841
- }
2842
- /**
2843
- *
2844
- * @summary New Release
2845
- * @param {string} deviceId
2846
- * @param {File} releaseZip
2847
- * @param {string} md5
2848
- * @param {Array<string>} changelog
2849
- * @param {Array<string>} [bugs]
2850
- * @param {string | null} [notes]
2851
- * @param {boolean} [force]
2852
- * @param {*} [options] Override http request option.
2853
- * @throws {RequiredError}
2854
- * @memberof InternalApi
2855
- */
2856
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2857
- return InternalApiFp(this.configuration).newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options).then((request) => request(this.axios, this.basePath));
2858
- }
2859
- /**
2860
- *
2861
- * @summary Renew
2862
- * @param {string} body
2863
- * @param {*} [options] Override http request option.
2864
- * @throws {RequiredError}
2865
- * @memberof InternalApi
2866
- */
2867
- renewAuthRenewPost(body, options) {
2868
- return InternalApiFp(this.configuration).renewAuthRenewPost(body, options).then((request) => request(this.axios, this.basePath));
2869
- }
2870
- /**
2871
- *
2872
- * @summary Update Device
2873
- * @param {string} deviceId
2874
- * @param {DeviceUpdateBody} deviceUpdateBody
2875
- * @param {*} [options] Override http request option.
2876
- * @throws {RequiredError}
2877
- * @memberof InternalApi
2878
- */
2879
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2880
- return InternalApiFp(this.configuration).updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(this.axios, this.basePath));
2881
- }
2882
- /**
2883
- * Update a paste by ID. Requires admin permissions.
2884
- * @summary Update Paste
2885
- * @param {string} pasteId
2886
- * @param {PasteInput} pasteInput
2887
- * @param {*} [options] Override http request option.
2888
- * @throws {RequiredError}
2889
- * @memberof InternalApi
2890
- */
2891
- updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
2892
- return InternalApiFp(this.configuration).updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(this.axios, this.basePath));
2893
- }
2894
- /**
2895
- *
2896
- * @summary Update User
2897
- * @param {string} userId
2898
- * @param {UserUpdateBody} userUpdateBody
2899
- * @param {*} [options] Override http request option.
2900
- * @throws {RequiredError}
2901
- * @memberof InternalApi
2902
- */
2903
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2904
- return InternalApiFp(this.configuration).updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(this.axios, this.basePath));
2905
- }
2906
- }
2907
- /**
2908
- * PasteApi - axios parameter creator
2909
- * @export
2910
- */
2911
- export const PasteApiAxiosParamCreator = function (configuration) {
2912
- return {
2913
- /**
2914
- * Create a new paste.
2915
- * @summary Create Paste
2916
- * @param {PasteInput} pasteInput
2917
- * @param {*} [options] Override http request option.
2918
- * @throws {RequiredError}
2919
- */
2920
- createPastePastePost: (pasteInput_1, ...args_1) => __awaiter(this, [pasteInput_1, ...args_1], void 0, function* (pasteInput, options = {}) {
2921
- // verify required parameter 'pasteInput' is not null or undefined
2922
- assertParamExists('createPastePastePost', 'pasteInput', pasteInput);
2923
- const localVarPath = `/paste/`;
2924
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2925
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2926
- let baseOptions;
2927
- if (configuration) {
2928
- baseOptions = configuration.baseOptions;
2929
- }
2930
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2931
- const localVarHeaderParameter = {};
2932
- const localVarQueryParameter = {};
2933
- localVarHeaderParameter['Content-Type'] = 'application/json';
2934
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2935
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2936
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2937
- localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration);
2938
- return {
2939
- url: toPathString(localVarUrlObj),
2940
- options: localVarRequestOptions,
2941
- };
2942
- }),
2943
- /**
2944
- * Get a paste by ID.
2945
- * @summary Get Paste
2946
- * @param {string} pasteId
2947
- * @param {*} [options] Override http request option.
2948
- * @throws {RequiredError}
2949
- */
2950
- getPastePastePasteIdGet: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
2951
- // verify required parameter 'pasteId' is not null or undefined
2952
- assertParamExists('getPastePastePasteIdGet', 'pasteId', pasteId);
2953
- const localVarPath = `/paste/{paste_id}`
2954
- .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
2955
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2956
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2957
- let baseOptions;
2958
- if (configuration) {
2959
- baseOptions = configuration.baseOptions;
2960
- }
2961
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2962
- const localVarHeaderParameter = {};
2963
- const localVarQueryParameter = {};
2964
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2965
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2966
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2967
- return {
2968
- url: toPathString(localVarUrlObj),
2969
- options: localVarRequestOptions,
2970
- };
2971
- }),
2972
- };
2973
- };
2974
- /**
2975
- * PasteApi - functional programming interface
2976
- * @export
2977
- */
2978
- export const PasteApiFp = function (configuration) {
2979
- const localVarAxiosParamCreator = PasteApiAxiosParamCreator(configuration);
2980
- return {
2981
- /**
2982
- * Create a new paste.
2983
- * @summary Create Paste
2984
- * @param {PasteInput} pasteInput
2985
- * @param {*} [options] Override http request option.
2986
- * @throws {RequiredError}
2987
- */
2988
- createPastePastePost(pasteInput, options) {
2989
- return __awaiter(this, void 0, void 0, function* () {
2990
- var _a, _b, _c;
2991
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
2992
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2993
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PasteApi.createPastePastePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2994
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2995
- });
2996
- },
2997
- /**
2998
- * Get a paste by ID.
2999
- * @summary Get Paste
3000
- * @param {string} pasteId
3001
- * @param {*} [options] Override http request option.
3002
- * @throws {RequiredError}
3003
- */
3004
- getPastePastePasteIdGet(pasteId, options) {
3005
- return __awaiter(this, void 0, void 0, function* () {
3006
- var _a, _b, _c;
3007
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
3008
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3009
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PasteApi.getPastePastePasteIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3010
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3011
- });
3012
- },
3013
- };
3014
- };
3015
- /**
3016
- * PasteApi - factory interface
3017
- * @export
3018
- */
3019
- export const PasteApiFactory = function (configuration, basePath, axios) {
3020
- const localVarFp = PasteApiFp(configuration);
3021
- return {
3022
- /**
3023
- * Create a new paste.
3024
- * @summary Create Paste
3025
- * @param {PasteInput} pasteInput
3026
- * @param {*} [options] Override http request option.
3027
- * @throws {RequiredError}
3028
- */
3029
- createPastePastePost(pasteInput, options) {
3030
- return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
3031
- },
3032
- /**
3033
- * Get a paste by ID.
3034
- * @summary Get Paste
3035
- * @param {string} pasteId
3036
- * @param {*} [options] Override http request option.
3037
- * @throws {RequiredError}
3038
- */
3039
- getPastePastePasteIdGet(pasteId, options) {
3040
- return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
3041
- },
3042
- };
3043
- };
3044
- /**
3045
- * PasteApi - object-oriented interface
3046
- * @export
3047
- * @class PasteApi
3048
- * @extends {BaseAPI}
3049
- */
3050
- export class PasteApi extends BaseAPI {
3051
- /**
3052
- * Create a new paste.
3053
- * @summary Create Paste
3054
- * @param {PasteInput} pasteInput
3055
- * @param {*} [options] Override http request option.
3056
- * @throws {RequiredError}
3057
- * @memberof PasteApi
3058
- */
3059
- createPastePastePost(pasteInput, options) {
3060
- return PasteApiFp(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
3061
- }
3062
- /**
3063
- * Get a paste by ID.
3064
- * @summary Get Paste
3065
- * @param {string} pasteId
3066
- * @param {*} [options] Override http request option.
3067
- * @throws {RequiredError}
3068
- * @memberof PasteApi
3069
- */
3070
- getPastePastePasteIdGet(pasteId, options) {
3071
- return PasteApiFp(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
3072
- }
3073
- }
3074
- /**
3075
- * ReleaseApi - axios parameter creator
3076
- * @export
3077
- */
3078
- export const ReleaseApiAxiosParamCreator = function (configuration) {
3079
- return {
3080
- /**
3081
- * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
3082
- * @summary Get Release
3083
- * @param {string | null} [releaseId] Release ID
3084
- * @param {string | null} [id] Release ID (deprecated)
3085
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
3086
- * @param {string | null} [filename]
3087
- * @param {*} [options] Override http request option.
3088
- * @throws {RequiredError}
3089
- */
3090
- getRelease: (releaseId_1, id_1, buildId_1, filename_1, ...args_1) => __awaiter(this, [releaseId_1, id_1, buildId_1, filename_1, ...args_1], void 0, function* (releaseId, id, buildId, filename, options = {}) {
3091
- const localVarPath = `/releases/get`;
3092
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3093
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3094
- let baseOptions;
3095
- if (configuration) {
3096
- baseOptions = configuration.baseOptions;
3097
- }
3098
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3099
- const localVarHeaderParameter = {};
3100
- const localVarQueryParameter = {};
3101
- if (releaseId !== undefined) {
3102
- localVarQueryParameter['release_id'] = releaseId;
3103
- }
3104
- if (id !== undefined) {
3105
- localVarQueryParameter['_id'] = id;
3106
- }
3107
- if (buildId !== undefined) {
3108
- localVarQueryParameter['build_id'] = buildId;
3109
- }
3110
- if (filename !== undefined) {
3111
- localVarQueryParameter['filename'] = filename;
3112
- }
3113
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3114
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3115
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3116
- return {
3117
- url: toPathString(localVarUrlObj),
3118
- options: localVarRequestOptions,
3119
- };
3120
- }),
3121
- /**
3122
- * Gets release information using the release ID, nothing to discuss really.
3123
- * @summary Get Release Short
3124
- * @param {string} releaseId
3125
- * @param {*} [options] Override http request option.
3126
- * @deprecated
3127
- * @throws {RequiredError}
3128
- */
3129
- getReleaseDeprecated: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
3130
- // verify required parameter 'releaseId' is not null or undefined
3131
- assertParamExists('getReleaseDeprecated', 'releaseId', releaseId);
3132
- const localVarPath = `/releases/{release_id}`
3133
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
3134
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3135
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3136
- let baseOptions;
3137
- if (configuration) {
3138
- baseOptions = configuration.baseOptions;
3139
- }
3140
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3141
- const localVarHeaderParameter = {};
3142
- const localVarQueryParameter = {};
3143
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3144
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3145
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3146
- return {
3147
- url: toPathString(localVarUrlObj),
3148
- options: localVarRequestOptions,
3149
- };
3150
- }),
3151
- /**
3152
- * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
3153
- * @summary Get Releases
3154
- * @param {Array<string>} [id] Filter by Release IDs
3155
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
3156
- * @param {Array<string>} [buildId] Filter by Build IDs
3157
- * @param {Array<string>} [deviceId] Filter by Device IDs
3158
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
3159
- * @param {Array<string>} [codename] Filter by device codenames
3160
- * @param {Array<string>} [version] Filter by release version
3161
- * @param {Array<ReleaseType>} [type] Filter by release type
3162
- * @param {boolean | null} [archived] Filter by the archived status
3163
- * @param {boolean | null} [freezed] Filter by the freezed status
3164
- * @param {string | null} [afterReleaseId] Show releases after the provided one
3165
- * @param {number | null} [afterDate] Show releases after the provided timestamp
3166
- * @param {ReleasesSort} [sort] Sort mode
3167
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
3168
- * @param {number | null} [skip] Skip query results
3169
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3170
- * @param {*} [options] Override http request option.
3171
- * @throws {RequiredError}
3172
- */
3173
- getReleases: (id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options = {}) {
3174
- const localVarPath = `/releases/`;
3175
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3176
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3177
- let baseOptions;
3178
- if (configuration) {
3179
- baseOptions = configuration.baseOptions;
3180
- }
3181
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3182
- const localVarHeaderParameter = {};
3183
- const localVarQueryParameter = {};
3184
- if (id) {
3185
- localVarQueryParameter['id'] = id;
3186
- }
3187
- if (id2) {
3188
- localVarQueryParameter['_id'] = id2;
3189
- }
3190
- if (buildId) {
3191
- localVarQueryParameter['build_id'] = buildId;
3192
- }
3193
- if (deviceId) {
3194
- localVarQueryParameter['device_id'] = deviceId;
3195
- }
3196
- if (maintainerId) {
3197
- localVarQueryParameter['maintainer_id'] = maintainerId;
3198
- }
3199
- if (codename) {
3200
- localVarQueryParameter['codename'] = codename;
3201
- }
3202
- if (version) {
3203
- localVarQueryParameter['version'] = version;
3204
- }
3205
- if (type) {
3206
- localVarQueryParameter['type'] = type;
3207
- }
3208
- if (archived !== undefined) {
3209
- localVarQueryParameter['archived'] = archived;
3210
- }
3211
- if (freezed !== undefined) {
3212
- localVarQueryParameter['freezed'] = freezed;
3213
- }
3214
- if (afterReleaseId !== undefined) {
3215
- localVarQueryParameter['after_release_id'] = afterReleaseId;
3216
- }
3217
- if (afterDate !== undefined) {
3218
- localVarQueryParameter['after_date'] = afterDate;
3219
- }
3220
- if (sort !== undefined) {
3221
- localVarQueryParameter['sort'] = sort;
3222
- }
3223
- if (group !== undefined) {
3224
- localVarQueryParameter['group'] = group;
3225
- }
3226
- if (skip !== undefined) {
3227
- localVarQueryParameter['skip'] = skip;
3228
- }
3229
- if (limit !== undefined) {
3230
- localVarQueryParameter['limit'] = limit;
3231
- }
3232
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3233
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3234
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3235
- return {
3236
- url: toPathString(localVarUrlObj),
3237
- options: localVarRequestOptions,
3238
- };
3239
- }),
3240
- /**
3241
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
3242
- * @summary Get Updates
3243
- * @param {string} lastKnownId
3244
- * @param {Array<string>} [deviceId] Filter by device ID
3245
- * @param {Array<ReleaseType>} [type] Filter by release type
3246
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3247
- * @param {number | null} [skip] Skip query results
3248
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3249
- * @param {*} [options] Override http request option.
3250
- * @deprecated
3251
- * @throws {RequiredError}
3252
- */
3253
- getUpdatesDeprecated: (lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1) => __awaiter(this, [lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1], void 0, function* (lastKnownId, deviceId, type, releaseType, skip, limit, options = {}) {
3254
- // verify required parameter 'lastKnownId' is not null or undefined
3255
- assertParamExists('getUpdatesDeprecated', 'lastKnownId', lastKnownId);
3256
- const localVarPath = `/updates/{last_known_id}`
3257
- .replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
3258
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3259
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3260
- let baseOptions;
3261
- if (configuration) {
3262
- baseOptions = configuration.baseOptions;
3263
- }
3264
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3265
- const localVarHeaderParameter = {};
3266
- const localVarQueryParameter = {};
3267
- if (deviceId) {
3268
- localVarQueryParameter['device_id'] = deviceId;
3269
- }
3270
- if (type) {
3271
- localVarQueryParameter['type'] = type;
3272
- }
3273
- if (releaseType) {
3274
- localVarQueryParameter['release_type'] = releaseType;
3275
- }
3276
- if (skip !== undefined) {
3277
- localVarQueryParameter['skip'] = skip;
3278
- }
3279
- if (limit !== undefined) {
3280
- localVarQueryParameter['limit'] = limit;
3281
- }
3282
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3283
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3284
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3285
- return {
3286
- url: toPathString(localVarUrlObj),
3287
- options: localVarRequestOptions,
3288
- };
3289
- }),
3290
- };
3291
- };
3292
- /**
3293
- * ReleaseApi - functional programming interface
3294
- * @export
3295
- */
3296
- export const ReleaseApiFp = function (configuration) {
3297
- const localVarAxiosParamCreator = ReleaseApiAxiosParamCreator(configuration);
3298
- return {
3299
- /**
3300
- * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
3301
- * @summary Get Release
3302
- * @param {string | null} [releaseId] Release ID
3303
- * @param {string | null} [id] Release ID (deprecated)
3304
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
3305
- * @param {string | null} [filename]
3306
- * @param {*} [options] Override http request option.
3307
- * @throws {RequiredError}
3308
- */
3309
- getRelease(releaseId, id, buildId, filename, options) {
3310
- return __awaiter(this, void 0, void 0, function* () {
3311
- var _a, _b, _c;
3312
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRelease(releaseId, id, buildId, filename, options);
3313
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3314
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getRelease']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3315
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3316
- });
3317
- },
3318
- /**
3319
- * Gets release information using the release ID, nothing to discuss really.
3320
- * @summary Get Release Short
3321
- * @param {string} releaseId
3322
- * @param {*} [options] Override http request option.
3323
- * @deprecated
3324
- * @throws {RequiredError}
3325
- */
3326
- getReleaseDeprecated(releaseId, options) {
3327
- return __awaiter(this, void 0, void 0, function* () {
3328
- var _a, _b, _c;
3329
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseDeprecated(releaseId, options);
3330
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3331
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3332
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3333
- });
3334
- },
3335
- /**
3336
- * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
3337
- * @summary Get Releases
3338
- * @param {Array<string>} [id] Filter by Release IDs
3339
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
3340
- * @param {Array<string>} [buildId] Filter by Build IDs
3341
- * @param {Array<string>} [deviceId] Filter by Device IDs
3342
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
3343
- * @param {Array<string>} [codename] Filter by device codenames
3344
- * @param {Array<string>} [version] Filter by release version
3345
- * @param {Array<ReleaseType>} [type] Filter by release type
3346
- * @param {boolean | null} [archived] Filter by the archived status
3347
- * @param {boolean | null} [freezed] Filter by the freezed status
3348
- * @param {string | null} [afterReleaseId] Show releases after the provided one
3349
- * @param {number | null} [afterDate] Show releases after the provided timestamp
3350
- * @param {ReleasesSort} [sort] Sort mode
3351
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
3352
- * @param {number | null} [skip] Skip query results
3353
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3354
- * @param {*} [options] Override http request option.
3355
- * @throws {RequiredError}
3356
- */
3357
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
3358
- return __awaiter(this, void 0, void 0, function* () {
3359
- var _a, _b, _c;
3360
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
3361
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3362
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3363
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3364
- });
3365
- },
3366
- /**
3367
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
3368
- * @summary Get Updates
3369
- * @param {string} lastKnownId
3370
- * @param {Array<string>} [deviceId] Filter by device ID
3371
- * @param {Array<ReleaseType>} [type] Filter by release type
3372
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3373
- * @param {number | null} [skip] Skip query results
3374
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3375
- * @param {*} [options] Override http request option.
3376
- * @deprecated
3377
- * @throws {RequiredError}
3378
- */
3379
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3380
- return __awaiter(this, void 0, void 0, function* () {
3381
- var _a, _b, _c;
3382
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options);
3383
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3384
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getUpdatesDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3385
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3386
- });
3387
- },
3388
- };
3389
- };
3390
- /**
3391
- * ReleaseApi - factory interface
3392
- * @export
3393
- */
3394
- export const ReleaseApiFactory = function (configuration, basePath, axios) {
3395
- const localVarFp = ReleaseApiFp(configuration);
3396
- return {
3397
- /**
3398
- * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
3399
- * @summary Get Release
3400
- * @param {string | null} [releaseId] Release ID
3401
- * @param {string | null} [id] Release ID (deprecated)
3402
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
3403
- * @param {string | null} [filename]
3404
- * @param {*} [options] Override http request option.
3405
- * @throws {RequiredError}
3406
- */
3407
- getRelease(releaseId, id, buildId, filename, options) {
3408
- return localVarFp.getRelease(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
3409
- },
3410
- /**
3411
- * Gets release information using the release ID, nothing to discuss really.
3412
- * @summary Get Release Short
3413
- * @param {string} releaseId
3414
- * @param {*} [options] Override http request option.
3415
- * @deprecated
3416
- * @throws {RequiredError}
3417
- */
3418
- getReleaseDeprecated(releaseId, options) {
3419
- return localVarFp.getReleaseDeprecated(releaseId, options).then((request) => request(axios, basePath));
3420
- },
3421
- /**
3422
- * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
3423
- * @summary Get Releases
3424
- * @param {Array<string>} [id] Filter by Release IDs
3425
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
3426
- * @param {Array<string>} [buildId] Filter by Build IDs
3427
- * @param {Array<string>} [deviceId] Filter by Device IDs
3428
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
3429
- * @param {Array<string>} [codename] Filter by device codenames
3430
- * @param {Array<string>} [version] Filter by release version
3431
- * @param {Array<ReleaseType>} [type] Filter by release type
3432
- * @param {boolean | null} [archived] Filter by the archived status
3433
- * @param {boolean | null} [freezed] Filter by the freezed status
3434
- * @param {string | null} [afterReleaseId] Show releases after the provided one
3435
- * @param {number | null} [afterDate] Show releases after the provided timestamp
3436
- * @param {ReleasesSort} [sort] Sort mode
3437
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
3438
- * @param {number | null} [skip] Skip query results
3439
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3440
- * @param {*} [options] Override http request option.
3441
- * @throws {RequiredError}
3442
- */
3443
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
3444
- return localVarFp.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(axios, basePath));
3445
- },
3446
- /**
3447
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
3448
- * @summary Get Updates
3449
- * @param {string} lastKnownId
3450
- * @param {Array<string>} [deviceId] Filter by device ID
3451
- * @param {Array<ReleaseType>} [type] Filter by release type
3452
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3453
- * @param {number | null} [skip] Skip query results
3454
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3455
- * @param {*} [options] Override http request option.
3456
- * @deprecated
3457
- * @throws {RequiredError}
3458
- */
3459
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3460
- return localVarFp.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
3461
- },
3462
- };
3463
- };
3464
- /**
3465
- * ReleaseApi - object-oriented interface
3466
- * @export
3467
- * @class ReleaseApi
3468
- * @extends {BaseAPI}
3469
- */
3470
- export class ReleaseApi extends BaseAPI {
3471
- /**
3472
- * Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
3473
- * @summary Get Release
3474
- * @param {string | null} [releaseId] Release ID
3475
- * @param {string | null} [id] Release ID (deprecated)
3476
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
3477
- * @param {string | null} [filename]
3478
- * @param {*} [options] Override http request option.
3479
- * @throws {RequiredError}
3480
- * @memberof ReleaseApi
3481
- */
3482
- getRelease(releaseId, id, buildId, filename, options) {
3483
- return ReleaseApiFp(this.configuration).getRelease(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
3484
- }
3485
- /**
3486
- * Gets release information using the release ID, nothing to discuss really.
3487
- * @summary Get Release Short
3488
- * @param {string} releaseId
3489
- * @param {*} [options] Override http request option.
3490
- * @deprecated
3491
- * @throws {RequiredError}
3492
- * @memberof ReleaseApi
3493
- */
3494
- getReleaseDeprecated(releaseId, options) {
3495
- return ReleaseApiFp(this.configuration).getReleaseDeprecated(releaseId, options).then((request) => request(this.axios, this.basePath));
3496
- }
3497
- /**
3498
- * Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
3499
- * @summary Get Releases
3500
- * @param {Array<string>} [id] Filter by Release IDs
3501
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
3502
- * @param {Array<string>} [buildId] Filter by Build IDs
3503
- * @param {Array<string>} [deviceId] Filter by Device IDs
3504
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
3505
- * @param {Array<string>} [codename] Filter by device codenames
3506
- * @param {Array<string>} [version] Filter by release version
3507
- * @param {Array<ReleaseType>} [type] Filter by release type
3508
- * @param {boolean | null} [archived] Filter by the archived status
3509
- * @param {boolean | null} [freezed] Filter by the freezed status
3510
- * @param {string | null} [afterReleaseId] Show releases after the provided one
3511
- * @param {number | null} [afterDate] Show releases after the provided timestamp
3512
- * @param {ReleasesSort} [sort] Sort mode
3513
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
3514
- * @param {number | null} [skip] Skip query results
3515
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3516
- * @param {*} [options] Override http request option.
3517
- * @throws {RequiredError}
3518
- * @memberof ReleaseApi
3519
- */
3520
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
3521
- return ReleaseApiFp(this.configuration).getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(this.axios, this.basePath));
3522
- }
3523
- /**
3524
- * Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
3525
- * @summary Get Updates
3526
- * @param {string} lastKnownId
3527
- * @param {Array<string>} [deviceId] Filter by device ID
3528
- * @param {Array<ReleaseType>} [type] Filter by release type
3529
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3530
- * @param {number | null} [skip] Skip query results
3531
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3532
- * @param {*} [options] Override http request option.
3533
- * @deprecated
3534
- * @throws {RequiredError}
3535
- * @memberof ReleaseApi
3536
- */
3537
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3538
- return ReleaseApiFp(this.configuration).getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
3539
- }
3540
- }
3541
- /**
3542
- * StatsApi - axios parameter creator
3543
- * @export
3544
- */
3545
- export const StatsApiAxiosParamCreator = function (configuration) {
3546
- return {
3547
- /**
3548
- * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3549
- * @summary Public Stats
3550
- * @param {*} [options] Override http request option.
3551
- * @throws {RequiredError}
3552
- */
3553
- getPublicStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3554
- const localVarPath = `/stats/`;
3555
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3556
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3557
- let baseOptions;
3558
- if (configuration) {
3559
- baseOptions = configuration.baseOptions;
3560
- }
3561
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3562
- const localVarHeaderParameter = {};
3563
- const localVarQueryParameter = {};
3564
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3565
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3566
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3567
- return {
3568
- url: toPathString(localVarUrlObj),
3569
- options: localVarRequestOptions,
3570
- };
3571
- }),
3572
- };
3573
- };
3574
- /**
3575
- * StatsApi - functional programming interface
3576
- * @export
3577
- */
3578
- export const StatsApiFp = function (configuration) {
3579
- const localVarAxiosParamCreator = StatsApiAxiosParamCreator(configuration);
3580
- return {
3581
- /**
3582
- * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3583
- * @summary Public Stats
3584
- * @param {*} [options] Override http request option.
3585
- * @throws {RequiredError}
3586
- */
3587
- getPublicStats(options) {
3588
- return __awaiter(this, void 0, void 0, function* () {
3589
- var _a, _b, _c;
3590
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicStats(options);
3591
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3592
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StatsApi.getPublicStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3593
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3594
- });
3595
- },
3596
- };
3597
- };
3598
- /**
3599
- * StatsApi - factory interface
3600
- * @export
3601
- */
3602
- export const StatsApiFactory = function (configuration, basePath, axios) {
3603
- const localVarFp = StatsApiFp(configuration);
3604
- return {
3605
- /**
3606
- * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3607
- * @summary Public Stats
3608
- * @param {*} [options] Override http request option.
3609
- * @throws {RequiredError}
3610
- */
3611
- getPublicStats(options) {
3612
- return localVarFp.getPublicStats(options).then((request) => request(axios, basePath));
3613
- },
3614
- };
3615
- };
3616
- /**
3617
- * StatsApi - object-oriented interface
3618
- * @export
3619
- * @class StatsApi
3620
- * @extends {BaseAPI}
3621
- */
3622
- export class StatsApi extends BaseAPI {
3623
- /**
3624
- * Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
3625
- * @summary Public Stats
3626
- * @param {*} [options] Override http request option.
3627
- * @throws {RequiredError}
3628
- * @memberof StatsApi
3629
- */
3630
- getPublicStats(options) {
3631
- return StatsApiFp(this.configuration).getPublicStats(options).then((request) => request(this.axios, this.basePath));
3632
- }
3633
- }