@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569

Sign up to get free protection for your applications and to get access to all the features.
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.2.2-1712833826",
3
+ "version": "2024.2.2-1712922569",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -70,10 +70,14 @@ export class AdminApi extends runtime.BaseAPI {
70
70
 
71
71
  const headerParameters: runtime.HTTPHeaders = {};
72
72
 
73
- if (this.configuration && this.configuration.apiKey) {
74
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
75
- }
73
+ if (this.configuration && this.configuration.accessToken) {
74
+ const token = this.configuration.accessToken;
75
+ const tokenString = await token("authentik", []);
76
76
 
77
+ if (tokenString) {
78
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
+ }
80
+ }
77
81
  const response = await this.request({
78
82
  path: `/admin/apps/`,
79
83
  method: 'GET',
@@ -100,10 +104,14 @@ export class AdminApi extends runtime.BaseAPI {
100
104
 
101
105
  const headerParameters: runtime.HTTPHeaders = {};
102
106
 
103
- if (this.configuration && this.configuration.apiKey) {
104
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
105
- }
107
+ if (this.configuration && this.configuration.accessToken) {
108
+ const token = this.configuration.accessToken;
109
+ const tokenString = await token("authentik", []);
106
110
 
111
+ if (tokenString) {
112
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
113
+ }
114
+ }
107
115
  const response = await this.request({
108
116
  path: `/admin/metrics/`,
109
117
  method: 'GET',
@@ -130,10 +138,14 @@ export class AdminApi extends runtime.BaseAPI {
130
138
 
131
139
  const headerParameters: runtime.HTTPHeaders = {};
132
140
 
133
- if (this.configuration && this.configuration.apiKey) {
134
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
135
- }
141
+ if (this.configuration && this.configuration.accessToken) {
142
+ const token = this.configuration.accessToken;
143
+ const tokenString = await token("authentik", []);
136
144
 
145
+ if (tokenString) {
146
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
147
+ }
148
+ }
137
149
  const response = await this.request({
138
150
  path: `/admin/models/`,
139
151
  method: 'GET',
@@ -162,10 +174,14 @@ export class AdminApi extends runtime.BaseAPI {
162
174
 
163
175
  headerParameters['Content-Type'] = 'application/json';
164
176
 
165
- if (this.configuration && this.configuration.apiKey) {
166
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
167
- }
177
+ if (this.configuration && this.configuration.accessToken) {
178
+ const token = this.configuration.accessToken;
179
+ const tokenString = await token("authentik", []);
168
180
 
181
+ if (tokenString) {
182
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
183
+ }
184
+ }
169
185
  const response = await this.request({
170
186
  path: `/admin/settings/`,
171
187
  method: 'PATCH',
@@ -193,10 +209,14 @@ export class AdminApi extends runtime.BaseAPI {
193
209
 
194
210
  const headerParameters: runtime.HTTPHeaders = {};
195
211
 
196
- if (this.configuration && this.configuration.apiKey) {
197
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
198
- }
212
+ if (this.configuration && this.configuration.accessToken) {
213
+ const token = this.configuration.accessToken;
214
+ const tokenString = await token("authentik", []);
199
215
 
216
+ if (tokenString) {
217
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
218
+ }
219
+ }
200
220
  const response = await this.request({
201
221
  path: `/admin/settings/`,
202
222
  method: 'GET',
@@ -225,10 +245,14 @@ export class AdminApi extends runtime.BaseAPI {
225
245
 
226
246
  headerParameters['Content-Type'] = 'application/json';
227
247
 
228
- if (this.configuration && this.configuration.apiKey) {
229
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
230
- }
248
+ if (this.configuration && this.configuration.accessToken) {
249
+ const token = this.configuration.accessToken;
250
+ const tokenString = await token("authentik", []);
231
251
 
252
+ if (tokenString) {
253
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
254
+ }
255
+ }
232
256
  const response = await this.request({
233
257
  path: `/admin/settings/`,
234
258
  method: 'PUT',
@@ -256,10 +280,14 @@ export class AdminApi extends runtime.BaseAPI {
256
280
 
257
281
  const headerParameters: runtime.HTTPHeaders = {};
258
282
 
259
- if (this.configuration && this.configuration.apiKey) {
260
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
261
- }
283
+ if (this.configuration && this.configuration.accessToken) {
284
+ const token = this.configuration.accessToken;
285
+ const tokenString = await token("authentik", []);
262
286
 
287
+ if (tokenString) {
288
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
289
+ }
290
+ }
263
291
  const response = await this.request({
264
292
  path: `/admin/system/`,
265
293
  method: 'POST',
@@ -286,10 +314,14 @@ export class AdminApi extends runtime.BaseAPI {
286
314
 
287
315
  const headerParameters: runtime.HTTPHeaders = {};
288
316
 
289
- if (this.configuration && this.configuration.apiKey) {
290
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
291
- }
317
+ if (this.configuration && this.configuration.accessToken) {
318
+ const token = this.configuration.accessToken;
319
+ const tokenString = await token("authentik", []);
292
320
 
321
+ if (tokenString) {
322
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
323
+ }
324
+ }
293
325
  const response = await this.request({
294
326
  path: `/admin/system/`,
295
327
  method: 'GET',
@@ -316,10 +348,14 @@ export class AdminApi extends runtime.BaseAPI {
316
348
 
317
349
  const headerParameters: runtime.HTTPHeaders = {};
318
350
 
319
- if (this.configuration && this.configuration.apiKey) {
320
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
321
- }
351
+ if (this.configuration && this.configuration.accessToken) {
352
+ const token = this.configuration.accessToken;
353
+ const tokenString = await token("authentik", []);
322
354
 
355
+ if (tokenString) {
356
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
357
+ }
358
+ }
323
359
  const response = await this.request({
324
360
  path: `/admin/version/`,
325
361
  method: 'GET',
@@ -346,10 +382,14 @@ export class AdminApi extends runtime.BaseAPI {
346
382
 
347
383
  const headerParameters: runtime.HTTPHeaders = {};
348
384
 
349
- if (this.configuration && this.configuration.apiKey) {
350
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
351
- }
385
+ if (this.configuration && this.configuration.accessToken) {
386
+ const token = this.configuration.accessToken;
387
+ const tokenString = await token("authentik", []);
352
388
 
389
+ if (tokenString) {
390
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
391
+ }
392
+ }
353
393
  const response = await this.request({
354
394
  path: `/admin/workers/`,
355
395
  method: 'GET',