@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
@@ -491,10 +491,14 @@ export class PoliciesApi extends runtime.BaseAPI {
491
491
 
492
492
  const headerParameters: runtime.HTTPHeaders = {};
493
493
 
494
- if (this.configuration && this.configuration.apiKey) {
495
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
496
- }
494
+ if (this.configuration && this.configuration.accessToken) {
495
+ const token = this.configuration.accessToken;
496
+ const tokenString = await token("authentik", []);
497
497
 
498
+ if (tokenString) {
499
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
500
+ }
501
+ }
498
502
  const response = await this.request({
499
503
  path: `/policies/all/cache_clear/`,
500
504
  method: 'POST',
@@ -520,10 +524,14 @@ export class PoliciesApi extends runtime.BaseAPI {
520
524
 
521
525
  const headerParameters: runtime.HTTPHeaders = {};
522
526
 
523
- if (this.configuration && this.configuration.apiKey) {
524
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
525
- }
527
+ if (this.configuration && this.configuration.accessToken) {
528
+ const token = this.configuration.accessToken;
529
+ const tokenString = await token("authentik", []);
526
530
 
531
+ if (tokenString) {
532
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
533
+ }
534
+ }
527
535
  const response = await this.request({
528
536
  path: `/policies/all/cache_info/`,
529
537
  method: 'GET',
@@ -554,10 +562,14 @@ export class PoliciesApi extends runtime.BaseAPI {
554
562
 
555
563
  const headerParameters: runtime.HTTPHeaders = {};
556
564
 
557
- if (this.configuration && this.configuration.apiKey) {
558
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
559
- }
565
+ if (this.configuration && this.configuration.accessToken) {
566
+ const token = this.configuration.accessToken;
567
+ const tokenString = await token("authentik", []);
560
568
 
569
+ if (tokenString) {
570
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
571
+ }
572
+ }
561
573
  const response = await this.request({
562
574
  path: `/policies/all/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
563
575
  method: 'DELETE',
@@ -607,10 +619,14 @@ export class PoliciesApi extends runtime.BaseAPI {
607
619
 
608
620
  const headerParameters: runtime.HTTPHeaders = {};
609
621
 
610
- if (this.configuration && this.configuration.apiKey) {
611
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
612
- }
622
+ if (this.configuration && this.configuration.accessToken) {
623
+ const token = this.configuration.accessToken;
624
+ const tokenString = await token("authentik", []);
613
625
 
626
+ if (tokenString) {
627
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
628
+ }
629
+ }
614
630
  const response = await this.request({
615
631
  path: `/policies/all/`,
616
632
  method: 'GET',
@@ -641,10 +657,14 @@ export class PoliciesApi extends runtime.BaseAPI {
641
657
 
642
658
  const headerParameters: runtime.HTTPHeaders = {};
643
659
 
644
- if (this.configuration && this.configuration.apiKey) {
645
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
646
- }
660
+ if (this.configuration && this.configuration.accessToken) {
661
+ const token = this.configuration.accessToken;
662
+ const tokenString = await token("authentik", []);
647
663
 
664
+ if (tokenString) {
665
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
666
+ }
667
+ }
648
668
  const response = await this.request({
649
669
  path: `/policies/all/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
650
670
  method: 'GET',
@@ -681,10 +701,14 @@ export class PoliciesApi extends runtime.BaseAPI {
681
701
 
682
702
  headerParameters['Content-Type'] = 'application/json';
683
703
 
684
- if (this.configuration && this.configuration.apiKey) {
685
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
686
- }
704
+ if (this.configuration && this.configuration.accessToken) {
705
+ const token = this.configuration.accessToken;
706
+ const tokenString = await token("authentik", []);
687
707
 
708
+ if (tokenString) {
709
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
710
+ }
711
+ }
688
712
  const response = await this.request({
689
713
  path: `/policies/all/{policy_uuid}/test/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
690
714
  method: 'POST',
@@ -712,10 +736,14 @@ export class PoliciesApi extends runtime.BaseAPI {
712
736
 
713
737
  const headerParameters: runtime.HTTPHeaders = {};
714
738
 
715
- if (this.configuration && this.configuration.apiKey) {
716
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
717
- }
739
+ if (this.configuration && this.configuration.accessToken) {
740
+ const token = this.configuration.accessToken;
741
+ const tokenString = await token("authentik", []);
718
742
 
743
+ if (tokenString) {
744
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
745
+ }
746
+ }
719
747
  const response = await this.request({
720
748
  path: `/policies/all/types/`,
721
749
  method: 'GET',
@@ -746,10 +774,14 @@ export class PoliciesApi extends runtime.BaseAPI {
746
774
 
747
775
  const headerParameters: runtime.HTTPHeaders = {};
748
776
 
749
- if (this.configuration && this.configuration.apiKey) {
750
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
751
- }
777
+ if (this.configuration && this.configuration.accessToken) {
778
+ const token = this.configuration.accessToken;
779
+ const tokenString = await token("authentik", []);
752
780
 
781
+ if (tokenString) {
782
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
783
+ }
784
+ }
753
785
  const response = await this.request({
754
786
  path: `/policies/all/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
755
787
  method: 'GET',
@@ -782,10 +814,14 @@ export class PoliciesApi extends runtime.BaseAPI {
782
814
 
783
815
  headerParameters['Content-Type'] = 'application/json';
784
816
 
785
- if (this.configuration && this.configuration.apiKey) {
786
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
787
- }
817
+ if (this.configuration && this.configuration.accessToken) {
818
+ const token = this.configuration.accessToken;
819
+ const tokenString = await token("authentik", []);
788
820
 
821
+ if (tokenString) {
822
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
823
+ }
824
+ }
789
825
  const response = await this.request({
790
826
  path: `/policies/bindings/`,
791
827
  method: 'POST',
@@ -817,10 +853,14 @@ export class PoliciesApi extends runtime.BaseAPI {
817
853
 
818
854
  const headerParameters: runtime.HTTPHeaders = {};
819
855
 
820
- if (this.configuration && this.configuration.apiKey) {
821
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
822
- }
856
+ if (this.configuration && this.configuration.accessToken) {
857
+ const token = this.configuration.accessToken;
858
+ const tokenString = await token("authentik", []);
823
859
 
860
+ if (tokenString) {
861
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
862
+ }
863
+ }
824
864
  const response = await this.request({
825
865
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
826
866
  method: 'DELETE',
@@ -890,10 +930,14 @@ export class PoliciesApi extends runtime.BaseAPI {
890
930
 
891
931
  const headerParameters: runtime.HTTPHeaders = {};
892
932
 
893
- if (this.configuration && this.configuration.apiKey) {
894
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
895
- }
933
+ if (this.configuration && this.configuration.accessToken) {
934
+ const token = this.configuration.accessToken;
935
+ const tokenString = await token("authentik", []);
896
936
 
937
+ if (tokenString) {
938
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
939
+ }
940
+ }
897
941
  const response = await this.request({
898
942
  path: `/policies/bindings/`,
899
943
  method: 'GET',
@@ -926,10 +970,14 @@ export class PoliciesApi extends runtime.BaseAPI {
926
970
 
927
971
  headerParameters['Content-Type'] = 'application/json';
928
972
 
929
- if (this.configuration && this.configuration.apiKey) {
930
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
931
- }
973
+ if (this.configuration && this.configuration.accessToken) {
974
+ const token = this.configuration.accessToken;
975
+ const tokenString = await token("authentik", []);
932
976
 
977
+ if (tokenString) {
978
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
979
+ }
980
+ }
933
981
  const response = await this.request({
934
982
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
935
983
  method: 'PATCH',
@@ -961,10 +1009,14 @@ export class PoliciesApi extends runtime.BaseAPI {
961
1009
 
962
1010
  const headerParameters: runtime.HTTPHeaders = {};
963
1011
 
964
- if (this.configuration && this.configuration.apiKey) {
965
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
966
- }
1012
+ if (this.configuration && this.configuration.accessToken) {
1013
+ const token = this.configuration.accessToken;
1014
+ const tokenString = await token("authentik", []);
967
1015
 
1016
+ if (tokenString) {
1017
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1018
+ }
1019
+ }
968
1020
  const response = await this.request({
969
1021
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
970
1022
  method: 'GET',
@@ -1001,10 +1053,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1001
1053
 
1002
1054
  headerParameters['Content-Type'] = 'application/json';
1003
1055
 
1004
- if (this.configuration && this.configuration.apiKey) {
1005
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1006
- }
1056
+ if (this.configuration && this.configuration.accessToken) {
1057
+ const token = this.configuration.accessToken;
1058
+ const tokenString = await token("authentik", []);
1007
1059
 
1060
+ if (tokenString) {
1061
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1062
+ }
1063
+ }
1008
1064
  const response = await this.request({
1009
1065
  path: `/policies/bindings/{policy_binding_uuid}/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
1010
1066
  method: 'PUT',
@@ -1036,10 +1092,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1036
1092
 
1037
1093
  const headerParameters: runtime.HTTPHeaders = {};
1038
1094
 
1039
- if (this.configuration && this.configuration.apiKey) {
1040
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1041
- }
1095
+ if (this.configuration && this.configuration.accessToken) {
1096
+ const token = this.configuration.accessToken;
1097
+ const tokenString = await token("authentik", []);
1042
1098
 
1099
+ if (tokenString) {
1100
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1101
+ }
1102
+ }
1043
1103
  const response = await this.request({
1044
1104
  path: `/policies/bindings/{policy_binding_uuid}/used_by/`.replace(`{${"policy_binding_uuid"}}`, encodeURIComponent(String(requestParameters.policyBindingUuid))),
1045
1105
  method: 'GET',
@@ -1072,10 +1132,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1072
1132
 
1073
1133
  headerParameters['Content-Type'] = 'application/json';
1074
1134
 
1075
- if (this.configuration && this.configuration.apiKey) {
1076
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1077
- }
1135
+ if (this.configuration && this.configuration.accessToken) {
1136
+ const token = this.configuration.accessToken;
1137
+ const tokenString = await token("authentik", []);
1078
1138
 
1139
+ if (tokenString) {
1140
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1141
+ }
1142
+ }
1079
1143
  const response = await this.request({
1080
1144
  path: `/policies/dummy/`,
1081
1145
  method: 'POST',
@@ -1107,10 +1171,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1107
1171
 
1108
1172
  const headerParameters: runtime.HTTPHeaders = {};
1109
1173
 
1110
- if (this.configuration && this.configuration.apiKey) {
1111
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1112
- }
1174
+ if (this.configuration && this.configuration.accessToken) {
1175
+ const token = this.configuration.accessToken;
1176
+ const tokenString = await token("authentik", []);
1113
1177
 
1178
+ if (tokenString) {
1179
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1180
+ }
1181
+ }
1114
1182
  const response = await this.request({
1115
1183
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1116
1184
  method: 'DELETE',
@@ -1184,10 +1252,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1184
1252
 
1185
1253
  const headerParameters: runtime.HTTPHeaders = {};
1186
1254
 
1187
- if (this.configuration && this.configuration.apiKey) {
1188
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1189
- }
1255
+ if (this.configuration && this.configuration.accessToken) {
1256
+ const token = this.configuration.accessToken;
1257
+ const tokenString = await token("authentik", []);
1190
1258
 
1259
+ if (tokenString) {
1260
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1261
+ }
1262
+ }
1191
1263
  const response = await this.request({
1192
1264
  path: `/policies/dummy/`,
1193
1265
  method: 'GET',
@@ -1220,10 +1292,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1220
1292
 
1221
1293
  headerParameters['Content-Type'] = 'application/json';
1222
1294
 
1223
- if (this.configuration && this.configuration.apiKey) {
1224
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1225
- }
1295
+ if (this.configuration && this.configuration.accessToken) {
1296
+ const token = this.configuration.accessToken;
1297
+ const tokenString = await token("authentik", []);
1226
1298
 
1299
+ if (tokenString) {
1300
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1301
+ }
1302
+ }
1227
1303
  const response = await this.request({
1228
1304
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1229
1305
  method: 'PATCH',
@@ -1255,10 +1331,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1255
1331
 
1256
1332
  const headerParameters: runtime.HTTPHeaders = {};
1257
1333
 
1258
- if (this.configuration && this.configuration.apiKey) {
1259
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1260
- }
1334
+ if (this.configuration && this.configuration.accessToken) {
1335
+ const token = this.configuration.accessToken;
1336
+ const tokenString = await token("authentik", []);
1261
1337
 
1338
+ if (tokenString) {
1339
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1340
+ }
1341
+ }
1262
1342
  const response = await this.request({
1263
1343
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1264
1344
  method: 'GET',
@@ -1295,10 +1375,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1295
1375
 
1296
1376
  headerParameters['Content-Type'] = 'application/json';
1297
1377
 
1298
- if (this.configuration && this.configuration.apiKey) {
1299
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1300
- }
1378
+ if (this.configuration && this.configuration.accessToken) {
1379
+ const token = this.configuration.accessToken;
1380
+ const tokenString = await token("authentik", []);
1301
1381
 
1382
+ if (tokenString) {
1383
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1384
+ }
1385
+ }
1302
1386
  const response = await this.request({
1303
1387
  path: `/policies/dummy/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1304
1388
  method: 'PUT',
@@ -1330,10 +1414,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1330
1414
 
1331
1415
  const headerParameters: runtime.HTTPHeaders = {};
1332
1416
 
1333
- if (this.configuration && this.configuration.apiKey) {
1334
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1335
- }
1417
+ if (this.configuration && this.configuration.accessToken) {
1418
+ const token = this.configuration.accessToken;
1419
+ const tokenString = await token("authentik", []);
1336
1420
 
1421
+ if (tokenString) {
1422
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1423
+ }
1424
+ }
1337
1425
  const response = await this.request({
1338
1426
  path: `/policies/dummy/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1339
1427
  method: 'GET',
@@ -1366,10 +1454,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1366
1454
 
1367
1455
  headerParameters['Content-Type'] = 'application/json';
1368
1456
 
1369
- if (this.configuration && this.configuration.apiKey) {
1370
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1371
- }
1457
+ if (this.configuration && this.configuration.accessToken) {
1458
+ const token = this.configuration.accessToken;
1459
+ const tokenString = await token("authentik", []);
1372
1460
 
1461
+ if (tokenString) {
1462
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1463
+ }
1464
+ }
1373
1465
  const response = await this.request({
1374
1466
  path: `/policies/event_matcher/`,
1375
1467
  method: 'POST',
@@ -1401,10 +1493,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1401
1493
 
1402
1494
  const headerParameters: runtime.HTTPHeaders = {};
1403
1495
 
1404
- if (this.configuration && this.configuration.apiKey) {
1405
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1406
- }
1496
+ if (this.configuration && this.configuration.accessToken) {
1497
+ const token = this.configuration.accessToken;
1498
+ const tokenString = await token("authentik", []);
1407
1499
 
1500
+ if (tokenString) {
1501
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1502
+ }
1503
+ }
1408
1504
  const response = await this.request({
1409
1505
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1410
1506
  method: 'DELETE',
@@ -1482,10 +1578,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1482
1578
 
1483
1579
  const headerParameters: runtime.HTTPHeaders = {};
1484
1580
 
1485
- if (this.configuration && this.configuration.apiKey) {
1486
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1487
- }
1581
+ if (this.configuration && this.configuration.accessToken) {
1582
+ const token = this.configuration.accessToken;
1583
+ const tokenString = await token("authentik", []);
1488
1584
 
1585
+ if (tokenString) {
1586
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1587
+ }
1588
+ }
1489
1589
  const response = await this.request({
1490
1590
  path: `/policies/event_matcher/`,
1491
1591
  method: 'GET',
@@ -1518,10 +1618,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1518
1618
 
1519
1619
  headerParameters['Content-Type'] = 'application/json';
1520
1620
 
1521
- if (this.configuration && this.configuration.apiKey) {
1522
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1523
- }
1621
+ if (this.configuration && this.configuration.accessToken) {
1622
+ const token = this.configuration.accessToken;
1623
+ const tokenString = await token("authentik", []);
1524
1624
 
1625
+ if (tokenString) {
1626
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1627
+ }
1628
+ }
1525
1629
  const response = await this.request({
1526
1630
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1527
1631
  method: 'PATCH',
@@ -1553,10 +1657,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1553
1657
 
1554
1658
  const headerParameters: runtime.HTTPHeaders = {};
1555
1659
 
1556
- if (this.configuration && this.configuration.apiKey) {
1557
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1558
- }
1660
+ if (this.configuration && this.configuration.accessToken) {
1661
+ const token = this.configuration.accessToken;
1662
+ const tokenString = await token("authentik", []);
1559
1663
 
1664
+ if (tokenString) {
1665
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1666
+ }
1667
+ }
1560
1668
  const response = await this.request({
1561
1669
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1562
1670
  method: 'GET',
@@ -1593,10 +1701,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1593
1701
 
1594
1702
  headerParameters['Content-Type'] = 'application/json';
1595
1703
 
1596
- if (this.configuration && this.configuration.apiKey) {
1597
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1598
- }
1704
+ if (this.configuration && this.configuration.accessToken) {
1705
+ const token = this.configuration.accessToken;
1706
+ const tokenString = await token("authentik", []);
1599
1707
 
1708
+ if (tokenString) {
1709
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1710
+ }
1711
+ }
1600
1712
  const response = await this.request({
1601
1713
  path: `/policies/event_matcher/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1602
1714
  method: 'PUT',
@@ -1628,10 +1740,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1628
1740
 
1629
1741
  const headerParameters: runtime.HTTPHeaders = {};
1630
1742
 
1631
- if (this.configuration && this.configuration.apiKey) {
1632
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1633
- }
1743
+ if (this.configuration && this.configuration.accessToken) {
1744
+ const token = this.configuration.accessToken;
1745
+ const tokenString = await token("authentik", []);
1634
1746
 
1747
+ if (tokenString) {
1748
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1749
+ }
1750
+ }
1635
1751
  const response = await this.request({
1636
1752
  path: `/policies/event_matcher/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1637
1753
  method: 'GET',
@@ -1664,10 +1780,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1664
1780
 
1665
1781
  headerParameters['Content-Type'] = 'application/json';
1666
1782
 
1667
- if (this.configuration && this.configuration.apiKey) {
1668
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1669
- }
1783
+ if (this.configuration && this.configuration.accessToken) {
1784
+ const token = this.configuration.accessToken;
1785
+ const tokenString = await token("authentik", []);
1670
1786
 
1787
+ if (tokenString) {
1788
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1789
+ }
1790
+ }
1671
1791
  const response = await this.request({
1672
1792
  path: `/policies/expression/`,
1673
1793
  method: 'POST',
@@ -1699,10 +1819,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1699
1819
 
1700
1820
  const headerParameters: runtime.HTTPHeaders = {};
1701
1821
 
1702
- if (this.configuration && this.configuration.apiKey) {
1703
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1704
- }
1822
+ if (this.configuration && this.configuration.accessToken) {
1823
+ const token = this.configuration.accessToken;
1824
+ const tokenString = await token("authentik", []);
1705
1825
 
1826
+ if (tokenString) {
1827
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1828
+ }
1829
+ }
1706
1830
  const response = await this.request({
1707
1831
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1708
1832
  method: 'DELETE',
@@ -1768,10 +1892,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1768
1892
 
1769
1893
  const headerParameters: runtime.HTTPHeaders = {};
1770
1894
 
1771
- if (this.configuration && this.configuration.apiKey) {
1772
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1773
- }
1895
+ if (this.configuration && this.configuration.accessToken) {
1896
+ const token = this.configuration.accessToken;
1897
+ const tokenString = await token("authentik", []);
1774
1898
 
1899
+ if (tokenString) {
1900
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1901
+ }
1902
+ }
1775
1903
  const response = await this.request({
1776
1904
  path: `/policies/expression/`,
1777
1905
  method: 'GET',
@@ -1804,10 +1932,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1804
1932
 
1805
1933
  headerParameters['Content-Type'] = 'application/json';
1806
1934
 
1807
- if (this.configuration && this.configuration.apiKey) {
1808
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1809
- }
1935
+ if (this.configuration && this.configuration.accessToken) {
1936
+ const token = this.configuration.accessToken;
1937
+ const tokenString = await token("authentik", []);
1810
1938
 
1939
+ if (tokenString) {
1940
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1941
+ }
1942
+ }
1811
1943
  const response = await this.request({
1812
1944
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1813
1945
  method: 'PATCH',
@@ -1839,10 +1971,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1839
1971
 
1840
1972
  const headerParameters: runtime.HTTPHeaders = {};
1841
1973
 
1842
- if (this.configuration && this.configuration.apiKey) {
1843
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1844
- }
1974
+ if (this.configuration && this.configuration.accessToken) {
1975
+ const token = this.configuration.accessToken;
1976
+ const tokenString = await token("authentik", []);
1845
1977
 
1978
+ if (tokenString) {
1979
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1980
+ }
1981
+ }
1846
1982
  const response = await this.request({
1847
1983
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1848
1984
  method: 'GET',
@@ -1879,10 +2015,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1879
2015
 
1880
2016
  headerParameters['Content-Type'] = 'application/json';
1881
2017
 
1882
- if (this.configuration && this.configuration.apiKey) {
1883
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1884
- }
2018
+ if (this.configuration && this.configuration.accessToken) {
2019
+ const token = this.configuration.accessToken;
2020
+ const tokenString = await token("authentik", []);
1885
2021
 
2022
+ if (tokenString) {
2023
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2024
+ }
2025
+ }
1886
2026
  const response = await this.request({
1887
2027
  path: `/policies/expression/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1888
2028
  method: 'PUT',
@@ -1914,10 +2054,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1914
2054
 
1915
2055
  const headerParameters: runtime.HTTPHeaders = {};
1916
2056
 
1917
- if (this.configuration && this.configuration.apiKey) {
1918
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1919
- }
2057
+ if (this.configuration && this.configuration.accessToken) {
2058
+ const token = this.configuration.accessToken;
2059
+ const tokenString = await token("authentik", []);
1920
2060
 
2061
+ if (tokenString) {
2062
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2063
+ }
2064
+ }
1921
2065
  const response = await this.request({
1922
2066
  path: `/policies/expression/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1923
2067
  method: 'GET',
@@ -1950,10 +2094,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1950
2094
 
1951
2095
  headerParameters['Content-Type'] = 'application/json';
1952
2096
 
1953
- if (this.configuration && this.configuration.apiKey) {
1954
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1955
- }
2097
+ if (this.configuration && this.configuration.accessToken) {
2098
+ const token = this.configuration.accessToken;
2099
+ const tokenString = await token("authentik", []);
1956
2100
 
2101
+ if (tokenString) {
2102
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2103
+ }
2104
+ }
1957
2105
  const response = await this.request({
1958
2106
  path: `/policies/password/`,
1959
2107
  method: 'POST',
@@ -1985,10 +2133,14 @@ export class PoliciesApi extends runtime.BaseAPI {
1985
2133
 
1986
2134
  const headerParameters: runtime.HTTPHeaders = {};
1987
2135
 
1988
- if (this.configuration && this.configuration.apiKey) {
1989
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1990
- }
2136
+ if (this.configuration && this.configuration.accessToken) {
2137
+ const token = this.configuration.accessToken;
2138
+ const tokenString = await token("authentik", []);
1991
2139
 
2140
+ if (tokenString) {
2141
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2142
+ }
2143
+ }
1992
2144
  const response = await this.request({
1993
2145
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
1994
2146
  method: 'DELETE',
@@ -2020,10 +2172,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2020
2172
 
2021
2173
  headerParameters['Content-Type'] = 'application/json';
2022
2174
 
2023
- if (this.configuration && this.configuration.apiKey) {
2024
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2025
- }
2175
+ if (this.configuration && this.configuration.accessToken) {
2176
+ const token = this.configuration.accessToken;
2177
+ const tokenString = await token("authentik", []);
2026
2178
 
2179
+ if (tokenString) {
2180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2181
+ }
2182
+ }
2027
2183
  const response = await this.request({
2028
2184
  path: `/policies/password_expiry/`,
2029
2185
  method: 'POST',
@@ -2055,10 +2211,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2055
2211
 
2056
2212
  const headerParameters: runtime.HTTPHeaders = {};
2057
2213
 
2058
- if (this.configuration && this.configuration.apiKey) {
2059
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2060
- }
2214
+ if (this.configuration && this.configuration.accessToken) {
2215
+ const token = this.configuration.accessToken;
2216
+ const tokenString = await token("authentik", []);
2061
2217
 
2218
+ if (tokenString) {
2219
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2220
+ }
2221
+ }
2062
2222
  const response = await this.request({
2063
2223
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2064
2224
  method: 'DELETE',
@@ -2128,10 +2288,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2128
2288
 
2129
2289
  const headerParameters: runtime.HTTPHeaders = {};
2130
2290
 
2131
- if (this.configuration && this.configuration.apiKey) {
2132
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2133
- }
2291
+ if (this.configuration && this.configuration.accessToken) {
2292
+ const token = this.configuration.accessToken;
2293
+ const tokenString = await token("authentik", []);
2134
2294
 
2295
+ if (tokenString) {
2296
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2297
+ }
2298
+ }
2135
2299
  const response = await this.request({
2136
2300
  path: `/policies/password_expiry/`,
2137
2301
  method: 'GET',
@@ -2164,10 +2328,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2164
2328
 
2165
2329
  headerParameters['Content-Type'] = 'application/json';
2166
2330
 
2167
- if (this.configuration && this.configuration.apiKey) {
2168
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2169
- }
2331
+ if (this.configuration && this.configuration.accessToken) {
2332
+ const token = this.configuration.accessToken;
2333
+ const tokenString = await token("authentik", []);
2170
2334
 
2335
+ if (tokenString) {
2336
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2337
+ }
2338
+ }
2171
2339
  const response = await this.request({
2172
2340
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2173
2341
  method: 'PATCH',
@@ -2199,10 +2367,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2199
2367
 
2200
2368
  const headerParameters: runtime.HTTPHeaders = {};
2201
2369
 
2202
- if (this.configuration && this.configuration.apiKey) {
2203
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2204
- }
2370
+ if (this.configuration && this.configuration.accessToken) {
2371
+ const token = this.configuration.accessToken;
2372
+ const tokenString = await token("authentik", []);
2205
2373
 
2374
+ if (tokenString) {
2375
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2376
+ }
2377
+ }
2206
2378
  const response = await this.request({
2207
2379
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2208
2380
  method: 'GET',
@@ -2239,10 +2411,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2239
2411
 
2240
2412
  headerParameters['Content-Type'] = 'application/json';
2241
2413
 
2242
- if (this.configuration && this.configuration.apiKey) {
2243
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2244
- }
2414
+ if (this.configuration && this.configuration.accessToken) {
2415
+ const token = this.configuration.accessToken;
2416
+ const tokenString = await token("authentik", []);
2245
2417
 
2418
+ if (tokenString) {
2419
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2420
+ }
2421
+ }
2246
2422
  const response = await this.request({
2247
2423
  path: `/policies/password_expiry/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2248
2424
  method: 'PUT',
@@ -2274,10 +2450,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2274
2450
 
2275
2451
  const headerParameters: runtime.HTTPHeaders = {};
2276
2452
 
2277
- if (this.configuration && this.configuration.apiKey) {
2278
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2279
- }
2453
+ if (this.configuration && this.configuration.accessToken) {
2454
+ const token = this.configuration.accessToken;
2455
+ const tokenString = await token("authentik", []);
2280
2456
 
2457
+ if (tokenString) {
2458
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2459
+ }
2460
+ }
2281
2461
  const response = await this.request({
2282
2462
  path: `/policies/password_expiry/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2283
2463
  method: 'GET',
@@ -2392,10 +2572,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2392
2572
 
2393
2573
  const headerParameters: runtime.HTTPHeaders = {};
2394
2574
 
2395
- if (this.configuration && this.configuration.apiKey) {
2396
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2397
- }
2575
+ if (this.configuration && this.configuration.accessToken) {
2576
+ const token = this.configuration.accessToken;
2577
+ const tokenString = await token("authentik", []);
2398
2578
 
2579
+ if (tokenString) {
2580
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2581
+ }
2582
+ }
2399
2583
  const response = await this.request({
2400
2584
  path: `/policies/password/`,
2401
2585
  method: 'GET',
@@ -2428,10 +2612,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2428
2612
 
2429
2613
  headerParameters['Content-Type'] = 'application/json';
2430
2614
 
2431
- if (this.configuration && this.configuration.apiKey) {
2432
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2433
- }
2615
+ if (this.configuration && this.configuration.accessToken) {
2616
+ const token = this.configuration.accessToken;
2617
+ const tokenString = await token("authentik", []);
2434
2618
 
2619
+ if (tokenString) {
2620
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2621
+ }
2622
+ }
2435
2623
  const response = await this.request({
2436
2624
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2437
2625
  method: 'PATCH',
@@ -2463,10 +2651,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2463
2651
 
2464
2652
  const headerParameters: runtime.HTTPHeaders = {};
2465
2653
 
2466
- if (this.configuration && this.configuration.apiKey) {
2467
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2468
- }
2654
+ if (this.configuration && this.configuration.accessToken) {
2655
+ const token = this.configuration.accessToken;
2656
+ const tokenString = await token("authentik", []);
2469
2657
 
2658
+ if (tokenString) {
2659
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2660
+ }
2661
+ }
2470
2662
  const response = await this.request({
2471
2663
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2472
2664
  method: 'GET',
@@ -2503,10 +2695,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2503
2695
 
2504
2696
  headerParameters['Content-Type'] = 'application/json';
2505
2697
 
2506
- if (this.configuration && this.configuration.apiKey) {
2507
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2508
- }
2698
+ if (this.configuration && this.configuration.accessToken) {
2699
+ const token = this.configuration.accessToken;
2700
+ const tokenString = await token("authentik", []);
2509
2701
 
2702
+ if (tokenString) {
2703
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2704
+ }
2705
+ }
2510
2706
  const response = await this.request({
2511
2707
  path: `/policies/password/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2512
2708
  method: 'PUT',
@@ -2538,10 +2734,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2538
2734
 
2539
2735
  const headerParameters: runtime.HTTPHeaders = {};
2540
2736
 
2541
- if (this.configuration && this.configuration.apiKey) {
2542
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2543
- }
2737
+ if (this.configuration && this.configuration.accessToken) {
2738
+ const token = this.configuration.accessToken;
2739
+ const tokenString = await token("authentik", []);
2544
2740
 
2741
+ if (tokenString) {
2742
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2743
+ }
2744
+ }
2545
2745
  const response = await this.request({
2546
2746
  path: `/policies/password/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2547
2747
  method: 'GET',
@@ -2574,10 +2774,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2574
2774
 
2575
2775
  headerParameters['Content-Type'] = 'application/json';
2576
2776
 
2577
- if (this.configuration && this.configuration.apiKey) {
2578
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2579
- }
2777
+ if (this.configuration && this.configuration.accessToken) {
2778
+ const token = this.configuration.accessToken;
2779
+ const tokenString = await token("authentik", []);
2580
2780
 
2781
+ if (tokenString) {
2782
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2783
+ }
2784
+ }
2581
2785
  const response = await this.request({
2582
2786
  path: `/policies/reputation/`,
2583
2787
  method: 'POST',
@@ -2609,10 +2813,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2609
2813
 
2610
2814
  const headerParameters: runtime.HTTPHeaders = {};
2611
2815
 
2612
- if (this.configuration && this.configuration.apiKey) {
2613
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2614
- }
2816
+ if (this.configuration && this.configuration.accessToken) {
2817
+ const token = this.configuration.accessToken;
2818
+ const tokenString = await token("authentik", []);
2615
2819
 
2820
+ if (tokenString) {
2821
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2822
+ }
2823
+ }
2616
2824
  const response = await this.request({
2617
2825
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2618
2826
  method: 'DELETE',
@@ -2686,10 +2894,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2686
2894
 
2687
2895
  const headerParameters: runtime.HTTPHeaders = {};
2688
2896
 
2689
- if (this.configuration && this.configuration.apiKey) {
2690
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2691
- }
2897
+ if (this.configuration && this.configuration.accessToken) {
2898
+ const token = this.configuration.accessToken;
2899
+ const tokenString = await token("authentik", []);
2692
2900
 
2901
+ if (tokenString) {
2902
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2903
+ }
2904
+ }
2693
2905
  const response = await this.request({
2694
2906
  path: `/policies/reputation/`,
2695
2907
  method: 'GET',
@@ -2722,10 +2934,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2722
2934
 
2723
2935
  headerParameters['Content-Type'] = 'application/json';
2724
2936
 
2725
- if (this.configuration && this.configuration.apiKey) {
2726
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2727
- }
2937
+ if (this.configuration && this.configuration.accessToken) {
2938
+ const token = this.configuration.accessToken;
2939
+ const tokenString = await token("authentik", []);
2728
2940
 
2941
+ if (tokenString) {
2942
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2943
+ }
2944
+ }
2729
2945
  const response = await this.request({
2730
2946
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2731
2947
  method: 'PATCH',
@@ -2757,10 +2973,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2757
2973
 
2758
2974
  const headerParameters: runtime.HTTPHeaders = {};
2759
2975
 
2760
- if (this.configuration && this.configuration.apiKey) {
2761
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2762
- }
2976
+ if (this.configuration && this.configuration.accessToken) {
2977
+ const token = this.configuration.accessToken;
2978
+ const tokenString = await token("authentik", []);
2763
2979
 
2980
+ if (tokenString) {
2981
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2982
+ }
2983
+ }
2764
2984
  const response = await this.request({
2765
2985
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2766
2986
  method: 'GET',
@@ -2791,10 +3011,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2791
3011
 
2792
3012
  const headerParameters: runtime.HTTPHeaders = {};
2793
3013
 
2794
- if (this.configuration && this.configuration.apiKey) {
2795
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2796
- }
3014
+ if (this.configuration && this.configuration.accessToken) {
3015
+ const token = this.configuration.accessToken;
3016
+ const tokenString = await token("authentik", []);
2797
3017
 
3018
+ if (tokenString) {
3019
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3020
+ }
3021
+ }
2798
3022
  const response = await this.request({
2799
3023
  path: `/policies/reputation/scores/{reputation_uuid}/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
2800
3024
  method: 'DELETE',
@@ -2848,10 +3072,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2848
3072
 
2849
3073
  const headerParameters: runtime.HTTPHeaders = {};
2850
3074
 
2851
- if (this.configuration && this.configuration.apiKey) {
2852
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2853
- }
3075
+ if (this.configuration && this.configuration.accessToken) {
3076
+ const token = this.configuration.accessToken;
3077
+ const tokenString = await token("authentik", []);
2854
3078
 
3079
+ if (tokenString) {
3080
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3081
+ }
3082
+ }
2855
3083
  const response = await this.request({
2856
3084
  path: `/policies/reputation/scores/`,
2857
3085
  method: 'GET',
@@ -2882,10 +3110,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2882
3110
 
2883
3111
  const headerParameters: runtime.HTTPHeaders = {};
2884
3112
 
2885
- if (this.configuration && this.configuration.apiKey) {
2886
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2887
- }
3113
+ if (this.configuration && this.configuration.accessToken) {
3114
+ const token = this.configuration.accessToken;
3115
+ const tokenString = await token("authentik", []);
2888
3116
 
3117
+ if (tokenString) {
3118
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3119
+ }
3120
+ }
2889
3121
  const response = await this.request({
2890
3122
  path: `/policies/reputation/scores/{reputation_uuid}/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
2891
3123
  method: 'GET',
@@ -2916,10 +3148,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2916
3148
 
2917
3149
  const headerParameters: runtime.HTTPHeaders = {};
2918
3150
 
2919
- if (this.configuration && this.configuration.apiKey) {
2920
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2921
- }
3151
+ if (this.configuration && this.configuration.accessToken) {
3152
+ const token = this.configuration.accessToken;
3153
+ const tokenString = await token("authentik", []);
2922
3154
 
3155
+ if (tokenString) {
3156
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3157
+ }
3158
+ }
2923
3159
  const response = await this.request({
2924
3160
  path: `/policies/reputation/scores/{reputation_uuid}/used_by/`.replace(`{${"reputation_uuid"}}`, encodeURIComponent(String(requestParameters.reputationUuid))),
2925
3161
  method: 'GET',
@@ -2956,10 +3192,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2956
3192
 
2957
3193
  headerParameters['Content-Type'] = 'application/json';
2958
3194
 
2959
- if (this.configuration && this.configuration.apiKey) {
2960
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2961
- }
3195
+ if (this.configuration && this.configuration.accessToken) {
3196
+ const token = this.configuration.accessToken;
3197
+ const tokenString = await token("authentik", []);
2962
3198
 
3199
+ if (tokenString) {
3200
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3201
+ }
3202
+ }
2963
3203
  const response = await this.request({
2964
3204
  path: `/policies/reputation/{policy_uuid}/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
2965
3205
  method: 'PUT',
@@ -2991,10 +3231,14 @@ export class PoliciesApi extends runtime.BaseAPI {
2991
3231
 
2992
3232
  const headerParameters: runtime.HTTPHeaders = {};
2993
3233
 
2994
- if (this.configuration && this.configuration.apiKey) {
2995
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2996
- }
3234
+ if (this.configuration && this.configuration.accessToken) {
3235
+ const token = this.configuration.accessToken;
3236
+ const tokenString = await token("authentik", []);
2997
3237
 
3238
+ if (tokenString) {
3239
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3240
+ }
3241
+ }
2998
3242
  const response = await this.request({
2999
3243
  path: `/policies/reputation/{policy_uuid}/used_by/`.replace(`{${"policy_uuid"}}`, encodeURIComponent(String(requestParameters.policyUuid))),
3000
3244
  method: 'GET',