@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/dist/apis/AdminApi.js +60 -20
  2. package/dist/apis/AuthenticatorsApi.js +372 -124
  3. package/dist/apis/CoreApi.js +372 -124
  4. package/dist/apis/CryptoApi.js +60 -20
  5. package/dist/apis/EnterpriseApi.js +60 -20
  6. package/dist/apis/EventsApi.js +210 -70
  7. package/dist/apis/FlowsApi.js +150 -50
  8. package/dist/apis/ManagedApi.js +54 -18
  9. package/dist/apis/Oauth2Api.js +72 -24
  10. package/dist/apis/OutpostsApi.js +210 -70
  11. package/dist/apis/PoliciesApi.js +366 -122
  12. package/dist/apis/PropertymappingsApi.js +288 -96
  13. package/dist/apis/ProvidersApi.js +360 -120
  14. package/dist/apis/RacApi.js +78 -26
  15. package/dist/apis/RbacApi.js +102 -34
  16. package/dist/apis/RootApi.js +6 -2
  17. package/dist/apis/SchemaApi.js +6 -2
  18. package/dist/apis/SourcesApi.js +414 -138
  19. package/dist/apis/StagesApi.js +1002 -334
  20. package/dist/esm/apis/AdminApi.js +60 -20
  21. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  22. package/dist/esm/apis/CoreApi.js +372 -124
  23. package/dist/esm/apis/CryptoApi.js +60 -20
  24. package/dist/esm/apis/EnterpriseApi.js +60 -20
  25. package/dist/esm/apis/EventsApi.js +210 -70
  26. package/dist/esm/apis/FlowsApi.js +150 -50
  27. package/dist/esm/apis/ManagedApi.js +54 -18
  28. package/dist/esm/apis/Oauth2Api.js +72 -24
  29. package/dist/esm/apis/OutpostsApi.js +210 -70
  30. package/dist/esm/apis/PoliciesApi.js +366 -122
  31. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  32. package/dist/esm/apis/ProvidersApi.js +360 -120
  33. package/dist/esm/apis/RacApi.js +78 -26
  34. package/dist/esm/apis/RbacApi.js +102 -34
  35. package/dist/esm/apis/RootApi.js +6 -2
  36. package/dist/esm/apis/SchemaApi.js +6 -2
  37. package/dist/esm/apis/SourcesApi.js +414 -138
  38. package/dist/esm/apis/StagesApi.js +1002 -334
  39. package/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
  40. package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
  41. package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  42. package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
  43. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  44. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  45. package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
  46. package/dist/models/AuthenticatorValidateStage.js +5 -0
  47. package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  48. package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
  49. package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  50. package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  51. package/package.json +1 -1
  52. package/src/apis/AdminApi.ts +70 -30
  53. package/src/apis/AuthenticatorsApi.ts +434 -186
  54. package/src/apis/CoreApi.ts +434 -186
  55. package/src/apis/CryptoApi.ts +70 -30
  56. package/src/apis/EnterpriseApi.ts +70 -30
  57. package/src/apis/EventsApi.ts +245 -105
  58. package/src/apis/FlowsApi.ts +175 -75
  59. package/src/apis/ManagedApi.ts +63 -27
  60. package/src/apis/Oauth2Api.ts +84 -36
  61. package/src/apis/OutpostsApi.ts +245 -105
  62. package/src/apis/PoliciesApi.ts +427 -183
  63. package/src/apis/PropertymappingsApi.ts +336 -144
  64. package/src/apis/ProvidersApi.ts +420 -180
  65. package/src/apis/RacApi.ts +91 -39
  66. package/src/apis/RbacApi.ts +119 -51
  67. package/src/apis/RootApi.ts +7 -3
  68. package/src/apis/SchemaApi.ts +7 -3
  69. package/src/apis/SourcesApi.ts +483 -207
  70. package/src/apis/StagesApi.ts +1169 -501
  71. package/src/models/AuthenticatorValidateStage.ts +22 -0
  72. package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
  73. package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
@@ -36,8 +36,12 @@ export class StagesApi extends runtime.BaseAPI {
36
36
  }
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
- if (this.configuration && this.configuration.apiKey) {
40
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = yield token("authentik", []);
42
+ if (tokenString) {
43
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
44
+ }
41
45
  }
