@orangefox-recovery/foxinternalclient 5.2.5 → 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 (366) hide show
  1. package/.openapi-generator/FILES +58 -57
  2. package/README.md +3 -116
  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 -5578
  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 -3696
  300. package/dist/api.js +0 -3281
  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 -3696
  308. package/dist/esm/api.js +0 -3254
  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 -958
  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/RecoveryImgResponse.md +0 -22
  343. package/docs/ReleaseApi.md +0 -289
  344. package/docs/ReleaseGroupsResponse.md +0 -20
  345. package/docs/ReleaseInternalResponse.md +0 -62
  346. package/docs/ReleaseInternalResponsePropValue.md +0 -18
  347. package/docs/ReleaseResponse.md +0 -56
  348. package/docs/ReleaseStatsResponse.md +0 -24
  349. package/docs/ReleaseType.md +0 -12
  350. package/docs/ReleaseUpdateBody.md +0 -26
  351. package/docs/ReleasesSort.md +0 -10
  352. package/docs/ResponseGetReleases.md +0 -22
  353. package/docs/ShortDeviceResponse.md +0 -38
  354. package/docs/ShortReleaseResponse.md +0 -44
  355. package/docs/StatsApi.md +0 -53
  356. package/docs/TaskUpdateBody.md +0 -22
  357. package/docs/TokenResponse.md +0 -22
  358. package/docs/UserGitlab.md +0 -20
  359. package/docs/UserInternalResponse.md +0 -38
  360. package/docs/UserMail.md +0 -20
  361. package/docs/UserShortResponse.md +0 -26
  362. package/docs/UserTelegram.md +0 -20
  363. package/docs/UserUpdateBody.md +0 -28
  364. package/docs/ValidationError.md +0 -24
  365. package/docs/ValidationErrorLocInner.md +0 -18
  366. package/git_push.sh +0 -57
