@orangefox-recovery/foxinternalclient 5.2.5 → 5.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/.openapi-generator/FILES +58 -57
  2. package/README.md +3 -116
  3. package/dist/apis/DeviceApi.d.ts +158 -0
  4. package/dist/apis/DeviceApi.js +188 -0
  5. package/dist/apis/FoxFactoryApi.d.ts +298 -0
  6. package/dist/apis/FoxFactoryApi.js +507 -0
  7. package/dist/apis/GitlabApi.d.ts +51 -0
  8. package/dist/apis/GitlabApi.js +71 -0
  9. package/dist/apis/InternalApi.d.ts +549 -0
  10. package/dist/apis/InternalApi.js +957 -0
  11. package/dist/apis/PasteApi.d.ts +80 -0
  12. package/dist/apis/PasteApi.js +95 -0
  13. package/dist/apis/ReleaseApi.d.ts +188 -0
  14. package/dist/apis/ReleaseApi.js +226 -0
  15. package/dist/apis/StatsApi.d.ts +49 -0
  16. package/dist/apis/StatsApi.js +60 -0
  17. package/dist/apis/index.d.ts +7 -0
  18. package/dist/apis/index.js +25 -0
  19. package/dist/esm/apis/DeviceApi.d.ts +158 -0
  20. package/dist/esm/apis/DeviceApi.js +184 -0
  21. package/dist/esm/apis/FoxFactoryApi.d.ts +298 -0
  22. package/dist/esm/apis/FoxFactoryApi.js +503 -0
  23. package/dist/esm/apis/GitlabApi.d.ts +51 -0
  24. package/dist/esm/apis/GitlabApi.js +67 -0
  25. package/dist/esm/apis/InternalApi.d.ts +549 -0
  26. package/dist/esm/apis/InternalApi.js +953 -0
  27. package/dist/esm/apis/PasteApi.d.ts +80 -0
  28. package/dist/esm/apis/PasteApi.js +91 -0
  29. package/dist/esm/apis/ReleaseApi.d.ts +188 -0
  30. package/dist/esm/apis/ReleaseApi.js +222 -0
  31. package/dist/esm/apis/StatsApi.d.ts +49 -0
  32. package/dist/esm/apis/StatsApi.js +56 -0
  33. package/dist/esm/apis/index.d.ts +7 -0
  34. package/dist/esm/apis/index.js +9 -0
  35. package/dist/esm/index.d.ts +3 -13
  36. package/dist/esm/index.js +3 -13
  37. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +38 -0
  38. package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +47 -0
  39. package/dist/esm/models/BuildStatusEnum.d.ts +30 -0
  40. package/dist/esm/models/BuildStatusEnum.js +48 -0
  41. package/dist/esm/models/BuildTaskResponse.d.ts +103 -0
  42. package/dist/esm/models/BuildTaskResponse.js +78 -0
  43. package/dist/esm/models/BuildTaskShortResponse.d.ts +89 -0
  44. package/dist/esm/models/BuildTaskShortResponse.js +74 -0
  45. package/dist/esm/models/DeviceInternalResponse.d.ts +114 -0
  46. package/dist/esm/models/DeviceInternalResponse.js +91 -0
  47. package/dist/esm/models/DeviceResponse.d.ts +101 -0
  48. package/dist/esm/models/DeviceResponse.js +82 -0
  49. package/dist/esm/models/DeviceStatsResponse.d.ts +48 -0
  50. package/dist/esm/models/DeviceStatsResponse.js +51 -0
  51. package/dist/esm/models/DeviceUpdateBody.d.ts +62 -0
  52. package/dist/esm/models/DeviceUpdateBody.js +51 -0
  53. package/dist/esm/models/FFStatusEnum.d.ts +26 -0
  54. package/dist/esm/models/FFStatusEnum.js +44 -0
  55. package/dist/esm/models/FFStatusResponse.d.ts +33 -0
  56. package/dist/esm/models/FFStatusResponse.js +44 -0
  57. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +52 -0
  58. package/dist/esm/models/GlobalStatsAggregationModel.js +55 -0
  59. package/dist/esm/models/HTTPValidationError.d.ts +33 -0
  60. package/dist/esm/models/HTTPValidationError.js +42 -0
  61. package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +39 -0
  62. package/dist/esm/models/ListResponseBuildTaskShortResponse.js +47 -0
  63. package/dist/esm/models/ListResponseReleaseResponse.d.ts +39 -0
  64. package/dist/esm/models/ListResponseReleaseResponse.js +47 -0
  65. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +39 -0
  66. package/dist/esm/models/ListResponseShortDeviceResponse.js +47 -0
  67. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +39 -0
  68. package/dist/esm/models/ListResponseShortReleaseResponse.js +47 -0
  69. package/dist/esm/models/ListResponseStr.d.ts +38 -0
  70. package/dist/esm/models/ListResponseStr.js +46 -0
  71. package/dist/esm/models/ListResponseUserShortResponse.d.ts +39 -0
  72. package/dist/esm/models/ListResponseUserShortResponse.js +47 -0
  73. package/dist/esm/models/LogListResponse.d.ts +51 -0
  74. package/dist/esm/models/LogListResponse.js +56 -0
  75. package/dist/esm/models/LogResponse.d.ts +83 -0
  76. package/dist/esm/models/LogResponse.js +66 -0
  77. package/dist/esm/models/MaintainerShortModel.d.ts +44 -0
  78. package/dist/esm/models/MaintainerShortModel.js +51 -0
  79. package/dist/esm/models/NewBuildTaskBody.d.ts +57 -0
  80. package/dist/esm/models/NewBuildTaskBody.js +52 -0
  81. package/dist/esm/models/NewDeviceBody.d.ts +50 -0
  82. package/dist/esm/models/NewDeviceBody.js +55 -0
  83. package/dist/esm/models/PasteInput.d.ts +50 -0
  84. package/dist/esm/models/PasteInput.js +51 -0
  85. package/dist/esm/models/PasteOutput.d.ts +50 -0
  86. package/dist/esm/models/PasteOutput.js +51 -0
  87. package/dist/esm/models/RecoveryImgResponse.d.ts +38 -0
  88. package/dist/esm/models/RecoveryImgResponse.js +47 -0
  89. package/dist/esm/models/ReleaseGroupsResponse.d.ts +35 -0
  90. package/dist/esm/models/ReleaseGroupsResponse.js +43 -0
  91. package/dist/esm/models/ReleaseInternalResponse.d.ts +162 -0
  92. package/dist/esm/models/ReleaseInternalResponse.js +119 -0
  93. package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +26 -0
  94. package/dist/esm/models/ReleaseInternalResponsePropValue.js +31 -0
  95. package/dist/esm/models/ReleaseResponse.d.ts +139 -0
  96. package/dist/esm/models/ReleaseResponse.js +107 -0
  97. package/dist/esm/models/ReleaseStatsResponse.d.ts +48 -0
  98. package/dist/esm/models/ReleaseStatsResponse.js +51 -0
  99. package/dist/esm/models/ReleaseType.d.ts +26 -0
  100. package/dist/esm/models/ReleaseType.js +44 -0
  101. package/dist/esm/models/ReleaseUpdateBody.d.ts +50 -0
  102. package/dist/esm/models/ReleaseUpdateBody.js +47 -0
  103. package/dist/esm/models/ReleasesSort.d.ts +25 -0
  104. package/dist/esm/models/ReleasesSort.js +43 -0
  105. package/dist/esm/models/ResponseGetReleases.d.ts +41 -0
  106. package/dist/esm/models/ResponseGetReleases.js +46 -0
  107. package/dist/esm/models/ShortDeviceResponse.d.ts +82 -0
  108. package/dist/esm/models/ShortDeviceResponse.js +73 -0
  109. package/dist/esm/models/ShortReleaseResponse.d.ts +100 -0
  110. package/dist/esm/models/ShortReleaseResponse.js +84 -0
  111. package/dist/esm/models/TaskUpdateBody.d.ts +39 -0
  112. package/dist/esm/models/TaskUpdateBody.js +44 -0
  113. package/dist/esm/models/TokenResponse.d.ts +38 -0
  114. package/dist/esm/models/TokenResponse.js +45 -0
  115. package/dist/esm/models/UserGitlab.d.ts +32 -0
  116. package/dist/esm/models/UserGitlab.js +43 -0
  117. package/dist/esm/models/UserInternalResponse.d.ts +90 -0
  118. package/dist/esm/models/UserInternalResponse.js +75 -0
  119. package/dist/esm/models/UserMail.d.ts +32 -0
  120. package/dist/esm/models/UserMail.js +43 -0
  121. package/dist/esm/models/UserShortResponse.d.ts +50 -0
  122. package/dist/esm/models/UserShortResponse.js +55 -0
  123. package/dist/esm/models/UserTelegram.d.ts +32 -0
  124. package/dist/esm/models/UserTelegram.js +43 -0
  125. package/dist/esm/models/UserUpdateBody.d.ts +56 -0
  126. package/dist/esm/models/UserUpdateBody.js +49 -0
  127. package/dist/esm/models/ValidationError.d.ts +45 -0
  128. package/dist/esm/models/ValidationError.js +52 -0
  129. package/dist/esm/models/ValidationErrorLocInner.d.ts +26 -0
  130. package/{index.ts → dist/esm/models/ValidationErrorLocInner.js} +20 -7
  131. package/dist/esm/models/index.d.ts +47 -0
  132. package/dist/esm/models/index.js +49 -0
  133. package/dist/esm/runtime.d.ts +184 -0
  134. package/dist/esm/runtime.js +334 -0
  135. package/dist/index.d.ts +3 -13
  136. package/dist/index.js +5 -15
  137. package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +38 -0
  138. package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +54 -0
  139. package/dist/models/BuildStatusEnum.d.ts +30 -0
  140. package/dist/models/BuildStatusEnum.js +56 -0
  141. package/dist/models/BuildTaskResponse.d.ts +103 -0
  142. package/dist/models/BuildTaskResponse.js +85 -0
  143. package/dist/models/BuildTaskShortResponse.d.ts +89 -0
  144. package/dist/models/BuildTaskShortResponse.js +81 -0
  145. package/dist/models/DeviceInternalResponse.d.ts +114 -0
  146. package/dist/models/DeviceInternalResponse.js +98 -0
  147. package/dist/models/DeviceResponse.d.ts +101 -0
  148. package/dist/models/DeviceResponse.js +89 -0
  149. package/dist/models/DeviceStatsResponse.d.ts +48 -0
  150. package/dist/models/DeviceStatsResponse.js +58 -0
  151. package/dist/models/DeviceUpdateBody.d.ts +62 -0
  152. package/dist/models/DeviceUpdateBody.js +58 -0
  153. package/dist/models/FFStatusEnum.d.ts +26 -0
  154. package/dist/models/FFStatusEnum.js +52 -0
  155. package/dist/models/FFStatusResponse.d.ts +33 -0
  156. package/dist/models/FFStatusResponse.js +51 -0
  157. package/dist/models/GlobalStatsAggregationModel.d.ts +52 -0
  158. package/dist/models/GlobalStatsAggregationModel.js +62 -0
  159. package/dist/models/HTTPValidationError.d.ts +33 -0
  160. package/dist/models/HTTPValidationError.js +49 -0
  161. package/dist/models/ListResponseBuildTaskShortResponse.d.ts +39 -0
  162. package/dist/models/ListResponseBuildTaskShortResponse.js +54 -0
  163. package/dist/models/ListResponseReleaseResponse.d.ts +39 -0
  164. package/dist/models/ListResponseReleaseResponse.js +54 -0
  165. package/dist/models/ListResponseShortDeviceResponse.d.ts +39 -0
  166. package/dist/models/ListResponseShortDeviceResponse.js +54 -0
  167. package/dist/models/ListResponseShortReleaseResponse.d.ts +39 -0
  168. package/dist/models/ListResponseShortReleaseResponse.js +54 -0
  169. package/dist/models/ListResponseStr.d.ts +38 -0
  170. package/dist/models/ListResponseStr.js +53 -0
  171. package/dist/models/ListResponseUserShortResponse.d.ts +39 -0
  172. package/dist/models/ListResponseUserShortResponse.js +54 -0
  173. package/dist/models/LogListResponse.d.ts +51 -0
  174. package/dist/models/LogListResponse.js +63 -0
  175. package/dist/models/LogResponse.d.ts +83 -0
  176. package/dist/models/LogResponse.js +73 -0
  177. package/dist/models/MaintainerShortModel.d.ts +44 -0
  178. package/dist/models/MaintainerShortModel.js +58 -0
  179. package/dist/models/NewBuildTaskBody.d.ts +57 -0
  180. package/dist/models/NewBuildTaskBody.js +59 -0
  181. package/dist/models/NewDeviceBody.d.ts +50 -0
  182. package/dist/models/NewDeviceBody.js +62 -0
  183. package/dist/models/PasteInput.d.ts +50 -0
  184. package/dist/models/PasteInput.js +58 -0
  185. package/dist/models/PasteOutput.d.ts +50 -0
  186. package/dist/models/PasteOutput.js +58 -0
  187. package/dist/models/RecoveryImgResponse.d.ts +38 -0
  188. package/dist/models/RecoveryImgResponse.js +54 -0
  189. package/dist/models/ReleaseGroupsResponse.d.ts +35 -0
  190. package/dist/models/ReleaseGroupsResponse.js +50 -0
  191. package/dist/models/ReleaseInternalResponse.d.ts +162 -0
  192. package/dist/models/ReleaseInternalResponse.js +126 -0
  193. package/dist/models/ReleaseInternalResponsePropValue.d.ts +26 -0
  194. package/dist/models/ReleaseInternalResponsePropValue.js +38 -0
  195. package/dist/models/ReleaseResponse.d.ts +139 -0
  196. package/dist/models/ReleaseResponse.js +114 -0
  197. package/dist/models/ReleaseStatsResponse.d.ts +48 -0
  198. package/dist/models/ReleaseStatsResponse.js +58 -0
  199. package/dist/models/ReleaseType.d.ts +26 -0
  200. package/dist/models/ReleaseType.js +52 -0
  201. package/dist/models/ReleaseUpdateBody.d.ts +50 -0
  202. package/dist/models/ReleaseUpdateBody.js +54 -0
  203. package/dist/models/ReleasesSort.d.ts +25 -0
  204. package/dist/models/ReleasesSort.js +51 -0
  205. package/dist/models/ResponseGetReleases.d.ts +41 -0
  206. package/dist/models/ResponseGetReleases.js +53 -0
  207. package/dist/models/ShortDeviceResponse.d.ts +82 -0
  208. package/dist/models/ShortDeviceResponse.js +80 -0
  209. package/dist/models/ShortReleaseResponse.d.ts +100 -0
  210. package/dist/models/ShortReleaseResponse.js +91 -0
  211. package/dist/models/TaskUpdateBody.d.ts +39 -0
  212. package/dist/models/TaskUpdateBody.js +51 -0
  213. package/dist/models/TokenResponse.d.ts +38 -0
  214. package/dist/models/TokenResponse.js +52 -0
  215. package/dist/models/UserGitlab.d.ts +32 -0
  216. package/dist/models/UserGitlab.js +50 -0
  217. package/dist/models/UserInternalResponse.d.ts +90 -0
  218. package/dist/models/UserInternalResponse.js +82 -0
  219. package/dist/models/UserMail.d.ts +32 -0
  220. package/dist/models/UserMail.js +50 -0
  221. package/dist/models/UserShortResponse.d.ts +50 -0
  222. package/dist/models/UserShortResponse.js +62 -0
  223. package/dist/models/UserTelegram.d.ts +32 -0
  224. package/dist/models/UserTelegram.js +50 -0
  225. package/dist/models/UserUpdateBody.d.ts +56 -0
  226. package/dist/models/UserUpdateBody.js +56 -0
  227. package/dist/models/ValidationError.d.ts +45 -0
  228. package/dist/models/ValidationError.js +59 -0
  229. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  230. package/dist/models/ValidationErrorLocInner.js +38 -0
  231. package/dist/models/index.d.ts +47 -0
  232. package/dist/models/index.js +65 -0
  233. package/dist/runtime.d.ts +184 -0
  234. package/dist/runtime.js +350 -0
  235. package/package.json +4 -17
  236. package/src/apis/DeviceApi.ts +326 -0
  237. package/src/apis/FoxFactoryApi.ts +807 -0
  238. package/src/apis/GitlabApi.ts +108 -0
  239. package/src/apis/InternalApi.ts +1590 -0
  240. package/src/apis/PasteApi.ts +158 -0
  241. package/src/apis/ReleaseApi.ts +414 -0
  242. package/src/apis/StatsApi.ts +82 -0
  243. package/src/apis/index.ts +9 -0
  244. package/src/index.ts +5 -0
  245. package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +75 -0
  246. package/src/models/BuildStatusEnum.ts +58 -0
  247. package/src/models/BuildTaskResponse.ts +183 -0
  248. package/src/models/BuildTaskShortResponse.ts +167 -0
  249. package/src/models/DeviceInternalResponse.ts +196 -0
  250. package/src/models/DeviceResponse.ts +171 -0
  251. package/src/models/DeviceStatsResponse.ts +84 -0
  252. package/src/models/DeviceUpdateBody.ts +105 -0
  253. package/src/models/FFStatusEnum.ts +54 -0
  254. package/src/models/FFStatusResponse.ts +76 -0
  255. package/src/models/GlobalStatsAggregationModel.ts +93 -0
  256. package/src/models/HTTPValidationError.ts +73 -0
  257. package/src/models/ListResponseBuildTaskShortResponse.ts +82 -0
  258. package/src/models/ListResponseReleaseResponse.ts +82 -0
  259. package/src/models/ListResponseShortDeviceResponse.ts +82 -0
  260. package/src/models/ListResponseShortReleaseResponse.ts +82 -0
  261. package/src/models/ListResponseStr.ts +74 -0
  262. package/src/models/ListResponseUserShortResponse.ts +82 -0
  263. package/src/models/LogListResponse.ts +101 -0
  264. package/src/models/LogResponse.ts +141 -0
  265. package/src/models/MaintainerShortModel.ts +84 -0
  266. package/src/models/NewBuildTaskBody.ts +108 -0
  267. package/src/models/NewDeviceBody.ts +93 -0
  268. package/src/models/PasteInput.ts +91 -0
  269. package/src/models/PasteOutput.ts +91 -0
  270. package/src/models/RecoveryImgResponse.ts +75 -0
  271. package/src/models/ReleaseGroupsResponse.ts +74 -0
  272. package/src/models/ReleaseInternalResponse.ts +279 -0
  273. package/src/models/ReleaseInternalResponsePropValue.ts +46 -0
  274. package/src/models/ReleaseResponse.ts +233 -0
  275. package/src/models/ReleaseStatsResponse.ts +84 -0
  276. package/src/models/ReleaseType.ts +54 -0
  277. package/src/models/ReleaseUpdateBody.ts +89 -0
  278. package/src/models/ReleasesSort.ts +53 -0
  279. package/src/models/ResponseGetReleases.ts +96 -0
  280. package/src/models/ShortDeviceResponse.ts +138 -0
  281. package/src/models/ShortReleaseResponse.ts +174 -0
  282. package/src/models/TaskUpdateBody.ts +83 -0
  283. package/src/models/TokenResponse.ts +74 -0
  284. package/src/models/UserGitlab.ts +66 -0
  285. package/src/models/UserInternalResponse.ts +172 -0
  286. package/src/models/UserMail.ts +66 -0
  287. package/src/models/UserShortResponse.ts +93 -0
  288. package/src/models/UserTelegram.ts +66 -0
  289. package/src/models/UserUpdateBody.ts +97 -0
  290. package/src/models/ValidationError.ts +92 -0
  291. package/src/models/ValidationErrorLocInner.ts +46 -0
  292. package/src/models/index.ts +49 -0
  293. package/src/runtime.ts +432 -0
  294. package/tsconfig.json +2 -4
  295. package/api.ts +0 -5578
  296. package/base.ts +0 -86
  297. package/common.ts +0 -150
  298. package/configuration.ts +0 -115
  299. package/dist/api.d.ts +0 -3696
  300. package/dist/api.js +0 -3281
  301. package/dist/base.d.ts +0 -66
  302. package/dist/base.js +0 -65
  303. package/dist/common.d.ts +0 -65
  304. package/dist/common.js +0 -161
  305. package/dist/configuration.d.ts +0 -91
  306. package/dist/configuration.js +0 -44
  307. package/dist/esm/api.d.ts +0 -3696
  308. package/dist/esm/api.js +0 -3254
  309. package/dist/esm/base.d.ts +0 -66
  310. package/dist/esm/base.js +0 -60
  311. package/dist/esm/common.d.ts +0 -65
  312. package/dist/esm/common.js +0 -149
  313. package/dist/esm/configuration.d.ts +0 -91
  314. package/dist/esm/configuration.js +0 -40
  315. package/docs/BodyChangePasswordProfileChangePasswordPost.md +0 -22
  316. package/docs/BuildStatusEnum.md +0 -20
  317. package/docs/BuildTaskResponse.md +0 -42
  318. package/docs/BuildTaskShortResponse.md +0 -38
  319. package/docs/DeviceApi.md +0 -251
  320. package/docs/DeviceInternalResponse.md +0 -48
  321. package/docs/DeviceResponse.md +0 -44
  322. package/docs/DeviceStatsResponse.md +0 -24
  323. package/docs/DeviceUpdateBody.md +0 -30
  324. package/docs/FFStatusEnum.md +0 -12
  325. package/docs/FFStatusResponse.md +0 -20
  326. package/docs/FoxFactoryApi.md +0 -540
  327. package/docs/GitlabApi.md +0 -62
  328. package/docs/GlobalStatsAggregationModel.md +0 -26
  329. package/docs/HTTPValidationError.md +0 -20
  330. package/docs/InternalApi.md +0 -958
  331. package/docs/ListResponseBuildTaskShortResponse.md +0 -22
  332. package/docs/ListResponseReleaseResponse.md +0 -22
  333. package/docs/ListResponseShortDeviceResponse.md +0 -22
  334. package/docs/ListResponseShortReleaseResponse.md +0 -22
  335. package/docs/ListResponseStr.md +0 -22
  336. package/docs/ListResponseUserShortResponse.md +0 -22
  337. package/docs/LogListResponse.md +0 -26
  338. package/docs/LogResponse.md +0 -36
  339. package/docs/MaintainerShortModel.md +0 -26
  340. package/docs/NewBuildTaskBody.md +0 -28
  341. package/docs/NewDeviceBody.md +0 -26
  342. package/docs/RecoveryImgResponse.md +0 -22
  343. package/docs/ReleaseApi.md +0 -289
  344. package/docs/ReleaseGroupsResponse.md +0 -20
  345. package/docs/ReleaseInternalResponse.md +0 -62
  346. package/docs/ReleaseInternalResponsePropValue.md +0 -18
  347. package/docs/ReleaseResponse.md +0 -56
  348. package/docs/ReleaseStatsResponse.md +0 -24
  349. package/docs/ReleaseType.md +0 -12
  350. package/docs/ReleaseUpdateBody.md +0 -26
  351. package/docs/ReleasesSort.md +0 -10
  352. package/docs/ResponseGetReleases.md +0 -22
  353. package/docs/ShortDeviceResponse.md +0 -38
  354. package/docs/ShortReleaseResponse.md +0 -44
  355. package/docs/StatsApi.md +0 -53
  356. package/docs/TaskUpdateBody.md +0 -22
  357. package/docs/TokenResponse.md +0 -22
  358. package/docs/UserGitlab.md +0 -20
  359. package/docs/UserInternalResponse.md +0 -38
  360. package/docs/UserMail.md +0 -20
  361. package/docs/UserShortResponse.md +0 -26
  362. package/docs/UserTelegram.md +0 -20
  363. package/docs/UserUpdateBody.md +0 -28
  364. package/docs/ValidationError.md +0 -24
  365. package/docs/ValidationErrorLocInner.md +0 -18
  366. package/git_push.sh +0 -57