42
46
  const response = yield this.request({
43
47
  path: `/stages/all/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -78,8 +82,12 @@ export class StagesApi extends runtime.BaseAPI {
78
82
  queryParameters['search'] = requestParameters.search;
79
83
  }
80
84
  const headerParameters = {};
81
- if (this.configuration && this.configuration.apiKey) {
82
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
85
+ if (this.configuration && this.configuration.accessToken) {
86
+ const token = this.configuration.accessToken;
87
+ const tokenString = yield token("authentik", []);
88
+ if (tokenString) {
89
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
90
+ }
83
91
  }
84
92
  const response = yield this.request({
85
93
  path: `/stages/all/`,
@@ -109,8 +117,12 @@ export class StagesApi extends runtime.BaseAPI {
109
117
  }
110
118
  const queryParameters = {};
111
119
  const headerParameters = {};
112
- if (this.configuration && this.configuration.apiKey) {
113
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
120
+ if (this.configuration && this.configuration.accessToken) {
121
+ const token = this.configuration.accessToken;
122
+ const tokenString = yield token("authentik", []);
123
+ if (tokenString) {
124
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
125
+ }
114
126
  }
115
127
  const response = yield this.request({
116
128
  path: `/stages/all/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -137,8 +149,12 @@ export class StagesApi extends runtime.BaseAPI {
137
149
  return __awaiter(this, void 0, void 0, function* () {
138
150
  const queryParameters = {};
139
151
  const headerParameters = {};
140
- if (this.configuration && this.configuration.apiKey) {
141
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
152
+ if (this.configuration && this.configuration.accessToken) {
153
+ const token = this.configuration.accessToken;
154
+ const tokenString = yield token("authentik", []);
155
+ if (tokenString) {
156
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
157
+ }
142
158
  }
143
159
  const response = yield this.request({
144
160
  path: `/stages/all/types/`,
@@ -168,8 +184,12 @@ export class StagesApi extends runtime.BaseAPI {
168
184
  }
169
185
  const queryParameters = {};
170
186
  const headerParameters = {};
171
- if (this.configuration && this.configuration.apiKey) {
172
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
187
+ if (this.configuration && this.configuration.accessToken) {
188
+ const token = this.configuration.accessToken;
189
+ const tokenString = yield token("authentik", []);
190
+ if (tokenString) {
191
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
192
+ }
173
193
  }
174
194
  const response = yield this.request({
175
195
  path: `/stages/all/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -196,8 +216,12 @@ export class StagesApi extends runtime.BaseAPI {
196
216
  return __awaiter(this, void 0, void 0, function* () {
197
217
  const queryParameters = {};
198
218
  const headerParameters = {};
199
- if (this.configuration && this.configuration.apiKey) {
200
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
219
+ if (this.configuration && this.configuration.accessToken) {
220
+ const token = this.configuration.accessToken;
221
+ const tokenString = yield token("authentik", []);
222
+ if (tokenString) {
223
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
224
+ }
201
225
  }
202
226
  const response = yield this.request({
203
227
  path: `/stages/all/user_settings/`,
@@ -228,8 +252,12 @@ export class StagesApi extends runtime.BaseAPI {
228
252
  const queryParameters = {};
229
253
  const headerParameters = {};
230
254
  headerParameters['Content-Type'] = 'application/json';
231
- if (this.configuration && this.configuration.apiKey) {
232
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
255
+ if (this.configuration && this.configuration.accessToken) {
256
+ const token = this.configuration.accessToken;
257
+ const tokenString = yield token("authentik", []);
258
+ if (tokenString) {
259
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
260
+ }
233
261
  }
234
262
  const response = yield this.request({
235
263
  path: `/stages/authenticator/duo/`,
@@ -260,8 +288,12 @@ export class StagesApi extends runtime.BaseAPI {
260
288
  }
261
289
  const queryParameters = {};
262
290
  const headerParameters = {};
263
- if (this.configuration && this.configuration.apiKey) {
264
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
291
+ if (this.configuration && this.configuration.accessToken) {
292
+ const token = this.configuration.accessToken;
293
+ const tokenString = yield token("authentik", []);
294
+ if (tokenString) {
295
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
296
+ }
265
297
  }
266
298
  const response = yield this.request({
267
299
  path: `/stages/authenticator/duo/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -290,8 +322,12 @@ export class StagesApi extends runtime.BaseAPI {
290
322
  }
291
323
  const queryParameters = {};
292
324
  const headerParameters = {};
293
- if (this.configuration && this.configuration.apiKey) {
294
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
325
+ if (this.configuration && this.configuration.accessToken) {
326
+ const token = this.configuration.accessToken;
327
+ const tokenString = yield token("authentik", []);
328
+ if (tokenString) {
329
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
330
+ }
295
331
  }
296
332
  const response = yield this.request({
297
333
  path: `/stages/authenticator/duo/{stage_uuid}/enrollment_status/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -325,8 +361,12 @@ export class StagesApi extends runtime.BaseAPI {
325
361
  const queryParameters = {};
326
362
  const headerParameters = {};
327
363
  headerParameters['Content-Type'] = 'application/json';
328
- if (this.configuration && this.configuration.apiKey) {
329
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
364
+ if (this.configuration && this.configuration.accessToken) {
365
+ const token = this.configuration.accessToken;
366
+ const tokenString = yield token("authentik", []);
367
+ if (tokenString) {
368
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
369
+ }
330
370
  }
331
371
  const response = yield this.request({
332
372
  path: `/stages/authenticator/duo/{stage_uuid}/import_device_manual/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -356,8 +396,12 @@ export class StagesApi extends runtime.BaseAPI {
356
396
  }
357
397
  const queryParameters = {};
358
398
  const headerParameters = {};
359
- if (this.configuration && this.configuration.apiKey) {
360
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
399
+ if (this.configuration && this.configuration.accessToken) {
400
+ const token = this.configuration.accessToken;
401
+ const tokenString = yield token("authentik", []);
402
+ if (tokenString) {
403
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
404
+ }
361
405
  }
362
406
  const response = yield this.request({
363
407
  path: `/stages/authenticator/duo/{stage_uuid}/import_devices_automatic/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -408,8 +452,12 @@ export class StagesApi extends runtime.BaseAPI {
408
452
  queryParameters['search'] = requestParameters.search;
409
453
  }
410
454
  const headerParameters = {};
411
- if (this.configuration && this.configuration.apiKey) {
412
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
455
+ if (this.configuration && this.configuration.accessToken) {
456
+ const token = this.configuration.accessToken;
457
+ const tokenString = yield token("authentik", []);
458
+ if (tokenString) {
459
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
460
+ }
413
461
  }
414
462
  const response = yield this.request({
415
463
  path: `/stages/authenticator/duo/`,
@@ -440,8 +488,12 @@ export class StagesApi extends runtime.BaseAPI {
440
488
  const queryParameters = {};
441
489
  const headerParameters = {};
442
490
  headerParameters['Content-Type'] = 'application/json';
443
- if (this.configuration && this.configuration.apiKey) {
444
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
491
+ if (this.configuration && this.configuration.accessToken) {
492
+ const token = this.configuration.accessToken;
493
+ const tokenString = yield token("authentik", []);
494
+ if (tokenString) {
495
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
496
+ }
445
497
  }
446
498
  const response = yield this.request({
447
499
  path: `/stages/authenticator/duo/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -472,8 +524,12 @@ export class StagesApi extends runtime.BaseAPI {
472
524
  }
473
525
  const queryParameters = {};
474
526
  const headerParameters = {};
475
- if (this.configuration && this.configuration.apiKey) {
476
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
527
+ if (this.configuration && this.configuration.accessToken) {
528
+ const token = this.configuration.accessToken;
529
+ const tokenString = yield token("authentik", []);
530
+ if (tokenString) {
531
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
532
+ }
477
533
  }
478
534
  const response = yield this.request({
479
535
  path: `/stages/authenticator/duo/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -507,8 +563,12 @@ export class StagesApi extends runtime.BaseAPI {
507
563
  const queryParameters = {};
508
564
  const headerParameters = {};
509
565
  headerParameters['Content-Type'] = 'application/json';
510
- if (this.configuration && this.configuration.apiKey) {
511
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
566
+ if (this.configuration && this.configuration.accessToken) {
567
+ const token = this.configuration.accessToken;
568
+ const tokenString = yield token("authentik", []);
569
+ if (tokenString) {
570
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
571
+ }
512
572
  }
513
573
  const response = yield this.request({
514
574
  path: `/stages/authenticator/duo/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -539,8 +599,12 @@ export class StagesApi extends runtime.BaseAPI {
539
599
  }
540
600
  const queryParameters = {};
541
601
  const headerParameters = {};
542
- if (this.configuration && this.configuration.apiKey) {
543
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
602
+ if (this.configuration && this.configuration.accessToken) {
603
+ const token = this.configuration.accessToken;
604
+ const tokenString = yield token("authentik", []);
605
+ if (tokenString) {
606
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
607
+ }
544
608
  }
545
609
  const response = yield this.request({
546
610
  path: `/stages/authenticator/duo/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -571,8 +635,12 @@ export class StagesApi extends runtime.BaseAPI {
571
635
  const queryParameters = {};
572
636
  const headerParameters = {};
573
637
  headerParameters['Content-Type'] = 'application/json';
574
- if (this.configuration && this.configuration.apiKey) {
575
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
638
+ if (this.configuration && this.configuration.accessToken) {
639
+ const token = this.configuration.accessToken;
640
+ const tokenString = yield token("authentik", []);
641
+ if (tokenString) {
642
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
643
+ }
576
644
  }
577
645
  const response = yield this.request({
578
646
  path: `/stages/authenticator/sms/`,
@@ -603,8 +671,12 @@ export class StagesApi extends runtime.BaseAPI {
603
671
  }
604
672
  const queryParameters = {};
605
673
  const headerParameters = {};
606
- if (this.configuration && this.configuration.apiKey) {
607
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
674
+ if (this.configuration && this.configuration.accessToken) {
675
+ const token = this.configuration.accessToken;
676
+ const tokenString = yield token("authentik", []);
677
+ if (tokenString) {
678
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
679
+ }
608
680
  }
609
681
  const response = yield this.request({
610
682
  path: `/stages/authenticator/sms/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -678,8 +750,12 @@ export class StagesApi extends runtime.BaseAPI {
678
750
  queryParameters['verify_only'] = requestParameters.verifyOnly;
679
751
  }
680
752
  const headerParameters = {};
681
- if (this.configuration && this.configuration.apiKey) {
682
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
753
+ if (this.configuration && this.configuration.accessToken) {
754
+ const token = this.configuration.accessToken;
755
+ const tokenString = yield token("authentik", []);
756
+ if (tokenString) {
757
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
758
+ }
683
759
  }
684
760
  const response = yield this.request({
685
761
  path: `/stages/authenticator/sms/`,
@@ -710,8 +786,12 @@ export class StagesApi extends runtime.BaseAPI {
710
786
  const queryParameters = {};
711
787
  const headerParameters = {};
712
788
  headerParameters['Content-Type'] = 'application/json';
713
- if (this.configuration && this.configuration.apiKey) {
714
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
789
+ if (this.configuration && this.configuration.accessToken) {
790
+ const token = this.configuration.accessToken;
791
+ const tokenString = yield token("authentik", []);
792
+ if (tokenString) {
793
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
794
+ }
715
795
  }
716
796
  const response = yield this.request({
717
797
  path: `/stages/authenticator/sms/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -742,8 +822,12 @@ export class StagesApi extends runtime.BaseAPI {
742
822
  }
743
823
  const queryParameters = {};
744
824
  const headerParameters = {};
745
- if (this.configuration && this.configuration.apiKey) {
746
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
825
+ if (this.configuration && this.configuration.accessToken) {
826
+ const token = this.configuration.accessToken;
827
+ const tokenString = yield token("authentik", []);
828
+ if (tokenString) {
829
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
830
+ }
747
831
  }
748
832
  const response = yield this.request({
749
833
  path: `/stages/authenticator/sms/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -777,8 +861,12 @@ export class StagesApi extends runtime.BaseAPI {
777
861
  const queryParameters = {};
778
862
  const headerParameters = {};
779
863
  headerParameters['Content-Type'] = 'application/json';
780
- if (this.configuration && this.configuration.apiKey) {
781
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
864
+ if (this.configuration && this.configuration.accessToken) {
865
+ const token = this.configuration.accessToken;
866
+ const tokenString = yield token("authentik", []);
867
+ if (tokenString) {
868
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
869
+ }
782
870
  }
783
871
  const response = yield this.request({
784
872
  path: `/stages/authenticator/sms/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -809,8 +897,12 @@ export class StagesApi extends runtime.BaseAPI {
809
897
  }
810
898
  const queryParameters = {};
811
899
  const headerParameters = {};
812
- if (this.configuration && this.configuration.apiKey) {
813
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
900
+ if (this.configuration && this.configuration.accessToken) {
901
+ const token = this.configuration.accessToken;
902
+ const tokenString = yield token("authentik", []);
903
+ if (tokenString) {
904
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
905
+ }
814
906
  }
815
907
  const response = yield this.request({
816
908
  path: `/stages/authenticator/sms/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -841,8 +933,12 @@ export class StagesApi extends runtime.BaseAPI {
841
933
  const queryParameters = {};
842
934
  const headerParameters = {};
843
935
  headerParameters['Content-Type'] = 'application/json';
844
- if (this.configuration && this.configuration.apiKey) {
845
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
936
+ if (this.configuration && this.configuration.accessToken) {
937
+ const token = this.configuration.accessToken;
938
+ const tokenString = yield token("authentik", []);
939
+ if (tokenString) {
940
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
941
+ }
846
942
  }
847
943
  const response = yield this.request({
848
944
  path: `/stages/authenticator/static/`,
@@ -873,8 +969,12 @@ export class StagesApi extends runtime.BaseAPI {
873
969
  }
874
970
  const queryParameters = {};
875
971
  const headerParameters = {};
876
- if (this.configuration && this.configuration.apiKey) {
877
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
972
+ if (this.configuration && this.configuration.accessToken) {
973
+ const token = this.configuration.accessToken;
974
+ const tokenString = yield token("authentik", []);
975
+ if (tokenString) {
976
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
977
+ }
878
978
  }
879
979
  const response = yield this.request({
880
980
  path: `/stages/authenticator/static/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -930,8 +1030,12 @@ export class StagesApi extends runtime.BaseAPI {
930
1030
  queryParameters['token_length'] = requestParameters.tokenLength;
931
1031
  }
932
1032
  const headerParameters = {};
933
- if (this.configuration && this.configuration.apiKey) {
934
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1033
+ if (this.configuration && this.configuration.accessToken) {
1034
+ const token = this.configuration.accessToken;
1035
+ const tokenString = yield token("authentik", []);
1036
+ if (tokenString) {
1037
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1038
+ }
935
1039
  }
936
1040
  const response = yield this.request({
937
1041
  path: `/stages/authenticator/static/`,
@@ -962,8 +1066,12 @@ export class StagesApi extends runtime.BaseAPI {
962
1066
  const queryParameters = {};
963
1067
  const headerParameters = {};
964
1068
  headerParameters['Content-Type'] = 'application/json';
965
- if (this.configuration && this.configuration.apiKey) {
966
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1069
+ if (this.configuration && this.configuration.accessToken) {
1070
+ const token = this.configuration.accessToken;
1071
+ const tokenString = yield token("authentik", []);
1072
+ if (tokenString) {
1073
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1074
+ }
967
1075
  }
968
1076
  const response = yield this.request({
969
1077
  path: `/stages/authenticator/static/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -994,8 +1102,12 @@ export class StagesApi extends runtime.BaseAPI {
994
1102
  }
995
1103
  const queryParameters = {};
996
1104
  const headerParameters = {};
997
- if (this.configuration && this.configuration.apiKey) {
998
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1105
+ if (this.configuration && this.configuration.accessToken) {
1106
+ const token = this.configuration.accessToken;
1107
+ const tokenString = yield token("authentik", []);
1108
+ if (tokenString) {
1109
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1110
+ }
999
1111
  }
1000
1112
  const response = yield this.request({
1001
1113
  path: `/stages/authenticator/static/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1029,8 +1141,12 @@ export class StagesApi extends runtime.BaseAPI {
1029
1141
  const queryParameters = {};
1030
1142
  const headerParameters = {};
1031
1143
  headerParameters['Content-Type'] = 'application/json';
1032
- if (this.configuration && this.configuration.apiKey) {
1033
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1144
+ if (this.configuration && this.configuration.accessToken) {
1145
+ const token = this.configuration.accessToken;
1146
+ const tokenString = yield token("authentik", []);
1147
+ if (tokenString) {
1148
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1149
+ }
1034
1150
  }
1035
1151
  const response = yield this.request({
1036
1152
  path: `/stages/authenticator/static/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1061,8 +1177,12 @@ export class StagesApi extends runtime.BaseAPI {
1061
1177
  }
1062
1178
  const queryParameters = {};
1063
1179
  const headerParameters = {};
1064
- if (this.configuration && this.configuration.apiKey) {
1065
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1180
+ if (this.configuration && this.configuration.accessToken) {
1181
+ const token = this.configuration.accessToken;
1182
+ const tokenString = yield token("authentik", []);
1183
+ if (tokenString) {
1184
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1185
+ }
1066
1186
  }
1067
1187
  const response = yield this.request({
1068
1188
  path: `/stages/authenticator/static/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1093,8 +1213,12 @@ export class StagesApi extends runtime.BaseAPI {
1093
1213
  const queryParameters = {};
1094
1214
  const headerParameters = {};
1095
1215
  headerParameters['Content-Type'] = 'application/json';
1096
- if (this.configuration && this.configuration.apiKey) {
1097
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1216
+ if (this.configuration && this.configuration.accessToken) {
1217
+ const token = this.configuration.accessToken;
1218
+ const tokenString = yield token("authentik", []);
1219
+ if (tokenString) {
1220
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1221
+ }
1098
1222
  }
1099
1223
  const response = yield this.request({
1100
1224
  path: `/stages/authenticator/totp/`,
@@ -1125,8 +1249,12 @@ export class StagesApi extends runtime.BaseAPI {
1125
1249
  }
1126
1250
  const queryParameters = {};
1127
1251
  const headerParameters = {};
1128
- if (this.configuration && this.configuration.apiKey) {
1129
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1252
+ if (this.configuration && this.configuration.accessToken) {
1253
+ const token = this.configuration.accessToken;
1254
+ const tokenString = yield token("authentik", []);
1255
+ if (tokenString) {
1256
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1257
+ }
1130
1258
  }
1131
1259
  const response = yield this.request({
1132
1260
  path: `/stages/authenticator/totp/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1179,8 +1307,12 @@ export class StagesApi extends runtime.BaseAPI {
1179
1307
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
1180
1308
  }
1181
1309
  const headerParameters = {};
1182
- if (this.configuration && this.configuration.apiKey) {
1183
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1310
+ if (this.configuration && this.configuration.accessToken) {
1311
+ const token = this.configuration.accessToken;
1312
+ const tokenString = yield token("authentik", []);
1313
+ if (tokenString) {
1314
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1315
+ }
1184
1316
  }
1185
1317
  const response = yield this.request({
1186
1318
  path: `/stages/authenticator/totp/`,
@@ -1211,8 +1343,12 @@ export class StagesApi extends runtime.BaseAPI {
1211
1343
  const queryParameters = {};
1212
1344
  const headerParameters = {};
1213
1345
  headerParameters['Content-Type'] = 'application/json';
1214
- if (this.configuration && this.configuration.apiKey) {
1215
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1346
+ if (this.configuration && this.configuration.accessToken) {
1347
+ const token = this.configuration.accessToken;
1348
+ const tokenString = yield token("authentik", []);
1349
+ if (tokenString) {
1350
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1351
+ }
1216
1352
  }
1217
1353
  const response = yield this.request({
1218
1354
  path: `/stages/authenticator/totp/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1243,8 +1379,12 @@ export class StagesApi extends runtime.BaseAPI {
1243
1379
  }
1244
1380
  const queryParameters = {};
1245
1381
  const headerParameters = {};
1246
- if (this.configuration && this.configuration.apiKey) {
1247
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1382
+ if (this.configuration && this.configuration.accessToken) {
1383
+ const token = this.configuration.accessToken;
1384
+ const tokenString = yield token("authentik", []);
1385
+ if (tokenString) {
1386
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1387
+ }
1248
1388
  }
1249
1389
  const response = yield this.request({
1250
1390
  path: `/stages/authenticator/totp/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1278,8 +1418,12 @@ export class StagesApi extends runtime.BaseAPI {
1278
1418
  const queryParameters = {};
1279
1419
  const headerParameters = {};
1280
1420
  headerParameters['Content-Type'] = 'application/json';
1281
- if (this.configuration && this.configuration.apiKey) {
1282
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1421
+ if (this.configuration && this.configuration.accessToken) {
1422
+ const token = this.configuration.accessToken;
1423
+ const tokenString = yield token("authentik", []);
1424
+ if (tokenString) {
1425
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1426
+ }
1283
1427
  }
1284
1428
  const response = yield this.request({
1285
1429
  path: `/stages/authenticator/totp/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1310,8 +1454,12 @@ export class StagesApi extends runtime.BaseAPI {
1310
1454
  }
1311
1455
  const queryParameters = {};
1312
1456
  const headerParameters = {};
1313
- if (this.configuration && this.configuration.apiKey) {
1314
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1457
+ if (this.configuration && this.configuration.accessToken) {
1458
+ const token = this.configuration.accessToken;
1459
+ const tokenString = yield token("authentik", []);
1460
+ if (tokenString) {
1461
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1462
+ }
1315
1463
  }
1316
1464
  const response = yield this.request({
1317
1465
  path: `/stages/authenticator/totp/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1342,8 +1490,12 @@ export class StagesApi extends runtime.BaseAPI {
1342
1490
  const queryParameters = {};
1343
1491
  const headerParameters = {};
1344
1492
  headerParameters['Content-Type'] = 'application/json';
1345
- if (this.configuration && this.configuration.apiKey) {
1346
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1493
+ if (this.configuration && this.configuration.accessToken) {
1494
+ const token = this.configuration.accessToken;
1495
+ const tokenString = yield token("authentik", []);
1496
+ if (tokenString) {
1497
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1498
+ }
1347
1499
  }
1348
1500
  const response = yield this.request({
1349
1501
  path: `/stages/authenticator/validate/`,
@@ -1374,8 +1526,12 @@ export class StagesApi extends runtime.BaseAPI {
1374
1526
  }
1375
1527
  const queryParameters = {};
1376
1528
  const headerParameters = {};
1377
- if (this.configuration && this.configuration.apiKey) {
1378
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1529
+ if (this.configuration && this.configuration.accessToken) {
1530
+ const token = this.configuration.accessToken;
1531
+ const tokenString = yield token("authentik", []);
1532
+ if (tokenString) {
1533
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1534
+ }
1379
1535
  }
1380
1536
  const response = yield this.request({
1381
1537
  path: `/stages/authenticator/validate/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1422,8 +1578,12 @@ export class StagesApi extends runtime.BaseAPI {
1422
1578
  queryParameters['search'] = requestParameters.search;
1423
1579
  }
1424
1580
  const headerParameters = {};
1425
- if (this.configuration && this.configuration.apiKey) {
1426
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1581
+ if (this.configuration && this.configuration.accessToken) {
1582
+ const token = this.configuration.accessToken;
1583
+ const tokenString = yield token("authentik", []);
1584
+ if (tokenString) {
1585
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1586
+ }
1427
1587
  }
1428
1588
  const response = yield this.request({
1429
1589
  path: `/stages/authenticator/validate/`,
@@ -1454,8 +1614,12 @@ export class StagesApi extends runtime.BaseAPI {
1454
1614
  const queryParameters = {};
1455
1615
  const headerParameters = {};
1456
1616
  headerParameters['Content-Type'] = 'application/json';
1457
- if (this.configuration && this.configuration.apiKey) {
1458
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1617
+ if (this.configuration && this.configuration.accessToken) {
1618
+ const token = this.configuration.accessToken;
1619
+ const tokenString = yield token("authentik", []);
1620
+ if (tokenString) {
1621
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1622
+ }
1459
1623
  }
1460
1624
  const response = yield this.request({
1461
1625
  path: `/stages/authenticator/validate/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1486,8 +1650,12 @@ export class StagesApi extends runtime.BaseAPI {
1486
1650
  }
1487
1651
  const queryParameters = {};
1488
1652
  const headerParameters = {};
1489
- if (this.configuration && this.configuration.apiKey) {
1490
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1653
+ if (this.configuration && this.configuration.accessToken) {
1654
+ const token = this.configuration.accessToken;
1655
+ const tokenString = yield token("authentik", []);
1656
+ if (tokenString) {
1657
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1658
+ }
1491
1659
  }
1492
1660
  const response = yield this.request({
1493
1661
  path: `/stages/authenticator/validate/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1521,8 +1689,12 @@ export class StagesApi extends runtime.BaseAPI {
1521
1689
  const queryParameters = {};
1522
1690
  const headerParameters = {};
1523
1691
  headerParameters['Content-Type'] = 'application/json';
1524
- if (this.configuration && this.configuration.apiKey) {
1525
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1692
+ if (this.configuration && this.configuration.accessToken) {
1693
+ const token = this.configuration.accessToken;
1694
+ const tokenString = yield token("authentik", []);
1695
+ if (tokenString) {
1696
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1697
+ }
1526
1698
  }
1527
1699
  const response = yield this.request({
1528
1700
  path: `/stages/authenticator/validate/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1553,8 +1725,12 @@ export class StagesApi extends runtime.BaseAPI {
1553
1725
  }
1554
1726
  const queryParameters = {};
1555
1727
  const headerParameters = {};
1556
- if (this.configuration && this.configuration.apiKey) {
1557
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1728
+ if (this.configuration && this.configuration.accessToken) {
1729
+ const token = this.configuration.accessToken;
1730
+ const tokenString = yield token("authentik", []);
1731
+ if (tokenString) {
1732
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1733
+ }
1558
1734
  }
1559
1735
  const response = yield this.request({
1560
1736
  path: `/stages/authenticator/validate/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1585,8 +1761,12 @@ export class StagesApi extends runtime.BaseAPI {
1585
1761
  const queryParameters = {};
1586
1762
  const headerParameters = {};
1587
1763
  headerParameters['Content-Type'] = 'application/json';
1588
- if (this.configuration && this.configuration.apiKey) {
1589
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1764
+ if (this.configuration && this.configuration.accessToken) {
1765
+ const token = this.configuration.accessToken;
1766
+ const tokenString = yield token("authentik", []);
1767
+ if (tokenString) {
1768
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1769
+ }
1590
1770
  }
1591
1771
  const response = yield this.request({
1592
1772
  path: `/stages/authenticator/webauthn/`,
@@ -1617,8 +1797,12 @@ export class StagesApi extends runtime.BaseAPI {
1617
1797
  }
1618
1798
  const queryParameters = {};
1619
1799
  const headerParameters = {};
1620
- if (this.configuration && this.configuration.apiKey) {
1621
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1800
+ if (this.configuration && this.configuration.accessToken) {
1801
+ const token = this.configuration.accessToken;
1802
+ const tokenString = yield token("authentik", []);
1803
+ if (tokenString) {
1804
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1805
+ }
1622
1806
  }
1623
1807
  const response = yield this.request({
1624
1808
  path: `/stages/authenticator/webauthn/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1665,8 +1849,12 @@ export class StagesApi extends runtime.BaseAPI {
1665
1849
  queryParameters['search'] = requestParameters.search;
1666
1850
  }
1667
1851
  const headerParameters = {};
1668
- if (this.configuration && this.configuration.apiKey) {
1669
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1852
+ if (this.configuration && this.configuration.accessToken) {
1853
+ const token = this.configuration.accessToken;
1854
+ const tokenString = yield token("authentik", []);
1855
+ if (tokenString) {
1856
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1857
+ }
1670
1858
  }
1671
1859
  const response = yield this.request({
1672
1860
  path: `/stages/authenticator/webauthn_device_types/`,
@@ -1696,8 +1884,12 @@ export class StagesApi extends runtime.BaseAPI {
1696
1884
  }
1697
1885
  const queryParameters = {};
1698
1886
  const headerParameters = {};
1699
- if (this.configuration && this.configuration.apiKey) {
1700
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1887
+ if (this.configuration && this.configuration.accessToken) {
1888
+ const token = this.configuration.accessToken;
1889
+ const tokenString = yield token("authentik", []);
1890
+ if (tokenString) {
1891
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1892
+ }
1701
1893
  }
1702
1894
  const response = yield this.request({
1703
1895
  path: `/stages/authenticator/webauthn_device_types/{aaguid}/`.replace(`{${"aaguid"}}`, encodeURIComponent(String(requestParameters.aaguid))),
@@ -1760,8 +1952,12 @@ export class StagesApi extends runtime.BaseAPI {
1760
1952
  queryParameters['user_verification'] = requestParameters.userVerification;
1761
1953
  }
1762
1954
  const headerParameters = {};
1763
- if (this.configuration && this.configuration.apiKey) {
1764
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1955
+ if (this.configuration && this.configuration.accessToken) {
1956
+ const token = this.configuration.accessToken;
1957
+ const tokenString = yield token("authentik", []);
1958
+ if (tokenString) {
1959
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1960
+ }
1765
1961
  }
1766
1962
  const response = yield this.request({
1767
1963
  path: `/stages/authenticator/webauthn/`,
@@ -1792,8 +1988,12 @@ export class StagesApi extends runtime.BaseAPI {
1792
1988
  const queryParameters = {};
1793
1989
  const headerParameters = {};
1794
1990
  headerParameters['Content-Type'] = 'application/json';
1795
- if (this.configuration && this.configuration.apiKey) {
1796
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1991
+ if (this.configuration && this.configuration.accessToken) {
1992
+ const token = this.configuration.accessToken;
1993
+ const tokenString = yield token("authentik", []);
1994
+ if (tokenString) {
1995
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1996
+ }
1797
1997
  }
1798
1998
  const response = yield this.request({
1799
1999
  path: `/stages/authenticator/webauthn/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1824,8 +2024,12 @@ export class StagesApi extends runtime.BaseAPI {
1824
2024
  }
1825
2025
  const queryParameters = {};
1826
2026
  const headerParameters = {};
1827
- if (this.configuration && this.configuration.apiKey) {
1828
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2027
+ if (this.configuration && this.configuration.accessToken) {
2028
+ const token = this.configuration.accessToken;
2029
+ const tokenString = yield token("authentik", []);
2030
+ if (tokenString) {
2031
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2032
+ }
1829
2033
  }
1830
2034
  const response = yield this.request({
1831
2035
  path: `/stages/authenticator/webauthn/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1859,8 +2063,12 @@ export class StagesApi extends runtime.BaseAPI {
1859
2063
  const queryParameters = {};
1860
2064
  const headerParameters = {};
1861
2065
  headerParameters['Content-Type'] = 'application/json';
1862
- if (this.configuration && this.configuration.apiKey) {
1863
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2066
+ if (this.configuration && this.configuration.accessToken) {
2067
+ const token = this.configuration.accessToken;
2068
+ const tokenString = yield token("authentik", []);
2069
+ if (tokenString) {
2070
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2071
+ }
1864
2072
  }
1865
2073
  const response = yield this.request({
1866
2074
  path: `/stages/authenticator/webauthn/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1891,8 +2099,12 @@ export class StagesApi extends runtime.BaseAPI {
1891
2099
  }
1892
2100
  const queryParameters = {};
1893
2101
  const headerParameters = {};
1894
- if (this.configuration && this.configuration.apiKey) {
1895
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2102
+ if (this.configuration && this.configuration.accessToken) {
2103
+ const token = this.configuration.accessToken;
2104
+ const tokenString = yield token("authentik", []);
2105
+ if (tokenString) {
2106
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2107
+ }
1896
2108
  }
1897
2109
  const response = yield this.request({
1898
2110
  path: `/stages/authenticator/webauthn/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -1923,8 +2135,12 @@ export class StagesApi extends runtime.BaseAPI {
1923
2135
  const queryParameters = {};
1924
2136
  const headerParameters = {};
1925
2137
  headerParameters['Content-Type'] = 'application/json';
1926
- if (this.configuration && this.configuration.apiKey) {
1927
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2138
+ if (this.configuration && this.configuration.accessToken) {
2139
+ const token = this.configuration.accessToken;
2140
+ const tokenString = yield token("authentik", []);
2141
+ if (tokenString) {
2142
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2143
+ }
1928
2144
  }
1929
2145
  const response = yield this.request({
1930
2146
  path: `/stages/captcha/`,
@@ -1955,8 +2171,12 @@ export class StagesApi extends runtime.BaseAPI {
1955
2171
  }
1956
2172
  const queryParameters = {};
1957
2173
  const headerParameters = {};
1958
- if (this.configuration && this.configuration.apiKey) {
1959
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2174
+ if (this.configuration && this.configuration.accessToken) {
2175
+ const token = this.configuration.accessToken;
2176
+ const tokenString = yield token("authentik", []);
2177
+ if (tokenString) {
2178
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2179
+ }
1960
2180
  }
1961
2181
  const response = yield this.request({
1962
2182
  path: `/stages/captcha/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2000,8 +2220,12 @@ export class StagesApi extends runtime.BaseAPI {
2000
2220
  queryParameters['search'] = requestParameters.search;
2001
2221
  }
2002
2222
  const headerParameters = {};
2003
- if (this.configuration && this.configuration.apiKey) {
2004
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2223
+ if (this.configuration && this.configuration.accessToken) {
2224
+ const token = this.configuration.accessToken;
2225
+ const tokenString = yield token("authentik", []);
2226
+ if (tokenString) {
2227
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2228
+ }
2005
2229
  }
2006
2230
  const response = yield this.request({
2007
2231
  path: `/stages/captcha/`,
@@ -2032,8 +2256,12 @@ export class StagesApi extends runtime.BaseAPI {
2032
2256
  const queryParameters = {};
2033
2257
  const headerParameters = {};
2034
2258
  headerParameters['Content-Type'] = 'application/json';
2035
- if (this.configuration && this.configuration.apiKey) {
2036
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2259
+ if (this.configuration && this.configuration.accessToken) {
2260
+ const token = this.configuration.accessToken;
2261
+ const tokenString = yield token("authentik", []);
2262
+ if (tokenString) {
2263
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2264
+ }
2037
2265
  }
2038
2266
  const response = yield this.request({
2039
2267
  path: `/stages/captcha/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2064,8 +2292,12 @@ export class StagesApi extends runtime.BaseAPI {
2064
2292
  }
2065
2293
  const queryParameters = {};
2066
2294
  const headerParameters = {};
2067
- if (this.configuration && this.configuration.apiKey) {
2068
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2295
+ if (this.configuration && this.configuration.accessToken) {
2296
+ const token = this.configuration.accessToken;
2297
+ const tokenString = yield token("authentik", []);
2298
+ if (tokenString) {
2299
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2300
+ }
2069
2301
  }
2070
2302
  const response = yield this.request({
2071
2303
  path: `/stages/captcha/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2099,8 +2331,12 @@ export class StagesApi extends runtime.BaseAPI {
2099
2331
  const queryParameters = {};
2100
2332
  const headerParameters = {};
2101
2333
  headerParameters['Content-Type'] = 'application/json';
2102
- if (this.configuration && this.configuration.apiKey) {
2103
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2334
+ if (this.configuration && this.configuration.accessToken) {
2335
+ const token = this.configuration.accessToken;
2336
+ const tokenString = yield token("authentik", []);
2337
+ if (tokenString) {
2338
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2339
+ }
2104
2340
  }
2105
2341
  const response = yield this.request({
2106
2342
  path: `/stages/captcha/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2131,8 +2367,12 @@ export class StagesApi extends runtime.BaseAPI {
2131
2367
  }
2132
2368
  const queryParameters = {};
2133
2369
  const headerParameters = {};
2134
- if (this.configuration && this.configuration.apiKey) {
2135
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2370
+ if (this.configuration && this.configuration.accessToken) {
2371
+ const token = this.configuration.accessToken;
2372
+ const tokenString = yield token("authentik", []);
2373
+ if (tokenString) {
2374
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2375
+ }
2136
2376
  }
2137
2377
  const response = yield this.request({
2138
2378
  path: `/stages/captcha/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2163,8 +2403,12 @@ export class StagesApi extends runtime.BaseAPI {
2163
2403
  const queryParameters = {};
2164
2404
  const headerParameters = {};
2165
2405
  headerParameters['Content-Type'] = 'application/json';
2166
- if (this.configuration && this.configuration.apiKey) {
2167
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2406
+ if (this.configuration && this.configuration.accessToken) {
2407
+ const token = this.configuration.accessToken;
2408
+ const tokenString = yield token("authentik", []);
2409
+ if (tokenString) {
2410
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2411
+ }
2168
2412
  }
2169
2413
  const response = yield this.request({
2170
2414
  path: `/stages/consent/`,
@@ -2195,8 +2439,12 @@ export class StagesApi extends runtime.BaseAPI {
2195
2439
  }
2196
2440
  const queryParameters = {};
2197
2441
  const headerParameters = {};
2198
- if (this.configuration && this.configuration.apiKey) {
2199
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2442
+ if (this.configuration && this.configuration.accessToken) {
2443
+ const token = this.configuration.accessToken;
2444
+ const tokenString = yield token("authentik", []);
2445
+ if (tokenString) {
2446
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2447
+ }
2200
2448
  }
2201
2449
  const response = yield this.request({
2202
2450
  path: `/stages/consent/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2246,8 +2494,12 @@ export class StagesApi extends runtime.BaseAPI {
2246
2494
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
2247
2495
  }
2248
2496
  const headerParameters = {};
2249
- if (this.configuration && this.configuration.apiKey) {
2250
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2497
+ if (this.configuration && this.configuration.accessToken) {
2498
+ const token = this.configuration.accessToken;
2499
+ const tokenString = yield token("authentik", []);
2500
+ if (tokenString) {
2501
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2502
+ }
2251
2503
  }
2252
2504
  const response = yield this.request({
2253
2505
  path: `/stages/consent/`,
@@ -2278,8 +2530,12 @@ export class StagesApi extends runtime.BaseAPI {
2278
2530
  const queryParameters = {};
2279
2531
  const headerParameters = {};
2280
2532
  headerParameters['Content-Type'] = 'application/json';
2281
- if (this.configuration && this.configuration.apiKey) {
2282
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2533
+ if (this.configuration && this.configuration.accessToken) {
2534
+ const token = this.configuration.accessToken;
2535
+ const tokenString = yield token("authentik", []);
2536
+ if (tokenString) {
2537
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2538
+ }
2283
2539
  }
2284
2540
  const response = yield this.request({
2285
2541
  path: `/stages/consent/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2310,8 +2566,12 @@ export class StagesApi extends runtime.BaseAPI {
2310
2566
  }
2311
2567
  const queryParameters = {};
2312
2568
  const headerParameters = {};
2313
- if (this.configuration && this.configuration.apiKey) {
2314
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2569
+ if (this.configuration && this.configuration.accessToken) {
2570
+ const token = this.configuration.accessToken;
2571
+ const tokenString = yield token("authentik", []);
2572
+ if (tokenString) {
2573
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2574
+ }
2315
2575
  }
2316
2576
  const response = yield this.request({
2317
2577
  path: `/stages/consent/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2345,8 +2605,12 @@ export class StagesApi extends runtime.BaseAPI {
2345
2605
  const queryParameters = {};
2346
2606
  const headerParameters = {};
2347
2607
  headerParameters['Content-Type'] = 'application/json';
2348
- if (this.configuration && this.configuration.apiKey) {
2349
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2608
+ if (this.configuration && this.configuration.accessToken) {
2609
+ const token = this.configuration.accessToken;
2610
+ const tokenString = yield token("authentik", []);
2611
+ if (tokenString) {
2612
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2613
+ }
2350
2614
  }
2351
2615
  const response = yield this.request({
2352
2616
  path: `/stages/consent/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2377,8 +2641,12 @@ export class StagesApi extends runtime.BaseAPI {
2377
2641
  }
2378
2642
  const queryParameters = {};
2379
2643
  const headerParameters = {};
2380
- if (this.configuration && this.configuration.apiKey) {
2381
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2644
+ if (this.configuration && this.configuration.accessToken) {
2645
+ const token = this.configuration.accessToken;
2646
+ const tokenString = yield token("authentik", []);
2647
+ if (tokenString) {
2648
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2649
+ }
2382
2650
  }
2383
2651
  const response = yield this.request({
2384
2652
  path: `/stages/consent/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2409,8 +2677,12 @@ export class StagesApi extends runtime.BaseAPI {
2409
2677
  const queryParameters = {};
2410
2678
  const headerParameters = {};
2411
2679
  headerParameters['Content-Type'] = 'application/json';
2412
- if (this.configuration && this.configuration.apiKey) {
2413
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2680
+ if (this.configuration && this.configuration.accessToken) {
2681
+ const token = this.configuration.accessToken;
2682
+ const tokenString = yield token("authentik", []);
2683
+ if (tokenString) {
2684
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2685
+ }
2414
2686
  }
2415
2687
  const response = yield this.request({
2416
2688
  path: `/stages/deny/`,
@@ -2441,8 +2713,12 @@ export class StagesApi extends runtime.BaseAPI {
2441
2713
  }
2442
2714
  const queryParameters = {};
2443
2715
  const headerParameters = {};
2444
- if (this.configuration && this.configuration.apiKey) {
2445
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2716
+ if (this.configuration && this.configuration.accessToken) {
2717
+ const token = this.configuration.accessToken;
2718
+ const tokenString = yield token("authentik", []);
2719
+ if (tokenString) {
2720
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2721
+ }
2446
2722
  }
2447
2723
  const response = yield this.request({
2448
2724
  path: `/stages/deny/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2489,8 +2765,12 @@ export class StagesApi extends runtime.BaseAPI {
2489
2765
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
2490
2766
  }
2491
2767
  const headerParameters = {};
2492
- if (this.configuration && this.configuration.apiKey) {
2493
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2768
+ if (this.configuration && this.configuration.accessToken) {
2769
+ const token = this.configuration.accessToken;
2770
+ const tokenString = yield token("authentik", []);
2771
+ if (tokenString) {
2772
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2773
+ }
2494
2774
  }
2495
2775
  const response = yield this.request({
2496
2776
  path: `/stages/deny/`,
@@ -2521,8 +2801,12 @@ export class StagesApi extends runtime.BaseAPI {
2521
2801
  const queryParameters = {};
2522
2802
  const headerParameters = {};
2523
2803
  headerParameters['Content-Type'] = 'application/json';
2524
- if (this.configuration && this.configuration.apiKey) {
2525
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2804
+ if (this.configuration && this.configuration.accessToken) {
2805
+ const token = this.configuration.accessToken;
2806
+ const tokenString = yield token("authentik", []);
2807
+ if (tokenString) {
2808
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2809
+ }
2526
2810
  }
2527
2811
  const response = yield this.request({
2528
2812
  path: `/stages/deny/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2553,8 +2837,12 @@ export class StagesApi extends runtime.BaseAPI {
2553
2837
  }
2554
2838
  const queryParameters = {};
2555
2839
  const headerParameters = {};
2556
- if (this.configuration && this.configuration.apiKey) {
2557
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2840
+ if (this.configuration && this.configuration.accessToken) {
2841
+ const token = this.configuration.accessToken;
2842
+ const tokenString = yield token("authentik", []);
2843
+ if (tokenString) {
2844
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2845
+ }
2558
2846
  }
2559
2847
  const response = yield this.request({
2560
2848
  path: `/stages/deny/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2588,8 +2876,12 @@ export class StagesApi extends runtime.BaseAPI {
2588
2876
  const queryParameters = {};
2589
2877
  const headerParameters = {};
2590
2878
  headerParameters['Content-Type'] = 'application/json';
2591
- if (this.configuration && this.configuration.apiKey) {
2592
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2879
+ if (this.configuration && this.configuration.accessToken) {
2880
+ const token = this.configuration.accessToken;
2881
+ const tokenString = yield token("authentik", []);
2882
+ if (tokenString) {
2883
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2884
+ }
2593
2885
  }
2594
2886
  const response = yield this.request({
2595
2887
  path: `/stages/deny/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2620,8 +2912,12 @@ export class StagesApi extends runtime.BaseAPI {
2620
2912
  }
2621
2913
  const queryParameters = {};
2622
2914
  const headerParameters = {};
2623
- if (this.configuration && this.configuration.apiKey) {
2624
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2915
+ if (this.configuration && this.configuration.accessToken) {
2916
+ const token = this.configuration.accessToken;
2917
+ const tokenString = yield token("authentik", []);
2918
+ if (tokenString) {
2919
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2920
+ }
2625
2921
  }
2626
2922
  const response = yield this.request({
2627
2923
  path: `/stages/deny/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2652,8 +2948,12 @@ export class StagesApi extends runtime.BaseAPI {
2652
2948
  const queryParameters = {};
2653
2949
  const headerParameters = {};
2654
2950
  headerParameters['Content-Type'] = 'application/json';
2655
- if (this.configuration && this.configuration.apiKey) {
2656
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2951
+ if (this.configuration && this.configuration.accessToken) {
2952
+ const token = this.configuration.accessToken;
2953
+ const tokenString = yield token("authentik", []);
2954
+ if (tokenString) {
2955
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2956
+ }
2657
2957
  }
2658
2958
  const response = yield this.request({
2659
2959
  path: `/stages/dummy/`,
@@ -2684,8 +2984,12 @@ export class StagesApi extends runtime.BaseAPI {
2684
2984
  }
2685
2985
  const queryParameters = {};
2686
2986
  const headerParameters = {};
2687
- if (this.configuration && this.configuration.apiKey) {
2688
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2987
+ if (this.configuration && this.configuration.accessToken) {
2988
+ const token = this.configuration.accessToken;
2989
+ const tokenString = yield token("authentik", []);
2990
+ if (tokenString) {
2991
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2992
+ }
2689
2993
  }
2690
2994
  const response = yield this.request({
2691
2995
  path: `/stages/dummy/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2732,8 +3036,12 @@ export class StagesApi extends runtime.BaseAPI {
2732
3036
  queryParameters['throw_error'] = requestParameters.throwError;
2733
3037
  }
2734
3038
  const headerParameters = {};
2735
- if (this.configuration && this.configuration.apiKey) {
2736
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3039
+ if (this.configuration && this.configuration.accessToken) {
3040
+ const token = this.configuration.accessToken;
3041
+ const tokenString = yield token("authentik", []);
3042
+ if (tokenString) {
3043
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3044
+ }
2737
3045
  }
2738
3046
  const response = yield this.request({
2739
3047
  path: `/stages/dummy/`,
@@ -2764,8 +3072,12 @@ export class StagesApi extends runtime.BaseAPI {
2764
3072
  const queryParameters = {};
2765
3073
  const headerParameters = {};
2766
3074
  headerParameters['Content-Type'] = 'application/json';
2767
- if (this.configuration && this.configuration.apiKey) {
2768
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3075
+ if (this.configuration && this.configuration.accessToken) {
3076
+ const token = this.configuration.accessToken;
3077
+ const tokenString = yield token("authentik", []);
3078
+ if (tokenString) {
3079
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3080
+ }
2769
3081
  }
2770
3082
  const response = yield this.request({
2771
3083
  path: `/stages/dummy/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2796,8 +3108,12 @@ export class StagesApi extends runtime.BaseAPI {
2796
3108
  }
2797
3109
  const queryParameters = {};
2798
3110
  const headerParameters = {};
2799
- if (this.configuration && this.configuration.apiKey) {
2800
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3111
+ if (this.configuration && this.configuration.accessToken) {
3112
+ const token = this.configuration.accessToken;
3113
+ const tokenString = yield token("authentik", []);
3114
+ if (tokenString) {
3115
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3116
+ }
2801
3117
  }
2802
3118
  const response = yield this.request({
2803
3119
  path: `/stages/dummy/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2831,8 +3147,12 @@ export class StagesApi extends runtime.BaseAPI {
2831
3147
  const queryParameters = {};
2832
3148
  const headerParameters = {};
2833
3149
  headerParameters['Content-Type'] = 'application/json';
2834
- if (this.configuration && this.configuration.apiKey) {
2835
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3150
+ if (this.configuration && this.configuration.accessToken) {
3151
+ const token = this.configuration.accessToken;
3152
+ const tokenString = yield token("authentik", []);
3153
+ if (tokenString) {
3154
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3155
+ }
2836
3156
  }
2837
3157
  const response = yield this.request({
2838
3158
  path: `/stages/dummy/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2863,8 +3183,12 @@ export class StagesApi extends runtime.BaseAPI {
2863
3183
  }
2864
3184
  const queryParameters = {};
2865
3185
  const headerParameters = {};
2866
- if (this.configuration && this.configuration.apiKey) {
2867
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3186
+ if (this.configuration && this.configuration.accessToken) {
3187
+ const token = this.configuration.accessToken;
3188
+ const tokenString = yield token("authentik", []);
3189
+ if (tokenString) {
3190
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3191
+ }
2868
3192
  }
2869
3193
  const response = yield this.request({
2870
3194
  path: `/stages/dummy/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -2895,8 +3219,12 @@ export class StagesApi extends runtime.BaseAPI {
2895
3219
  const queryParameters = {};
2896
3220
  const headerParameters = {};
2897
3221
  headerParameters['Content-Type'] = 'application/json';
2898
- if (this.configuration && this.configuration.apiKey) {
2899
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3222
+ if (this.configuration && this.configuration.accessToken) {
3223
+ const token = this.configuration.accessToken;
3224
+ const tokenString = yield token("authentik", []);
3225
+ if (tokenString) {
3226
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3227
+ }
2900
3228
  }
2901
3229
  const response = yield this.request({
2902
3230
  path: `/stages/email/`,
@@ -2927,8 +3255,12 @@ export class StagesApi extends runtime.BaseAPI {
2927
3255
  }
2928
3256
  const queryParameters = {};
2929
3257
  const headerParameters = {};
2930
- if (this.configuration && this.configuration.apiKey) {
2931
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3258
+ if (this.configuration && this.configuration.accessToken) {
3259
+ const token = this.configuration.accessToken;
3260
+ const tokenString = yield token("authentik", []);
3261
+ if (tokenString) {
3262
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3263
+ }
2932
3264
  }
2933
3265
  const response = yield this.request({
2934
3266
  path: `/stages/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3005,8 +3337,12 @@ export class StagesApi extends runtime.BaseAPI {
3005
3337
  queryParameters['username'] = requestParameters.username;
3006
3338
  }
3007
3339
  const headerParameters = {};
3008
- if (this.configuration && this.configuration.apiKey) {
3009
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3340
+ if (this.configuration && this.configuration.accessToken) {
3341
+ const token = this.configuration.accessToken;
3342
+ const tokenString = yield token("authentik", []);
3343
+ if (tokenString) {
3344
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3345
+ }
3010
3346
  }
3011
3347
  const response = yield this.request({
3012
3348
  path: `/stages/email/`,
@@ -3037,8 +3373,12 @@ export class StagesApi extends runtime.BaseAPI {
3037
3373
  const queryParameters = {};
3038
3374
  const headerParameters = {};
3039
3375
  headerParameters['Content-Type'] = 'application/json';
3040
- if (this.configuration && this.configuration.apiKey) {
3041
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3376
+ if (this.configuration && this.configuration.accessToken) {
3377
+ const token = this.configuration.accessToken;
3378
+ const tokenString = yield token("authentik", []);
3379
+ if (tokenString) {
3380
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3381
+ }
3042
3382
  }
3043
3383
  const response = yield this.request({
3044
3384
  path: `/stages/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3069,8 +3409,12 @@ export class StagesApi extends runtime.BaseAPI {
3069
3409
  }
3070
3410
  const queryParameters = {};
3071
3411
  const headerParameters = {};
3072
- if (this.configuration && this.configuration.apiKey) {
3073
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3412
+ if (this.configuration && this.configuration.accessToken) {
3413
+ const token = this.configuration.accessToken;
3414
+ const tokenString = yield token("authentik", []);
3415
+ if (tokenString) {
3416
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3417
+ }
3074
3418
  }
3075
3419
  const response = yield this.request({
3076
3420
  path: `/stages/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3097,8 +3441,12 @@ export class StagesApi extends runtime.BaseAPI {
3097
3441
  return __awaiter(this, void 0, void 0, function* () {
3098
3442
  const queryParameters = {};
3099
3443
  const headerParameters = {};
3100
- if (this.configuration && this.configuration.apiKey) {
3101
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3444
+ if (this.configuration && this.configuration.accessToken) {
3445
+ const token = this.configuration.accessToken;
3446
+ const tokenString = yield token("authentik", []);
3447
+ if (tokenString) {
3448
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3449
+ }
3102
3450
  }
3103
3451
  const response = yield this.request({
3104
3452
  path: `/stages/email/templates/`,
@@ -3132,8 +3480,12 @@ export class StagesApi extends runtime.BaseAPI {
3132
3480
  const queryParameters = {};
3133
3481
  const headerParameters = {};
3134
3482
  headerParameters['Content-Type'] = 'application/json';
3135
- if (this.configuration && this.configuration.apiKey) {
3136
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3483
+ if (this.configuration && this.configuration.accessToken) {
3484
+ const token = this.configuration.accessToken;
3485
+ const tokenString = yield token("authentik", []);
3486
+ if (tokenString) {
3487
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3488
+ }
3137
3489
  }
3138
3490
  const response = yield this.request({
3139
3491
  path: `/stages/email/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3164,8 +3516,12 @@ export class StagesApi extends runtime.BaseAPI {
3164
3516
  }
3165
3517
  const queryParameters = {};
3166
3518
  const headerParameters = {};
3167
- if (this.configuration && this.configuration.apiKey) {
3168
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3519
+ if (this.configuration && this.configuration.accessToken) {
3520
+ const token = this.configuration.accessToken;
3521
+ const tokenString = yield token("authentik", []);
3522
+ if (tokenString) {
3523
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3524
+ }
3169
3525
  }
3170
3526
  const response = yield this.request({
3171
3527
  path: `/stages/email/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3196,8 +3552,12 @@ export class StagesApi extends runtime.BaseAPI {
3196
3552
  const queryParameters = {};
3197
3553
  const headerParameters = {};
3198
3554
  headerParameters['Content-Type'] = 'application/json';
3199
- if (this.configuration && this.configuration.apiKey) {
3200
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3555
+ if (this.configuration && this.configuration.accessToken) {
3556
+ const token = this.configuration.accessToken;
3557
+ const tokenString = yield token("authentik", []);
3558
+ if (tokenString) {
3559
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3560
+ }
3201
3561
  }
3202
3562
  const response = yield this.request({
3203
3563
  path: `/stages/identification/`,
@@ -3228,8 +3588,12 @@ export class StagesApi extends runtime.BaseAPI {
3228
3588
  }
3229
3589
  const queryParameters = {};
3230
3590
  const headerParameters = {};
3231
- if (this.configuration && this.configuration.apiKey) {
3232
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3591
+ if (this.configuration && this.configuration.accessToken) {
3592
+ const token = this.configuration.accessToken;
3593
+ const tokenString = yield token("authentik", []);
3594
+ if (tokenString) {
3595
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3596
+ }
3233
3597
  }
3234
3598
  const response = yield this.request({
3235
3599
  path: `/stages/identification/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3291,8 +3655,12 @@ export class StagesApi extends runtime.BaseAPI {
3291
3655
  queryParameters['show_source_labels'] = requestParameters.showSourceLabels;
3292
3656
  }
3293
3657
  const headerParameters = {};
3294
- if (this.configuration && this.configuration.apiKey) {
3295
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3658
+ if (this.configuration && this.configuration.accessToken) {
3659
+ const token = this.configuration.accessToken;
3660
+ const tokenString = yield token("authentik", []);
3661
+ if (tokenString) {
3662
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3663
+ }
3296
3664
  }
3297
3665
  const response = yield this.request({
3298
3666
  path: `/stages/identification/`,
@@ -3323,8 +3691,12 @@ export class StagesApi extends runtime.BaseAPI {
3323
3691
  const queryParameters = {};
3324
3692
  const headerParameters = {};
3325
3693
  headerParameters['Content-Type'] = 'application/json';
3326
- if (this.configuration && this.configuration.apiKey) {
3327
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3694
+ if (this.configuration && this.configuration.accessToken) {
3695
+ const token = this.configuration.accessToken;
3696
+ const tokenString = yield token("authentik", []);
3697
+ if (tokenString) {
3698
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3699
+ }
3328
3700
  }
3329
3701
  const response = yield this.request({
3330
3702
  path: `/stages/identification/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3355,8 +3727,12 @@ export class StagesApi extends runtime.BaseAPI {
3355
3727
  }
3356
3728
  const queryParameters = {};
3357
3729
  const headerParameters = {};
3358
- if (this.configuration && this.configuration.apiKey) {
3359
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3730
+ if (this.configuration && this.configuration.accessToken) {
3731
+ const token = this.configuration.accessToken;
3732
+ const tokenString = yield token("authentik", []);
3733
+ if (tokenString) {
3734
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3735
+ }
3360
3736
  }
3361
3737
  const response = yield this.request({
3362
3738
  path: `/stages/identification/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3390,8 +3766,12 @@ export class StagesApi extends runtime.BaseAPI {
3390
3766
  const queryParameters = {};
3391
3767
  const headerParameters = {};
3392
3768
  headerParameters['Content-Type'] = 'application/json';
3393
- if (this.configuration && this.configuration.apiKey) {
3394
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3769
+ if (this.configuration && this.configuration.accessToken) {
3770
+ const token = this.configuration.accessToken;
3771
+ const tokenString = yield token("authentik", []);
3772
+ if (tokenString) {
3773
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3774
+ }
3395
3775
  }
3396
3776
  const response = yield this.request({
3397
3777
  path: `/stages/identification/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3422,8 +3802,12 @@ export class StagesApi extends runtime.BaseAPI {
3422
3802
  }
3423
3803
  const queryParameters = {};
3424
3804
  const headerParameters = {};
3425
- if (this.configuration && this.configuration.apiKey) {
3426
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3805
+ if (this.configuration && this.configuration.accessToken) {
3806
+ const token = this.configuration.accessToken;
3807
+ const tokenString = yield token("authentik", []);
3808
+ if (tokenString) {
3809
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3810
+ }
3427
3811
  }
3428
3812
  const response = yield this.request({
3429
3813
  path: `/stages/identification/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3454,8 +3838,12 @@ export class StagesApi extends runtime.BaseAPI {
3454
3838
  const queryParameters = {};
3455
3839
  const headerParameters = {};
3456
3840
  headerParameters['Content-Type'] = 'application/json';
3457
- if (this.configuration && this.configuration.apiKey) {
3458
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3841
+ if (this.configuration && this.configuration.accessToken) {
3842
+ const token = this.configuration.accessToken;
3843
+ const tokenString = yield token("authentik", []);
3844
+ if (tokenString) {
3845
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3846
+ }
3459
3847
  }
3460
3848
  const response = yield this.request({
3461
3849
  path: `/stages/invitation/invitations/`,
@@ -3486,8 +3874,12 @@ export class StagesApi extends runtime.BaseAPI {
3486
3874
  }
3487
3875
  const queryParameters = {};
3488
3876
  const headerParameters = {};
3489
- if (this.configuration && this.configuration.apiKey) {
3490
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3877
+ if (this.configuration && this.configuration.accessToken) {
3878
+ const token = this.configuration.accessToken;
3879
+ const tokenString = yield token("authentik", []);
3880
+ if (tokenString) {
3881
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3882
+ }
3491
3883
  }
3492
3884
  const response = yield this.request({
3493
3885
  path: `/stages/invitation/invitations/{invite_uuid}/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3537,8 +3929,12 @@ export class StagesApi extends runtime.BaseAPI {
3537
3929
  queryParameters['search'] = requestParameters.search;
3538
3930
  }
3539
3931
  const headerParameters = {};
3540
- if (this.configuration && this.configuration.apiKey) {
3541
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3932
+ if (this.configuration && this.configuration.accessToken) {
3933
+ const token = this.configuration.accessToken;
3934
+ const tokenString = yield token("authentik", []);
3935
+ if (tokenString) {
3936
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3937
+ }
3542
3938
  }
3543
3939
  const response = yield this.request({
3544
3940
  path: `/stages/invitation/invitations/`,
@@ -3569,8 +3965,12 @@ export class StagesApi extends runtime.BaseAPI {
3569
3965
  const queryParameters = {};
3570
3966
  const headerParameters = {};
3571
3967
  headerParameters['Content-Type'] = 'application/json';
3572
- if (this.configuration && this.configuration.apiKey) {
3573
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3968
+ if (this.configuration && this.configuration.accessToken) {
3969
+ const token = this.configuration.accessToken;
3970
+ const tokenString = yield token("authentik", []);
3971
+ if (tokenString) {
3972
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3973
+ }
3574
3974
  }
3575
3975
  const response = yield this.request({
3576
3976
  path: `/stages/invitation/invitations/{invite_uuid}/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3601,8 +4001,12 @@ export class StagesApi extends runtime.BaseAPI {
3601
4001
  }
3602
4002
  const queryParameters = {};
3603
4003
  const headerParameters = {};
3604
- if (this.configuration && this.configuration.apiKey) {
3605
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4004
+ if (this.configuration && this.configuration.accessToken) {
4005
+ const token = this.configuration.accessToken;
4006
+ const tokenString = yield token("authentik", []);
4007
+ if (tokenString) {
4008
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4009
+ }
3606
4010
  }
3607
4011
  const response = yield this.request({
3608
4012
  path: `/stages/invitation/invitations/{invite_uuid}/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3636,8 +4040,12 @@ export class StagesApi extends runtime.BaseAPI {
3636
4040
  const queryParameters = {};
3637
4041
  const headerParameters = {};
3638
4042
  headerParameters['Content-Type'] = 'application/json';
3639
- if (this.configuration && this.configuration.apiKey) {
3640
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4043
+ if (this.configuration && this.configuration.accessToken) {
4044
+ const token = this.configuration.accessToken;
4045
+ const tokenString = yield token("authentik", []);
4046
+ if (tokenString) {
4047
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4048
+ }
3641
4049
  }
3642
4050
  const response = yield this.request({
3643
4051
  path: `/stages/invitation/invitations/{invite_uuid}/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3668,8 +4076,12 @@ export class StagesApi extends runtime.BaseAPI {
3668
4076
  }
3669
4077
  const queryParameters = {};
3670
4078
  const headerParameters = {};
3671
- if (this.configuration && this.configuration.apiKey) {
3672
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4079
+ if (this.configuration && this.configuration.accessToken) {
4080
+ const token = this.configuration.accessToken;
4081
+ const tokenString = yield token("authentik", []);
4082
+ if (tokenString) {
4083
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4084
+ }
3673
4085
  }
3674
4086
  const response = yield this.request({
3675
4087
  path: `/stages/invitation/invitations/{invite_uuid}/used_by/`.replace(`{${"invite_uuid"}}`, encodeURIComponent(String(requestParameters.inviteUuid))),
@@ -3700,8 +4112,12 @@ export class StagesApi extends runtime.BaseAPI {
3700
4112
  const queryParameters = {};
3701
4113
  const headerParameters = {};
3702
4114
  headerParameters['Content-Type'] = 'application/json';
3703
- if (this.configuration && this.configuration.apiKey) {
3704
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4115
+ if (this.configuration && this.configuration.accessToken) {
4116
+ const token = this.configuration.accessToken;
4117
+ const tokenString = yield token("authentik", []);
4118
+ if (tokenString) {
4119
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4120
+ }
3705
4121
  }
3706
4122
  const response = yield this.request({
3707
4123
  path: `/stages/invitation/stages/`,
@@ -3732,8 +4148,12 @@ export class StagesApi extends runtime.BaseAPI {
3732
4148
  }
3733
4149
  const queryParameters = {};
3734
4150
  const headerParameters = {};
3735
- if (this.configuration && this.configuration.apiKey) {
3736
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4151
+ if (this.configuration && this.configuration.accessToken) {
4152
+ const token = this.configuration.accessToken;
4153
+ const tokenString = yield token("authentik", []);
4154
+ if (tokenString) {
4155
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4156
+ }
3737
4157
  }
3738
4158
  const response = yield this.request({
3739
4159
  path: `/stages/invitation/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3783,8 +4203,12 @@ export class StagesApi extends runtime.BaseAPI {
3783
4203
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
3784
4204
  }
3785
4205
  const headerParameters = {};
3786
- if (this.configuration && this.configuration.apiKey) {
3787
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4206
+ if (this.configuration && this.configuration.accessToken) {
4207
+ const token = this.configuration.accessToken;
4208
+ const tokenString = yield token("authentik", []);
4209
+ if (tokenString) {
4210
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4211
+ }
3788
4212
  }
3789
4213
  const response = yield this.request({
3790
4214
  path: `/stages/invitation/stages/`,
@@ -3815,8 +4239,12 @@ export class StagesApi extends runtime.BaseAPI {
3815
4239
  const queryParameters = {};
3816
4240
  const headerParameters = {};
3817
4241
  headerParameters['Content-Type'] = 'application/json';
3818
- if (this.configuration && this.configuration.apiKey) {
3819
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4242
+ if (this.configuration && this.configuration.accessToken) {
4243
+ const token = this.configuration.accessToken;
4244
+ const tokenString = yield token("authentik", []);
4245
+ if (tokenString) {
4246
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4247
+ }
3820
4248
  }
3821
4249
  const response = yield this.request({
3822
4250
  path: `/stages/invitation/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3847,8 +4275,12 @@ export class StagesApi extends runtime.BaseAPI {
3847
4275
  }
3848
4276
  const queryParameters = {};
3849
4277
  const headerParameters = {};
3850
- if (this.configuration && this.configuration.apiKey) {
3851
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4278
+ if (this.configuration && this.configuration.accessToken) {
4279
+ const token = this.configuration.accessToken;
4280
+ const tokenString = yield token("authentik", []);
4281
+ if (tokenString) {
4282
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4283
+ }
3852
4284
  }
3853
4285
  const response = yield this.request({
3854
4286
  path: `/stages/invitation/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3882,8 +4314,12 @@ export class StagesApi extends runtime.BaseAPI {
3882
4314
  const queryParameters = {};
3883
4315
  const headerParameters = {};
3884
4316
  headerParameters['Content-Type'] = 'application/json';
3885
- if (this.configuration && this.configuration.apiKey) {
3886
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4317
+ if (this.configuration && this.configuration.accessToken) {
4318
+ const token = this.configuration.accessToken;
4319
+ const tokenString = yield token("authentik", []);
4320
+ if (tokenString) {
4321
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4322
+ }
3887
4323
  }
3888
4324
  const response = yield this.request({
3889
4325
  path: `/stages/invitation/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3914,8 +4350,12 @@ export class StagesApi extends runtime.BaseAPI {
3914
4350
  }
3915
4351
  const queryParameters = {};
3916
4352
  const headerParameters = {};
3917
- if (this.configuration && this.configuration.apiKey) {
3918
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4353
+ if (this.configuration && this.configuration.accessToken) {
4354
+ const token = this.configuration.accessToken;
4355
+ const tokenString = yield token("authentik", []);
4356
+ if (tokenString) {
4357
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4358
+ }
3919
4359
  }
3920
4360
  const response = yield this.request({
3921
4361
  path: `/stages/invitation/stages/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -3946,8 +4386,12 @@ export class StagesApi extends runtime.BaseAPI {
3946
4386
  const queryParameters = {};
3947
4387
  const headerParameters = {};
3948
4388
  headerParameters['Content-Type'] = 'application/json';
3949
- if (this.configuration && this.configuration.apiKey) {
3950
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4389
+ if (this.configuration && this.configuration.accessToken) {
4390
+ const token = this.configuration.accessToken;
4391
+ const tokenString = yield token("authentik", []);
4392
+ if (tokenString) {
4393
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4394
+ }
3951
4395
  }
3952
4396
  const response = yield this.request({
3953
4397
  path: `/stages/password/`,
@@ -3978,8 +4422,12 @@ export class StagesApi extends runtime.BaseAPI {
3978
4422
  }
3979
4423
  const queryParameters = {};
3980
4424
  const headerParameters = {};
3981
- if (this.configuration && this.configuration.apiKey) {
3982
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4425
+ if (this.configuration && this.configuration.accessToken) {
4426
+ const token = this.configuration.accessToken;
4427
+ const tokenString = yield token("authentik", []);
4428
+ if (tokenString) {
4429
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4430
+ }
3983
4431
  }
3984
4432
  const response = yield this.request({
3985
4433
  path: `/stages/password/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4026,8 +4474,12 @@ export class StagesApi extends runtime.BaseAPI {
4026
4474
  queryParameters['search'] = requestParameters.search;
4027
4475
  }
4028
4476
  const headerParameters = {};
4029
- if (this.configuration && this.configuration.apiKey) {
4030
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4477
+ if (this.configuration && this.configuration.accessToken) {
4478
+ const token = this.configuration.accessToken;
4479
+ const tokenString = yield token("authentik", []);
4480
+ if (tokenString) {
4481
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4482
+ }
4031
4483
  }
4032
4484
  const response = yield this.request({
4033
4485
  path: `/stages/password/`,
@@ -4058,8 +4510,12 @@ export class StagesApi extends runtime.BaseAPI {
4058
4510
  const queryParameters = {};
4059
4511
  const headerParameters = {};
4060
4512
  headerParameters['Content-Type'] = 'application/json';
4061
- if (this.configuration && this.configuration.apiKey) {
4062
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4513
+ if (this.configuration && this.configuration.accessToken) {
4514
+ const token = this.configuration.accessToken;
4515
+ const tokenString = yield token("authentik", []);
4516
+ if (tokenString) {
4517
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4518
+ }
4063
4519
  }
4064
4520
  const response = yield this.request({
4065
4521
  path: `/stages/password/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4090,8 +4546,12 @@ export class StagesApi extends runtime.BaseAPI {
4090
4546
  }
4091
4547
  const queryParameters = {};
4092
4548
  const headerParameters = {};
4093
- if (this.configuration && this.configuration.apiKey) {
4094
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4549
+ if (this.configuration && this.configuration.accessToken) {
4550
+ const token = this.configuration.accessToken;
4551
+ const tokenString = yield token("authentik", []);
4552
+ if (tokenString) {
4553
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4554
+ }
4095
4555
  }
4096
4556
  const response = yield this.request({
4097
4557
  path: `/stages/password/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4125,8 +4585,12 @@ export class StagesApi extends runtime.BaseAPI {
4125
4585
  const queryParameters = {};
4126
4586
  const headerParameters = {};
4127
4587
  headerParameters['Content-Type'] = 'application/json';
4128
- if (this.configuration && this.configuration.apiKey) {
4129
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4588
+ if (this.configuration && this.configuration.accessToken) {
4589
+ const token = this.configuration.accessToken;
4590
+ const tokenString = yield token("authentik", []);
4591
+ if (tokenString) {
4592
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4593
+ }
4130
4594
  }
4131
4595
  const response = yield this.request({
4132
4596
  path: `/stages/password/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4157,8 +4621,12 @@ export class StagesApi extends runtime.BaseAPI {
4157
4621
  }
4158
4622
  const queryParameters = {};
4159
4623
  const headerParameters = {};
4160
- if (this.configuration && this.configuration.apiKey) {
4161
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4624
+ if (this.configuration && this.configuration.accessToken) {
4625
+ const token = this.configuration.accessToken;
4626
+ const tokenString = yield token("authentik", []);
4627
+ if (tokenString) {
4628
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4629
+ }
4162
4630
  }
4163
4631
  const response = yield this.request({
4164
4632
  path: `/stages/password/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4189,8 +4657,12 @@ export class StagesApi extends runtime.BaseAPI {
4189
4657
  const queryParameters = {};
4190
4658
  const headerParameters = {};
4191
4659
  headerParameters['Content-Type'] = 'application/json';
4192
- if (this.configuration && this.configuration.apiKey) {
4193
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4660
+ if (this.configuration && this.configuration.accessToken) {
4661
+ const token = this.configuration.accessToken;
4662
+ const tokenString = yield token("authentik", []);
4663
+ if (tokenString) {
4664
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4665
+ }
4194
4666
  }
4195
4667
  const response = yield this.request({
4196
4668
  path: `/stages/prompt/prompts/`,
@@ -4221,8 +4693,12 @@ export class StagesApi extends runtime.BaseAPI {
4221
4693
  }
4222
4694
  const queryParameters = {};
4223
4695
  const headerParameters = {};
4224
- if (this.configuration && this.configuration.apiKey) {
4225
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4696
+ if (this.configuration && this.configuration.accessToken) {
4697
+ const token = this.configuration.accessToken;
4698
+ const tokenString = yield token("authentik", []);
4699
+ if (tokenString) {
4700
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4701
+ }
4226
4702
  }
4227
4703
  const response = yield this.request({
4228
4704
  path: `/stages/prompt/prompts/{prompt_uuid}/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4275,8 +4751,12 @@ export class StagesApi extends runtime.BaseAPI {
4275
4751
  queryParameters['type'] = requestParameters.type;
4276
4752
  }
4277
4753
  const headerParameters = {};
4278
- if (this.configuration && this.configuration.apiKey) {
4279
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4754
+ if (this.configuration && this.configuration.accessToken) {
4755
+ const token = this.configuration.accessToken;
4756
+ const tokenString = yield token("authentik", []);
4757
+ if (tokenString) {
4758
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4759
+ }
4280
4760
  }
4281
4761
  const response = yield this.request({
4282
4762
  path: `/stages/prompt/prompts/`,
@@ -4307,8 +4787,12 @@ export class StagesApi extends runtime.BaseAPI {
4307
4787
  const queryParameters = {};
4308
4788
  const headerParameters = {};
4309
4789
  headerParameters['Content-Type'] = 'application/json';
4310
- if (this.configuration && this.configuration.apiKey) {
4311
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4790
+ if (this.configuration && this.configuration.accessToken) {
4791
+ const token = this.configuration.accessToken;
4792
+ const tokenString = yield token("authentik", []);
4793
+ if (tokenString) {
4794
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4795
+ }
4312
4796
  }
4313
4797
  const response = yield this.request({
4314
4798
  path: `/stages/prompt/prompts/{prompt_uuid}/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4340,8 +4824,12 @@ export class StagesApi extends runtime.BaseAPI {
4340
4824
  const queryParameters = {};
4341
4825
  const headerParameters = {};
4342
4826
  headerParameters['Content-Type'] = 'application/json';
4343
- if (this.configuration && this.configuration.apiKey) {
4344
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4827
+ if (this.configuration && this.configuration.accessToken) {
4828
+ const token = this.configuration.accessToken;
4829
+ const tokenString = yield token("authentik", []);
4830
+ if (tokenString) {
4831
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4832
+ }
4345
4833
  }
4346
4834
  const response = yield this.request({
4347
4835
  path: `/stages/prompt/prompts/preview/`,
@@ -4372,8 +4860,12 @@ export class StagesApi extends runtime.BaseAPI {
4372
4860
  }
4373
4861
  const queryParameters = {};
4374
4862
  const headerParameters = {};
4375
- if (this.configuration && this.configuration.apiKey) {
4376
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4863
+ if (this.configuration && this.configuration.accessToken) {
4864
+ const token = this.configuration.accessToken;
4865
+ const tokenString = yield token("authentik", []);
4866
+ if (tokenString) {
4867
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4868
+ }
4377
4869
  }
4378
4870
  const response = yield this.request({
4379
4871
  path: `/stages/prompt/prompts/{prompt_uuid}/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4407,8 +4899,12 @@ export class StagesApi extends runtime.BaseAPI {
4407
4899
  const queryParameters = {};
4408
4900
  const headerParameters = {};
4409
4901
  headerParameters['Content-Type'] = 'application/json';
4410
- if (this.configuration && this.configuration.apiKey) {
4411
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4902
+ if (this.configuration && this.configuration.accessToken) {
4903
+ const token = this.configuration.accessToken;
4904
+ const tokenString = yield token("authentik", []);
4905
+ if (tokenString) {
4906
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4907
+ }
4412
4908
  }
4413
4909
  const response = yield this.request({
4414
4910
  path: `/stages/prompt/prompts/{prompt_uuid}/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4439,8 +4935,12 @@ export class StagesApi extends runtime.BaseAPI {
4439
4935
  }
4440
4936
  const queryParameters = {};
4441
4937
  const headerParameters = {};
4442
- if (this.configuration && this.configuration.apiKey) {
4443
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4938
+ if (this.configuration && this.configuration.accessToken) {
4939
+ const token = this.configuration.accessToken;
4940
+ const tokenString = yield token("authentik", []);
4941
+ if (tokenString) {
4942
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4943
+ }
4444
4944
  }
4445
4945
  const response = yield this.request({
4446
4946
  path: `/stages/prompt/prompts/{prompt_uuid}/used_by/`.replace(`{${"prompt_uuid"}}`, encodeURIComponent(String(requestParameters.promptUuid))),
@@ -4471,8 +4971,12 @@ export class StagesApi extends runtime.BaseAPI {
4471
4971
  const queryParameters = {};
4472
4972
  const headerParameters = {};
4473
4973
  headerParameters['Content-Type'] = 'application/json';
4474
- if (this.configuration && this.configuration.apiKey) {
4475
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4974
+ if (this.configuration && this.configuration.accessToken) {
4975
+ const token = this.configuration.accessToken;
4976
+ const tokenString = yield token("authentik", []);
4977
+ if (tokenString) {
4978
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4979
+ }
4476
4980
  }
4477
4981
  const response = yield this.request({
4478
4982
  path: `/stages/prompt/stages/`,
@@ -4503,8 +5007,12 @@ export class StagesApi extends runtime.BaseAPI {
4503
5007
  }
4504
5008
  const queryParameters = {};
4505
5009
  const headerParameters = {};
4506
- if (this.configuration && this.configuration.apiKey) {
4507
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5010
+ if (this.configuration && this.configuration.accessToken) {
5011
+ const token = this.configuration.accessToken;
5012
+ const tokenString = yield token("authentik", []);
5013
+ if (tokenString) {
5014
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5015
+ }
4508
5016
  }
4509
5017
  const response = yield this.request({
4510
5018
  path: `/stages/prompt/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4554,8 +5062,12 @@ export class StagesApi extends runtime.BaseAPI {
4554
5062
  queryParameters['validation_policies'] = requestParameters.validationPolicies;
4555
5063
  }
4556
5064
  const headerParameters = {};
4557
- if (this.configuration && this.configuration.apiKey) {
4558
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5065
+ if (this.configuration && this.configuration.accessToken) {
5066
+ const token = this.configuration.accessToken;
5067
+ const tokenString = yield token("authentik", []);
5068
+ if (tokenString) {
5069
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5070
+ }
4559
5071
  }
4560
5072
  const response = yield this.request({
4561
5073
  path: `/stages/prompt/stages/`,
@@ -4586,8 +5098,12 @@ export class StagesApi extends runtime.BaseAPI {
4586
5098
  const queryParameters = {};
4587
5099
  const headerParameters = {};
4588
5100
  headerParameters['Content-Type'] = 'application/json';
4589
- if (this.configuration && this.configuration.apiKey) {
4590
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5101
+ if (this.configuration && this.configuration.accessToken) {
5102
+ const token = this.configuration.accessToken;
5103
+ const tokenString = yield token("authentik", []);
5104
+ if (tokenString) {
5105
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5106
+ }
4591
5107
  }
4592
5108
  const response = yield this.request({
4593
5109
  path: `/stages/prompt/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4618,8 +5134,12 @@ export class StagesApi extends runtime.BaseAPI {
4618
5134
  }
4619
5135
  const queryParameters = {};
4620
5136
  const headerParameters = {};
4621
- if (this.configuration && this.configuration.apiKey) {
4622
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5137
+ if (this.configuration && this.configuration.accessToken) {
5138
+ const token = this.configuration.accessToken;
5139
+ const tokenString = yield token("authentik", []);
5140
+ if (tokenString) {
5141
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5142
+ }
4623
5143
  }
4624
5144
  const response = yield this.request({
4625
5145
  path: `/stages/prompt/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4653,8 +5173,12 @@ export class StagesApi extends runtime.BaseAPI {
4653
5173
  const queryParameters = {};
4654
5174
  const headerParameters = {};
4655
5175
  headerParameters['Content-Type'] = 'application/json';
4656
- if (this.configuration && this.configuration.apiKey) {
4657
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5176
+ if (this.configuration && this.configuration.accessToken) {
5177
+ const token = this.configuration.accessToken;
5178
+ const tokenString = yield token("authentik", []);
5179
+ if (tokenString) {
5180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5181
+ }
4658
5182
  }
4659
5183
  const response = yield this.request({
4660
5184
  path: `/stages/prompt/stages/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4685,8 +5209,12 @@ export class StagesApi extends runtime.BaseAPI {
4685
5209
  }
4686
5210
  const queryParameters = {};
4687
5211
  const headerParameters = {};
4688
- if (this.configuration && this.configuration.apiKey) {
4689
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5212
+ if (this.configuration && this.configuration.accessToken) {
5213
+ const token = this.configuration.accessToken;
5214
+ const tokenString = yield token("authentik", []);
5215
+ if (tokenString) {
5216
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5217
+ }
4690
5218
  }
4691
5219
  const response = yield this.request({
4692
5220
  path: `/stages/prompt/stages/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4717,8 +5245,12 @@ export class StagesApi extends runtime.BaseAPI {
4717
5245
  const queryParameters = {};
4718
5246
  const headerParameters = {};
4719
5247
  headerParameters['Content-Type'] = 'application/json';
4720
- if (this.configuration && this.configuration.apiKey) {
4721
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5248
+ if (this.configuration && this.configuration.accessToken) {
5249
+ const token = this.configuration.accessToken;
5250
+ const tokenString = yield token("authentik", []);
5251
+ if (tokenString) {
5252
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5253
+ }
4722
5254
  }
4723
5255
  const response = yield this.request({
4724
5256
  path: `/stages/source/`,
@@ -4749,8 +5281,12 @@ export class StagesApi extends runtime.BaseAPI {
4749
5281
  }
4750
5282
  const queryParameters = {};
4751
5283
  const headerParameters = {};
4752
- if (this.configuration && this.configuration.apiKey) {
4753
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5284
+ if (this.configuration && this.configuration.accessToken) {
5285
+ const token = this.configuration.accessToken;
5286
+ const tokenString = yield token("authentik", []);
5287
+ if (tokenString) {
5288
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5289
+ }
4754
5290
  }
4755
5291
  const response = yield this.request({
4756
5292
  path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4800,8 +5336,12 @@ export class StagesApi extends runtime.BaseAPI {
4800
5336
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
4801
5337
  }
4802
5338
  const headerParameters = {};
4803
- if (this.configuration && this.configuration.apiKey) {
4804
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5339
+ if (this.configuration && this.configuration.accessToken) {
5340
+ const token = this.configuration.accessToken;
5341
+ const tokenString = yield token("authentik", []);
5342
+ if (tokenString) {
5343
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5344
+ }
4805
5345
  }
4806
5346
  const response = yield this.request({
4807
5347
  path: `/stages/source/`,
@@ -4832,8 +5372,12 @@ export class StagesApi extends runtime.BaseAPI {
4832
5372
  const queryParameters = {};
4833
5373
  const headerParameters = {};
4834
5374
  headerParameters['Content-Type'] = 'application/json';
4835
- if (this.configuration && this.configuration.apiKey) {
4836
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5375
+ if (this.configuration && this.configuration.accessToken) {
5376
+ const token = this.configuration.accessToken;
5377
+ const tokenString = yield token("authentik", []);
5378
+ if (tokenString) {
5379
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5380
+ }
4837
5381
  }
4838
5382
  const response = yield this.request({
4839
5383
  path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4864,8 +5408,12 @@ export class StagesApi extends runtime.BaseAPI {
4864
5408
  }
4865
5409
  const queryParameters = {};
4866
5410
  const headerParameters = {};
4867
- if (this.configuration && this.configuration.apiKey) {
4868
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5411
+ if (this.configuration && this.configuration.accessToken) {
5412
+ const token = this.configuration.accessToken;
5413
+ const tokenString = yield token("authentik", []);
5414
+ if (tokenString) {
5415
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5416
+ }
4869
5417
  }
4870
5418
  const response = yield this.request({
4871
5419
  path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4899,8 +5447,12 @@ export class StagesApi extends runtime.BaseAPI {
4899
5447
  const queryParameters = {};
4900
5448
  const headerParameters = {};
4901
5449
  headerParameters['Content-Type'] = 'application/json';
4902
- if (this.configuration && this.configuration.apiKey) {
4903
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5450
+ if (this.configuration && this.configuration.accessToken) {
5451
+ const token = this.configuration.accessToken;
5452
+ const tokenString = yield token("authentik", []);
5453
+ if (tokenString) {
5454
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5455
+ }
4904
5456
  }
4905
5457
  const response = yield this.request({
4906
5458
  path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4931,8 +5483,12 @@ export class StagesApi extends runtime.BaseAPI {
4931
5483
  }
4932
5484
  const queryParameters = {};
4933
5485
  const headerParameters = {};
4934
- if (this.configuration && this.configuration.apiKey) {
4935
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5486
+ if (this.configuration && this.configuration.accessToken) {
5487
+ const token = this.configuration.accessToken;
5488
+ const tokenString = yield token("authentik", []);
5489
+ if (tokenString) {
5490
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5491
+ }
4936
5492
  }
4937
5493
  const response = yield this.request({
4938
5494
  path: `/stages/source/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -4963,8 +5519,12 @@ export class StagesApi extends runtime.BaseAPI {
4963
5519
  const queryParameters = {};
4964
5520
  const headerParameters = {};
4965
5521
  headerParameters['Content-Type'] = 'application/json';
4966
- if (this.configuration && this.configuration.apiKey) {
4967
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5522
+ if (this.configuration && this.configuration.accessToken) {
5523
+ const token = this.configuration.accessToken;
5524
+ const tokenString = yield token("authentik", []);
5525
+ if (tokenString) {
5526
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5527
+ }
4968
5528
  }
4969
5529
  const response = yield this.request({
4970
5530
  path: `/stages/user_delete/`,
@@ -4995,8 +5555,12 @@ export class StagesApi extends runtime.BaseAPI {
4995
5555
  }
4996
5556
  const queryParameters = {};
4997
5557
  const headerParameters = {};
4998
- if (this.configuration && this.configuration.apiKey) {
4999
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5558
+ if (this.configuration && this.configuration.accessToken) {
5559
+ const token = this.configuration.accessToken;
5560
+ const tokenString = yield token("authentik", []);
5561
+ if (tokenString) {
5562
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5563
+ }
5000
5564
  }
5001
5565
  const response = yield this.request({
5002
5566
  path: `/stages/user_delete/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5040,8 +5604,12 @@ export class StagesApi extends runtime.BaseAPI {
5040
5604
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5041
5605
  }
5042
5606
  const headerParameters = {};
5043
- if (this.configuration && this.configuration.apiKey) {
5044
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5607
+ if (this.configuration && this.configuration.accessToken) {
5608
+ const token = this.configuration.accessToken;
5609
+ const tokenString = yield token("authentik", []);
5610
+ if (tokenString) {
5611
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5612
+ }
5045
5613
  }
5046
5614
  const response = yield this.request({
5047
5615
  path: `/stages/user_delete/`,
@@ -5072,8 +5640,12 @@ export class StagesApi extends runtime.BaseAPI {
5072
5640
  const queryParameters = {};
5073
5641
  const headerParameters = {};
5074
5642
  headerParameters['Content-Type'] = 'application/json';
5075
- if (this.configuration && this.configuration.apiKey) {
5076
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5643
+ if (this.configuration && this.configuration.accessToken) {
5644
+ const token = this.configuration.accessToken;
5645
+ const tokenString = yield token("authentik", []);
5646
+ if (tokenString) {
5647
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5648
+ }
5077
5649
  }
5078
5650
  const response = yield this.request({
5079
5651
  path: `/stages/user_delete/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5104,8 +5676,12 @@ export class StagesApi extends runtime.BaseAPI {
5104
5676
  }
5105
5677
  const queryParameters = {};
5106
5678
  const headerParameters = {};
5107
- if (this.configuration && this.configuration.apiKey) {
5108
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5679
+ if (this.configuration && this.configuration.accessToken) {
5680
+ const token = this.configuration.accessToken;
5681
+ const tokenString = yield token("authentik", []);
5682
+ if (tokenString) {
5683
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5684
+ }
5109
5685
  }
5110
5686
  const response = yield this.request({
5111
5687
  path: `/stages/user_delete/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5139,8 +5715,12 @@ export class StagesApi extends runtime.BaseAPI {
5139
5715
  const queryParameters = {};
5140
5716
  const headerParameters = {};
5141
5717
  headerParameters['Content-Type'] = 'application/json';
5142
- if (this.configuration && this.configuration.apiKey) {
5143
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5718
+ if (this.configuration && this.configuration.accessToken) {
5719
+ const token = this.configuration.accessToken;
5720
+ const tokenString = yield token("authentik", []);
5721
+ if (tokenString) {
5722
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5723
+ }
5144
5724
  }
5145
5725
  const response = yield this.request({
5146
5726
  path: `/stages/user_delete/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5171,8 +5751,12 @@ export class StagesApi extends runtime.BaseAPI {
5171
5751
  }
5172
5752
  const queryParameters = {};
5173
5753
  const headerParameters = {};
5174
- if (this.configuration && this.configuration.apiKey) {
5175
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5754
+ if (this.configuration && this.configuration.accessToken) {
5755
+ const token = this.configuration.accessToken;
5756
+ const tokenString = yield token("authentik", []);
5757
+ if (tokenString) {
5758
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5759
+ }
5176
5760
  }
5177
5761
  const response = yield this.request({
5178
5762
  path: `/stages/user_delete/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5203,8 +5787,12 @@ export class StagesApi extends runtime.BaseAPI {
5203
5787
  const queryParameters = {};
5204
5788
  const headerParameters = {};
5205
5789
  headerParameters['Content-Type'] = 'application/json';
5206
- if (this.configuration && this.configuration.apiKey) {
5207
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5790
+ if (this.configuration && this.configuration.accessToken) {
5791
+ const token = this.configuration.accessToken;
5792
+ const tokenString = yield token("authentik", []);
5793
+ if (tokenString) {
5794
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5795
+ }
5208
5796
  }
5209
5797
  const response = yield this.request({
5210
5798
  path: `/stages/user_login/`,
@@ -5235,8 +5823,12 @@ export class StagesApi extends runtime.BaseAPI {
5235
5823
  }
5236
5824
  const queryParameters = {};
5237
5825
  const headerParameters = {};
5238
- if (this.configuration && this.configuration.apiKey) {
5239
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5826
+ if (this.configuration && this.configuration.accessToken) {
5827
+ const token = this.configuration.accessToken;
5828
+ const tokenString = yield token("authentik", []);
5829
+ if (tokenString) {
5830
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5831
+ }
5240
5832
  }
5241
5833
  const response = yield this.request({
5242
5834
  path: `/stages/user_login/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5295,8 +5887,12 @@ export class StagesApi extends runtime.BaseAPI {
5295
5887
  queryParameters['terminate_other_sessions'] = requestParameters.terminateOtherSessions;
5296
5888
  }
5297
5889
  const headerParameters = {};
5298
- if (this.configuration && this.configuration.apiKey) {
5299
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5890
+ if (this.configuration && this.configuration.accessToken) {
5891
+ const token = this.configuration.accessToken;
5892
+ const tokenString = yield token("authentik", []);
5893
+ if (tokenString) {
5894
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5895
+ }
5300
5896
  }
5301
5897
  const response = yield this.request({
5302
5898
  path: `/stages/user_login/`,
@@ -5327,8 +5923,12 @@ export class StagesApi extends runtime.BaseAPI {
5327
5923
  const queryParameters = {};
5328
5924
  const headerParameters = {};
5329
5925
  headerParameters['Content-Type'] = 'application/json';
5330
- if (this.configuration && this.configuration.apiKey) {
5331
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5926
+ if (this.configuration && this.configuration.accessToken) {
5927
+ const token = this.configuration.accessToken;
5928
+ const tokenString = yield token("authentik", []);
5929
+ if (tokenString) {
5930
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5931
+ }
5332
5932
  }
5333
5933
  const response = yield this.request({
5334
5934
  path: `/stages/user_login/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5359,8 +5959,12 @@ export class StagesApi extends runtime.BaseAPI {
5359
5959
  }
5360
5960
  const queryParameters = {};
5361
5961
  const headerParameters = {};
5362
- if (this.configuration && this.configuration.apiKey) {
5363
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
5962
+ if (this.configuration && this.configuration.accessToken) {
5963
+ const token = this.configuration.accessToken;
5964
+ const tokenString = yield token("authentik", []);
5965
+ if (tokenString) {
5966
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5967
+ }
5364
5968
  }
5365
5969
  const response = yield this.request({
5366
5970
  path: `/stages/user_login/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5394,8 +5998,12 @@ export class StagesApi extends runtime.BaseAPI {
5394
5998
  const queryParameters = {};
5395
5999
  const headerParameters = {};
5396
6000
  headerParameters['Content-Type'] = 'application/json';
5397
- if (this.configuration && this.configuration.apiKey) {
5398
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6001
+ if (this.configuration && this.configuration.accessToken) {
6002
+ const token = this.configuration.accessToken;
6003
+ const tokenString = yield token("authentik", []);
6004
+ if (tokenString) {
6005
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6006
+ }
5399
6007
  }
5400
6008
  const response = yield this.request({
5401
6009
  path: `/stages/user_login/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5426,8 +6034,12 @@ export class StagesApi extends runtime.BaseAPI {
5426
6034
  }
5427
6035
  const queryParameters = {};
5428
6036
  const headerParameters = {};
5429
- if (this.configuration && this.configuration.apiKey) {
5430
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6037
+ if (this.configuration && this.configuration.accessToken) {
6038
+ const token = this.configuration.accessToken;
6039
+ const tokenString = yield token("authentik", []);
6040
+ if (tokenString) {
6041
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6042
+ }
5431
6043
  }
5432
6044
  const response = yield this.request({
5433
6045
  path: `/stages/user_login/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5458,8 +6070,12 @@ export class StagesApi extends runtime.BaseAPI {
5458
6070
  const queryParameters = {};
5459
6071
  const headerParameters = {};
5460
6072
  headerParameters['Content-Type'] = 'application/json';
5461
- if (this.configuration && this.configuration.apiKey) {
5462
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6073
+ if (this.configuration && this.configuration.accessToken) {
6074
+ const token = this.configuration.accessToken;
6075
+ const tokenString = yield token("authentik", []);
6076
+ if (tokenString) {
6077
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6078
+ }
5463
6079
  }
5464
6080
  const response = yield this.request({
5465
6081
  path: `/stages/user_logout/`,
@@ -5490,8 +6106,12 @@ export class StagesApi extends runtime.BaseAPI {
5490
6106
  }
5491
6107
  const queryParameters = {};
5492
6108
  const headerParameters = {};
5493
- if (this.configuration && this.configuration.apiKey) {
5494
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6109
+ if (this.configuration && this.configuration.accessToken) {
6110
+ const token = this.configuration.accessToken;
6111
+ const tokenString = yield token("authentik", []);
6112
+ if (tokenString) {
6113
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6114
+ }
5495
6115
  }
5496
6116
  const response = yield this.request({
5497
6117
  path: `/stages/user_logout/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5535,8 +6155,12 @@ export class StagesApi extends runtime.BaseAPI {
5535
6155
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5536
6156
  }
5537
6157
  const headerParameters = {};
5538
- if (this.configuration && this.configuration.apiKey) {
5539
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6158
+ if (this.configuration && this.configuration.accessToken) {
6159
+ const token = this.configuration.accessToken;
6160
+ const tokenString = yield token("authentik", []);
6161
+ if (tokenString) {
6162
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6163
+ }
5540
6164
  }
5541
6165
  const response = yield this.request({
5542
6166
  path: `/stages/user_logout/`,
@@ -5567,8 +6191,12 @@ export class StagesApi extends runtime.BaseAPI {
5567
6191
  const queryParameters = {};
5568
6192
  const headerParameters = {};
5569
6193
  headerParameters['Content-Type'] = 'application/json';
5570
- if (this.configuration && this.configuration.apiKey) {
5571
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6194
+ if (this.configuration && this.configuration.accessToken) {
6195
+ const token = this.configuration.accessToken;
6196
+ const tokenString = yield token("authentik", []);
6197
+ if (tokenString) {
6198
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6199
+ }
5572
6200
  }
5573
6201
  const response = yield this.request({
5574
6202
  path: `/stages/user_logout/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5599,8 +6227,12 @@ export class StagesApi extends runtime.BaseAPI {
5599
6227
  }
5600
6228
  const queryParameters = {};
5601
6229
  const headerParameters = {};
5602
- if (this.configuration && this.configuration.apiKey) {
5603
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6230
+ if (this.configuration && this.configuration.accessToken) {
6231
+ const token = this.configuration.accessToken;
6232
+ const tokenString = yield token("authentik", []);
6233
+ if (tokenString) {
6234
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6235
+ }
5604
6236
  }
5605
6237
  const response = yield this.request({
5606
6238
  path: `/stages/user_logout/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5634,8 +6266,12 @@ export class StagesApi extends runtime.BaseAPI {
5634
6266
  const queryParameters = {};
5635
6267
  const headerParameters = {};
5636
6268
  headerParameters['Content-Type'] = 'application/json';
5637
- if (this.configuration && this.configuration.apiKey) {
5638
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6269
+ if (this.configuration && this.configuration.accessToken) {
6270
+ const token = this.configuration.accessToken;
6271
+ const tokenString = yield token("authentik", []);
6272
+ if (tokenString) {
6273
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6274
+ }
5639
6275
  }
5640
6276
  const response = yield this.request({
5641
6277
  path: `/stages/user_logout/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5666,8 +6302,12 @@ export class StagesApi extends runtime.BaseAPI {
5666
6302
  }
5667
6303
  const queryParameters = {};
5668
6304
  const headerParameters = {};
5669
- if (this.configuration && this.configuration.apiKey) {
5670
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6305
+ if (this.configuration && this.configuration.accessToken) {
6306
+ const token = this.configuration.accessToken;
6307
+ const tokenString = yield token("authentik", []);
6308
+ if (tokenString) {
6309
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6310
+ }
5671
6311
  }
5672
6312
  const response = yield this.request({
5673
6313
  path: `/stages/user_logout/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5698,8 +6338,12 @@ export class StagesApi extends runtime.BaseAPI {
5698
6338
  const queryParameters = {};
5699
6339
  const headerParameters = {};
5700
6340
  headerParameters['Content-Type'] = 'application/json';
5701
- if (this.configuration && this.configuration.apiKey) {
5702
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6341
+ if (this.configuration && this.configuration.accessToken) {
6342
+ const token = this.configuration.accessToken;
6343
+ const tokenString = yield token("authentik", []);
6344
+ if (tokenString) {
6345
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6346
+ }
5703
6347
  }
5704
6348
  const response = yield this.request({
5705
6349
  path: `/stages/user_write/`,
@@ -5730,8 +6374,12 @@ export class StagesApi extends runtime.BaseAPI {
5730
6374
  }
5731
6375
  const queryParameters = {};
5732
6376
  const headerParameters = {};
5733
- if (this.configuration && this.configuration.apiKey) {
5734
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6377
+ if (this.configuration && this.configuration.accessToken) {
6378
+ const token = this.configuration.accessToken;
6379
+ const tokenString = yield token("authentik", []);
6380
+ if (tokenString) {
6381
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6382
+ }
5735
6383
  }
5736
6384
  const response = yield this.request({
5737
6385
  path: `/stages/user_write/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5790,8 +6438,12 @@ export class StagesApi extends runtime.BaseAPI {
5790
6438
  queryParameters['user_type'] = requestParameters.userType;
5791
6439
  }
5792
6440
  const headerParameters = {};
5793
- if (this.configuration && this.configuration.apiKey) {
5794
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6441
+ if (this.configuration && this.configuration.accessToken) {
6442
+ const token = this.configuration.accessToken;
6443
+ const tokenString = yield token("authentik", []);
6444
+ if (tokenString) {
6445
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6446
+ }
5795
6447
  }
5796
6448
  const response = yield this.request({
5797
6449
  path: `/stages/user_write/`,
@@ -5822,8 +6474,12 @@ export class StagesApi extends runtime.BaseAPI {
5822
6474
  const queryParameters = {};
5823
6475
  const headerParameters = {};
5824
6476
  headerParameters['Content-Type'] = 'application/json';
5825
- if (this.configuration && this.configuration.apiKey) {
5826
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6477
+ if (this.configuration && this.configuration.accessToken) {
6478
+ const token = this.configuration.accessToken;
6479
+ const tokenString = yield token("authentik", []);
6480
+ if (tokenString) {
6481
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6482
+ }
5827
6483
  }
5828
6484
  const response = yield this.request({
5829
6485
  path: `/stages/user_write/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5854,8 +6510,12 @@ export class StagesApi extends runtime.BaseAPI {
5854
6510
  }
5855
6511
  const queryParameters = {};
5856
6512
  const headerParameters = {};
5857
- if (this.configuration && this.configuration.apiKey) {
5858
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6513
+ if (this.configuration && this.configuration.accessToken) {
6514
+ const token = this.configuration.accessToken;
6515
+ const tokenString = yield token("authentik", []);
6516
+ if (tokenString) {
6517
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6518
+ }
5859
6519
  }
5860
6520
  const response = yield this.request({
5861
6521
  path: `/stages/user_write/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5889,8 +6549,12 @@ export class StagesApi extends runtime.BaseAPI {
5889
6549
  const queryParameters = {};
5890
6550
  const headerParameters = {};
5891
6551
  headerParameters['Content-Type'] = 'application/json';
5892
- if (this.configuration && this.configuration.apiKey) {
5893
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6552
+ if (this.configuration && this.configuration.accessToken) {
6553
+ const token = this.configuration.accessToken;
6554
+ const tokenString = yield token("authentik", []);
6555
+ if (tokenString) {
6556
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6557
+ }
5894
6558
  }
5895
6559
  const response = yield this.request({
5896
6560
  path: `/stages/user_write/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
@@ -5921,8 +6585,12 @@ export class StagesApi extends runtime.BaseAPI {
5921
6585
  }
5922
6586
  const queryParameters = {};
5923
6587
  const headerParameters = {};
5924
- if (this.configuration && this.configuration.apiKey) {
5925
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
6588
+ if (this.configuration && this.configuration.accessToken) {
6589
+ const token = this.configuration.accessToken;
6590
+ const tokenString = yield token("authentik", []);
6591
+ if (tokenString) {
6592
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
6593
+ }
5926
6594
  }
5927
6595
  const response = yield this.request({
5928
6596
  path: `/stages/user_write/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),