package/dist/esm/api.js DELETED
@@ -1,3254 +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.5
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
- setSearchParams(localVarUrlObj, localVarQueryParameter);
479
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
480
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
481
- return {
482
- url: toPathString(localVarUrlObj),
483
- options: localVarRequestOptions,
484
- };
485
- }),
486
- /**
487
- * 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.
488
- * @summary Delete Task
489
- * @param {string} taskId
490
- * @param {*} [options] Override http request option.
491
- * @throws {RequiredError}
492
- */
493
- deleteTaskFactoryTaskIdDelete: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
494
- // verify required parameter 'taskId' is not null or undefined
495
- assertParamExists('deleteTaskFactoryTaskIdDelete', 'taskId', taskId);
496
- const localVarPath = `/factory/{task_id}`
497
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
498
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
499
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
500
- let baseOptions;
501
- if (configuration) {
502
- baseOptions = configuration.baseOptions;
503
- }
504
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
505
- const localVarHeaderParameter = {};
506
- const localVarQueryParameter = {};
507
- setSearchParams(localVarUrlObj, localVarQueryParameter);
508
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
509
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
510
- return {
511
- url: toPathString(localVarUrlObj),
512
- options: localVarRequestOptions,
513
- };
514
- }),
515
- /**
516
- * 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
517
- * @summary Download Artifact
518
- * @param {string} taskId
519
- * @param {*} [options] Override http request option.
520
- * @throws {RequiredError}
521
- */
522
- downloadArtifactFactoryTaskIdArtifactGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
523
- // verify required parameter 'taskId' is not null or undefined
524
- assertParamExists('downloadArtifactFactoryTaskIdArtifactGet', 'taskId', taskId);
525
- const localVarPath = `/factory/{task_id}/artifact`
526
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
527
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
528
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
529
- let baseOptions;
530
- if (configuration) {
531
- baseOptions = configuration.baseOptions;
532
- }
533
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
534
- const localVarHeaderParameter = {};
535
- const localVarQueryParameter = {};
536
- setSearchParams(localVarUrlObj, localVarQueryParameter);
537
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
538
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
539
- return {
540
- url: toPathString(localVarUrlObj),
541
- options: localVarRequestOptions,
542
- };
543
- }),
544
- /**
545
- * 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.
546
- * @summary Factory Status
547
- * @param {*} [options] Override http request option.
548
- * @throws {RequiredError}
549
- */
550
- factoryStatusFactoryStatusGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
551
- const localVarPath = `/factory/status`;
552
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
553
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
554
- let baseOptions;
555
- if (configuration) {
556
- baseOptions = configuration.baseOptions;
557
- }
558
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
559
- const localVarHeaderParameter = {};
560
- const localVarQueryParameter = {};
561
- setSearchParams(localVarUrlObj, localVarQueryParameter);
562
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
563
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
564
- return {
565
- url: toPathString(localVarUrlObj),
566
- options: localVarRequestOptions,
567
- };
568
- }),
569
- /**
570
- * 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.
571
- * @summary Get Task
572
- * @param {string} taskId
573
- * @param {*} [options] Override http request option.
574
- * @throws {RequiredError}
575
- */
576
- getTaskFactoryTaskIdGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
577
- // verify required parameter 'taskId' is not null or undefined
578
- assertParamExists('getTaskFactoryTaskIdGet', 'taskId', taskId);
579
- const localVarPath = `/factory/{task_id}`
580
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
581
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
582
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
583
- let baseOptions;
584
- if (configuration) {
585
- baseOptions = configuration.baseOptions;
586
- }
587
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
588
- const localVarHeaderParameter = {};
589
- const localVarQueryParameter = {};
590
- setSearchParams(localVarUrlObj, localVarQueryParameter);
591
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
592
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
593
- return {
594
- url: toPathString(localVarUrlObj),
595
- options: localVarRequestOptions,
596
- };
597
- }),
598
- /**
599
- * 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
600
- * @summary List Tasks
601
- * @param {string | null} [deviceId]
602
- * @param {*} [options] Override http request option.
603
- * @throws {RequiredError}
604
- */
605
- listTasksFactoryGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
606
- const localVarPath = `/factory/`;
607
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
608
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
609
- let baseOptions;
610
- if (configuration) {
611
- baseOptions = configuration.baseOptions;
612
- }
613
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
614
- const localVarHeaderParameter = {};
615
- const localVarQueryParameter = {};
616
- if (deviceId !== undefined) {
617
- localVarQueryParameter['device_id'] = deviceId;
618
- }
619
- setSearchParams(localVarUrlObj, localVarQueryParameter);
620
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
621
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
622
- return {
623
- url: toPathString(localVarUrlObj),
624
- options: localVarRequestOptions,
625
- };
626
- }),
627
- /**
628
- * 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.
629
- * @summary New Task
630
- * @param {NewBuildTaskBody} newBuildTaskBody
631
- * @param {*} [options] Override http request option.
632
- * @throws {RequiredError}
633
- */
634
- newTaskFactoryPost: (newBuildTaskBody_1, ...args_1) => __awaiter(this, [newBuildTaskBody_1, ...args_1], void 0, function* (newBuildTaskBody, options = {}) {
635
- // verify required parameter 'newBuildTaskBody' is not null or undefined
636
- assertParamExists('newTaskFactoryPost', 'newBuildTaskBody', newBuildTaskBody);
637
- const localVarPath = `/factory/`;
638
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
639
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
640
- let baseOptions;
641
- if (configuration) {
642
- baseOptions = configuration.baseOptions;
643
- }
644
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
645
- const localVarHeaderParameter = {};
646
- const localVarQueryParameter = {};
647
- localVarHeaderParameter['Content-Type'] = 'application/json';
648
- setSearchParams(localVarUrlObj, localVarQueryParameter);
649
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
650
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
651
- localVarRequestOptions.data = serializeDataIfNeeded(newBuildTaskBody, localVarRequestOptions, configuration);
652
- return {
653
- url: toPathString(localVarUrlObj),
654
- options: localVarRequestOptions,
655
- };
656
- }),
657
- /**
658
- * 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.
659
- * @summary Update Task
660
- * @param {string} taskId
661
- * @param {TaskUpdateBody} taskUpdateBody
662
- * @param {*} [options] Override http request option.
663
- * @throws {RequiredError}
664
- */
665
- updateTaskFactoryTaskIdPatch: (taskId_1, taskUpdateBody_1, ...args_1) => __awaiter(this, [taskId_1, taskUpdateBody_1, ...args_1], void 0, function* (taskId, taskUpdateBody, options = {}) {
666
- // verify required parameter 'taskId' is not null or undefined
667
- assertParamExists('updateTaskFactoryTaskIdPatch', 'taskId', taskId);
668
- // verify required parameter 'taskUpdateBody' is not null or undefined
669
- assertParamExists('updateTaskFactoryTaskIdPatch', 'taskUpdateBody', taskUpdateBody);
670
- const localVarPath = `/factory/{task_id}`
671
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
672
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
673
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
674
- let baseOptions;
675
- if (configuration) {
676
- baseOptions = configuration.baseOptions;
677
- }
678
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
679
- const localVarHeaderParameter = {};
680
- const localVarQueryParameter = {};
681
- localVarHeaderParameter['Content-Type'] = 'application/json';
682
- setSearchParams(localVarUrlObj, localVarQueryParameter);
683
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
684
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
685
- localVarRequestOptions.data = serializeDataIfNeeded(taskUpdateBody, localVarRequestOptions, configuration);
686
- return {
687
- url: toPathString(localVarUrlObj),
688
- options: localVarRequestOptions,
689
- };
690
- }),
691
- /**
692
- * Endpoint for FoxFactory worker to update its status.
693
- * @summary Update Worker Status
694
- * @param {string} body
695
- * @param {*} [options] Override http request option.
696
- * @throws {RequiredError}
697
- */
698
- updateWorkerStatusFactoryUpdateStatusPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
699
- // verify required parameter 'body' is not null or undefined
700
- assertParamExists('updateWorkerStatusFactoryUpdateStatusPost', 'body', body);
701
- const localVarPath = `/factory/update_status`;
702
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
703
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
704
- let baseOptions;
705
- if (configuration) {
706
- baseOptions = configuration.baseOptions;
707
- }
708
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
709
- const localVarHeaderParameter = {};
710
- const localVarQueryParameter = {};
711
- localVarHeaderParameter['Content-Type'] = 'application/json';
712
- setSearchParams(localVarUrlObj, localVarQueryParameter);
713
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
714
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
715
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
716
- return {
717
- url: toPathString(localVarUrlObj),
718
- options: localVarRequestOptions,
719
- };
720
- }),
721
- /**
722
- * 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
723
- * @summary Upload Artifact
724
- * @param {string} taskId
725
- * @param {File} artifact
726
- * @param {string} md5Hash
727
- * @param {*} [options] Override http request option.
728
- * @throws {RequiredError}
729
- */
730
- 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 = {}) {
731
- // verify required parameter 'taskId' is not null or undefined
732
- assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'taskId', taskId);
733
- // verify required parameter 'artifact' is not null or undefined
734
- assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'artifact', artifact);
735
- // verify required parameter 'md5Hash' is not null or undefined
736
- assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'md5Hash', md5Hash);
737
- const localVarPath = `/factory/{task_id}/artifact`
738
- .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
739
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
740
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
741
- let baseOptions;
742
- if (configuration) {
743
- baseOptions = configuration.baseOptions;
744
- }
745
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
746
- const localVarHeaderParameter = {};
747
- const localVarQueryParameter = {};
748
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
749
- if (artifact !== undefined) {
750
- localVarFormParams.append('artifact', artifact);
751
- }
752
- if (md5Hash !== undefined) {
753
- localVarFormParams.append('md5_hash', md5Hash);
754
- }
755
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
756
- setSearchParams(localVarUrlObj, localVarQueryParameter);
757
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
758
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
759
- localVarRequestOptions.data = localVarFormParams;
760
- return {
761
- url: toPathString(localVarUrlObj),
762
- options: localVarRequestOptions,
763
- };
764
- }),
765
- };
766
- };
767
- /**
768
- * FoxFactoryApi - functional programming interface
769
- * @export
770
- */
771
- export const FoxFactoryApiFp = function (configuration) {
772
- const localVarAxiosParamCreator = FoxFactoryApiAxiosParamCreator(configuration);
773
- return {
774
- /**
775
- * 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.
776
- * @summary Cancel Task
777
- * @param {string} taskId
778
- * @param {*} [options] Override http request option.
779
- * @throws {RequiredError}
780
- */
781
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
782
- return __awaiter(this, void 0, void 0, function* () {
783
- var _a, _b, _c;
784
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelTaskFactoryTaskIdCancelPost(taskId, options);
785
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
786
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.cancelTaskFactoryTaskIdCancelPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
787
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
788
- });
789
- },
790
- /**
791
- * 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.
792
- * @summary Delete Task
793
- * @param {string} taskId
794
- * @param {*} [options] Override http request option.
795
- * @throws {RequiredError}
796
- */
797
- deleteTaskFactoryTaskIdDelete(taskId, options) {
798
- return __awaiter(this, void 0, void 0, function* () {
799
- var _a, _b, _c;
800
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTaskFactoryTaskIdDelete(taskId, options);
801
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
802
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.deleteTaskFactoryTaskIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
803
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
804
- });
805
- },
806
- /**
807
- * 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
808
- * @summary Download Artifact
809
- * @param {string} taskId
810
- * @param {*} [options] Override http request option.
811
- * @throws {RequiredError}
812
- */
813
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
814
- return __awaiter(this, void 0, void 0, function* () {
815
- var _a, _b, _c;
816
- const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadArtifactFactoryTaskIdArtifactGet(taskId, options);
817
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
818
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.downloadArtifactFactoryTaskIdArtifactGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
819
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
820
- });
821
- },
822
- /**
823
- * 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.
824
- * @summary Factory Status
825
- * @param {*} [options] Override http request option.
826
- * @throws {RequiredError}
827
- */
828
- factoryStatusFactoryStatusGet(options) {
829
- return __awaiter(this, void 0, void 0, function* () {
830
- var _a, _b, _c;
831
- const localVarAxiosArgs = yield localVarAxiosParamCreator.factoryStatusFactoryStatusGet(options);
832
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
833
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.factoryStatusFactoryStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
834
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
835
- });
836
- },
837
- /**
838
- * 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.
839
- * @summary Get Task
840
- * @param {string} taskId
841
- * @param {*} [options] Override http request option.
842
- * @throws {RequiredError}
843
- */
844
- getTaskFactoryTaskIdGet(taskId, options) {
845
- return __awaiter(this, void 0, void 0, function* () {
846
- var _a, _b, _c;
847
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTaskFactoryTaskIdGet(taskId, options);
848
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
849
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.getTaskFactoryTaskIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
850
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
851
- });
852
- },
853
- /**
854
- * 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
855
- * @summary List Tasks
856
- * @param {string | null} [deviceId]
857
- * @param {*} [options] Override http request option.
858
- * @throws {RequiredError}
859
- */
860
- listTasksFactoryGet(deviceId, options) {
861
- return __awaiter(this, void 0, void 0, function* () {
862
- var _a, _b, _c;
863
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksFactoryGet(deviceId, options);
864
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
865
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.listTasksFactoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
866
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
867
- });
868
- },
869
- /**
870
- * 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.
871
- * @summary New Task
872
- * @param {NewBuildTaskBody} newBuildTaskBody
873
- * @param {*} [options] Override http request option.
874
- * @throws {RequiredError}
875
- */
876
- newTaskFactoryPost(newBuildTaskBody, options) {
877
- return __awaiter(this, void 0, void 0, function* () {
878
- var _a, _b, _c;
879
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newTaskFactoryPost(newBuildTaskBody, options);
880
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
881
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.newTaskFactoryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
882
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
883
- });
884
- },
885
- /**
886
- * 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.
887
- * @summary Update Task
888
- * @param {string} taskId
889
- * @param {TaskUpdateBody} taskUpdateBody
890
- * @param {*} [options] Override http request option.
891
- * @throws {RequiredError}
892
- */
893
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
894
- return __awaiter(this, void 0, void 0, function* () {
895
- var _a, _b, _c;
896
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options);
897
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
898
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.updateTaskFactoryTaskIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
899
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
900
- });
901
- },
902
- /**
903
- * Endpoint for FoxFactory worker to update its status.
904
- * @summary Update Worker Status
905
- * @param {string} body
906
- * @param {*} [options] Override http request option.
907
- * @throws {RequiredError}
908
- */
909
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
910
- return __awaiter(this, void 0, void 0, function* () {
911
- var _a, _b, _c;
912
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWorkerStatusFactoryUpdateStatusPost(body, options);
913
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
914
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.updateWorkerStatusFactoryUpdateStatusPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
915
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
916
- });
917
- },
918
- /**
919
- * 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
920
- * @summary Upload Artifact
921
- * @param {string} taskId
922
- * @param {File} artifact
923
- * @param {string} md5Hash
924
- * @param {*} [options] Override http request option.
925
- * @throws {RequiredError}
926
- */
927
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
928
- return __awaiter(this, void 0, void 0, function* () {
929
- var _a, _b, _c;
930
- const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options);
931
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
932
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.uploadArtifactFactoryTaskIdArtifactPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
933
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
934
- });
935
- },
936
- };
937
- };
938
- /**
939
- * FoxFactoryApi - factory interface
940
- * @export
941
- */
942
- export const FoxFactoryApiFactory = function (configuration, basePath, axios) {
943
- const localVarFp = FoxFactoryApiFp(configuration);
944
- return {
945
- /**
946
- * 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.
947
- * @summary Cancel Task
948
- * @param {string} taskId
949
- * @param {*} [options] Override http request option.
950
- * @throws {RequiredError}
951
- */
952
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
953
- return localVarFp.cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(axios, basePath));
954
- },
955
- /**
956
- * 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.
957
- * @summary Delete Task
958
- * @param {string} taskId
959
- * @param {*} [options] Override http request option.
960
- * @throws {RequiredError}
961
- */
962
- deleteTaskFactoryTaskIdDelete(taskId, options) {
963
- return localVarFp.deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(axios, basePath));
964
- },
965
- /**
966
- * 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
967
- * @summary Download Artifact
968
- * @param {string} taskId
969
- * @param {*} [options] Override http request option.
970
- * @throws {RequiredError}
971
- */
972
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
973
- return localVarFp.downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(axios, basePath));
974
- },
975
- /**
976
- * 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.
977
- * @summary Factory Status
978
- * @param {*} [options] Override http request option.
979
- * @throws {RequiredError}
980
- */
981
- factoryStatusFactoryStatusGet(options) {
982
- return localVarFp.factoryStatusFactoryStatusGet(options).then((request) => request(axios, basePath));
983
- },
984
- /**
985
- * 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.
986
- * @summary Get Task
987
- * @param {string} taskId
988
- * @param {*} [options] Override http request option.
989
- * @throws {RequiredError}
990
- */
991
- getTaskFactoryTaskIdGet(taskId, options) {
992
- return localVarFp.getTaskFactoryTaskIdGet(taskId, options).then((request) => request(axios, basePath));
993
- },
994
- /**
995
- * 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
996
- * @summary List Tasks
997
- * @param {string | null} [deviceId]
998
- * @param {*} [options] Override http request option.
999
- * @throws {RequiredError}
1000
- */
1001
- listTasksFactoryGet(deviceId, options) {
1002
- return localVarFp.listTasksFactoryGet(deviceId, options).then((request) => request(axios, basePath));
1003
- },
1004
- /**
1005
- * 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.
1006
- * @summary New Task
1007
- * @param {NewBuildTaskBody} newBuildTaskBody
1008
- * @param {*} [options] Override http request option.
1009
- * @throws {RequiredError}
1010
- */
1011
- newTaskFactoryPost(newBuildTaskBody, options) {
1012
- return localVarFp.newTaskFactoryPost(newBuildTaskBody, options).then((request) => request(axios, basePath));
1013
- },
1014
- /**
1015
- * 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.
1016
- * @summary Update Task
1017
- * @param {string} taskId
1018
- * @param {TaskUpdateBody} taskUpdateBody
1019
- * @param {*} [options] Override http request option.
1020
- * @throws {RequiredError}
1021
- */
1022
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
1023
- return localVarFp.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(axios, basePath));
1024
- },
1025
- /**
1026
- * Endpoint for FoxFactory worker to update its status.
1027
- * @summary Update Worker Status
1028
- * @param {string} body
1029
- * @param {*} [options] Override http request option.
1030
- * @throws {RequiredError}
1031
- */
1032
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
1033
- return localVarFp.updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(axios, basePath));
1034
- },
1035
- /**
1036
- * 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
1037
- * @summary Upload Artifact
1038
- * @param {string} taskId
1039
- * @param {File} artifact
1040
- * @param {string} md5Hash
1041
- * @param {*} [options] Override http request option.
1042
- * @throws {RequiredError}
1043
- */
1044
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
1045
- return localVarFp.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(axios, basePath));
1046
- },
1047
- };
1048
- };
1049
- /**
1050
- * FoxFactoryApi - object-oriented interface
1051
- * @export
1052
- * @class FoxFactoryApi
1053
- * @extends {BaseAPI}
1054
- */
1055
- export class FoxFactoryApi extends BaseAPI {
1056
- /**
1057
- * 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.
1058
- * @summary Cancel Task
1059
- * @param {string} taskId
1060
- * @param {*} [options] Override http request option.
1061
- * @throws {RequiredError}
1062
- * @memberof FoxFactoryApi
1063
- */
1064
- cancelTaskFactoryTaskIdCancelPost(taskId, options) {
1065
- return FoxFactoryApiFp(this.configuration).cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(this.axios, this.basePath));
1066
- }
1067
- /**
1068
- * 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.
1069
- * @summary Delete Task
1070
- * @param {string} taskId
1071
- * @param {*} [options] Override http request option.
1072
- * @throws {RequiredError}
1073
- * @memberof FoxFactoryApi
1074
- */
1075
- deleteTaskFactoryTaskIdDelete(taskId, options) {
1076
- return FoxFactoryApiFp(this.configuration).deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(this.axios, this.basePath));
1077
- }
1078
- /**
1079
- * 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
1080
- * @summary Download Artifact
1081
- * @param {string} taskId
1082
- * @param {*} [options] Override http request option.
1083
- * @throws {RequiredError}
1084
- * @memberof FoxFactoryApi
1085
- */
1086
- downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
1087
- return FoxFactoryApiFp(this.configuration).downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(this.axios, this.basePath));
1088
- }
1089
- /**
1090
- * 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.
1091
- * @summary Factory Status
1092
- * @param {*} [options] Override http request option.
1093
- * @throws {RequiredError}
1094
- * @memberof FoxFactoryApi
1095
- */
1096
- factoryStatusFactoryStatusGet(options) {
1097
- return FoxFactoryApiFp(this.configuration).factoryStatusFactoryStatusGet(options).then((request) => request(this.axios, this.basePath));
1098
- }
1099
- /**
1100
- * 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.
1101
- * @summary Get Task
1102
- * @param {string} taskId
1103
- * @param {*} [options] Override http request option.
1104
- * @throws {RequiredError}
1105
- * @memberof FoxFactoryApi
1106
- */
1107
- getTaskFactoryTaskIdGet(taskId, options) {
1108
- return FoxFactoryApiFp(this.configuration).getTaskFactoryTaskIdGet(taskId, options).then((request) => request(this.axios, this.basePath));
1109
- }
1110
- /**
1111
- * 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
1112
- * @summary List Tasks
1113
- * @param {string | null} [deviceId]
1114
- * @param {*} [options] Override http request option.
1115
- * @throws {RequiredError}
1116
- * @memberof FoxFactoryApi
1117
- */
1118
- listTasksFactoryGet(deviceId, options) {
1119
- return FoxFactoryApiFp(this.configuration).listTasksFactoryGet(deviceId, options).then((request) => request(this.axios, this.basePath));
1120
- }
1121
- /**
1122
- * 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.
1123
- * @summary New Task
1124
- * @param {NewBuildTaskBody} newBuildTaskBody
1125
- * @param {*} [options] Override http request option.
1126
- * @throws {RequiredError}
1127
- * @memberof FoxFactoryApi
1128
- */
1129
- newTaskFactoryPost(newBuildTaskBody, options) {
1130
- return FoxFactoryApiFp(this.configuration).newTaskFactoryPost(newBuildTaskBody, options).then((request) => request(this.axios, this.basePath));
1131
- }
1132
- /**
1133
- * 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.
1134
- * @summary Update Task
1135
- * @param {string} taskId
1136
- * @param {TaskUpdateBody} taskUpdateBody
1137
- * @param {*} [options] Override http request option.
1138
- * @throws {RequiredError}
1139
- * @memberof FoxFactoryApi
1140
- */
1141
- updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
1142
- return FoxFactoryApiFp(this.configuration).updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(this.axios, this.basePath));
1143
- }
1144
- /**
1145
- * Endpoint for FoxFactory worker to update its status.
1146
- * @summary Update Worker Status
1147
- * @param {string} body
1148
- * @param {*} [options] Override http request option.
1149
- * @throws {RequiredError}
1150
- * @memberof FoxFactoryApi
1151
- */
1152
- updateWorkerStatusFactoryUpdateStatusPost(body, options) {
1153
- return FoxFactoryApiFp(this.configuration).updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(this.axios, this.basePath));
1154
- }
1155
- /**
1156
- * 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
1157
- * @summary Upload Artifact
1158
- * @param {string} taskId
1159
- * @param {File} artifact
1160
- * @param {string} md5Hash
1161
- * @param {*} [options] Override http request option.
1162
- * @throws {RequiredError}
1163
- * @memberof FoxFactoryApi
1164
- */
1165
- uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
1166
- return FoxFactoryApiFp(this.configuration).uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(this.axios, this.basePath));
1167
- }
1168
- }
1169
- /**
1170
- * GitlabApi - axios parameter creator
1171
- * @export
1172
- */
1173
- export const GitlabApiAxiosParamCreator = function (configuration) {
1174
- return {
1175
- /**
1176
- *
1177
- * @summary Device Add Gitlab Repo
1178
- * @param {string} deviceId
1179
- * @param {string} glProjectUrl
1180
- * @param {*} [options] Override http request option.
1181
- * @throws {RequiredError}
1182
- */
1183
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost: (deviceId_1, glProjectUrl_1, ...args_1) => __awaiter(this, [deviceId_1, glProjectUrl_1, ...args_1], void 0, function* (deviceId, glProjectUrl, options = {}) {
1184
- // verify required parameter 'deviceId' is not null or undefined
1185
- assertParamExists('deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost', 'deviceId', deviceId);
1186
- // verify required parameter 'glProjectUrl' is not null or undefined
1187
- assertParamExists('deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost', 'glProjectUrl', glProjectUrl);
1188
- const localVarPath = `/gitlab/device/{device_id}/gitlab`
1189
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1190
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1191
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1192
- let baseOptions;
1193
- if (configuration) {
1194
- baseOptions = configuration.baseOptions;
1195
- }
1196
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1197
- const localVarHeaderParameter = {};
1198
- const localVarQueryParameter = {};
1199
- if (glProjectUrl !== undefined) {
1200
- localVarQueryParameter['gl_project_url'] = glProjectUrl;
1201
- }
1202
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1203
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1204
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1205
- return {
1206
- url: toPathString(localVarUrlObj),
1207
- options: localVarRequestOptions,
1208
- };
1209
- }),
1210
- };
1211
- };
1212
- /**
1213
- * GitlabApi - functional programming interface
1214
- * @export
1215
- */
1216
- export const GitlabApiFp = function (configuration) {
1217
- const localVarAxiosParamCreator = GitlabApiAxiosParamCreator(configuration);
1218
- return {
1219
- /**
1220
- *
1221
- * @summary Device Add Gitlab Repo
1222
- * @param {string} deviceId
1223
- * @param {string} glProjectUrl
1224
- * @param {*} [options] Override http request option.
1225
- * @throws {RequiredError}
1226
- */
1227
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1228
- return __awaiter(this, void 0, void 0, function* () {
1229
- var _a, _b, _c;
1230
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options);
1231
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1232
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['GitlabApi.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1233
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1234
- });
1235
- },
1236
- };
1237
- };
1238
- /**
1239
- * GitlabApi - factory interface
1240
- * @export
1241
- */
1242
- export const GitlabApiFactory = function (configuration, basePath, axios) {
1243
- const localVarFp = GitlabApiFp(configuration);
1244
- return {
1245
- /**
1246
- *
1247
- * @summary Device Add Gitlab Repo
1248
- * @param {string} deviceId
1249
- * @param {string} glProjectUrl
1250
- * @param {*} [options] Override http request option.
1251
- * @throws {RequiredError}
1252
- */
1253
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1254
- return localVarFp.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options).then((request) => request(axios, basePath));
1255
- },
1256
- };
1257
- };
1258
- /**
1259
- * GitlabApi - object-oriented interface
1260
- * @export
1261
- * @class GitlabApi
1262
- * @extends {BaseAPI}
1263
- */
1264
- export class GitlabApi extends BaseAPI {
1265
- /**
1266
- *
1267
- * @summary Device Add Gitlab Repo
1268
- * @param {string} deviceId
1269
- * @param {string} glProjectUrl
1270
- * @param {*} [options] Override http request option.
1271
- * @throws {RequiredError}
1272
- * @memberof GitlabApi
1273
- */
1274
- deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options) {
1275
- return GitlabApiFp(this.configuration).deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(deviceId, glProjectUrl, options).then((request) => request(this.axios, this.basePath));
1276
- }
1277
- }
1278
- /**
1279
- * InternalApi - axios parameter creator
1280
- * @export
1281
- */
1282
- export const InternalApiAxiosParamCreator = function (configuration) {
1283
- return {
1284
- /**
1285
- * Change the password for a user.
1286
- * @summary Change Password
1287
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
1288
- * @param {*} [options] Override http request option.
1289
- * @throws {RequiredError}
1290
- */
1291
- changePasswordProfileChangePasswordPost: (bodyChangePasswordProfileChangePasswordPost_1, ...args_1) => __awaiter(this, [bodyChangePasswordProfileChangePasswordPost_1, ...args_1], void 0, function* (bodyChangePasswordProfileChangePasswordPost, options = {}) {
1292
- // verify required parameter 'bodyChangePasswordProfileChangePasswordPost' is not null or undefined
1293
- assertParamExists('changePasswordProfileChangePasswordPost', 'bodyChangePasswordProfileChangePasswordPost', bodyChangePasswordProfileChangePasswordPost);
1294
- const localVarPath = `/profile/change_password`;
1295
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1296
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1297
- let baseOptions;
1298
- if (configuration) {
1299
- baseOptions = configuration.baseOptions;
1300
- }
1301
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1302
- const localVarHeaderParameter = {};
1303
- const localVarQueryParameter = {};
1304
- localVarHeaderParameter['Content-Type'] = 'application/json';
1305
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1306
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1307
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1308
- localVarRequestOptions.data = serializeDataIfNeeded(bodyChangePasswordProfileChangePasswordPost, localVarRequestOptions, configuration);
1309
- return {
1310
- url: toPathString(localVarUrlObj),
1311
- options: localVarRequestOptions,
1312
- };
1313
- }),
1314
- /**
1315
- * Delete release
1316
- * @summary Del Release
1317
- * @param {string} releaseId
1318
- * @param {*} [options] Override http request option.
1319
- * @throws {RequiredError}
1320
- */
1321
- delReleaseInternalReleasesReleaseIdDelete: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1322
- // verify required parameter 'releaseId' is not null or undefined
1323
- assertParamExists('delReleaseInternalReleasesReleaseIdDelete', 'releaseId', releaseId);
1324
- const localVarPath = `/internal/releases/{release_id}`
1325
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1326
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1327
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1328
- let baseOptions;
1329
- if (configuration) {
1330
- baseOptions = configuration.baseOptions;
1331
- }
1332
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1333
- const localVarHeaderParameter = {};
1334
- const localVarQueryParameter = {};
1335
- // authentication oauth2_password required
1336
- // oauth required
1337
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1338
- // authentication bearer_auth required
1339
- // http bearer authentication required
1340
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1341
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1342
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1343
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1344
- return {
1345
- url: toPathString(localVarUrlObj),
1346
- options: localVarRequestOptions,
1347
- };
1348
- }),
1349
- /**
1350
- *
1351
- * @summary Delete User
1352
- * @param {string} userId
1353
- * @param {*} [options] Override http request option.
1354
- * @throws {RequiredError}
1355
- */
1356
- deleteUserInternalUsersUserIdDelete: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
1357
- // verify required parameter 'userId' is not null or undefined
1358
- assertParamExists('deleteUserInternalUsersUserIdDelete', 'userId', userId);
1359
- const localVarPath = `/internal/users/{user_id}`
1360
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1361
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1362
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1363
- let baseOptions;
1364
- if (configuration) {
1365
- baseOptions = configuration.baseOptions;
1366
- }
1367
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1368
- const localVarHeaderParameter = {};
1369
- const localVarQueryParameter = {};
1370
- // authentication oauth2_password required
1371
- // oauth required
1372
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1373
- // authentication bearer_auth required
1374
- // http bearer authentication required
1375
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1376
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1377
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1378
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1379
- return {
1380
- url: toPathString(localVarUrlObj),
1381
- options: localVarRequestOptions,
1382
- };
1383
- }),
1384
- /**
1385
- * Edit Release information
1386
- * @summary Edit Release
1387
- * @param {string} releaseId
1388
- * @param {ReleaseUpdateBody} releaseUpdateBody
1389
- * @param {*} [options] Override http request option.
1390
- * @throws {RequiredError}
1391
- */
1392
- editReleaseInternalReleasesReleaseIdPut: (releaseId_1, releaseUpdateBody_1, ...args_1) => __awaiter(this, [releaseId_1, releaseUpdateBody_1, ...args_1], void 0, function* (releaseId, releaseUpdateBody, options = {}) {
1393
- // verify required parameter 'releaseId' is not null or undefined
1394
- assertParamExists('editReleaseInternalReleasesReleaseIdPut', 'releaseId', releaseId);
1395
- // verify required parameter 'releaseUpdateBody' is not null or undefined
1396
- assertParamExists('editReleaseInternalReleasesReleaseIdPut', 'releaseUpdateBody', releaseUpdateBody);
1397
- const localVarPath = `/internal/releases/{release_id}`
1398
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1399
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1400
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1401
- let baseOptions;
1402
- if (configuration) {
1403
- baseOptions = configuration.baseOptions;
1404
- }
1405
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1406
- const localVarHeaderParameter = {};
1407
- const localVarQueryParameter = {};
1408
- // authentication oauth2_password required
1409
- // oauth required
1410
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1411
- // authentication bearer_auth required
1412
- // http bearer authentication required
1413
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1414
- localVarHeaderParameter['Content-Type'] = 'application/json';
1415
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1416
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1417
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1418
- localVarRequestOptions.data = serializeDataIfNeeded(releaseUpdateBody, localVarRequestOptions, configuration);
1419
- return {
1420
- url: toPathString(localVarUrlObj),
1421
- options: localVarRequestOptions,
1422
- };
1423
- }),
1424
- /**
1425
- *
1426
- * @summary Get Device Info
1427
- * @param {string} deviceId
1428
- * @param {*} [options] Override http request option.
1429
- * @throws {RequiredError}
1430
- */
1431
- getDeviceInfoInternalDevicesDeviceIdGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
1432
- // verify required parameter 'deviceId' is not null or undefined
1433
- assertParamExists('getDeviceInfoInternalDevicesDeviceIdGet', 'deviceId', deviceId);
1434
- const localVarPath = `/internal/devices/{device_id}`
1435
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1436
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1437
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1438
- let baseOptions;
1439
- if (configuration) {
1440
- baseOptions = configuration.baseOptions;
1441
- }
1442
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1443
- const localVarHeaderParameter = {};
1444
- const localVarQueryParameter = {};
1445
- // authentication oauth2_password required
1446
- // oauth required
1447
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1448
- // authentication bearer_auth required
1449
- // http bearer authentication required
1450
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1451
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1452
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1453
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1454
- return {
1455
- url: toPathString(localVarUrlObj),
1456
- options: localVarRequestOptions,
1457
- };
1458
- }),
1459
- /**
1460
- * Get a paginated list of logs with optional filtering.
1461
- * @summary Get Logs
1462
- * @param {number} [page]
1463
- * @param {number} [perPage]
1464
- * @param {string | null} [deviceId]
1465
- * @param {string | null} [releaseId]
1466
- * @param {string | null} [userId]
1467
- * @param {boolean | null} [hideVerbose]
1468
- * @param {*} [options] Override http request option.
1469
- * @throws {RequiredError}
1470
- */
1471
- 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 = {}) {
1472
- const localVarPath = `/internal/logs/`;
1473
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1474
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1475
- let baseOptions;
1476
- if (configuration) {
1477
- baseOptions = configuration.baseOptions;
1478
- }
1479
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1480
- const localVarHeaderParameter = {};
1481
- const localVarQueryParameter = {};
1482
- // authentication oauth2_password required
1483
- // oauth required
1484
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1485
- // authentication bearer_auth required
1486
- // http bearer authentication required
1487
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1488
- if (page !== undefined) {
1489
- localVarQueryParameter['page'] = page;
1490
- }
1491
- if (perPage !== undefined) {
1492
- localVarQueryParameter['per_page'] = perPage;
1493
- }
1494
- if (deviceId !== undefined) {
1495
- localVarQueryParameter['device_id'] = deviceId;
1496
- }
1497
- if (releaseId !== undefined) {
1498
- localVarQueryParameter['release_id'] = releaseId;
1499
- }
1500
- if (userId !== undefined) {
1501
- localVarQueryParameter['user_id'] = userId;
1502
- }
1503
- if (hideVerbose !== undefined) {
1504
- localVarQueryParameter['hide_verbose'] = hideVerbose;
1505
- }
1506
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1507
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1508
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1509
- return {
1510
- url: toPathString(localVarUrlObj),
1511
- options: localVarRequestOptions,
1512
- };
1513
- }),
1514
- /**
1515
- * Get release information
1516
- * @summary Get Release Info
1517
- * @param {string} releaseId
1518
- * @param {*} [options] Override http request option.
1519
- * @throws {RequiredError}
1520
- */
1521
- getReleaseInfoInternalReleasesReleaseIdGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1522
- // verify required parameter 'releaseId' is not null or undefined
1523
- assertParamExists('getReleaseInfoInternalReleasesReleaseIdGet', 'releaseId', releaseId);
1524
- const localVarPath = `/internal/releases/{release_id}`
1525
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1526
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1527
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1528
- let baseOptions;
1529
- if (configuration) {
1530
- baseOptions = configuration.baseOptions;
1531
- }
1532
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1533
- const localVarHeaderParameter = {};
1534
- const localVarQueryParameter = {};
1535
- // authentication oauth2_password required
1536
- // oauth required
1537
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1538
- // authentication bearer_auth required
1539
- // http bearer authentication required
1540
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1541
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1542
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1543
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1544
- return {
1545
- url: toPathString(localVarUrlObj),
1546
- options: localVarRequestOptions,
1547
- };
1548
- }),
1549
- /**
1550
- * Download release ZIP directly
1551
- * @summary Get Release Zip
1552
- * @param {string} releaseId
1553
- * @param {*} [options] Override http request option.
1554
- * @throws {RequiredError}
1555
- */
1556
- getReleaseZipInternalReleasesReleaseIdDlGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
1557
- // verify required parameter 'releaseId' is not null or undefined
1558
- assertParamExists('getReleaseZipInternalReleasesReleaseIdDlGet', 'releaseId', releaseId);
1559
- const localVarPath = `/internal/releases/{release_id}/dl`
1560
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
1561
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1562
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1563
- let baseOptions;
1564
- if (configuration) {
1565
- baseOptions = configuration.baseOptions;
1566
- }
1567
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1568
- const localVarHeaderParameter = {};
1569
- const localVarQueryParameter = {};
1570
- // authentication oauth2_password required
1571
- // oauth required
1572
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1573
- // authentication bearer_auth required
1574
- // http bearer authentication required
1575
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1576
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1577
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1578
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1579
- return {
1580
- url: toPathString(localVarUrlObj),
1581
- options: localVarRequestOptions,
1582
- };
1583
- }),
1584
- /**
1585
- *
1586
- * @summary Get User By Id
1587
- * @param {string} userId
1588
- * @param {*} [options] Override http request option.
1589
- * @throws {RequiredError}
1590
- */
1591
- getUserByIdInternalUsersUserIdGet: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
1592
- // verify required parameter 'userId' is not null or undefined
1593
- assertParamExists('getUserByIdInternalUsersUserIdGet', 'userId', userId);
1594
- const localVarPath = `/internal/users/{user_id}`
1595
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1596
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1597
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1598
- let baseOptions;
1599
- if (configuration) {
1600
- baseOptions = configuration.baseOptions;
1601
- }
1602
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1603
- const localVarHeaderParameter = {};
1604
- const localVarQueryParameter = {};
1605
- // authentication oauth2_password required
1606
- // oauth required
1607
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1608
- // authentication bearer_auth required
1609
- // http bearer authentication required
1610
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1611
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1612
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1613
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1614
- return {
1615
- url: toPathString(localVarUrlObj),
1616
- options: localVarRequestOptions,
1617
- };
1618
- }),
1619
- /**
1620
- *
1621
- * @summary List Users
1622
- * @param {*} [options] Override http request option.
1623
- * @throws {RequiredError}
1624
- */
1625
- listUsersInternalUsersGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1626
- const localVarPath = `/internal/users/`;
1627
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1628
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1629
- let baseOptions;
1630
- if (configuration) {
1631
- baseOptions = configuration.baseOptions;
1632
- }
1633
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1634
- const localVarHeaderParameter = {};
1635
- const localVarQueryParameter = {};
1636
- // authentication oauth2_password required
1637
- // oauth required
1638
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1639
- // authentication bearer_auth required
1640
- // http bearer authentication required
1641
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1642
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1643
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1644
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1645
- return {
1646
- url: toPathString(localVarUrlObj),
1647
- options: localVarRequestOptions,
1648
- };
1649
- }),
1650
- /**
1651
- * OAuth2 compatible token login, get an access token for future requests
1652
- * @summary Login Oauth
1653
- * @param {string} username
1654
- * @param {string} password
1655
- * @param {number} [minTime]
1656
- * @param {number} [maxTime]
1657
- * @param {string | null} [grantType]
1658
- * @param {string} [scope]
1659
- * @param {string | null} [clientId]
1660
- * @param {string | null} [clientSecret]
1661
- * @param {*} [options] Override http request option.
1662
- * @throws {RequiredError}
1663
- */
1664
- 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 = {}) {
1665
- // verify required parameter 'username' is not null or undefined
1666
- assertParamExists('loginOauthAuthLoginPost', 'username', username);
1667
- // verify required parameter 'password' is not null or undefined
1668
- assertParamExists('loginOauthAuthLoginPost', 'password', password);
1669
- const localVarPath = `/auth/login`;
1670
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1671
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1672
- let baseOptions;
1673
- if (configuration) {
1674
- baseOptions = configuration.baseOptions;
1675
- }
1676
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1677
- const localVarHeaderParameter = {};
1678
- const localVarQueryParameter = {};
1679
- const localVarFormParams = new URLSearchParams();
1680
- // authentication oauth2_password required
1681
- // oauth required
1682
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1683
- // authentication bearer_auth required
1684
- // http bearer authentication required
1685
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1686
- if (minTime !== undefined) {
1687
- localVarQueryParameter['min_time'] = minTime;
1688
- }
1689
- if (maxTime !== undefined) {
1690
- localVarQueryParameter['max_time'] = maxTime;
1691
- }
1692
- if (grantType !== undefined) {
1693
- localVarFormParams.set('grant_type', grantType);
1694
- }
1695
- if (username !== undefined) {
1696
- localVarFormParams.set('username', username);
1697
- }
1698
- if (password !== undefined) {
1699
- localVarFormParams.set('password', password);
1700
- }
1701
- if (scope !== undefined) {
1702
- localVarFormParams.set('scope', scope);
1703
- }
1704
- if (clientId !== undefined) {
1705
- localVarFormParams.set('client_id', clientId);
1706
- }
1707
- if (clientSecret !== undefined) {
1708
- localVarFormParams.set('client_secret', clientSecret);
1709
- }
1710
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1711
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1712
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1713
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1714
- localVarRequestOptions.data = localVarFormParams.toString();
1715
- return {
1716
- url: toPathString(localVarUrlObj),
1717
- options: localVarRequestOptions,
1718
- };
1719
- }),
1720
- /**
1721
- *
1722
- * @summary Logout
1723
- * @param {string} body
1724
- * @param {*} [options] Override http request option.
1725
- * @throws {RequiredError}
1726
- */
1727
- logoutAuthLogoutPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1728
- // verify required parameter 'body' is not null or undefined
1729
- assertParamExists('logoutAuthLogoutPost', 'body', body);
1730
- const localVarPath = `/auth/logout`;
1731
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1732
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1733
- let baseOptions;
1734
- if (configuration) {
1735
- baseOptions = configuration.baseOptions;
1736
- }
1737
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1738
- const localVarHeaderParameter = {};
1739
- const localVarQueryParameter = {};
1740
- // authentication oauth2_password required
1741
- // oauth required
1742
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1743
- // authentication bearer_auth required
1744
- // http bearer authentication required
1745
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1746
- localVarHeaderParameter['Content-Type'] = 'application/json';
1747
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1748
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1749
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1750
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1751
- return {
1752
- url: toPathString(localVarUrlObj),
1753
- options: localVarRequestOptions,
1754
- };
1755
- }),
1756
- /**
1757
- *
1758
- * @summary New Device
1759
- * @param {NewDeviceBody} newDeviceBody
1760
- * @param {*} [options] Override http request option.
1761
- * @throws {RequiredError}
1762
- */
1763
- newDeviceInternalDevicesPost: (newDeviceBody_1, ...args_1) => __awaiter(this, [newDeviceBody_1, ...args_1], void 0, function* (newDeviceBody, options = {}) {
1764
- // verify required parameter 'newDeviceBody' is not null or undefined
1765
- assertParamExists('newDeviceInternalDevicesPost', 'newDeviceBody', newDeviceBody);
1766
- const localVarPath = `/internal/devices/`;
1767
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1768
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1769
- let baseOptions;
1770
- if (configuration) {
1771
- baseOptions = configuration.baseOptions;
1772
- }
1773
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1774
- const localVarHeaderParameter = {};
1775
- const localVarQueryParameter = {};
1776
- // authentication oauth2_password required
1777
- // oauth required
1778
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1779
- // authentication bearer_auth required
1780
- // http bearer authentication required
1781
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1782
- localVarHeaderParameter['Content-Type'] = 'application/json';
1783
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1784
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1785
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1786
- localVarRequestOptions.data = serializeDataIfNeeded(newDeviceBody, localVarRequestOptions, configuration);
1787
- return {
1788
- url: toPathString(localVarUrlObj),
1789
- options: localVarRequestOptions,
1790
- };
1791
- }),
1792
- /**
1793
- *
1794
- * @summary New Release
1795
- * @param {string} deviceId
1796
- * @param {File} releaseZip
1797
- * @param {string} md5
1798
- * @param {Array<string>} changelog
1799
- * @param {Array<string>} [bugs]
1800
- * @param {string | null} [notes]
1801
- * @param {boolean} [force]
1802
- * @param {*} [options] Override http request option.
1803
- * @throws {RequiredError}
1804
- */
1805
- 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 = {}) {
1806
- // verify required parameter 'deviceId' is not null or undefined
1807
- assertParamExists('newReleaseInternalReleasesPost', 'deviceId', deviceId);
1808
- // verify required parameter 'releaseZip' is not null or undefined
1809
- assertParamExists('newReleaseInternalReleasesPost', 'releaseZip', releaseZip);
1810
- // verify required parameter 'md5' is not null or undefined
1811
- assertParamExists('newReleaseInternalReleasesPost', 'md5', md5);
1812
- // verify required parameter 'changelog' is not null or undefined
1813
- assertParamExists('newReleaseInternalReleasesPost', 'changelog', changelog);
1814
- const localVarPath = `/internal/releases/`;
1815
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1816
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1817
- let baseOptions;
1818
- if (configuration) {
1819
- baseOptions = configuration.baseOptions;
1820
- }
1821
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1822
- const localVarHeaderParameter = {};
1823
- const localVarQueryParameter = {};
1824
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1825
- // authentication oauth2_password required
1826
- // oauth required
1827
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1828
- // authentication bearer_auth required
1829
- // http bearer authentication required
1830
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1831
- if (deviceId !== undefined) {
1832
- localVarFormParams.append('device_id', deviceId);
1833
- }
1834
- if (releaseZip !== undefined) {
1835
- localVarFormParams.append('release_zip', releaseZip);
1836
- }
1837
- if (md5 !== undefined) {
1838
- localVarFormParams.append('md5', md5);
1839
- }
1840
- if (changelog) {
1841
- localVarFormParams.append('changelog', changelog.join(COLLECTION_FORMATS.csv));
1842
- }
1843
- if (bugs) {
1844
- localVarFormParams.append('bugs', bugs.join(COLLECTION_FORMATS.csv));
1845
- }
1846
- if (notes !== undefined) {
1847
- localVarFormParams.append('notes', notes);
1848
- }
1849
- if (force !== undefined) {
1850
- localVarFormParams.append('force', String(force));
1851
- }
1852
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1853
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1854
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1855
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1856
- localVarRequestOptions.data = localVarFormParams;
1857
- return {
1858
- url: toPathString(localVarUrlObj),
1859
- options: localVarRequestOptions,
1860
- };
1861
- }),
1862
- /**
1863
- *
1864
- * @summary Renew
1865
- * @param {string} body
1866
- * @param {*} [options] Override http request option.
1867
- * @throws {RequiredError}
1868
- */
1869
- renewAuthRenewPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
1870
- // verify required parameter 'body' is not null or undefined
1871
- assertParamExists('renewAuthRenewPost', 'body', body);
1872
- const localVarPath = `/auth/renew`;
1873
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1874
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1875
- let baseOptions;
1876
- if (configuration) {
1877
- baseOptions = configuration.baseOptions;
1878
- }
1879
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1880
- const localVarHeaderParameter = {};
1881
- const localVarQueryParameter = {};
1882
- // authentication oauth2_password required
1883
- // oauth required
1884
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1885
- // authentication bearer_auth required
1886
- // http bearer authentication required
1887
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1888
- localVarHeaderParameter['Content-Type'] = 'application/json';
1889
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1890
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1891
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1892
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1893
- return {
1894
- url: toPathString(localVarUrlObj),
1895
- options: localVarRequestOptions,
1896
- };
1897
- }),
1898
- /**
1899
- *
1900
- * @summary Update Device
1901
- * @param {string} deviceId
1902
- * @param {DeviceUpdateBody} deviceUpdateBody
1903
- * @param {*} [options] Override http request option.
1904
- * @throws {RequiredError}
1905
- */
1906
- updateDeviceInternalDevicesDeviceIdPut: (deviceId_1, deviceUpdateBody_1, ...args_1) => __awaiter(this, [deviceId_1, deviceUpdateBody_1, ...args_1], void 0, function* (deviceId, deviceUpdateBody, options = {}) {
1907
- // verify required parameter 'deviceId' is not null or undefined
1908
- assertParamExists('updateDeviceInternalDevicesDeviceIdPut', 'deviceId', deviceId);
1909
- // verify required parameter 'deviceUpdateBody' is not null or undefined
1910
- assertParamExists('updateDeviceInternalDevicesDeviceIdPut', 'deviceUpdateBody', deviceUpdateBody);
1911
- const localVarPath = `/internal/devices/{device_id}`
1912
- .replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
1913
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1914
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1915
- let baseOptions;
1916
- if (configuration) {
1917
- baseOptions = configuration.baseOptions;
1918
- }
1919
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1920
- const localVarHeaderParameter = {};
1921
- const localVarQueryParameter = {};
1922
- // authentication oauth2_password required
1923
- // oauth required
1924
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1925
- // authentication bearer_auth required
1926
- // http bearer authentication required
1927
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1928
- localVarHeaderParameter['Content-Type'] = 'application/json';
1929
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1930
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1931
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1932
- localVarRequestOptions.data = serializeDataIfNeeded(deviceUpdateBody, localVarRequestOptions, configuration);
1933
- return {
1934
- url: toPathString(localVarUrlObj),
1935
- options: localVarRequestOptions,
1936
- };
1937
- }),
1938
- /**
1939
- *
1940
- * @summary Update User
1941
- * @param {string} userId
1942
- * @param {UserUpdateBody} userUpdateBody
1943
- * @param {*} [options] Override http request option.
1944
- * @throws {RequiredError}
1945
- */
1946
- updateUserInternalUsersUserIdPut: (userId_1, userUpdateBody_1, ...args_1) => __awaiter(this, [userId_1, userUpdateBody_1, ...args_1], void 0, function* (userId, userUpdateBody, options = {}) {
1947
- // verify required parameter 'userId' is not null or undefined
1948
- assertParamExists('updateUserInternalUsersUserIdPut', 'userId', userId);
1949
- // verify required parameter 'userUpdateBody' is not null or undefined
1950
- assertParamExists('updateUserInternalUsersUserIdPut', 'userUpdateBody', userUpdateBody);
1951
- const localVarPath = `/internal/users/{user_id}`
1952
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)));
1953
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1954
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1955
- let baseOptions;
1956
- if (configuration) {
1957
- baseOptions = configuration.baseOptions;
1958
- }
1959
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1960
- const localVarHeaderParameter = {};
1961
- const localVarQueryParameter = {};
1962
- // authentication oauth2_password required
1963
- // oauth required
1964
- yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
1965
- // authentication bearer_auth required
1966
- // http bearer authentication required
1967
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1968
- localVarHeaderParameter['Content-Type'] = 'application/json';
1969
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1970
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1971
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1972
- localVarRequestOptions.data = serializeDataIfNeeded(userUpdateBody, localVarRequestOptions, configuration);
1973
- return {
1974
- url: toPathString(localVarUrlObj),
1975
- options: localVarRequestOptions,
1976
- };
1977
- }),
1978
- };
1979
- };
1980
- /**
1981
- * InternalApi - functional programming interface
1982
- * @export
1983
- */
1984
- export const InternalApiFp = function (configuration) {
1985
- const localVarAxiosParamCreator = InternalApiAxiosParamCreator(configuration);
1986
- return {
1987
- /**
1988
- * Change the password for a user.
1989
- * @summary Change Password
1990
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
1991
- * @param {*} [options] Override http request option.
1992
- * @throws {RequiredError}
1993
- */
1994
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
1995
- return __awaiter(this, void 0, void 0, function* () {
1996
- var _a, _b, _c;
1997
- const localVarAxiosArgs = yield localVarAxiosParamCreator.changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options);
1998
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1999
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.changePasswordProfileChangePasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2000
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2001
- });
2002
- },
2003
- /**
2004
- * Delete release
2005
- * @summary Del Release
2006
- * @param {string} releaseId
2007
- * @param {*} [options] Override http request option.
2008
- * @throws {RequiredError}
2009
- */
2010
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2011
- return __awaiter(this, void 0, void 0, function* () {
2012
- var _a, _b, _c;
2013
- const localVarAxiosArgs = yield localVarAxiosParamCreator.delReleaseInternalReleasesReleaseIdDelete(releaseId, options);
2014
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2015
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.delReleaseInternalReleasesReleaseIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2016
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2017
- });
2018
- },
2019
- /**
2020
- *
2021
- * @summary Delete User
2022
- * @param {string} userId
2023
- * @param {*} [options] Override http request option.
2024
- * @throws {RequiredError}
2025
- */
2026
- deleteUserInternalUsersUserIdDelete(userId, options) {
2027
- return __awaiter(this, void 0, void 0, function* () {
2028
- var _a, _b, _c;
2029
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserInternalUsersUserIdDelete(userId, options);
2030
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2031
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.deleteUserInternalUsersUserIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2032
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2033
- });
2034
- },
2035
- /**
2036
- * Edit Release information
2037
- * @summary Edit Release
2038
- * @param {string} releaseId
2039
- * @param {ReleaseUpdateBody} releaseUpdateBody
2040
- * @param {*} [options] Override http request option.
2041
- * @throws {RequiredError}
2042
- */
2043
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2044
- return __awaiter(this, void 0, void 0, function* () {
2045
- var _a, _b, _c;
2046
- const localVarAxiosArgs = yield localVarAxiosParamCreator.editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options);
2047
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2048
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.editReleaseInternalReleasesReleaseIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2049
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2050
- });
2051
- },
2052
- /**
2053
- *
2054
- * @summary Get Device Info
2055
- * @param {string} deviceId
2056
- * @param {*} [options] Override http request option.
2057
- * @throws {RequiredError}
2058
- */
2059
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2060
- return __awaiter(this, void 0, void 0, function* () {
2061
- var _a, _b, _c;
2062
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options);
2063
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2064
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getDeviceInfoInternalDevicesDeviceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2065
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2066
- });
2067
- },
2068
- /**
2069
- * Get a paginated list of logs with optional filtering.
2070
- * @summary Get Logs
2071
- * @param {number} [page]
2072
- * @param {number} [perPage]
2073
- * @param {string | null} [deviceId]
2074
- * @param {string | null} [releaseId]
2075
- * @param {string | null} [userId]
2076
- * @param {boolean | null} [hideVerbose]
2077
- * @param {*} [options] Override http request option.
2078
- * @throws {RequiredError}
2079
- */
2080
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2081
- return __awaiter(this, void 0, void 0, function* () {
2082
- var _a, _b, _c;
2083
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options);
2084
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2085
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getLogsInternalLogsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2086
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2087
- });
2088
- },
2089
- /**
2090
- * Get release information
2091
- * @summary Get Release Info
2092
- * @param {string} releaseId
2093
- * @param {*} [options] Override http request option.
2094
- * @throws {RequiredError}
2095
- */
2096
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2097
- return __awaiter(this, void 0, void 0, function* () {
2098
- var _a, _b, _c;
2099
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options);
2100
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2101
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getReleaseInfoInternalReleasesReleaseIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2102
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2103
- });
2104
- },
2105
- /**
2106
- * Download release ZIP directly
2107
- * @summary Get Release Zip
2108
- * @param {string} releaseId
2109
- * @param {*} [options] Override http request option.
2110
- * @throws {RequiredError}
2111
- */
2112
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2113
- return __awaiter(this, void 0, void 0, function* () {
2114
- var _a, _b, _c;
2115
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options);
2116
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2117
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getReleaseZipInternalReleasesReleaseIdDlGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2118
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2119
- });
2120
- },
2121
- /**
2122
- *
2123
- * @summary Get User By Id
2124
- * @param {string} userId
2125
- * @param {*} [options] Override http request option.
2126
- * @throws {RequiredError}
2127
- */
2128
- getUserByIdInternalUsersUserIdGet(userId, options) {
2129
- return __awaiter(this, void 0, void 0, function* () {
2130
- var _a, _b, _c;
2131
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserByIdInternalUsersUserIdGet(userId, options);
2132
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2133
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.getUserByIdInternalUsersUserIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2134
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2135
- });
2136
- },
2137
- /**
2138
- *
2139
- * @summary List Users
2140
- * @param {*} [options] Override http request option.
2141
- * @throws {RequiredError}
2142
- */
2143
- listUsersInternalUsersGet(options) {
2144
- return __awaiter(this, void 0, void 0, function* () {
2145
- var _a, _b, _c;
2146
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsersInternalUsersGet(options);
2147
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2148
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.listUsersInternalUsersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2149
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2150
- });
2151
- },
2152
- /**
2153
- * OAuth2 compatible token login, get an access token for future requests
2154
- * @summary Login Oauth
2155
- * @param {string} username
2156
- * @param {string} password
2157
- * @param {number} [minTime]
2158
- * @param {number} [maxTime]
2159
- * @param {string | null} [grantType]
2160
- * @param {string} [scope]
2161
- * @param {string | null} [clientId]
2162
- * @param {string | null} [clientSecret]
2163
- * @param {*} [options] Override http request option.
2164
- * @throws {RequiredError}
2165
- */
2166
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2167
- return __awaiter(this, void 0, void 0, function* () {
2168
- var _a, _b, _c;
2169
- const localVarAxiosArgs = yield localVarAxiosParamCreator.loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options);
2170
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2171
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.loginOauthAuthLoginPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2172
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2173
- });
2174
- },
2175
- /**
2176
- *
2177
- * @summary Logout
2178
- * @param {string} body
2179
- * @param {*} [options] Override http request option.
2180
- * @throws {RequiredError}
2181
- */
2182
- logoutAuthLogoutPost(body, options) {
2183
- return __awaiter(this, void 0, void 0, function* () {
2184
- var _a, _b, _c;
2185
- const localVarAxiosArgs = yield localVarAxiosParamCreator.logoutAuthLogoutPost(body, options);
2186
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2187
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.logoutAuthLogoutPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2188
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2189
- });
2190
- },
2191
- /**
2192
- *
2193
- * @summary New Device
2194
- * @param {NewDeviceBody} newDeviceBody
2195
- * @param {*} [options] Override http request option.
2196
- * @throws {RequiredError}
2197
- */
2198
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2199
- return __awaiter(this, void 0, void 0, function* () {
2200
- var _a, _b, _c;
2201
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newDeviceInternalDevicesPost(newDeviceBody, options);
2202
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2203
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.newDeviceInternalDevicesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2204
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2205
- });
2206
- },
2207
- /**
2208
- *
2209
- * @summary New Release
2210
- * @param {string} deviceId
2211
- * @param {File} releaseZip
2212
- * @param {string} md5
2213
- * @param {Array<string>} changelog
2214
- * @param {Array<string>} [bugs]
2215
- * @param {string | null} [notes]
2216
- * @param {boolean} [force]
2217
- * @param {*} [options] Override http request option.
2218
- * @throws {RequiredError}
2219
- */
2220
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2221
- return __awaiter(this, void 0, void 0, function* () {
2222
- var _a, _b, _c;
2223
- const localVarAxiosArgs = yield localVarAxiosParamCreator.newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options);
2224
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2225
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.newReleaseInternalReleasesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2226
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2227
- });
2228
- },
2229
- /**
2230
- *
2231
- * @summary Renew
2232
- * @param {string} body
2233
- * @param {*} [options] Override http request option.
2234
- * @throws {RequiredError}
2235
- */
2236
- renewAuthRenewPost(body, options) {
2237
- return __awaiter(this, void 0, void 0, function* () {
2238
- var _a, _b, _c;
2239
- const localVarAxiosArgs = yield localVarAxiosParamCreator.renewAuthRenewPost(body, options);
2240
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2241
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.renewAuthRenewPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2242
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2243
- });
2244
- },
2245
- /**
2246
- *
2247
- * @summary Update Device
2248
- * @param {string} deviceId
2249
- * @param {DeviceUpdateBody} deviceUpdateBody
2250
- * @param {*} [options] Override http request option.
2251
- * @throws {RequiredError}
2252
- */
2253
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2254
- return __awaiter(this, void 0, void 0, function* () {
2255
- var _a, _b, _c;
2256
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options);
2257
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2258
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.updateDeviceInternalDevicesDeviceIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2259
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2260
- });
2261
- },
2262
- /**
2263
- *
2264
- * @summary Update User
2265
- * @param {string} userId
2266
- * @param {UserUpdateBody} userUpdateBody
2267
- * @param {*} [options] Override http request option.
2268
- * @throws {RequiredError}
2269
- */
2270
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2271
- return __awaiter(this, void 0, void 0, function* () {
2272
- var _a, _b, _c;
2273
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserInternalUsersUserIdPut(userId, userUpdateBody, options);
2274
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2275
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.updateUserInternalUsersUserIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2276
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2277
- });
2278
- },
2279
- };
2280
- };
2281
- /**
2282
- * InternalApi - factory interface
2283
- * @export
2284
- */
2285
- export const InternalApiFactory = function (configuration, basePath, axios) {
2286
- const localVarFp = InternalApiFp(configuration);
2287
- return {
2288
- /**
2289
- * Change the password for a user.
2290
- * @summary Change Password
2291
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2292
- * @param {*} [options] Override http request option.
2293
- * @throws {RequiredError}
2294
- */
2295
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2296
- return localVarFp.changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options).then((request) => request(axios, basePath));
2297
- },
2298
- /**
2299
- * Delete release
2300
- * @summary Del Release
2301
- * @param {string} releaseId
2302
- * @param {*} [options] Override http request option.
2303
- * @throws {RequiredError}
2304
- */
2305
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2306
- return localVarFp.delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(axios, basePath));
2307
- },
2308
- /**
2309
- *
2310
- * @summary Delete User
2311
- * @param {string} userId
2312
- * @param {*} [options] Override http request option.
2313
- * @throws {RequiredError}
2314
- */
2315
- deleteUserInternalUsersUserIdDelete(userId, options) {
2316
- return localVarFp.deleteUserInternalUsersUserIdDelete(userId, options).then((request) => request(axios, basePath));
2317
- },
2318
- /**
2319
- * Edit Release information
2320
- * @summary Edit Release
2321
- * @param {string} releaseId
2322
- * @param {ReleaseUpdateBody} releaseUpdateBody
2323
- * @param {*} [options] Override http request option.
2324
- * @throws {RequiredError}
2325
- */
2326
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2327
- return localVarFp.editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options).then((request) => request(axios, basePath));
2328
- },
2329
- /**
2330
- *
2331
- * @summary Get Device Info
2332
- * @param {string} deviceId
2333
- * @param {*} [options] Override http request option.
2334
- * @throws {RequiredError}
2335
- */
2336
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2337
- return localVarFp.getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options).then((request) => request(axios, basePath));
2338
- },
2339
- /**
2340
- * Get a paginated list of logs with optional filtering.
2341
- * @summary Get Logs
2342
- * @param {number} [page]
2343
- * @param {number} [perPage]
2344
- * @param {string | null} [deviceId]
2345
- * @param {string | null} [releaseId]
2346
- * @param {string | null} [userId]
2347
- * @param {boolean | null} [hideVerbose]
2348
- * @param {*} [options] Override http request option.
2349
- * @throws {RequiredError}
2350
- */
2351
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2352
- return localVarFp.getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options).then((request) => request(axios, basePath));
2353
- },
2354
- /**
2355
- * Get release information
2356
- * @summary Get Release Info
2357
- * @param {string} releaseId
2358
- * @param {*} [options] Override http request option.
2359
- * @throws {RequiredError}
2360
- */
2361
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2362
- return localVarFp.getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options).then((request) => request(axios, basePath));
2363
- },
2364
- /**
2365
- * Download release ZIP directly
2366
- * @summary Get Release Zip
2367
- * @param {string} releaseId
2368
- * @param {*} [options] Override http request option.
2369
- * @throws {RequiredError}
2370
- */
2371
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2372
- return localVarFp.getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options).then((request) => request(axios, basePath));
2373
- },
2374
- /**
2375
- *
2376
- * @summary Get User By Id
2377
- * @param {string} userId
2378
- * @param {*} [options] Override http request option.
2379
- * @throws {RequiredError}
2380
- */
2381
- getUserByIdInternalUsersUserIdGet(userId, options) {
2382
- return localVarFp.getUserByIdInternalUsersUserIdGet(userId, options).then((request) => request(axios, basePath));
2383
- },
2384
- /**
2385
- *
2386
- * @summary List Users
2387
- * @param {*} [options] Override http request option.
2388
- * @throws {RequiredError}
2389
- */
2390
- listUsersInternalUsersGet(options) {
2391
- return localVarFp.listUsersInternalUsersGet(options).then((request) => request(axios, basePath));
2392
- },
2393
- /**
2394
- * OAuth2 compatible token login, get an access token for future requests
2395
- * @summary Login Oauth
2396
- * @param {string} username
2397
- * @param {string} password
2398
- * @param {number} [minTime]
2399
- * @param {number} [maxTime]
2400
- * @param {string | null} [grantType]
2401
- * @param {string} [scope]
2402
- * @param {string | null} [clientId]
2403
- * @param {string | null} [clientSecret]
2404
- * @param {*} [options] Override http request option.
2405
- * @throws {RequiredError}
2406
- */
2407
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2408
- return localVarFp.loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options).then((request) => request(axios, basePath));
2409
- },
2410
- /**
2411
- *
2412
- * @summary Logout
2413
- * @param {string} body
2414
- * @param {*} [options] Override http request option.
2415
- * @throws {RequiredError}
2416
- */
2417
- logoutAuthLogoutPost(body, options) {
2418
- return localVarFp.logoutAuthLogoutPost(body, options).then((request) => request(axios, basePath));
2419
- },
2420
- /**
2421
- *
2422
- * @summary New Device
2423
- * @param {NewDeviceBody} newDeviceBody
2424
- * @param {*} [options] Override http request option.
2425
- * @throws {RequiredError}
2426
- */
2427
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2428
- return localVarFp.newDeviceInternalDevicesPost(newDeviceBody, options).then((request) => request(axios, basePath));
2429
- },
2430
- /**
2431
- *
2432
- * @summary New Release
2433
- * @param {string} deviceId
2434
- * @param {File} releaseZip
2435
- * @param {string} md5
2436
- * @param {Array<string>} changelog
2437
- * @param {Array<string>} [bugs]
2438
- * @param {string | null} [notes]
2439
- * @param {boolean} [force]
2440
- * @param {*} [options] Override http request option.
2441
- * @throws {RequiredError}
2442
- */
2443
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2444
- return localVarFp.newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options).then((request) => request(axios, basePath));
2445
- },
2446
- /**
2447
- *
2448
- * @summary Renew
2449
- * @param {string} body
2450
- * @param {*} [options] Override http request option.
2451
- * @throws {RequiredError}
2452
- */
2453
- renewAuthRenewPost(body, options) {
2454
- return localVarFp.renewAuthRenewPost(body, options).then((request) => request(axios, basePath));
2455
- },
2456
- /**
2457
- *
2458
- * @summary Update Device
2459
- * @param {string} deviceId
2460
- * @param {DeviceUpdateBody} deviceUpdateBody
2461
- * @param {*} [options] Override http request option.
2462
- * @throws {RequiredError}
2463
- */
2464
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2465
- return localVarFp.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(axios, basePath));
2466
- },
2467
- /**
2468
- *
2469
- * @summary Update User
2470
- * @param {string} userId
2471
- * @param {UserUpdateBody} userUpdateBody
2472
- * @param {*} [options] Override http request option.
2473
- * @throws {RequiredError}
2474
- */
2475
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2476
- return localVarFp.updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(axios, basePath));
2477
- },
2478
- };
2479
- };
2480
- /**
2481
- * InternalApi - object-oriented interface
2482
- * @export
2483
- * @class InternalApi
2484
- * @extends {BaseAPI}
2485
- */
2486
- export class InternalApi extends BaseAPI {
2487
- /**
2488
- * Change the password for a user.
2489
- * @summary Change Password
2490
- * @param {BodyChangePasswordProfileChangePasswordPost} bodyChangePasswordProfileChangePasswordPost
2491
- * @param {*} [options] Override http request option.
2492
- * @throws {RequiredError}
2493
- * @memberof InternalApi
2494
- */
2495
- changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options) {
2496
- return InternalApiFp(this.configuration).changePasswordProfileChangePasswordPost(bodyChangePasswordProfileChangePasswordPost, options).then((request) => request(this.axios, this.basePath));
2497
- }
2498
- /**
2499
- * Delete release
2500
- * @summary Del Release
2501
- * @param {string} releaseId
2502
- * @param {*} [options] Override http request option.
2503
- * @throws {RequiredError}
2504
- * @memberof InternalApi
2505
- */
2506
- delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2507
- return InternalApiFp(this.configuration).delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(this.axios, this.basePath));
2508
- }
2509
- /**
2510
- *
2511
- * @summary Delete User
2512
- * @param {string} userId
2513
- * @param {*} [options] Override http request option.
2514
- * @throws {RequiredError}
2515
- * @memberof InternalApi
2516
- */
2517
- deleteUserInternalUsersUserIdDelete(userId, options) {
2518
- return InternalApiFp(this.configuration).deleteUserInternalUsersUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
2519
- }
2520
- /**
2521
- * Edit Release information
2522
- * @summary Edit Release
2523
- * @param {string} releaseId
2524
- * @param {ReleaseUpdateBody} releaseUpdateBody
2525
- * @param {*} [options] Override http request option.
2526
- * @throws {RequiredError}
2527
- * @memberof InternalApi
2528
- */
2529
- editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options) {
2530
- return InternalApiFp(this.configuration).editReleaseInternalReleasesReleaseIdPut(releaseId, releaseUpdateBody, options).then((request) => request(this.axios, this.basePath));
2531
- }
2532
- /**
2533
- *
2534
- * @summary Get Device Info
2535
- * @param {string} deviceId
2536
- * @param {*} [options] Override http request option.
2537
- * @throws {RequiredError}
2538
- * @memberof InternalApi
2539
- */
2540
- getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options) {
2541
- return InternalApiFp(this.configuration).getDeviceInfoInternalDevicesDeviceIdGet(deviceId, options).then((request) => request(this.axios, this.basePath));
2542
- }
2543
- /**
2544
- * Get a paginated list of logs with optional filtering.
2545
- * @summary Get Logs
2546
- * @param {number} [page]
2547
- * @param {number} [perPage]
2548
- * @param {string | null} [deviceId]
2549
- * @param {string | null} [releaseId]
2550
- * @param {string | null} [userId]
2551
- * @param {boolean | null} [hideVerbose]
2552
- * @param {*} [options] Override http request option.
2553
- * @throws {RequiredError}
2554
- * @memberof InternalApi
2555
- */
2556
- getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options) {
2557
- return InternalApiFp(this.configuration).getLogsInternalLogsGet(page, perPage, deviceId, releaseId, userId, hideVerbose, options).then((request) => request(this.axios, this.basePath));
2558
- }
2559
- /**
2560
- * Get release information
2561
- * @summary Get Release Info
2562
- * @param {string} releaseId
2563
- * @param {*} [options] Override http request option.
2564
- * @throws {RequiredError}
2565
- * @memberof InternalApi
2566
- */
2567
- getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options) {
2568
- return InternalApiFp(this.configuration).getReleaseInfoInternalReleasesReleaseIdGet(releaseId, options).then((request) => request(this.axios, this.basePath));
2569
- }
2570
- /**
2571
- * Download release ZIP directly
2572
- * @summary Get Release Zip
2573
- * @param {string} releaseId
2574
- * @param {*} [options] Override http request option.
2575
- * @throws {RequiredError}
2576
- * @memberof InternalApi
2577
- */
2578
- getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options) {
2579
- return InternalApiFp(this.configuration).getReleaseZipInternalReleasesReleaseIdDlGet(releaseId, options).then((request) => request(this.axios, this.basePath));
2580
- }
2581
- /**
2582
- *
2583
- * @summary Get User By Id
2584
- * @param {string} userId
2585
- * @param {*} [options] Override http request option.
2586
- * @throws {RequiredError}
2587
- * @memberof InternalApi
2588
- */
2589
- getUserByIdInternalUsersUserIdGet(userId, options) {
2590
- return InternalApiFp(this.configuration).getUserByIdInternalUsersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
2591
- }
2592
- /**
2593
- *
2594
- * @summary List Users
2595
- * @param {*} [options] Override http request option.
2596
- * @throws {RequiredError}
2597
- * @memberof InternalApi
2598
- */
2599
- listUsersInternalUsersGet(options) {
2600
- return InternalApiFp(this.configuration).listUsersInternalUsersGet(options).then((request) => request(this.axios, this.basePath));
2601
- }
2602
- /**
2603
- * OAuth2 compatible token login, get an access token for future requests
2604
- * @summary Login Oauth
2605
- * @param {string} username
2606
- * @param {string} password
2607
- * @param {number} [minTime]
2608
- * @param {number} [maxTime]
2609
- * @param {string | null} [grantType]
2610
- * @param {string} [scope]
2611
- * @param {string | null} [clientId]
2612
- * @param {string | null} [clientSecret]
2613
- * @param {*} [options] Override http request option.
2614
- * @throws {RequiredError}
2615
- * @memberof InternalApi
2616
- */
2617
- loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options) {
2618
- return InternalApiFp(this.configuration).loginOauthAuthLoginPost(username, password, minTime, maxTime, grantType, scope, clientId, clientSecret, options).then((request) => request(this.axios, this.basePath));
2619
- }
2620
- /**
2621
- *
2622
- * @summary Logout
2623
- * @param {string} body
2624
- * @param {*} [options] Override http request option.
2625
- * @throws {RequiredError}
2626
- * @memberof InternalApi
2627
- */
2628
- logoutAuthLogoutPost(body, options) {
2629
- return InternalApiFp(this.configuration).logoutAuthLogoutPost(body, options).then((request) => request(this.axios, this.basePath));
2630
- }
2631
- /**
2632
- *
2633
- * @summary New Device
2634
- * @param {NewDeviceBody} newDeviceBody
2635
- * @param {*} [options] Override http request option.
2636
- * @throws {RequiredError}
2637
- * @memberof InternalApi
2638
- */
2639
- newDeviceInternalDevicesPost(newDeviceBody, options) {
2640
- return InternalApiFp(this.configuration).newDeviceInternalDevicesPost(newDeviceBody, options).then((request) => request(this.axios, this.basePath));
2641
- }
2642
- /**
2643
- *
2644
- * @summary New Release
2645
- * @param {string} deviceId
2646
- * @param {File} releaseZip
2647
- * @param {string} md5
2648
- * @param {Array<string>} changelog
2649
- * @param {Array<string>} [bugs]
2650
- * @param {string | null} [notes]
2651
- * @param {boolean} [force]
2652
- * @param {*} [options] Override http request option.
2653
- * @throws {RequiredError}
2654
- * @memberof InternalApi
2655
- */
2656
- newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options) {
2657
- return InternalApiFp(this.configuration).newReleaseInternalReleasesPost(deviceId, releaseZip, md5, changelog, bugs, notes, force, options).then((request) => request(this.axios, this.basePath));
2658
- }
2659
- /**
2660
- *
2661
- * @summary Renew
2662
- * @param {string} body
2663
- * @param {*} [options] Override http request option.
2664
- * @throws {RequiredError}
2665
- * @memberof InternalApi
2666
- */
2667
- renewAuthRenewPost(body, options) {
2668
- return InternalApiFp(this.configuration).renewAuthRenewPost(body, options).then((request) => request(this.axios, this.basePath));
2669
- }
2670
- /**
2671
- *
2672
- * @summary Update Device
2673
- * @param {string} deviceId
2674
- * @param {DeviceUpdateBody} deviceUpdateBody
2675
- * @param {*} [options] Override http request option.
2676
- * @throws {RequiredError}
2677
- * @memberof InternalApi
2678
- */
2679
- updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2680
- return InternalApiFp(this.configuration).updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(this.axios, this.basePath));
2681
- }
2682
- /**
2683
- *
2684
- * @summary Update User
2685
- * @param {string} userId
2686
- * @param {UserUpdateBody} userUpdateBody
2687
- * @param {*} [options] Override http request option.
2688
- * @throws {RequiredError}
2689
- * @memberof InternalApi
2690
- */
2691
- updateUserInternalUsersUserIdPut(userId, userUpdateBody, options) {
2692
- return InternalApiFp(this.configuration).updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(this.axios, this.basePath));
2693
- }
2694
- }
2695
- /**
2696
- * ReleaseApi - axios parameter creator
2697
- * @export
2698
- */
2699
- export const ReleaseApiAxiosParamCreator = function (configuration) {
2700
- return {
2701
- /**
2702
- * 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!
2703
- * @summary Get Release
2704
- * @param {string | null} [releaseId] Release ID
2705
- * @param {string | null} [id] Release ID (deprecated)
2706
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
2707
- * @param {string | null} [filename]
2708
- * @param {*} [options] Override http request option.
2709
- * @throws {RequiredError}
2710
- */
2711
- 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 = {}) {
2712
- const localVarPath = `/releases/get`;
2713
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2714
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2715
- let baseOptions;
2716
- if (configuration) {
2717
- baseOptions = configuration.baseOptions;
2718
- }
2719
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2720
- const localVarHeaderParameter = {};
2721
- const localVarQueryParameter = {};
2722
- if (releaseId !== undefined) {
2723
- localVarQueryParameter['release_id'] = releaseId;
2724
- }
2725
- if (id !== undefined) {
2726
- localVarQueryParameter['_id'] = id;
2727
- }
2728
- if (buildId !== undefined) {
2729
- localVarQueryParameter['build_id'] = buildId;
2730
- }
2731
- if (filename !== undefined) {
2732
- localVarQueryParameter['filename'] = filename;
2733
- }
2734
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2735
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2736
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2737
- return {
2738
- url: toPathString(localVarUrlObj),
2739
- options: localVarRequestOptions,
2740
- };
2741
- }),
2742
- /**
2743
- * Gets release information using the release ID, nothing to discuss really.
2744
- * @summary Get Release Short
2745
- * @param {string} releaseId
2746
- * @param {*} [options] Override http request option.
2747
- * @deprecated
2748
- * @throws {RequiredError}
2749
- */
2750
- getReleaseDeprecated: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
2751
- // verify required parameter 'releaseId' is not null or undefined
2752
- assertParamExists('getReleaseDeprecated', 'releaseId', releaseId);
2753
- const localVarPath = `/releases/{release_id}`
2754
- .replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
2755
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2756
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2757
- let baseOptions;
2758
- if (configuration) {
2759
- baseOptions = configuration.baseOptions;
2760
- }
2761
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2762
- const localVarHeaderParameter = {};
2763
- const localVarQueryParameter = {};
2764
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2765
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2766
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2767
- return {
2768
- url: toPathString(localVarUrlObj),
2769
- options: localVarRequestOptions,
2770
- };
2771
- }),
2772
- /**
2773
- * 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.
2774
- * @summary Get Releases
2775
- * @param {Array<string>} [id] Filter by Release IDs
2776
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
2777
- * @param {Array<string>} [buildId] Filter by Build IDs
2778
- * @param {Array<string>} [deviceId] Filter by Device IDs
2779
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
2780
- * @param {Array<string>} [codename] Filter by device codenames
2781
- * @param {Array<string>} [version] Filter by release version
2782
- * @param {Array<ReleaseType>} [type] Filter by release type
2783
- * @param {boolean | null} [archived] Filter by the archived status
2784
- * @param {boolean | null} [freezed] Filter by the freezed status
2785
- * @param {string | null} [afterReleaseId] Show releases after the provided one
2786
- * @param {number | null} [afterDate] Show releases after the provided timestamp
2787
- * @param {ReleasesSort} [sort] Sort mode
2788
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
2789
- * @param {number | null} [skip] Skip query results
2790
- * @param {number | null} [limit] Limit query results (0 means unlimited)
2791
- * @param {*} [options] Override http request option.
2792
- * @throws {RequiredError}
2793
- */
2794
- 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 = {}) {
2795
- const localVarPath = `/releases/`;
2796
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2797
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2798
- let baseOptions;
2799
- if (configuration) {
2800
- baseOptions = configuration.baseOptions;
2801
- }
2802
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2803
- const localVarHeaderParameter = {};
2804
- const localVarQueryParameter = {};
2805
- if (id) {
2806
- localVarQueryParameter['id'] = id;
2807
- }
2808
- if (id2) {
2809
- localVarQueryParameter['_id'] = id2;
2810
- }
2811
- if (buildId) {
2812
- localVarQueryParameter['build_id'] = buildId;
2813
- }
2814
- if (deviceId) {
2815
- localVarQueryParameter['device_id'] = deviceId;
2816
- }
2817
- if (maintainerId) {
2818
- localVarQueryParameter['maintainer_id'] = maintainerId;
2819
- }
2820
- if (codename) {
2821
- localVarQueryParameter['codename'] = codename;
2822
- }
2823
- if (version) {
2824
- localVarQueryParameter['version'] = version;
2825
- }
2826
- if (type) {
2827
- localVarQueryParameter['type'] = type;
2828
- }
2829
- if (archived !== undefined) {
2830
- localVarQueryParameter['archived'] = archived;
2831
- }
2832
- if (freezed !== undefined) {
2833
- localVarQueryParameter['freezed'] = freezed;
2834
- }
2835
- if (afterReleaseId !== undefined) {
2836
- localVarQueryParameter['after_release_id'] = afterReleaseId;
2837
- }
2838
- if (afterDate !== undefined) {
2839
- localVarQueryParameter['after_date'] = afterDate;
2840
- }
2841
- if (sort !== undefined) {
2842
- localVarQueryParameter['sort'] = sort;
2843
- }
2844
- if (group !== undefined) {
2845
- localVarQueryParameter['group'] = group;
2846
- }
2847
- if (skip !== undefined) {
2848
- localVarQueryParameter['skip'] = skip;
2849
- }
2850
- if (limit !== undefined) {
2851
- localVarQueryParameter['limit'] = limit;
2852
- }
2853
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2854
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2855
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2856
- return {
2857
- url: toPathString(localVarUrlObj),
2858
- options: localVarRequestOptions,
2859
- };
2860
- }),
2861
- /**
2862
- * 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!
2863
- * @summary Get Updates
2864
- * @param {string} lastKnownId
2865
- * @param {Array<string>} [deviceId] Filter by device ID
2866
- * @param {Array<ReleaseType>} [type] Filter by release type
2867
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
2868
- * @param {number | null} [skip] Skip query results
2869
- * @param {number | null} [limit] Limit query results (0 means unlimited)
2870
- * @param {*} [options] Override http request option.
2871
- * @deprecated
2872
- * @throws {RequiredError}
2873
- */
2874
- 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 = {}) {
2875
- // verify required parameter 'lastKnownId' is not null or undefined
2876
- assertParamExists('getUpdatesDeprecated', 'lastKnownId', lastKnownId);
2877
- const localVarPath = `/updates/{last_known_id}`
2878
- .replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
2879
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2880
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2881
- let baseOptions;
2882
- if (configuration) {
2883
- baseOptions = configuration.baseOptions;
2884
- }
2885
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2886
- const localVarHeaderParameter = {};
2887
- const localVarQueryParameter = {};
2888
- if (deviceId) {
2889
- localVarQueryParameter['device_id'] = deviceId;
2890
- }
2891
- if (type) {
2892
- localVarQueryParameter['type'] = type;
2893
- }
2894
- if (releaseType) {
2895
- localVarQueryParameter['release_type'] = releaseType;
2896
- }
2897
- if (skip !== undefined) {
2898
- localVarQueryParameter['skip'] = skip;
2899
- }
2900
- if (limit !== undefined) {
2901
- localVarQueryParameter['limit'] = limit;
2902
- }
2903
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2904
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2905
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2906
- return {
2907
- url: toPathString(localVarUrlObj),
2908
- options: localVarRequestOptions,
2909
- };
2910
- }),
2911
- };
2912
- };
2913
- /**
2914
- * ReleaseApi - functional programming interface
2915
- * @export
2916
- */
2917
- export const ReleaseApiFp = function (configuration) {
2918
- const localVarAxiosParamCreator = ReleaseApiAxiosParamCreator(configuration);
2919
- return {
2920
- /**
2921
- * 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!
2922
- * @summary Get Release
2923
- * @param {string | null} [releaseId] Release ID
2924
- * @param {string | null} [id] Release ID (deprecated)
2925
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
2926
- * @param {string | null} [filename]
2927
- * @param {*} [options] Override http request option.
2928
- * @throws {RequiredError}
2929
- */
2930
- getRelease(releaseId, id, buildId, filename, options) {
2931
- return __awaiter(this, void 0, void 0, function* () {
2932
- var _a, _b, _c;
2933
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRelease(releaseId, id, buildId, filename, options);
2934
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2935
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getRelease']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2936
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2937
- });
2938
- },
2939
- /**
2940
- * Gets release information using the release ID, nothing to discuss really.
2941
- * @summary Get Release Short
2942
- * @param {string} releaseId
2943
- * @param {*} [options] Override http request option.
2944
- * @deprecated
2945
- * @throws {RequiredError}
2946
- */
2947
- getReleaseDeprecated(releaseId, options) {
2948
- return __awaiter(this, void 0, void 0, function* () {
2949
- var _a, _b, _c;
2950
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseDeprecated(releaseId, options);
2951
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2952
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleaseDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2953
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2954
- });
2955
- },
2956
- /**
2957
- * 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.
2958
- * @summary Get Releases
2959
- * @param {Array<string>} [id] Filter by Release IDs
2960
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
2961
- * @param {Array<string>} [buildId] Filter by Build IDs
2962
- * @param {Array<string>} [deviceId] Filter by Device IDs
2963
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
2964
- * @param {Array<string>} [codename] Filter by device codenames
2965
- * @param {Array<string>} [version] Filter by release version
2966
- * @param {Array<ReleaseType>} [type] Filter by release type
2967
- * @param {boolean | null} [archived] Filter by the archived status
2968
- * @param {boolean | null} [freezed] Filter by the freezed status
2969
- * @param {string | null} [afterReleaseId] Show releases after the provided one
2970
- * @param {number | null} [afterDate] Show releases after the provided timestamp
2971
- * @param {ReleasesSort} [sort] Sort mode
2972
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
2973
- * @param {number | null} [skip] Skip query results
2974
- * @param {number | null} [limit] Limit query results (0 means unlimited)
2975
- * @param {*} [options] Override http request option.
2976
- * @throws {RequiredError}
2977
- */
2978
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
2979
- return __awaiter(this, void 0, void 0, function* () {
2980
- var _a, _b, _c;
2981
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
2982
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2983
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getReleases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2984
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2985
- });
2986
- },
2987
- /**
2988
- * 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!
2989
- * @summary Get Updates
2990
- * @param {string} lastKnownId
2991
- * @param {Array<string>} [deviceId] Filter by device ID
2992
- * @param {Array<ReleaseType>} [type] Filter by release type
2993
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
2994
- * @param {number | null} [skip] Skip query results
2995
- * @param {number | null} [limit] Limit query results (0 means unlimited)
2996
- * @param {*} [options] Override http request option.
2997
- * @deprecated
2998
- * @throws {RequiredError}
2999
- */
3000
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3001
- return __awaiter(this, void 0, void 0, function* () {
3002
- var _a, _b, _c;
3003
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options);
3004
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3005
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReleaseApi.getUpdatesDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3006
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3007
- });
3008
- },
3009
- };
3010
- };
3011
- /**
3012
- * ReleaseApi - factory interface
3013
- * @export
3014
- */
3015
- export const ReleaseApiFactory = function (configuration, basePath, axios) {
3016
- const localVarFp = ReleaseApiFp(configuration);
3017
- return {
3018
- /**
3019
- * 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!
3020
- * @summary Get Release
3021
- * @param {string | null} [releaseId] Release ID
3022
- * @param {string | null} [id] Release ID (deprecated)
3023
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
3024
- * @param {string | null} [filename]
3025
- * @param {*} [options] Override http request option.
3026
- * @throws {RequiredError}
3027
- */
3028
- getRelease(releaseId, id, buildId, filename, options) {
3029
- return localVarFp.getRelease(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
3030
- },
3031
- /**
3032
- * Gets release information using the release ID, nothing to discuss really.
3033
- * @summary Get Release Short
3034
- * @param {string} releaseId
3035
- * @param {*} [options] Override http request option.
3036
- * @deprecated
3037
- * @throws {RequiredError}
3038
- */
3039
- getReleaseDeprecated(releaseId, options) {
3040
- return localVarFp.getReleaseDeprecated(releaseId, options).then((request) => request(axios, basePath));
3041
- },
3042
- /**
3043
- * 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.
3044
- * @summary Get Releases
3045
- * @param {Array<string>} [id] Filter by Release IDs
3046
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
3047
- * @param {Array<string>} [buildId] Filter by Build IDs
3048
- * @param {Array<string>} [deviceId] Filter by Device IDs
3049
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
3050
- * @param {Array<string>} [codename] Filter by device codenames
3051
- * @param {Array<string>} [version] Filter by release version
3052
- * @param {Array<ReleaseType>} [type] Filter by release type
3053
- * @param {boolean | null} [archived] Filter by the archived status
3054
- * @param {boolean | null} [freezed] Filter by the freezed status
3055
- * @param {string | null} [afterReleaseId] Show releases after the provided one
3056
- * @param {number | null} [afterDate] Show releases after the provided timestamp
3057
- * @param {ReleasesSort} [sort] Sort mode
3058
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
3059
- * @param {number | null} [skip] Skip query results
3060
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3061
- * @param {*} [options] Override http request option.
3062
- * @throws {RequiredError}
3063
- */
3064
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
3065
- 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));
3066
- },
3067
- /**
3068
- * 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!
3069
- * @summary Get Updates
3070
- * @param {string} lastKnownId
3071
- * @param {Array<string>} [deviceId] Filter by device ID
3072
- * @param {Array<ReleaseType>} [type] Filter by release type
3073
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3074
- * @param {number | null} [skip] Skip query results
3075
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3076
- * @param {*} [options] Override http request option.
3077
- * @deprecated
3078
- * @throws {RequiredError}
3079
- */
3080
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3081
- return localVarFp.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
3082
- },
3083
- };
3084
- };
3085
- /**
3086
- * ReleaseApi - object-oriented interface
3087
- * @export
3088
- * @class ReleaseApi
3089
- * @extends {BaseAPI}
3090
- */
3091
- export class ReleaseApi extends BaseAPI {
3092
- /**
3093
- * 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!
3094
- * @summary Get Release
3095
- * @param {string | null} [releaseId] Release ID
3096
- * @param {string | null} [id] Release ID (deprecated)
3097
- * @param {string | null} [buildId] Build ID, &#x60;ro.build.fox_id&#x60; prop
3098
- * @param {string | null} [filename]
3099
- * @param {*} [options] Override http request option.
3100
- * @throws {RequiredError}
3101
- * @memberof ReleaseApi
3102
- */
3103
- getRelease(releaseId, id, buildId, filename, options) {
3104
- return ReleaseApiFp(this.configuration).getRelease(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
3105
- }
3106
- /**
3107
- * Gets release information using the release ID, nothing to discuss really.
3108
- * @summary Get Release Short
3109
- * @param {string} releaseId
3110
- * @param {*} [options] Override http request option.
3111
- * @deprecated
3112
- * @throws {RequiredError}
3113
- * @memberof ReleaseApi
3114
- */
3115
- getReleaseDeprecated(releaseId, options) {
3116
- return ReleaseApiFp(this.configuration).getReleaseDeprecated(releaseId, options).then((request) => request(this.axios, this.basePath));
3117
- }
3118
- /**
3119
- * 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.
3120
- * @summary Get Releases
3121
- * @param {Array<string>} [id] Filter by Release IDs
3122
- * @param {Array<string>} [id2] Filter by Release IDs (deprecated)
3123
- * @param {Array<string>} [buildId] Filter by Build IDs
3124
- * @param {Array<string>} [deviceId] Filter by Device IDs
3125
- * @param {Array<string>} [maintainerId] Filter by Maintainer IDs
3126
- * @param {Array<string>} [codename] Filter by device codenames
3127
- * @param {Array<string>} [version] Filter by release version
3128
- * @param {Array<ReleaseType>} [type] Filter by release type
3129
- * @param {boolean | null} [archived] Filter by the archived status
3130
- * @param {boolean | null} [freezed] Filter by the freezed status
3131
- * @param {string | null} [afterReleaseId] Show releases after the provided one
3132
- * @param {number | null} [afterDate] Show releases after the provided timestamp
3133
- * @param {ReleasesSort} [sort] Sort mode
3134
- * @param {boolean | null} [group] Group releases by version + variant. This will change the response!
3135
- * @param {number | null} [skip] Skip query results
3136
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3137
- * @param {*} [options] Override http request option.
3138
- * @throws {RequiredError}
3139
- * @memberof ReleaseApi
3140
- */
3141
- getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
3142
- 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));
3143
- }
3144
- /**
3145
- * 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!
3146
- * @summary Get Updates
3147
- * @param {string} lastKnownId
3148
- * @param {Array<string>} [deviceId] Filter by device ID
3149
- * @param {Array<ReleaseType>} [type] Filter by release type
3150
- * @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
3151
- * @param {number | null} [skip] Skip query results
3152
- * @param {number | null} [limit] Limit query results (0 means unlimited)
3153
- * @param {*} [options] Override http request option.
3154
- * @deprecated
3155
- * @throws {RequiredError}
3156
- * @memberof ReleaseApi
3157
- */
3158
- getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
3159
- return ReleaseApiFp(this.configuration).getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
3160
- }
3161
- }
3162
- /**
3163
- * StatsApi - axios parameter creator
3164
- * @export
3165
- */
3166
- export const StatsApiAxiosParamCreator = function (configuration) {
3167
- return {
3168
- /**
3169
- * 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.
3170
- * @summary Public Stats
3171
- * @param {*} [options] Override http request option.
3172
- * @throws {RequiredError}
3173
- */
3174
- getPublicStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3175
- const localVarPath = `/stats/`;
3176
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3177
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3178
- let baseOptions;
3179
- if (configuration) {
3180
- baseOptions = configuration.baseOptions;
3181
- }
3182
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3183
- const localVarHeaderParameter = {};
3184
- const localVarQueryParameter = {};
3185
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3186
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3187
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3188
- return {
3189
- url: toPathString(localVarUrlObj),
3190
- options: localVarRequestOptions,
3191
- };
3192
- }),
3193
- };
3194
- };
3195
- /**
3196
- * StatsApi - functional programming interface
3197
- * @export
3198
- */
3199
- export const StatsApiFp = function (configuration) {
3200
- const localVarAxiosParamCreator = StatsApiAxiosParamCreator(configuration);
3201
- return {
3202
- /**
3203
- * 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.
3204
- * @summary Public Stats
3205
- * @param {*} [options] Override http request option.
3206
- * @throws {RequiredError}
3207
- */
3208
- getPublicStats(options) {
3209
- return __awaiter(this, void 0, void 0, function* () {
3210
- var _a, _b, _c;
3211
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicStats(options);
3212
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3213
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StatsApi.getPublicStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3214
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3215
- });
3216
- },
3217
- };
3218
- };
3219
- /**
3220
- * StatsApi - factory interface
3221
- * @export
3222
- */
3223
- export const StatsApiFactory = function (configuration, basePath, axios) {
3224
- const localVarFp = StatsApiFp(configuration);
3225
- return {
3226
- /**
3227
- * 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.
3228
- * @summary Public Stats
3229
- * @param {*} [options] Override http request option.
3230
- * @throws {RequiredError}
3231
- */
3232
- getPublicStats(options) {
3233
- return localVarFp.getPublicStats(options).then((request) => request(axios, basePath));
3234
- },
3235
- };
3236
- };
3237
- /**
3238
- * StatsApi - object-oriented interface
3239
- * @export
3240
- * @class StatsApi
3241
- * @extends {BaseAPI}
3242
- */
3243
- export class StatsApi extends BaseAPI {
3244
- /**
3245
- * 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.
3246
- * @summary Public Stats
3247
- * @param {*} [options] Override http request option.
3248
- * @throws {RequiredError}
3249
- * @memberof StatsApi
3250
- */
3251
- getPublicStats(options) {
3252
- return StatsApiFp(this.configuration).getPublicStats(options).then((request) => request(this.axios, this.basePath));
3253
- }
3254
- }