@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1713180481

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 (71) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/dist/apis/AdminApi.js +60 -20
  3. package/dist/apis/AuthenticatorsApi.js +372 -124
  4. package/dist/apis/CoreApi.d.ts +2 -0
  5. package/dist/apis/CoreApi.js +378 -124
  6. package/dist/apis/CryptoApi.js +60 -20
  7. package/dist/apis/EnterpriseApi.js +60 -20
  8. package/dist/apis/EventsApi.js +210 -70
  9. package/dist/apis/FlowsApi.js +150 -50
  10. package/dist/apis/ManagedApi.js +54 -18
  11. package/dist/apis/Oauth2Api.js +72 -24
  12. package/dist/apis/OutpostsApi.js +210 -70
  13. package/dist/apis/PoliciesApi.js +366 -122
  14. package/dist/apis/PropertymappingsApi.js +288 -96
  15. package/dist/apis/ProvidersApi.js +360 -120
  16. package/dist/apis/RacApi.js +78 -26
  17. package/dist/apis/RbacApi.js +102 -34
  18. package/dist/apis/RootApi.js +6 -2
  19. package/dist/apis/SchemaApi.js +6 -2
  20. package/dist/apis/SourcesApi.js +414 -138
  21. package/dist/apis/StagesApi.js +1002 -334
  22. package/dist/esm/apis/AdminApi.js +60 -20
  23. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  24. package/dist/esm/apis/CoreApi.d.ts +2 -0
  25. package/dist/esm/apis/CoreApi.js +378 -124
  26. package/dist/esm/apis/CryptoApi.js +60 -20
  27. package/dist/esm/apis/EnterpriseApi.js +60 -20
  28. package/dist/esm/apis/EventsApi.js +210 -70
  29. package/dist/esm/apis/FlowsApi.js +150 -50
  30. package/dist/esm/apis/ManagedApi.js +54 -18
  31. package/dist/esm/apis/Oauth2Api.js +72 -24
  32. package/dist/esm/apis/OutpostsApi.js +210 -70
  33. package/dist/esm/apis/PoliciesApi.js +366 -122
  34. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  35. package/dist/esm/apis/ProvidersApi.js +360 -120
  36. package/dist/esm/apis/RacApi.js +78 -26
  37. package/dist/esm/apis/RbacApi.js +102 -34
  38. package/dist/esm/apis/RootApi.js +6 -2
  39. package/dist/esm/apis/SchemaApi.js +6 -2
  40. package/dist/esm/apis/SourcesApi.js +414 -138
  41. package/dist/esm/apis/StagesApi.js +1002 -334
  42. package/dist/esm/models/index.d.ts +0 -1
  43. package/dist/esm/models/index.js +0 -1
  44. package/dist/models/index.d.ts +0 -1
  45. package/dist/models/index.js +0 -1
  46. package/package.json +1 -1
  47. package/src/apis/AdminApi.ts +70 -30
  48. package/src/apis/AuthenticatorsApi.ts +434 -186
  49. package/src/apis/CoreApi.ts +444 -186
  50. package/src/apis/CryptoApi.ts +70 -30
  51. package/src/apis/EnterpriseApi.ts +70 -30
  52. package/src/apis/EventsApi.ts +245 -105
  53. package/src/apis/FlowsApi.ts +175 -75
  54. package/src/apis/ManagedApi.ts +63 -27
  55. package/src/apis/Oauth2Api.ts +84 -36
  56. package/src/apis/OutpostsApi.ts +245 -105
  57. package/src/apis/PoliciesApi.ts +427 -183
  58. package/src/apis/PropertymappingsApi.ts +336 -144
  59. package/src/apis/ProvidersApi.ts +420 -180
  60. package/src/apis/RacApi.ts +91 -39
  61. package/src/apis/RbacApi.ts +119 -51
  62. package/src/apis/RootApi.ts +7 -3
  63. package/src/apis/SchemaApi.ts +7 -3
  64. package/src/apis/SourcesApi.ts +483 -207
  65. package/src/apis/StagesApi.ts +1169 -501
  66. package/src/models/index.ts +0 -1
  67. package/dist/esm/models/UserGroupRequest.d.ts +0 -51
  68. package/dist/esm/models/UserGroupRequest.js +0 -50
  69. package/dist/models/UserGroupRequest.d.ts +0 -51
  70. package/dist/models/UserGroupRequest.js +0 -57
  71. package/src/models/UserGroupRequest.ts +0 -90
@@ -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',