@orangefox-recovery/foxinternalclient 5.2.6 → 5.2.8

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