@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1713180481

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/dist/apis/AdminApi.js +60 -20
  3. package/dist/apis/AuthenticatorsApi.js +372 -124
  4. package/dist/apis/CoreApi.d.ts +2 -0
  5. package/dist/apis/CoreApi.js +378 -124
  6. package/dist/apis/CryptoApi.js +60 -20
  7. package/dist/apis/EnterpriseApi.js +60 -20
  8. package/dist/apis/EventsApi.js +210 -70
  9. package/dist/apis/FlowsApi.js +150 -50
  10. package/dist/apis/ManagedApi.js +54 -18
  11. package/dist/apis/Oauth2Api.js +72 -24
  12. package/dist/apis/OutpostsApi.js +210 -70
  13. package/dist/apis/PoliciesApi.js +366 -122
  14. package/dist/apis/PropertymappingsApi.js +288 -96
  15. package/dist/apis/ProvidersApi.js +360 -120
  16. package/dist/apis/RacApi.js +78 -26
  17. package/dist/apis/RbacApi.js +102 -34
  18. package/dist/apis/RootApi.js +6 -2
  19. package/dist/apis/SchemaApi.js +6 -2
  20. package/dist/apis/SourcesApi.js +414 -138
  21. package/dist/apis/StagesApi.js +1002 -334
  22. package/dist/esm/apis/AdminApi.js +60 -20
  23. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  24. package/dist/esm/apis/CoreApi.d.ts +2 -0
  25. package/dist/esm/apis/CoreApi.js +378 -124
  26. package/dist/esm/apis/CryptoApi.js +60 -20
  27. package/dist/esm/apis/EnterpriseApi.js +60 -20
  28. package/dist/esm/apis/EventsApi.js +210 -70
  29. package/dist/esm/apis/FlowsApi.js +150 -50
  30. package/dist/esm/apis/ManagedApi.js +54 -18
  31. package/dist/esm/apis/Oauth2Api.js +72 -24
  32. package/dist/esm/apis/OutpostsApi.js +210 -70
  33. package/dist/esm/apis/PoliciesApi.js +366 -122
  34. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  35. package/dist/esm/apis/ProvidersApi.js +360 -120
  36. package/dist/esm/apis/RacApi.js +78 -26
  37. package/dist/esm/apis/RbacApi.js +102 -34
  38. package/dist/esm/apis/RootApi.js +6 -2
  39. package/dist/esm/apis/SchemaApi.js +6 -2
  40. package/dist/esm/apis/SourcesApi.js +414 -138
  41. package/dist/esm/apis/StagesApi.js +1002 -334
  42. package/dist/esm/models/index.d.ts +0 -1
  43. package/dist/esm/models/index.js +0 -1
  44. package/dist/models/index.d.ts +0 -1
  45. package/dist/models/index.js +0 -1
  46. package/package.json +1 -1
  47. package/src/apis/AdminApi.ts +70 -30
  48. package/src/apis/AuthenticatorsApi.ts +434 -186
  49. package/src/apis/CoreApi.ts +444 -186
  50. package/src/apis/CryptoApi.ts +70 -30
  51. package/src/apis/EnterpriseApi.ts +70 -30
  52. package/src/apis/EventsApi.ts +245 -105
  53. package/src/apis/FlowsApi.ts +175 -75
  54. package/src/apis/ManagedApi.ts +63 -27
  55. package/src/apis/Oauth2Api.ts +84 -36
  56. package/src/apis/OutpostsApi.ts +245 -105
  57. package/src/apis/PoliciesApi.ts +427 -183
  58. package/src/apis/PropertymappingsApi.ts +336 -144
  59. package/src/apis/ProvidersApi.ts +420 -180
  60. package/src/apis/RacApi.ts +91 -39
  61. package/src/apis/RbacApi.ts +119 -51
  62. package/src/apis/RootApi.ts +7 -3
  63. package/src/apis/SchemaApi.ts +7 -3
  64. package/src/apis/SourcesApi.ts +483 -207
  65. package/src/apis/StagesApi.ts +1169 -501
  66. package/src/models/index.ts +0 -1
  67. package/dist/esm/models/UserGroupRequest.d.ts +0 -51
  68. package/dist/esm/models/UserGroupRequest.js +0 -50
  69. package/dist/models/UserGroupRequest.d.ts +0 -51
  70. package/dist/models/UserGroupRequest.js +0 -57
  71. package/src/models/UserGroupRequest.ts +0 -90
