@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569

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 (58) hide show
  1. package/dist/apis/AdminApi.js +60 -20
  2. package/dist/apis/AuthenticatorsApi.js +372 -124
  3. package/dist/apis/CoreApi.js +372 -124
  4. package/dist/apis/CryptoApi.js +60 -20
  5. package/dist/apis/EnterpriseApi.js +60 -20
  6. package/dist/apis/EventsApi.js +210 -70
  7. package/dist/apis/FlowsApi.js +150 -50
  8. package/dist/apis/ManagedApi.js +54 -18
  9. package/dist/apis/Oauth2Api.js +72 -24
  10. package/dist/apis/OutpostsApi.js +210 -70
  11. package/dist/apis/PoliciesApi.js +366 -122
  12. package/dist/apis/PropertymappingsApi.js +288 -96
  13. package/dist/apis/ProvidersApi.js +360 -120
  14. package/dist/apis/RacApi.js +78 -26
  15. package/dist/apis/RbacApi.js +102 -34
  16. package/dist/apis/RootApi.js +6 -2
  17. package/dist/apis/SchemaApi.js +6 -2
  18. package/dist/apis/SourcesApi.js +414 -138
  19. package/dist/apis/StagesApi.js +1002 -334
  20. package/dist/esm/apis/AdminApi.js +60 -20
  21. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  22. package/dist/esm/apis/CoreApi.js +372 -124
  23. package/dist/esm/apis/CryptoApi.js +60 -20
  24. package/dist/esm/apis/EnterpriseApi.js +60 -20
  25. package/dist/esm/apis/EventsApi.js +210 -70
  26. package/dist/esm/apis/FlowsApi.js +150 -50
  27. package/dist/esm/apis/ManagedApi.js +54 -18
  28. package/dist/esm/apis/Oauth2Api.js +72 -24
  29. package/dist/esm/apis/OutpostsApi.js +210 -70
  30. package/dist/esm/apis/PoliciesApi.js +366 -122
  31. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  32. package/dist/esm/apis/ProvidersApi.js +360 -120
  33. package/dist/esm/apis/RacApi.js +78 -26
  34. package/dist/esm/apis/RbacApi.js +102 -34
  35. package/dist/esm/apis/RootApi.js +6 -2
  36. package/dist/esm/apis/SchemaApi.js +6 -2
  37. package/dist/esm/apis/SourcesApi.js +414 -138
  38. package/dist/esm/apis/StagesApi.js +1002 -334
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +70 -30
  41. package/src/apis/AuthenticatorsApi.ts +434 -186
  42. package/src/apis/CoreApi.ts +434 -186
  43. package/src/apis/CryptoApi.ts +70 -30
  44. package/src/apis/EnterpriseApi.ts +70 -30
  45. package/src/apis/EventsApi.ts +245 -105
  46. package/src/apis/FlowsApi.ts +175 -75
  47. package/src/apis/ManagedApi.ts +63 -27
  48. package/src/apis/Oauth2Api.ts +84 -36
  49. package/src/apis/OutpostsApi.ts +245 -105
  50. package/src/apis/PoliciesApi.ts +427 -183
  51. package/src/apis/PropertymappingsApi.ts +336 -144
  52. package/src/apis/ProvidersApi.ts +420 -180
  53. package/src/apis/RacApi.ts +91 -39
  54. package/src/apis/RbacApi.ts +119 -51
  55. package/src/apis/RootApi.ts +7 -3
  56. package/src/apis/SchemaApi.ts +7 -3
  57. package/src/apis/SourcesApi.ts +483 -207
  58. package/src/apis/StagesApi.ts +1169 -501
