@goauthentik/api 2024.2.2-1712833826 → 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 (58) hide show
  1. package/dist/apis/AdminApi.js +60 -20
  2. package/dist/apis/AuthenticatorsApi.js +372 -124
  3. package/dist/apis/CoreApi.js +372 -124
  4. package/dist/apis/CryptoApi.js +60 -20
  5. package/dist/apis/EnterpriseApi.js +60 -20
  6. package/dist/apis/EventsApi.js +210 -70
  7. package/dist/apis/FlowsApi.js +150 -50
  8. package/dist/apis/ManagedApi.js +54 -18
  9. package/dist/apis/Oauth2Api.js +72 -24
  10. package/dist/apis/OutpostsApi.js +210 -70
  11. package/dist/apis/PoliciesApi.js +366 -122
  12. package/dist/apis/PropertymappingsApi.js +288 -96
  13. package/dist/apis/ProvidersApi.js +360 -120
  14. package/dist/apis/RacApi.js +78 -26
  15. package/dist/apis/RbacApi.js +102 -34
  16. package/dist/apis/RootApi.js +6 -2
  17. package/dist/apis/SchemaApi.js +6 -2
  18. package/dist/apis/SourcesApi.js +414 -138
  19. package/dist/apis/StagesApi.js +1002 -334
  20. package/dist/esm/apis/AdminApi.js +60 -20
  21. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  22. package/dist/esm/apis/CoreApi.js +372 -124
  23. package/dist/esm/apis/CryptoApi.js +60 -20
  24. package/dist/esm/apis/EnterpriseApi.js +60 -20
  25. package/dist/esm/apis/EventsApi.js +210 -70
  26. package/dist/esm/apis/FlowsApi.js +150 -50
  27. package/dist/esm/apis/ManagedApi.js +54 -18
  28. package/dist/esm/apis/Oauth2Api.js +72 -24
  29. package/dist/esm/apis/OutpostsApi.js +210 -70
  30. package/dist/esm/apis/PoliciesApi.js +366 -122
  31. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  32. package/dist/esm/apis/ProvidersApi.js +360 -120
  33. package/dist/esm/apis/RacApi.js +78 -26
  34. package/dist/esm/apis/RbacApi.js +102 -34
  35. package/dist/esm/apis/RootApi.js +6 -2
  36. package/dist/esm/apis/SchemaApi.js +6 -2
  37. package/dist/esm/apis/SourcesApi.js +414 -138
  38. package/dist/esm/apis/StagesApi.js +1002 -334
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +70 -30
  41. package/src/apis/AuthenticatorsApi.ts +434 -186
  42. package/src/apis/CoreApi.ts +434 -186
  43. package/src/apis/CryptoApi.ts +70 -30
  44. package/src/apis/EnterpriseApi.ts +70 -30
  45. package/src/apis/EventsApi.ts +245 -105
  46. package/src/apis/FlowsApi.ts +175 -75
  47. package/src/apis/ManagedApi.ts +63 -27
  48. package/src/apis/Oauth2Api.ts +84 -36
  49. package/src/apis/OutpostsApi.ts +245 -105
  50. package/src/apis/PoliciesApi.ts +427 -183
  51. package/src/apis/PropertymappingsApi.ts +336 -144
  52. package/src/apis/ProvidersApi.ts +420 -180
  53. package/src/apis/RacApi.ts +91 -39
  54. package/src/apis/RbacApi.ts +119 -51
  55. package/src/apis/RootApi.ts +7 -3
  56. package/src/apis/SchemaApi.ts +7 -3
  57. package/src/apis/SourcesApi.ts +483 -207
  58. package/src/apis/StagesApi.ts +1169 -501
@@ -412,10 +412,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
412
412
 
413
413
  const headerParameters: runtime.HTTPHeaders = {};
414
414
 
