@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 AuthenticatorsApi extends runtime.BaseAPI {
36
36
  queryParameters['user'] = requestParameters.user;
37
37
  }
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: `/authenticators/admin/all/`,
@@ -68,8 +72,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
68
72
  const queryParameters = {};
69
73
  const headerParameters = {};
70
74
  headerParameters['Content-Type'] = 'application/json';
71
- if (this.configuration && this.configuration.apiKey) {
72
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
75
+ if (this.configuration && this.configuration.accessToken) {
76
+ const token = this.configuration.accessToken;
77
+ const tokenString = yield token("authentik", []);
78
+ if (tokenString) {
79
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
80
+ }
73
81
  }
74
82
  const response = yield this.request({
75
83
  path: `/authenticators/admin/duo/`,
@@ -100,8 +108,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
100
108
  }
101
109
  const queryParameters = {};
102
110
  const headerParameters = {};
103
- if (this.configuration && this.configuration.apiKey) {
104
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
111
+ if (this.configuration && this.configuration.accessToken) {
112
+ const token = this.configuration.accessToken;
113
+ const tokenString = yield token("authentik", []);
114
+ if (tokenString) {
115
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
116
+ }
105
117
  }
106
118
  const response = yield this.request({
107
119
  path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -142,8 +154,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
142
154
  queryParameters['search'] = requestParameters.search;
143
155
  }
144
156
  const headerParameters = {};
145
- if (this.configuration && this.configuration.apiKey) {
146
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
157
+ if (this.configuration && this.configuration.accessToken) {
158
+ const token = this.configuration.accessToken;
159
+ const tokenString = yield token("authentik", []);
160
+ if (tokenString) {
161
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
162
+ }
147
163
  }
148
164
  const response = yield this.request({
149
165
  path: `/authenticators/admin/duo/`,
@@ -174,8 +190,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
174
190
  const queryParameters = {};
175
191
  const headerParameters = {};
176
192
  headerParameters['Content-Type'] = 'application/json';
177
- if (this.configuration && this.configuration.apiKey) {
178
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
193
+ if (this.configuration && this.configuration.accessToken) {
194
+ const token = this.configuration.accessToken;
195
+ const tokenString = yield token("authentik", []);
196
+ if (tokenString) {
197
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
198
+ }
179
199
  }
180
200
  const response = yield this.request({
181
201
  path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -206,8 +226,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
206
226
  }
207
227
  const queryParameters = {};
208
228
  const headerParameters = {};
209
- if (this.configuration && this.configuration.apiKey) {
210
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
229
+ if (this.configuration && this.configuration.accessToken) {
230
+ const token = this.configuration.accessToken;
231
+ const tokenString = yield token("authentik", []);
232
+ if (tokenString) {
233
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
234
+ }
211
235
  }
212
236
  const response = yield this.request({
213
237
  path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -241,8 +265,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
241
265
  const queryParameters = {};
242
266
  const headerParameters = {};
243
267
  headerParameters['Content-Type'] = 'application/json';
244
- if (this.configuration && this.configuration.apiKey) {
245
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
268
+ if (this.configuration && this.configuration.accessToken) {
269
+ const token = this.configuration.accessToken;
270
+ const tokenString = yield token("authentik", []);
271
+ if (tokenString) {
272
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
273
+ }
246
274
  }
247
275
  const response = yield this.request({
248
276
  path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -274,8 +302,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
274
302
  const queryParameters = {};
275
303
  const headerParameters = {};
276
304
  headerParameters['Content-Type'] = 'application/json';
277
- if (this.configuration && this.configuration.apiKey) {
278
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
305
+ if (this.configuration && this.configuration.accessToken) {
306
+ const token = this.configuration.accessToken;
307
+ const tokenString = yield token("authentik", []);
308
+ if (tokenString) {
309
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
310
+ }
279
311
  }
280
312
  const response = yield this.request({
281
313
  path: `/authenticators/admin/sms/`,
@@ -306,8 +338,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
306
338
  }
307
339
  const queryParameters = {};
308
340
  const headerParameters = {};
309
- if (this.configuration && this.configuration.apiKey) {
310
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
341
+ if (this.configuration && this.configuration.accessToken) {
342
+ const token = this.configuration.accessToken;
343
+ const tokenString = yield token("authentik", []);
344
+ if (tokenString) {
345
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
346
+ }
311
347
  }
312
348
  const response = yield this.request({
313
349
  path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -348,8 +384,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
348
384
  queryParameters['search'] = requestParameters.search;
349
385
  }
350
386
  const headerParameters = {};
351
- if (this.configuration && this.configuration.apiKey) {
352
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
387
+ if (this.configuration && this.configuration.accessToken) {
388
+ const token = this.configuration.accessToken;
389
+ const tokenString = yield token("authentik", []);
390
+ if (tokenString) {
391
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
392
+ }
353
393
  }
354
394
  const response = yield this.request({
355
395
  path: `/authenticators/admin/sms/`,
@@ -380,8 +420,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
380
420
  const queryParameters = {};
381
421
  const headerParameters = {};
382
422
  headerParameters['Content-Type'] = 'application/json';
383
- if (this.configuration && this.configuration.apiKey) {
384
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
423
+ if (this.configuration && this.configuration.accessToken) {
424
+ const token = this.configuration.accessToken;
425
+ const tokenString = yield token("authentik", []);
426
+ if (tokenString) {
427
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
428
+ }
385
429
  }
386
430
  const response = yield this.request({
387
431
  path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -412,8 +456,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
412
456
  }
413
457
  const queryParameters = {};
414
458
  const headerParameters = {};
415
- if (this.configuration && this.configuration.apiKey) {
416
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
459
+ if (this.configuration && this.configuration.accessToken) {
460
+ const token = this.configuration.accessToken;
461
+ const tokenString = yield token("authentik", []);
462
+ if (tokenString) {
463
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
464
+ }
417
465
  }
418
466
  const response = yield this.request({
419
467
  path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -447,8 +495,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
447
495
  const queryParameters = {};
448
496
  const headerParameters = {};
449
497
  headerParameters['Content-Type'] = 'application/json';
450
- if (this.configuration && this.configuration.apiKey) {
451
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
498
+ if (this.configuration && this.configuration.accessToken) {
499
+ const token = this.configuration.accessToken;
500
+ const tokenString = yield token("authentik", []);
501
+ if (tokenString) {
502
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
503
+ }
452
504
  }
453
505
  const response = yield this.request({
454
506
  path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -480,8 +532,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
480
532
  const queryParameters = {};
481
533
  const headerParameters = {};
482
534
  headerParameters['Content-Type'] = 'application/json';
483
- if (this.configuration && this.configuration.apiKey) {
484
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
535
+ if (this.configuration && this.configuration.accessToken) {
536
+ const token = this.configuration.accessToken;
537
+ const tokenString = yield token("authentik", []);
538
+ if (tokenString) {
539
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
540
+ }
485
541
  }
486
542
  const response = yield this.request({
487
543
  path: `/authenticators/admin/static/`,
@@ -512,8 +568,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
512
568
  }
513
569
  const queryParameters = {};
514
570
  const headerParameters = {};
515
- if (this.configuration && this.configuration.apiKey) {
516
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
571
+ if (this.configuration && this.configuration.accessToken) {
572
+ const token = this.configuration.accessToken;
573
+ const tokenString = yield token("authentik", []);
574
+ if (tokenString) {
575
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
576
+ }
517
577
  }
518
578
  const response = yield this.request({
519
579
  path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -554,8 +614,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
554
614
  queryParameters['search'] = requestParameters.search;
555
615
  }
556
616
  const headerParameters = {};
557
- if (this.configuration && this.configuration.apiKey) {
558
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
617
+ if (this.configuration && this.configuration.accessToken) {
618
+ const token = this.configuration.accessToken;
619
+ const tokenString = yield token("authentik", []);
620
+ if (tokenString) {
621
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
622
+ }
559
623
  }
560
624
  const response = yield this.request({
561
625
  path: `/authenticators/admin/static/`,
@@ -586,8 +650,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
586
650
  const queryParameters = {};
587
651
  const headerParameters = {};
588
652
  headerParameters['Content-Type'] = 'application/json';
589
- if (this.configuration && this.configuration.apiKey) {
590
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
653
+ if (this.configuration && this.configuration.accessToken) {
654
+ const token = this.configuration.accessToken;
655
+ const tokenString = yield token("authentik", []);
656
+ if (tokenString) {
657
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
658
+ }
591
659
  }
592
660
  const response = yield this.request({
593
661
  path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -618,8 +686,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
618
686
  }
619
687
  const queryParameters = {};
620
688
  const headerParameters = {};
621
- if (this.configuration && this.configuration.apiKey) {
622
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
689
+ if (this.configuration && this.configuration.accessToken) {
690
+ const token = this.configuration.accessToken;
691
+ const tokenString = yield token("authentik", []);
692
+ if (tokenString) {
693
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
694
+ }
623
695
  }
624
696
  const response = yield this.request({
625
697
  path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -653,8 +725,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
653
725
  const queryParameters = {};
654
726
  const headerParameters = {};
655
727
  headerParameters['Content-Type'] = 'application/json';
656
- if (this.configuration && this.configuration.apiKey) {
657
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
728
+ if (this.configuration && this.configuration.accessToken) {
729
+ const token = this.configuration.accessToken;
730
+ const tokenString = yield token("authentik", []);
731
+ if (tokenString) {
732
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
733
+ }
658
734
  }
659
735
  const response = yield this.request({
660
736
  path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -686,8 +762,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
686
762
  const queryParameters = {};
687
763
  const headerParameters = {};
688
764
  headerParameters['Content-Type'] = 'application/json';
689
- if (this.configuration && this.configuration.apiKey) {
690
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
765
+ if (this.configuration && this.configuration.accessToken) {
766
+ const token = this.configuration.accessToken;
767
+ const tokenString = yield token("authentik", []);
768
+ if (tokenString) {
769
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
770
+ }
691
771
  }
692
772
  const response = yield this.request({
693
773
  path: `/authenticators/admin/totp/`,
@@ -718,8 +798,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
718
798
  }
719
799
  const queryParameters = {};
720
800
  const headerParameters = {};
721
- if (this.configuration && this.configuration.apiKey) {
722
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
801
+ if (this.configuration && this.configuration.accessToken) {
802
+ const token = this.configuration.accessToken;
803
+ const tokenString = yield token("authentik", []);
804
+ if (tokenString) {
805
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
806
+ }
723
807
  }
724
808
  const response = yield this.request({
725
809
  path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -760,8 +844,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
760
844
  queryParameters['search'] = requestParameters.search;
761
845
  }
762
846
  const headerParameters = {};
763
- if (this.configuration && this.configuration.apiKey) {
764
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
847
+ if (this.configuration && this.configuration.accessToken) {
848
+ const token = this.configuration.accessToken;
849
+ const tokenString = yield token("authentik", []);
850
+ if (tokenString) {
851
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
852
+ }
765
853
  }
766
854
  const response = yield this.request({
767
855
  path: `/authenticators/admin/totp/`,
@@ -792,8 +880,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
792
880
  const queryParameters = {};
793
881
  const headerParameters = {};
794
882
  headerParameters['Content-Type'] = 'application/json';
795
- if (this.configuration && this.configuration.apiKey) {
796
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
883
+ if (this.configuration && this.configuration.accessToken) {
884
+ const token = this.configuration.accessToken;
885
+ const tokenString = yield token("authentik", []);
886
+ if (tokenString) {
887
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
888
+ }
797
889
  }
798
890
  const response = yield this.request({
799
891
  path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -824,8 +916,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
824
916
  }
825
917
  const queryParameters = {};
826
918
  const headerParameters = {};
827
- if (this.configuration && this.configuration.apiKey) {
828
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
919
+ if (this.configuration && this.configuration.accessToken) {
920
+ const token = this.configuration.accessToken;
921
+ const tokenString = yield token("authentik", []);
922
+ if (tokenString) {
923
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
924
+ }
829
925
  }
830
926
  const response = yield this.request({
831
927
  path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -859,8 +955,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
859
955
  const queryParameters = {};
860
956
  const headerParameters = {};
861
957
  headerParameters['Content-Type'] = 'application/json';
862
- if (this.configuration && this.configuration.apiKey) {
863
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
958
+ if (this.configuration && this.configuration.accessToken) {
959
+ const token = this.configuration.accessToken;
960
+ const tokenString = yield token("authentik", []);
961
+ if (tokenString) {
962
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
963
+ }
864
964
  }
865
965
  const response = yield this.request({
866
966
  path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -892,8 +992,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
892
992
  const queryParameters = {};
893
993
  const headerParameters = {};
894
994
  headerParameters['Content-Type'] = 'application/json';
895
- if (this.configuration && this.configuration.apiKey) {
896
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
995
+ if (this.configuration && this.configuration.accessToken) {
996
+ const token = this.configuration.accessToken;
997
+ const tokenString = yield token("authentik", []);
998
+ if (tokenString) {
999
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1000
+ }
897
1001
  }
898
1002
  const response = yield this.request({
899
1003
  path: `/authenticators/admin/webauthn/`,
@@ -924,8 +1028,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
924
1028
  }
925
1029
  const queryParameters = {};
926
1030
  const headerParameters = {};
927
- if (this.configuration && this.configuration.apiKey) {
928
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1031
+ if (this.configuration && this.configuration.accessToken) {
1032
+ const token = this.configuration.accessToken;
1033
+ const tokenString = yield token("authentik", []);
1034
+ if (tokenString) {
1035
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1036
+ }
929
1037
  }
930
1038
  const response = yield this.request({
931
1039
  path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -966,8 +1074,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
966
1074
  queryParameters['search'] = requestParameters.search;
967
1075
  }
968
1076
  const headerParameters = {};
969
- if (this.configuration && this.configuration.apiKey) {
970
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1077
+ if (this.configuration && this.configuration.accessToken) {
1078
+ const token = this.configuration.accessToken;
1079
+ const tokenString = yield token("authentik", []);
1080
+ if (tokenString) {
1081
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1082
+ }
971
1083
  }
972
1084
  const response = yield this.request({
973
1085
  path: `/authenticators/admin/webauthn/`,
@@ -998,8 +1110,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
998
1110
  const queryParameters = {};
999
1111
  const headerParameters = {};
1000
1112
  headerParameters['Content-Type'] = 'application/json';
1001
- if (this.configuration && this.configuration.apiKey) {
1002
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1113
+ if (this.configuration && this.configuration.accessToken) {
1114
+ const token = this.configuration.accessToken;
1115
+ const tokenString = yield token("authentik", []);
1116
+ if (tokenString) {
1117
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1118
+ }
1003
1119
  }
1004
1120
  const response = yield this.request({
1005
1121
  path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1030,8 +1146,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1030
1146
  }
1031
1147
  const queryParameters = {};
1032
1148
  const headerParameters = {};
1033
- if (this.configuration && this.configuration.apiKey) {
1034
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1149
+ if (this.configuration && this.configuration.accessToken) {
1150
+ const token = this.configuration.accessToken;
1151
+ const tokenString = yield token("authentik", []);
1152
+ if (tokenString) {
1153
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1154
+ }
1035
1155
  }
1036
1156
  const response = yield this.request({
1037
1157
  path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1065,8 +1185,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1065
1185
  const queryParameters = {};
1066
1186
  const headerParameters = {};
1067
1187
  headerParameters['Content-Type'] = 'application/json';
1068
- if (this.configuration && this.configuration.apiKey) {
1069
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1188
+ if (this.configuration && this.configuration.accessToken) {
1189
+ const token = this.configuration.accessToken;
1190
+ const tokenString = yield token("authentik", []);
1191
+ if (tokenString) {
1192
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1193
+ }
1070
1194
  }
1071
1195
  const response = yield this.request({
1072
1196
  path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1094,8 +1218,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1094
1218
  return __awaiter(this, void 0, void 0, function* () {
1095
1219
  const queryParameters = {};
1096
1220
  const headerParameters = {};
1097
- if (this.configuration && this.configuration.apiKey) {
1098
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1221
+ if (this.configuration && this.configuration.accessToken) {
1222
+ const token = this.configuration.accessToken;
1223
+ const tokenString = yield token("authentik", []);
1224
+ if (tokenString) {
1225
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1226
+ }
1099
1227
  }
1100
1228
  const response = yield this.request({
1101
1229
  path: `/authenticators/all/`,
@@ -1125,8 +1253,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1125
1253
  }
1126
1254
  const queryParameters = {};
1127
1255
  const headerParameters = {};
1128
- if (this.configuration && this.configuration.apiKey) {
1129
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1256
+ if (this.configuration && this.configuration.accessToken) {
1257
+ const token = this.configuration.accessToken;
1258
+ const tokenString = yield token("authentik", []);
1259
+ if (tokenString) {
1260
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1261
+ }
1130
1262
  }
1131
1263
  const response = yield this.request({
1132
1264
  path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1167,8 +1299,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1167
1299
  queryParameters['search'] = requestParameters.search;
1168
1300
  }
1169
1301
  const headerParameters = {};
1170
- if (this.configuration && this.configuration.apiKey) {
1171
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1302
+ if (this.configuration && this.configuration.accessToken) {
1303
+ const token = this.configuration.accessToken;
1304
+ const tokenString = yield token("authentik", []);
1305
+ if (tokenString) {
1306
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1307
+ }
1172
1308
  }
1173
1309
  const response = yield this.request({
1174
1310
  path: `/authenticators/duo/`,
@@ -1199,8 +1335,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1199
1335
  const queryParameters = {};
1200
1336
  const headerParameters = {};
1201
1337
  headerParameters['Content-Type'] = 'application/json';
1202
- if (this.configuration && this.configuration.apiKey) {
1203
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1338
+ if (this.configuration && this.configuration.accessToken) {
1339
+ const token = this.configuration.accessToken;
1340
+ const tokenString = yield token("authentik", []);
1341
+ if (tokenString) {
1342
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1343
+ }
1204
1344
  }
1205
1345
  const response = yield this.request({
1206
1346
  path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1231,8 +1371,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1231
1371
  }
1232
1372
  const queryParameters = {};
1233
1373
  const headerParameters = {};
1234
- if (this.configuration && this.configuration.apiKey) {
1235
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1374
+ if (this.configuration && this.configuration.accessToken) {
1375
+ const token = this.configuration.accessToken;
1376
+ const tokenString = yield token("authentik", []);
1377
+ if (tokenString) {
1378
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1379
+ }
1236
1380
  }
1237
1381
  const response = yield this.request({
1238
1382
  path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1266,8 +1410,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1266
1410
  const queryParameters = {};
1267
1411
  const headerParameters = {};
1268
1412
  headerParameters['Content-Type'] = 'application/json';
1269
- if (this.configuration && this.configuration.apiKey) {
1270
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1413
+ if (this.configuration && this.configuration.accessToken) {
1414
+ const token = this.configuration.accessToken;
1415
+ const tokenString = yield token("authentik", []);
1416
+ if (tokenString) {
1417
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1418
+ }
1271
1419
  }
1272
1420
  const response = yield this.request({
1273
1421
  path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1298,8 +1446,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1298
1446
  }
1299
1447
  const queryParameters = {};
1300
1448
  const headerParameters = {};
1301
- if (this.configuration && this.configuration.apiKey) {
1302
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1449
+ if (this.configuration && this.configuration.accessToken) {
1450
+ const token = this.configuration.accessToken;
1451
+ const tokenString = yield token("authentik", []);
1452
+ if (tokenString) {
1453
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1454
+ }
1303
1455
  }
1304
1456
  const response = yield this.request({
1305
1457
  path: `/authenticators/duo/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1329,8 +1481,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1329
1481
  }
1330
1482
  const queryParameters = {};
1331
1483
  const headerParameters = {};
1332
- if (this.configuration && this.configuration.apiKey) {
1333
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1484
+ if (this.configuration && this.configuration.accessToken) {
1485
+ const token = this.configuration.accessToken;
1486
+ const tokenString = yield token("authentik", []);
1487
+ if (tokenString) {
1488
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1489
+ }
1334
1490
  }
1335
1491
  const response = yield this.request({
1336
1492
  path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1371,8 +1527,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1371
1527
  queryParameters['search'] = requestParameters.search;
1372
1528
  }
1373
1529
  const headerParameters = {};
1374
- if (this.configuration && this.configuration.apiKey) {
1375
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1530
+ if (this.configuration && this.configuration.accessToken) {
1531
+ const token = this.configuration.accessToken;
1532
+ const tokenString = yield token("authentik", []);
1533
+ if (tokenString) {
1534
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1535
+ }
1376
1536
  }
1377
1537
  const response = yield this.request({
1378
1538
  path: `/authenticators/sms/`,
@@ -1403,8 +1563,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1403
1563
  const queryParameters = {};
1404
1564
  const headerParameters = {};
1405
1565
  headerParameters['Content-Type'] = 'application/json';
1406
- if (this.configuration && this.configuration.apiKey) {
1407
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1566
+ if (this.configuration && this.configuration.accessToken) {
1567
+ const token = this.configuration.accessToken;
1568
+ const tokenString = yield token("authentik", []);
1569
+ if (tokenString) {
1570
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1571
+ }
1408
1572
  }
1409
1573
  const response = yield this.request({
1410
1574
  path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1435,8 +1599,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1435
1599
  }
1436
1600
  const queryParameters = {};
1437
1601
  const headerParameters = {};
1438
- if (this.configuration && this.configuration.apiKey) {
1439
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1602
+ if (this.configuration && this.configuration.accessToken) {
1603
+ const token = this.configuration.accessToken;
1604
+ const tokenString = yield token("authentik", []);
1605
+ if (tokenString) {
1606
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1607
+ }
1440
1608
  }
1441
1609
  const response = yield this.request({
1442
1610
  path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1470,8 +1638,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1470
1638
  const queryParameters = {};
1471
1639
  const headerParameters = {};
1472
1640
  headerParameters['Content-Type'] = 'application/json';
1473
- if (this.configuration && this.configuration.apiKey) {
1474
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1641
+ if (this.configuration && this.configuration.accessToken) {
1642
+ const token = this.configuration.accessToken;
1643
+ const tokenString = yield token("authentik", []);
1644
+ if (tokenString) {
1645
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1646
+ }
1475
1647
  }
1476
1648
  const response = yield this.request({
1477
1649
  path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1502,8 +1674,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1502
1674
  }
1503
1675
  const queryParameters = {};
1504
1676
  const headerParameters = {};
1505
- if (this.configuration && this.configuration.apiKey) {
1506
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1677
+ if (this.configuration && this.configuration.accessToken) {
1678
+ const token = this.configuration.accessToken;
1679
+ const tokenString = yield token("authentik", []);
1680
+ if (tokenString) {
1681
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1682
+ }
1507
1683
  }
1508
1684
  const response = yield this.request({
1509
1685
  path: `/authenticators/sms/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1533,8 +1709,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1533
1709
  }
1534
1710
  const queryParameters = {};
1535
1711
  const headerParameters = {};
1536
- if (this.configuration && this.configuration.apiKey) {
1537
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1712
+ if (this.configuration && this.configuration.accessToken) {
1713
+ const token = this.configuration.accessToken;
1714
+ const tokenString = yield token("authentik", []);
1715
+ if (tokenString) {
1716
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1717
+ }
1538
1718
  }
1539
1719
  const response = yield this.request({
1540
1720
  path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1575,8 +1755,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1575
1755
  queryParameters['search'] = requestParameters.search;
1576
1756
  }
1577
1757
  const headerParameters = {};
1578
- if (this.configuration && this.configuration.apiKey) {
1579
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1758
+ if (this.configuration && this.configuration.accessToken) {
1759
+ const token = this.configuration.accessToken;
1760
+ const tokenString = yield token("authentik", []);
1761
+ if (tokenString) {
1762
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1763
+ }
1580
1764
  }
1581
1765
  const response = yield this.request({
1582
1766
  path: `/authenticators/static/`,
@@ -1607,8 +1791,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1607
1791
  const queryParameters = {};
1608
1792
  const headerParameters = {};
1609
1793
  headerParameters['Content-Type'] = 'application/json';
1610
- if (this.configuration && this.configuration.apiKey) {
1611
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1794
+ if (this.configuration && this.configuration.accessToken) {
1795
+ const token = this.configuration.accessToken;
1796
+ const tokenString = yield token("authentik", []);
1797
+ if (tokenString) {
1798
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1799
+ }
1612
1800
  }
1613
1801
  const response = yield this.request({
1614
1802
  path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1639,8 +1827,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1639
1827
  }
1640
1828
  const queryParameters = {};
1641
1829
  const headerParameters = {};
1642
- if (this.configuration && this.configuration.apiKey) {
1643
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1830
+ if (this.configuration && this.configuration.accessToken) {
1831
+ const token = this.configuration.accessToken;
1832
+ const tokenString = yield token("authentik", []);
1833
+ if (tokenString) {
1834
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1835
+ }
1644
1836
  }
1645
1837
  const response = yield this.request({
1646
1838
  path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1674,8 +1866,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1674
1866
  const queryParameters = {};
1675
1867
  const headerParameters = {};
1676
1868
  headerParameters['Content-Type'] = 'application/json';
1677
- if (this.configuration && this.configuration.apiKey) {
1678
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1869
+ if (this.configuration && this.configuration.accessToken) {
1870
+ const token = this.configuration.accessToken;
1871
+ const tokenString = yield token("authentik", []);
1872
+ if (tokenString) {
1873
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1874
+ }
1679
1875
  }
1680
1876
  const response = yield this.request({
1681
1877
  path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1706,8 +1902,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1706
1902
  }
1707
1903
  const queryParameters = {};
1708
1904
  const headerParameters = {};
1709
- if (this.configuration && this.configuration.apiKey) {
1710
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1905
+ if (this.configuration && this.configuration.accessToken) {
1906
+ const token = this.configuration.accessToken;
1907
+ const tokenString = yield token("authentik", []);
1908
+ if (tokenString) {
1909
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1910
+ }
1711
1911
  }
1712
1912
  const response = yield this.request({
1713
1913
  path: `/authenticators/static/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1737,8 +1937,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1737
1937
  }
1738
1938
  const queryParameters = {};
1739
1939
  const headerParameters = {};
1740
- if (this.configuration && this.configuration.apiKey) {
1741
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1940
+ if (this.configuration && this.configuration.accessToken) {
1941
+ const token = this.configuration.accessToken;
1942
+ const tokenString = yield token("authentik", []);
1943
+ if (tokenString) {
1944
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1945
+ }
1742
1946
  }
1743
1947
  const response = yield this.request({
1744
1948
  path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1779,8 +1983,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1779
1983
  queryParameters['search'] = requestParameters.search;
1780
1984
  }
1781
1985
  const headerParameters = {};
1782
- if (this.configuration && this.configuration.apiKey) {
1783
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1986
+ if (this.configuration && this.configuration.accessToken) {
1987
+ const token = this.configuration.accessToken;
1988
+ const tokenString = yield token("authentik", []);
1989
+ if (tokenString) {
1990
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1991
+ }
1784
1992
  }
1785
1993
  const response = yield this.request({
1786
1994
  path: `/authenticators/totp/`,
@@ -1811,8 +2019,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1811
2019
  const queryParameters = {};
1812
2020
  const headerParameters = {};
1813
2021
  headerParameters['Content-Type'] = 'application/json';
1814
- if (this.configuration && this.configuration.apiKey) {
1815
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2022
+ if (this.configuration && this.configuration.accessToken) {
2023
+ const token = this.configuration.accessToken;
2024
+ const tokenString = yield token("authentik", []);
2025
+ if (tokenString) {
2026
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2027
+ }
1816
2028
  }
1817
2029
  const response = yield this.request({
1818
2030
  path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1843,8 +2055,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1843
2055
  }
1844
2056
  const queryParameters = {};
1845
2057
  const headerParameters = {};
1846
- if (this.configuration && this.configuration.apiKey) {
1847
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2058
+ if (this.configuration && this.configuration.accessToken) {
2059
+ const token = this.configuration.accessToken;
2060
+ const tokenString = yield token("authentik", []);
2061
+ if (tokenString) {
2062
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2063
+ }
1848
2064
  }
1849
2065
  const response = yield this.request({
1850
2066
  path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1878,8 +2094,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1878
2094
  const queryParameters = {};
1879
2095
  const headerParameters = {};
1880
2096
  headerParameters['Content-Type'] = 'application/json';
1881
- if (this.configuration && this.configuration.apiKey) {
1882
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2097
+ if (this.configuration && this.configuration.accessToken) {
2098
+ const token = this.configuration.accessToken;
2099
+ const tokenString = yield token("authentik", []);
2100
+ if (tokenString) {
2101
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2102
+ }
1883
2103
  }
1884
2104
  const response = yield this.request({
1885
2105
  path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1910,8 +2130,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1910
2130
  }
1911
2131
  const queryParameters = {};
1912
2132
  const headerParameters = {};
1913
- if (this.configuration && this.configuration.apiKey) {
1914
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2133
+ if (this.configuration && this.configuration.accessToken) {
2134
+ const token = this.configuration.accessToken;
2135
+ const tokenString = yield token("authentik", []);
2136
+ if (tokenString) {
2137
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2138
+ }
1915
2139
  }
1916
2140
  const response = yield this.request({
1917
2141
  path: `/authenticators/totp/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1941,8 +2165,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1941
2165
  }
1942
2166
  const queryParameters = {};
1943
2167
  const headerParameters = {};
1944
- if (this.configuration && this.configuration.apiKey) {
1945
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2168
+ if (this.configuration && this.configuration.accessToken) {
2169
+ const token = this.configuration.accessToken;
2170
+ const tokenString = yield token("authentik", []);
2171
+ if (tokenString) {
2172
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2173
+ }
1946
2174
  }
1947
2175
  const response = yield this.request({
1948
2176
  path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -1983,8 +2211,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1983
2211
  queryParameters['search'] = requestParameters.search;
1984
2212
  }
1985
2213
  const headerParameters = {};
1986
- if (this.configuration && this.configuration.apiKey) {
1987
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2214
+ if (this.configuration && this.configuration.accessToken) {
2215
+ const token = this.configuration.accessToken;
2216
+ const tokenString = yield token("authentik", []);
2217
+ if (tokenString) {
2218
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2219
+ }
1988
2220
  }
1989
2221
  const response = yield this.request({
1990
2222
  path: `/authenticators/webauthn/`,
@@ -2015,8 +2247,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2015
2247
  const queryParameters = {};
2016
2248
  const headerParameters = {};
2017
2249
  headerParameters['Content-Type'] = 'application/json';
2018
- if (this.configuration && this.configuration.apiKey) {
2019
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2250
+ if (this.configuration && this.configuration.accessToken) {
2251
+ const token = this.configuration.accessToken;
2252
+ const tokenString = yield token("authentik", []);
2253
+ if (tokenString) {
2254
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2255
+ }
2020
2256
  }
2021
2257
  const response = yield this.request({
2022
2258
  path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2047,8 +2283,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2047
2283
  }
2048
2284
  const queryParameters = {};
2049
2285
  const headerParameters = {};
2050
- if (this.configuration && this.configuration.apiKey) {
2051
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2286
+ if (this.configuration && this.configuration.accessToken) {
2287
+ const token = this.configuration.accessToken;
2288
+ const tokenString = yield token("authentik", []);
2289
+ if (tokenString) {
2290
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2291
+ }
2052
2292
  }
2053
2293
  const response = yield this.request({
2054
2294
  path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2082,8 +2322,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2082
2322
  const queryParameters = {};
2083
2323
  const headerParameters = {};
2084
2324
  headerParameters['Content-Type'] = 'application/json';
2085
- if (this.configuration && this.configuration.apiKey) {
2086
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2325
+ if (this.configuration && this.configuration.accessToken) {
2326
+ const token = this.configuration.accessToken;
2327
+ const tokenString = yield token("authentik", []);
2328
+ if (tokenString) {
2329
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2330
+ }
2087
2331
  }
2088
2332
  const response = yield this.request({
2089
2333
  path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -2114,8 +2358,12 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2114
2358
  }
2115
2359
  const queryParameters = {};
2116
2360
  const headerParameters = {};
2117
- if (this.configuration && this.configuration.apiKey) {
2118
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2361
+ if (this.configuration && this.configuration.accessToken) {
2362
+ const token = this.configuration.accessToken;
2363
+ const tokenString = yield token("authentik", []);
2364
+ if (tokenString) {
2365
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2366
+ }
2119
2367
  }
2120
2368
  const response = yield this.request({
2121
2369
  path: `/authenticators/webauthn/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),