@@ -2,63 +2,64 @@
2
2
  .npmignore
3
3
  .openapi-generator-ignore
4
4
  README.md
5
- api.ts
6
- base.ts
7
- common.ts
8
- configuration.ts
9
- docs/BodyChangePasswordProfileChangePasswordPost.md
10
- docs/BuildStatusEnum.md
11
- docs/BuildTaskResponse.md
12
- docs/BuildTaskShortResponse.md
13
- docs/DeviceApi.md
14
- docs/DeviceInternalResponse.md
15
- docs/DeviceResponse.md
16
- docs/DeviceStatsResponse.md
17
- docs/DeviceUpdateBody.md
18
- docs/FFStatusEnum.md
19
- docs/FFStatusResponse.md
20
- docs/FoxFactoryApi.md
21
- docs/GitlabApi.md
22
- docs/GlobalStatsAggregationModel.md
23
- docs/HTTPValidationError.md
24
- docs/InternalApi.md
25
- docs/ListResponseBuildTaskShortResponse.md
26
- docs/ListResponseReleaseResponse.md
27
- docs/ListResponseShortDeviceResponse.md
28
- docs/ListResponseShortReleaseResponse.md
29
- docs/ListResponseStr.md
30
- docs/ListResponseUserShortResponse.md
31
- docs/LogListResponse.md
32
- docs/LogResponse.md
33
- docs/MaintainerShortModel.md
34
- docs/NewBuildTaskBody.md
35
- docs/NewDeviceBody.md
36
- docs/RecoveryImgResponse.md
37
- docs/ReleaseApi.md
38
- docs/ReleaseGroupsResponse.md
39
- docs/ReleaseInternalResponse.md
40
- docs/ReleaseInternalResponsePropValue.md
41
- docs/ReleaseResponse.md
42
- docs/ReleaseStatsResponse.md
43
- docs/ReleaseType.md
44
- docs/ReleaseUpdateBody.md
45
- docs/ReleasesSort.md
46
- docs/ResponseGetReleases.md
47
- docs/ShortDeviceResponse.md
48
- docs/ShortReleaseResponse.md
49
- docs/StatsApi.md
50
- docs/TaskUpdateBody.md
51
- docs/TokenResponse.md
52
- docs/UserGitlab.md
53
- docs/UserInternalResponse.md
54
- docs/UserMail.md
55
- docs/UserShortResponse.md
56
- docs/UserTelegram.md
57
- docs/UserUpdateBody.md
58
- docs/ValidationError.md
59
- docs/ValidationErrorLocInner.md
60
- git_push.sh
61
- index.ts
62
5
  package.json