@@ -36,8 +36,12 @@ class AdminApi extends runtime.BaseAPI {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
- if (this.configuration && this.configuration.apiKey) {
40
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = yield token("authentik", []);
42
+ if (tokenString) {
43
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
44
+ }
41
45
  }
42
46
  const response = yield this.request({
43
47
  path: `/admin/apps/`,
@@ -64,8 +68,12 @@ class AdminApi extends runtime.BaseAPI {
64
68
  return __awaiter(this, void 0, void 0, function* () {
65
69
  const queryParameters = {};
66
70
  const headerParameters = {};
67
- if (this.configuration && this.configuration.apiKey) {
68
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
71
+ if (this.configuration && this.configuration.accessToken) {
72
+ const token = this.configuration.accessToken;
73
+ const tokenString = yield token("authentik", []);
74
+ if (tokenString) {
75
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
76
+ }
69
77
  }
70
78
  const response = yield this.request({
71
79
  path: `/admin/metrics/`,
@@ -92,8 +100,12 @@ class AdminApi extends runtime.BaseAPI {
92
100
  return __awaiter(this, void 0, void 0, function* () {
93
101
  const queryParameters = {};
94
102
  const headerParameters = {};
95
- if (this.configuration && this.configuration.apiKey) {
96
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
103
+ if (this.configuration && this.configuration.accessToken) {
104
+ const token = this.configuration.accessToken;
105
+ const tokenString = yield token("authentik", []);
106
+ if (tokenString) {
107
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
108
+ }
97
109
  }
98
110
  const response = yield this.request({
99
111
  path: `/admin/models/`,
@@ -121,8 +133,12 @@ class AdminApi extends runtime.BaseAPI {
121
133
  const queryParameters = {};
122
134
  const headerParameters = {};
123
135
  headerParameters['Content-Type'] = 'application/json';
124
- if (this.configuration && this.configuration.apiKey) {
125
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
136
+ if (this.configuration && this.configuration.accessToken) {
137
+ const token = this.configuration.accessToken;
138
+ const tokenString = yield token("authentik", []);
139
+ if (tokenString) {
140
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
141
+ }
126
142
  }
127
143
  const response = yield this.request({
128
144
  path: `/admin/settings/`,
@@ -150,8 +166,12 @@ class AdminApi extends runtime.BaseAPI {
150
166
  return __awaiter(this, void 0, void 0, function* () {
151
167
  const queryParameters = {};
152
168
  const headerParameters = {};
153
- if (this.configuration && this.configuration.apiKey) {
154
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
169
+ if (this.configuration && this.configuration.accessToken) {
170
+ const token = this.configuration.accessToken;
171
+ const tokenString = yield token("authentik", []);
172
+ if (tokenString) {
173
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
174
+ }
155
175
  }
156
176
  const response = yield this.request({
157
177
  path: `/admin/settings/`,
@@ -179,8 +199,12 @@ class AdminApi extends runtime.BaseAPI {
179
199
  const queryParameters = {};
180
200
  const headerParameters = {};
181
201
  headerParameters['Content-Type'] = 'application/json';
182
- if (this.configuration && this.configuration.apiKey) {
183
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
202
+ if (this.configuration && this.configuration.accessToken) {
203
+ const token = this.configuration.accessToken;
204
+ const tokenString = yield token("authentik", []);
205
+ if (tokenString) {
206
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
207
+ }
184
208
  }
185
209
  const response = yield this.request({
186
210
  path: `/admin/settings/`,
@@ -208,8 +232,12 @@ class AdminApi extends runtime.BaseAPI {
208
232
  return __awaiter(this, void 0, void 0, function* () {
209
233
  const queryParameters = {};
210
234
  const headerParameters = {};
211
- if (this.configuration && this.configuration.apiKey) {
212
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
235
+ if (this.configuration && this.configuration.accessToken) {
236
+ const token = this.configuration.accessToken;
237
+ const tokenString = yield token("authentik", []);
238
+ if (tokenString) {
239
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
240
+ }
213
241
  }
214
242
  const response = yield this.request({
215
243
  path: `/admin/system/`,
@@ -236,8 +264,12 @@ class AdminApi extends runtime.BaseAPI {
236
264
  return __awaiter(this, void 0, void 0, function* () {
237
265
  const queryParameters = {};
238
266
  const headerParameters = {};
239
- if (this.configuration && this.configuration.apiKey) {
240
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
267
+ if (this.configuration && this.configuration.accessToken) {
268
+ const token = this.configuration.accessToken;
269
+ const tokenString = yield token("authentik", []);
270
+ if (tokenString) {
271
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
272
+ }
241
273
  }
242
274
  const response = yield this.request({
243
275
  path: `/admin/system/`,
@@ -264,8 +296,12 @@ class AdminApi extends runtime.BaseAPI {
264
296
  return __awaiter(this, void 0, void 0, function* () {
265
297
  const queryParameters = {};
266
298
  const headerParameters = {};
267
- if (this.configuration && this.configuration.apiKey) {
268
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
299
+ if (this.configuration && this.configuration.accessToken) {
300
+ const token = this.configuration.accessToken;
301
+ const tokenString = yield token("authentik", []);
302
+ if (tokenString) {
303
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
304
+ }
269
305
  }
270
306
  const response = yield this.request({
271
307
  path: `/admin/version/`,
@@ -292,8 +328,12 @@ class AdminApi extends runtime.BaseAPI {
292
328
  return __awaiter(this, void 0, void 0, function* () {
293
329
  const queryParameters = {};
294
330
  const headerParameters = {};
295
- if (this.configuration && this.configuration.apiKey) {
296
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
331
+ if (this.configuration && this.configuration.accessToken) {
332
+ const token = this.configuration.accessToken;
333
+ const tokenString = yield token("authentik", []);
334
+ if (tokenString) {
335
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
336
+ }
297
337
  }
298
338
  const response = yield this.request({
299
339
  path: `/admin/workers/`,