415
- if (this.configuration && this.configuration.apiKey) {
416
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
417
- }
415
+ if (this.configuration && this.configuration.accessToken) {
416
+ const token = this.configuration.accessToken;
417
+ const tokenString = await token("authentik", []);
418
418
 
419
+ if (tokenString) {
420
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
421
+ }
422
+ }
419
423
  const response = await this.request({
420
424
  path: `/authenticators/admin/all/`,
421
425
  method: 'GET',
@@ -448,10 +452,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
448
452
 
449
453
  headerParameters['Content-Type'] = 'application/json';
450
454
 
451
- if (this.configuration && this.configuration.apiKey) {
452
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
453
- }
455
+ if (this.configuration && this.configuration.accessToken) {
456
+ const token = this.configuration.accessToken;
457
+ const tokenString = await token("authentik", []);
454
458
 
459
+ if (tokenString) {
460
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
461
+ }
462
+ }
455
463
  const response = await this.request({
456
464
  path: `/authenticators/admin/duo/`,
457
465
  method: 'POST',
@@ -483,10 +491,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
483
491
 
484
492
  const headerParameters: runtime.HTTPHeaders = {};
485
493
 
486
- if (this.configuration && this.configuration.apiKey) {
487
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
488
- }
494
+ if (this.configuration && this.configuration.accessToken) {
495
+ const token = this.configuration.accessToken;
496
+ const tokenString = await token("authentik", []);
489
497
 
498
+ if (tokenString) {
499
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
500
+ }
501
+ }
490
502
  const response = await this.request({
491
503
  path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
492
504
  method: 'DELETE',
@@ -532,10 +544,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
532
544
 
533
545
  const headerParameters: runtime.HTTPHeaders = {};
534
546
 
535
- if (this.configuration && this.configuration.apiKey) {
536
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
537
- }
547
+ if (this.configuration && this.configuration.accessToken) {
548
+ const token = this.configuration.accessToken;
549
+ const tokenString = await token("authentik", []);
538
550
 
551
+ if (tokenString) {
552
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
553
+ }
554
+ }
539
555
  const response = await this.request({
540
556
  path: `/authenticators/admin/duo/`,
541
557
  method: 'GET',
@@ -568,10 +584,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
568
584
 
569
585
  headerParameters['Content-Type'] = 'application/json';
570
586
 
571
- if (this.configuration && this.configuration.apiKey) {
572
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
573
- }
587
+ if (this.configuration && this.configuration.accessToken) {
588
+ const token = this.configuration.accessToken;
589
+ const tokenString = await token("authentik", []);
574
590
 
591
+ if (tokenString) {
592
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
593
+ }
594
+ }
575
595
  const response = await this.request({
576
596
  path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
577
597
  method: 'PATCH',
@@ -603,10 +623,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
603
623
 
604
624
  const headerParameters: runtime.HTTPHeaders = {};
605
625
 
606
- if (this.configuration && this.configuration.apiKey) {
607
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
608
- }
626
+ if (this.configuration && this.configuration.accessToken) {
627
+ const token = this.configuration.accessToken;
628
+ const tokenString = await token("authentik", []);
609
629
 
630
+ if (tokenString) {
631
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
632
+ }
633
+ }
610
634
  const response = await this.request({
611
635
  path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
612
636
  method: 'GET',
@@ -643,10 +667,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
643
667
 
644
668
  headerParameters['Content-Type'] = 'application/json';
645
669
 
646
- if (this.configuration && this.configuration.apiKey) {
647
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
648
- }
670
+ if (this.configuration && this.configuration.accessToken) {
671
+ const token = this.configuration.accessToken;
672
+ const tokenString = await token("authentik", []);
649
673
 
674
+ if (tokenString) {
675
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
676
+ }
677
+ }
650
678
  const response = await this.request({
651
679
  path: `/authenticators/admin/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
652
680
  method: 'PUT',
@@ -680,10 +708,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
680
708
 
681
709
  headerParameters['Content-Type'] = 'application/json';
682
710
 
683
- if (this.configuration && this.configuration.apiKey) {
684
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
685
- }
711
+ if (this.configuration && this.configuration.accessToken) {
712
+ const token = this.configuration.accessToken;
713
+ const tokenString = await token("authentik", []);
686
714
 
715
+ if (tokenString) {
716
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
717
+ }
718
+ }
687
719
  const response = await this.request({
688
720
  path: `/authenticators/admin/sms/`,
689
721
  method: 'POST',
@@ -715,10 +747,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
715
747
 
716
748
  const headerParameters: runtime.HTTPHeaders = {};
717
749
 
718
- if (this.configuration && this.configuration.apiKey) {
719
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
720
- }
750
+ if (this.configuration && this.configuration.accessToken) {
751
+ const token = this.configuration.accessToken;
752
+ const tokenString = await token("authentik", []);
721
753
 
754
+ if (tokenString) {
755
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
756
+ }
757
+ }
722
758
  const response = await this.request({
723
759
  path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
724
760
  method: 'DELETE',
@@ -764,10 +800,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
764
800
 
765
801
  const headerParameters: runtime.HTTPHeaders = {};
766
802
 
767
- if (this.configuration && this.configuration.apiKey) {
768
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
769
- }
803
+ if (this.configuration && this.configuration.accessToken) {
804
+ const token = this.configuration.accessToken;
805
+ const tokenString = await token("authentik", []);
770
806
 
807
+ if (tokenString) {
808
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
809
+ }
810
+ }
771
811
  const response = await this.request({
772
812
  path: `/authenticators/admin/sms/`,
773
813
  method: 'GET',
@@ -800,10 +840,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
800
840
 
801
841
  headerParameters['Content-Type'] = 'application/json';
802
842
 
803
- if (this.configuration && this.configuration.apiKey) {
804
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
805
- }
843
+ if (this.configuration && this.configuration.accessToken) {
844
+ const token = this.configuration.accessToken;
845
+ const tokenString = await token("authentik", []);
806
846
 
847
+ if (tokenString) {
848
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
849
+ }
850
+ }
807
851
  const response = await this.request({
808
852
  path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
809
853
  method: 'PATCH',
@@ -835,10 +879,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
835
879
 
836
880
  const headerParameters: runtime.HTTPHeaders = {};
837
881
 
838
- if (this.configuration && this.configuration.apiKey) {
839
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
840
- }
882
+ if (this.configuration && this.configuration.accessToken) {
883
+ const token = this.configuration.accessToken;
884
+ const tokenString = await token("authentik", []);
841
885
 
886
+ if (tokenString) {
887
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
888
+ }
889
+ }
842
890
  const response = await this.request({
843
891
  path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
844
892
  method: 'GET',
@@ -875,10 +923,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
875
923
 
876
924
  headerParameters['Content-Type'] = 'application/json';
877
925
 
878
- if (this.configuration && this.configuration.apiKey) {
879
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
880
- }
926
+ if (this.configuration && this.configuration.accessToken) {
927
+ const token = this.configuration.accessToken;
928
+ const tokenString = await token("authentik", []);
881
929
 
930
+ if (tokenString) {
931
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
932
+ }
933
+ }
882
934
  const response = await this.request({
883
935
  path: `/authenticators/admin/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
884
936
  method: 'PUT',
@@ -912,10 +964,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
912
964
 
913
965
  headerParameters['Content-Type'] = 'application/json';
914
966
 
915
- if (this.configuration && this.configuration.apiKey) {
916
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
917
- }
967
+ if (this.configuration && this.configuration.accessToken) {
968
+ const token = this.configuration.accessToken;
969
+ const tokenString = await token("authentik", []);
918
970
 
971
+ if (tokenString) {
972
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
973
+ }
974
+ }
919
975
  const response = await this.request({
920
976
  path: `/authenticators/admin/static/`,
921
977
  method: 'POST',
@@ -947,10 +1003,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
947
1003
 
948
1004
  const headerParameters: runtime.HTTPHeaders = {};
949
1005
 
950
- if (this.configuration && this.configuration.apiKey) {
951
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
952
- }
1006
+ if (this.configuration && this.configuration.accessToken) {
1007
+ const token = this.configuration.accessToken;
1008
+ const tokenString = await token("authentik", []);
953
1009
 
1010
+ if (tokenString) {
1011
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1012
+ }
1013
+ }
954
1014
  const response = await this.request({
955
1015
  path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
956
1016
  method: 'DELETE',
@@ -996,10 +1056,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
996
1056
 
997
1057
  const headerParameters: runtime.HTTPHeaders = {};
998
1058
 
999
- if (this.configuration && this.configuration.apiKey) {
1000
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1001
- }
1059
+ if (this.configuration && this.configuration.accessToken) {
1060
+ const token = this.configuration.accessToken;
1061
+ const tokenString = await token("authentik", []);
1002
1062
 
1063
+ if (tokenString) {
1064
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1065
+ }
1066
+ }
1003
1067
  const response = await this.request({
1004
1068
  path: `/authenticators/admin/static/`,
1005
1069
  method: 'GET',
@@ -1032,10 +1096,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1032
1096
 
1033
1097
  headerParameters['Content-Type'] = 'application/json';
1034
1098
 
1035
- if (this.configuration && this.configuration.apiKey) {
1036
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1037
- }
1099
+ if (this.configuration && this.configuration.accessToken) {
1100
+ const token = this.configuration.accessToken;
1101
+ const tokenString = await token("authentik", []);
1038
1102
 
1103
+ if (tokenString) {
1104
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1105
+ }
1106
+ }
1039
1107
  const response = await this.request({
1040
1108
  path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1041
1109
  method: 'PATCH',
@@ -1067,10 +1135,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1067
1135
 
1068
1136
  const headerParameters: runtime.HTTPHeaders = {};
1069
1137
 
1070
- if (this.configuration && this.configuration.apiKey) {
1071
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1072
- }
1138
+ if (this.configuration && this.configuration.accessToken) {
1139
+ const token = this.configuration.accessToken;
1140
+ const tokenString = await token("authentik", []);
1073
1141
 
1142
+ if (tokenString) {
1143
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1144
+ }
1145
+ }
1074
1146
  const response = await this.request({
1075
1147
  path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1076
1148
  method: 'GET',
@@ -1107,10 +1179,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1107
1179
 
1108
1180
  headerParameters['Content-Type'] = 'application/json';
1109
1181
 
1110
- if (this.configuration && this.configuration.apiKey) {
1111
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1112
- }
1182
+ if (this.configuration && this.configuration.accessToken) {
1183
+ const token = this.configuration.accessToken;
1184
+ const tokenString = await token("authentik", []);
1113
1185
 
1186
+ if (tokenString) {
1187
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1188
+ }
1189
+ }
1114
1190
  const response = await this.request({
1115
1191
  path: `/authenticators/admin/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1116
1192
  method: 'PUT',
@@ -1144,10 +1220,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1144
1220
 
1145
1221
  headerParameters['Content-Type'] = 'application/json';
1146
1222
 
1147
- if (this.configuration && this.configuration.apiKey) {
1148
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1149
- }
1223
+ if (this.configuration && this.configuration.accessToken) {
1224
+ const token = this.configuration.accessToken;
1225
+ const tokenString = await token("authentik", []);
1150
1226
 
1227
+ if (tokenString) {
1228
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1229
+ }
1230
+ }
1151
1231
  const response = await this.request({
1152
1232
  path: `/authenticators/admin/totp/`,
1153
1233
  method: 'POST',
@@ -1179,10 +1259,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1179
1259
 
1180
1260
  const headerParameters: runtime.HTTPHeaders = {};
1181
1261
 
1182
- if (this.configuration && this.configuration.apiKey) {
1183
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1184
- }
1262
+ if (this.configuration && this.configuration.accessToken) {
1263
+ const token = this.configuration.accessToken;
1264
+ const tokenString = await token("authentik", []);
1185
1265
 
1266
+ if (tokenString) {
1267
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1268
+ }
1269
+ }
1186
1270
  const response = await this.request({
1187
1271
  path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1188
1272
  method: 'DELETE',
@@ -1228,10 +1312,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1228
1312
 
1229
1313
  const headerParameters: runtime.HTTPHeaders = {};
1230
1314
 
1231
- if (this.configuration && this.configuration.apiKey) {
1232
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1233
- }
1315
+ if (this.configuration && this.configuration.accessToken) {
1316
+ const token = this.configuration.accessToken;
1317
+ const tokenString = await token("authentik", []);
1234
1318
 
1319
+ if (tokenString) {
1320
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1321
+ }
1322
+ }
1235
1323
  const response = await this.request({
1236
1324
  path: `/authenticators/admin/totp/`,
1237
1325
  method: 'GET',
@@ -1264,10 +1352,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1264
1352
 
1265
1353
  headerParameters['Content-Type'] = 'application/json';
1266
1354
 
1267
- if (this.configuration && this.configuration.apiKey) {
1268
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1269
- }
1355
+ if (this.configuration && this.configuration.accessToken) {
1356
+ const token = this.configuration.accessToken;
1357
+ const tokenString = await token("authentik", []);
1270
1358
 
1359
+ if (tokenString) {
1360
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1361
+ }
1362
+ }
1271
1363
  const response = await this.request({
1272
1364
  path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1273
1365
  method: 'PATCH',
@@ -1299,10 +1391,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1299
1391
 
1300
1392
  const headerParameters: runtime.HTTPHeaders = {};
1301
1393
 
1302
- if (this.configuration && this.configuration.apiKey) {
1303
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1304
- }
1394
+ if (this.configuration && this.configuration.accessToken) {
1395
+ const token = this.configuration.accessToken;
1396
+ const tokenString = await token("authentik", []);
1305
1397
 
1398
+ if (tokenString) {
1399
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1400
+ }
1401
+ }
1306
1402
  const response = await this.request({
1307
1403
  path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1308
1404
  method: 'GET',
@@ -1339,10 +1435,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1339
1435
 
1340
1436
  headerParameters['Content-Type'] = 'application/json';
1341
1437
 
1342
- if (this.configuration && this.configuration.apiKey) {
1343
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1344
- }
1438
+ if (this.configuration && this.configuration.accessToken) {
1439
+ const token = this.configuration.accessToken;
1440
+ const tokenString = await token("authentik", []);
1345
1441
 
1442
+ if (tokenString) {
1443
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1444
+ }
1445
+ }
1346
1446
  const response = await this.request({
1347
1447
  path: `/authenticators/admin/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1348
1448
  method: 'PUT',
@@ -1376,10 +1476,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1376
1476
 
1377
1477
  headerParameters['Content-Type'] = 'application/json';
1378
1478
 
1379
- if (this.configuration && this.configuration.apiKey) {
1380
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1381
- }
1479
+ if (this.configuration && this.configuration.accessToken) {
1480
+ const token = this.configuration.accessToken;
1481
+ const tokenString = await token("authentik", []);
1382
1482
 
1483
+ if (tokenString) {
1484
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1485
+ }
1486
+ }
1383
1487
  const response = await this.request({
1384
1488
  path: `/authenticators/admin/webauthn/`,
1385
1489
  method: 'POST',
@@ -1411,10 +1515,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1411
1515
 
1412
1516
  const headerParameters: runtime.HTTPHeaders = {};
1413
1517
 
1414
- if (this.configuration && this.configuration.apiKey) {
1415
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1416
- }
1518
+ if (this.configuration && this.configuration.accessToken) {
1519
+ const token = this.configuration.accessToken;
1520
+ const tokenString = await token("authentik", []);
1417
1521
 
1522
+ if (tokenString) {
1523
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1524
+ }
1525
+ }
1418
1526
  const response = await this.request({
1419
1527
  path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1420
1528
  method: 'DELETE',
@@ -1460,10 +1568,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1460
1568
 
1461
1569
  const headerParameters: runtime.HTTPHeaders = {};
1462
1570
 
1463
- if (this.configuration && this.configuration.apiKey) {
1464
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1465
- }
1571
+ if (this.configuration && this.configuration.accessToken) {
1572
+ const token = this.configuration.accessToken;
1573
+ const tokenString = await token("authentik", []);
1466
1574
 
1575
+ if (tokenString) {
1576
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1577
+ }
1578
+ }
1467
1579
  const response = await this.request({
1468
1580
  path: `/authenticators/admin/webauthn/`,
1469
1581
  method: 'GET',
@@ -1496,10 +1608,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1496
1608
 
1497
1609
  headerParameters['Content-Type'] = 'application/json';
1498
1610
 
1499
- if (this.configuration && this.configuration.apiKey) {
1500
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1501
- }
1611
+ if (this.configuration && this.configuration.accessToken) {
1612
+ const token = this.configuration.accessToken;
1613
+ const tokenString = await token("authentik", []);
1502
1614
 
1615
+ if (tokenString) {
1616
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1617
+ }
1618
+ }
1503
1619
  const response = await this.request({
1504
1620
  path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1505
1621
  method: 'PATCH',
@@ -1531,10 +1647,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1531
1647
 
1532
1648
  const headerParameters: runtime.HTTPHeaders = {};
1533
1649
 
1534
- if (this.configuration && this.configuration.apiKey) {
1535
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1536
- }
1650
+ if (this.configuration && this.configuration.accessToken) {
1651
+ const token = this.configuration.accessToken;
1652
+ const tokenString = await token("authentik", []);
1537
1653
 
1654
+ if (tokenString) {
1655
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1656
+ }
1657
+ }
1538
1658
  const response = await this.request({
1539
1659
  path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1540
1660
  method: 'GET',
@@ -1571,10 +1691,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1571
1691
 
1572
1692
  headerParameters['Content-Type'] = 'application/json';
1573
1693
 
1574
- if (this.configuration && this.configuration.apiKey) {
1575
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1576
- }
1694
+ if (this.configuration && this.configuration.accessToken) {
1695
+ const token = this.configuration.accessToken;
1696
+ const tokenString = await token("authentik", []);
1577
1697
 
1698
+ if (tokenString) {
1699
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1700
+ }
1701
+ }
1578
1702
  const response = await this.request({
1579
1703
  path: `/authenticators/admin/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1580
1704
  method: 'PUT',
@@ -1602,10 +1726,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1602
1726
 
1603
1727
  const headerParameters: runtime.HTTPHeaders = {};
1604
1728
 
1605
- if (this.configuration && this.configuration.apiKey) {
1606
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1607
- }
1729
+ if (this.configuration && this.configuration.accessToken) {
1730
+ const token = this.configuration.accessToken;
1731
+ const tokenString = await token("authentik", []);
1608
1732
 
1733
+ if (tokenString) {
1734
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1735
+ }
1736
+ }
1609
1737
  const response = await this.request({
1610
1738
  path: `/authenticators/all/`,
1611
1739
  method: 'GET',
@@ -1636,10 +1764,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1636
1764
 
1637
1765
  const headerParameters: runtime.HTTPHeaders = {};
1638
1766
 
1639
- if (this.configuration && this.configuration.apiKey) {
1640
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1641
- }
1767
+ if (this.configuration && this.configuration.accessToken) {
1768
+ const token = this.configuration.accessToken;
1769
+ const tokenString = await token("authentik", []);
1642
1770
 
1771
+ if (tokenString) {
1772
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1773
+ }
1774
+ }
1643
1775
  const response = await this.request({
1644
1776
  path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1645
1777
  method: 'DELETE',
@@ -1685,10 +1817,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1685
1817
 
1686
1818
  const headerParameters: runtime.HTTPHeaders = {};
1687
1819
 
1688
- if (this.configuration && this.configuration.apiKey) {
1689
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1690
- }
1820
+ if (this.configuration && this.configuration.accessToken) {
1821
+ const token = this.configuration.accessToken;
1822
+ const tokenString = await token("authentik", []);
1691
1823
 
1824
+ if (tokenString) {
1825
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1826
+ }
1827
+ }
1692
1828
  const response = await this.request({
1693
1829
  path: `/authenticators/duo/`,
1694
1830
  method: 'GET',
@@ -1721,10 +1857,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1721
1857
 
1722
1858
  headerParameters['Content-Type'] = 'application/json';
1723
1859
 
1724
- if (this.configuration && this.configuration.apiKey) {
1725
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1726
- }
1860
+ if (this.configuration && this.configuration.accessToken) {
1861
+ const token = this.configuration.accessToken;
1862
+ const tokenString = await token("authentik", []);
1727
1863
 
1864
+ if (tokenString) {
1865
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1866
+ }
1867
+ }
1728
1868
  const response = await this.request({
1729
1869
  path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1730
1870
  method: 'PATCH',
@@ -1756,10 +1896,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1756
1896
 
1757
1897
  const headerParameters: runtime.HTTPHeaders = {};
1758
1898
 
1759
- if (this.configuration && this.configuration.apiKey) {
1760
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1761
- }
1899
+ if (this.configuration && this.configuration.accessToken) {
1900
+ const token = this.configuration.accessToken;
1901
+ const tokenString = await token("authentik", []);
1762
1902
 
1903
+ if (tokenString) {
1904
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1905
+ }
1906
+ }
1763
1907
  const response = await this.request({
1764
1908
  path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1765
1909
  method: 'GET',
@@ -1796,10 +1940,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1796
1940
 
1797
1941
  headerParameters['Content-Type'] = 'application/json';
1798
1942
 
1799
- if (this.configuration && this.configuration.apiKey) {
1800
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1801
- }
1943
+ if (this.configuration && this.configuration.accessToken) {
1944
+ const token = this.configuration.accessToken;
1945
+ const tokenString = await token("authentik", []);
1802
1946
 
1947
+ if (tokenString) {
1948
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1949
+ }
1950
+ }
1803
1951
  const response = await this.request({
1804
1952
  path: `/authenticators/duo/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1805
1953
  method: 'PUT',
@@ -1831,10 +1979,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1831
1979
 
1832
1980
  const headerParameters: runtime.HTTPHeaders = {};
1833
1981
 
1834
- if (this.configuration && this.configuration.apiKey) {
1835
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1836
- }
1982
+ if (this.configuration && this.configuration.accessToken) {
1983
+ const token = this.configuration.accessToken;
1984
+ const tokenString = await token("authentik", []);
1837
1985
 
1986
+ if (tokenString) {
1987
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1988
+ }
1989
+ }
1838
1990
  const response = await this.request({
1839
1991
  path: `/authenticators/duo/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1840
1992
  method: 'GET',
@@ -1865,10 +2017,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1865
2017
 
1866
2018
  const headerParameters: runtime.HTTPHeaders = {};
1867
2019
 
1868
- if (this.configuration && this.configuration.apiKey) {
1869
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1870
- }
2020
+ if (this.configuration && this.configuration.accessToken) {
2021
+ const token = this.configuration.accessToken;
2022
+ const tokenString = await token("authentik", []);
1871
2023
 
2024
+ if (tokenString) {
2025
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2026
+ }
2027
+ }
1872
2028
  const response = await this.request({
1873
2029
  path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1874
2030
  method: 'DELETE',
@@ -1914,10 +2070,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1914
2070
 
1915
2071
  const headerParameters: runtime.HTTPHeaders = {};
1916
2072
 
1917
- if (this.configuration && this.configuration.apiKey) {
1918
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1919
- }
2073
+ if (this.configuration && this.configuration.accessToken) {
2074
+ const token = this.configuration.accessToken;
2075
+ const tokenString = await token("authentik", []);
1920
2076
 
2077
+ if (tokenString) {
2078
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2079
+ }
2080
+ }
1921
2081
  const response = await this.request({
1922
2082
  path: `/authenticators/sms/`,
1923
2083
  method: 'GET',
@@ -1950,10 +2110,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1950
2110
 
1951
2111
  headerParameters['Content-Type'] = 'application/json';
1952
2112
 
1953
- if (this.configuration && this.configuration.apiKey) {
1954
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1955
- }
2113
+ if (this.configuration && this.configuration.accessToken) {
2114
+ const token = this.configuration.accessToken;
2115
+ const tokenString = await token("authentik", []);
1956
2116
 
2117
+ if (tokenString) {
2118
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2119
+ }
2120
+ }
1957
2121
  const response = await this.request({
1958
2122
  path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1959
2123
  method: 'PATCH',
@@ -1985,10 +2149,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
1985
2149
 
1986
2150
  const headerParameters: runtime.HTTPHeaders = {};
1987
2151
 
1988
- if (this.configuration && this.configuration.apiKey) {
1989
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1990
- }
2152
+ if (this.configuration && this.configuration.accessToken) {
2153
+ const token = this.configuration.accessToken;
2154
+ const tokenString = await token("authentik", []);
1991
2155
 
2156
+ if (tokenString) {
2157
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2158
+ }
2159
+ }
1992
2160
  const response = await this.request({
1993
2161
  path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1994
2162
  method: 'GET',
@@ -2025,10 +2193,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2025
2193
 
2026
2194
  headerParameters['Content-Type'] = 'application/json';
2027
2195
 
2028
- if (this.configuration && this.configuration.apiKey) {
2029
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2030
- }
2196
+ if (this.configuration && this.configuration.accessToken) {
2197
+ const token = this.configuration.accessToken;
2198
+ const tokenString = await token("authentik", []);
2031
2199
 
2200
+ if (tokenString) {
2201
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2202
+ }
2203
+ }
2032
2204
  const response = await this.request({
2033
2205
  path: `/authenticators/sms/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2034
2206
  method: 'PUT',
@@ -2060,10 +2232,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2060
2232
 
2061
2233
  const headerParameters: runtime.HTTPHeaders = {};
2062
2234
 
2063
- if (this.configuration && this.configuration.apiKey) {
2064
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2065
- }
2235
+ if (this.configuration && this.configuration.accessToken) {
2236
+ const token = this.configuration.accessToken;
2237
+ const tokenString = await token("authentik", []);
2066
2238
 
2239
+ if (tokenString) {
2240
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2241
+ }
2242
+ }
2067
2243
  const response = await this.request({
2068
2244
  path: `/authenticators/sms/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2069
2245
  method: 'GET',
@@ -2094,10 +2270,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2094
2270
 
2095
2271
  const headerParameters: runtime.HTTPHeaders = {};
2096
2272
 
2097
- if (this.configuration && this.configuration.apiKey) {
2098
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2099
- }
2273
+ if (this.configuration && this.configuration.accessToken) {
2274
+ const token = this.configuration.accessToken;
2275
+ const tokenString = await token("authentik", []);
2100
2276
 
2277
+ if (tokenString) {
2278
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2279
+ }
2280
+ }
2101
2281
  const response = await this.request({
2102
2282
  path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2103
2283
  method: 'DELETE',
@@ -2143,10 +2323,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2143
2323
 
2144
2324
  const headerParameters: runtime.HTTPHeaders = {};
2145
2325
 
2146
- if (this.configuration && this.configuration.apiKey) {
2147
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2148
- }
2326
+ if (this.configuration && this.configuration.accessToken) {
2327
+ const token = this.configuration.accessToken;
2328
+ const tokenString = await token("authentik", []);
2149
2329
 
2330
+ if (tokenString) {
2331
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2332
+ }
2333
+ }
2150
2334
  const response = await this.request({
2151
2335
  path: `/authenticators/static/`,
2152
2336
  method: 'GET',
@@ -2179,10 +2363,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2179
2363
 
2180
2364
  headerParameters['Content-Type'] = 'application/json';
2181
2365
 
2182
- if (this.configuration && this.configuration.apiKey) {
2183
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2184
- }
2366
+ if (this.configuration && this.configuration.accessToken) {
2367
+ const token = this.configuration.accessToken;
2368
+ const tokenString = await token("authentik", []);
2185
2369
 
2370
+ if (tokenString) {
2371
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2372
+ }
2373
+ }
2186
2374
  const response = await this.request({
2187
2375
  path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2188
2376
  method: 'PATCH',
@@ -2214,10 +2402,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2214
2402
 
2215
2403
  const headerParameters: runtime.HTTPHeaders = {};
2216
2404
 
2217
- if (this.configuration && this.configuration.apiKey) {
2218
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2219
- }
2405
+ if (this.configuration && this.configuration.accessToken) {
2406
+ const token = this.configuration.accessToken;
2407
+ const tokenString = await token("authentik", []);
2220
2408
 
2409
+ if (tokenString) {
2410
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2411
+ }
2412
+ }
2221
2413
  const response = await this.request({
2222
2414
  path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2223
2415
  method: 'GET',
@@ -2254,10 +2446,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2254
2446
 
2255
2447
  headerParameters['Content-Type'] = 'application/json';
2256
2448
 
2257
- if (this.configuration && this.configuration.apiKey) {
2258
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2259
- }
2449
+ if (this.configuration && this.configuration.accessToken) {
2450
+ const token = this.configuration.accessToken;
2451
+ const tokenString = await token("authentik", []);
2260
2452
 
2453
+ if (tokenString) {
2454
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2455
+ }
2456
+ }
2261
2457
  const response = await this.request({
2262
2458
  path: `/authenticators/static/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2263
2459
  method: 'PUT',
@@ -2289,10 +2485,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2289
2485
 
2290
2486
  const headerParameters: runtime.HTTPHeaders = {};
2291
2487
 
2292
- if (this.configuration && this.configuration.apiKey) {
2293
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2294
- }
2488
+ if (this.configuration && this.configuration.accessToken) {
2489
+ const token = this.configuration.accessToken;
2490
+ const tokenString = await token("authentik", []);
2295
2491
 
2492
+ if (tokenString) {
2493
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2494
+ }
2495
+ }
2296
2496
  const response = await this.request({
2297
2497
  path: `/authenticators/static/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2298
2498
  method: 'GET',
@@ -2323,10 +2523,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2323
2523
 
2324
2524
  const headerParameters: runtime.HTTPHeaders = {};
2325
2525
 
2326
- if (this.configuration && this.configuration.apiKey) {
2327
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2328
- }
2526
+ if (this.configuration && this.configuration.accessToken) {
2527
+ const token = this.configuration.accessToken;
2528
+ const tokenString = await token("authentik", []);
2329
2529
 
2530
+ if (tokenString) {
2531
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2532
+ }
2533
+ }
2330
2534
  const response = await this.request({
2331
2535
  path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2332
2536
  method: 'DELETE',
@@ -2372,10 +2576,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2372
2576
 
2373
2577
  const headerParameters: runtime.HTTPHeaders = {};
2374
2578
 
2375
- if (this.configuration && this.configuration.apiKey) {
2376
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2377
- }
2579
+ if (this.configuration && this.configuration.accessToken) {
2580
+ const token = this.configuration.accessToken;
2581
+ const tokenString = await token("authentik", []);
2378
2582
 
2583
+ if (tokenString) {
2584
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2585
+ }
2586
+ }
2379
2587
  const response = await this.request({
2380
2588
  path: `/authenticators/totp/`,
2381
2589
  method: 'GET',
@@ -2408,10 +2616,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2408
2616
 
2409
2617
  headerParameters['Content-Type'] = 'application/json';
2410
2618
 
2411
- if (this.configuration && this.configuration.apiKey) {
2412
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2413
- }
2619
+ if (this.configuration && this.configuration.accessToken) {
2620
+ const token = this.configuration.accessToken;
2621
+ const tokenString = await token("authentik", []);
2414
2622
 
2623
+ if (tokenString) {
2624
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2625
+ }
2626
+ }
2415
2627
  const response = await this.request({
2416
2628
  path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2417
2629
  method: 'PATCH',
@@ -2443,10 +2655,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2443
2655
 
2444
2656
  const headerParameters: runtime.HTTPHeaders = {};
2445
2657
 
2446
- if (this.configuration && this.configuration.apiKey) {
2447
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2448
- }
2658
+ if (this.configuration && this.configuration.accessToken) {
2659
+ const token = this.configuration.accessToken;
2660
+ const tokenString = await token("authentik", []);
2449
2661
 
2662
+ if (tokenString) {
2663
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2664
+ }
2665
+ }
2450
2666
  const response = await this.request({
2451
2667
  path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2452
2668
  method: 'GET',
@@ -2483,10 +2699,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2483
2699
 
2484
2700
  headerParameters['Content-Type'] = 'application/json';
2485
2701
 
2486
- if (this.configuration && this.configuration.apiKey) {
2487
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2488
- }
2702
+ if (this.configuration && this.configuration.accessToken) {
2703
+ const token = this.configuration.accessToken;
2704
+ const tokenString = await token("authentik", []);
2489
2705
 
2706
+ if (tokenString) {
2707
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2708
+ }
2709
+ }
2490
2710
  const response = await this.request({
2491
2711
  path: `/authenticators/totp/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2492
2712
  method: 'PUT',
@@ -2518,10 +2738,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2518
2738
 
2519
2739
  const headerParameters: runtime.HTTPHeaders = {};
2520
2740
 
2521
- if (this.configuration && this.configuration.apiKey) {
2522
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2523
- }
2741
+ if (this.configuration && this.configuration.accessToken) {
2742
+ const token = this.configuration.accessToken;
2743
+ const tokenString = await token("authentik", []);
2524
2744
 
2745
+ if (tokenString) {
2746
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2747
+ }
2748
+ }
2525
2749
  const response = await this.request({
2526
2750
  path: `/authenticators/totp/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2527
2751
  method: 'GET',
@@ -2552,10 +2776,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2552
2776
 
2553
2777
  const headerParameters: runtime.HTTPHeaders = {};
2554
2778
 
2555
- if (this.configuration && this.configuration.apiKey) {
2556
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2557
- }
2779
+ if (this.configuration && this.configuration.accessToken) {
2780
+ const token = this.configuration.accessToken;
2781
+ const tokenString = await token("authentik", []);
2558
2782
 
2783
+ if (tokenString) {
2784
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2785
+ }
2786
+ }
2559
2787
  const response = await this.request({
2560
2788
  path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2561
2789
  method: 'DELETE',
@@ -2601,10 +2829,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2601
2829
 
2602
2830
  const headerParameters: runtime.HTTPHeaders = {};
2603
2831
 
2604
- if (this.configuration && this.configuration.apiKey) {
2605
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2606
- }
2832
+ if (this.configuration && this.configuration.accessToken) {
2833
+ const token = this.configuration.accessToken;
2834
+ const tokenString = await token("authentik", []);
2607
2835
 
2836
+ if (tokenString) {
2837
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2838
+ }
2839
+ }
2608
2840
  const response = await this.request({
2609
2841
  path: `/authenticators/webauthn/`,
2610
2842
  method: 'GET',
@@ -2637,10 +2869,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2637
2869
 
2638
2870
  headerParameters['Content-Type'] = 'application/json';
2639
2871
 
2640
- if (this.configuration && this.configuration.apiKey) {
2641
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2642
- }
2872
+ if (this.configuration && this.configuration.accessToken) {
2873
+ const token = this.configuration.accessToken;
2874
+ const tokenString = await token("authentik", []);
2643
2875
 
2876
+ if (tokenString) {
2877
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2878
+ }
2879
+ }
2644
2880
  const response = await this.request({
2645
2881
  path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2646
2882
  method: 'PATCH',
@@ -2672,10 +2908,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2672
2908
 
2673
2909
  const headerParameters: runtime.HTTPHeaders = {};
2674
2910
 
2675
- if (this.configuration && this.configuration.apiKey) {
2676
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2677
- }
2911
+ if (this.configuration && this.configuration.accessToken) {
2912
+ const token = this.configuration.accessToken;
2913
+ const tokenString = await token("authentik", []);
2678
2914
 
2915
+ if (tokenString) {
2916
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2917
+ }
2918
+ }
2679
2919
  const response = await this.request({
2680
2920
  path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2681
2921
  method: 'GET',
@@ -2712,10 +2952,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2712
2952
 
2713
2953
  headerParameters['Content-Type'] = 'application/json';
2714
2954
 
2715
- if (this.configuration && this.configuration.apiKey) {
2716
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2717
- }
2955
+ if (this.configuration && this.configuration.accessToken) {
2956
+ const token = this.configuration.accessToken;
2957
+ const tokenString = await token("authentik", []);
2718
2958
 
2959
+ if (tokenString) {
2960
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2961
+ }
2962
+ }
2719
2963
  const response = await this.request({
2720
2964
  path: `/authenticators/webauthn/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2721
2965
  method: 'PUT',
@@ -2747,10 +2991,14 @@ export class AuthenticatorsApi extends runtime.BaseAPI {
2747
2991
 
2748
2992
  const headerParameters: runtime.HTTPHeaders = {};
2749
2993
 
2750
- if (this.configuration && this.configuration.apiKey) {
2751
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2752
- }
2994
+ if (this.configuration && this.configuration.accessToken) {
2995
+ const token = this.configuration.accessToken;
2996
+ const tokenString = await token("authentik", []);
2753
2997
 
2998
+ if (tokenString) {
2999
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3000
+ }
3001
+ }
2754
3002
  const response = await this.request({
2755
3003
  path: `/authenticators/webauthn/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2756
3004
  method: 'GET',