@goauthentik/api 2025.12.0-rc1-1764545300 → 2025.12.0-rc1-1764697794

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 (328) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/dist/apis/AdminApi.d.ts +64 -1
  3. package/dist/apis/AdminApi.d.ts.map +1 -1
  4. package/dist/apis/AdminApi.js +173 -1
  5. package/dist/apis/AdminApi.js.map +1 -1
  6. package/dist/apis/CoreApi.d.ts +1 -26
  7. package/dist/apis/CoreApi.d.ts.map +1 -1
  8. package/dist/apis/CoreApi.js +0 -91
  9. package/dist/apis/CoreApi.js.map +1 -1
  10. package/dist/apis/FlowsApi.d.ts +1 -26
  11. package/dist/apis/FlowsApi.d.ts.map +1 -1
  12. package/dist/apis/FlowsApi.js +0 -91
  13. package/dist/apis/FlowsApi.js.map +1 -1
  14. package/dist/apis/SourcesApi.d.ts +1 -26
  15. package/dist/apis/SourcesApi.d.ts.map +1 -1
  16. package/dist/apis/SourcesApi.js +0 -91
  17. package/dist/apis/SourcesApi.js.map +1 -1
  18. package/dist/esm/apis/AdminApi.d.ts +64 -1
  19. package/dist/esm/apis/AdminApi.d.ts.map +1 -1
  20. package/dist/esm/apis/AdminApi.js +173 -1
  21. package/dist/esm/apis/AdminApi.js.map +1 -1
  22. package/dist/esm/apis/CoreApi.d.ts +1 -26
  23. package/dist/esm/apis/CoreApi.d.ts.map +1 -1
  24. package/dist/esm/apis/CoreApi.js +0 -91
  25. package/dist/esm/apis/CoreApi.js.map +1 -1
  26. package/dist/esm/apis/FlowsApi.d.ts +1 -26
  27. package/dist/esm/apis/FlowsApi.d.ts.map +1 -1
  28. package/dist/esm/apis/FlowsApi.js +0 -91
  29. package/dist/esm/apis/FlowsApi.js.map +1 -1
  30. package/dist/esm/apis/SourcesApi.d.ts +1 -26
  31. package/dist/esm/apis/SourcesApi.d.ts.map +1 -1
  32. package/dist/esm/apis/SourcesApi.js +0 -91
  33. package/dist/esm/apis/SourcesApi.js.map +1 -1
  34. package/dist/esm/models/AppEnum.d.ts +1 -0
  35. package/dist/esm/models/AppEnum.d.ts.map +1 -1
  36. package/dist/esm/models/AppEnum.js +1 -0
  37. package/dist/esm/models/AppEnum.js.map +1 -1
  38. package/dist/esm/models/Application.d.ts +9 -4
  39. package/dist/esm/models/Application.d.ts.map +1 -1
  40. package/dist/esm/models/Application.js +4 -2
  41. package/dist/esm/models/Application.js.map +1 -1
  42. package/dist/esm/models/ApplicationRequest.d.ts +6 -0
  43. package/dist/esm/models/ApplicationRequest.d.ts.map +1 -1
  44. package/dist/esm/models/ApplicationRequest.js +2 -0
  45. package/dist/esm/models/ApplicationRequest.js.map +1 -1
  46. package/dist/esm/models/FileList.d.ts +45 -0
  47. package/dist/esm/models/FileList.d.ts.map +1 -0
  48. package/dist/esm/models/FileList.js +59 -0
  49. package/dist/esm/models/FileList.js.map +1 -0
  50. package/dist/esm/models/Flow.d.ts +9 -4
  51. package/dist/esm/models/Flow.d.ts.map +1 -1
  52. package/dist/esm/models/Flow.js +4 -2
  53. package/dist/esm/models/Flow.js.map +1 -1
  54. package/dist/esm/models/FlowRequest.d.ts +6 -0
  55. package/dist/esm/models/FlowRequest.d.ts.map +1 -1
  56. package/dist/esm/models/FlowRequest.js +2 -0
  57. package/dist/esm/models/FlowRequest.js.map +1 -1
  58. package/dist/esm/models/FlowSet.d.ts +3 -4
  59. package/dist/esm/models/FlowSet.d.ts.map +1 -1
  60. package/dist/esm/models/FlowSet.js +2 -2
  61. package/dist/esm/models/FlowSet.js.map +1 -1
  62. package/dist/esm/models/KerberosSource.d.ts +8 -2
  63. package/dist/esm/models/KerberosSource.d.ts.map +1 -1
  64. package/dist/esm/models/KerberosSource.js +4 -2
  65. package/dist/esm/models/KerberosSource.js.map +1 -1
  66. package/dist/esm/models/KerberosSourceRequest.d.ts +6 -0
  67. package/dist/esm/models/KerberosSourceRequest.d.ts.map +1 -1
  68. package/dist/esm/models/KerberosSourceRequest.js +2 -0
  69. package/dist/esm/models/KerberosSourceRequest.js.map +1 -1
  70. package/dist/esm/models/LDAPSource.d.ts +8 -2
  71. package/dist/esm/models/LDAPSource.d.ts.map +1 -1
  72. package/dist/esm/models/LDAPSource.js +4 -2
  73. package/dist/esm/models/LDAPSource.js.map +1 -1
  74. package/dist/esm/models/LDAPSourceRequest.d.ts +6 -0
  75. package/dist/esm/models/LDAPSourceRequest.d.ts.map +1 -1
  76. package/dist/esm/models/LDAPSourceRequest.js +2 -0
  77. package/dist/esm/models/LDAPSourceRequest.js.map +1 -1
  78. package/dist/esm/models/OAuthSource.d.ts +8 -2
  79. package/dist/esm/models/OAuthSource.d.ts.map +1 -1
  80. package/dist/esm/models/OAuthSource.js +4 -2
  81. package/dist/esm/models/OAuthSource.js.map +1 -1
  82. package/dist/esm/models/OAuthSourceRequest.d.ts +6 -0
  83. package/dist/esm/models/OAuthSourceRequest.d.ts.map +1 -1
  84. package/dist/esm/models/OAuthSourceRequest.js +2 -0
  85. package/dist/esm/models/OAuthSourceRequest.js.map +1 -1
  86. package/dist/esm/models/PatchedApplicationRequest.d.ts +6 -0
  87. package/dist/esm/models/PatchedApplicationRequest.d.ts.map +1 -1
  88. package/dist/esm/models/PatchedApplicationRequest.js +2 -0
  89. package/dist/esm/models/PatchedApplicationRequest.js.map +1 -1
  90. package/dist/esm/models/PatchedFlowRequest.d.ts +6 -0
  91. package/dist/esm/models/PatchedFlowRequest.d.ts.map +1 -1
  92. package/dist/esm/models/PatchedFlowRequest.js +2 -0
  93. package/dist/esm/models/PatchedFlowRequest.js.map +1 -1
  94. package/dist/esm/models/PatchedKerberosSourceRequest.d.ts +6 -0
  95. package/dist/esm/models/PatchedKerberosSourceRequest.d.ts.map +1 -1
  96. package/dist/esm/models/PatchedKerberosSourceRequest.js +2 -0
  97. package/dist/esm/models/PatchedKerberosSourceRequest.js.map +1 -1
  98. package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +6 -0
  99. package/dist/esm/models/PatchedLDAPSourceRequest.d.ts.map +1 -1
  100. package/dist/esm/models/PatchedLDAPSourceRequest.js +2 -0
  101. package/dist/esm/models/PatchedLDAPSourceRequest.js.map +1 -1
  102. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +6 -0
  103. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts.map +1 -1
  104. package/dist/esm/models/PatchedOAuthSourceRequest.js +2 -0
  105. package/dist/esm/models/PatchedOAuthSourceRequest.js.map +1 -1
  106. package/dist/esm/models/PatchedPlexSourceRequest.d.ts +6 -0
  107. package/dist/esm/models/PatchedPlexSourceRequest.d.ts.map +1 -1
  108. package/dist/esm/models/PatchedPlexSourceRequest.js +2 -0
  109. package/dist/esm/models/PatchedPlexSourceRequest.js.map +1 -1
  110. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +6 -0
  111. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts.map +1 -1
  112. package/dist/esm/models/PatchedSAMLSourceRequest.js +2 -0
  113. package/dist/esm/models/PatchedSAMLSourceRequest.js.map +1 -1
  114. package/dist/esm/models/PatchedTelegramSourceRequest.d.ts +6 -0
  115. package/dist/esm/models/PatchedTelegramSourceRequest.d.ts.map +1 -1
  116. package/dist/esm/models/PatchedTelegramSourceRequest.js +2 -0
  117. package/dist/esm/models/PatchedTelegramSourceRequest.js.map +1 -1
  118. package/dist/esm/models/PlexSource.d.ts +8 -2
  119. package/dist/esm/models/PlexSource.d.ts.map +1 -1
  120. package/dist/esm/models/PlexSource.js +4 -2
  121. package/dist/esm/models/PlexSource.js.map +1 -1
  122. package/dist/esm/models/PlexSourceRequest.d.ts +6 -0
  123. package/dist/esm/models/PlexSourceRequest.d.ts.map +1 -1
  124. package/dist/esm/models/PlexSourceRequest.js +2 -0
  125. package/dist/esm/models/PlexSourceRequest.js.map +1 -1
  126. package/dist/esm/models/ProviderTypeEnum.d.ts +1 -0
  127. package/dist/esm/models/ProviderTypeEnum.d.ts.map +1 -1
  128. package/dist/esm/models/ProviderTypeEnum.js +1 -0
  129. package/dist/esm/models/ProviderTypeEnum.js.map +1 -1
  130. package/dist/esm/models/SAMLSource.d.ts +8 -2
  131. package/dist/esm/models/SAMLSource.d.ts.map +1 -1
  132. package/dist/esm/models/SAMLSource.js +4 -2
  133. package/dist/esm/models/SAMLSource.js.map +1 -1
  134. package/dist/esm/models/SAMLSourceRequest.d.ts +6 -0
  135. package/dist/esm/models/SAMLSourceRequest.d.ts.map +1 -1
  136. package/dist/esm/models/SAMLSourceRequest.js +2 -0
  137. package/dist/esm/models/SAMLSourceRequest.js.map +1 -1
  138. package/dist/esm/models/Source.d.ts +9 -4
  139. package/dist/esm/models/Source.d.ts.map +1 -1
  140. package/dist/esm/models/Source.js +4 -2
  141. package/dist/esm/models/Source.js.map +1 -1
  142. package/dist/esm/models/TelegramSource.d.ts +8 -2
  143. package/dist/esm/models/TelegramSource.d.ts.map +1 -1
  144. package/dist/esm/models/TelegramSource.js +4 -2
  145. package/dist/esm/models/TelegramSource.js.map +1 -1
  146. package/dist/esm/models/TelegramSourceRequest.d.ts +6 -0
  147. package/dist/esm/models/TelegramSourceRequest.d.ts.map +1 -1
  148. package/dist/esm/models/TelegramSourceRequest.js +2 -0
  149. package/dist/esm/models/TelegramSourceRequest.js.map +1 -1
  150. package/dist/esm/models/UsedByActionEnum.d.ts +1 -0
  151. package/dist/esm/models/UsedByActionEnum.d.ts.map +1 -1
  152. package/dist/esm/models/UsedByActionEnum.js +1 -0
  153. package/dist/esm/models/UsedByActionEnum.js.map +1 -1
  154. package/dist/esm/models/index.d.ts +1 -1
  155. package/dist/esm/models/index.d.ts.map +1 -1
  156. package/dist/esm/models/index.js +1 -1
  157. package/dist/esm/models/index.js.map +1 -1
  158. package/dist/models/AppEnum.d.ts +1 -0
  159. package/dist/models/AppEnum.d.ts.map +1 -1
  160. package/dist/models/AppEnum.js +1 -0
  161. package/dist/models/AppEnum.js.map +1 -1
  162. package/dist/models/Application.d.ts +9 -4
  163. package/dist/models/Application.d.ts.map +1 -1
  164. package/dist/models/Application.js +4 -2
  165. package/dist/models/Application.js.map +1 -1
  166. package/dist/models/ApplicationRequest.d.ts +6 -0
  167. package/dist/models/ApplicationRequest.d.ts.map +1 -1
  168. package/dist/models/ApplicationRequest.js +2 -0
  169. package/dist/models/ApplicationRequest.js.map +1 -1
  170. package/dist/models/FileList.d.ts +45 -0
  171. package/dist/models/FileList.d.ts.map +1 -0
  172. package/dist/models/FileList.js +59 -0
  173. package/dist/models/FileList.js.map +1 -0
  174. package/dist/models/Flow.d.ts +9 -4
  175. package/dist/models/Flow.d.ts.map +1 -1
  176. package/dist/models/Flow.js +4 -2
  177. package/dist/models/Flow.js.map +1 -1
  178. package/dist/models/FlowRequest.d.ts +6 -0
  179. package/dist/models/FlowRequest.d.ts.map +1 -1
  180. package/dist/models/FlowRequest.js +2 -0
  181. package/dist/models/FlowRequest.js.map +1 -1
  182. package/dist/models/FlowSet.d.ts +3 -4
  183. package/dist/models/FlowSet.d.ts.map +1 -1
  184. package/dist/models/FlowSet.js +2 -2
  185. package/dist/models/FlowSet.js.map +1 -1
  186. package/dist/models/KerberosSource.d.ts +8 -2
  187. package/dist/models/KerberosSource.d.ts.map +1 -1
  188. package/dist/models/KerberosSource.js +4 -2
  189. package/dist/models/KerberosSource.js.map +1 -1
  190. package/dist/models/KerberosSourceRequest.d.ts +6 -0
  191. package/dist/models/KerberosSourceRequest.d.ts.map +1 -1
  192. package/dist/models/KerberosSourceRequest.js +2 -0
  193. package/dist/models/KerberosSourceRequest.js.map +1 -1
  194. package/dist/models/LDAPSource.d.ts +8 -2
  195. package/dist/models/LDAPSource.d.ts.map +1 -1
  196. package/dist/models/LDAPSource.js +4 -2
  197. package/dist/models/LDAPSource.js.map +1 -1
  198. package/dist/models/LDAPSourceRequest.d.ts +6 -0
  199. package/dist/models/LDAPSourceRequest.d.ts.map +1 -1
  200. package/dist/models/LDAPSourceRequest.js +2 -0
  201. package/dist/models/LDAPSourceRequest.js.map +1 -1
  202. package/dist/models/OAuthSource.d.ts +8 -2
  203. package/dist/models/OAuthSource.d.ts.map +1 -1
  204. package/dist/models/OAuthSource.js +4 -2
  205. package/dist/models/OAuthSource.js.map +1 -1
  206. package/dist/models/OAuthSourceRequest.d.ts +6 -0
  207. package/dist/models/OAuthSourceRequest.d.ts.map +1 -1
  208. package/dist/models/OAuthSourceRequest.js +2 -0
  209. package/dist/models/OAuthSourceRequest.js.map +1 -1
  210. package/dist/models/PatchedApplicationRequest.d.ts +6 -0
  211. package/dist/models/PatchedApplicationRequest.d.ts.map +1 -1
  212. package/dist/models/PatchedApplicationRequest.js +2 -0
  213. package/dist/models/PatchedApplicationRequest.js.map +1 -1
  214. package/dist/models/PatchedFlowRequest.d.ts +6 -0
  215. package/dist/models/PatchedFlowRequest.d.ts.map +1 -1
  216. package/dist/models/PatchedFlowRequest.js +2 -0
  217. package/dist/models/PatchedFlowRequest.js.map +1 -1
  218. package/dist/models/PatchedKerberosSourceRequest.d.ts +6 -0
  219. package/dist/models/PatchedKerberosSourceRequest.d.ts.map +1 -1
  220. package/dist/models/PatchedKerberosSourceRequest.js +2 -0
  221. package/dist/models/PatchedKerberosSourceRequest.js.map +1 -1
  222. package/dist/models/PatchedLDAPSourceRequest.d.ts +6 -0
  223. package/dist/models/PatchedLDAPSourceRequest.d.ts.map +1 -1
  224. package/dist/models/PatchedLDAPSourceRequest.js +2 -0
  225. package/dist/models/PatchedLDAPSourceRequest.js.map +1 -1
  226. package/dist/models/PatchedOAuthSourceRequest.d.ts +6 -0
  227. package/dist/models/PatchedOAuthSourceRequest.d.ts.map +1 -1
  228. package/dist/models/PatchedOAuthSourceRequest.js +2 -0
  229. package/dist/models/PatchedOAuthSourceRequest.js.map +1 -1
  230. package/dist/models/PatchedPlexSourceRequest.d.ts +6 -0
  231. package/dist/models/PatchedPlexSourceRequest.d.ts.map +1 -1
  232. package/dist/models/PatchedPlexSourceRequest.js +2 -0
  233. package/dist/models/PatchedPlexSourceRequest.js.map +1 -1
  234. package/dist/models/PatchedSAMLSourceRequest.d.ts +6 -0
  235. package/dist/models/PatchedSAMLSourceRequest.d.ts.map +1 -1
  236. package/dist/models/PatchedSAMLSourceRequest.js +2 -0
  237. package/dist/models/PatchedSAMLSourceRequest.js.map +1 -1
  238. package/dist/models/PatchedTelegramSourceRequest.d.ts +6 -0
  239. package/dist/models/PatchedTelegramSourceRequest.d.ts.map +1 -1
  240. package/dist/models/PatchedTelegramSourceRequest.js +2 -0
  241. package/dist/models/PatchedTelegramSourceRequest.js.map +1 -1
  242. package/dist/models/PlexSource.d.ts +8 -2
  243. package/dist/models/PlexSource.d.ts.map +1 -1
  244. package/dist/models/PlexSource.js +4 -2
  245. package/dist/models/PlexSource.js.map +1 -1
  246. package/dist/models/PlexSourceRequest.d.ts +6 -0
  247. package/dist/models/PlexSourceRequest.d.ts.map +1 -1
  248. package/dist/models/PlexSourceRequest.js +2 -0
  249. package/dist/models/PlexSourceRequest.js.map +1 -1
  250. package/dist/models/ProviderTypeEnum.d.ts +1 -0
  251. package/dist/models/ProviderTypeEnum.d.ts.map +1 -1
  252. package/dist/models/ProviderTypeEnum.js +1 -0
  253. package/dist/models/ProviderTypeEnum.js.map +1 -1
  254. package/dist/models/SAMLSource.d.ts +8 -2
  255. package/dist/models/SAMLSource.d.ts.map +1 -1
  256. package/dist/models/SAMLSource.js +4 -2
  257. package/dist/models/SAMLSource.js.map +1 -1
  258. package/dist/models/SAMLSourceRequest.d.ts +6 -0
  259. package/dist/models/SAMLSourceRequest.d.ts.map +1 -1
  260. package/dist/models/SAMLSourceRequest.js +2 -0
  261. package/dist/models/SAMLSourceRequest.js.map +1 -1
  262. package/dist/models/Source.d.ts +9 -4
  263. package/dist/models/Source.d.ts.map +1 -1
  264. package/dist/models/Source.js +4 -2
  265. package/dist/models/Source.js.map +1 -1
  266. package/dist/models/TelegramSource.d.ts +8 -2
  267. package/dist/models/TelegramSource.d.ts.map +1 -1
  268. package/dist/models/TelegramSource.js +4 -2
  269. package/dist/models/TelegramSource.js.map +1 -1
  270. package/dist/models/TelegramSourceRequest.d.ts +6 -0
  271. package/dist/models/TelegramSourceRequest.d.ts.map +1 -1
  272. package/dist/models/TelegramSourceRequest.js +2 -0
  273. package/dist/models/TelegramSourceRequest.js.map +1 -1
  274. package/dist/models/UsedByActionEnum.d.ts +1 -0
  275. package/dist/models/UsedByActionEnum.d.ts.map +1 -1
  276. package/dist/models/UsedByActionEnum.js +1 -0
  277. package/dist/models/UsedByActionEnum.js.map +1 -1
  278. package/dist/models/index.d.ts +1 -1
  279. package/dist/models/index.d.ts.map +1 -1
  280. package/dist/models/index.js +1 -1
  281. package/dist/models/index.js.map +1 -1
  282. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  283. package/package.json +1 -1
  284. package/src/apis/AdminApi.ts +248 -0
  285. package/src/apis/CoreApi.ts +0 -137
  286. package/src/apis/FlowsApi.ts +0 -137
  287. package/src/apis/SourcesApi.ts +0 -137
  288. package/src/models/AppEnum.ts +1 -0
  289. package/src/models/Application.ts +13 -6
  290. package/src/models/ApplicationRequest.ts +8 -0
  291. package/src/models/FileList.ts +84 -0
  292. package/src/models/Flow.ts +13 -6
  293. package/src/models/FlowRequest.ts +8 -0
  294. package/src/models/FlowSet.ts +5 -6
  295. package/src/models/KerberosSource.ts +12 -4
  296. package/src/models/KerberosSourceRequest.ts +8 -0
  297. package/src/models/LDAPSource.ts +12 -4
  298. package/src/models/LDAPSourceRequest.ts +8 -0
  299. package/src/models/OAuthSource.ts +12 -4
  300. package/src/models/OAuthSourceRequest.ts +8 -0
  301. package/src/models/PatchedApplicationRequest.ts +8 -0
  302. package/src/models/PatchedFlowRequest.ts +8 -0
  303. package/src/models/PatchedKerberosSourceRequest.ts +8 -0
  304. package/src/models/PatchedLDAPSourceRequest.ts +8 -0
  305. package/src/models/PatchedOAuthSourceRequest.ts +8 -0
  306. package/src/models/PatchedPlexSourceRequest.ts +8 -0
  307. package/src/models/PatchedSAMLSourceRequest.ts +8 -0
  308. package/src/models/PatchedTelegramSourceRequest.ts +8 -0
  309. package/src/models/PlexSource.ts +12 -4
  310. package/src/models/PlexSourceRequest.ts +8 -0
  311. package/src/models/ProviderTypeEnum.ts +1 -0
  312. package/src/models/SAMLSource.ts +12 -4
  313. package/src/models/SAMLSourceRequest.ts +8 -0
  314. package/src/models/Source.ts +13 -6
  315. package/src/models/TelegramSource.ts +12 -4
  316. package/src/models/TelegramSourceRequest.ts +8 -0
  317. package/src/models/UsedByActionEnum.ts +1 -0
  318. package/src/models/index.ts +1 -1
  319. package/tsconfig.tsbuildinfo +1 -1
  320. package/dist/esm/models/FilePathRequest.d.ts +0 -33
  321. package/dist/esm/models/FilePathRequest.d.ts.map +0 -1
  322. package/dist/esm/models/FilePathRequest.js +0 -51
  323. package/dist/esm/models/FilePathRequest.js.map +0 -1
  324. package/dist/models/FilePathRequest.d.ts +0 -33
  325. package/dist/models/FilePathRequest.d.ts.map +0 -1
  326. package/dist/models/FilePathRequest.js +0 -51
  327. package/dist/models/FilePathRequest.js.map +0 -1
  328. package/src/models/FilePathRequest.ts +0 -66
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2025.12.0-rc1-1764545300",
3
+ "version": "2025.12.0-rc1-1764697794",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,11 +16,13 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  App,
19
+ FileList,
19
20
  GenericError,
