@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
@@ -33,8 +33,12 @@ export class AdminApi extends runtime.BaseAPI {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  const queryParameters = {};
35
35
  const headerParameters = {};
36
- if (this.configuration && this.configuration.apiKey) {
37
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
36
+ if (this.configuration && this.configuration.accessToken) {
37
+ const token = this.configuration.accessToken;
38
+ const tokenString = yield token("authentik", []);
39
+ if (tokenString) {
40
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
41
+ }
38
42
  }
39
43
  const response = yield this.request({
40
44
  path: `/admin/apps/`,
@@ -61,8 +65,12 @@ export class AdminApi extends runtime.BaseAPI {
61
65
  return __awaiter(this, void 0, void 0, function* () {
62
66
  const queryParameters = {};
63
67
  const headerParameters = {};
64
- if (this.configuration && this.configuration.apiKey) {
65
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
68
+ if (this.configuration && this.configuration.accessToken) {
69
+ const token = this.configuration.accessToken;
70
+ const tokenString = yield token("authentik", []);
71
+ if (tokenString) {
72
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
73
+ }
66
74
  }
67
75
  const response = yield this.request({
68
76
  path: `/admin/metrics/`,
@@ -89,8 +97,12 @@ export class AdminApi extends runtime.BaseAPI {
89
97
  return __awaiter(this, void 0, void 0, function* () {
90
98
  const queryParameters = {};
91
99
  const headerParameters = {};
92
- if (this.configuration && this.configuration.apiKey) {
93
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
100
+ if (this.configuration && this.configuration.accessToken) {
101
+ const token = this.configuration.accessToken;
102
+ const tokenString = yield token("authentik", []);
103
+ if (tokenString) {
104
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
105
+ }
94
106
  }
95
107
  const response = yield this.request({
96
108
  path: `/admin/models/`,
@@ -118,8 +130,12 @@ export class AdminApi extends runtime.BaseAPI {
118
130
  const queryParameters = {};
119
131
  const headerParameters = {};
120
132
  headerParameters['Content-Type'] = 'application/json';
121
- if (this.configuration && this.configuration.apiKey) {
122
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
133
+ if (this.configuration && this.configuration.accessToken) {
134
+ const token = this.configuration.accessToken;
135
+ const tokenString = yield token("authentik", []);
136
+ if (tokenString) {
137
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
138
+ }
123
139
  }
124
140
  const response = yield this.request({
125
141
  path: `/admin/settings/`,
@@ -147,8 +163,12 @@ export class AdminApi extends runtime.BaseAPI {
147
163
  return __awaiter(this, void 0, void 0, function* () {
148
164
  const queryParameters = {};
149
165
  const headerParameters = {};
150
- if (this.configuration && this.configuration.apiKey) {
151
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
166
+ if (this.configuration && this.configuration.accessToken) {
167
+ const token = this.configuration.accessToken;
168
+ const tokenString = yield token("authentik", []);
169
+ if (tokenString) {
170
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
171
+ }
152
172
  }
153
173
  const response = yield this.request({
154
174
  path: `/admin/settings/`,
@@ -176,8 +196,12 @@ export class AdminApi extends runtime.BaseAPI {
176
196
  const queryParameters = {};
177
197
  const headerParameters = {};
178
198
  headerParameters['Content-Type'] = 'application/json';
179
- if (this.configuration && this.configuration.apiKey) {
180
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
199
+ if (this.configuration && this.configuration.accessToken) {
200
+ const token = this.configuration.accessToken;
201
+ const tokenString = yield token("authentik", []);
202
+ if (tokenString) {
203
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
204
+ }
181
205
  }
182
206
  const response = yield this.request({
183
207
  path: `/admin/settings/`,
@@ -205,8 +229,12 @@ export class AdminApi extends runtime.BaseAPI {
205
229
  return __awaiter(this, void 0, void 0, function* () {
206
230
  const queryParameters = {};
207
231
  const headerParameters = {};
208
- if (this.configuration && this.configuration.apiKey) {
209
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
232
+ if (this.configuration && this.configuration.accessToken) {
233
+ const token = this.configuration.accessToken;
234
+ const tokenString = yield token("authentik", []);
235
+ if (tokenString) {
236
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
237
+ }
210
238
  }
211
239
  const response = yield this.request({
212
240
  path: `/admin/system/`,
@@ -233,8 +261,12 @@ export class AdminApi extends runtime.BaseAPI {
233
261
  return __awaiter(this, void 0, void 0, function* () {
234
262
  const queryParameters = {};
235
263
  const headerParameters = {};
236
- if (this.configuration && this.configuration.apiKey) {
237
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
264
+ if (this.configuration && this.configuration.accessToken) {
265
+ const token = this.configuration.accessToken;
266
+ const tokenString = yield token("authentik", []);
267
+ if (tokenString) {
268
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
269
+ }
238
270
  }
239
271
  const response = yield this.request({
240
272
  path: `/admin/system/`,
@@ -261,8 +293,12 @@ export class AdminApi extends runtime.BaseAPI {
261
293
  return __awaiter(this, void 0, void 0, function* () {
262
294
  const queryParameters = {};
263
295
  const headerParameters = {};
264
- if (this.configuration && this.configuration.apiKey) {
265
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
296
+ if (this.configuration && this.configuration.accessToken) {
297
+ const token = this.configuration.accessToken;
298
+ const tokenString = yield token("authentik", []);
299
+ if (tokenString) {
300
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
301
+ }
266
302
  }
267
303
  const response = yield this.request({
268
304
  path: `/admin/version/`,
@@ -289,8 +325,12 @@ export class AdminApi extends runtime.BaseAPI {
289
325
  return __awaiter(this, void 0, void 0, function* () {
290
326
  const queryParameters = {};
291
327
  const headerParameters = {};
292
- if (this.configuration && this.configuration.apiKey) {
293
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
328
+ if (this.configuration && this.configuration.accessToken) {
329
+ const token = this.configuration.accessToken;
330
+ const tokenString = yield token("authentik", []);
331
+ if (tokenString) {
332
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
333
+ }
294
334
  }
295
335
  const response = yield this.request({
296
336
  path: `/admin/workers/`,