6
+ src/apis/DeviceApi.ts
7
+ src/apis/FoxFactoryApi.ts
8
+ src/apis/GitlabApi.ts
9
+ src/apis/InternalApi.ts
10
+ src/apis/PasteApi.ts
11
+ src/apis/ReleaseApi.ts
12
+ src/apis/StatsApi.ts
13
+ src/apis/index.ts
14
+ src/index.ts
15
+ src/models/BodyChangePasswordProfileChangePasswordPost.ts
16
+ src/models/BuildStatusEnum.ts
17
+ src/models/BuildTaskResponse.ts
18
+ src/models/BuildTaskShortResponse.ts
19
+ src/models/DeviceInternalResponse.ts
20
+ src/models/DeviceResponse.ts
21
+ src/models/DeviceStatsResponse.ts
22
+ src/models/DeviceUpdateBody.ts
23
+ src/models/FFStatusEnum.ts
24
+ src/models/FFStatusResponse.ts
25
+ src/models/GlobalStatsAggregationModel.ts
26
+ src/models/HTTPValidationError.ts
27
+ src/models/ListResponseBuildTaskShortResponse.ts
28
+ src/models/ListResponseReleaseResponse.ts
29
+ src/models/ListResponseShortDeviceResponse.ts
30
+ src/models/ListResponseShortReleaseResponse.ts
31
+ src/models/ListResponseStr.ts
32
+ src/models/ListResponseUserShortResponse.ts
33
+ src/models/LogListResponse.ts
34
+ src/models/LogResponse.ts
35
+ src/models/MaintainerShortModel.ts
36
+ src/models/NewBuildTaskBody.ts
37
+ src/models/NewDeviceBody.ts
38
+ src/models/PasteInput.ts
39
+ src/models/PasteOutput.ts
40
+ src/models/RecoveryImgResponse.ts
41
+ src/models/ReleaseGroupsResponse.ts
42
+ src/models/ReleaseInternalResponse.ts
43
+ src/models/ReleaseInternalResponsePropValue.ts
44
+ src/models/ReleaseResponse.ts
45
+ src/models/ReleaseStatsResponse.ts
46
+ src/models/ReleaseType.ts
47
+ src/models/ReleaseUpdateBody.ts
48
+ src/models/ReleasesSort.ts
49
+ src/models/ResponseGetReleases.ts
50
+ src/models/ShortDeviceResponse.ts
51
+ src/models/ShortReleaseResponse.ts
52
+ src/models/TaskUpdateBody.ts
53
+ src/models/TokenResponse.ts
54
+ src/models/UserGitlab.ts
55
+ src/models/UserInternalResponse.ts
56
+ src/models/UserMail.ts
57
+ src/models/UserShortResponse.ts
58
+ src/models/UserTelegram.ts
59
+ src/models/UserUpdateBody.ts
60
+ src/models/ValidationError.ts
61
+ src/models/ValidationErrorLocInner.ts
62
+ src/models/index.ts
63
+ src/runtime.ts
63
64
  tsconfig.esm.json