20
21
  PatchedSettingsRequest,
21
22
  Settings,
22
23
  SettingsRequest,
23
24
  SystemInfo,
25
+ UsedBy,
24
26
  ValidationError,
25
27
  Version,
26
28
  VersionHistory,
@@ -28,6 +30,8 @@ import type {
28
30
  import {
29
31
  AppFromJSON,
30
32
  AppToJSON,
33
+ FileListFromJSON,
34
+ FileListToJSON,
31
35
  GenericErrorFromJSON,
32
36
  GenericErrorToJSON,
33
37
  PatchedSettingsRequestFromJSON,
@@ -38,6 +42,8 @@ import {
38
42
  SettingsRequestToJSON,
39
43
  SystemInfoFromJSON,
40
44
  SystemInfoToJSON,
45
+ UsedByFromJSON,
46
+ UsedByToJSON,
41
47
  ValidationErrorFromJSON,
42
48
  ValidationErrorToJSON,
43
49
  VersionFromJSON,
@@ -46,6 +52,27 @@ import {
46
52
  VersionHistoryToJSON,
47
53
  } from '../models/index';
48
54
 
55
+ export interface AdminFileCreateRequest {
56
+ file: Blob;
57
+ name?: string;
58
+ usage?: string;
59
+ }
60
+
61
+ export interface AdminFileDestroyRequest {
62
+ name?: string;
63
+ usage?: AdminFileDestroyUsageEnum;
64
+ }
65
+
66
+ export interface AdminFileListRequest {
67
+ manageableOnly?: boolean;
68
+ search?: string;
69
+ usage?: AdminFileListUsageEnum;
70
+ }
71
+
72
+ export interface AdminFileUsedByListRequest {
73
+ name?: string;
74
+ }
75
+
49
76
  export interface AdminSettingsPartialUpdateRequest {
50
77
  patchedSettingsRequest?: PatchedSettingsRequest;
51
78
  }
@@ -107,6 +134,210 @@ export class AdminApi extends runtime.BaseAPI {
107
134
  return await response.value();
108
135
  }
109
136
 
137
+ /**
138
+ * Upload file to storage backend.
139
+ */
140
+ async adminFileCreateRaw(requestParameters: AdminFileCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
141
+ if (requestParameters['file'] == null) {
142
+ throw new runtime.RequiredError(
143
+ 'file',
144
+ 'Required parameter "file" was null or undefined when calling adminFileCreate().'
145
+ );
146
+ }
147
+
148
+ const queryParameters: any = {};
149
+
150
+ const headerParameters: runtime.HTTPHeaders = {};
151
+
152
+ if (this.configuration && this.configuration.accessToken) {
153
+ const token = this.configuration.accessToken;
154
+ const tokenString = await token("authentik", []);
155
+
156
+ if (tokenString) {
157
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
158
+ }
159
+ }
160
+ const consumes: runtime.Consume[] = [
161
+ { contentType: 'multipart/form-data' },
162
+ ];
163
+ // @ts-ignore: canConsumeForm may be unused
164
+ const canConsumeForm = runtime.canConsumeForm(consumes);
165
+
166
+ let formParams: { append(param: string, value: any): any };
167
+ let useForm = false;
168
+ // use FormData to transmit files using content-type "multipart/form-data"
169
+ useForm = canConsumeForm;
170
+ if (useForm) {
171
+ formParams = new FormData();
172
+ } else {
173
+ formParams = new URLSearchParams();
174
+ }
175
+
176
+ if (requestParameters['file'] != null) {
177
+ formParams.append('file', requestParameters['file'] as any);
178
+ }
179
+
180
+ if (requestParameters['name'] != null) {
181
+ formParams.append('name', requestParameters['name'] as any);
182
+ }
183
+
184
+ if (requestParameters['usage'] != null) {
185
+ formParams.append('usage', requestParameters['usage'] as any);
186
+ }
187
+
188
+
189
+ let urlPath = `/admin/file/`;
190
+
191
+ const response = await this.request({
192
+ path: urlPath,
193
+ method: 'POST',
194
+ headers: headerParameters,
195
+ query: queryParameters,
196
+ body: formParams,
197
+ }, initOverrides);
198
+
199
+ return new runtime.VoidApiResponse(response);
200
+ }
201
+
202
+ /**
203
+ * Upload file to storage backend.
204
+ */
205
+ async adminFileCreate(requestParameters: AdminFileCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
206
+ await this.adminFileCreateRaw(requestParameters, initOverrides);
207
+ }
208
+
209
+ /**
210
+ * Delete file from storage backend.
211
+ */
212
+ async adminFileDestroyRaw(requestParameters: AdminFileDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
213
+ const queryParameters: any = {};
214
+
215
+ if (requestParameters['name'] != null) {
216
+ queryParameters['name'] = requestParameters['name'];
217
+ }
218
+
219
+ if (requestParameters['usage'] != null) {
220
+ queryParameters['usage'] = requestParameters['usage'];
221
+ }
222
+
223
+ const headerParameters: runtime.HTTPHeaders = {};
224
+
225
+ if (this.configuration && this.configuration.accessToken) {
226
+ const token = this.configuration.accessToken;
227
+ const tokenString = await token("authentik", []);
228
+
229
+ if (tokenString) {
230
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
231
+ }
232
+ }
233
+
234
+ let urlPath = `/admin/file/`;
235
+
236
+ const response = await this.request({
237
+ path: urlPath,
238
+ method: 'DELETE',
239
+ headers: headerParameters,
240
+ query: queryParameters,
241
+ }, initOverrides);
242
+
243
+ return new runtime.VoidApiResponse(response);
244
+ }
245
+
246
+ /**
247
+ * Delete file from storage backend.
248
+ */
249
+ async adminFileDestroy(requestParameters: AdminFileDestroyRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
250
+ await this.adminFileDestroyRaw(requestParameters, initOverrides);
251
+ }
252
+
253
+ /**
254
+ * List files from storage backend.
255
+ */
256
+ async adminFileListRaw(requestParameters: AdminFileListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FileList>>> {
257
+ const queryParameters: any = {};
258
+
259
+ if (requestParameters['manageableOnly'] != null) {
260
+ queryParameters['manageable_only'] = requestParameters['manageableOnly'];
261
+ }
262
+
263
+ if (requestParameters['search'] != null) {
264
+ queryParameters['search'] = requestParameters['search'];
265
+ }
266
+
267
+ if (requestParameters['usage'] != null) {
268
+ queryParameters['usage'] = requestParameters['usage'];
269
+ }
270
+
271
+ const headerParameters: runtime.HTTPHeaders = {};
272
+
273
+ if (this.configuration && this.configuration.accessToken) {
274
+ const token = this.configuration.accessToken;
275
+ const tokenString = await token("authentik", []);
276
+
277
+ if (tokenString) {
278
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
279
+ }
280
+ }
281
+
282
+ let urlPath = `/admin/file/`;
283
+
284
+ const response = await this.request({
285
+ path: urlPath,
286
+ method: 'GET',
287
+ headers: headerParameters,
288
+ query: queryParameters,
289
+ }, initOverrides);
290
+
291
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(FileListFromJSON));
292
+ }
293
+
294
+ /**
295
+ * List files from storage backend.
296
+ */
297
+ async adminFileList(requestParameters: AdminFileListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FileList>> {
298
+ const response = await this.adminFileListRaw(requestParameters, initOverrides);
299
+ return await response.value();
300
+ }
301
+
302
+ /**
303
+ */
304
+ async adminFileUsedByListRaw(requestParameters: AdminFileUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
305
+ const queryParameters: any = {};
306
+
307
+ if (requestParameters['name'] != null) {
308
+ queryParameters['name'] = requestParameters['name'];
309
+ }
310
+
311
+ const headerParameters: runtime.HTTPHeaders = {};
312
+
313
+ if (this.configuration && this.configuration.accessToken) {
314
+ const token = this.configuration.accessToken;
315
+ const tokenString = await token("authentik", []);
316
+
317
+ if (tokenString) {
318
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
319
+ }
320
+ }
321
+
322
+ let urlPath = `/admin/file/used_by/`;
323
+
324
+ const response = await this.request({
325
+ path: urlPath,
326
+ method: 'GET',
327
+ headers: headerParameters,
328
+ query: queryParameters,
329
+ }, initOverrides);
330
+
331
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
332
+ }
333
+
334
+ /**
335
+ */
336
+ async adminFileUsedByList(requestParameters: AdminFileUsedByListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
337
+ const response = await this.adminFileUsedByListRaw(requestParameters, initOverrides);
338
+ return await response.value();
339
+ }
340
+
110
341
  /**
111
342
  * Read-only view list all installed models
112
343
  */
@@ -478,3 +709,20 @@ export class AdminApi extends runtime.BaseAPI {
478
709
  }
479
710
 
480
711
  }
712
+
713
+ /**
714
+ * @export
715
+ */
716
+ export const AdminFileDestroyUsageEnum = {
717
+ Media: 'media',
718
+ UnknownDefaultOpenApi: '11184809'
719
+ } as const;
720
+ export type AdminFileDestroyUsageEnum = typeof AdminFileDestroyUsageEnum[keyof typeof AdminFileDestroyUsageEnum];
721
+ /**
722
+ * @export
723
+ */
724
+ export const AdminFileListUsageEnum = {
725
+ Media: 'media',
726
+ UnknownDefaultOpenApi: '11184809'
727
+ } as const;
728
+ export type AdminFileListUsageEnum = typeof AdminFileListUsageEnum[keyof typeof AdminFileListUsageEnum];
@@ -23,7 +23,6 @@ import type {
23
23
  Brand,
24
24
  BrandRequest,
25
25
  CurrentBrand,
26
- FilePathRequest,
27
26
  GenericError,
28
27
  Group,
29
28
  GroupRequest,
@@ -79,8 +78,6 @@ import {
79
78
  BrandRequestToJSON,
80
79
  CurrentBrandFromJSON,
81
80
  CurrentBrandToJSON,
82
- FilePathRequestFromJSON,
83
- FilePathRequestToJSON,
84
81
  GenericErrorFromJSON,
85
82
  GenericErrorToJSON,
86
83
  GroupFromJSON,
@@ -231,17 +228,6 @@ export interface CoreApplicationsRetrieveRequest {
231
228
  slug: string;
232
229
  }
233
230
 
234
- export interface CoreApplicationsSetIconCreateRequest {
235
- slug: string;
236
- file?: Blob;
237
- clear?: boolean;
238
- }
239
-
240
- export interface CoreApplicationsSetIconUrlCreateRequest {
241
- slug: string;
242
- filePathRequest: FilePathRequest;
243
- }
244
-
245
231
  export interface CoreApplicationsUpdateRequest {
246
232
  slug: string;
247
233
  applicationRequest: ApplicationRequest;
@@ -1202,129 +1188,6 @@ export class CoreApi extends runtime.BaseAPI {
1202
1188
  return await response.value();
1203
1189
  }
1204
1190
 
1205
- /**
1206
- * Set application icon
1207
- */
1208
- async coreApplicationsSetIconCreateRaw(requestParameters: CoreApplicationsSetIconCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1209
- if (requestParameters['slug'] == null) {
1210
- throw new runtime.RequiredError(
1211
- 'slug',
1212
- 'Required parameter "slug" was null or undefined when calling coreApplicationsSetIconCreate().'
1213
- );
1214
- }
1215
-
1216
- const queryParameters: any = {};
1217
-
1218
- const headerParameters: runtime.HTTPHeaders = {};
1219
-
1220
- if (this.configuration && this.configuration.accessToken) {
1221
- const token = this.configuration.accessToken;
1222
- const tokenString = await token("authentik", []);
1223
-
1224
- if (tokenString) {
1225
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1226
- }
1227
- }
1228
- const consumes: runtime.Consume[] = [
1229
- { contentType: 'multipart/form-data' },
1230
- ];
1231
- // @ts-ignore: canConsumeForm may be unused
1232
- const canConsumeForm = runtime.canConsumeForm(consumes);
1233
-
1234
- let formParams: { append(param: string, value: any): any };
1235
- let useForm = false;
1236
- // use FormData to transmit files using content-type "multipart/form-data"
1237
- useForm = canConsumeForm;
1238
- if (useForm) {
1239
- formParams = new FormData();
1240
- } else {
1241
- formParams = new URLSearchParams();
1242
- }
1243
-
1244
- if (requestParameters['file'] != null) {
1245
- formParams.append('file', requestParameters['file'] as any);
1246
- }
1247
-
1248
- if (requestParameters['clear'] != null) {
1249
- formParams.append('clear', requestParameters['clear'] as any);
1250
- }
1251
-
1252
-
1253
- let urlPath = `/core/applications/{slug}/set_icon/`;
1254
- urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
1255
-
1256
- const response = await this.request({
1257
- path: urlPath,
1258
- method: 'POST',
1259
- headers: headerParameters,
1260
- query: queryParameters,
1261
- body: formParams,
1262
- }, initOverrides);
1263
-
1264
- return new runtime.VoidApiResponse(response);
1265
- }
1266
-
1267
- /**
1268
- * Set application icon
1269
- */
1270
- async coreApplicationsSetIconCreate(requestParameters: CoreApplicationsSetIconCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1271
- await this.coreApplicationsSetIconCreateRaw(requestParameters, initOverrides);
1272
- }
1273
-
1274
- /**
1275
- * Set application icon (as URL)
1276
- */
1277
- async coreApplicationsSetIconUrlCreateRaw(requestParameters: CoreApplicationsSetIconUrlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1278
- if (requestParameters['slug'] == null) {
1279
- throw new runtime.RequiredError(
1280
- 'slug',
1281
- 'Required parameter "slug" was null or undefined when calling coreApplicationsSetIconUrlCreate().'
1282
- );
1283
- }
1284
-
1285
- if (requestParameters['filePathRequest'] == null) {
1286
- throw new runtime.RequiredError(
1287
- 'filePathRequest',
1288
- 'Required parameter "filePathRequest" was null or undefined when calling coreApplicationsSetIconUrlCreate().'
1289
- );
1290
- }
1291
-
1292
- const queryParameters: any = {};
1293
-
1294
- const headerParameters: runtime.HTTPHeaders = {};
1295
-
1296
- headerParameters['Content-Type'] = 'application/json';
1297
-
1298
- if (this.configuration && this.configuration.accessToken) {
1299
- const token = this.configuration.accessToken;
1300
- const tokenString = await token("authentik", []);
1301
-
1302
- if (tokenString) {
1303
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1304
- }
1305
- }
1306
-
1307
- let urlPath = `/core/applications/{slug}/set_icon_url/`;
1308
- urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
1309
-
1310
- const response = await this.request({
1311
- path: urlPath,
1312
- method: 'POST',
1313
- headers: headerParameters,
1314
- query: queryParameters,
1315
- body: FilePathRequestToJSON(requestParameters['filePathRequest']),
1316
- }, initOverrides);
1317
-
1318
- return new runtime.VoidApiResponse(response);
1319
- }
1320
-
1321
- /**
1322
- * Set application icon (as URL)
1323
- */
1324
- async coreApplicationsSetIconUrlCreate(requestParameters: CoreApplicationsSetIconUrlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1325
- await this.coreApplicationsSetIconUrlCreateRaw(requestParameters, initOverrides);
1326
- }
1327
-
1328
1191
  /**
1329
1192
  * Application Viewset
1330
1193
  */
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  Cache,
19
19
  ChallengeTypes,
20
- FilePathRequest,
21
20
  Flow,
22
21
  FlowChallengeResponseRequest,
23
22
  FlowDiagram,
@@ -40,8 +39,6 @@ import {
40
39
  CacheToJSON,
41
40
  ChallengeTypesFromJSON,
42
41
  ChallengeTypesToJSON,
43
- FilePathRequestFromJSON,
44
- FilePathRequestToJSON,
45
42
  FlowFromJSON,
46
43
  FlowToJSON,
47
44
  FlowChallengeResponseRequestFromJSON,
@@ -180,17 +177,6 @@ export interface FlowsInstancesRetrieveRequest {
180
177
  slug: string;
181
178
  }
182
179
 
183
- export interface FlowsInstancesSetBackgroundCreateRequest {
184
- slug: string;
185
- file?: Blob;
186
- clear?: boolean;
187
- }
188
-
189
- export interface FlowsInstancesSetBackgroundUrlCreateRequest {
190
- slug: string;
191
- filePathRequest: FilePathRequest;
192
- }
193
-
194
180
  export interface FlowsInstancesUpdateRequest {
195
181
  slug: string;
196
182
  flowRequest: FlowRequest;
@@ -1269,129 +1255,6 @@ export class FlowsApi extends runtime.BaseAPI {
1269
1255
  return await response.value();
1270
1256
  }
1271
1257
 
1272
- /**
1273
- * Set Flow background
1274
- */
1275
- async flowsInstancesSetBackgroundCreateRaw(requestParameters: FlowsInstancesSetBackgroundCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1276
- if (requestParameters['slug'] == null) {
1277
- throw new runtime.RequiredError(
1278
- 'slug',
1279
- 'Required parameter "slug" was null or undefined when calling flowsInstancesSetBackgroundCreate().'
1280
- );
1281
- }
1282
-
1283
- const queryParameters: any = {};
1284
-
1285
- const headerParameters: runtime.HTTPHeaders = {};
1286
-
1287
- if (this.configuration && this.configuration.accessToken) {
1288
- const token = this.configuration.accessToken;
1289
- const tokenString = await token("authentik", []);
1290
-
1291
- if (tokenString) {
1292
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1293
- }
1294
- }
1295
- const consumes: runtime.Consume[] = [
1296
- { contentType: 'multipart/form-data' },
1297
- ];
1298
- // @ts-ignore: canConsumeForm may be unused
1299
- const canConsumeForm = runtime.canConsumeForm(consumes);
1300
-
1301
- let formParams: { append(param: string, value: any): any };
1302
- let useForm = false;
1303
- // use FormData to transmit files using content-type "multipart/form-data"
1304
- useForm = canConsumeForm;
1305
- if (useForm) {
1306
- formParams = new FormData();
1307
- } else {
1308
- formParams = new URLSearchParams();
1309
- }
1310
-
1311
- if (requestParameters['file'] != null) {
1312
- formParams.append('file', requestParameters['file'] as any);
1313
- }
1314
-
1315
- if (requestParameters['clear'] != null) {
1316
- formParams.append('clear', requestParameters['clear'] as any);
1317
- }
1318
-
1319
-
1320
- let urlPath = `/flows/instances/{slug}/set_background/`;
1321
- urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
1322
-
1323
- const response = await this.request({
1324
- path: urlPath,
1325
- method: 'POST',
1326
- headers: headerParameters,
1327
- query: queryParameters,
1328
- body: formParams,
1329
- }, initOverrides);
1330
-
1331
- return new runtime.VoidApiResponse(response);
1332
- }
1333
-
1334
- /**
1335
- * Set Flow background
1336
- */
1337
- async flowsInstancesSetBackgroundCreate(requestParameters: FlowsInstancesSetBackgroundCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1338
- await this.flowsInstancesSetBackgroundCreateRaw(requestParameters, initOverrides);
1339
- }
1340
-
1341
- /**
1342
- * Set Flow background (as URL)
1343
- */
1344
- async flowsInstancesSetBackgroundUrlCreateRaw(requestParameters: FlowsInstancesSetBackgroundUrlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1345
- if (requestParameters['slug'] == null) {
1346
- throw new runtime.RequiredError(
1347
- 'slug',
1348
- 'Required parameter "slug" was null or undefined when calling flowsInstancesSetBackgroundUrlCreate().'
1349
- );
1350
- }
1351
-
1352
- if (requestParameters['filePathRequest'] == null) {
1353
- throw new runtime.RequiredError(
1354
- 'filePathRequest',
1355
- 'Required parameter "filePathRequest" was null or undefined when calling flowsInstancesSetBackgroundUrlCreate().'
1356
- );
1357
- }
1358
-
1359
- const queryParameters: any = {};
1360
-
1361
- const headerParameters: runtime.HTTPHeaders = {};
1362
-
1363
- headerParameters['Content-Type'] = 'application/json';
1364
-
1365
- if (this.configuration && this.configuration.accessToken) {
1366
- const token = this.configuration.accessToken;
1367
- const tokenString = await token("authentik", []);
1368
-
1369
- if (tokenString) {
1370
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1371
- }
1372
- }
1373
-
1374
- let urlPath = `/flows/instances/{slug}/set_background_url/`;
1375
- urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
1376
-
1377
- const response = await this.request({
1378
- path: urlPath,
1379
- method: 'POST',
1380
- headers: headerParameters,
1381
- query: queryParameters,
1382
- body: FilePathRequestToJSON(requestParameters['filePathRequest']),
1383
- }, initOverrides);
1384
-
1385
- return new runtime.VoidApiResponse(response);
1386
- }
1387
-
1388
- /**
1389
- * Set Flow background (as URL)
1390
- */
1391
- async flowsInstancesSetBackgroundUrlCreate(requestParameters: FlowsInstancesSetBackgroundUrlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1392
- await this.flowsInstancesSetBackgroundUrlCreateRaw(requestParameters, initOverrides);
1393
- }
1394
-
1395
1258
  /**
1396
1259
  * Flow Viewset
1397
1260
  */