@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
@@ -39,8 +39,12 @@ export class CoreApi extends runtime.BaseAPI {
39
39
  queryParameters['for_user'] = requestParameters.forUser;
40
40
  }
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: `/core/applications/{slug}/check_access/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
@@ -71,8 +75,12 @@ export class CoreApi extends runtime.BaseAPI {
71
75
  const queryParameters = {};
72
76
  const headerParameters = {};
73
77
  headerParameters['Content-Type'] = 'application/json';
74
- if (this.configuration && this.configuration.apiKey) {
75
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
78
+ if (this.configuration && this.configuration.accessToken) {
79
+ const token = this.configuration.accessToken;
80
+ const tokenString = yield token("authentik", []);
81
+ if (tokenString) {
82
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
83
+ }
76
84
  }
77
85
  const response = yield this.request({
78
86
  path: `/core/applications/`,
@@ -103,8 +111,12 @@ export class CoreApi extends runtime.BaseAPI {
103
111
  }
104
112
  const queryParameters = {};
105
113
  const headerParameters = {};
106
- if (this.configuration && this.configuration.apiKey) {
107
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
114
+ if (this.configuration && this.configuration.accessToken) {
115
+ const token = this.configuration.accessToken;
116
+ const tokenString = yield token("authentik", []);
117
+ if (tokenString) {
118
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
119
+ }
108
120
  }
109
121
  const response = yield this.request({
110
122
  path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
@@ -166,8 +178,12 @@ export class CoreApi extends runtime.BaseAPI {
166
178
  queryParameters['superuser_full_list'] = requestParameters.superuserFullList;
167
179
  }
168
180
  const headerParameters = {};
169
- if (this.configuration && this.configuration.apiKey) {
170
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
181
+ if (this.configuration && this.configuration.accessToken) {
182
+ const token = this.configuration.accessToken;
183
+ const tokenString = yield token("authentik", []);
184
+ if (tokenString) {
185
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
186
+ }
171
187
  }
172
188
  const response = yield this.request({
173
189
  path: `/core/applications/`,
@@ -197,8 +213,12 @@ export class CoreApi extends runtime.BaseAPI {
197
213
  }
198
214
  const queryParameters = {};
199
215
  const headerParameters = {};
200
- if (this.configuration && this.configuration.apiKey) {
201
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
216
+ if (this.configuration && this.configuration.accessToken) {
217
+ const token = this.configuration.accessToken;
218
+ const tokenString = yield token("authentik", []);
219
+ if (tokenString) {
220
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
221
+ }
202
222
  }
203
223
  const response = yield this.request({
204
224
  path: `/core/applications/{slug}/metrics/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
