@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) 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/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
  40. package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
  41. package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  42. package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
  43. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  44. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  45. package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
  46. package/dist/models/AuthenticatorValidateStage.js +5 -0
  47. package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  48. package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
  49. package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  50. package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  51. package/package.json +1 -1
  52. package/src/apis/AdminApi.ts +70 -30
  53. package/src/apis/AuthenticatorsApi.ts +434 -186
  54. package/src/apis/CoreApi.ts +434 -186
  55. package/src/apis/CryptoApi.ts +70 -30
  56. package/src/apis/EnterpriseApi.ts +70 -30
  57. package/src/apis/EventsApi.ts +245 -105
  58. package/src/apis/FlowsApi.ts +175 -75
  59. package/src/apis/ManagedApi.ts +63 -27
  60. package/src/apis/Oauth2Api.ts +84 -36
  61. package/src/apis/OutpostsApi.ts +245 -105
  62. package/src/apis/PoliciesApi.ts +427 -183
  63. package/src/apis/PropertymappingsApi.ts +336 -144
  64. package/src/apis/ProvidersApi.ts +420 -180
  65. package/src/apis/RacApi.ts +91 -39
  66. package/src/apis/RbacApi.ts +119 -51
  67. package/src/apis/RootApi.ts +7 -3
  68. package/src/apis/SchemaApi.ts +7 -3
  69. package/src/apis/SourcesApi.ts +483 -207
  70. package/src/apis/StagesApi.ts +1169 -501
  71. package/src/models/AuthenticatorValidateStage.ts +22 -0
  72. package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
  73. package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