@@ -39,8 +39,12 @@ class StagesApi extends runtime.BaseAPI {
39
39
  }
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
- if (this.configuration && this.configuration.apiKey) {
43
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
42
+ if (this.configuration && this.configuration.accessToken) {
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = yield token("authentik", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
44
48
  }
45
49
  const response = yield this.request({
46
50
  path: `/stages/all/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -81,8 +85,12 @@ class StagesApi 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: `/stages/all/`,
@@ -112,8 +120,12 @@ class StagesApi 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: `/stages/all/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -140,8 +152,12 @@ class StagesApi 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: `/stages/all/types/`,
@@ -171,8 +187,12 @@ class StagesApi 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: `/stages/all/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -199,8 +219,12 @@ class StagesApi extends runtime.BaseAPI {
199
219
  return __awaiter(this, void 0, void 0, function* () {
200
220
  const queryParameters = {};
201
221
  const headerParameters = {};
202
- if (this.configuration && this.configuration.apiKey) {
203
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
222
+ if (this.configuration && this.configuration.accessToken) {
223
+ const token = this.configuration.accessToken;
224
+ const tokenString = yield token("authentik", []);
225
+ if (tokenString) {
226
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
227
+ }
204
228
  }
205
229
  const response = yield this.request({
206
230
  path: `/stages/all/user_settings/`,
@@ -231,8 +255,12 @@ class StagesApi extends runtime.BaseAPI {
231
255
  const queryParameters = {};
232
256
  const headerParameters = {};
233
257
  headerParameters['Content-Type'] = 'application/json';
234
- if (this.configuration && this.configuration.apiKey) {
235
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
258
+ if (this.configuration && this.configuration.accessToken) {
259
+ const token = this.configuration.accessToken;
260
+ const tokenString = yield token("authentik", []);
261
+ if (tokenString) {
262
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
263
+ }
236
264
  }
237
265
  const response = yield this.request({
238
266
  path: `/stages/authenticator/duo/`,
@@ -263,8 +291,12 @@ class StagesApi extends runtime.BaseAPI {
263
291
  }
264
292
  const queryParameters = {};
265
293
  const headerParameters = {};
266
- if (this.configuration && this.configuration.apiKey) {
267
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
294
+ if (this.configuration && this.configuration.accessToken) {
295
+ const token = this.configuration.accessToken;
296
+ const tokenString = yield token("authentik", []);
297
+ if (tokenString) {
298
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
299
+ }
268
300
  }
269
301
  const response = yield this.request({
270
302
  path: `/stages/authenticator/duo/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -293,8 +325,12 @@ class StagesApi extends runtime.BaseAPI {
293
325
  }
294
326
  const queryParameters = {};
295
327
  const headerParameters = {};
296
- if (this.configuration && this.configuration.apiKey) {
297
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
328
+ if (this.configuration && this.configuration.accessToken) {
329
+ const token = this.configuration.accessToken;
330
+ const tokenString = yield token("authentik", []);
331
+ if (tokenString) {
332
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
333
+ }
298
334
  }
299
335
  const response = yield this.request({
300
336
  path: `/stages/authenticator/duo/{stage_uuid}/enrollment_status/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -328,8 +364,12 @@ class StagesApi extends runtime.BaseAPI {
328
364
  const queryParameters = {};
329
365
  const headerParameters = {};
330
366
  headerParameters['Content-Type'] = 'application/json';
331
- if (this.configuration && this.configuration.apiKey) {
332
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
367
+ if (this.configuration && this.configuration.accessToken) {
368
+ const token = this.configuration.accessToken;
369
+ const tokenString = yield token("authentik", []);
370
+ if (tokenString) {
371
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
372
+ }
333
373
  }
334
374
  const response = yield this.request({
335
375
  path: `/stages/authenticator/duo/{stage_uuid}/import_device_manual/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -359,8 +399,12 @@ class StagesApi extends runtime.BaseAPI {
359
399
  }
360
400
  const queryParameters = {};
361
401
  const headerParameters = {};
362
- if (this.configuration && this.configuration.apiKey) {
363
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
402
+ if (this.configuration && this.configuration.accessToken) {
403
+ const token = this.configuration.accessToken;
404
+ const tokenString = yield token("authentik", []);
405
+ if (tokenString) {
406
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
407
+ }
364
408
  }
365
409
  const response = yield this.request({
366
410
  path: `/stages/authenticator/duo/{stage_uuid}/import_devices_automatic/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -411,8 +455,12 @@ class StagesApi extends runtime.BaseAPI {
411
455
  queryParameters['search'] = requestParameters.search;
412
456
  }
413
457
  const headerParameters = {};
414
- if (this.configuration && this.configuration.apiKey) {
415
- 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
+ }
416
464
  }
417
465
  const response = yield this.request({
418
466
  path: `/stages/authenticator/duo/`,
@@ -443,8 +491,12 @@ class StagesApi extends runtime.BaseAPI {
443
491
  const queryParameters = {};
444
492
  const headerParameters = {};
445
493
  headerParameters['Content-Type'] = 'application/json';
446
- if (this.configuration && this.configuration.apiKey) {
447
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
494
+ if (this.configuration && this.configuration.accessToken) {
495
+ const token = this.configuration.accessToken;
496
+ const tokenString = yield token("authentik", []);
497
+ if (tokenString) {
498
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
499
+ }
448
500
  }
449
501
  const response = yield this.request({
450
502
  path: `/stages/authenticator/duo/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -475,8 +527,12 @@ class StagesApi extends runtime.BaseAPI {
475
527
  }
476
528
  const queryParameters = {};
477
529
  const headerParameters = {};
478
- if (this.configuration && this.configuration.apiKey) {
479
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
530
+ if (this.configuration && this.configuration.accessToken) {
531
+ const token = this.configuration.accessToken;
532
+ const tokenString = yield token("authentik", []);
533
+ if (tokenString) {
534
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
535
+ }
480
536
  }
481
537
  const response = yield this.request({
482
538
  path: `/stages/authenticator/duo/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -510,8 +566,12 @@ class StagesApi extends runtime.BaseAPI {
510
566
  const queryParameters = {};
511
567
  const headerParameters = {};
512
568
  headerParameters['Content-Type'] = 'application/json';
513
- if (this.configuration && this.configuration.apiKey) {
514
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
569
+ if (this.configuration && this.configuration.accessToken) {
570
+ const token = this.configuration.accessToken;
571
+ const tokenString = yield token("authentik", []);
572
+ if (tokenString) {
573
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
574
+ }
515
575
  }
516
576
  const response = yield this.request({
517
577
  path: `/stages/authenticator/duo/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -542,8 +602,12 @@ class StagesApi extends runtime.BaseAPI {
542
602
  }
543
603
  const queryParameters = {};
544
604
  const headerParameters = {};
545
- if (this.configuration && this.configuration.apiKey) {
546
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
605
+ if (this.configuration && this.configuration.accessToken) {
606
+ const token = this.configuration.accessToken;
607
+ const tokenString = yield token("authentik", []);
608
+ if (tokenString) {
609
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
610
+ }
547
611
  }
548
612
  const response = yield this.request({
549
613
  path: `/stages/authenticator/duo/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -574,8 +638,12 @@ class StagesApi extends runtime.BaseAPI {
574
638
  const queryParameters = {};
575
639
  const headerParameters = {};
576
640
  headerParameters['Content-Type'] = 'application/json';
577
- if (this.configuration && this.configuration.apiKey) {
578
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
641
+ if (this.configuration && this.configuration.accessToken) {
642
+ const token = this.configuration.accessToken;
643
+ const tokenString = yield token("authentik", []);
644
+ if (tokenString) {
645
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
646
+ }
579
647
  }
580
648
  const response = yield this.request({
581
649
  path: `/stages/authenticator/sms/`,
@@ -606,8 +674,12 @@ class StagesApi extends runtime.BaseAPI {
606
674
  }
607
675
  const queryParameters = {};
608
676
  const headerParameters = {};
609
- if (this.configuration && this.configuration.apiKey) {
610
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
677
+ if (this.configuration && this.configuration.accessToken) {
678
+ const token = this.configuration.accessToken;
679
+ const tokenString = yield token("authentik", []);
680
+ if (tokenString) {
681
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
682
+ }
611
683
  }
612
684
  const response = yield this.request({
613
685
  path: `/stages/authenticator/sms/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -681,8 +753,12 @@ class StagesApi extends runtime.BaseAPI {
681
753
  queryParameters['verify_only'] = requestParameters.verifyOnly;
682
754
  }
683
755
  const headerParameters = {};
684
- if (this.configuration && this.configuration.apiKey) {
685
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
756
+ if (this.configuration && this.configuration.accessToken) {
757
+ const token = this.configuration.accessToken;
758
+ const tokenString = yield token("authentik", []);
759
+ if (tokenString) {
760
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
761
+ }
686
762
  }
687
763
  const response = yield this.request({
688
764
  path: `/stages/authenticator/sms/`,
@@ -713,8 +789,12 @@ class StagesApi extends runtime.BaseAPI {
713
789
  const queryParameters = {};
714
790
  const headerParameters = {};
715
791
  headerParameters['Content-Type'] = 'application/json';
716
- if (this.configuration && this.configuration.apiKey) {
717
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
792
+ if (this.configuration && this.configuration.accessToken) {
793
+ const token = this.configuration.accessToken;
794
+ const tokenString = yield token("authentik", []);
795
+ if (tokenString) {
796
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
797
+ }
718
798
  }
719
799
  const response = yield this.request({
720
800
  path: `/stages/authenticator/sms/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -745,8 +825,12 @@ class StagesApi extends runtime.BaseAPI {
745
825
  }
746
826
  const queryParameters = {};
747
827
  const headerParameters = {};
748
- if (this.configuration && this.configuration.apiKey) {
749
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
828
+ if (this.configuration && this.configuration.accessToken) {
829
+ const token = this.configuration.accessToken;
830
+ const tokenString = yield token("authentik", []);
831
+ if (tokenString) {
832
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
833
+ }
750
834
  }
751
835
  const response = yield this.request({
752
836
  path: `/stages/authenticator/sms/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -780,8 +864,12 @@ class StagesApi extends runtime.BaseAPI {
780
864
  const queryParameters = {};
781
865
  const headerParameters = {};
782
866
  headerParameters['Content-Type'] = 'application/json';
783
- if (this.configuration && this.configuration.apiKey) {
784
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
867
+ if (this.configuration && this.configuration.accessToken) {
868
+ const token = this.configuration.accessToken;
869
+ const tokenString = yield token("authentik", []);
870
+ if (tokenString) {
871
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
872
+ }
785
873
  }
786
874
  const response = yield this.request({
787
875
  path: `/stages/authenticator/sms/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -812,8 +900,12 @@ class StagesApi extends runtime.BaseAPI {
812
900
  }
813
901
  const queryParameters = {};
814
902
  const headerParameters = {};
815
- if (this.configuration && this.configuration.apiKey) {
816
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
903
+ if (this.configuration && this.configuration.accessToken) {
904
+ const token = this.configuration.accessToken;
905
+ const tokenString = yield token("authentik", []);
906
+ if (tokenString) {
907
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
908
+ }
817
909
  }
818
910
  const response = yield this.request({
819
911
  path: `/stages/authenticator/sms/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -844,8 +936,12 @@ class StagesApi extends runtime.BaseAPI {
844
936
  const queryParameters = {};
845
937
  const headerParameters = {};
846
938
  headerParameters['Content-Type'] = 'application/json';
847
- if (this.configuration && this.configuration.apiKey) {
848
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
939
+ if (this.configuration && this.configuration.accessToken) {
940
+ const token = this.configuration.accessToken;
941
+ const tokenString = yield token("authentik", []);
942
+ if (tokenString) {
943
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
944
+ }
849
945
  }
850
946
  const response = yield this.request({
851
947
  path: `/stages/authenticator/static/`,
@@ -876,8 +972,12 @@ class StagesApi extends runtime.BaseAPI {
876
972
  }
877
973
  const queryParameters = {};
878
974
  const headerParameters = {};
879
- if (this.configuration && this.configuration.apiKey) {
880
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
975
+ if (this.configuration && this.configuration.accessToken) {
976
+ const token = this.configuration.accessToken;
977
+ const tokenString = yield token("authentik", []);
978
+ if (tokenString) {
979
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
980
+ }
881
981
  }
882
982
  const response = yield this.request({
883
983
  path: `/stages/authenticator/static/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -933,8 +1033,12 @@ class StagesApi extends runtime.BaseAPI {
933
1033
  queryParameters['token_length'] = requestParameters.tokenLength;
934
1034
  }
935
1035
  const headerParameters = {};
936
- if (this.configuration && this.configuration.apiKey) {
937
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1036
+ if (this.configuration && this.configuration.accessToken) {
1037
+ const token = this.configuration.accessToken;
1038
+ const tokenString = yield token("authentik", []);
1039
+ if (tokenString) {
1040
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1041
+ }
938
1042
  }
939
1043
  const response = yield this.request({
940
1044
  path: `/stages/authenticator/static/`,
@@ -965,8 +1069,12 @@ class StagesApi extends runtime.BaseAPI {
965
1069
  const queryParameters = {};
966
1070
  const headerParameters = {};
967
1071
  headerParameters['Content-Type'] = 'application/json';
968
- if (this.configuration && this.configuration.apiKey) {
969
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1072
+ if (this.configuration && this.configuration.accessToken) {
1073
+ const token = this.configuration.accessToken;
1074
+ const tokenString = yield token("authentik", []);
1075
+ if (tokenString) {
1076
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1077
+ }
970
1078
  }
971
1079
  const response = yield this.request({
972
1080
  path: `/stages/authenticator/static/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -997,8 +1105,12 @@ class StagesApi extends runtime.BaseAPI {
997
1105
  }
998
1106
  const queryParameters = {};
999
1107
  const headerParameters = {};
1000
- if (this.configuration && this.configuration.apiKey) {
1001
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1108
+ if (this.configuration && this.configuration.accessToken) {
1109
+ const token = this.configuration.accessToken;
1110
+ const tokenString = yield token("authentik", []);
1111
+ if (tokenString) {
1112
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1113
+ }
1002
1114
  }
1003
1115
  const response = yield this.request({
1004
1116
  path: `/stages/authenticator/static/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1032,8 +1144,12 @@ class StagesApi extends runtime.BaseAPI {
1032
1144
  const queryParameters = {};
1033
1145
  const headerParameters = {};
1034
1146
  headerParameters['Content-Type'] = 'application/json';
1035
- if (this.configuration && this.configuration.apiKey) {
1036
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1147
+ if (this.configuration && this.configuration.accessToken) {
1148
+ const token = this.configuration.accessToken;
1149
+ const tokenString = yield token("authentik", []);
1150
+ if (tokenString) {
1151
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1152
+ }
1037
1153
  }
1038
1154
  const response = yield this.request({
1039
1155
  path: `/stages/authenticator/static/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1064,8 +1180,12 @@ class StagesApi extends runtime.BaseAPI {
1064
1180
  }
1065
1181
  const queryParameters = {};
1066
1182
  const headerParameters = {};
1067
- if (this.configuration && this.configuration.apiKey) {
1068
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1183
+ if (this.configuration && this.configuration.accessToken) {
1184
+ const token = this.configuration.accessToken;
1185
+ const tokenString = yield token("authentik", []);
1186
+ if (tokenString) {
1187
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1188
+ }
1069
1189
  }
1070
1190
  const response = yield this.request({
1071
1191
  path: `/stages/authenticator/static/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1096,8 +1216,12 @@ class StagesApi extends runtime.BaseAPI {
1096
1216
  const queryParameters = {};
1097
1217
  const headerParameters = {};
1098
1218
  headerParameters['Content-Type'] = 'application/json';
1099
- if (this.configuration && this.configuration.apiKey) {
1100
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1219
+ if (this.configuration && this.configuration.accessToken) {
1220
+ const token = this.configuration.accessToken;
1221
+ const tokenString = yield token("authentik", []);
1222
+ if (tokenString) {
1223
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1224
+ }
1101
1225
  }
1102
1226
  const response = yield this.request({
1103
1227
  path: `/stages/authenticator/totp/`,
@@ -1128,8 +1252,12 @@ class StagesApi extends runtime.BaseAPI {
1128
1252
  }
1129
1253
  const queryParameters = {};
1130
1254
  const headerParameters = {};
1131
- if (this.configuration && this.configuration.apiKey) {
1132
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1255
+ if (this.configuration && this.configuration.accessToken) {
1256
+ const token = this.configuration.accessToken;
1257
+ const tokenString = yield token("authentik", []);
1258
+ if (tokenString) {
1259
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1260
+ }
1133
1261
  }
1134
1262
  const response = yield this.request({
1135
1263
  path: `/stages/authenticator/totp/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1182,8 +1310,12 @@ class StagesApi extends runtime.BaseAPI {
1182
1310
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
1183
1311
  }
1184
1312
  const headerParameters = {};
1185
- if (this.configuration && this.configuration.apiKey) {
1186
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1313
+ if (this.configuration && this.configuration.accessToken) {
1314
+ const token = this.configuration.accessToken;
1315
+ const tokenString = yield token("authentik", []);
1316
+ if (tokenString) {
1317
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1318
+ }
1187
1319
  }
1188
1320
  const response = yield this.request({
1189
1321
  path: `/stages/authenticator/totp/`,
@@ -1214,8 +1346,12 @@ class StagesApi extends runtime.BaseAPI {
1214
1346
  const queryParameters = {};
1215
1347
  const headerParameters = {};
1216
1348
  headerParameters['Content-Type'] = 'application/json';
1217
- if (this.configuration && this.configuration.apiKey) {
1218
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1349
+ if (this.configuration && this.configuration.accessToken) {
1350
+ const token = this.configuration.accessToken;
1351
+ const tokenString = yield token("authentik", []);
1352
+ if (tokenString) {
1353
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1354
+ }
1219
1355
  }
1220
1356
  const response = yield this.request({
1221
1357
  path: `/stages/authenticator/totp/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1246,8 +1382,12 @@ class StagesApi extends runtime.BaseAPI {
1246
1382
  }
1247
1383
  const queryParameters = {};
1248
1384
  const headerParameters = {};
1249
- if (this.configuration && this.configuration.apiKey) {
1250
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1385
+ if (this.configuration && this.configuration.accessToken) {
1386
+ const token = this.configuration.accessToken;
1387
+ const tokenString = yield token("authentik", []);
1388
+ if (tokenString) {
1389
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1390
+ }
1251
1391
  }
1252
1392
  const response = yield this.request({
1253
1393
  path: `/stages/authenticator/totp/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1281,8 +1421,12 @@ class StagesApi extends runtime.BaseAPI {
1281
1421
  const queryParameters = {};
1282
1422
  const headerParameters = {};
1283
1423
  headerParameters['Content-Type'] = 'application/json';
1284
- if (this.configuration && this.configuration.apiKey) {
1285
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1424
+ if (this.configuration && this.configuration.accessToken) {
1425
+ const token = this.configuration.accessToken;
1426
+ const tokenString = yield token("authentik", []);
1427
+ if (tokenString) {
1428
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1429
+ }
1286
1430
  }
1287
1431
  const response = yield this.request({
1288
1432
  path: `/stages/authenticator/totp/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1313,8 +1457,12 @@ class StagesApi extends runtime.BaseAPI {
1313
1457
  }
1314
1458
  const queryParameters = {};
1315
1459
  const headerParameters = {};
1316
- if (this.configuration && this.configuration.apiKey) {
1317
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1460
+ if (this.configuration && this.configuration.accessToken) {
1461
+ const token = this.configuration.accessToken;
1462
+ const tokenString = yield token("authentik", []);
1463
+ if (tokenString) {
1464
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1465
+ }
1318
1466
  }
1319
1467
  const response = yield this.request({
1320
1468
  path: `/stages/authenticator/totp/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1345,8 +1493,12 @@ class StagesApi extends runtime.BaseAPI {
1345
1493
  const queryParameters = {};
1346
1494
  const headerParameters = {};
1347
1495
  headerParameters['Content-Type'] = 'application/json';
1348
- if (this.configuration && this.configuration.apiKey) {
1349
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1496
+ if (this.configuration && this.configuration.accessToken) {
1497
+ const token = this.configuration.accessToken;
1498
+ const tokenString = yield token("authentik", []);
1499
+ if (tokenString) {
1500
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1501
+ }
1350
1502
  }
1351
1503
  const response = yield this.request({
1352
1504
  path: `/stages/authenticator/validate/`,
@@ -1377,8 +1529,12 @@ class StagesApi extends runtime.BaseAPI {
1377
1529
  }
1378
1530
  const queryParameters = {};
1379
1531
  const headerParameters = {};
1380
- if (this.configuration && this.configuration.apiKey) {
1381
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1532
+ if (this.configuration && this.configuration.accessToken) {
1533
+ const token = this.configuration.accessToken;
1534
+ const tokenString = yield token("authentik", []);
1535
+ if (tokenString) {
1536
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1537
+ }
1382
1538
  }
1383
1539
  const response = yield this.request({
1384
1540
  path: `/stages/authenticator/validate/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1425,8 +1581,12 @@ class StagesApi extends runtime.BaseAPI {
1425
1581
  queryParameters['search'] = requestParameters.search;
1426
1582
  }
1427
1583
  const headerParameters = {};
1428
- if (this.configuration && this.configuration.apiKey) {
1429
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1584
+ if (this.configuration && this.configuration.accessToken) {
1585
+ const token = this.configuration.accessToken;
1586
+ const tokenString = yield token("authentik", []);
1587
+ if (tokenString) {
1588
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1589
+ }
1430
1590
  }
1431
1591
  const response = yield this.request({
1432
1592
  path: `/stages/authenticator/validate/`,
@@ -1457,8 +1617,12 @@ class StagesApi extends runtime.BaseAPI {
1457
1617
  const queryParameters = {};
1458
1618
  const headerParameters = {};
1459
1619
  headerParameters['Content-Type'] = 'application/json';
1460
- if (this.configuration && this.configuration.apiKey) {
1461
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1620
+ if (this.configuration && this.configuration.accessToken) {
1621
+ const token = this.configuration.accessToken;
1622
+ const tokenString = yield token("authentik", []);
1623
+ if (tokenString) {
1624
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1625
+ }
1462
1626
  }
1463
1627
  const response = yield this.request({
1464
1628
  path: `/stages/authenticator/validate/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1489,8 +1653,12 @@ class StagesApi extends runtime.BaseAPI {
1489
1653
  }
1490
1654
  const queryParameters = {};
1491
1655
  const headerParameters = {};
1492
- if (this.configuration && this.configuration.apiKey) {
1493
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1656
+ if (this.configuration && this.configuration.accessToken) {
1657
+ const token = this.configuration.accessToken;
1658
+ const tokenString = yield token("authentik", []);
1659
+ if (tokenString) {
1660
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1661
+ }
1494
1662
  }
1495
1663
  const response = yield this.request({
1496
1664
  path: `/stages/authenticator/validate/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1524,8 +1692,12 @@ class StagesApi extends runtime.BaseAPI {
1524
1692
  const queryParameters = {};
1525
1693
  const headerParameters = {};
1526
1694
  headerParameters['Content-Type'] = 'application/json';
1527
- if (this.configuration && this.configuration.apiKey) {
1528
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1695
+ if (this.configuration && this.configuration.accessToken) {
1696
+ const token = this.configuration.accessToken;
1697
+ const tokenString = yield token("authentik", []);
1698
+ if (tokenString) {
1699
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1700
+ }
1529
1701
  }
1530
1702
  const response = yield this.request({
1531
1703
  path: `/stages/authenticator/validate/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1556,8 +1728,12 @@ class StagesApi extends runtime.BaseAPI {
1556
1728
  }
1557
1729
  const queryParameters = {};
1558
1730
  const headerParameters = {};
1559
- if (this.configuration && this.configuration.apiKey) {
1560
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1731
+ if (this.configuration && this.configuration.accessToken) {
1732
+ const token = this.configuration.accessToken;
1733
+ const tokenString = yield token("authentik", []);
1734
+ if (tokenString) {
1735
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1736
+ }
1561
1737
  }
1562
1738
  const response = yield this.request({
1563
1739
  path: `/stages/authenticator/validate/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1588,8 +1764,12 @@ class StagesApi extends runtime.BaseAPI {
1588
1764
  const queryParameters = {};
1589
1765
  const headerParameters = {};
1590
1766
  headerParameters['Content-Type'] = 'application/json';
1591
- if (this.configuration && this.configuration.apiKey) {
1592
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1767
+ if (this.configuration && this.configuration.accessToken) {
1768
+ const token = this.configuration.accessToken;
1769
+ const tokenString = yield token("authentik", []);
1770
+ if (tokenString) {
1771
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1772
+ }
1593
1773
  }
1594
1774
  const response = yield this.request({
1595
1775
  path: `/stages/authenticator/webauthn/`,
@@ -1620,8 +1800,12 @@ class StagesApi extends runtime.BaseAPI {
1620
1800
  }
1621
1801
  const queryParameters = {};
1622
1802
  const headerParameters = {};
1623
- if (this.configuration && this.configuration.apiKey) {
1624
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1803
+ if (this.configuration && this.configuration.accessToken) {
1804
+ const token = this.configuration.accessToken;
1805
+ const tokenString = yield token("authentik", []);
1806
+ if (tokenString) {
1807
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1808
+ }
1625
1809
  }
1626
1810
  const response = yield this.request({
1627
1811
  path: `/stages/authenticator/webauthn/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1668,8 +1852,12 @@ class StagesApi extends runtime.BaseAPI {
1668
1852
  queryParameters['search'] = requestParameters.search;
1669
1853
  }
1670
1854
  const headerParameters = {};
1671
- if (this.configuration && this.configuration.apiKey) {
1672
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1855
+ if (this.configuration && this.configuration.accessToken) {
1856
+ const token = this.configuration.accessToken;
1857
+ const tokenString = yield token("authentik", []);
1858
+ if (tokenString) {
1859
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1860
+ }
1673
1861
  }
1674
1862
  const response = yield this.request({
1675
1863
  path: `/stages/authenticator/webauthn_device_types/`,
@@ -1699,8 +1887,12 @@ class StagesApi extends runtime.BaseAPI {
1699
1887
  }
1700
1888
  const queryParameters = {};
1701
1889
  const headerParameters = {};
1702
- if (this.configuration && this.configuration.apiKey) {
1703
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1890
+ if (this.configuration && this.configuration.accessToken) {
1891
+ const token = this.configuration.accessToken;
1892
+ const tokenString = yield token("authentik", []);
1893
+ if (tokenString) {
1894
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1895
+ }
1704
1896
  }
1705
1897
  const response = yield this.request({
1706
1898
  path: `/stages/authenticator/webauthn_device_types/{aaguid}/`.replace(`{${"aaguid"}}`, encodeURIComponent(String(requestParameters.aaguid))),
@@ -1763,8 +1955,12 @@ class StagesApi extends runtime.BaseAPI {
1763
1955
  queryParameters['user_verification'] = requestParameters.userVerification;
1764
1956
  }
1765
1957
  const headerParameters = {};
1766
- if (this.configuration && this.configuration.apiKey) {
1767
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1958
+ if (this.configuration && this.configuration.accessToken) {
1959
+ const token = this.configuration.accessToken;
1960
+ const tokenString = yield token("authentik", []);
1961
+ if (tokenString) {
1962
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1963
+ }
1768
1964
  }
1769
1965
  const response = yield this.request({
1770
1966
  path: `/stages/authenticator/webauthn/`,
@@ -1795,8 +1991,12 @@ class StagesApi extends runtime.BaseAPI {
1795
1991
  const queryParameters = {};
1796
1992
  const headerParameters = {};
1797
1993
  headerParameters['Content-Type'] = 'application/json';
1798
- if (this.configuration && this.configuration.apiKey) {
1799
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1994
+ if (this.configuration && this.configuration.accessToken) {
1995
+ const token = this.configuration.accessToken;
1996
+ const tokenString = yield token("authentik", []);
1997
+ if (tokenString) {
1998
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1999
+ }
1800
2000
  }
1801
2001
  const response = yield this.request({
1802
2002
  path: `/stages/authenticator/webauthn/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1827,8 +2027,12 @@ class StagesApi extends runtime.BaseAPI {
1827
2027
  }
1828
2028
  const queryParameters = {};
1829
2029
  const headerParameters = {};
1830
- if (this.configuration && this.configuration.apiKey) {
1831
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2030
+ if (this.configuration && this.configuration.accessToken) {
2031
+ const token = this.configuration.accessToken;
2032
+ const tokenString = yield token("authentik", []);
2033
+ if (tokenString) {
2034
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2035
+ }
1832
2036
  }
1833
2037
  const response = yield this.request({
1834
2038
  path: `/stages/authenticator/webauthn/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1862,8 +2066,12 @@ class StagesApi extends runtime.BaseAPI {
1862
2066
  const queryParameters = {};
1863
2067
  const headerParameters = {};
1864
2068
  headerParameters['Content-Type'] = 'application/json';
1865
- if (this.configuration && this.configuration.apiKey) {
1866
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2069
+ if (this.configuration && this.configuration.accessToken) {
2070
+ const token = this.configuration.accessToken;
2071
+ const tokenString = yield token("authentik", []);
2072
+ if (tokenString) {
2073
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2074
+ }
1867
2075
  }
1868
2076
  const response = yield this.request({
1869
2077
  path: `/stages/authenticator/webauthn/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1894,8 +2102,12 @@ class StagesApi extends runtime.BaseAPI {
1894
2102
  }
1895
2103
  const queryParameters = {};
1896
2104
  const headerParameters = {};
1897
- if (this.configuration && this.configuration.apiKey) {
1898
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2105
+ if (this.configuration && this.configuration.accessToken) {
2106
+ const token = this.configuration.accessToken;
2107
+ const tokenString = yield token("authentik", []);
2108
+ if (tokenString) {
2109
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2110
+ }
1899
2111
  }
1900
2112
  const response = yield this.request({
1901
2113
  path: `/stages/authenticator/webauthn/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1926,8 +2138,12 @@ class StagesApi extends runtime.BaseAPI {
1926
2138
  const queryParameters = {};
1927
2139
  const headerParameters = {};
1928
2140
  headerParameters['Content-Type'] = 'application/json';
1929
- if (this.configuration && this.configuration.apiKey) {
1930
- 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
+ }
1931
2147
  }
1932
2148
  const response = yield this.request({
1933
2149
  path: `/stages/captcha/`,
@@ -1958,8 +2174,12 @@ class StagesApi extends runtime.BaseAPI {
1958
2174
  }
1959
2175
  const queryParameters = {};
1960
2176
  const headerParameters = {};
1961
- if (this.configuration && this.configuration.apiKey) {
1962
- 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
+ }
1963
2183
  }
1964
2184
  const response = yield this.request({
1965
2185
  path: `/stages/captcha/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2003,8 +2223,12 @@ class StagesApi extends runtime.BaseAPI {
2003
2223
  queryParameters['search'] = requestParameters.search;
2004
2224
  }
2005
2225
  const headerParameters = {};
2006
- if (this.configuration && this.configuration.apiKey) {
2007
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2226
+ if (this.configuration && this.configuration.accessToken) {
2227
+ const token = this.configuration.accessToken;
2228
+ const tokenString = yield token("authentik", []);
2229
+ if (tokenString) {
2230
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2231
+ }
2008
2232
  }
2009
2233
  const response = yield this.request({
2010
2234
  path: `/stages/captcha/`,
@@ -2035,8 +2259,12 @@ class StagesApi extends runtime.BaseAPI {
2035
2259
  const queryParameters = {};
2036
2260
  const headerParameters = {};
2037
2261
  headerParameters['Content-Type'] = 'application/json';
2038
- if (this.configuration && this.configuration.apiKey) {
2039
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2262
+ if (this.configuration && this.configuration.accessToken) {
2263
+ const token = this.configuration.accessToken;
2264
+ const tokenString = yield token("authentik", []);
2265
+ if (tokenString) {
2266
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2267
+ }
2040
2268
  }
2041
2269
  const response = yield this.request({
2042
2270
  path: `/stages/captcha/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2067,8 +2295,12 @@ class StagesApi extends runtime.BaseAPI {
2067
2295
  }
2068
2296
  const queryParameters = {};
2069
2297
  const headerParameters = {};
2070
- if (this.configuration && this.configuration.apiKey) {
2071
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2298
+ if (this.configuration && this.configuration.accessToken) {
2299
+ const token = this.configuration.accessToken;
2300
+ const tokenString = yield token("authentik", []);
2301
+ if (tokenString) {
2302
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2303
+ }
2072
2304
  }
2073
2305
  const response = yield this.request({
2074
2306
  path: `/stages/captcha/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2102,8 +2334,12 @@ class StagesApi extends runtime.BaseAPI {
2102
2334
  const queryParameters = {};
2103
2335
  const headerParameters = {};
2104
2336
  headerParameters['Content-Type'] = 'application/json';
2105
- if (this.configuration && this.configuration.apiKey) {
2106
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2337
+ if (this.configuration && this.configuration.accessToken) {
2338
+ const token = this.configuration.accessToken;
2339
+ const tokenString = yield token("authentik", []);
2340
+ if (tokenString) {
2341
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2342
+ }
2107
2343
  }
2108
2344
  const response = yield this.request({
2109
2345
  path: `/stages/captcha/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2134,8 +2370,12 @@ class StagesApi extends runtime.BaseAPI {
2134
2370
  }
2135
2371
  const queryParameters = {};
2136
2372
  const headerParameters = {};
2137
- if (this.configuration && this.configuration.apiKey) {
2138
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2373
+ if (this.configuration && this.configuration.accessToken) {
2374
+ const token = this.configuration.accessToken;
2375
+ const tokenString = yield token("authentik", []);
2376
+ if (tokenString) {
2377
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2378
+ }
2139
2379
  }
2140
2380
  const response = yield this.request({
2141
2381
  path: `/stages/captcha/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2166,8 +2406,12 @@ class StagesApi extends runtime.BaseAPI {
2166
2406
  const queryParameters = {};
2167
2407
  const headerParameters = {};
2168
2408
  headerParameters['Content-Type'] = 'application/json';
2169
- if (this.configuration && this.configuration.apiKey) {
2170
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2409
+ if (this.configuration && this.configuration.accessToken) {
2410
+ const token = this.configuration.accessToken;
2411
+ const tokenString = yield token("authentik", []);
2412
+ if (tokenString) {
2413
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2414
+ }
2171
2415
  }
2172
2416
  const response = yield this.request({
2173
2417
  path: `/stages/consent/`,
@@ -2198,8 +2442,12 @@ class StagesApi extends runtime.BaseAPI {
2198
2442
  }
2199
2443
  const queryParameters = {};
2200
2444
  const headerParameters = {};
2201
- if (this.configuration && this.configuration.apiKey) {
2202
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2445
+ if (this.configuration && this.configuration.accessToken) {
2446
+ const token = this.configuration.accessToken;
2447
+ const tokenString = yield token("authentik", []);
2448
+ if (tokenString) {
2449
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2450
+ }
2203
2451
  }
2204
2452
  const response = yield this.request({
2205
2453
  path: `/stages/consent/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2249,8 +2497,12 @@ class StagesApi extends runtime.BaseAPI {
2249
2497
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
2250
2498
  }
2251
2499
  const headerParameters = {};
2252
- if (this.configuration && this.configuration.apiKey) {
2253
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2500
+ if (this.configuration && this.configuration.accessToken) {
2501
+ const token = this.configuration.accessToken;
2502
+ const tokenString = yield token("authentik", []);
2503
+ if (tokenString) {
2504
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2505
+ }
2254
2506
  }
2255
2507
  const response = yield this.request({
2256
2508
  path: `/stages/consent/`,
@@ -2281,8 +2533,12 @@ class StagesApi extends runtime.BaseAPI {
2281
2533
  const queryParameters = {};
2282
2534
  const headerParameters = {};
2283
2535
  headerParameters['Content-Type'] = 'application/json';
2284
- if (this.configuration && this.configuration.apiKey) {
2285
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2536
+ if (this.configuration && this.configuration.accessToken) {
2537
+ const token = this.configuration.accessToken;
2538
+ const tokenString = yield token("authentik", []);
2539
+ if (tokenString) {
2540
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2541
+ }
2286
2542
  }
2287
2543
  const response = yield this.request({
2288
2544
  path: `/stages/consent/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2313,8 +2569,12 @@ class StagesApi extends runtime.BaseAPI {
2313
2569
  }
2314
2570
  const queryParameters = {};
2315
2571
  const headerParameters = {};
2316
- if (this.configuration && this.configuration.apiKey) {
2317
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2572
+ if (this.configuration && this.configuration.accessToken) {
2573
+ const token = this.configuration.accessToken;
2574
+ const tokenString = yield token("authentik", []);
2575
+ if (tokenString) {
2576
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2577
+ }
2318
2578
  }
2319
2579
  const response = yield this.request({
2320
2580
  path: `/stages/consent/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2348,8 +2608,12 @@ class StagesApi extends runtime.BaseAPI {
2348
2608
  const queryParameters = {};
2349
2609
  const headerParameters = {};
2350
2610
  headerParameters['Content-Type'] = 'application/json';
2351
- if (this.configuration && this.configuration.apiKey) {
2352
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2611
+ if (this.configuration && this.configuration.accessToken) {
2612
+ const token = this.configuration.accessToken;
2613
+ const tokenString = yield token("authentik", []);
2614
+ if (tokenString) {
2615
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2616
+ }
2353
2617
  }
2354
2618
  const response = yield this.request({
2355
2619
  path: `/stages/consent/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2380,8 +2644,12 @@ class StagesApi extends runtime.BaseAPI {
2380
2644
  }
2381
2645
  const queryParameters = {};
2382
2646
  const headerParameters = {};
2383
- if (this.configuration && this.configuration.apiKey) {
2384
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2647
+ if (this.configuration && this.configuration.accessToken) {
2648
+ const token = this.configuration.accessToken;
2649
+ const tokenString = yield token("authentik", []);
2650
+ if (tokenString) {
2651
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2652
+ }
2385
2653
  }
2386
2654
  const response = yield this.request({
2387
2655
  path: `/stages/consent/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2412,8 +2680,12 @@ class StagesApi extends runtime.BaseAPI {
2412
2680
  const queryParameters = {};
2413
2681
  const headerParameters = {};
2414
2682
  headerParameters['Content-Type'] = 'application/json';
2415
- if (this.configuration && this.configuration.apiKey) {
2416
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2683
+ if (this.configuration && this.configuration.accessToken) {
2684
+ const token = this.configuration.accessToken;
2685
+ const tokenString = yield token("authentik", []);
2686
+ if (tokenString) {
2687
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2688
+ }
2417
2689
  }
2418
2690
  const response = yield this.request({
2419
2691
  path: `/stages/deny/`,
@@ -2444,8 +2716,12 @@ class StagesApi extends runtime.BaseAPI {
2444
2716
  }
2445
2717
  const queryParameters = {};
2446
2718
  const headerParameters = {};
2447
- if (this.configuration && this.configuration.apiKey) {
2448
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2719
+ if (this.configuration && this.configuration.accessToken) {
2720
+ const token = this.configuration.accessToken;
2721
+ const tokenString = yield token("authentik", []);
2722
+ if (tokenString) {
2723
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2724
+ }
2449
2725
  }
2450
2726
  const response = yield this.request({
2451
2727
  path: `/stages/deny/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2492,8 +2768,12 @@ class StagesApi extends runtime.BaseAPI {
2492
2768
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
2493
2769
  }
2494
2770
  const headerParameters = {};
2495
- if (this.configuration && this.configuration.apiKey) {
2496
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2771
+ if (this.configuration && this.configuration.accessToken) {
2772
+ const token = this.configuration.accessToken;
2773
+ const tokenString = yield token("authentik", []);
2774
+ if (tokenString) {
2775
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2776
+ }
2497
2777
  }
2498
2778
  const response = yield this.request({
2499
2779
  path: `/stages/deny/`,
@@ -2524,8 +2804,12 @@ class StagesApi extends runtime.BaseAPI {
2524
2804
  const queryParameters = {};
2525
2805
  const headerParameters = {};
2526
2806
  headerParameters['Content-Type'] = 'application/json';
2527
- if (this.configuration && this.configuration.apiKey) {
2528
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2807
+ if (this.configuration && this.configuration.accessToken) {
2808
+ const token = this.configuration.accessToken;
2809
+ const tokenString = yield token("authentik", []);
2810
+ if (tokenString) {
2811
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2812
+ }
2529
2813
  }
2530
2814
  const response = yield this.request({
2531
2815
  path: `/stages/deny/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2556,8 +2840,12 @@ class StagesApi extends runtime.BaseAPI {
2556
2840
  }
2557
2841
  const queryParameters = {};
2558
2842
  const headerParameters = {};
2559
- if (this.configuration && this.configuration.apiKey) {
2560
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2843
+ if (this.configuration && this.configuration.accessToken) {
2844
+ const token = this.configuration.accessToken;
2845
+ const tokenString = yield token("authentik", []);
2846
+ if (tokenString) {
2847
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2848
+ }
2561
2849
  }
2562
2850
  const response = yield this.request({
2563
2851
  path: `/stages/deny/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2591,8 +2879,12 @@ class StagesApi extends runtime.BaseAPI {
2591
2879
  const queryParameters = {};
2592
2880
  const headerParameters = {};
2593
2881
  headerParameters['Content-Type'] = 'application/json';
2594
- if (this.configuration && this.configuration.apiKey) {
2595
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2882
+ if (this.configuration && this.configuration.accessToken) {
2883
+ const token = this.configuration.accessToken;
2884
+ const tokenString = yield token("authentik", []);
2885
+ if (tokenString) {
2886
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2887
+ }
2596
2888
  }
2597
2889
  const response = yield this.request({
2598
2890
  path: `/stages/deny/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2623,8 +2915,12 @@ class StagesApi extends runtime.BaseAPI {
2623
2915
  }
2624
2916
  const queryParameters = {};
2625
2917
  const headerParameters = {};
2626
- if (this.configuration && this.configuration.apiKey) {
2627
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2918
+ if (this.configuration && this.configuration.accessToken) {
2919
+ const token = this.configuration.accessToken;
2920
+ const tokenString = yield token("authentik", []);
2921
+ if (tokenString) {
2922
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2923
+ }
2628
2924
  }
2629
2925
  const response = yield this.request({
2630
2926
  path: `/stages/deny/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2655,8 +2951,12 @@ class StagesApi extends runtime.BaseAPI {
2655
2951
  const queryParameters = {};
2656
2952
  const headerParameters = {};
2657
2953
  headerParameters['Content-Type'] = 'application/json';
2658
- if (this.configuration && this.configuration.apiKey) {
2659
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2954
+ if (this.configuration && this.configuration.accessToken) {
2955
+ const token = this.configuration.accessToken;
2956
+ const tokenString = yield token("authentik", []);
2957
+ if (tokenString) {
2958
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2959
+ }
2660
2960
  }
2661
2961
  const response = yield this.request({
2662
2962
  path: `/stages/dummy/`,
@@ -2687,8 +2987,12 @@ class StagesApi extends runtime.BaseAPI {
2687
2987
  }
2688
2988
  const queryParameters = {};
2689
2989
  const headerParameters = {};
2690
- if (this.configuration && this.configuration.apiKey) {
2691
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2990
+ if (this.configuration && this.configuration.accessToken) {
2991
+ const token = this.configuration.accessToken;
2992
+ const tokenString = yield token("authentik", []);
2993
+ if (tokenString) {
2994
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2995
+ }
2692
2996
  }
2693
2997
  const response = yield this.request({
2694
2998
  path: `/stages/dummy/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2735,8 +3039,12 @@ class StagesApi extends runtime.BaseAPI {
2735
3039
  queryParameters['throw_error'] = requestParameters.throwError;
2736
3040
  }
2737
3041
  const headerParameters = {};
2738
- if (this.configuration && this.configuration.apiKey) {
2739
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3042
+ if (this.configuration && this.configuration.accessToken) {
3043
+ const token = this.configuration.accessToken;
3044
+ const tokenString = yield token("authentik", []);
3045
+ if (tokenString) {
3046
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3047
+ }
2740
3048
  }
2741
3049
  const response = yield this.request({
2742
3050
  path: `/stages/dummy/`,
@@ -2767,8 +3075,12 @@ class StagesApi extends runtime.BaseAPI {
2767
3075
  const queryParameters = {};
2768
3076
  const headerParameters = {};
2769
3077
  headerParameters['Content-Type'] = 'application/json';
2770
- if (this.configuration && this.configuration.apiKey) {
2771
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3078
+ if (this.configuration && this.configuration.accessToken) {
3079
+ const token = this.configuration.accessToken;
3080
+ const tokenString = yield token("authentik", []);
3081
+ if (tokenString) {
3082
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3083
+ }
2772
3084
  }
2773
3085
  const response = yield this.request({
2774
3086
  path: `/stages/dummy/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2799,8 +3111,12 @@ class StagesApi extends runtime.BaseAPI {
2799
3111
  }
2800
3112
  const queryParameters = {};
2801
3113
  const headerParameters = {};
2802
- if (this.configuration && this.configuration.apiKey) {
2803
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3114
+ if (this.configuration && this.configuration.accessToken) {
3115
+ const token = this.configuration.accessToken;
3116
+ const tokenString = yield token("authentik", []);
3117
+ if (tokenString) {
3118
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3119
+ }
2804
3120
  }
2805
3121
  const response = yield this.request({
2806
3122
  path: `/stages/dummy/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2834,8 +3150,12 @@ class StagesApi extends runtime.BaseAPI {
2834
3150
  const queryParameters = {};
2835
3151
  const headerParameters = {};
2836
3152
  headerParameters['Content-Type'] = 'application/json';
2837
- if (this.configuration && this.configuration.apiKey) {
2838
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3153
+ if (this.configuration && this.configuration.accessToken) {
3154
+ const token = this.configuration.accessToken;
3155
+ const tokenString = yield token("authentik", []);
3156
+ if (tokenString) {
3157
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3158
+ }
2839
3159
  }
2840
3160
  const response = yield this.request({
2841
3161
  path: `/stages/dummy/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2866,8 +3186,12 @@ class StagesApi extends runtime.BaseAPI {
2866
3186
  }
2867
3187
  const queryParameters = {};
2868
3188
  const headerParameters = {};
2869
- if (this.configuration && this.configuration.apiKey) {
2870
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3189
+ if (this.configuration && this.configuration.accessToken) {
3190
+ const token = this.configuration.accessToken;
3191
+ const tokenString = yield token("authentik", []);
3192
+ if (tokenString) {
3193
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3194
+ }
2871
3195
  }
2872
3196
  const response = yield this.request({
2873
3197
  path: `/stages/dummy/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2898,8 +3222,12 @@ class StagesApi extends runtime.BaseAPI {
2898
3222
  const queryParameters = {};
2899
3223
  const headerParameters = {};
2900
3224
  headerParameters['Content-Type'] = 'application/json';
2901
- if (this.configuration && this.configuration.apiKey) {
2902
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3225
+ if (this.configuration && this.configuration.accessToken) {
3226
+ const token = this.configuration.accessToken;
3227
+ const tokenString = yield token("authentik", []);
3228
+ if (tokenString) {
3229
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3230
+ }
2903
3231
  }
2904
3232
  const response = yield this.request({
2905
3233
  path: `/stages/email/`,
@@ -2930,8 +3258,12 @@ class StagesApi extends runtime.BaseAPI {
2930
3258
  }
2931
3259
  const queryParameters = {};
2932
3260
  const headerParameters = {};
2933
- if (this.configuration && this.configuration.apiKey) {
2934
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3261
+ if (this.configuration && this.configuration.accessToken) {
3262
+ const token = this.configuration.accessToken;
3263
+ const tokenString = yield token("authentik", []);
3264
+ if (tokenString) {
3265
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3266
+ }
2935
3267
  }
2936
3268
  const response = yield this.request({
2937
3269
  path: `/stages/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3008,8 +3340,12 @@ class StagesApi extends runtime.BaseAPI {
3008
3340
  queryParameters['username'] = requestParameters.username;
3009
3341
  }
3010
3342
  const headerParameters = {};
3011
- if (this.configuration && this.configuration.apiKey) {
3012
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3343
+ if (this.configuration && this.configuration.accessToken) {
3344
+ const token = this.configuration.accessToken;
3345
+ const tokenString = yield token("authentik", []);
3346
+ if (tokenString) {
3347
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3348
+ }
3013
3349
  }
3014
3350
  const response = yield this.request({
3015
3351
  path: `/stages/email/`,
@@ -3040,8 +3376,12 @@ class StagesApi extends runtime.BaseAPI {
3040
3376
  const queryParameters = {};
3041
3377
  const headerParameters = {};
3042
3378
  headerParameters['Content-Type'] = 'application/json';
3043
- if (this.configuration && this.configuration.apiKey) {
3044
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3379
+ if (this.configuration && this.configuration.accessToken) {
3380
+ const token = this.configuration.accessToken;
3381
+ const tokenString = yield token("authentik", []);
3382
+ if (tokenString) {
3383
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3384
+ }
3045
3385
  }
3046
3386
  const response = yield this.request({
3047
3387
  path: `/stages/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3072,8 +3412,12 @@ class StagesApi extends runtime.BaseAPI {
3072
3412
  }
3073
3413
  const queryParameters = {};
3074
3414
  const headerParameters = {};
3075
- if (this.configuration && this.configuration.apiKey) {
3076
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3415
+ if (this.configuration && this.configuration.accessToken) {
3416
+ const token = this.configuration.accessToken;
3417
+ const tokenString = yield token("authentik", []);
3418
+ if (tokenString) {
3419
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3420
+ }
3077
3421
  }
3078
3422
  const response = yield this.request({
3079
3423
  path: `/stages/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3100,8 +3444,12 @@ class StagesApi extends runtime.BaseAPI {
3100
3444
  return __awaiter(this, void 0, void 0, function* () {
3101
3445
  const queryParameters = {};
3102
3446
  const headerParameters = {};
3103
- if (this.configuration && this.configuration.apiKey) {
3104
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3447
+ if (this.configuration && this.configuration.accessToken) {
3448
+ const token = this.configuration.accessToken;
3449
+ const tokenString = yield token("authentik", []);
3450
+ if (tokenString) {
3451
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3452
+ }
3105
3453
  }
3106
3454
  const response = yield this.request({
3107
3455
  path: `/stages/email/templates/`,
@@ -3135,8 +3483,12 @@ class StagesApi extends runtime.BaseAPI {
3135
3483
  const queryParameters = {};
3136
3484
  const headerParameters = {};
3137
3485
  headerParameters['Content-Type'] = 'application/json';
3138
- if (this.configuration && this.configuration.apiKey) {
3139
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3486
+ if (this.configuration && this.configuration.accessToken) {
3487
+ const token = this.configuration.accessToken;
3488
+ const tokenString = yield token("authentik", []);
3489
+ if (tokenString) {
3490
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3491
+ }
3140
3492
  }
3141
3493
  const response = yield this.request({
3142
3494
  path: `/stages/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3167,8 +3519,12 @@ class StagesApi extends runtime.BaseAPI {
3167
3519
  }
3168
3520
  const queryParameters = {};
3169
3521
  const headerParameters = {};
3170
- if (this.configuration && this.configuration.apiKey) {
3171
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3522
+ if (this.configuration && this.configuration.accessToken) {
3523
+ const token = this.configuration.accessToken;
3524
+ const tokenString = yield token("authentik", []);
3525
+ if (tokenString) {
3526
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3527
+ }
3172
3528
  }
3173
3529
  const response = yield this.request({
3174
3530
  path: `/stages/email/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3199,8 +3555,12 @@ class StagesApi extends runtime.BaseAPI {
3199
3555
  const queryParameters = {};
3200
3556
  const headerParameters = {};
3201
3557
  headerParameters['Content-Type'] = 'application/json';
3202
- if (this.configuration && this.configuration.apiKey) {
3203
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3558
+ if (this.configuration && this.configuration.accessToken) {
3559
+ const token = this.configuration.accessToken;
3560
+ const tokenString = yield token("authentik", []);
3561
+ if (tokenString) {
3562
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3563
+ }
3204
3564
  }
3205
3565
  const response = yield this.request({
3206
3566
  path: `/stages/identification/`,
@@ -3231,8 +3591,12 @@ class StagesApi extends runtime.BaseAPI {
3231
3591
  }
3232
3592
  const queryParameters = {};
3233
3593
  const headerParameters = {};
3234
- if (this.configuration && this.configuration.apiKey) {
3235
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3594
+ if (this.configuration && this.configuration.accessToken) {
3595
+ const token = this.configuration.accessToken;
3596
+ const tokenString = yield token("authentik", []);
3597
+ if (tokenString) {
3598
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3599
+ }
3236
3600
  }
3237
3601
  const response = yield this.request({
3238
3602
  path: `/stages/identification/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3294,8 +3658,12 @@ class StagesApi extends runtime.BaseAPI {
3294
3658
  queryParameters['show_source_labels'] = requestParameters.showSourceLabels;
3295
3659
  }
3296
3660
  const headerParameters = {};
3297
- if (this.configuration && this.configuration.apiKey) {
3298
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3661
+ if (this.configuration && this.configuration.accessToken) {
3662
+ const token = this.configuration.accessToken;
3663
+ const tokenString = yield token("authentik", []);
3664
+ if (tokenString) {
3665
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3666
+ }
3299
3667
  }
3300
3668
  const response = yield this.request({
3301
3669
  path: `/stages/identification/`,
@@ -3326,8 +3694,12 @@ class StagesApi extends runtime.BaseAPI {
3326
3694
  const queryParameters = {};
3327
3695
  const headerParameters = {};
3328
3696
  headerParameters['Content-Type'] = 'application/json';
3329
- if (this.configuration && this.configuration.apiKey) {
3330
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3697
+ if (this.configuration && this.configuration.accessToken) {
3698
+ const token = this.configuration.accessToken;
3699
+ const tokenString = yield token("authentik", []);
3700
+ if (tokenString) {
3701
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3702
+ }
3331
3703
  }
3332
3704
  const response = yield this.request({
3333
3705
  path: `/stages/identification/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3358,8 +3730,12 @@ class StagesApi extends runtime.BaseAPI {
3358
3730
  }
3359
3731
  const queryParameters = {};
3360
3732
  const headerParameters = {};
3361
- if (this.configuration && this.configuration.apiKey) {
3362
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3733
+ if (this.configuration && this.configuration.accessToken) {
3734
+ const token = this.configuration.accessToken;
3735
+ const tokenString = yield token("authentik", []);
3736
+ if (tokenString) {
3737
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3738
+ }
3363
3739
  }
3364
3740
  const response = yield this.request({
3365
3741
  path: `/stages/identification/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3393,8 +3769,12 @@ class StagesApi extends runtime.BaseAPI {
3393
3769
  const queryParameters = {};
3394
3770
  const headerParameters = {};
3395
3771
  headerParameters['Content-Type'] = 'application/json';
3396
- if (this.configuration && this.configuration.apiKey) {
3397
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3772
+ if (this.configuration && this.configuration.accessToken) {
3773
+ const token = this.configuration.accessToken;
3774
+ const tokenString = yield token("authentik", []);
3775
+ if (tokenString) {
3776
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3777
+ }
3398
3778
  }
3399
3779
  const response = yield this.request({
3400
3780
  path: `/stages/identification/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3425,8 +3805,12 @@ class StagesApi extends runtime.BaseAPI {
3425
3805
  }
3426
3806
  const queryParameters = {};
3427
3807
  const headerParameters = {};
3428
- if (this.configuration && this.configuration.apiKey) {
3429
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3808
+ if (this.configuration && this.configuration.accessToken) {
3809
+ const token = this.configuration.accessToken;
3810
+ const tokenString = yield token("authentik", []);
3811
+ if (tokenString) {
3812
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3813
+ }
3430
3814
  }
3431
3815
  const response = yield this.request({
3432
3816
  path: `/stages/identification/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3457,8 +3841,12 @@ class StagesApi extends runtime.BaseAPI {
3457
3841
  const queryParameters = {};
3458
3842
  const headerParameters = {};
3459
3843
  headerParameters['Content-Type'] = 'application/json';
3460
- if (this.configuration && this.configuration.apiKey) {
3461
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3844
+ if (this.configuration && this.configuration.accessToken) {
3845
+ const token = this.configuration.accessToken;
3846
+ const tokenString = yield token("authentik", []);
3847
+ if (tokenString) {
3848
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3849
+ }
3462
3850
  }
3463
3851
  const response = yield this.request({
3464
3852
  path: `/stages/invitation/invitations/`,
@@ -3489,8 +3877,12 @@ class StagesApi extends runtime.BaseAPI {
3489
3877
  }
3490
3878
  const queryParameters = {};
3491
3879
  const headerParameters = {};
3492
- if (this.configuration && this.configuration.apiKey) {
3493
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3880
+ if (this.configuration && this.configuration.accessToken) {
3881
+ const token = this.configuration.accessToken;
3882
+ const tokenString = yield token("authentik", []);
3883
+ if (tokenString) {
3884
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3885
+ }
3494
3886
  }
3495
3887
  const response = yield this.request({
3496
3888
  path: `/stages/invitation/invitations/{invite_uuid}/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3540,8 +3932,12 @@ class StagesApi extends runtime.BaseAPI {
3540
3932
  queryParameters['search'] = requestParameters.search;
3541
3933
  }
3542
3934
  const headerParameters = {};
3543
- if (this.configuration && this.configuration.apiKey) {
3544
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3935
+ if (this.configuration && this.configuration.accessToken) {
3936
+ const token = this.configuration.accessToken;
3937
+ const tokenString = yield token("authentik", []);
3938
+ if (tokenString) {
3939
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3940
+ }
3545
3941
  }
3546
3942
  const response = yield this.request({
3547
3943
  path: `/stages/invitation/invitations/`,
@@ -3572,8 +3968,12 @@ class StagesApi extends runtime.BaseAPI {
3572
3968
  const queryParameters = {};
3573
3969
  const headerParameters = {};
3574
3970
  headerParameters['Content-Type'] = 'application/json';
3575
- if (this.configuration && this.configuration.apiKey) {
3576
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3971
+ if (this.configuration && this.configuration.accessToken) {
3972
+ const token = this.configuration.accessToken;
3973
+ const tokenString = yield token("authentik", []);
3974
+ if (tokenString) {
3975
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3976
+ }
3577
3977
  }
3578
3978
  const response = yield this.request({
3579
3979
  path: `/stages/invitation/invitations/{invite_uuid}/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3604,8 +4004,12 @@ class StagesApi extends runtime.BaseAPI {
3604
4004
  }
3605
4005
  const queryParameters = {};
3606
4006
  const headerParameters = {};
3607
- if (this.configuration && this.configuration.apiKey) {
3608
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4007
+ if (this.configuration && this.configuration.accessToken) {
4008
+ const token = this.configuration.accessToken;
4009
+ const tokenString = yield token("authentik", []);
4010
+ if (tokenString) {
4011
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4012
+ }
3609
4013
  }
3610
4014
  const response = yield this.request({
3611
4015
  path: `/stages/invitation/invitations/{invite_uuid}/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3639,8 +4043,12 @@ class StagesApi extends runtime.BaseAPI {
3639
4043
  const queryParameters = {};
3640
4044
  const headerParameters = {};
3641
4045
  headerParameters['Content-Type'] = 'application/json';
3642
- if (this.configuration && this.configuration.apiKey) {
3643
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4046
+ if (this.configuration && this.configuration.accessToken) {
4047
+ const token = this.configuration.accessToken;
4048
+ const tokenString = yield token("authentik", []);
4049
+ if (tokenString) {
4050
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4051
+ }
3644
4052
  }
3645
4053
  const response = yield this.request({
3646
4054
  path: `/stages/invitation/invitations/{invite_uuid}/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3671,8 +4079,12 @@ class StagesApi extends runtime.BaseAPI {
3671
4079
  }
3672
4080
  const queryParameters = {};
3673
4081
  const headerParameters = {};
3674
- if (this.configuration && this.configuration.apiKey) {
3675
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4082
+ if (this.configuration && this.configuration.accessToken) {
4083
+ const token = this.configuration.accessToken;
4084
+ const tokenString = yield token("authentik", []);
4085
+ if (tokenString) {
4086
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4087
+ }
3676
4088
  }
3677
4089
  const response = yield this.request({
3678
4090
  path: `/stages/invitation/invitations/{invite_uuid}/used_by/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3703,8 +4115,12 @@ class StagesApi extends runtime.BaseAPI {
3703
4115
  const queryParameters = {};
3704
4116
  const headerParameters = {};
3705
4117
  headerParameters['Content-Type'] = 'application/json';
3706
- if (this.configuration && this.configuration.apiKey) {
3707
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4118
+ if (this.configuration && this.configuration.accessToken) {
4119
+ const token = this.configuration.accessToken;
4120
+ const tokenString = yield token("authentik", []);
4121
+ if (tokenString) {
4122
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4123
+ }
3708
4124
  }
3709
4125
  const response = yield this.request({
3710
4126
  path: `/stages/invitation/stages/`,
@@ -3735,8 +4151,12 @@ class StagesApi extends runtime.BaseAPI {
3735
4151
  }
3736
4152
  const queryParameters = {};
3737
4153
  const headerParameters = {};
3738
- if (this.configuration && this.configuration.apiKey) {
3739
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4154
+ if (this.configuration && this.configuration.accessToken) {
4155
+ const token = this.configuration.accessToken;
4156
+ const tokenString = yield token("authentik", []);
4157
+ if (tokenString) {
4158
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4159
+ }
3740
4160
  }
3741
4161
  const response = yield this.request({
3742
4162
  path: `/stages/invitation/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3786,8 +4206,12 @@ class StagesApi extends runtime.BaseAPI {
3786
4206
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
3787
4207
  }
3788
4208
  const headerParameters = {};
3789
- if (this.configuration && this.configuration.apiKey) {
3790
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4209
+ if (this.configuration && this.configuration.accessToken) {
4210
+ const token = this.configuration.accessToken;
4211
+ const tokenString = yield token("authentik", []);
4212
+ if (tokenString) {
4213
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4214
+ }
3791
4215
  }
3792
4216
  const response = yield this.request({
3793
4217
  path: `/stages/invitation/stages/`,
@@ -3818,8 +4242,12 @@ class StagesApi extends runtime.BaseAPI {
3818
4242
  const queryParameters = {};
3819
4243
  const headerParameters = {};
3820
4244
  headerParameters['Content-Type'] = 'application/json';
3821
- if (this.configuration && this.configuration.apiKey) {
3822
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4245
+ if (this.configuration && this.configuration.accessToken) {
4246
+ const token = this.configuration.accessToken;
4247
+ const tokenString = yield token("authentik", []);
4248
+ if (tokenString) {
4249
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4250
+ }
3823
4251
  }
3824
4252
  const response = yield this.request({
3825
4253
  path: `/stages/invitation/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3850,8 +4278,12 @@ class StagesApi extends runtime.BaseAPI {
3850
4278
  }
3851
4279
  const queryParameters = {};
3852
4280
  const headerParameters = {};
3853
- if (this.configuration && this.configuration.apiKey) {
3854
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4281
+ if (this.configuration && this.configuration.accessToken) {
4282
+ const token = this.configuration.accessToken;
4283
+ const tokenString = yield token("authentik", []);
4284
+ if (tokenString) {
4285
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4286
+ }
3855
4287
  }
3856
4288
  const response = yield this.request({
3857
4289
  path: `/stages/invitation/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3885,8 +4317,12 @@ class StagesApi extends runtime.BaseAPI {
3885
4317
  const queryParameters = {};
3886
4318
  const headerParameters = {};
3887
4319
  headerParameters['Content-Type'] = 'application/json';
3888
- if (this.configuration && this.configuration.apiKey) {
3889
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4320
+ if (this.configuration && this.configuration.accessToken) {
4321
+ const token = this.configuration.accessToken;
4322
+ const tokenString = yield token("authentik", []);
4323
+ if (tokenString) {
4324
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4325
+ }
3890
4326
  }
3891
4327
  const response = yield this.request({
3892
4328
  path: `/stages/invitation/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3917,8 +4353,12 @@ class StagesApi extends runtime.BaseAPI {
3917
4353
  }
3918
4354
  const queryParameters = {};
3919
4355
  const headerParameters = {};
3920
- if (this.configuration && this.configuration.apiKey) {
3921
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4356
+ if (this.configuration && this.configuration.accessToken) {
4357
+ const token = this.configuration.accessToken;
4358
+ const tokenString = yield token("authentik", []);
4359
+ if (tokenString) {
4360
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4361
+ }
3922
4362
  }
3923
4363
  const response = yield this.request({
3924
4364
  path: `/stages/invitation/stages/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3949,8 +4389,12 @@ class StagesApi extends runtime.BaseAPI {
3949
4389
  const queryParameters = {};
3950
4390
  const headerParameters = {};
3951
4391
  headerParameters['Content-Type'] = 'application/json';
3952
- if (this.configuration && this.configuration.apiKey) {
3953
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4392
+ if (this.configuration && this.configuration.accessToken) {
4393
+ const token = this.configuration.accessToken;
4394
+ const tokenString = yield token("authentik", []);
4395
+ if (tokenString) {
4396
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4397
+ }
3954
4398
  }
3955
4399
  const response = yield this.request({
3956
4400
  path: `/stages/password/`,
@@ -3981,8 +4425,12 @@ class StagesApi extends runtime.BaseAPI {
3981
4425
  }
3982
4426
  const queryParameters = {};
3983
4427
  const headerParameters = {};
3984
- if (this.configuration && this.configuration.apiKey) {
3985
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4428
+ if (this.configuration && this.configuration.accessToken) {
4429
+ const token = this.configuration.accessToken;
4430
+ const tokenString = yield token("authentik", []);
4431
+ if (tokenString) {
4432
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4433
+ }
3986
4434
  }
3987
4435
  const response = yield this.request({
3988
4436
  path: `/stages/password/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4029,8 +4477,12 @@ class StagesApi extends runtime.BaseAPI {
4029
4477
  queryParameters['search'] = requestParameters.search;
4030
4478
  }
4031
4479
  const headerParameters = {};
4032
- if (this.configuration && this.configuration.apiKey) {
4033
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4480
+ if (this.configuration && this.configuration.accessToken) {
4481
+ const token = this.configuration.accessToken;
4482
+ const tokenString = yield token("authentik", []);
4483
+ if (tokenString) {
4484
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4485
+ }
4034
4486
  }
4035
4487
  const response = yield this.request({
4036
4488
  path: `/stages/password/`,
@@ -4061,8 +4513,12 @@ class StagesApi extends runtime.BaseAPI {
4061
4513
  const queryParameters = {};
4062
4514
  const headerParameters = {};
4063
4515
  headerParameters['Content-Type'] = 'application/json';
4064
- if (this.configuration && this.configuration.apiKey) {
4065
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4516
+ if (this.configuration && this.configuration.accessToken) {
4517
+ const token = this.configuration.accessToken;
4518
+ const tokenString = yield token("authentik", []);
4519
+ if (tokenString) {
4520
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4521
+ }
4066
4522
  }
4067
4523
  const response = yield this.request({
4068
4524
  path: `/stages/password/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4093,8 +4549,12 @@ class StagesApi extends runtime.BaseAPI {
4093
4549
  }
4094
4550
  const queryParameters = {};
4095
4551
  const headerParameters = {};
4096
- if (this.configuration && this.configuration.apiKey) {
4097
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4552
+ if (this.configuration && this.configuration.accessToken) {
4553
+ const token = this.configuration.accessToken;
4554
+ const tokenString = yield token("authentik", []);
4555
+ if (tokenString) {
4556
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4557
+ }
4098
4558
  }
4099
4559
  const response = yield this.request({
4100
4560
  path: `/stages/password/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4128,8 +4588,12 @@ class StagesApi extends runtime.BaseAPI {
4128
4588
  const queryParameters = {};
4129
4589
  const headerParameters = {};
4130
4590
  headerParameters['Content-Type'] = 'application/json';
4131
- if (this.configuration && this.configuration.apiKey) {
4132
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4591
+ if (this.configuration && this.configuration.accessToken) {
4592
+ const token = this.configuration.accessToken;
4593
+ const tokenString = yield token("authentik", []);
4594
+ if (tokenString) {
4595
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4596
+ }
4133
4597
  }
4134
4598
  const response = yield this.request({
4135
4599
  path: `/stages/password/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4160,8 +4624,12 @@ class StagesApi extends runtime.BaseAPI {
4160
4624
  }
4161
4625
  const queryParameters = {};
4162
4626
  const headerParameters = {};
4163
- if (this.configuration && this.configuration.apiKey) {
4164
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4627
+ if (this.configuration && this.configuration.accessToken) {
4628
+ const token = this.configuration.accessToken;
4629
+ const tokenString = yield token("authentik", []);
4630
+ if (tokenString) {
4631
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4632
+ }
4165
4633
  }
4166
4634
  const response = yield this.request({
4167
4635
  path: `/stages/password/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4192,8 +4660,12 @@ class StagesApi extends runtime.BaseAPI {
4192
4660
  const queryParameters = {};
4193
4661
  const headerParameters = {};
4194
4662
  headerParameters['Content-Type'] = 'application/json';
4195
- if (this.configuration && this.configuration.apiKey) {
4196
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4663
+ if (this.configuration && this.configuration.accessToken) {
4664
+ const token = this.configuration.accessToken;
4665
+ const tokenString = yield token("authentik", []);
4666
+ if (tokenString) {
4667
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4668
+ }
4197
4669
  }
4198
4670
  const response = yield this.request({
4199
4671
  path: `/stages/prompt/prompts/`,
@@ -4224,8 +4696,12 @@ class StagesApi extends runtime.BaseAPI {
4224
4696
  }
4225
4697
  const queryParameters = {};
4226
4698
  const headerParameters = {};
4227
- if (this.configuration && this.configuration.apiKey) {
4228
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4699
+ if (this.configuration && this.configuration.accessToken) {
4700
+ const token = this.configuration.accessToken;
4701
+ const tokenString = yield token("authentik", []);
4702
+ if (tokenString) {
4703
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4704
+ }
4229
4705
  }
4230
4706
  const response = yield this.request({
4231
4707
  path: `/stages/prompt/prompts/{prompt_uuid}/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4278,8 +4754,12 @@ class StagesApi extends runtime.BaseAPI {
4278
4754
  queryParameters['type'] = requestParameters.type;
4279
4755
  }
4280
4756
  const headerParameters = {};
4281
- if (this.configuration && this.configuration.apiKey) {
4282
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4757
+ if (this.configuration && this.configuration.accessToken) {
4758
+ const token = this.configuration.accessToken;
4759
+ const tokenString = yield token("authentik", []);
4760
+ if (tokenString) {
4761
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4762
+ }
4283
4763
  }
4284
4764
  const response = yield this.request({
4285
4765
  path: `/stages/prompt/prompts/`,
@@ -4310,8 +4790,12 @@ class StagesApi extends runtime.BaseAPI {
4310
4790
  const queryParameters = {};
4311
4791
  const headerParameters = {};
4312
4792
  headerParameters['Content-Type'] = 'application/json';
4313
- if (this.configuration && this.configuration.apiKey) {
4314
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4793
+ if (this.configuration && this.configuration.accessToken) {
4794
+ const token = this.configuration.accessToken;
4795
+ const tokenString = yield token("authentik", []);
4796
+ if (tokenString) {
4797
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4798
+ }
4315
4799
  }
4316
4800
  const response = yield this.request({
4317
4801
  path: `/stages/prompt/prompts/{prompt_uuid}/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4343,8 +4827,12 @@ class StagesApi extends runtime.BaseAPI {
4343
4827
  const queryParameters = {};
4344
4828
  const headerParameters = {};
4345
4829
  headerParameters['Content-Type'] = 'application/json';
4346
- if (this.configuration && this.configuration.apiKey) {
4347
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4830
+ if (this.configuration && this.configuration.accessToken) {
4831
+ const token = this.configuration.accessToken;
4832
+ const tokenString = yield token("authentik", []);
4833
+ if (tokenString) {
4834
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4835
+ }
4348
4836
  }
4349
4837
  const response = yield this.request({
4350
4838
  path: `/stages/prompt/prompts/preview/`,
@@ -4375,8 +4863,12 @@ class StagesApi extends runtime.BaseAPI {
4375
4863
  }
4376
4864
  const queryParameters = {};
4377
4865
  const headerParameters = {};
4378
- if (this.configuration && this.configuration.apiKey) {
4379
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4866
+ if (this.configuration && this.configuration.accessToken) {
4867
+ const token = this.configuration.accessToken;
4868
+ const tokenString = yield token("authentik", []);
4869
+ if (tokenString) {
4870
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4871
+ }
4380
4872
  }
4381
4873
  const response = yield this.request({
4382
4874
  path: `/stages/prompt/prompts/{prompt_uuid}/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4410,8 +4902,12 @@ class StagesApi extends runtime.BaseAPI {
4410
4902
  const queryParameters = {};
4411
4903
  const headerParameters = {};
4412
4904
  headerParameters['Content-Type'] = 'application/json';
4413
- if (this.configuration && this.configuration.apiKey) {
4414
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4905
+ if (this.configuration && this.configuration.accessToken) {
4906
+ const token = this.configuration.accessToken;
4907
+ const tokenString = yield token("authentik", []);
4908
+ if (tokenString) {
4909
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4910
+ }
4415
4911
  }
4416
4912
  const response = yield this.request({
4417
4913
  path: `/stages/prompt/prompts/{prompt_uuid}/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4442,8 +4938,12 @@ class StagesApi extends runtime.BaseAPI {
4442
4938
  }
4443
4939
  const queryParameters = {};
4444
4940
  const headerParameters = {};
4445
- if (this.configuration && this.configuration.apiKey) {
4446
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4941
+ if (this.configuration && this.configuration.accessToken) {
4942
+ const token = this.configuration.accessToken;
4943
+ const tokenString = yield token("authentik", []);
4944
+ if (tokenString) {
4945
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4946
+ }
4447
4947
  }
4448
4948
  const response = yield this.request({
4449
4949
  path: `/stages/prompt/prompts/{prompt_uuid}/used_by/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4474,8 +4974,12 @@ class StagesApi extends runtime.BaseAPI {
4474
4974
  const queryParameters = {};
4475
4975
  const headerParameters = {};
4476
4976
  headerParameters['Content-Type'] = 'application/json';
4477
- if (this.configuration && this.configuration.apiKey) {
4478
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4977
+ if (this.configuration && this.configuration.accessToken) {
4978
+ const token = this.configuration.accessToken;
4979
+ const tokenString = yield token("authentik", []);
4980
+ if (tokenString) {
4981
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4982
+ }
4479
4983
  }
4480
4984
  const response = yield this.request({
4481
4985
  path: `/stages/prompt/stages/`,
@@ -4506,8 +5010,12 @@ class StagesApi extends runtime.BaseAPI {
4506
5010
  }
4507
5011
  const queryParameters = {};
4508
5012
  const headerParameters = {};
4509
- if (this.configuration && this.configuration.apiKey) {
4510
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5013
+ if (this.configuration && this.configuration.accessToken) {
5014
+ const token = this.configuration.accessToken;
5015
+ const tokenString = yield token("authentik", []);
5016
+ if (tokenString) {
5017
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5018
+ }
4511
5019
  }
4512
5020
  const response = yield this.request({
4513
5021
  path: `/stages/prompt/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4557,8 +5065,12 @@ class StagesApi extends runtime.BaseAPI {
4557
5065
  queryParameters['validation_policies'] = requestParameters.validationPolicies;
4558
5066
  }
4559
5067
  const headerParameters = {};
4560
- if (this.configuration && this.configuration.apiKey) {
4561
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5068
+ if (this.configuration && this.configuration.accessToken) {
5069
+ const token = this.configuration.accessToken;
5070
+ const tokenString = yield token("authentik", []);
5071
+ if (tokenString) {
5072
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5073
+ }
4562
5074
  }
4563
5075
  const response = yield this.request({
4564
5076
  path: `/stages/prompt/stages/`,
@@ -4589,8 +5101,12 @@ class StagesApi extends runtime.BaseAPI {
4589
5101
  const queryParameters = {};
4590
5102
  const headerParameters = {};
4591
5103
  headerParameters['Content-Type'] = 'application/json';
4592
- if (this.configuration && this.configuration.apiKey) {
4593
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5104
+ if (this.configuration && this.configuration.accessToken) {
5105
+ const token = this.configuration.accessToken;
5106
+ const tokenString = yield token("authentik", []);
5107
+ if (tokenString) {
5108
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5109
+ }
4594
5110
  }
4595
5111
  const response = yield this.request({
4596
5112
  path: `/stages/prompt/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4621,8 +5137,12 @@ class StagesApi extends runtime.BaseAPI {
4621
5137
  }
4622
5138
  const queryParameters = {};
4623
5139
  const headerParameters = {};
4624
- if (this.configuration && this.configuration.apiKey) {
4625
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5140
+ if (this.configuration && this.configuration.accessToken) {
5141
+ const token = this.configuration.accessToken;
5142
+ const tokenString = yield token("authentik", []);
5143
+ if (tokenString) {
5144
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5145
+ }
4626
5146
  }
4627
5147
  const response = yield this.request({
4628
5148
  path: `/stages/prompt/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4656,8 +5176,12 @@ class StagesApi extends runtime.BaseAPI {
4656
5176
  const queryParameters = {};
4657
5177
  const headerParameters = {};
4658
5178
  headerParameters['Content-Type'] = 'application/json';
4659
- if (this.configuration && this.configuration.apiKey) {
4660
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5179
+ if (this.configuration && this.configuration.accessToken) {
5180
+ const token = this.configuration.accessToken;
5181
+ const tokenString = yield token("authentik", []);
5182
+ if (tokenString) {
5183
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5184
+ }
4661
5185
  }
4662
5186
  const response = yield this.request({
4663
5187
  path: `/stages/prompt/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4688,8 +5212,12 @@ class StagesApi extends runtime.BaseAPI {
4688
5212
  }
4689
5213
  const queryParameters = {};
4690
5214
  const headerParameters = {};
4691
- if (this.configuration && this.configuration.apiKey) {
4692
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5215
+ if (this.configuration && this.configuration.accessToken) {
5216
+ const token = this.configuration.accessToken;
5217
+ const tokenString = yield token("authentik", []);
5218
+ if (tokenString) {
5219
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5220
+ }
4693
5221
  }
4694
5222
  const response = yield this.request({
4695
5223
  path: `/stages/prompt/stages/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4720,8 +5248,12 @@ class StagesApi extends runtime.BaseAPI {
4720
5248
  const queryParameters = {};
4721
5249
  const headerParameters = {};
4722
5250
  headerParameters['Content-Type'] = 'application/json';
4723
- if (this.configuration && this.configuration.apiKey) {
4724
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5251
+ if (this.configuration && this.configuration.accessToken) {
5252
+ const token = this.configuration.accessToken;
5253
+ const tokenString = yield token("authentik", []);
5254
+ if (tokenString) {
5255
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5256
+ }
4725
5257
  }
4726
5258
  const response = yield this.request({
4727
5259
  path: `/stages/source/`,
@@ -4752,8 +5284,12 @@ class StagesApi extends runtime.BaseAPI {
4752
5284
  }
4753
5285
  const queryParameters = {};
4754
5286
  const headerParameters = {};
4755
- if (this.configuration && this.configuration.apiKey) {
4756
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5287
+ if (this.configuration && this.configuration.accessToken) {
5288
+ const token = this.configuration.accessToken;
5289
+ const tokenString = yield token("authentik", []);
5290
+ if (tokenString) {
5291
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5292
+ }
4757
5293
  }
4758
5294
  const response = yield this.request({
4759
5295
  path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4803,8 +5339,12 @@ class StagesApi extends runtime.BaseAPI {
4803
5339
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
4804
5340
  }
4805
5341
  const headerParameters = {};
4806
- if (this.configuration && this.configuration.apiKey) {
4807
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5342
+ if (this.configuration && this.configuration.accessToken) {
5343
+ const token = this.configuration.accessToken;
5344
+ const tokenString = yield token("authentik", []);
5345
+ if (tokenString) {
5346
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5347
+ }
4808
5348
  }
4809
5349
  const response = yield this.request({
4810
5350
  path: `/stages/source/`,
@@ -4835,8 +5375,12 @@ class StagesApi extends runtime.BaseAPI {
4835
5375
  const queryParameters = {};
4836
5376
  const headerParameters = {};
4837
5377
  headerParameters['Content-Type'] = 'application/json';
4838
- if (this.configuration && this.configuration.apiKey) {
4839
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5378
+ if (this.configuration && this.configuration.accessToken) {
5379
+ const token = this.configuration.accessToken;
5380
+ const tokenString = yield token("authentik", []);
5381
+ if (tokenString) {
5382
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5383
+ }
4840
5384
  }
4841
5385
  const response = yield this.request({
4842
5386
  path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4867,8 +5411,12 @@ class StagesApi extends runtime.BaseAPI {
4867
5411
  }
4868
5412
  const queryParameters = {};
4869
5413
  const headerParameters = {};
4870
- if (this.configuration && this.configuration.apiKey) {
4871
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5414
+ if (this.configuration && this.configuration.accessToken) {
5415
+ const token = this.configuration.accessToken;
5416
+ const tokenString = yield token("authentik", []);
5417
+ if (tokenString) {
5418
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5419
+ }
4872
5420
  }
4873
5421
  const response = yield this.request({
4874
5422
  path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4902,8 +5450,12 @@ class StagesApi extends runtime.BaseAPI {
4902
5450
  const queryParameters = {};
4903
5451
  const headerParameters = {};
4904
5452
  headerParameters['Content-Type'] = 'application/json';
4905
- if (this.configuration && this.configuration.apiKey) {
4906
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5453
+ if (this.configuration && this.configuration.accessToken) {
5454
+ const token = this.configuration.accessToken;
5455
+ const tokenString = yield token("authentik", []);
5456
+ if (tokenString) {
5457
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5458
+ }
4907
5459
  }
4908
5460
  const response = yield this.request({
4909
5461
  path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4934,8 +5486,12 @@ class StagesApi extends runtime.BaseAPI {
4934
5486
  }
4935
5487
  const queryParameters = {};
4936
5488
  const headerParameters = {};
4937
- if (this.configuration && this.configuration.apiKey) {
4938
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5489
+ if (this.configuration && this.configuration.accessToken) {
5490
+ const token = this.configuration.accessToken;
5491
+ const tokenString = yield token("authentik", []);
5492
+ if (tokenString) {
5493
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5494
+ }
4939
5495
  }
4940
5496
  const response = yield this.request({
4941
5497
  path: `/stages/source/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4966,8 +5522,12 @@ class StagesApi extends runtime.BaseAPI {
4966
5522
  const queryParameters = {};
4967
5523
  const headerParameters = {};
4968
5524
  headerParameters['Content-Type'] = 'application/json';
4969
- if (this.configuration && this.configuration.apiKey) {
4970
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5525
+ if (this.configuration && this.configuration.accessToken) {
5526
+ const token = this.configuration.accessToken;
5527
+ const tokenString = yield token("authentik", []);
5528
+ if (tokenString) {
5529
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5530
+ }
4971
5531
  }
4972
5532
  const response = yield this.request({
4973
5533
  path: `/stages/user_delete/`,
@@ -4998,8 +5558,12 @@ class StagesApi extends runtime.BaseAPI {
4998
5558
  }
4999
5559
  const queryParameters = {};
5000
5560
  const headerParameters = {};
5001
- if (this.configuration && this.configuration.apiKey) {
5002
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5561
+ if (this.configuration && this.configuration.accessToken) {
5562
+ const token = this.configuration.accessToken;
5563
+ const tokenString = yield token("authentik", []);
5564
+ if (tokenString) {
5565
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5566
+ }
5003
5567
  }
5004
5568
  const response = yield this.request({
5005
5569
  path: `/stages/user_delete/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5043,8 +5607,12 @@ class StagesApi extends runtime.BaseAPI {
5043
5607
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5044
5608
  }
5045
5609
  const headerParameters = {};
5046
- if (this.configuration && this.configuration.apiKey) {
5047
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5610
+ if (this.configuration && this.configuration.accessToken) {
5611
+ const token = this.configuration.accessToken;
5612
+ const tokenString = yield token("authentik", []);
5613
+ if (tokenString) {
5614
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5615
+ }
5048
5616
  }
5049
5617
  const response = yield this.request({
5050
5618
  path: `/stages/user_delete/`,
@@ -5075,8 +5643,12 @@ class StagesApi extends runtime.BaseAPI {
5075
5643
  const queryParameters = {};
5076
5644
  const headerParameters = {};
5077
5645
  headerParameters['Content-Type'] = 'application/json';
5078
- if (this.configuration && this.configuration.apiKey) {
5079
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5646
+ if (this.configuration && this.configuration.accessToken) {
5647
+ const token = this.configuration.accessToken;
5648
+ const tokenString = yield token("authentik", []);
5649
+ if (tokenString) {
5650
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5651
+ }
5080
5652
  }
5081
5653
  const response = yield this.request({
5082
5654
  path: `/stages/user_delete/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5107,8 +5679,12 @@ class StagesApi extends runtime.BaseAPI {
5107
5679
  }
5108
5680
  const queryParameters = {};
5109
5681
  const headerParameters = {};
5110
- if (this.configuration && this.configuration.apiKey) {
5111
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5682
+ if (this.configuration && this.configuration.accessToken) {
5683
+ const token = this.configuration.accessToken;
5684
+ const tokenString = yield token("authentik", []);
5685
+ if (tokenString) {
5686
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5687
+ }
5112
5688
  }
5113
5689
  const response = yield this.request({
5114
5690
  path: `/stages/user_delete/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5142,8 +5718,12 @@ class StagesApi extends runtime.BaseAPI {
5142
5718
  const queryParameters = {};
5143
5719
  const headerParameters = {};
5144
5720
  headerParameters['Content-Type'] = 'application/json';
5145
- if (this.configuration && this.configuration.apiKey) {
5146
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5721
+ if (this.configuration && this.configuration.accessToken) {
5722
+ const token = this.configuration.accessToken;
5723
+ const tokenString = yield token("authentik", []);
5724
+ if (tokenString) {
5725
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5726
+ }
5147
5727
  }
5148
5728
  const response = yield this.request({
5149
5729
  path: `/stages/user_delete/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5174,8 +5754,12 @@ class StagesApi extends runtime.BaseAPI {
5174
5754
  }
5175
5755
  const queryParameters = {};
5176
5756
  const headerParameters = {};
5177
- if (this.configuration && this.configuration.apiKey) {
5178
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5757
+ if (this.configuration && this.configuration.accessToken) {
5758
+ const token = this.configuration.accessToken;
5759
+ const tokenString = yield token("authentik", []);
5760
+ if (tokenString) {
5761
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5762
+ }
5179
5763
  }
5180
5764
  const response = yield this.request({
5181
5765
  path: `/stages/user_delete/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5206,8 +5790,12 @@ class StagesApi extends runtime.BaseAPI {
5206
5790
  const queryParameters = {};
5207
5791
  const headerParameters = {};
5208
5792
  headerParameters['Content-Type'] = 'application/json';
5209
- if (this.configuration && this.configuration.apiKey) {
5210
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5793
+ if (this.configuration && this.configuration.accessToken) {
5794
+ const token = this.configuration.accessToken;
5795
+ const tokenString = yield token("authentik", []);
5796
+ if (tokenString) {
5797
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5798
+ }
5211
5799
  }
5212
5800
  const response = yield this.request({
5213
5801
  path: `/stages/user_login/`,
@@ -5238,8 +5826,12 @@ class StagesApi extends runtime.BaseAPI {
5238
5826
  }
5239
5827
  const queryParameters = {};
5240
5828
  const headerParameters = {};
5241
- if (this.configuration && this.configuration.apiKey) {
5242
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5829
+ if (this.configuration && this.configuration.accessToken) {
5830
+ const token = this.configuration.accessToken;
5831
+ const tokenString = yield token("authentik", []);
5832
+ if (tokenString) {
5833
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5834
+ }
5243
5835
  }
5244
5836
  const response = yield this.request({
5245
5837
  path: `/stages/user_login/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5298,8 +5890,12 @@ class StagesApi extends runtime.BaseAPI {
5298
5890
  queryParameters['terminate_other_sessions'] = requestParameters.terminateOtherSessions;
5299
5891
  }
5300
5892
  const headerParameters = {};
5301
- if (this.configuration && this.configuration.apiKey) {
5302
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5893
+ if (this.configuration && this.configuration.accessToken) {
5894
+ const token = this.configuration.accessToken;
5895
+ const tokenString = yield token("authentik", []);
5896
+ if (tokenString) {
5897
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5898
+ }
5303
5899
  }
5304
5900
  const response = yield this.request({
5305
5901
  path: `/stages/user_login/`,
@@ -5330,8 +5926,12 @@ class StagesApi extends runtime.BaseAPI {
5330
5926
  const queryParameters = {};
5331
5927
  const headerParameters = {};
5332
5928
  headerParameters['Content-Type'] = 'application/json';
5333
- if (this.configuration && this.configuration.apiKey) {
5334
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5929
+ if (this.configuration && this.configuration.accessToken) {
5930
+ const token = this.configuration.accessToken;
5931
+ const tokenString = yield token("authentik", []);
5932
+ if (tokenString) {
5933
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5934
+ }
5335
5935
  }
5336
5936
  const response = yield this.request({
5337
5937
  path: `/stages/user_login/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5362,8 +5962,12 @@ class StagesApi extends runtime.BaseAPI {
5362
5962
  }
5363
5963
  const queryParameters = {};
5364
5964
  const headerParameters = {};
5365
- if (this.configuration && this.configuration.apiKey) {
5366
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5965
+ if (this.configuration && this.configuration.accessToken) {
5966
+ const token = this.configuration.accessToken;
5967
+ const tokenString = yield token("authentik", []);
5968
+ if (tokenString) {
5969
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5970
+ }
5367
5971
  }
5368
5972
  const response = yield this.request({
5369
5973
  path: `/stages/user_login/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5397,8 +6001,12 @@ class StagesApi extends runtime.BaseAPI {
5397
6001
  const queryParameters = {};
5398
6002
  const headerParameters = {};
5399
6003
  headerParameters['Content-Type'] = 'application/json';
5400
- if (this.configuration && this.configuration.apiKey) {
5401
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6004
+ if (this.configuration && this.configuration.accessToken) {
6005
+ const token = this.configuration.accessToken;
6006
+ const tokenString = yield token("authentik", []);
6007
+ if (tokenString) {
6008
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6009
+ }
5402
6010
  }
5403
6011
  const response = yield this.request({
5404
6012
  path: `/stages/user_login/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5429,8 +6037,12 @@ class StagesApi extends runtime.BaseAPI {
5429
6037
  }
5430
6038
  const queryParameters = {};
5431
6039
  const headerParameters = {};
5432
- if (this.configuration && this.configuration.apiKey) {
5433
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6040
+ if (this.configuration && this.configuration.accessToken) {
6041
+ const token = this.configuration.accessToken;
6042
+ const tokenString = yield token("authentik", []);
6043
+ if (tokenString) {
6044
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6045
+ }
5434
6046
  }
5435
6047
  const response = yield this.request({
5436
6048
  path: `/stages/user_login/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5461,8 +6073,12 @@ class StagesApi extends runtime.BaseAPI {
5461
6073
  const queryParameters = {};
5462
6074
  const headerParameters = {};
5463
6075
  headerParameters['Content-Type'] = 'application/json';
5464
- if (this.configuration && this.configuration.apiKey) {
5465
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6076
+ if (this.configuration && this.configuration.accessToken) {
6077
+ const token = this.configuration.accessToken;
6078
+ const tokenString = yield token("authentik", []);
6079
+ if (tokenString) {
6080
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6081
+ }
5466
6082
  }
5467
6083
  const response = yield this.request({
5468
6084
  path: `/stages/user_logout/`,
@@ -5493,8 +6109,12 @@ class StagesApi extends runtime.BaseAPI {
5493
6109
  }
5494
6110
  const queryParameters = {};
5495
6111
  const headerParameters = {};
5496
- if (this.configuration && this.configuration.apiKey) {
5497
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6112
+ if (this.configuration && this.configuration.accessToken) {
6113
+ const token = this.configuration.accessToken;
6114
+ const tokenString = yield token("authentik", []);
6115
+ if (tokenString) {
6116
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6117
+ }
5498
6118
  }
5499
6119
  const response = yield this.request({
5500
6120
  path: `/stages/user_logout/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5538,8 +6158,12 @@ class StagesApi extends runtime.BaseAPI {
5538
6158
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5539
6159
  }
5540
6160
  const headerParameters = {};
5541
- if (this.configuration && this.configuration.apiKey) {
5542
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6161
+ if (this.configuration && this.configuration.accessToken) {
6162
+ const token = this.configuration.accessToken;
6163
+ const tokenString = yield token("authentik", []);
6164
+ if (tokenString) {
6165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6166
+ }
5543
6167
  }
5544
6168
  const response = yield this.request({
5545
6169
  path: `/stages/user_logout/`,
@@ -5570,8 +6194,12 @@ class StagesApi extends runtime.BaseAPI {
5570
6194
  const queryParameters = {};
5571
6195
  const headerParameters = {};
5572
6196
  headerParameters['Content-Type'] = 'application/json';
5573
- if (this.configuration && this.configuration.apiKey) {
5574
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6197
+ if (this.configuration && this.configuration.accessToken) {
6198
+ const token = this.configuration.accessToken;
6199
+ const tokenString = yield token("authentik", []);
6200
+ if (tokenString) {
6201
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6202
+ }
5575
6203
  }
5576
6204
  const response = yield this.request({
5577
6205
  path: `/stages/user_logout/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5602,8 +6230,12 @@ class StagesApi extends runtime.BaseAPI {
5602
6230
  }
5603
6231
  const queryParameters = {};
5604
6232
  const headerParameters = {};
5605
- if (this.configuration && this.configuration.apiKey) {
5606
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6233
+ if (this.configuration && this.configuration.accessToken) {
6234
+ const token = this.configuration.accessToken;
6235
+ const tokenString = yield token("authentik", []);
6236
+ if (tokenString) {
6237
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6238
+ }
5607
6239
  }
5608
6240
  const response = yield this.request({
5609
6241
  path: `/stages/user_logout/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5637,8 +6269,12 @@ class StagesApi extends runtime.BaseAPI {
5637
6269
  const queryParameters = {};
5638
6270
  const headerParameters = {};
5639
6271
  headerParameters['Content-Type'] = 'application/json';
5640
- if (this.configuration && this.configuration.apiKey) {
5641
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6272
+ if (this.configuration && this.configuration.accessToken) {
6273
+ const token = this.configuration.accessToken;
6274
+ const tokenString = yield token("authentik", []);
6275
+ if (tokenString) {
6276
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6277
+ }
5642
6278
  }
5643
6279
  const response = yield this.request({
5644
6280
  path: `/stages/user_logout/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5669,8 +6305,12 @@ class StagesApi extends runtime.BaseAPI {
5669
6305
  }
5670
6306
  const queryParameters = {};
5671
6307
  const headerParameters = {};
5672
- if (this.configuration && this.configuration.apiKey) {
5673
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6308
+ if (this.configuration && this.configuration.accessToken) {
6309
+ const token = this.configuration.accessToken;
6310
+ const tokenString = yield token("authentik", []);
6311
+ if (tokenString) {
6312
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6313
+ }
5674
6314
  }
5675
6315
  const response = yield this.request({
5676
6316
  path: `/stages/user_logout/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5701,8 +6341,12 @@ class StagesApi extends runtime.BaseAPI {
5701
6341
  const queryParameters = {};
5702
6342
  const headerParameters = {};
5703
6343
  headerParameters['Content-Type'] = 'application/json';
5704
- if (this.configuration && this.configuration.apiKey) {
5705
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6344
+ if (this.configuration && this.configuration.accessToken) {
6345
+ const token = this.configuration.accessToken;
6346
+ const tokenString = yield token("authentik", []);
6347
+ if (tokenString) {
6348
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6349
+ }
5706
6350
  }
5707
6351
  const response = yield this.request({
5708
6352
  path: `/stages/user_write/`,
@@ -5733,8 +6377,12 @@ class StagesApi extends runtime.BaseAPI {
5733
6377
  }
5734
6378
  const queryParameters = {};
5735
6379
  const headerParameters = {};
5736
- if (this.configuration && this.configuration.apiKey) {
5737
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6380
+ if (this.configuration && this.configuration.accessToken) {
6381
+ const token = this.configuration.accessToken;
6382
+ const tokenString = yield token("authentik", []);
6383
+ if (tokenString) {
6384
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6385
+ }
5738
6386
  }
5739
6387
  const response = yield this.request({
5740
6388
  path: `/stages/user_write/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5793,8 +6441,12 @@ class StagesApi extends runtime.BaseAPI {
5793
6441
  queryParameters['user_type'] = requestParameters.userType;
5794
6442
  }
5795
6443
  const headerParameters = {};
5796
- if (this.configuration && this.configuration.apiKey) {
5797
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6444
+ if (this.configuration && this.configuration.accessToken) {
6445
+ const token = this.configuration.accessToken;
6446
+ const tokenString = yield token("authentik", []);
6447
+ if (tokenString) {
6448
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6449
+ }
5798
6450
  }
5799
6451
  const response = yield this.request({
5800
6452
  path: `/stages/user_write/`,
@@ -5825,8 +6477,12 @@ class StagesApi extends runtime.BaseAPI {
5825
6477
  const queryParameters = {};
5826
6478
  const headerParameters = {};
5827
6479
  headerParameters['Content-Type'] = 'application/json';
5828
- if (this.configuration && this.configuration.apiKey) {
5829
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6480
+ if (this.configuration && this.configuration.accessToken) {
6481
+ const token = this.configuration.accessToken;
6482
+ const tokenString = yield token("authentik", []);
6483
+ if (tokenString) {
6484
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6485
+ }
5830
6486
  }
5831
6487
  const response = yield this.request({
5832
6488
  path: `/stages/user_write/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5857,8 +6513,12 @@ class StagesApi extends runtime.BaseAPI {
5857
6513
  }
5858
6514
  const queryParameters = {};
5859
6515
  const headerParameters = {};
5860
- if (this.configuration && this.configuration.apiKey) {
5861
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6516
+ if (this.configuration && this.configuration.accessToken) {
6517
+ const token = this.configuration.accessToken;
6518
+ const tokenString = yield token("authentik", []);
6519
+ if (tokenString) {
6520
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6521
+ }
5862
6522
  }
5863
6523
  const response = yield this.request({
5864
6524
  path: `/stages/user_write/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5892,8 +6552,12 @@ class StagesApi extends runtime.BaseAPI {
5892
6552
  const queryParameters = {};
5893
6553
  const headerParameters = {};
5894
6554
  headerParameters['Content-Type'] = 'application/json';
5895
- if (this.configuration && this.configuration.apiKey) {
5896
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6555
+ if (this.configuration && this.configuration.accessToken) {
6556
+ const token = this.configuration.accessToken;
6557
+ const tokenString = yield token("authentik", []);
6558
+ if (tokenString) {
6559
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6560
+ }
5897
6561
  }
5898
6562
  const response = yield this.request({
5899
6563
  path: `/stages/user_write/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5924,8 +6588,12 @@ class StagesApi extends runtime.BaseAPI {
5924
6588
  }
5925
6589
  const queryParameters = {};
5926
6590
  const headerParameters = {};
5927
- if (this.configuration && this.configuration.apiKey) {
5928
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6591
+ if (this.configuration && this.configuration.accessToken) {
6592
+ const token = this.configuration.accessToken;
6593
+ const tokenString = yield token("authentik", []);
6594
+ if (tokenString) {
6595
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6596
+ }
5929
6597
  }
5930
6598
  const response = yield this.request({
5931
6599
  path: `/stages/user_write/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),