@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/dist/apis/AdminApi.js +60 -20
  2. package/dist/apis/AuthenticatorsApi.js +372 -124
  3. package/dist/apis/CoreApi.js +372 -124
  4. package/dist/apis/CryptoApi.js +60 -20
  5. package/dist/apis/EnterpriseApi.js +60 -20
  6. package/dist/apis/EventsApi.js +210 -70
  7. package/dist/apis/FlowsApi.js +150 -50
  8. package/dist/apis/ManagedApi.js +54 -18
  9. package/dist/apis/Oauth2Api.js +72 -24
  10. package/dist/apis/OutpostsApi.js +210 -70
  11. package/dist/apis/PoliciesApi.js +366 -122
  12. package/dist/apis/PropertymappingsApi.js +288 -96
  13. package/dist/apis/ProvidersApi.js +360 -120
  14. package/dist/apis/RacApi.js +78 -26
  15. package/dist/apis/RbacApi.js +102 -34
  16. package/dist/apis/RootApi.js +6 -2
  17. package/dist/apis/SchemaApi.js +6 -2
  18. package/dist/apis/SourcesApi.js +414 -138
  19. package/dist/apis/StagesApi.js +1002 -334
  20. package/dist/esm/apis/AdminApi.js +60 -20
  21. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  22. package/dist/esm/apis/CoreApi.js +372 -124
  23. package/dist/esm/apis/CryptoApi.js +60 -20
  24. package/dist/esm/apis/EnterpriseApi.js +60 -20
  25. package/dist/esm/apis/EventsApi.js +210 -70
  26. package/dist/esm/apis/FlowsApi.js +150 -50
  27. package/dist/esm/apis/ManagedApi.js +54 -18
  28. package/dist/esm/apis/Oauth2Api.js +72 -24
  29. package/dist/esm/apis/OutpostsApi.js +210 -70
  30. package/dist/esm/apis/PoliciesApi.js +366 -122
  31. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  32. package/dist/esm/apis/ProvidersApi.js +360 -120
  33. package/dist/esm/apis/RacApi.js +78 -26
  34. package/dist/esm/apis/RbacApi.js +102 -34
  35. package/dist/esm/apis/RootApi.js +6 -2
  36. package/dist/esm/apis/SchemaApi.js +6 -2
  37. package/dist/esm/apis/SourcesApi.js +414 -138
  38. package/dist/esm/apis/StagesApi.js +1002 -334
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +70 -30
  41. package/src/apis/AuthenticatorsApi.ts +434 -186
  42. package/src/apis/CoreApi.ts +434 -186
  43. package/src/apis/CryptoApi.ts +70 -30
  44. package/src/apis/EnterpriseApi.ts +70 -30
  45. package/src/apis/EventsApi.ts +245 -105
  46. package/src/apis/FlowsApi.ts +175 -75
  47. package/src/apis/ManagedApi.ts +63 -27
  48. package/src/apis/Oauth2Api.ts +84 -36
  49. package/src/apis/OutpostsApi.ts +245 -105
  50. package/src/apis/PoliciesApi.ts +427 -183
  51. package/src/apis/PropertymappingsApi.ts +336 -144
  52. package/src/apis/ProvidersApi.ts +420 -180
  53. package/src/apis/RacApi.ts +91 -39
  54. package/src/apis/RbacApi.ts +119 -51
  55. package/src/apis/RootApi.ts +7 -3
  56. package/src/apis/SchemaApi.ts +7 -3
  57. package/src/apis/SourcesApi.ts +483 -207
  58. package/src/apis/StagesApi.ts +1169 -501
@@ -36,8 +36,12 @@ export class ProvidersApi extends runtime.BaseAPI {
36
36
  }
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
- if (this.configuration && this.configuration.apiKey) {
40
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = yield token("authentik", []);
42
+ if (tokenString) {
43
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
44
+ }
41
45
  }