@@ -120,10 +120,14 @@ export class Oauth2Api extends runtime.BaseAPI {
120
120
 
121
121
  const headerParameters: runtime.HTTPHeaders = {};
122
122
 
123
- if (this.configuration && this.configuration.apiKey) {
124
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
125
- }
123
+ if (this.configuration && this.configuration.accessToken) {
124
+ const token = this.configuration.accessToken;
125
+ const tokenString = await token("authentik", []);
126
126
 
127
+ if (tokenString) {
128
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
129
+ }
130
+ }
127
131
  const response = await this.request({
128
132
  path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
129
133
  method: 'DELETE',
@@ -173,10 +177,14 @@ export class Oauth2Api extends runtime.BaseAPI {
173
177
 
174
178
  const headerParameters: runtime.HTTPHeaders = {};
175
179
 
176
- if (this.configuration && this.configuration.apiKey) {
177
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
178
- }
180
+ if (this.configuration && this.configuration.accessToken) {
181
+ const token = this.configuration.accessToken;
182
+ const tokenString = await token("authentik", []);
179
183
 
184
+ if (tokenString) {
185
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
186
+ }
187
+ }
180
188
  const response = await this.request({
181
189
  path: `/oauth2/access_tokens/`,
182
190
  method: 'GET',
@@ -207,10 +215,14 @@ export class Oauth2Api extends runtime.BaseAPI {
207
215
 
208
216
  const headerParameters: runtime.HTTPHeaders = {};
209
217
 
210
- if (this.configuration && this.configuration.apiKey) {
211
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
212
- }
218
+ if (this.configuration && this.configuration.accessToken) {
219
+ const token = this.configuration.accessToken;
220
+ const tokenString = await token("authentik", []);
213
221
 
222
+ if (tokenString) {
223
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
224
+ }
225
+ }
214
226
  const response = await this.request({
215
227
  path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
216
228
  method: 'GET',
@@ -241,10 +253,14 @@ export class Oauth2Api extends runtime.BaseAPI {
241
253
 
242
254
  const headerParameters: runtime.HTTPHeaders = {};
243
255
 
244
- if (this.configuration && this.configuration.apiKey) {
245
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
246
- }
256
+ if (this.configuration && this.configuration.accessToken) {
257
+ const token = this.configuration.accessToken;
258
+ const tokenString = await token("authentik", []);
247
259
 
260
+ if (tokenString) {
261
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
262
+ }
263
+ }
248
264
  const response = await this.request({
249
265
  path: `/oauth2/access_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
250
266
  method: 'GET',
@@ -275,10 +291,14 @@ export class Oauth2Api extends runtime.BaseAPI {
275
291
 
276
292
  const headerParameters: runtime.HTTPHeaders = {};
277
293
 
278
- if (this.configuration && this.configuration.apiKey) {
279
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
280
- }
294
+ if (this.configuration && this.configuration.accessToken) {
295
+ const token = this.configuration.accessToken;
296
+ const tokenString = await token("authentik", []);
281
297
 
298
+ if (tokenString) {
299
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
300
+ }
301
+ }
282
302
  const response = await this.request({
283
303
  path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
284
304
  method: 'DELETE',
@@ -328,10 +348,14 @@ export class Oauth2Api extends runtime.BaseAPI {
328
348
 
329
349
  const headerParameters: runtime.HTTPHeaders = {};
330
350
 
331
- if (this.configuration && this.configuration.apiKey) {
332
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
333
- }
351
+ if (this.configuration && this.configuration.accessToken) {
352
+ const token = this.configuration.accessToken;
353
+ const tokenString = await token("authentik", []);
334
354
 
355
+ if (tokenString) {
356
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
357
+ }
358
+ }
335
359
  const response = await this.request({
336
360
  path: `/oauth2/authorization_codes/`,
337
361
  method: 'GET',
@@ -362,10 +386,14 @@ export class Oauth2Api extends runtime.BaseAPI {
362
386
 
363
387
  const headerParameters: runtime.HTTPHeaders = {};
364
388
 
365
- if (this.configuration && this.configuration.apiKey) {
366
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
367
- }
389
+ if (this.configuration && this.configuration.accessToken) {
390
+ const token = this.configuration.accessToken;
391
+ const tokenString = await token("authentik", []);
368
392
 
393
+ if (tokenString) {
394
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
395
+ }
396
+ }
369
397
  const response = await this.request({
370
398
  path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
371
399
  method: 'GET',
@@ -396,10 +424,14 @@ export class Oauth2Api extends runtime.BaseAPI {
396
424
 
397
425
  const headerParameters: runtime.HTTPHeaders = {};
398
426
 
399
- if (this.configuration && this.configuration.apiKey) {
400
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
401
- }
427
+ if (this.configuration && this.configuration.accessToken) {
428
+ const token = this.configuration.accessToken;
429
+ const tokenString = await token("authentik", []);
402
430
 
431
+ if (tokenString) {
432
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
433
+ }
434
+ }
403
435
  const response = await this.request({
404
436
  path: `/oauth2/authorization_codes/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
405
437
  method: 'GET',
@@ -430,10 +462,14 @@ export class Oauth2Api extends runtime.BaseAPI {
430
462
 
431
463
  const headerParameters: runtime.HTTPHeaders = {};
432
464
 
433
- if (this.configuration && this.configuration.apiKey) {
434
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
435
- }
465
+ if (this.configuration && this.configuration.accessToken) {
466
+ const token = this.configuration.accessToken;
467
+ const tokenString = await token("authentik", []);
436
468
 
469
+ if (tokenString) {
470
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
471
+ }
472
+ }
437
473
  const response = await this.request({
438
474
  path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
439
475
  method: 'DELETE',
@@ -483,10 +519,14 @@ export class Oauth2Api extends runtime.BaseAPI {
483
519
 
484
520
  const headerParameters: runtime.HTTPHeaders = {};
485
521
 
486
- if (this.configuration && this.configuration.apiKey) {
487
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
488
- }
522
+ if (this.configuration && this.configuration.accessToken) {
523
+ const token = this.configuration.accessToken;
524
+ const tokenString = await token("authentik", []);
489
525
 
526
+ if (tokenString) {
527
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
528
+ }
529
+ }
490
530
  const response = await this.request({
491
531
  path: `/oauth2/refresh_tokens/`,
492
532
  method: 'GET',
@@ -517,10 +557,14 @@ export class Oauth2Api extends runtime.BaseAPI {
517
557
 
518
558
  const headerParameters: runtime.HTTPHeaders = {};
519
559
 
520
- if (this.configuration && this.configuration.apiKey) {
521
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
522
- }
560
+ if (this.configuration && this.configuration.accessToken) {
561
+ const token = this.configuration.accessToken;
562
+ const tokenString = await token("authentik", []);
523
563
 
564
+ if (tokenString) {
565
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
566
+ }
567
+ }
524
568
  const response = await this.request({
525
569
  path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
526
570
  method: 'GET',
@@ -551,10 +595,14 @@ export class Oauth2Api extends runtime.BaseAPI {
551
595
 
552
596
  const headerParameters: runtime.HTTPHeaders = {};
553
597
 
554
- if (this.configuration && this.configuration.apiKey) {
555
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
556
- }
598
+ if (this.configuration && this.configuration.accessToken) {
599
+ const token = this.configuration.accessToken;
600
+ const tokenString = await token("authentik", []);
557
601
 
602
+ if (tokenString) {
603
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
604
+ }
605
+ }
558
606
  const response = await this.request({
559
607
  path: `/oauth2/refresh_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
560
608
  method: 'GET',