@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
@@ -39,8 +39,12 @@ class RacApi extends runtime.BaseAPI {
39
39
  }
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
- if (this.configuration && this.configuration.apiKey) {
43
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
42
+ if (this.configuration && this.configuration.accessToken) {
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = yield token("authentik", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
44
48
  }
45
49
  const response = yield this.request({
46
50
  path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
@@ -87,8 +91,12 @@ class RacApi extends runtime.BaseAPI {
87
91
  queryParameters['session__user'] = requestParameters.sessionUser;
88
92
  }
89
93
  const headerParameters = {};
90
- if (this.configuration && this.configuration.apiKey) {
91
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
94
+ if (this.configuration && this.configuration.accessToken) {
95
+ const token = this.configuration.accessToken;
96
+ const tokenString = yield token("authentik", []);
97
+ if (tokenString) {
98
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
99
+ }
92
100
  }
93
101
  const response = yield this.request({
94
102
  path: `/rac/connection_tokens/`,
@@ -119,8 +127,12 @@ class RacApi extends runtime.BaseAPI {
119
127
  const queryParameters = {};
120
128
  const headerParameters = {};
121
129
  headerParameters['Content-Type'] = 'application/json';
122
- if (this.configuration && this.configuration.apiKey) {
123
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
130
+ if (this.configuration && this.configuration.accessToken) {
131
+ const token = this.configuration.accessToken;
132
+ const tokenString = yield token("authentik", []);
133
+ if (tokenString) {
134
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
135
+ }
124
136
  }
125
137
  const response = yield this.request({
126
138
  path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
@@ -151,8 +163,12 @@ class RacApi extends runtime.BaseAPI {
151
163
  }
152
164
  const queryParameters = {};
153
165
  const headerParameters = {};
154
- if (this.configuration && this.configuration.apiKey) {
155
- 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
+ }
156
172
  }
157
173
  const response = yield this.request({
158
174
  path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
@@ -186,8 +202,12 @@ class RacApi extends runtime.BaseAPI {
186
202
  const queryParameters = {};
187
203
  const headerParameters = {};
188
204
  headerParameters['Content-Type'] = 'application/json';
189
- if (this.configuration && this.configuration.apiKey) {
190
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
205
+ if (this.configuration && this.configuration.accessToken) {
206
+ const token = this.configuration.accessToken;
207
+ const tokenString = yield token("authentik", []);
208
+ if (tokenString) {
209
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
210
+ }
191
211
  }
192
212
  const response = yield this.request({
193
213
  path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
@@ -218,8 +238,12 @@ class RacApi extends runtime.BaseAPI {
218
238
  }
219
239
  const queryParameters = {};
220
240
  const headerParameters = {};
221
- if (this.configuration && this.configuration.apiKey) {
222
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
241
+ if (this.configuration && this.configuration.accessToken) {
242
+ const token = this.configuration.accessToken;
243
+ const tokenString = yield token("authentik", []);
244
+ if (tokenString) {
245
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
246
+ }
223
247
  }
224
248
  const response = yield this.request({
225
249
  path: `/rac/connection_tokens/{connection_token_uuid}/used_by/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
@@ -250,8 +274,12 @@ class RacApi extends runtime.BaseAPI {
250
274
  const queryParameters = {};
251
275
  const headerParameters = {};
252
276
  headerParameters['Content-Type'] = 'application/json';
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: `/rac/endpoints/`,
@@ -282,8 +310,12 @@ class RacApi extends runtime.BaseAPI {
282
310
  }
283
311
  const queryParameters = {};
284
312
  const headerParameters = {};
285
- if (this.configuration && this.configuration.apiKey) {
286
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
313
+ if (this.configuration && this.configuration.accessToken) {
314
+ const token = this.configuration.accessToken;
315
+ const tokenString = yield token("authentik", []);
316
+ if (tokenString) {
317
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
318
+ }
287
319
  }
288
320
  const response = yield this.request({
289
321
  path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
@@ -330,8 +362,12 @@ class RacApi extends runtime.BaseAPI {
330
362
  queryParameters['superuser_full_list'] = requestParameters.superuserFullList;
331
363
  }
332
364
  const headerParameters = {};
333
- if (this.configuration && this.configuration.apiKey) {
334
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
365
+ if (this.configuration && this.configuration.accessToken) {
366
+ const token = this.configuration.accessToken;
367
+ const tokenString = yield token("authentik", []);
368
+ if (tokenString) {
369
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
370
+ }
335
371
  }
336
372
  const response = yield this.request({
337
373
  path: `/rac/endpoints/`,
@@ -362,8 +398,12 @@ class RacApi extends runtime.BaseAPI {
362
398
  const queryParameters = {};
363
399
  const headerParameters = {};
364
400
  headerParameters['Content-Type'] = 'application/json';
365
- if (this.configuration && this.configuration.apiKey) {
366
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
401
+ if (this.configuration && this.configuration.accessToken) {
402
+ const token = this.configuration.accessToken;
403
+ const tokenString = yield token("authentik", []);
404
+ if (tokenString) {
405
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
406
+ }
367
407
  }
368
408
  const response = yield this.request({
369
409
  path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
@@ -394,8 +434,12 @@ class RacApi extends runtime.BaseAPI {
394
434
  }
395
435
  const queryParameters = {};
396
436
  const headerParameters = {};
397
- if (this.configuration && this.configuration.apiKey) {
398
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
437
+ if (this.configuration && this.configuration.accessToken) {
438
+ const token = this.configuration.accessToken;
439
+ const tokenString = yield token("authentik", []);
440
+ if (tokenString) {
441
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
442
+ }
399
443
  }
400
444
  const response = yield this.request({
401
445
  path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
@@ -429,8 +473,12 @@ class RacApi extends runtime.BaseAPI {
429
473
  const queryParameters = {};
430
474
  const headerParameters = {};
431
475
  headerParameters['Content-Type'] = 'application/json';
432
- if (this.configuration && this.configuration.apiKey) {
433
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
476
+ if (this.configuration && this.configuration.accessToken) {
477
+ const token = this.configuration.accessToken;
478
+ const tokenString = yield token("authentik", []);
479
+ if (tokenString) {
480
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
481
+ }
434
482
  }
435
483
  const response = yield this.request({
436
484
  path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
@@ -461,8 +509,12 @@ class RacApi extends runtime.BaseAPI {
461
509
  }
462
510
  const queryParameters = {};
463
511
  const headerParameters = {};
464
- if (this.configuration && this.configuration.apiKey) {
465
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
512
+ if (this.configuration && this.configuration.accessToken) {
513
+ const token = this.configuration.accessToken;
514
+ const tokenString = yield token("authentik", []);
515
+ if (tokenString) {
516
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
517
+ }
466
518
  }
467
519
  const response = yield this.request({
468
520
  path: `/rac/endpoints/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
@@ -43,8 +43,12 @@ class RbacApi extends runtime.BaseAPI {
43
43
  const queryParameters = {};
44
44
  const headerParameters = {};
45
45
  headerParameters['Content-Type'] = 'application/json';
46
- if (this.configuration && this.configuration.apiKey) {
47
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ const token = this.configuration.accessToken;
48
+ const tokenString = yield token("authentik", []);
49
+ if (tokenString) {
50
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
51
+ }
48
52
  }
49
53
  const response = yield this.request({
50
54
  path: `/rbac/permissions/assigned_by_roles/{uuid}/assign/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -92,8 +96,12 @@ class RbacApi extends runtime.BaseAPI {
92
96
  queryParameters['search'] = requestParameters.search;
93
97
  }
94
98
  const headerParameters = {};
95
- if (this.configuration && this.configuration.apiKey) {
96
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ const token = this.configuration.accessToken;
101
+ const tokenString = yield token("authentik", []);
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
104
+ }
97
105
  }
98
106
  const response = yield this.request({
99
107
  path: `/rbac/permissions/assigned_by_roles/`,
@@ -124,8 +132,12 @@ class RbacApi extends runtime.BaseAPI {
124
132
  const queryParameters = {};
125
133
  const headerParameters = {};
126
134
  headerParameters['Content-Type'] = 'application/json';
127
- if (this.configuration && this.configuration.apiKey) {
128
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
135
+ if (this.configuration && this.configuration.accessToken) {
136
+ const token = this.configuration.accessToken;
137
+ const tokenString = yield token("authentik", []);
138
+ if (tokenString) {
139
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
140
+ }
129
141
  }
130
142
  const response = yield this.request({
131
143
  path: `/rbac/permissions/assigned_by_roles/{uuid}/unassign/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -159,8 +171,12 @@ class RbacApi extends runtime.BaseAPI {
159
171
  const queryParameters = {};
160
172
  const headerParameters = {};
161
173
  headerParameters['Content-Type'] = 'application/json';
162
- if (this.configuration && this.configuration.apiKey) {
163
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
174
+ if (this.configuration && this.configuration.accessToken) {
175
+ const token = this.configuration.accessToken;
176
+ const tokenString = yield token("authentik", []);
177
+ if (tokenString) {
178
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
179
+ }
164
180
  }
165
181
  const response = yield this.request({
166
182
  path: `/rbac/permissions/assigned_by_users/{id}/assign/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -208,8 +224,12 @@ class RbacApi extends runtime.BaseAPI {
208
224
  queryParameters['search'] = requestParameters.search;
209
225
  }
210
226
  const headerParameters = {};
211
- if (this.configuration && this.configuration.apiKey) {
212
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
227
+ if (this.configuration && this.configuration.accessToken) {
228
+ const token = this.configuration.accessToken;
229
+ const tokenString = yield token("authentik", []);
230
+ if (tokenString) {
231
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
232
+ }
213
233
  }
214
234
  const response = yield this.request({
215
235
  path: `/rbac/permissions/assigned_by_users/`,
@@ -240,8 +260,12 @@ class RbacApi extends runtime.BaseAPI {
240
260
  const queryParameters = {};
241
261
  const headerParameters = {};
242
262
  headerParameters['Content-Type'] = 'application/json';
243
- if (this.configuration && this.configuration.apiKey) {
244
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
263
+ if (this.configuration && this.configuration.accessToken) {
264
+ const token = this.configuration.accessToken;
265
+ const tokenString = yield token("authentik", []);
266
+ if (tokenString) {
267
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
268
+ }
245
269
  }
246
270
  const response = yield this.request({
247
271
  path: `/rbac/permissions/assigned_by_users/{id}/unassign/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -295,8 +319,12 @@ class RbacApi extends runtime.BaseAPI {
295
319
  queryParameters['user'] = requestParameters.user;
296
320
  }
297
321
  const headerParameters = {};
298
- if (this.configuration && this.configuration.apiKey) {
299
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
322
+ if (this.configuration && this.configuration.accessToken) {
323
+ const token = this.configuration.accessToken;
324
+ const tokenString = yield token("authentik", []);
325
+ if (tokenString) {
326
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
327
+ }
300
328
  }
301
329
  const response = yield this.request({
302
330
  path: `/rbac/permissions/`,
@@ -326,8 +354,12 @@ class RbacApi extends runtime.BaseAPI {
326
354
  }
327
355
  const queryParameters = {};
328
356
  const headerParameters = {};
329
- if (this.configuration && this.configuration.apiKey) {
330
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
357
+ if (this.configuration && this.configuration.accessToken) {
358
+ const token = this.configuration.accessToken;
359
+ const tokenString = yield token("authentik", []);
360
+ if (tokenString) {
361
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
362
+ }
331
363
  }
332
364
  const response = yield this.request({
333
365
  path: `/rbac/permissions/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -372,8 +404,12 @@ class RbacApi extends runtime.BaseAPI {
372
404
  queryParameters['uuid'] = requestParameters.uuid;
373
405
  }
374
406
  const headerParameters = {};
375
- if (this.configuration && this.configuration.apiKey) {
376
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
407
+ if (this.configuration && this.configuration.accessToken) {
408
+ const token = this.configuration.accessToken;
409
+ const tokenString = yield token("authentik", []);
410
+ if (tokenString) {
411
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
412
+ }
377
413
  }
378
414
  const response = yield this.request({
379
415
  path: `/rbac/permissions/roles/`,
@@ -418,8 +454,12 @@ class RbacApi extends runtime.BaseAPI {
418
454
  queryParameters['user_id'] = requestParameters.userId;
419
455
  }
420
456
  const headerParameters = {};
421
- if (this.configuration && this.configuration.apiKey) {
422
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
457
+ if (this.configuration && this.configuration.accessToken) {
458
+ const token = this.configuration.accessToken;
459
+ const tokenString = yield token("authentik", []);
460
+ if (tokenString) {
461
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
462
+ }
423
463
  }
424
464
  const response = yield this.request({
425
465
  path: `/rbac/permissions/users/`,
@@ -450,8 +490,12 @@ class RbacApi extends runtime.BaseAPI {
450
490
  const queryParameters = {};
451
491
  const headerParameters = {};
452
492
  headerParameters['Content-Type'] = 'application/json';
453
- if (this.configuration && this.configuration.apiKey) {
454
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
493
+ if (this.configuration && this.configuration.accessToken) {
494
+ const token = this.configuration.accessToken;
495
+ const tokenString = yield token("authentik", []);
496
+ if (tokenString) {
497
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
498
+ }
455
499
  }
456
500
  const response = yield this.request({
457
501
  path: `/rbac/roles/`,
@@ -482,8 +526,12 @@ class RbacApi extends runtime.BaseAPI {
482
526
  }
483
527
  const queryParameters = {};
484
528
  const headerParameters = {};
485
- if (this.configuration && this.configuration.apiKey) {
486
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
529
+ if (this.configuration && this.configuration.accessToken) {
530
+ const token = this.configuration.accessToken;
531
+ const tokenString = yield token("authentik", []);
532
+ if (tokenString) {
533
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
534
+ }
487
535
  }
488
536
  const response = yield this.request({
489
537
  path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -524,8 +572,12 @@ class RbacApi extends runtime.BaseAPI {
524
572
  queryParameters['search'] = requestParameters.search;
525
573
  }
526
574
  const headerParameters = {};
527
- if (this.configuration && this.configuration.apiKey) {
528
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
575
+ if (this.configuration && this.configuration.accessToken) {
576
+ const token = this.configuration.accessToken;
577
+ const tokenString = yield token("authentik", []);
578
+ if (tokenString) {
579
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
580
+ }
529
581
  }
530
582
  const response = yield this.request({
531
583
  path: `/rbac/roles/`,
@@ -556,8 +608,12 @@ class RbacApi extends runtime.BaseAPI {
556
608
  const queryParameters = {};
557
609
  const headerParameters = {};
558
610
  headerParameters['Content-Type'] = 'application/json';
559
- if (this.configuration && this.configuration.apiKey) {
560
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
611
+ if (this.configuration && this.configuration.accessToken) {
612
+ const token = this.configuration.accessToken;
613
+ const tokenString = yield token("authentik", []);
614
+ if (tokenString) {
615
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
616
+ }
561
617
  }
562
618
  const response = yield this.request({
563
619
  path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -588,8 +644,12 @@ class RbacApi extends runtime.BaseAPI {
588
644
  }
589
645
  const queryParameters = {};
590
646
  const headerParameters = {};
591
- if (this.configuration && this.configuration.apiKey) {
592
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
647
+ if (this.configuration && this.configuration.accessToken) {
648
+ const token = this.configuration.accessToken;
649
+ const tokenString = yield token("authentik", []);
650
+ if (tokenString) {
651
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
652
+ }
593
653
  }
594
654
  const response = yield this.request({
595
655
  path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -623,8 +683,12 @@ class RbacApi extends runtime.BaseAPI {
623
683
  const queryParameters = {};
624
684
  const headerParameters = {};
625
685
  headerParameters['Content-Type'] = 'application/json';
626
- if (this.configuration && this.configuration.apiKey) {
627
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
686
+ if (this.configuration && this.configuration.accessToken) {
687
+ const token = this.configuration.accessToken;
688
+ const tokenString = yield token("authentik", []);
689
+ if (tokenString) {
690
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
691
+ }
628
692
  }
629
693
  const response = yield this.request({
630
694
  path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -655,8 +719,12 @@ class RbacApi extends runtime.BaseAPI {
655
719
  }
656
720
  const queryParameters = {};
657
721
  const headerParameters = {};
658
- if (this.configuration && this.configuration.apiKey) {
659
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
722
+ if (this.configuration && this.configuration.accessToken) {
723
+ const token = this.configuration.accessToken;
724
+ const tokenString = yield token("authentik", []);
725
+ if (tokenString) {
726
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
727
+ }
660
728
  }
661
729
  const response = yield this.request({
662
730
  path: `/rbac/roles/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -36,8 +36,12 @@ class RootApi extends runtime.BaseAPI {
36
36
  return __awaiter(this, void 0, void 0, function* () {
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: `/root/config/`,
@@ -41,8 +41,12 @@ class SchemaApi extends runtime.BaseAPI {
41
41
  queryParameters['lang'] = requestParameters.lang;
42
42
  }
43
43
  const headerParameters = {};
44
- if (this.configuration && this.configuration.apiKey) {
45
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
44
+ if (this.configuration && this.configuration.accessToken) {
45
+ const token = this.configuration.accessToken;
46
+ const tokenString = yield token("authentik", []);
47
+ if (tokenString) {
48
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
49
+ }
46
50
  }
47
51
  const response = yield this.request({
48
52
  path: `/schema/`,