@@ -229,8 +249,12 @@ export class CoreApi extends runtime.BaseAPI {
229
249
  const queryParameters = {};
230
250
  const headerParameters = {};
231
251
  headerParameters['Content-Type'] = 'application/json';
232
- if (this.configuration && this.configuration.apiKey) {
233
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
252
+ if (this.configuration && this.configuration.accessToken) {
253
+ const token = this.configuration.accessToken;
254
+ const tokenString = yield token("authentik", []);
255
+ if (tokenString) {
256
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
257
+ }
234
258
  }
235
259
  const response = yield this.request({
236
260
  path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
@@ -261,8 +285,12 @@ export class CoreApi extends runtime.BaseAPI {
261
285
  }
262
286
  const queryParameters = {};
263
287
  const headerParameters = {};
264
- if (this.configuration && this.configuration.apiKey) {
265
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
288
+ if (this.configuration && this.configuration.accessToken) {
289
+ const token = this.configuration.accessToken;
290
+ const tokenString = yield token("authentik", []);
291
+ if (tokenString) {
292
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
293
+ }
266
294
  }
267
295
  const response = yield this.request({
268
296
  path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
@@ -292,8 +320,12 @@ export class CoreApi extends runtime.BaseAPI {
292
320
  }
293
321
  const queryParameters = {};
294
322
  const headerParameters = {};
295
- if (this.configuration && this.configuration.apiKey) {
296
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
323
+ if (this.configuration && this.configuration.accessToken) {
324
+ const token = this.configuration.accessToken;
325
+ const tokenString = yield token("authentik", []);
326
+ if (tokenString) {
327
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
328
+ }
297
329
  }
298
330
  const consumes = [
299
331
  { contentType: 'multipart/form-data' },
@@ -348,8 +380,12 @@ export class CoreApi extends runtime.BaseAPI {
348
380
  const queryParameters = {};
349
381
  const headerParameters = {};
350
382
  headerParameters['Content-Type'] = 'application/json';
351
- if (this.configuration && this.configuration.apiKey) {
352
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
383
+ if (this.configuration && this.configuration.accessToken) {
384
+ const token = this.configuration.accessToken;
385
+ const tokenString = yield token("authentik", []);
386
+ if (tokenString) {
387
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
388
+ }
353
389
  }
354
390
  const response = yield this.request({
355
391
  path: `/core/applications/{slug}/set_icon_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
@@ -383,8 +419,12 @@ export class CoreApi extends runtime.BaseAPI {
383
419
  const queryParameters = {};
384
420
  const headerParameters = {};
385
421
  headerParameters['Content-Type'] = 'application/json';
386
- if (this.configuration && this.configuration.apiKey) {
387
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
422
+ if (this.configuration && this.configuration.accessToken) {
423
+ const token = this.configuration.accessToken;
424
+ const tokenString = yield token("authentik", []);
425
+ if (tokenString) {
426
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
427
+ }
388
428
  }
389
429
  const response = yield this.request({
390
430
  path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
@@ -415,8 +455,12 @@ export class CoreApi extends runtime.BaseAPI {
415
455
  }
416
456
  const queryParameters = {};
417
457
  const headerParameters = {};
418
- if (this.configuration && this.configuration.apiKey) {
419
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
458
+ if (this.configuration && this.configuration.accessToken) {
459
+ const token = this.configuration.accessToken;
460
+ const tokenString = yield token("authentik", []);
461
+ if (tokenString) {
462
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
463
+ }
420
464
  }
421
465
  const response = yield this.request({
422
466
  path: `/core/applications/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
@@ -446,8 +490,12 @@ export class CoreApi extends runtime.BaseAPI {
446
490
  }
447
491
  const queryParameters = {};
448
492
  const headerParameters = {};
449
- if (this.configuration && this.configuration.apiKey) {
450
- 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
+ }
451
499
  }
452
500
  const response = yield this.request({
453
501
  path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -494,8 +542,12 @@ export class CoreApi extends runtime.BaseAPI {
494
542
  queryParameters['user__username'] = requestParameters.userUsername;
495
543
  }
496
544
  const headerParameters = {};
497
- if (this.configuration && this.configuration.apiKey) {
498
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
545
+ if (this.configuration && this.configuration.accessToken) {
546
+ const token = this.configuration.accessToken;
547
+ const tokenString = yield token("authentik", []);
548
+ if (tokenString) {
549
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
550
+ }
499
551
  }
500
552
  const response = yield this.request({
501
553
  path: `/core/authenticated_sessions/`,
@@ -525,8 +577,12 @@ export class CoreApi extends runtime.BaseAPI {
525
577
  }
526
578
  const queryParameters = {};
527
579
  const headerParameters = {};
528
- if (this.configuration && this.configuration.apiKey) {
529
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
580
+ if (this.configuration && this.configuration.accessToken) {
581
+ const token = this.configuration.accessToken;
582
+ const tokenString = yield token("authentik", []);
583
+ if (tokenString) {
584
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
585
+ }
530
586
  }
531
587
  const response = yield this.request({
532
588
  path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -556,8 +612,12 @@ export class CoreApi extends runtime.BaseAPI {
556
612
  }
557
613
  const queryParameters = {};
558
614
  const headerParameters = {};
559
- if (this.configuration && this.configuration.apiKey) {
560
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
615
+ if (this.configuration && this.configuration.accessToken) {
616
+ const token = this.configuration.accessToken;
617
+ const tokenString = yield token("authentik", []);
618
+ if (tokenString) {
619
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
620
+ }
561
621
  }
562
622
  const response = yield this.request({
563
623
  path: `/core/authenticated_sessions/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
@@ -588,8 +648,12 @@ export class CoreApi extends runtime.BaseAPI {
588
648
  const queryParameters = {};
589
649
  const headerParameters = {};
590
650
  headerParameters['Content-Type'] = 'application/json';
591
- if (this.configuration && this.configuration.apiKey) {
592
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
651
+ if (this.configuration && this.configuration.accessToken) {
652
+ const token = this.configuration.accessToken;
653
+ const tokenString = yield token("authentik", []);
654
+ if (tokenString) {
655
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
656
+ }
593
657
  }
594
658
  const response = yield this.request({
595
659
  path: `/core/brands/`,
@@ -617,8 +681,12 @@ export class CoreApi extends runtime.BaseAPI {
617
681
  return __awaiter(this, void 0, void 0, function* () {
618
682
  const queryParameters = {};
619
683
  const headerParameters = {};
620
- if (this.configuration && this.configuration.apiKey) {
621
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
684
+ if (this.configuration && this.configuration.accessToken) {
685
+ const token = this.configuration.accessToken;
686
+ const tokenString = yield token("authentik", []);
687
+ if (tokenString) {
688
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
689
+ }
622
690
  }
623
691
  const response = yield this.request({
624
692
  path: `/core/brands/current/`,
@@ -648,8 +716,12 @@ export class CoreApi extends runtime.BaseAPI {
648
716
  }
649
717
  const queryParameters = {};
650
718
  const headerParameters = {};
651
- if (this.configuration && this.configuration.apiKey) {
652
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
719
+ if (this.configuration && this.configuration.accessToken) {
720
+ const token = this.configuration.accessToken;
721
+ const tokenString = yield token("authentik", []);
722
+ if (tokenString) {
723
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
724
+ }
653
725
  }
654
726
  const response = yield this.request({
655
727
  path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
@@ -726,8 +798,12 @@ export class CoreApi extends runtime.BaseAPI {
726
798
  queryParameters['web_certificate'] = requestParameters.webCertificate;
727
799
  }
728
800
  const headerParameters = {};
729
- if (this.configuration && this.configuration.apiKey) {
730
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
801
+ if (this.configuration && this.configuration.accessToken) {
802
+ const token = this.configuration.accessToken;
803
+ const tokenString = yield token("authentik", []);
804
+ if (tokenString) {
805
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
806
+ }
731
807
  }
732
808
  const response = yield this.request({
733
809
  path: `/core/brands/`,
@@ -758,8 +834,12 @@ export class CoreApi extends runtime.BaseAPI {
758
834
  const queryParameters = {};
759
835
  const headerParameters = {};
760
836
  headerParameters['Content-Type'] = 'application/json';
761
- if (this.configuration && this.configuration.apiKey) {
762
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
837
+ if (this.configuration && this.configuration.accessToken) {
838
+ const token = this.configuration.accessToken;
839
+ const tokenString = yield token("authentik", []);
840
+ if (tokenString) {
841
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
842
+ }
763
843
  }
764
844
  const response = yield this.request({
765
845
  path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
@@ -790,8 +870,12 @@ export class CoreApi extends runtime.BaseAPI {
790
870
  }
791
871
  const queryParameters = {};
792
872
  const headerParameters = {};
793
- if (this.configuration && this.configuration.apiKey) {
794
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
873
+ if (this.configuration && this.configuration.accessToken) {
874
+ const token = this.configuration.accessToken;
875
+ const tokenString = yield token("authentik", []);
876
+ if (tokenString) {
877
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
878
+ }
795
879
  }
796
880
  const response = yield this.request({
797
881
  path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
@@ -825,8 +909,12 @@ export class CoreApi extends runtime.BaseAPI {
825
909
  const queryParameters = {};
826
910
  const headerParameters = {};
827
911
  headerParameters['Content-Type'] = 'application/json';
828
- if (this.configuration && this.configuration.apiKey) {
829
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
912
+ if (this.configuration && this.configuration.accessToken) {
913
+ const token = this.configuration.accessToken;
914
+ const tokenString = yield token("authentik", []);
915
+ if (tokenString) {
916
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
917
+ }
830
918
  }
831
919
  const response = yield this.request({
832
920
  path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
@@ -857,8 +945,12 @@ export class CoreApi extends runtime.BaseAPI {
857
945
  }
858
946
  const queryParameters = {};
859
947
  const headerParameters = {};
860
- if (this.configuration && this.configuration.apiKey) {
861
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
948
+ if (this.configuration && this.configuration.accessToken) {
949
+ const token = this.configuration.accessToken;
950
+ const tokenString = yield token("authentik", []);
951
+ if (tokenString) {
952
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
953
+ }
862
954
  }
863
955
  const response = yield this.request({
864
956
  path: `/core/brands/{brand_uuid}/used_by/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
@@ -892,8 +984,12 @@ export class CoreApi extends runtime.BaseAPI {
892
984
  const queryParameters = {};
893
985
  const headerParameters = {};
894
986
  headerParameters['Content-Type'] = 'application/json';
895
- if (this.configuration && this.configuration.apiKey) {
896
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
987
+ if (this.configuration && this.configuration.accessToken) {
988
+ const token = this.configuration.accessToken;
989
+ const tokenString = yield token("authentik", []);
990
+ if (tokenString) {
991
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
992
+ }
897
993
  }
898
994
  const response = yield this.request({
899
995
  path: `/core/groups/{group_uuid}/add_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
@@ -924,8 +1020,12 @@ export class CoreApi extends runtime.BaseAPI {
924
1020
  const queryParameters = {};
925
1021
  const headerParameters = {};
926
1022
  headerParameters['Content-Type'] = 'application/json';
927
- if (this.configuration && this.configuration.apiKey) {
928
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1023
+ if (this.configuration && this.configuration.accessToken) {
1024
+ const token = this.configuration.accessToken;
1025
+ const tokenString = yield token("authentik", []);
1026
+ if (tokenString) {
1027
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1028
+ }
929
1029
  }
930
1030
  const response = yield this.request({
931
1031
  path: `/core/groups/`,
@@ -956,8 +1056,12 @@ export class CoreApi extends runtime.BaseAPI {
956
1056
  }
957
1057
  const queryParameters = {};
958
1058
  const headerParameters = {};
959
- if (this.configuration && this.configuration.apiKey) {
960
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1059
+ if (this.configuration && this.configuration.accessToken) {
1060
+ const token = this.configuration.accessToken;
1061
+ const tokenString = yield token("authentik", []);
1062
+ if (tokenString) {
1063
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1064
+ }
961
1065
  }
962
1066
  const response = yield this.request({
963
1067
  path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
@@ -1010,8 +1114,12 @@ export class CoreApi extends runtime.BaseAPI {
1010
1114
  queryParameters['search'] = requestParameters.search;
1011
1115
  }
1012
1116
  const headerParameters = {};
1013
- if (this.configuration && this.configuration.apiKey) {
1014
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1117
+ if (this.configuration && this.configuration.accessToken) {
1118
+ const token = this.configuration.accessToken;
1119
+ const tokenString = yield token("authentik", []);
1120
+ if (tokenString) {
1121
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1122
+ }
1015
1123
  }
1016
1124
  const response = yield this.request({
1017
1125
  path: `/core/groups/`,
@@ -1042,8 +1150,12 @@ export class CoreApi extends runtime.BaseAPI {
1042
1150
  const queryParameters = {};
1043
1151
  const headerParameters = {};
1044
1152
  headerParameters['Content-Type'] = 'application/json';
1045
- if (this.configuration && this.configuration.apiKey) {
1046
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1153
+ if (this.configuration && this.configuration.accessToken) {
1154
+ const token = this.configuration.accessToken;
1155
+ const tokenString = yield token("authentik", []);
1156
+ if (tokenString) {
1157
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1158
+ }
1047
1159
  }
1048
1160
  const response = yield this.request({
1049
1161
  path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
@@ -1078,8 +1190,12 @@ export class CoreApi extends runtime.BaseAPI {
1078
1190
  const queryParameters = {};
1079
1191
  const headerParameters = {};
1080
1192
  headerParameters['Content-Type'] = 'application/json';
1081
- if (this.configuration && this.configuration.apiKey) {
1082
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1193
+ if (this.configuration && this.configuration.accessToken) {
1194
+ const token = this.configuration.accessToken;
1195
+ const tokenString = yield token("authentik", []);
1196
+ if (tokenString) {
1197
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1198
+ }
1083
1199
  }
1084
1200
  const response = yield this.request({
1085
1201
  path: `/core/groups/{group_uuid}/remove_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
@@ -1109,8 +1225,12 @@ export class CoreApi extends runtime.BaseAPI {
1109
1225
  }
1110
1226
  const queryParameters = {};
1111
1227
  const headerParameters = {};
1112
- if (this.configuration && this.configuration.apiKey) {
1113
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1228
+ if (this.configuration && this.configuration.accessToken) {
1229
+ const token = this.configuration.accessToken;
1230
+ const tokenString = yield token("authentik", []);
1231
+ if (tokenString) {
1232
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1233
+ }
1114
1234
  }
1115
1235
  const response = yield this.request({
1116
1236
  path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
@@ -1144,8 +1264,12 @@ export class CoreApi extends runtime.BaseAPI {
1144
1264
  const queryParameters = {};
1145
1265
  const headerParameters = {};
1146
1266
  headerParameters['Content-Type'] = 'application/json';
1147
- if (this.configuration && this.configuration.apiKey) {
1148
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1267
+ if (this.configuration && this.configuration.accessToken) {
1268
+ const token = this.configuration.accessToken;
1269
+ const tokenString = yield token("authentik", []);
1270
+ if (tokenString) {
1271
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1272
+ }
1149
1273
  }
1150
1274
  const response = yield this.request({
1151
1275
  path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
@@ -1176,8 +1300,12 @@ export class CoreApi extends runtime.BaseAPI {
1176
1300
  }
1177
1301
  const queryParameters = {};
1178
1302
  const headerParameters = {};
1179
- if (this.configuration && this.configuration.apiKey) {
1180
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1303
+ if (this.configuration && this.configuration.accessToken) {
1304
+ const token = this.configuration.accessToken;
1305
+ const tokenString = yield token("authentik", []);
1306
+ if (tokenString) {
1307
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1308
+ }
1181
1309
  }
1182
1310
  const response = yield this.request({
1183
1311
  path: `/core/groups/{group_uuid}/used_by/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
@@ -1208,8 +1336,12 @@ export class CoreApi extends runtime.BaseAPI {
1208
1336
  const queryParameters = {};
1209
1337
  const headerParameters = {};
1210
1338
  headerParameters['Content-Type'] = 'application/json';
1211
- if (this.configuration && this.configuration.apiKey) {
1212
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1339
+ if (this.configuration && this.configuration.accessToken) {
1340
+ const token = this.configuration.accessToken;
1341
+ const tokenString = yield token("authentik", []);
1342
+ if (tokenString) {
1343
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1344
+ }
1213
1345
  }
1214
1346
  const response = yield this.request({
1215
1347
  path: `/core/tokens/`,
@@ -1240,8 +1372,12 @@ export class CoreApi extends runtime.BaseAPI {
1240
1372
  }
1241
1373
  const queryParameters = {};
1242
1374
  const headerParameters = {};
1243
- if (this.configuration && this.configuration.apiKey) {
1244
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1375
+ if (this.configuration && this.configuration.accessToken) {
1376
+ const token = this.configuration.accessToken;
1377
+ const tokenString = yield token("authentik", []);
1378
+ if (tokenString) {
1379
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1380
+ }
1245
1381
  }
1246
1382
  const response = yield this.request({
1247
1383
  path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
@@ -1300,8 +1436,12 @@ export class CoreApi extends runtime.BaseAPI {
1300
1436
  queryParameters['user__username'] = requestParameters.userUsername;
1301
1437
  }
1302
1438
  const headerParameters = {};
1303
- if (this.configuration && this.configuration.apiKey) {
1304
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1439
+ if (this.configuration && this.configuration.accessToken) {
1440
+ const token = this.configuration.accessToken;
1441
+ const tokenString = yield token("authentik", []);
1442
+ if (tokenString) {
1443
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1444
+ }
1305
1445
  }
1306
1446
  const response = yield this.request({
1307
1447
  path: `/core/tokens/`,
@@ -1332,8 +1472,12 @@ export class CoreApi extends runtime.BaseAPI {
1332
1472
  const queryParameters = {};
1333
1473
  const headerParameters = {};
1334
1474
  headerParameters['Content-Type'] = 'application/json';
1335
- if (this.configuration && this.configuration.apiKey) {
1336
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1475
+ if (this.configuration && this.configuration.accessToken) {
1476
+ const token = this.configuration.accessToken;
1477
+ const tokenString = yield token("authentik", []);
1478
+ if (tokenString) {
1479
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1480
+ }
1337
1481
  }
1338
1482
  const response = yield this.request({
1339
1483
  path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
@@ -1364,8 +1508,12 @@ export class CoreApi extends runtime.BaseAPI {
1364
1508
  }
1365
1509
  const queryParameters = {};
1366
1510
  const headerParameters = {};
1367
- if (this.configuration && this.configuration.apiKey) {
1368
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1511
+ if (this.configuration && this.configuration.accessToken) {
1512
+ const token = this.configuration.accessToken;
1513
+ const tokenString = yield token("authentik", []);
1514
+ if (tokenString) {
1515
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1516
+ }
1369
1517
  }
1370
1518
  const response = yield this.request({
1371
1519
  path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
@@ -1399,8 +1547,12 @@ export class CoreApi extends runtime.BaseAPI {
1399
1547
  const queryParameters = {};
1400
1548
  const headerParameters = {};
1401
1549
  headerParameters['Content-Type'] = 'application/json';
1402
- if (this.configuration && this.configuration.apiKey) {
1403
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1550
+ if (this.configuration && this.configuration.accessToken) {
1551
+ const token = this.configuration.accessToken;
1552
+ const tokenString = yield token("authentik", []);
1553
+ if (tokenString) {
1554
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1555
+ }
1404
1556
  }
1405
1557
  const response = yield this.request({
1406
1558
  path: `/core/tokens/{identifier}/set_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
@@ -1434,8 +1586,12 @@ export class CoreApi extends runtime.BaseAPI {
1434
1586
  const queryParameters = {};
1435
1587
  const headerParameters = {};
1436
1588
  headerParameters['Content-Type'] = 'application/json';
1437
- if (this.configuration && this.configuration.apiKey) {
1438
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1589
+ if (this.configuration && this.configuration.accessToken) {
1590
+ const token = this.configuration.accessToken;
1591
+ const tokenString = yield token("authentik", []);
1592
+ if (tokenString) {
1593
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1594
+ }
1439
1595
  }
1440
1596
  const response = yield this.request({
1441
1597
  path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
@@ -1466,8 +1622,12 @@ export class CoreApi extends runtime.BaseAPI {
1466
1622
  }
1467
1623
  const queryParameters = {};
1468
1624
  const headerParameters = {};
1469
- if (this.configuration && this.configuration.apiKey) {
1470
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1625
+ if (this.configuration && this.configuration.accessToken) {
1626
+ const token = this.configuration.accessToken;
1627
+ const tokenString = yield token("authentik", []);
1628
+ if (tokenString) {
1629
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1630
+ }
1471
1631
  }
1472
1632
  const response = yield this.request({
1473
1633
  path: `/core/tokens/{identifier}/used_by/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
@@ -1497,8 +1657,12 @@ export class CoreApi extends runtime.BaseAPI {
1497
1657
  }
1498
1658
  const queryParameters = {};
1499
1659
  const headerParameters = {};
1500
- if (this.configuration && this.configuration.apiKey) {
1501
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1660
+ if (this.configuration && this.configuration.accessToken) {
1661
+ const token = this.configuration.accessToken;
1662
+ const tokenString = yield token("authentik", []);
1663
+ if (tokenString) {
1664
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1665
+ }
1502
1666
  }
1503
1667
  const response = yield this.request({
1504
1668
  path: `/core/tokens/{identifier}/view_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
@@ -1529,8 +1693,12 @@ export class CoreApi extends runtime.BaseAPI {
1529
1693
  const queryParameters = {};
1530
1694
  const headerParameters = {};
1531
1695
  headerParameters['Content-Type'] = 'application/json';
1532
- if (this.configuration && this.configuration.apiKey) {
1533
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1696
+ if (this.configuration && this.configuration.accessToken) {
1697
+ const token = this.configuration.accessToken;
1698
+ const tokenString = yield token("authentik", []);
1699
+ if (tokenString) {
1700
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1701
+ }
1534
1702
  }
1535
1703
  const response = yield this.request({
1536
1704
  path: `/core/transactional/applications/`,
@@ -1561,8 +1729,12 @@ export class CoreApi extends runtime.BaseAPI {
1561
1729
  }
1562
1730
  const queryParameters = {};
1563
1731
  const headerParameters = {};
1564
- if (this.configuration && this.configuration.apiKey) {
1565
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1732
+ if (this.configuration && this.configuration.accessToken) {
1733
+ const token = this.configuration.accessToken;
1734
+ const tokenString = yield token("authentik", []);
1735
+ if (tokenString) {
1736
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1737
+ }
1566
1738
  }
1567
1739
  const response = yield this.request({
1568
1740
  path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1606,8 +1778,12 @@ export class CoreApi extends runtime.BaseAPI {
1606
1778
  queryParameters['user'] = requestParameters.user;
1607
1779
  }
1608
1780
  const headerParameters = {};
1609
- if (this.configuration && this.configuration.apiKey) {
1610
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1781
+ if (this.configuration && this.configuration.accessToken) {
1782
+ const token = this.configuration.accessToken;
1783
+ const tokenString = yield token("authentik", []);
1784
+ if (tokenString) {
1785
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1786
+ }
1611
1787
  }
1612
1788
  const response = yield this.request({
1613
1789
  path: `/core/user_consent/`,
@@ -1637,8 +1813,12 @@ export class CoreApi extends runtime.BaseAPI {
1637
1813
  }
1638
1814
  const queryParameters = {};
1639
1815
  const headerParameters = {};
1640
- if (this.configuration && this.configuration.apiKey) {
1641
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1816
+ if (this.configuration && this.configuration.accessToken) {
1817
+ const token = this.configuration.accessToken;
1818
+ const tokenString = yield token("authentik", []);
1819
+ if (tokenString) {
1820
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1821
+ }
1642
1822
  }
1643
1823
  const response = yield this.request({
1644
1824
  path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1668,8 +1848,12 @@ export class CoreApi extends runtime.BaseAPI {
1668
1848
  }
1669
1849
  const queryParameters = {};
1670
1850
  const headerParameters = {};
1671
- if (this.configuration && this.configuration.apiKey) {
1672
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1851
+ if (this.configuration && this.configuration.accessToken) {
1852
+ const token = this.configuration.accessToken;
1853
+ const tokenString = yield token("authentik", []);
1854
+ if (tokenString) {
1855
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1856
+ }
1673
1857
  }
1674
1858
  const response = yield this.request({
1675
1859
  path: `/core/user_consent/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1700,8 +1884,12 @@ export class CoreApi extends runtime.BaseAPI {
1700
1884
  const queryParameters = {};
1701
1885
  const headerParameters = {};
1702
1886
  headerParameters['Content-Type'] = 'application/json';
1703
- if (this.configuration && this.configuration.apiKey) {
1704
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1887
+ if (this.configuration && this.configuration.accessToken) {
1888
+ const token = this.configuration.accessToken;
1889
+ const tokenString = yield token("authentik", []);
1890
+ if (tokenString) {
1891
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1892
+ }
1705
1893
  }
1706
1894
  const response = yield this.request({
1707
1895
  path: `/core/users/`,
@@ -1732,8 +1920,12 @@ export class CoreApi extends runtime.BaseAPI {
1732
1920
  }
1733
1921
  const queryParameters = {};
1734
1922
  const headerParameters = {};
1735
- if (this.configuration && this.configuration.apiKey) {
1736
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1923
+ if (this.configuration && this.configuration.accessToken) {
1924
+ const token = this.configuration.accessToken;
1925
+ const tokenString = yield token("authentik", []);
1926
+ if (tokenString) {
1927
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1928
+ }
1737
1929
  }
1738
1930
  const response = yield this.request({
1739
1931
  path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1762,8 +1954,12 @@ export class CoreApi extends runtime.BaseAPI {
1762
1954
  }
1763
1955
  const queryParameters = {};
1764
1956
  const headerParameters = {};
1765
- if (this.configuration && this.configuration.apiKey) {
1766
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1957
+ if (this.configuration && this.configuration.accessToken) {
1958
+ const token = this.configuration.accessToken;
1959
+ const tokenString = yield token("authentik", []);
1960
+ if (tokenString) {
1961
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1962
+ }
1767
1963
  }
1768
1964
  const response = yield this.request({
1769
1965
  path: `/core/users/{id}/impersonate/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1789,8 +1985,12 @@ export class CoreApi extends runtime.BaseAPI {
1789
1985
  return __awaiter(this, void 0, void 0, function* () {
1790
1986
  const queryParameters = {};
1791
1987
  const headerParameters = {};
1792
- if (this.configuration && this.configuration.apiKey) {
1793
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1988
+ if (this.configuration && this.configuration.accessToken) {
1989
+ const token = this.configuration.accessToken;
1990
+ const tokenString = yield token("authentik", []);
1991
+ if (tokenString) {
1992
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1993
+ }
1794
1994
  }
1795
1995
  const response = yield this.request({
1796
1996
  path: `/core/users/impersonate_end/`,
@@ -1864,8 +2064,12 @@ export class CoreApi extends runtime.BaseAPI {
1864
2064
  queryParameters['uuid'] = requestParameters.uuid;
1865
2065
  }
1866
2066
  const headerParameters = {};
1867
- if (this.configuration && this.configuration.apiKey) {
1868
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2067
+ if (this.configuration && this.configuration.accessToken) {
2068
+ const token = this.configuration.accessToken;
2069
+ const tokenString = yield token("authentik", []);
2070
+ if (tokenString) {
2071
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2072
+ }
1869
2073
  }
1870
2074
  const response = yield this.request({
1871
2075
  path: `/core/users/`,
@@ -1892,8 +2096,12 @@ export class CoreApi extends runtime.BaseAPI {
1892
2096
  return __awaiter(this, void 0, void 0, function* () {
1893
2097
  const queryParameters = {};
1894
2098
  const headerParameters = {};
1895
- if (this.configuration && this.configuration.apiKey) {
1896
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2099
+ if (this.configuration && this.configuration.accessToken) {
2100
+ const token = this.configuration.accessToken;
2101
+ const tokenString = yield token("authentik", []);
2102
+ if (tokenString) {
2103
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2104
+ }
1897
2105
  }
1898
2106
  const response = yield this.request({
1899
2107
  path: `/core/users/me/`,
@@ -1923,8 +2131,12 @@ export class CoreApi extends runtime.BaseAPI {
1923
2131
  }
1924
2132
  const queryParameters = {};
1925
2133
  const headerParameters = {};
1926
- if (this.configuration && this.configuration.apiKey) {
1927
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2134
+ if (this.configuration && this.configuration.accessToken) {
2135
+ const token = this.configuration.accessToken;
2136
+ const tokenString = yield token("authentik", []);
2137
+ if (tokenString) {
2138
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2139
+ }
1928
2140
  }
1929
2141
  const response = yield this.request({
1930
2142
  path: `/core/users/{id}/metrics/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1955,8 +2167,12 @@ export class CoreApi extends runtime.BaseAPI {
1955
2167
  const queryParameters = {};
1956
2168
  const headerParameters = {};
1957
2169
  headerParameters['Content-Type'] = 'application/json';
1958
- if (this.configuration && this.configuration.apiKey) {
1959
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2170
+ if (this.configuration && this.configuration.accessToken) {
2171
+ const token = this.configuration.accessToken;
2172
+ const tokenString = yield token("authentik", []);
2173
+ if (tokenString) {
2174
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2175
+ }
1960
2176
  }
1961
2177
  const response = yield this.request({
1962
2178
  path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1987,8 +2203,12 @@ export class CoreApi extends runtime.BaseAPI {
1987
2203
  queryParameters['search'] = requestParameters.search;
1988
2204
  }
1989
2205
  const headerParameters = {};
1990
- if (this.configuration && this.configuration.apiKey) {
1991
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2206
+ if (this.configuration && this.configuration.accessToken) {
2207
+ const token = this.configuration.accessToken;
2208
+ const tokenString = yield token("authentik", []);
2209
+ if (tokenString) {
2210
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2211
+ }
1992
2212
  }
1993
2213
  const response = yield this.request({
1994
2214
  path: `/core/users/paths/`,
@@ -2018,8 +2238,12 @@ export class CoreApi extends runtime.BaseAPI {
2018
2238
  }
2019
2239
  const queryParameters = {};
2020
2240
  const headerParameters = {};
2021
- if (this.configuration && this.configuration.apiKey) {
2022
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2241
+ if (this.configuration && this.configuration.accessToken) {
2242
+ const token = this.configuration.accessToken;
2243
+ const tokenString = yield token("authentik", []);
2244
+ if (tokenString) {
2245
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2246
+ }
2023
2247
  }
2024
2248
  const response = yield this.request({
2025
2249
  path: `/core/users/{id}/recovery/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2055,8 +2279,12 @@ export class CoreApi extends runtime.BaseAPI {
2055
2279
  queryParameters['email_stage'] = requestParameters.emailStage;
2056
2280
  }
2057
2281
  const headerParameters = {};
2058
- if (this.configuration && this.configuration.apiKey) {
2059
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2282
+ if (this.configuration && this.configuration.accessToken) {
2283
+ const token = this.configuration.accessToken;
2284
+ const tokenString = yield token("authentik", []);
2285
+ if (tokenString) {
2286
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2287
+ }
2060
2288
  }
2061
2289
  const response = yield this.request({
2062
2290
  path: `/core/users/{id}/recovery_email/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2085,8 +2313,12 @@ export class CoreApi extends runtime.BaseAPI {
2085
2313
  }
2086
2314
  const queryParameters = {};
2087
2315
  const headerParameters = {};
2088
- if (this.configuration && this.configuration.apiKey) {
2089
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2316
+ if (this.configuration && this.configuration.accessToken) {
2317
+ const token = this.configuration.accessToken;
2318
+ const tokenString = yield token("authentik", []);
2319
+ if (tokenString) {
2320
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2321
+ }
2090
2322
  }
2091
2323
  const response = yield this.request({
2092
2324
  path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2117,8 +2349,12 @@ export class CoreApi extends runtime.BaseAPI {
2117
2349
  const queryParameters = {};
2118
2350
  const headerParameters = {};
2119
2351
  headerParameters['Content-Type'] = 'application/json';
2120
- if (this.configuration && this.configuration.apiKey) {
2121
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2352
+ if (this.configuration && this.configuration.accessToken) {
2353
+ const token = this.configuration.accessToken;
2354
+ const tokenString = yield token("authentik", []);
2355
+ if (tokenString) {
2356
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2357
+ }
2122
2358
  }
2123
2359
  const response = yield this.request({
2124
2360
  path: `/core/users/service_account/`,
@@ -2153,8 +2389,12 @@ export class CoreApi extends runtime.BaseAPI {
2153
2389
  const queryParameters = {};
2154
2390
  const headerParameters = {};
2155
2391
  headerParameters['Content-Type'] = 'application/json';
2156
- if (this.configuration && this.configuration.apiKey) {
2157
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2392
+ if (this.configuration && this.configuration.accessToken) {
2393
+ const token = this.configuration.accessToken;
2394
+ const tokenString = yield token("authentik", []);
2395
+ if (tokenString) {
2396
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2397
+ }
2158
2398
  }
2159
2399
  const response = yield this.request({
2160
2400
  path: `/core/users/{id}/set_password/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2188,8 +2428,12 @@ export class CoreApi extends runtime.BaseAPI {
2188
2428
  const queryParameters = {};
2189
2429
  const headerParameters = {};
2190
2430
  headerParameters['Content-Type'] = 'application/json';
2191
- if (this.configuration && this.configuration.apiKey) {
2192
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2431
+ if (this.configuration && this.configuration.accessToken) {
2432
+ const token = this.configuration.accessToken;
2433
+ const tokenString = yield token("authentik", []);
2434
+ if (tokenString) {
2435
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2436
+ }
2193
2437
  }
2194
2438
  const response = yield this.request({
2195
2439
  path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2220,8 +2464,12 @@ export class CoreApi extends runtime.BaseAPI {
2220
2464
  }
2221
2465
  const queryParameters = {};
2222
2466
  const headerParameters = {};
2223
- if (this.configuration && this.configuration.apiKey) {
2224
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2467
+ if (this.configuration && this.configuration.accessToken) {
2468
+ const token = this.configuration.accessToken;
2469
+ const tokenString = yield token("authentik", []);
2470
+ if (tokenString) {
2471
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2472
+ }
2225
2473
  }
2226
2474
  const response = yield this.request({
2227
2475
  path: `/core/users/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),