@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
@@ -36,8 +36,12 @@ export class Oauth2Api extends runtime.BaseAPI {
36
36
  }
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: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -81,8 +85,12 @@ export class Oauth2Api extends runtime.BaseAPI {
81
85
  queryParameters['user'] = requestParameters.user;
82
86
  }
83
87
  const headerParameters = {};
84
- if (this.configuration && this.configuration.apiKey) {
85
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("authentik", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
86
94
  }
87
95
  const response = yield this.request({
88
96
  path: `/oauth2/access_tokens/`,
@@ -112,8 +120,12 @@ export class Oauth2Api extends runtime.BaseAPI {
112
120
  }
113
121
  const queryParameters = {};
114
122
  const headerParameters = {};
115
- if (this.configuration && this.configuration.apiKey) {
116
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
123
+ if (this.configuration && this.configuration.accessToken) {
124
+ const token = this.configuration.accessToken;
125
+ const tokenString = yield token("authentik", []);
126
+ if (tokenString) {
127
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
128
+ }
117
129
  }
118
130
  const response = yield this.request({
119
131
  path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -143,8 +155,12 @@ export class Oauth2Api extends runtime.BaseAPI {
143
155
  }
144
156
  const queryParameters = {};
145
157
  const headerParameters = {};
146
- if (this.configuration && this.configuration.apiKey) {
147
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
158
+ if (this.configuration && this.configuration.accessToken) {
159
+ const token = this.configuration.accessToken;
160
+ const tokenString = yield token("authentik", []);
161
+ if (tokenString) {
162
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
163
+ }
148
164
  }
149
165
  const response = yield this.request({
150
166
  path: `/oauth2/access_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -174,8 +190,12 @@ export class Oauth2Api extends runtime.BaseAPI {
174
190
  }
175
191
  const queryParameters = {};
176
192
  const headerParameters = {};
177
- if (this.configuration && this.configuration.apiKey) {
178
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
193
+ if (this.configuration && this.configuration.accessToken) {
194
+ const token = this.configuration.accessToken;
195
+ const tokenString = yield token("authentik", []);
196
+ if (tokenString) {
197
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
198
+ }
179
199
  }
180
200
  const response = yield this.request({
181
201
  path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -219,8 +239,12 @@ export class Oauth2Api extends runtime.BaseAPI {
219
239
  queryParameters['user'] = requestParameters.user;
220
240
  }
221
241
  const headerParameters = {};
222
- if (this.configuration && this.configuration.apiKey) {
223
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
242
+ if (this.configuration && this.configuration.accessToken) {
243
+ const token = this.configuration.accessToken;
244
+ const tokenString = yield token("authentik", []);
245
+ if (tokenString) {
246
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
247
+ }
224
248
  }
225
249
  const response = yield this.request({
226
250
  path: `/oauth2/authorization_codes/`,
@@ -250,8 +274,12 @@ export class Oauth2Api extends runtime.BaseAPI {
250
274
  }
251
275
  const queryParameters = {};
252
276
  const headerParameters = {};
253
- if (this.configuration && this.configuration.apiKey) {
254
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
277
+ if (this.configuration && this.configuration.accessToken) {
278
+ const token = this.configuration.accessToken;
279
+ const tokenString = yield token("authentik", []);
280
+ if (tokenString) {
281
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
282
+ }
255
283
  }
256
284
  const response = yield this.request({
257
285
  path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -281,8 +309,12 @@ export class Oauth2Api extends runtime.BaseAPI {
281
309
  }
282
310
  const queryParameters = {};
283
311
  const headerParameters = {};
284
- if (this.configuration && this.configuration.apiKey) {
285
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
312
+ if (this.configuration && this.configuration.accessToken) {
313
+ const token = this.configuration.accessToken;
314
+ const tokenString = yield token("authentik", []);
315
+ if (tokenString) {
316
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
317
+ }
286
318
  }
287
319
  const response = yield this.request({
288
320
  path: `/oauth2/authorization_codes/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -312,8 +344,12 @@ export class Oauth2Api extends runtime.BaseAPI {
312
344
  }
313
345
  const queryParameters = {};
314
346
  const headerParameters = {};
315
- if (this.configuration && this.configuration.apiKey) {
316
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
347
+ if (this.configuration && this.configuration.accessToken) {
348
+ const token = this.configuration.accessToken;
349
+ const tokenString = yield token("authentik", []);
350
+ if (tokenString) {
351
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
352
+ }
317
353
  }
318
354
  const response = yield this.request({
319
355
  path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -357,8 +393,12 @@ export class Oauth2Api extends runtime.BaseAPI {
357
393
  queryParameters['user'] = requestParameters.user;
358
394
  }
359
395
  const headerParameters = {};
360
- if (this.configuration && this.configuration.apiKey) {
361
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
396
+ if (this.configuration && this.configuration.accessToken) {
397
+ const token = this.configuration.accessToken;
398
+ const tokenString = yield token("authentik", []);
399
+ if (tokenString) {
400
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
401
+ }
362
402
  }
363
403
  const response = yield this.request({
364
404
  path: `/oauth2/refresh_tokens/`,
@@ -388,8 +428,12 @@ export class Oauth2Api extends runtime.BaseAPI {
388
428
  }
389
429
  const queryParameters = {};
390
430
  const headerParameters = {};
391
- if (this.configuration && this.configuration.apiKey) {
392
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
431
+ if (this.configuration && this.configuration.accessToken) {
432
+ const token = this.configuration.accessToken;
433
+ const tokenString = yield token("authentik", []);
434
+ if (tokenString) {
435
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
436
+ }
393
437
  }
394
438
  const response = yield this.request({
395
439
  path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -419,8 +463,12 @@ export class Oauth2Api extends runtime.BaseAPI {
419
463
  }
420
464
  const queryParameters = {};
421
465
  const headerParameters = {};
422
- if (this.configuration && this.configuration.apiKey) {
423
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
466
+ if (this.configuration && this.configuration.accessToken) {
467
+ const token = this.configuration.accessToken;
468
+ const tokenString = yield token("authentik", []);
469
+ if (tokenString) {
470
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
471
+ }
424
472
  }
425
473
  const response = yield this.request({
426
474
  path: `/oauth2/refresh_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),