64
65
  tsconfig.json
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- ## @orangefox-recovery/foxinternalclient@5.2.5
1
+ ## @orangefox-recovery/foxinternalclient@5.2.7
2
2
 
3
- This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
3
+ This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
5
5
  Environment
6
6
  * Node.js
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @orangefox-recovery/foxinternalclient@5.2.5 --save
39
+ npm install @orangefox-recovery/foxinternalclient@5.2.7 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,116 +44,3 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
-
48
- ### Documentation for API Endpoints
49
-
50
- All URIs are relative to *https://api.orangefox.download*
51
-
52
- Class | Method | HTTP request | Description
53
- ------------ | ------------- | ------------- | -------------
54
- *DeviceApi* | [**getDevice**](docs/DeviceApi.md#getdevice) | **GET** /devices/get | Get Device
55
- *DeviceApi* | [**getDeviceDeprecated**](docs/DeviceApi.md#getdevicedeprecated) | **GET** /devices/{device_id} | Get Device Short
56
- *DeviceApi* | [**getDevices**](docs/DeviceApi.md#getdevices) | **GET** /devices/ | Get Devices
57
- *DeviceApi* | [**getOems**](docs/DeviceApi.md#getoems) | **GET** /oems/ | Get Oems
58
- *FoxFactoryApi* | [**cancelTaskFactoryTaskIdCancelPost**](docs/FoxFactoryApi.md#canceltaskfactorytaskidcancelpost) | **POST** /factory/{task_id}/cancel | Cancel Task
59
- *FoxFactoryApi* | [**deleteTaskFactoryTaskIdDelete**](docs/FoxFactoryApi.md#deletetaskfactorytaskiddelete) | **DELETE** /factory/{task_id} | Delete Task
60
- *FoxFactoryApi* | [**downloadArtifactFactoryTaskIdArtifactGet**](docs/FoxFactoryApi.md#downloadartifactfactorytaskidartifactget) | **GET** /factory/{task_id}/artifact | Download Artifact
61
- *FoxFactoryApi* | [**factoryStatusFactoryStatusGet**](docs/FoxFactoryApi.md#factorystatusfactorystatusget) | **GET** /factory/status | Factory Status
62
- *FoxFactoryApi* | [**getTaskFactoryTaskIdGet**](docs/FoxFactoryApi.md#gettaskfactorytaskidget) | **GET** /factory/{task_id} | Get Task
63
- *FoxFactoryApi* | [**listTasksFactoryGet**](docs/FoxFactoryApi.md#listtasksfactoryget) | **GET** /factory/ | List Tasks
64
- *FoxFactoryApi* | [**newTaskFactoryPost**](docs/FoxFactoryApi.md#newtaskfactorypost) | **POST** /factory/ | New Task
65
- *FoxFactoryApi* | [**updateTaskFactoryTaskIdPatch**](docs/FoxFactoryApi.md#updatetaskfactorytaskidpatch) | **PATCH** /factory/{task_id} | Update Task
66
- *FoxFactoryApi* | [**updateWorkerStatusFactoryUpdateStatusPost**](docs/FoxFactoryApi.md#updateworkerstatusfactoryupdatestatuspost) | **POST** /factory/update_status | Update Worker Status
67
- *FoxFactoryApi* | [**uploadArtifactFactoryTaskIdArtifactPost**](docs/FoxFactoryApi.md#uploadartifactfactorytaskidartifactpost) | **POST** /factory/{task_id}/artifact | Upload Artifact
68
- *GitlabApi* | [**deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost**](docs/GitlabApi.md#deviceaddgitlabrepogitlabdevicedeviceidgitlabpost) | **POST** /gitlab/device/{device_id}/gitlab | Device Add Gitlab Repo
69
- *InternalApi* | [**changePasswordProfileChangePasswordPost**](docs/InternalApi.md#changepasswordprofilechangepasswordpost) | **POST** /profile/change_password | Change Password
70
- *InternalApi* | [**delReleaseInternalReleasesReleaseIdDelete**](docs/InternalApi.md#delreleaseinternalreleasesreleaseiddelete) | **DELETE** /internal/releases/{release_id} | Del Release
71
- *InternalApi* | [**deleteUserInternalUsersUserIdDelete**](docs/InternalApi.md#deleteuserinternalusersuseriddelete) | **DELETE** /internal/users/{user_id} | Delete User
72
- *InternalApi* | [**editReleaseInternalReleasesReleaseIdPut**](docs/InternalApi.md#editreleaseinternalreleasesreleaseidput) | **PUT** /internal/releases/{release_id} | Edit Release
73
- *InternalApi* | [**getDeviceInfoInternalDevicesDeviceIdGet**](docs/InternalApi.md#getdeviceinfointernaldevicesdeviceidget) | **GET** /internal/devices/{device_id} | Get Device Info
74
- *InternalApi* | [**getLogsInternalLogsGet**](docs/InternalApi.md#getlogsinternallogsget) | **GET** /internal/logs/ | Get Logs
75
- *InternalApi* | [**getReleaseInfoInternalReleasesReleaseIdGet**](docs/InternalApi.md#getreleaseinfointernalreleasesreleaseidget) | **GET** /internal/releases/{release_id} | Get Release Info
76
- *InternalApi* | [**getReleaseZipInternalReleasesReleaseIdDlGet**](docs/InternalApi.md#getreleasezipinternalreleasesreleaseiddlget) | **GET** /internal/releases/{release_id}/dl | Get Release Zip
77
- *InternalApi* | [**getUserByIdInternalUsersUserIdGet**](docs/InternalApi.md#getuserbyidinternalusersuseridget) | **GET** /internal/users/{user_id} | Get User By Id
78
- *InternalApi* | [**listUsersInternalUsersGet**](docs/InternalApi.md#listusersinternalusersget) | **GET** /internal/users/ | List Users
79
- *InternalApi* | [**loginOauthAuthLoginPost**](docs/InternalApi.md#loginoauthauthloginpost) | **POST** /auth/login | Login Oauth
80
- *InternalApi* | [**logoutAuthLogoutPost**](docs/InternalApi.md#logoutauthlogoutpost) | **POST** /auth/logout | Logout
81
- *InternalApi* | [**newDeviceInternalDevicesPost**](docs/InternalApi.md#newdeviceinternaldevicespost) | **POST** /internal/devices/ | New Device
82
- *InternalApi* | [**newReleaseInternalReleasesPost**](docs/InternalApi.md#newreleaseinternalreleasespost) | **POST** /internal/releases/ | New Release
83
- *InternalApi* | [**renewAuthRenewPost**](docs/InternalApi.md#renewauthrenewpost) | **POST** /auth/renew | Renew
84
- *InternalApi* | [**updateDeviceInternalDevicesDeviceIdPut**](docs/InternalApi.md#updatedeviceinternaldevicesdeviceidput) | **PUT** /internal/devices/{device_id} | Update Device
85
- *InternalApi* | [**updateUserInternalUsersUserIdPut**](docs/InternalApi.md#updateuserinternalusersuseridput) | **PUT** /internal/users/{user_id} | Update User
86
- *ReleaseApi* | [**getRelease**](docs/ReleaseApi.md#getrelease) | **GET** /releases/get | Get Release
87
- *ReleaseApi* | [**getReleaseDeprecated**](docs/ReleaseApi.md#getreleasedeprecated) | **GET** /releases/{release_id} | Get Release Short
88
- *ReleaseApi* | [**getReleases**](docs/ReleaseApi.md#getreleases) | **GET** /releases/ | Get Releases
89
- *ReleaseApi* | [**getUpdatesDeprecated**](docs/ReleaseApi.md#getupdatesdeprecated) | **GET** /updates/{last_known_id} | Get Updates
90
- *StatsApi* | [**getPublicStats**](docs/StatsApi.md#getpublicstats) | **GET** /stats/ | Public Stats
91
-
92
-
93
- ### Documentation For Models
94
-
95
- - [BodyChangePasswordProfileChangePasswordPost](docs/BodyChangePasswordProfileChangePasswordPost.md)
96
- - [BuildStatusEnum](docs/BuildStatusEnum.md)
97
- - [BuildTaskResponse](docs/BuildTaskResponse.md)
98
- - [BuildTaskShortResponse](docs/BuildTaskShortResponse.md)
99
- - [DeviceInternalResponse](docs/DeviceInternalResponse.md)
100
- - [DeviceResponse](docs/DeviceResponse.md)
101
- - [DeviceStatsResponse](docs/DeviceStatsResponse.md)
102
- - [DeviceUpdateBody](docs/DeviceUpdateBody.md)
103
- - [FFStatusEnum](docs/FFStatusEnum.md)
104
- - [FFStatusResponse](docs/FFStatusResponse.md)
105
- - [GlobalStatsAggregationModel](docs/GlobalStatsAggregationModel.md)
106
- - [HTTPValidationError](docs/HTTPValidationError.md)
107
- - [ListResponseBuildTaskShortResponse](docs/ListResponseBuildTaskShortResponse.md)
108
- - [ListResponseReleaseResponse](docs/ListResponseReleaseResponse.md)
109
- - [ListResponseShortDeviceResponse](docs/ListResponseShortDeviceResponse.md)
110
- - [ListResponseShortReleaseResponse](docs/ListResponseShortReleaseResponse.md)
111
- - [ListResponseStr](docs/ListResponseStr.md)
112
- - [ListResponseUserShortResponse](docs/ListResponseUserShortResponse.md)
113
- - [LogListResponse](docs/LogListResponse.md)
114
- - [LogResponse](docs/LogResponse.md)
115
- - [MaintainerShortModel](docs/MaintainerShortModel.md)
116
- - [NewBuildTaskBody](docs/NewBuildTaskBody.md)
117
- - [NewDeviceBody](docs/NewDeviceBody.md)
118
- - [RecoveryImgResponse](docs/RecoveryImgResponse.md)
119
- - [ReleaseGroupsResponse](docs/ReleaseGroupsResponse.md)
120
- - [ReleaseInternalResponse](docs/ReleaseInternalResponse.md)
121
- - [ReleaseInternalResponsePropValue](docs/ReleaseInternalResponsePropValue.md)
122
- - [ReleaseResponse](docs/ReleaseResponse.md)
123
- - [ReleaseStatsResponse](docs/ReleaseStatsResponse.md)
124
- - [ReleaseType](docs/ReleaseType.md)
125
- - [ReleaseUpdateBody](docs/ReleaseUpdateBody.md)
126
- - [ReleasesSort](docs/ReleasesSort.md)
127
- - [ResponseGetReleases](docs/ResponseGetReleases.md)
128
- - [ShortDeviceResponse](docs/ShortDeviceResponse.md)
129
- - [ShortReleaseResponse](docs/ShortReleaseResponse.md)
130
- - [TaskUpdateBody](docs/TaskUpdateBody.md)
131
- - [TokenResponse](docs/TokenResponse.md)
132
- - [UserGitlab](docs/UserGitlab.md)
133
- - [UserInternalResponse](docs/UserInternalResponse.md)
134
- - [UserMail](docs/UserMail.md)
135
- - [UserShortResponse](docs/UserShortResponse.md)
136
- - [UserTelegram](docs/UserTelegram.md)
137
- - [UserUpdateBody](docs/UserUpdateBody.md)
138
- - [ValidationError](docs/ValidationError.md)
139
- - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
140
-
141
-
142
- <a id="documentation-for-authorization"></a>
143
- ## Documentation For Authorization
144
-
145
-
146
- Authentication schemes defined for the API:
147
- <a id="bearer_auth"></a>
148
- ### bearer_auth
149
-
150
- - **Type**: Bearer authentication (JWT)
151
-
152
- <a id="oauth2_password"></a>
153
- ### oauth2_password
154
-
155
- - **Type**: OAuth
156
- - **Flow**: password
157
- - **Authorization URL**:
158
- - **Scopes**: N/A
159
-
@@ -0,0 +1,158 @@
1
+ /**
2
+ * Fox API
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 5.2.7
6
+ * Contact: admin@orangefox.tech
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { DeviceResponse, ListResponseShortDeviceResponse, ListResponseStr } from '../models/index';
14
+ export interface GetDeviceRequest {
15
+ deviceId?: string | null;
16
+ id?: string | null;
17
+ codename?: string | null;
18
+ }
19
+ export interface GetDeviceDeprecatedRequest {
20
+ deviceId: string;
21
+ }
22
+ export interface GetDevicesRequest {
23
+ id?: Array<string>;
24
+ id2?: Array<string>;
25
+ oemName?: Array<string>;
26
+ codename?: Array<string>;
27
+ modelName?: Array<string>;
28
+ supported?: boolean | null;
29
+ maintainer?: Array<string>;
30
+ freezed?: boolean | null;
31
+ hasReleases?: boolean | null;
32
+ skip?: number | null;
33
+ limit?: number | null;
34
+ }
35
+ /**
36
+ * DeviceApi - interface
37
+ *
38
+ * @export
39
+ * @interface DeviceApiInterface
40
+ */
41
+ export interface DeviceApiInterface {
42
+ /**
43
+ * 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.
44
+ * @summary Get Device
45
+ * @param {string} [deviceId]
46
+ * @param {string} [id] Filter by Device ID (deprecated)
47
+ * @param {string} [codename] Not recommended to use when you can
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ * @memberof DeviceApiInterface
51
+ */
52
+ getDeviceRaw(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
53
+ /**
54
+ * 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.
55
+ * Get Device
56
+ */
57
+ getDevice(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
58
+ /**
59
+ * Gets device info using device ID.
60
+ * @summary Get Device Short
61
+ * @param {string} deviceId
62
+ * @param {*} [options] Override http request option.
63
+ * @deprecated
64
+ * @throws {RequiredError}
65
+ * @memberof DeviceApiInterface
66
+ */
67
+ getDeviceDeprecatedRaw(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
68
+ /**
69
+ * Gets device info using device ID.
70
+ * Get Device Short
71
+ * @deprecated
72
+ */
73
+ getDeviceDeprecated(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
74
+ /**
75
+ * 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.
76
+ * @summary Get Devices
77
+ * @param {Array<string>} [id] Filter by Device IDs
78
+ * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
79
+ * @param {Array<string>} [oemName] Filter by OEM names
80
+ * @param {Array<string>} [codename] Filter by device codenames
81
+ * @param {Array<string>} [modelName] Filter by model names
82
+ * @param {boolean} [supported] Supported status
83
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
84
+ * @param {boolean} [freezed] Filter by Freezed status
85
+ * @param {boolean} [hasReleases] Filter by has releases status
86
+ * @param {number} [skip] Skip query results
87
+ * @param {number} [limit] Limit query results (0 means unlimited)
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ * @memberof DeviceApiInterface
91
+ */
92
+ getDevicesRaw(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
93
+ /**
94
+ * 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.
95
+ * Get Devices
96
+ */
97
+ getDevices(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
98
+ /**
99
+ * Lists all OEM names
100
+ * @summary Get Oems
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ * @memberof DeviceApiInterface
104
+ */
105
+ getOemsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseStr>>;
106
+ /**
107
+ * Lists all OEM names
108
+ * Get Oems
109
+ */
110
+ getOems(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseStr>;
111
+ }
112
+ /**
113
+ *
114
+ */
115
+ export declare class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
116
+ /**
117
+ * 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.
118
+ * Get Device
119
+ */
120
+ getDeviceRaw(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
121
+ /**
122
+ * 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.
123
+ * Get Device
124
+ */
125
+ getDevice(requestParameters?: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
126
+ /**
127
+ * Gets device info using device ID.
128
+ * Get Device Short
129
+ * @deprecated
130
+ */
131
+ getDeviceDeprecatedRaw(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
132
+ /**
133
+ * Gets device info using device ID.
134
+ * Get Device Short
135
+ * @deprecated
136
+ */
137
+ getDeviceDeprecated(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
138
+ /**
139
+ * 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.
140
+ * Get Devices
141
+ */
142
+ getDevicesRaw(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
143
+ /**
144
+ * 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.
145
+ * Get Devices
146
+ */
147
+ getDevices(requestParameters?: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
148
+ /**
149
+ * Lists all OEM names
150
+ * Get Oems
151
+ */
152
+ getOemsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseStr>>;
153
+ /**
154
+ * Lists all OEM names
155
+ * Get Oems
156
+ */
157
+ getOems(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseStr>;
158
+ }
@@ -0,0 +1,188 @@
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.7
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.DeviceApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class DeviceApi extends runtime.BaseAPI {
32
+ /**
33
+ * 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.
34
+ * Get Device
35
+ */
36
+ getDeviceRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const queryParameters = {};
39
+ if (requestParameters['deviceId'] != null) {
40
+ queryParameters['device_id'] = requestParameters['deviceId'];
41
+ }
42
+ if (requestParameters['id'] != null) {
43
+ queryParameters['_id'] = requestParameters['id'];
44
+ }
45
+ if (requestParameters['codename'] != null) {
46
+ queryParameters['codename'] = requestParameters['codename'];
47
+ }
48
+ const headerParameters = {};
49
+ const response = yield this.request({
50
+ path: `/devices/get`,
51
+ method: 'GET',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ }, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeviceResponseFromJSON)(jsonValue));
56
+ });
57
+ }
58
+ /**
59
+ * 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.
60
+ * Get Device
61
+ */
62
+ getDevice() {
63
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
64
+ const response = yield this.getDeviceRaw(requestParameters, initOverrides);
65
+ return yield response.value();
66
+ });
67
+ }
68
+ /**
69
+ * Gets device info using device ID.
70
+ * Get Device Short
71
+ * @deprecated
72
+ */
73
+ getDeviceDeprecatedRaw(requestParameters, initOverrides) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ if (requestParameters['deviceId'] == null) {
76
+ throw new runtime.RequiredError('deviceId', 'Required parameter "deviceId" was null or undefined when calling getDeviceDeprecated().');
77
+ }
78
+ const queryParameters = {};
79
+ const headerParameters = {};
80
+ const response = yield this.request({
81
+ path: `/devices/{device_id}`.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId']))),
82
+ method: 'GET',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ }, initOverrides);
86
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeviceResponseFromJSON)(jsonValue));
87
+ });
88
+ }
89
+ /**
90
+ * Gets device info using device ID.
91
+ * Get Device Short
92
+ * @deprecated
93
+ */
94
+ getDeviceDeprecated(requestParameters, initOverrides) {
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ const response = yield this.getDeviceDeprecatedRaw(requestParameters, initOverrides);
97
+ return yield response.value();
98
+ });
99
+ }
100
+ /**
101
+ * 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.
102
+ * Get Devices
103
+ */
104
+ getDevicesRaw(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const queryParameters = {};
107
+ if (requestParameters['id'] != null) {
108
+ queryParameters['id'] = requestParameters['id'];
109
+ }
110
+ if (requestParameters['id2'] != null) {
111
+ queryParameters['_id'] = requestParameters['id2'];
112
+ }
113
+ if (requestParameters['oemName'] != null) {
114
+ queryParameters['oem_name'] = requestParameters['oemName'];
115
+ }
116
+ if (requestParameters['codename'] != null) {
117
+ queryParameters['codename'] = requestParameters['codename'];
118
+ }
119
+ if (requestParameters['modelName'] != null) {
120
+ queryParameters['model_name'] = requestParameters['modelName'];
121
+ }
122
+ if (requestParameters['supported'] != null) {
123
+ queryParameters['supported'] = requestParameters['supported'];
124
+ }
125
+ if (requestParameters['maintainer'] != null) {
126
+ queryParameters['maintainer'] = requestParameters['maintainer'];
127
+ }
128
+ if (requestParameters['freezed'] != null) {
129
+ queryParameters['freezed'] = requestParameters['freezed'];
130
+ }
131
+ if (requestParameters['hasReleases'] != null) {
132
+ queryParameters['has_releases'] = requestParameters['hasReleases'];
133
+ }
134
+ if (requestParameters['skip'] != null) {
135
+ queryParameters['skip'] = requestParameters['skip'];
136
+ }
137
+ if (requestParameters['limit'] != null) {
138
+ queryParameters['limit'] = requestParameters['limit'];
139
+ }
140
+ const headerParameters = {};
141
+ const response = yield this.request({
142
+ path: `/devices/`,
143
+ method: 'GET',
144
+ headers: headerParameters,
145
+ query: queryParameters,
146
+ }, initOverrides);
147
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseShortDeviceResponseFromJSON)(jsonValue));
148
+ });
149
+ }
150
+ /**
151
+ * 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.
152
+ * Get Devices
153
+ */
154
+ getDevices() {
155
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
156
+ const response = yield this.getDevicesRaw(requestParameters, initOverrides);
157
+ return yield response.value();
158
+ });
159
+ }
160
+ /**
161
+ * Lists all OEM names
162
+ * Get Oems
163
+ */
164
+ getOemsRaw(initOverrides) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ const queryParameters = {};
167
+ const headerParameters = {};
168
+ const response = yield this.request({
169
+ path: `/oems/`,
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ }, initOverrides);
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseStrFromJSON)(jsonValue));
175
+ });
176
+ }
177
+ /**
178
+ * Lists all OEM names
179
+ * Get Oems
180
+ */
181
+ getOems(initOverrides) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const response = yield this.getOemsRaw(initOverrides);
184
+ return yield response.value();
185
+ });
186
+ }
187
+ }
188
+ exports.DeviceApi = DeviceApi;