42
46
  const response = yield this.request({
43
47
  path: `/providers/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -81,8 +85,12 @@ export class ProvidersApi extends runtime.BaseAPI {
81
85
  queryParameters['search'] = requestParameters.search;
82
86
  }
83
87
  const headerParameters = {};
84
- if (this.configuration && this.configuration.apiKey) {
85
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("authentik", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
86
94
  }
87
95
  const response = yield this.request({
88
96
  path: `/providers/all/`,
@@ -112,8 +120,12 @@ export class ProvidersApi extends runtime.BaseAPI {
112
120
  }
113
121
  const queryParameters = {};
114
122
  const headerParameters = {};
115
- if (this.configuration && this.configuration.apiKey) {
116
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
123
+ if (this.configuration && this.configuration.accessToken) {
124
+ const token = this.configuration.accessToken;
125
+ const tokenString = yield token("authentik", []);
126
+ if (tokenString) {
127
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
128
+ }
117
129
  }
118
130
  const response = yield this.request({
119
131
  path: `/providers/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -140,8 +152,12 @@ export class ProvidersApi extends runtime.BaseAPI {
140
152
  return __awaiter(this, void 0, void 0, function* () {
141
153
  const queryParameters = {};
142
154
  const headerParameters = {};
143
- if (this.configuration && this.configuration.apiKey) {
144
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
155
+ if (this.configuration && this.configuration.accessToken) {
156
+ const token = this.configuration.accessToken;
157
+ const tokenString = yield token("authentik", []);
158
+ if (tokenString) {
159
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
160
+ }
145
161
  }
146
162
  const response = yield this.request({
147
163
  path: `/providers/all/types/`,
@@ -171,8 +187,12 @@ export class ProvidersApi extends runtime.BaseAPI {
171
187
  }
172
188
  const queryParameters = {};
173
189
  const headerParameters = {};
174
- if (this.configuration && this.configuration.apiKey) {
175
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
190
+ if (this.configuration && this.configuration.accessToken) {
191
+ const token = this.configuration.accessToken;
192
+ const tokenString = yield token("authentik", []);
193
+ if (tokenString) {
194
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
195
+ }
176
196
  }
177
197
  const response = yield this.request({
178
198
  path: `/providers/all/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -203,8 +223,12 @@ export class ProvidersApi extends runtime.BaseAPI {
203
223
  const queryParameters = {};
204
224
  const headerParameters = {};
205
225
  headerParameters['Content-Type'] = 'application/json';
206
- if (this.configuration && this.configuration.apiKey) {
207
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
226
+ if (this.configuration && this.configuration.accessToken) {
227
+ const token = this.configuration.accessToken;
228
+ const tokenString = yield token("authentik", []);
229
+ if (tokenString) {
230
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
231
+ }
208
232
  }
209
233
  const response = yield this.request({
210
234
  path: `/providers/ldap/`,
@@ -235,8 +259,12 @@ export class ProvidersApi extends runtime.BaseAPI {
235
259
  }
236
260
  const queryParameters = {};
237
261
  const headerParameters = {};
238
- if (this.configuration && this.configuration.apiKey) {
239
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
262
+ if (this.configuration && this.configuration.accessToken) {
263
+ const token = this.configuration.accessToken;
264
+ const tokenString = yield token("authentik", []);
265
+ if (tokenString) {
266
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
267
+ }
240
268
  }
241
269
  const response = yield this.request({
242
270
  path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -307,8 +335,12 @@ export class ProvidersApi extends runtime.BaseAPI {
307
335
  queryParameters['uid_start_number__iexact'] = requestParameters.uidStartNumberIexact;
308
336
  }
309
337
  const headerParameters = {};
310
- if (this.configuration && this.configuration.apiKey) {
311
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
338
+ if (this.configuration && this.configuration.accessToken) {
339
+ const token = this.configuration.accessToken;
340
+ const tokenString = yield token("authentik", []);
341
+ if (tokenString) {
342
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
343
+ }
312
344
  }
313
345
  const response = yield this.request({
314
346
  path: `/providers/ldap/`,
@@ -339,8 +371,12 @@ export class ProvidersApi extends runtime.BaseAPI {
339
371
  const queryParameters = {};
340
372
  const headerParameters = {};
341
373
  headerParameters['Content-Type'] = 'application/json';
342
- if (this.configuration && this.configuration.apiKey) {
343
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
374
+ if (this.configuration && this.configuration.accessToken) {
375
+ const token = this.configuration.accessToken;
376
+ const tokenString = yield token("authentik", []);
377
+ if (tokenString) {
378
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
379
+ }
344
380
  }
345
381
  const response = yield this.request({
346
382
  path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -371,8 +407,12 @@ export class ProvidersApi extends runtime.BaseAPI {
371
407
  }
372
408
  const queryParameters = {};
373
409
  const headerParameters = {};
374
- if (this.configuration && this.configuration.apiKey) {
375
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
410
+ if (this.configuration && this.configuration.accessToken) {
411
+ const token = this.configuration.accessToken;
412
+ const tokenString = yield token("authentik", []);
413
+ if (tokenString) {
414
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
415
+ }
376
416
  }
377
417
  const response = yield this.request({
378
418
  path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -406,8 +446,12 @@ export class ProvidersApi extends runtime.BaseAPI {
406
446
  const queryParameters = {};
407
447
  const headerParameters = {};
408
448
  headerParameters['Content-Type'] = 'application/json';
409
- if (this.configuration && this.configuration.apiKey) {
410
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
449
+ if (this.configuration && this.configuration.accessToken) {
450
+ const token = this.configuration.accessToken;
451
+ const tokenString = yield token("authentik", []);
452
+ if (tokenString) {
453
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
454
+ }
411
455
  }
412
456
  const response = yield this.request({
413
457
  path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -438,8 +482,12 @@ export class ProvidersApi extends runtime.BaseAPI {
438
482
  }
439
483
  const queryParameters = {};
440
484
  const headerParameters = {};
441
- if (this.configuration && this.configuration.apiKey) {
442
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
485
+ if (this.configuration && this.configuration.accessToken) {
486
+ const token = this.configuration.accessToken;
487
+ const tokenString = yield token("authentik", []);
488
+ if (tokenString) {
489
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
490
+ }
443
491
  }
444
492
  const response = yield this.request({
445
493
  path: `/providers/ldap/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -470,8 +518,12 @@ export class ProvidersApi extends runtime.BaseAPI {
470
518
  const queryParameters = {};
471
519
  const headerParameters = {};
472
520
  headerParameters['Content-Type'] = 'application/json';
473
- if (this.configuration && this.configuration.apiKey) {
474
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
521
+ if (this.configuration && this.configuration.accessToken) {
522
+ const token = this.configuration.accessToken;
523
+ const tokenString = yield token("authentik", []);
524
+ if (tokenString) {
525
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
526
+ }
475
527
  }
476
528
  const response = yield this.request({
477
529
  path: `/providers/oauth2/`,
@@ -502,8 +554,12 @@ export class ProvidersApi extends runtime.BaseAPI {
502
554
  }
503
555
  const queryParameters = {};
504
556
  const headerParameters = {};
505
- if (this.configuration && this.configuration.apiKey) {
506
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
557
+ if (this.configuration && this.configuration.accessToken) {
558
+ const token = this.configuration.accessToken;
559
+ const tokenString = yield token("authentik", []);
560
+ if (tokenString) {
561
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
562
+ }
507
563
  }
508
564
  const response = yield this.request({
509
565
  path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -583,8 +639,12 @@ export class ProvidersApi extends runtime.BaseAPI {
583
639
  queryParameters['sub_mode'] = requestParameters.subMode;
584
640
  }
585
641
  const headerParameters = {};
586
- if (this.configuration && this.configuration.apiKey) {
587
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
642
+ if (this.configuration && this.configuration.accessToken) {
643
+ const token = this.configuration.accessToken;
644
+ const tokenString = yield token("authentik", []);
645
+ if (tokenString) {
646
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
647
+ }
588
648
  }
589
649
  const response = yield this.request({
590
650
  path: `/providers/oauth2/`,
@@ -615,8 +675,12 @@ export class ProvidersApi extends runtime.BaseAPI {
615
675
  const queryParameters = {};
616
676
  const headerParameters = {};
617
677
  headerParameters['Content-Type'] = 'application/json';
618
- if (this.configuration && this.configuration.apiKey) {
619
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
678
+ if (this.configuration && this.configuration.accessToken) {
679
+ const token = this.configuration.accessToken;
680
+ const tokenString = yield token("authentik", []);
681
+ if (tokenString) {
682
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
683
+ }
620
684
  }
621
685
  const response = yield this.request({
622
686
  path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -650,8 +714,12 @@ export class ProvidersApi extends runtime.BaseAPI {
650
714
  queryParameters['for_user'] = requestParameters.forUser;
651
715
  }
652
716
  const headerParameters = {};
653
- if (this.configuration && this.configuration.apiKey) {
654
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
717
+ if (this.configuration && this.configuration.accessToken) {
718
+ const token = this.configuration.accessToken;
719
+ const tokenString = yield token("authentik", []);
720
+ if (tokenString) {
721
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
722
+ }
655
723
  }
656
724
  const response = yield this.request({
657
725
  path: `/providers/oauth2/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -681,8 +749,12 @@ export class ProvidersApi extends runtime.BaseAPI {
681
749
  }
682
750
  const queryParameters = {};
683
751
  const headerParameters = {};
684
- if (this.configuration && this.configuration.apiKey) {
685
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
752
+ if (this.configuration && this.configuration.accessToken) {
753
+ const token = this.configuration.accessToken;
754
+ const tokenString = yield token("authentik", []);
755
+ if (tokenString) {
756
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
757
+ }
686
758
  }
687
759
  const response = yield this.request({
688
760
  path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -712,8 +784,12 @@ export class ProvidersApi extends runtime.BaseAPI {
712
784
  }
713
785
  const queryParameters = {};
714
786
  const headerParameters = {};
715
- if (this.configuration && this.configuration.apiKey) {
716
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
787
+ if (this.configuration && this.configuration.accessToken) {
788
+ const token = this.configuration.accessToken;
789
+ const tokenString = yield token("authentik", []);
790
+ if (tokenString) {
791
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
792
+ }
717
793
  }
718
794
  const response = yield this.request({
719
795
  path: `/providers/oauth2/{id}/setup_urls/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -747,8 +823,12 @@ export class ProvidersApi extends runtime.BaseAPI {
747
823
  const queryParameters = {};
748
824
  const headerParameters = {};
749
825
  headerParameters['Content-Type'] = 'application/json';
750
- if (this.configuration && this.configuration.apiKey) {
751
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
826
+ if (this.configuration && this.configuration.accessToken) {
827
+ const token = this.configuration.accessToken;
828
+ const tokenString = yield token("authentik", []);
829
+ if (tokenString) {
830
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
831
+ }
752
832
  }
753
833
  const response = yield this.request({
754
834
  path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -779,8 +859,12 @@ export class ProvidersApi extends runtime.BaseAPI {
779
859
  }
780
860
  const queryParameters = {};
781
861
  const headerParameters = {};
782
- if (this.configuration && this.configuration.apiKey) {
783
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
862
+ if (this.configuration && this.configuration.accessToken) {
863
+ const token = this.configuration.accessToken;
864
+ const tokenString = yield token("authentik", []);
865
+ if (tokenString) {
866
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
867
+ }
784
868
  }
785
869
  const response = yield this.request({
786
870
  path: `/providers/oauth2/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -811,8 +895,12 @@ export class ProvidersApi extends runtime.BaseAPI {
811
895
  const queryParameters = {};
812
896
  const headerParameters = {};
813
897
  headerParameters['Content-Type'] = 'application/json';
814
- if (this.configuration && this.configuration.apiKey) {
815
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
898
+ if (this.configuration && this.configuration.accessToken) {
899
+ const token = this.configuration.accessToken;
900
+ const tokenString = yield token("authentik", []);
901
+ if (tokenString) {
902
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
903
+ }
816
904
  }
817
905
  const response = yield this.request({
818
906
  path: `/providers/proxy/`,
@@ -843,8 +931,12 @@ export class ProvidersApi extends runtime.BaseAPI {
843
931
  }
844
932
  const queryParameters = {};
845
933
  const headerParameters = {};
846
- if (this.configuration && this.configuration.apiKey) {
847
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
934
+ if (this.configuration && this.configuration.accessToken) {
935
+ const token = this.configuration.accessToken;
936
+ const tokenString = yield token("authentik", []);
937
+ if (tokenString) {
938
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
939
+ }
848
940
  }
849
941
  const response = yield this.request({
850
942
  path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -930,8 +1022,12 @@ export class ProvidersApi extends runtime.BaseAPI {
930
1022
  queryParameters['skip_path_regex__iexact'] = requestParameters.skipPathRegexIexact;
931
1023
  }
932
1024
  const headerParameters = {};
933
- if (this.configuration && this.configuration.apiKey) {
934
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1025
+ if (this.configuration && this.configuration.accessToken) {
1026
+ const token = this.configuration.accessToken;
1027
+ const tokenString = yield token("authentik", []);
1028
+ if (tokenString) {
1029
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1030
+ }
935
1031
  }
936
1032
  const response = yield this.request({
937
1033
  path: `/providers/proxy/`,
@@ -962,8 +1058,12 @@ export class ProvidersApi extends runtime.BaseAPI {
962
1058
  const queryParameters = {};
963
1059
  const headerParameters = {};
964
1060
  headerParameters['Content-Type'] = 'application/json';
965
- if (this.configuration && this.configuration.apiKey) {
966
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1061
+ if (this.configuration && this.configuration.accessToken) {
1062
+ const token = this.configuration.accessToken;
1063
+ const tokenString = yield token("authentik", []);
1064
+ if (tokenString) {
1065
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1066
+ }
967
1067
  }
968
1068
  const response = yield this.request({
969
1069
  path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -994,8 +1094,12 @@ export class ProvidersApi extends runtime.BaseAPI {
994
1094
  }
995
1095
  const queryParameters = {};
996
1096
  const headerParameters = {};
997
- if (this.configuration && this.configuration.apiKey) {
998
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1097
+ if (this.configuration && this.configuration.accessToken) {
1098
+ const token = this.configuration.accessToken;
1099
+ const tokenString = yield token("authentik", []);
1100
+ if (tokenString) {
1101
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1102
+ }
999
1103
  }
1000
1104
  const response = yield this.request({
1001
1105
  path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1029,8 +1133,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1029
1133
  const queryParameters = {};
1030
1134
  const headerParameters = {};
1031
1135
  headerParameters['Content-Type'] = 'application/json';
1032
- if (this.configuration && this.configuration.apiKey) {
1033
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1136
+ if (this.configuration && this.configuration.accessToken) {
1137
+ const token = this.configuration.accessToken;
1138
+ const tokenString = yield token("authentik", []);
1139
+ if (tokenString) {
1140
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1141
+ }
1034
1142
  }
1035
1143
  const response = yield this.request({
1036
1144
  path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1061,8 +1169,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1061
1169
  }
1062
1170
  const queryParameters = {};
1063
1171
  const headerParameters = {};
1064
- if (this.configuration && this.configuration.apiKey) {
1065
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1172
+ if (this.configuration && this.configuration.accessToken) {
1173
+ const token = this.configuration.accessToken;
1174
+ const tokenString = yield token("authentik", []);
1175
+ if (tokenString) {
1176
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1177
+ }
1066
1178
  }
1067
1179
  const response = yield this.request({
1068
1180
  path: `/providers/proxy/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1093,8 +1205,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1093
1205
  const queryParameters = {};
1094
1206
  const headerParameters = {};
1095
1207
  headerParameters['Content-Type'] = 'application/json';
1096
- if (this.configuration && this.configuration.apiKey) {
1097
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1208
+ if (this.configuration && this.configuration.accessToken) {
1209
+ const token = this.configuration.accessToken;
1210
+ const tokenString = yield token("authentik", []);
1211
+ if (tokenString) {
1212
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1213
+ }
1098
1214
  }
1099
1215
  const response = yield this.request({
1100
1216
  path: `/providers/rac/`,
@@ -1125,8 +1241,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1125
1241
  }
1126
1242
  const queryParameters = {};
1127
1243
  const headerParameters = {};
1128
- if (this.configuration && this.configuration.apiKey) {
1129
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1244
+ if (this.configuration && this.configuration.accessToken) {
1245
+ const token = this.configuration.accessToken;
1246
+ const tokenString = yield token("authentik", []);
1247
+ if (tokenString) {
1248
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1249
+ }
1130
1250
  }
1131
1251
  const response = yield this.request({
1132
1252
  path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1170,8 +1290,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1170
1290
  queryParameters['search'] = requestParameters.search;
1171
1291
  }
1172
1292
  const headerParameters = {};
1173
- if (this.configuration && this.configuration.apiKey) {
1174
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1293
+ if (this.configuration && this.configuration.accessToken) {
1294
+ const token = this.configuration.accessToken;
1295
+ const tokenString = yield token("authentik", []);
1296
+ if (tokenString) {
1297
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1298
+ }
1175
1299
  }
1176
1300
  const response = yield this.request({
1177
1301
  path: `/providers/rac/`,
@@ -1202,8 +1326,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1202
1326
  const queryParameters = {};
1203
1327
  const headerParameters = {};
1204
1328
  headerParameters['Content-Type'] = 'application/json';
1205
- if (this.configuration && this.configuration.apiKey) {
1206
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1329
+ if (this.configuration && this.configuration.accessToken) {
1330
+ const token = this.configuration.accessToken;
1331
+ const tokenString = yield token("authentik", []);
1332
+ if (tokenString) {
1333
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1334
+ }
1207
1335
  }
1208
1336
  const response = yield this.request({
1209
1337
  path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1234,8 +1362,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1234
1362
  }
1235
1363
  const queryParameters = {};
1236
1364
  const headerParameters = {};
1237
- if (this.configuration && this.configuration.apiKey) {
1238
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1365
+ if (this.configuration && this.configuration.accessToken) {
1366
+ const token = this.configuration.accessToken;
1367
+ const tokenString = yield token("authentik", []);
1368
+ if (tokenString) {
1369
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1370
+ }
1239
1371
  }
1240
1372
  const response = yield this.request({
1241
1373
  path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1269,8 +1401,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1269
1401
  const queryParameters = {};
1270
1402
  const headerParameters = {};
1271
1403
  headerParameters['Content-Type'] = 'application/json';
1272
- if (this.configuration && this.configuration.apiKey) {
1273
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1404
+ if (this.configuration && this.configuration.accessToken) {
1405
+ const token = this.configuration.accessToken;
1406
+ const tokenString = yield token("authentik", []);
1407
+ if (tokenString) {
1408
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1409
+ }
1274
1410
  }
1275
1411
  const response = yield this.request({
1276
1412
  path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1301,8 +1437,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1301
1437
  }
1302
1438
  const queryParameters = {};
1303
1439
  const headerParameters = {};
1304
- if (this.configuration && this.configuration.apiKey) {
1305
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1440
+ if (this.configuration && this.configuration.accessToken) {
1441
+ const token = this.configuration.accessToken;
1442
+ const tokenString = yield token("authentik", []);
1443
+ if (tokenString) {
1444
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1445
+ }
1306
1446
  }
1307
1447
  const response = yield this.request({
1308
1448
  path: `/providers/rac/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1333,8 +1473,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1333
1473
  const queryParameters = {};
1334
1474
  const headerParameters = {};
1335
1475
  headerParameters['Content-Type'] = 'application/json';
1336
- if (this.configuration && this.configuration.apiKey) {
1337
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1476
+ if (this.configuration && this.configuration.accessToken) {
1477
+ const token = this.configuration.accessToken;
1478
+ const tokenString = yield token("authentik", []);
1479
+ if (tokenString) {
1480
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1481
+ }
1338
1482
  }
1339
1483
  const response = yield this.request({
1340
1484
  path: `/providers/radius/`,
@@ -1365,8 +1509,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1365
1509
  }
1366
1510
  const queryParameters = {};
1367
1511
  const headerParameters = {};
1368
- if (this.configuration && this.configuration.apiKey) {
1369
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1512
+ if (this.configuration && this.configuration.accessToken) {
1513
+ const token = this.configuration.accessToken;
1514
+ const tokenString = yield token("authentik", []);
1515
+ if (tokenString) {
1516
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1517
+ }
1370
1518
  }
1371
1519
  const response = yield this.request({
1372
1520
  path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1416,8 +1564,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1416
1564
  queryParameters['search'] = requestParameters.search;
1417
1565
  }
1418
1566
  const headerParameters = {};
1419
- if (this.configuration && this.configuration.apiKey) {
1420
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1567
+ if (this.configuration && this.configuration.accessToken) {
1568
+ const token = this.configuration.accessToken;
1569
+ const tokenString = yield token("authentik", []);
1570
+ if (tokenString) {
1571
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1572
+ }
1421
1573
  }
1422
1574
  const response = yield this.request({
1423
1575
  path: `/providers/radius/`,
@@ -1448,8 +1600,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1448
1600
  const queryParameters = {};
1449
1601
  const headerParameters = {};
1450
1602
  headerParameters['Content-Type'] = 'application/json';
1451
- if (this.configuration && this.configuration.apiKey) {
1452
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1603
+ if (this.configuration && this.configuration.accessToken) {
1604
+ const token = this.configuration.accessToken;
1605
+ const tokenString = yield token("authentik", []);
1606
+ if (tokenString) {
1607
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1608
+ }
1453
1609
  }
1454
1610
  const response = yield this.request({
1455
1611
  path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1480,8 +1636,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1480
1636
  }
1481
1637
  const queryParameters = {};
1482
1638
  const headerParameters = {};
1483
- if (this.configuration && this.configuration.apiKey) {
1484
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1639
+ if (this.configuration && this.configuration.accessToken) {
1640
+ const token = this.configuration.accessToken;
1641
+ const tokenString = yield token("authentik", []);
1642
+ if (tokenString) {
1643
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1644
+ }
1485
1645
  }
1486
1646
  const response = yield this.request({
1487
1647
  path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1515,8 +1675,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1515
1675
  const queryParameters = {};
1516
1676
  const headerParameters = {};
1517
1677
  headerParameters['Content-Type'] = 'application/json';
1518
- if (this.configuration && this.configuration.apiKey) {
1519
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1678
+ if (this.configuration && this.configuration.accessToken) {
1679
+ const token = this.configuration.accessToken;
1680
+ const tokenString = yield token("authentik", []);
1681
+ if (tokenString) {
1682
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1683
+ }
1520
1684
  }
1521
1685
  const response = yield this.request({
1522
1686
  path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1547,8 +1711,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1547
1711
  }
1548
1712
  const queryParameters = {};
1549
1713
  const headerParameters = {};
1550
- if (this.configuration && this.configuration.apiKey) {
1551
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1714
+ if (this.configuration && this.configuration.accessToken) {
1715
+ const token = this.configuration.accessToken;
1716
+ const tokenString = yield token("authentik", []);
1717
+ if (tokenString) {
1718
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1719
+ }
1552
1720
  }
1553
1721
  const response = yield this.request({
1554
1722
  path: `/providers/radius/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1579,8 +1747,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1579
1747
  const queryParameters = {};
1580
1748
  const headerParameters = {};
1581
1749
  headerParameters['Content-Type'] = 'application/json';
1582
- if (this.configuration && this.configuration.apiKey) {
1583
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1750
+ if (this.configuration && this.configuration.accessToken) {
1751
+ const token = this.configuration.accessToken;
1752
+ const tokenString = yield token("authentik", []);
1753
+ if (tokenString) {
1754
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1755
+ }
1584
1756
  }
1585
1757
  const response = yield this.request({
1586
1758
  path: `/providers/saml/`,
@@ -1611,8 +1783,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1611
1783
  }
1612
1784
  const queryParameters = {};
1613
1785
  const headerParameters = {};
1614
- if (this.configuration && this.configuration.apiKey) {
1615
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1786
+ if (this.configuration && this.configuration.accessToken) {
1787
+ const token = this.configuration.accessToken;
1788
+ const tokenString = yield token("authentik", []);
1789
+ if (tokenString) {
1790
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1791
+ }
1616
1792
  }
1617
1793
  const response = yield this.request({
1618
1794
  path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1647,8 +1823,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1647
1823
  }
1648
1824
  const queryParameters = {};
1649
1825
  const headerParameters = {};
1650
- if (this.configuration && this.configuration.apiKey) {
1651
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1826
+ if (this.configuration && this.configuration.accessToken) {
1827
+ const token = this.configuration.accessToken;
1828
+ const tokenString = yield token("authentik", []);
1829
+ if (tokenString) {
1830
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1831
+ }
1652
1832
  }
1653
1833
  const consumes = [
1654
1834
  { contentType: 'multipart/form-data' },
@@ -1768,8 +1948,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1768
1948
  queryParameters['verification_kp'] = requestParameters.verificationKp;
1769
1949
  }
1770
1950
  const headerParameters = {};
1771
- if (this.configuration && this.configuration.apiKey) {
1772
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1951
+ if (this.configuration && this.configuration.accessToken) {
1952
+ const token = this.configuration.accessToken;
1953
+ const tokenString = yield token("authentik", []);
1954
+ if (tokenString) {
1955
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1956
+ }
1773
1957
  }
1774
1958
  const response = yield this.request({
1775
1959
  path: `/providers/saml/`,
@@ -1805,8 +1989,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1805
1989
  queryParameters['force_binding'] = requestParameters.forceBinding;
1806
1990
  }
1807
1991
  const headerParameters = {};
1808
- if (this.configuration && this.configuration.apiKey) {
1809
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1992
+ if (this.configuration && this.configuration.accessToken) {
1993
+ const token = this.configuration.accessToken;
1994
+ const tokenString = yield token("authentik", []);
1995
+ if (tokenString) {
1996
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1997
+ }
1810
1998
  }
1811
1999
  const response = yield this.request({
1812
2000
  path: `/providers/saml/{id}/metadata/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1837,8 +2025,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1837
2025
  const queryParameters = {};
1838
2026
  const headerParameters = {};
1839
2027
  headerParameters['Content-Type'] = 'application/json';
1840
- if (this.configuration && this.configuration.apiKey) {
1841
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2028
+ if (this.configuration && this.configuration.accessToken) {
2029
+ const token = this.configuration.accessToken;
2030
+ const tokenString = yield token("authentik", []);
2031
+ if (tokenString) {
2032
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2033
+ }
1842
2034
  }
1843
2035
  const response = yield this.request({
1844
2036
  path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1872,8 +2064,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1872
2064
  queryParameters['for_user'] = requestParameters.forUser;
1873
2065
  }
1874
2066
  const headerParameters = {};
1875
- if (this.configuration && this.configuration.apiKey) {
1876
- 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
+ }
1877
2073
  }
1878
2074
  const response = yield this.request({
1879
2075
  path: `/providers/saml/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1903,8 +2099,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1903
2099
  }
1904
2100
  const queryParameters = {};
1905
2101
  const headerParameters = {};
1906
- if (this.configuration && this.configuration.apiKey) {
1907
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2102
+ if (this.configuration && this.configuration.accessToken) {
2103
+ const token = this.configuration.accessToken;
2104
+ const tokenString = yield token("authentik", []);
2105
+ if (tokenString) {
2106
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2107
+ }
1908
2108
  }
1909
2109
  const response = yield this.request({
1910
2110
  path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1938,8 +2138,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1938
2138
  const queryParameters = {};
1939
2139
  const headerParameters = {};
1940
2140
  headerParameters['Content-Type'] = 'application/json';
1941
- if (this.configuration && this.configuration.apiKey) {
1942
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2141
+ if (this.configuration && this.configuration.accessToken) {
2142
+ const token = this.configuration.accessToken;
2143
+ const tokenString = yield token("authentik", []);
2144
+ if (tokenString) {
2145
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2146
+ }
1943
2147
  }
1944
2148
  const response = yield this.request({
1945
2149
  path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1970,8 +2174,12 @@ export class ProvidersApi extends runtime.BaseAPI {
1970
2174
  }
1971
2175
  const queryParameters = {};
1972
2176
  const headerParameters = {};
1973
- if (this.configuration && this.configuration.apiKey) {
1974
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2177
+ if (this.configuration && this.configuration.accessToken) {
2178
+ const token = this.configuration.accessToken;
2179
+ const tokenString = yield token("authentik", []);
2180
+ if (tokenString) {
2181
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2182
+ }
1975
2183
  }
1976
2184
  const response = yield this.request({
1977
2185
  path: `/providers/saml/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2002,8 +2210,12 @@ export class ProvidersApi extends runtime.BaseAPI {
2002
2210
  const queryParameters = {};
2003
2211
  const headerParameters = {};
2004
2212
  headerParameters['Content-Type'] = 'application/json';
2005
- if (this.configuration && this.configuration.apiKey) {
2006
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2213
+ if (this.configuration && this.configuration.accessToken) {
2214
+ const token = this.configuration.accessToken;
2215
+ const tokenString = yield token("authentik", []);
2216
+ if (tokenString) {
2217
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2218
+ }
2007
2219
  }
2008
2220
  const response = yield this.request({
2009
2221
  path: `/providers/scim/`,
@@ -2034,8 +2246,12 @@ export class ProvidersApi extends runtime.BaseAPI {
2034
2246
  }
2035
2247
  const queryParameters = {};
2036
2248
  const headerParameters = {};
2037
- if (this.configuration && this.configuration.apiKey) {
2038
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2249
+ if (this.configuration && this.configuration.accessToken) {
2250
+ const token = this.configuration.accessToken;
2251
+ const tokenString = yield token("authentik", []);
2252
+ if (tokenString) {
2253
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2254
+ }
2039
2255
  }
2040
2256
  const response = yield this.request({
2041
2257
  path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2085,8 +2301,12 @@ export class ProvidersApi extends runtime.BaseAPI {
2085
2301
  queryParameters['url'] = requestParameters.url;
2086
2302
  }
2087
2303
  const headerParameters = {};
2088
- if (this.configuration && this.configuration.apiKey) {
2089
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2304
+ if (this.configuration && this.configuration.accessToken) {
2305
+ const token = this.configuration.accessToken;
2306
+ const tokenString = yield token("authentik", []);
2307
+ if (tokenString) {
2308
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2309
+ }
2090
2310
  }
2091
2311
  const response = yield this.request({
2092
2312
  path: `/providers/scim/`,
@@ -2117,8 +2337,12 @@ export class ProvidersApi extends runtime.BaseAPI {
2117
2337
  const queryParameters = {};
2118
2338
  const headerParameters = {};
2119
2339
  headerParameters['Content-Type'] = 'application/json';
2120
- if (this.configuration && this.configuration.apiKey) {
2121
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2340
+ if (this.configuration && this.configuration.accessToken) {
2341
+ const token = this.configuration.accessToken;
2342
+ const tokenString = yield token("authentik", []);
2343
+ if (tokenString) {
2344
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2345
+ }
2122
2346
  }
2123
2347
  const response = yield this.request({
2124
2348
  path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2149,8 +2373,12 @@ export class ProvidersApi extends runtime.BaseAPI {
2149
2373
  }
2150
2374
  const queryParameters = {};
2151
2375
  const headerParameters = {};
2152
- if (this.configuration && this.configuration.apiKey) {
2153
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2376
+ if (this.configuration && this.configuration.accessToken) {
2377
+ const token = this.configuration.accessToken;
2378
+ const tokenString = yield token("authentik", []);
2379
+ if (tokenString) {
2380
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2381
+ }
2154
2382
  }
2155
2383
  const response = yield this.request({
2156
2384
  path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2180,8 +2408,12 @@ export class ProvidersApi extends runtime.BaseAPI {
2180
2408
  }
2181
2409
  const queryParameters = {};
2182
2410
  const headerParameters = {};
2183
- if (this.configuration && this.configuration.apiKey) {
2184
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2411
+ if (this.configuration && this.configuration.accessToken) {
2412
+ const token = this.configuration.accessToken;
2413
+ const tokenString = yield token("authentik", []);
2414
+ if (tokenString) {
2415
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2416
+ }
2185
2417
  }
2186
2418
  const response = yield this.request({
2187
2419
  path: `/providers/scim/{id}/sync_status/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2215,8 +2447,12 @@ export class ProvidersApi extends runtime.BaseAPI {
2215
2447
  const queryParameters = {};
2216
2448
  const headerParameters = {};
2217
2449
  headerParameters['Content-Type'] = 'application/json';
2218
- if (this.configuration && this.configuration.apiKey) {
2219
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2450
+ if (this.configuration && this.configuration.accessToken) {
2451
+ const token = this.configuration.accessToken;
2452
+ const tokenString = yield token("authentik", []);
2453
+ if (tokenString) {
2454
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2455
+ }
2220
2456
  }
2221
2457
  const response = yield this.request({
2222
2458
  path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2247,8 +2483,12 @@ export class ProvidersApi extends runtime.BaseAPI {
2247
2483
  }
2248
2484
  const queryParameters = {};
2249
2485
  const headerParameters = {};
2250
- if (this.configuration && this.configuration.apiKey) {
2251
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2486
+ if (this.configuration && this.configuration.accessToken) {
2487
+ const token = this.configuration.accessToken;
2488
+ const tokenString = yield token("authentik", []);
2489
+ if (tokenString) {
2490
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2491
+ }
2252
2492
  }
2253
2493
  const response = yield this.request({
2254
2494
  path: `/providers/scim/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),