@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/dist/apis/AdminApi.js +60 -20
  2. package/dist/apis/AuthenticatorsApi.js +372 -124
  3. package/dist/apis/CoreApi.js +372 -124
  4. package/dist/apis/CryptoApi.js +60 -20
  5. package/dist/apis/EnterpriseApi.js +60 -20
  6. package/dist/apis/EventsApi.js +210 -70
  7. package/dist/apis/FlowsApi.js +150 -50
  8. package/dist/apis/ManagedApi.js +54 -18
  9. package/dist/apis/Oauth2Api.js +72 -24
  10. package/dist/apis/OutpostsApi.js +210 -70
  11. package/dist/apis/PoliciesApi.js +366 -122
  12. package/dist/apis/PropertymappingsApi.js +288 -96
  13. package/dist/apis/ProvidersApi.js +360 -120
  14. package/dist/apis/RacApi.js +78 -26
  15. package/dist/apis/RbacApi.js +102 -34
  16. package/dist/apis/RootApi.js +6 -2
  17. package/dist/apis/SchemaApi.js +6 -2
  18. package/dist/apis/SourcesApi.js +414 -138
  19. package/dist/apis/StagesApi.js +1002 -334
  20. package/dist/esm/apis/AdminApi.js +60 -20
  21. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  22. package/dist/esm/apis/CoreApi.js +372 -124
  23. package/dist/esm/apis/CryptoApi.js +60 -20
  24. package/dist/esm/apis/EnterpriseApi.js +60 -20
  25. package/dist/esm/apis/EventsApi.js +210 -70
  26. package/dist/esm/apis/FlowsApi.js +150 -50
  27. package/dist/esm/apis/ManagedApi.js +54 -18
  28. package/dist/esm/apis/Oauth2Api.js +72 -24
  29. package/dist/esm/apis/OutpostsApi.js +210 -70
  30. package/dist/esm/apis/PoliciesApi.js +366 -122
  31. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  32. package/dist/esm/apis/ProvidersApi.js +360 -120
  33. package/dist/esm/apis/RacApi.js +78 -26
  34. package/dist/esm/apis/RbacApi.js +102 -34
  35. package/dist/esm/apis/RootApi.js +6 -2
  36. package/dist/esm/apis/SchemaApi.js +6 -2
  37. package/dist/esm/apis/SourcesApi.js +414 -138
  38. package/dist/esm/apis/StagesApi.js +1002 -334
  39. package/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
  40. package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
  41. package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  42. package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
  43. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  44. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  45. package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
  46. package/dist/models/AuthenticatorValidateStage.js +5 -0
  47. package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  48. package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
  49. package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  50. package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  51. package/package.json +1 -1
  52. package/src/apis/AdminApi.ts +70 -30
  53. package/src/apis/AuthenticatorsApi.ts +434 -186
  54. package/src/apis/CoreApi.ts +434 -186
  55. package/src/apis/CryptoApi.ts +70 -30
  56. package/src/apis/EnterpriseApi.ts +70 -30
  57. package/src/apis/EventsApi.ts +245 -105
  58. package/src/apis/FlowsApi.ts +175 -75
  59. package/src/apis/ManagedApi.ts +63 -27
  60. package/src/apis/Oauth2Api.ts +84 -36
  61. package/src/apis/OutpostsApi.ts +245 -105
  62. package/src/apis/PoliciesApi.ts +427 -183
  63. package/src/apis/PropertymappingsApi.ts +336 -144
  64. package/src/apis/ProvidersApi.ts +420 -180
  65. package/src/apis/RacApi.ts +91 -39
  66. package/src/apis/RbacApi.ts +119 -51
  67. package/src/apis/RootApi.ts +7 -3
  68. package/src/apis/SchemaApi.ts +7 -3
  69. package/src/apis/SourcesApi.ts +483 -207
  70. package/src/apis/StagesApi.ts +1169 -501
  71. package/src/models/AuthenticatorValidateStage.ts +22 -0
  72. package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
  73. package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
@@ -502,10 +502,14 @@ export class ProvidersApi extends runtime.BaseAPI {
502
502
 
503
503
  const headerParameters: runtime.HTTPHeaders = {};
504
504
 
505
- if (this.configuration && this.configuration.apiKey) {
506
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
507
- }
505
+ if (this.configuration && this.configuration.accessToken) {
506
+ const token = this.configuration.accessToken;
507
+ const tokenString = await token("authentik", []);
508
508
 
509
+ if (tokenString) {
510
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
511
+ }
512
+ }
509
513
  const response = await this.request({
510
514
  path: `/providers/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
511
515
  method: 'DELETE',
@@ -555,10 +559,14 @@ export class ProvidersApi extends runtime.BaseAPI {
555
559
 
556
560
  const headerParameters: runtime.HTTPHeaders = {};
557
561
 
558
- if (this.configuration && this.configuration.apiKey) {
559
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
560
- }
562
+ if (this.configuration && this.configuration.accessToken) {
563
+ const token = this.configuration.accessToken;
564
+ const tokenString = await token("authentik", []);
561
565
 
566
+ if (tokenString) {
567
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
568
+ }
569
+ }
562
570
  const response = await this.request({
563
571
  path: `/providers/all/`,
564
572
  method: 'GET',
@@ -589,10 +597,14 @@ export class ProvidersApi extends runtime.BaseAPI {
589
597
 
590
598
  const headerParameters: runtime.HTTPHeaders = {};
591
599
 
592
- if (this.configuration && this.configuration.apiKey) {
593
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
594
- }
600
+ if (this.configuration && this.configuration.accessToken) {
601
+ const token = this.configuration.accessToken;
602
+ const tokenString = await token("authentik", []);
595
603
 
604
+ if (tokenString) {
605
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
606
+ }
607
+ }
596
608
  const response = await this.request({
597
609
  path: `/providers/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
598
610
  method: 'GET',
@@ -619,10 +631,14 @@ export class ProvidersApi extends runtime.BaseAPI {
619
631
 
620
632
  const headerParameters: runtime.HTTPHeaders = {};
621
633
 
622
- if (this.configuration && this.configuration.apiKey) {
623
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
624
- }
634
+ if (this.configuration && this.configuration.accessToken) {
635
+ const token = this.configuration.accessToken;
636
+ const tokenString = await token("authentik", []);
625
637
 
638
+ if (tokenString) {
639
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
640
+ }
641
+ }
626
642
  const response = await this.request({
627
643
  path: `/providers/all/types/`,
628
644
  method: 'GET',
@@ -653,10 +669,14 @@ export class ProvidersApi extends runtime.BaseAPI {
653
669
 
654
670
  const headerParameters: runtime.HTTPHeaders = {};
655
671
 
656
- if (this.configuration && this.configuration.apiKey) {
657
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
658
- }
672
+ if (this.configuration && this.configuration.accessToken) {
673
+ const token = this.configuration.accessToken;
674
+ const tokenString = await token("authentik", []);
659
675
 
676
+ if (tokenString) {
677
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
678
+ }
679
+ }
660
680
  const response = await this.request({
661
681
  path: `/providers/all/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
662
682
  method: 'GET',
@@ -689,10 +709,14 @@ export class ProvidersApi extends runtime.BaseAPI {
689
709
 
690
710
  headerParameters['Content-Type'] = 'application/json';
691
711
 
692
- if (this.configuration && this.configuration.apiKey) {
693
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
694
- }
712
+ if (this.configuration && this.configuration.accessToken) {
713
+ const token = this.configuration.accessToken;
714
+ const tokenString = await token("authentik", []);
695
715
 
716
+ if (tokenString) {
717
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
718
+ }
719
+ }
696
720
  const response = await this.request({
697
721
  path: `/providers/ldap/`,
698
722
  method: 'POST',
@@ -724,10 +748,14 @@ export class ProvidersApi extends runtime.BaseAPI {
724
748
 
725
749
  const headerParameters: runtime.HTTPHeaders = {};
726
750
 
727
- if (this.configuration && this.configuration.apiKey) {
728
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
729
- }
751
+ if (this.configuration && this.configuration.accessToken) {
752
+ const token = this.configuration.accessToken;
753
+ const tokenString = await token("authentik", []);
730
754
 
755
+ if (tokenString) {
756
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
757
+ }
758
+ }
731
759
  const response = await this.request({
732
760
  path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
733
761
  method: 'DELETE',
@@ -813,10 +841,14 @@ export class ProvidersApi extends runtime.BaseAPI {
813
841
 
814
842
  const headerParameters: runtime.HTTPHeaders = {};
815
843
 
816
- if (this.configuration && this.configuration.apiKey) {
817
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
818
- }
844
+ if (this.configuration && this.configuration.accessToken) {
845
+ const token = this.configuration.accessToken;
846
+ const tokenString = await token("authentik", []);
819
847
 
848
+ if (tokenString) {
849
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
850
+ }
851
+ }
820
852
  const response = await this.request({
821
853
  path: `/providers/ldap/`,
822
854
  method: 'GET',
@@ -849,10 +881,14 @@ export class ProvidersApi extends runtime.BaseAPI {
849
881
 
850
882
  headerParameters['Content-Type'] = 'application/json';
851
883
 
852
- if (this.configuration && this.configuration.apiKey) {
853
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
854
- }
884
+ if (this.configuration && this.configuration.accessToken) {
885
+ const token = this.configuration.accessToken;
886
+ const tokenString = await token("authentik", []);
855
887
 
888
+ if (tokenString) {
889
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
890
+ }
891
+ }
856
892
  const response = await this.request({
857
893
  path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
858
894
  method: 'PATCH',
@@ -884,10 +920,14 @@ export class ProvidersApi extends runtime.BaseAPI {
884
920
 
885
921
  const headerParameters: runtime.HTTPHeaders = {};
886
922
 
887
- if (this.configuration && this.configuration.apiKey) {
888
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
889
- }
923
+ if (this.configuration && this.configuration.accessToken) {
924
+ const token = this.configuration.accessToken;
925
+ const tokenString = await token("authentik", []);
890
926
 
927
+ if (tokenString) {
928
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
929
+ }
930
+ }
891
931
  const response = await this.request({
892
932
  path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
893
933
  method: 'GET',
@@ -924,10 +964,14 @@ export class ProvidersApi extends runtime.BaseAPI {
924
964
 
925
965
  headerParameters['Content-Type'] = 'application/json';
926
966
 
927
- if (this.configuration && this.configuration.apiKey) {
928
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
929
- }
967
+ if (this.configuration && this.configuration.accessToken) {
968
+ const token = this.configuration.accessToken;
969
+ const tokenString = await token("authentik", []);
930
970
 
971
+ if (tokenString) {
972
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
973
+ }
974
+ }
931
975
  const response = await this.request({
932
976
  path: `/providers/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
933
977
  method: 'PUT',
@@ -959,10 +1003,14 @@ export class ProvidersApi extends runtime.BaseAPI {
959
1003
 
960
1004
  const headerParameters: runtime.HTTPHeaders = {};
961
1005
 
962
- if (this.configuration && this.configuration.apiKey) {
963
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
964
- }
1006
+ if (this.configuration && this.configuration.accessToken) {
1007
+ const token = this.configuration.accessToken;
1008
+ const tokenString = await token("authentik", []);
965
1009
 
1010
+ if (tokenString) {
1011
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1012
+ }
1013
+ }
966
1014
  const response = await this.request({
967
1015
  path: `/providers/ldap/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
968
1016
  method: 'GET',
@@ -995,10 +1043,14 @@ export class ProvidersApi extends runtime.BaseAPI {
995
1043
 
996
1044
  headerParameters['Content-Type'] = 'application/json';
997
1045
 
998
- if (this.configuration && this.configuration.apiKey) {
999
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1000
- }
1046
+ if (this.configuration && this.configuration.accessToken) {
1047
+ const token = this.configuration.accessToken;
1048
+ const tokenString = await token("authentik", []);
1001
1049
 
1050
+ if (tokenString) {
1051
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1052
+ }
1053
+ }
1002
1054
  const response = await this.request({
1003
1055
  path: `/providers/oauth2/`,
1004
1056
  method: 'POST',
@@ -1030,10 +1082,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1030
1082
 
1031
1083
  const headerParameters: runtime.HTTPHeaders = {};
1032
1084
 
1033
- if (this.configuration && this.configuration.apiKey) {
1034
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1035
- }
1085
+ if (this.configuration && this.configuration.accessToken) {
1086
+ const token = this.configuration.accessToken;
1087
+ const tokenString = await token("authentik", []);
1036
1088
 
1089
+ if (tokenString) {
1090
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1091
+ }
1092
+ }
1037
1093
  const response = await this.request({
1038
1094
  path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1039
1095
  method: 'DELETE',
@@ -1131,10 +1187,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1131
1187
 
1132
1188
  const headerParameters: runtime.HTTPHeaders = {};
1133
1189
 
1134
- if (this.configuration && this.configuration.apiKey) {
1135
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1136
- }
1190
+ if (this.configuration && this.configuration.accessToken) {
1191
+ const token = this.configuration.accessToken;
1192
+ const tokenString = await token("authentik", []);
1137
1193
 
1194
+ if (tokenString) {
1195
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1196
+ }
1197
+ }
1138
1198
  const response = await this.request({
1139
1199
  path: `/providers/oauth2/`,
1140
1200
  method: 'GET',
@@ -1167,10 +1227,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1167
1227
 
1168
1228
  headerParameters['Content-Type'] = 'application/json';
1169
1229
 
1170
- if (this.configuration && this.configuration.apiKey) {
1171
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1172
- }
1230
+ if (this.configuration && this.configuration.accessToken) {
1231
+ const token = this.configuration.accessToken;
1232
+ const tokenString = await token("authentik", []);
1173
1233
 
1234
+ if (tokenString) {
1235
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1236
+ }
1237
+ }
1174
1238
  const response = await this.request({
1175
1239
  path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1176
1240
  method: 'PATCH',
@@ -1206,10 +1270,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1206
1270
 
1207
1271
  const headerParameters: runtime.HTTPHeaders = {};
1208
1272
 
1209
- if (this.configuration && this.configuration.apiKey) {
1210
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1211
- }
1273
+ if (this.configuration && this.configuration.accessToken) {
1274
+ const token = this.configuration.accessToken;
1275
+ const tokenString = await token("authentik", []);
1212
1276
 
1277
+ if (tokenString) {
1278
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1279
+ }
1280
+ }
1213
1281
  const response = await this.request({
1214
1282
  path: `/providers/oauth2/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1215
1283
  method: 'GET',
@@ -1240,10 +1308,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1240
1308
 
1241
1309
  const headerParameters: runtime.HTTPHeaders = {};
1242
1310
 
1243
- if (this.configuration && this.configuration.apiKey) {
1244
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1245
- }
1311
+ if (this.configuration && this.configuration.accessToken) {
1312
+ const token = this.configuration.accessToken;
1313
+ const tokenString = await token("authentik", []);
1246
1314
 
1315
+ if (tokenString) {
1316
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1317
+ }
1318
+ }
1247
1319
  const response = await this.request({
1248
1320
  path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1249
1321
  method: 'GET',
@@ -1274,10 +1346,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1274
1346
 
1275
1347
  const headerParameters: runtime.HTTPHeaders = {};
1276
1348
 
1277
- if (this.configuration && this.configuration.apiKey) {
1278
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1279
- }
1349
+ if (this.configuration && this.configuration.accessToken) {
1350
+ const token = this.configuration.accessToken;
1351
+ const tokenString = await token("authentik", []);
1280
1352
 
1353
+ if (tokenString) {
1354
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1355
+ }
1356
+ }
1281
1357
  const response = await this.request({
1282
1358
  path: `/providers/oauth2/{id}/setup_urls/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1283
1359
  method: 'GET',
@@ -1314,10 +1390,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1314
1390
 
1315
1391
  headerParameters['Content-Type'] = 'application/json';
1316
1392
 
1317
- if (this.configuration && this.configuration.apiKey) {
1318
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1319
- }
1393
+ if (this.configuration && this.configuration.accessToken) {
1394
+ const token = this.configuration.accessToken;
1395
+ const tokenString = await token("authentik", []);
1320
1396
 
1397
+ if (tokenString) {
1398
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1399
+ }
1400
+ }
1321
1401
  const response = await this.request({
1322
1402
  path: `/providers/oauth2/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1323
1403
  method: 'PUT',
@@ -1349,10 +1429,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1349
1429
 
1350
1430
  const headerParameters: runtime.HTTPHeaders = {};
1351
1431
 
1352
- if (this.configuration && this.configuration.apiKey) {
1353
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1354
- }
1432
+ if (this.configuration && this.configuration.accessToken) {
1433
+ const token = this.configuration.accessToken;
1434
+ const tokenString = await token("authentik", []);
1355
1435
 
1436
+ if (tokenString) {
1437
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1438
+ }
1439
+ }
1356
1440
  const response = await this.request({
1357
1441
  path: `/providers/oauth2/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1358
1442
  method: 'GET',
@@ -1385,10 +1469,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1385
1469
 
1386
1470
  headerParameters['Content-Type'] = 'application/json';
1387
1471
 
1388
- if (this.configuration && this.configuration.apiKey) {
1389
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1390
- }
1472
+ if (this.configuration && this.configuration.accessToken) {
1473
+ const token = this.configuration.accessToken;
1474
+ const tokenString = await token("authentik", []);
1391
1475
 
1476
+ if (tokenString) {
1477
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1478
+ }
1479
+ }
1392
1480
  const response = await this.request({
1393
1481
  path: `/providers/proxy/`,
1394
1482
  method: 'POST',
@@ -1420,10 +1508,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1420
1508
 
1421
1509
  const headerParameters: runtime.HTTPHeaders = {};
1422
1510
 
1423
- if (this.configuration && this.configuration.apiKey) {
1424
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1425
- }
1511
+ if (this.configuration && this.configuration.accessToken) {
1512
+ const token = this.configuration.accessToken;
1513
+ const tokenString = await token("authentik", []);
1426
1514
 
1515
+ if (tokenString) {
1516
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1517
+ }
1518
+ }
1427
1519
  const response = await this.request({
1428
1520
  path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1429
1521
  method: 'DELETE',
@@ -1529,10 +1621,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1529
1621
 
1530
1622
  const headerParameters: runtime.HTTPHeaders = {};
1531
1623
 
1532
- if (this.configuration && this.configuration.apiKey) {
1533
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1534
- }
1624
+ if (this.configuration && this.configuration.accessToken) {
1625
+ const token = this.configuration.accessToken;
1626
+ const tokenString = await token("authentik", []);
1535
1627
 
1628
+ if (tokenString) {
1629
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1630
+ }
1631
+ }
1536
1632
  const response = await this.request({
1537
1633
  path: `/providers/proxy/`,
1538
1634
  method: 'GET',
@@ -1565,10 +1661,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1565
1661
 
1566
1662
  headerParameters['Content-Type'] = 'application/json';
1567
1663
 
1568
- if (this.configuration && this.configuration.apiKey) {
1569
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1570
- }
1664
+ if (this.configuration && this.configuration.accessToken) {
1665
+ const token = this.configuration.accessToken;
1666
+ const tokenString = await token("authentik", []);
1571
1667
 
1668
+ if (tokenString) {
1669
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1670
+ }
1671
+ }
1572
1672
  const response = await this.request({
1573
1673
  path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1574
1674
  method: 'PATCH',
@@ -1600,10 +1700,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1600
1700
 
1601
1701
  const headerParameters: runtime.HTTPHeaders = {};
1602
1702
 
1603
- if (this.configuration && this.configuration.apiKey) {
1604
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1605
- }
1703
+ if (this.configuration && this.configuration.accessToken) {
1704
+ const token = this.configuration.accessToken;
1705
+ const tokenString = await token("authentik", []);
1606
1706
 
1707
+ if (tokenString) {
1708
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1709
+ }
1710
+ }
1607
1711
  const response = await this.request({
1608
1712
  path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1609
1713
  method: 'GET',
@@ -1640,10 +1744,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1640
1744
 
1641
1745
  headerParameters['Content-Type'] = 'application/json';
1642
1746
 
1643
- if (this.configuration && this.configuration.apiKey) {
1644
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1645
- }
1747
+ if (this.configuration && this.configuration.accessToken) {
1748
+ const token = this.configuration.accessToken;
1749
+ const tokenString = await token("authentik", []);
1646
1750
 
1751
+ if (tokenString) {
1752
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1753
+ }
1754
+ }
1647
1755
  const response = await this.request({
1648
1756
  path: `/providers/proxy/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1649
1757
  method: 'PUT',
@@ -1675,10 +1783,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1675
1783
 
1676
1784
  const headerParameters: runtime.HTTPHeaders = {};
1677
1785
 
1678
- if (this.configuration && this.configuration.apiKey) {
1679
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1680
- }
1786
+ if (this.configuration && this.configuration.accessToken) {
1787
+ const token = this.configuration.accessToken;
1788
+ const tokenString = await token("authentik", []);
1681
1789
 
1790
+ if (tokenString) {
1791
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1792
+ }
1793
+ }
1682
1794
  const response = await this.request({
1683
1795
  path: `/providers/proxy/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1684
1796
  method: 'GET',
@@ -1711,10 +1823,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1711
1823
 
1712
1824
  headerParameters['Content-Type'] = 'application/json';
1713
1825
 
1714
- if (this.configuration && this.configuration.apiKey) {
1715
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1716
- }
1826
+ if (this.configuration && this.configuration.accessToken) {
1827
+ const token = this.configuration.accessToken;
1828
+ const tokenString = await token("authentik", []);
1717
1829
 
1830
+ if (tokenString) {
1831
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1832
+ }
1833
+ }
1718
1834
  const response = await this.request({
1719
1835
  path: `/providers/rac/`,
1720
1836
  method: 'POST',
@@ -1746,10 +1862,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1746
1862
 
1747
1863
  const headerParameters: runtime.HTTPHeaders = {};
1748
1864
 
1749
- if (this.configuration && this.configuration.apiKey) {
1750
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1751
- }
1865
+ if (this.configuration && this.configuration.accessToken) {
1866
+ const token = this.configuration.accessToken;
1867
+ const tokenString = await token("authentik", []);
1752
1868
 
1869
+ if (tokenString) {
1870
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1871
+ }
1872
+ }
1753
1873
  const response = await this.request({
1754
1874
  path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1755
1875
  method: 'DELETE',
@@ -1799,10 +1919,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1799
1919
 
1800
1920
  const headerParameters: runtime.HTTPHeaders = {};
1801
1921
 
1802
- if (this.configuration && this.configuration.apiKey) {
1803
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1804
- }
1922
+ if (this.configuration && this.configuration.accessToken) {
1923
+ const token = this.configuration.accessToken;
1924
+ const tokenString = await token("authentik", []);
1805
1925
 
1926
+ if (tokenString) {
1927
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1928
+ }
1929
+ }
1806
1930
  const response = await this.request({
1807
1931
  path: `/providers/rac/`,
1808
1932
  method: 'GET',
@@ -1835,10 +1959,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1835
1959
 
1836
1960
  headerParameters['Content-Type'] = 'application/json';
1837
1961
 
1838
- if (this.configuration && this.configuration.apiKey) {
1839
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1840
- }
1962
+ if (this.configuration && this.configuration.accessToken) {
1963
+ const token = this.configuration.accessToken;
1964
+ const tokenString = await token("authentik", []);
1841
1965
 
1966
+ if (tokenString) {
1967
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1968
+ }
1969
+ }
1842
1970
  const response = await this.request({
1843
1971
  path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1844
1972
  method: 'PATCH',
@@ -1870,10 +1998,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1870
1998
 
1871
1999
  const headerParameters: runtime.HTTPHeaders = {};
1872
2000
 
1873
- if (this.configuration && this.configuration.apiKey) {
1874
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1875
- }
2001
+ if (this.configuration && this.configuration.accessToken) {
2002
+ const token = this.configuration.accessToken;
2003
+ const tokenString = await token("authentik", []);
1876
2004
 
2005
+ if (tokenString) {
2006
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2007
+ }
2008
+ }
1877
2009
  const response = await this.request({
1878
2010
  path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1879
2011
  method: 'GET',
@@ -1910,10 +2042,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1910
2042
 
1911
2043
  headerParameters['Content-Type'] = 'application/json';
1912
2044
 
1913
- if (this.configuration && this.configuration.apiKey) {
1914
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1915
- }
2045
+ if (this.configuration && this.configuration.accessToken) {
2046
+ const token = this.configuration.accessToken;
2047
+ const tokenString = await token("authentik", []);
1916
2048
 
2049
+ if (tokenString) {
2050
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2051
+ }
2052
+ }
1917
2053
  const response = await this.request({
1918
2054
  path: `/providers/rac/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1919
2055
  method: 'PUT',
@@ -1945,10 +2081,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1945
2081
 
1946
2082
  const headerParameters: runtime.HTTPHeaders = {};
1947
2083
 
1948
- if (this.configuration && this.configuration.apiKey) {
1949
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1950
- }
2084
+ if (this.configuration && this.configuration.accessToken) {
2085
+ const token = this.configuration.accessToken;
2086
+ const tokenString = await token("authentik", []);
1951
2087
 
2088
+ if (tokenString) {
2089
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2090
+ }
2091
+ }
1952
2092
  const response = await this.request({
1953
2093
  path: `/providers/rac/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
1954
2094
  method: 'GET',
@@ -1981,10 +2121,14 @@ export class ProvidersApi extends runtime.BaseAPI {
1981
2121
 
1982
2122
  headerParameters['Content-Type'] = 'application/json';
1983
2123
 
1984
- if (this.configuration && this.configuration.apiKey) {
1985
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1986
- }
2124
+ if (this.configuration && this.configuration.accessToken) {
2125
+ const token = this.configuration.accessToken;
2126
+ const tokenString = await token("authentik", []);
1987
2127
 
2128
+ if (tokenString) {
2129
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2130
+ }
2131
+ }
1988
2132
  const response = await this.request({
1989
2133
  path: `/providers/radius/`,
1990
2134
  method: 'POST',
@@ -2016,10 +2160,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2016
2160
 
2017
2161
  const headerParameters: runtime.HTTPHeaders = {};
2018
2162
 
2019
- if (this.configuration && this.configuration.apiKey) {
2020
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2021
- }
2163
+ if (this.configuration && this.configuration.accessToken) {
2164
+ const token = this.configuration.accessToken;
2165
+ const tokenString = await token("authentik", []);
2022
2166
 
2167
+ if (tokenString) {
2168
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2169
+ }
2170
+ }
2023
2171
  const response = await this.request({
2024
2172
  path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2025
2173
  method: 'DELETE',
@@ -2077,10 +2225,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2077
2225
 
2078
2226
  const headerParameters: runtime.HTTPHeaders = {};
2079
2227
 
2080
- if (this.configuration && this.configuration.apiKey) {
2081
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2082
- }
2228
+ if (this.configuration && this.configuration.accessToken) {
2229
+ const token = this.configuration.accessToken;
2230
+ const tokenString = await token("authentik", []);
2083
2231
 
2232
+ if (tokenString) {
2233
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2234
+ }
2235
+ }
2084
2236
  const response = await this.request({
2085
2237
  path: `/providers/radius/`,
2086
2238
  method: 'GET',
@@ -2113,10 +2265,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2113
2265
 
2114
2266
  headerParameters['Content-Type'] = 'application/json';
2115
2267
 
2116
- if (this.configuration && this.configuration.apiKey) {
2117
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2118
- }
2268
+ if (this.configuration && this.configuration.accessToken) {
2269
+ const token = this.configuration.accessToken;
2270
+ const tokenString = await token("authentik", []);
2119
2271
 
2272
+ if (tokenString) {
2273
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2274
+ }
2275
+ }
2120
2276
  const response = await this.request({
2121
2277
  path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2122
2278
  method: 'PATCH',
@@ -2148,10 +2304,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2148
2304
 
2149
2305
  const headerParameters: runtime.HTTPHeaders = {};
2150
2306
 
2151
- if (this.configuration && this.configuration.apiKey) {
2152
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2153
- }
2307
+ if (this.configuration && this.configuration.accessToken) {
2308
+ const token = this.configuration.accessToken;
2309
+ const tokenString = await token("authentik", []);
2154
2310
 
2311
+ if (tokenString) {
2312
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2313
+ }
2314
+ }
2155
2315
  const response = await this.request({
2156
2316
  path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2157
2317
  method: 'GET',
@@ -2188,10 +2348,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2188
2348
 
2189
2349
  headerParameters['Content-Type'] = 'application/json';
2190
2350
 
2191
- if (this.configuration && this.configuration.apiKey) {
2192
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2193
- }
2351
+ if (this.configuration && this.configuration.accessToken) {
2352
+ const token = this.configuration.accessToken;
2353
+ const tokenString = await token("authentik", []);
2194
2354
 
2355
+ if (tokenString) {
2356
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2357
+ }
2358
+ }
2195
2359
  const response = await this.request({
2196
2360
  path: `/providers/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2197
2361
  method: 'PUT',
@@ -2223,10 +2387,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2223
2387
 
2224
2388
  const headerParameters: runtime.HTTPHeaders = {};
2225
2389
 
2226
- if (this.configuration && this.configuration.apiKey) {
2227
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2228
- }
2390
+ if (this.configuration && this.configuration.accessToken) {
2391
+ const token = this.configuration.accessToken;
2392
+ const tokenString = await token("authentik", []);
2229
2393
 
2394
+ if (tokenString) {
2395
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2396
+ }
2397
+ }
2230
2398
  const response = await this.request({
2231
2399
  path: `/providers/radius/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2232
2400
  method: 'GET',
@@ -2259,10 +2427,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2259
2427
 
2260
2428
  headerParameters['Content-Type'] = 'application/json';
2261
2429
 
2262
- if (this.configuration && this.configuration.apiKey) {
2263
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2264
- }
2430
+ if (this.configuration && this.configuration.accessToken) {
2431
+ const token = this.configuration.accessToken;
2432
+ const tokenString = await token("authentik", []);
2265
2433
 
2434
+ if (tokenString) {
2435
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2436
+ }
2437
+ }
2266
2438
  const response = await this.request({
2267
2439
  path: `/providers/saml/`,
2268
2440
  method: 'POST',
@@ -2294,10 +2466,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2294
2466
 
2295
2467
  const headerParameters: runtime.HTTPHeaders = {};
2296
2468
 
2297
- if (this.configuration && this.configuration.apiKey) {
2298
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2299
- }
2469
+ if (this.configuration && this.configuration.accessToken) {
2470
+ const token = this.configuration.accessToken;
2471
+ const tokenString = await token("authentik", []);
2300
2472
 
2473
+ if (tokenString) {
2474
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2475
+ }
2476
+ }
2301
2477
  const response = await this.request({
2302
2478
  path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2303
2479
  method: 'DELETE',
@@ -2335,10 +2511,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2335
2511
 
2336
2512
  const headerParameters: runtime.HTTPHeaders = {};
2337
2513
 
2338
- if (this.configuration && this.configuration.apiKey) {
2339
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2340
- }
2514
+ if (this.configuration && this.configuration.accessToken) {
2515
+ const token = this.configuration.accessToken;
2516
+ const tokenString = await token("authentik", []);
2341
2517
 
2518
+ if (tokenString) {
2519
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2520
+ }
2521
+ }
2342
2522
  const consumes: runtime.Consume[] = [
2343
2523
  { contentType: 'multipart/form-data' },
2344
2524
  ];
@@ -2485,10 +2665,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2485
2665
 
2486
2666
  const headerParameters: runtime.HTTPHeaders = {};
2487
2667
 
2488
- if (this.configuration && this.configuration.apiKey) {
2489
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2490
- }
2668
+ if (this.configuration && this.configuration.accessToken) {
2669
+ const token = this.configuration.accessToken;
2670
+ const tokenString = await token("authentik", []);
2491
2671
 
2672
+ if (tokenString) {
2673
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2674
+ }
2675
+ }
2492
2676
  const response = await this.request({
2493
2677
  path: `/providers/saml/`,
2494
2678
  method: 'GET',
@@ -2527,10 +2711,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2527
2711
 
2528
2712
  const headerParameters: runtime.HTTPHeaders = {};
2529
2713
 
2530
- if (this.configuration && this.configuration.apiKey) {
2531
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2532
- }
2714
+ if (this.configuration && this.configuration.accessToken) {
2715
+ const token = this.configuration.accessToken;
2716
+ const tokenString = await token("authentik", []);
2533
2717
 
2718
+ if (tokenString) {
2719
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2720
+ }
2721
+ }
2534
2722
  const response = await this.request({
2535
2723
  path: `/providers/saml/{id}/metadata/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2536
2724
  method: 'GET',
@@ -2563,10 +2751,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2563
2751
 
2564
2752
  headerParameters['Content-Type'] = 'application/json';
2565
2753
 
2566
- if (this.configuration && this.configuration.apiKey) {
2567
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2568
- }
2754
+ if (this.configuration && this.configuration.accessToken) {
2755
+ const token = this.configuration.accessToken;
2756
+ const tokenString = await token("authentik", []);
2569
2757
 
2758
+ if (tokenString) {
2759
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2760
+ }
2761
+ }
2570
2762
  const response = await this.request({
2571
2763
  path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2572
2764
  method: 'PATCH',
@@ -2602,10 +2794,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2602
2794
 
2603
2795
  const headerParameters: runtime.HTTPHeaders = {};
2604
2796
 
2605
- if (this.configuration && this.configuration.apiKey) {
2606
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2607
- }
2797
+ if (this.configuration && this.configuration.accessToken) {
2798
+ const token = this.configuration.accessToken;
2799
+ const tokenString = await token("authentik", []);
2608
2800
 
2801
+ if (tokenString) {
2802
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2803
+ }
2804
+ }
2609
2805
  const response = await this.request({
2610
2806
  path: `/providers/saml/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2611
2807
  method: 'GET',
@@ -2636,10 +2832,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2636
2832
 
2637
2833
  const headerParameters: runtime.HTTPHeaders = {};
2638
2834
 
2639
- if (this.configuration && this.configuration.apiKey) {
2640
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2641
- }
2835
+ if (this.configuration && this.configuration.accessToken) {
2836
+ const token = this.configuration.accessToken;
2837
+ const tokenString = await token("authentik", []);
2642
2838
 
2839
+ if (tokenString) {
2840
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2841
+ }
2842
+ }
2643
2843
  const response = await this.request({
2644
2844
  path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2645
2845
  method: 'GET',
@@ -2676,10 +2876,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2676
2876
 
2677
2877
  headerParameters['Content-Type'] = 'application/json';
2678
2878
 
2679
- if (this.configuration && this.configuration.apiKey) {
2680
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2681
- }
2879
+ if (this.configuration && this.configuration.accessToken) {
2880
+ const token = this.configuration.accessToken;
2881
+ const tokenString = await token("authentik", []);
2682
2882
 
2883
+ if (tokenString) {
2884
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2885
+ }
2886
+ }
2683
2887
  const response = await this.request({
2684
2888
  path: `/providers/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2685
2889
  method: 'PUT',
@@ -2711,10 +2915,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2711
2915
 
2712
2916
  const headerParameters: runtime.HTTPHeaders = {};
2713
2917
 
2714
- if (this.configuration && this.configuration.apiKey) {
2715
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2716
- }
2918
+ if (this.configuration && this.configuration.accessToken) {
2919
+ const token = this.configuration.accessToken;
2920
+ const tokenString = await token("authentik", []);
2717
2921
 
2922
+ if (tokenString) {
2923
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2924
+ }
2925
+ }
2718
2926
  const response = await this.request({
2719
2927
  path: `/providers/saml/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2720
2928
  method: 'GET',
@@ -2747,10 +2955,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2747
2955
 
2748
2956
  headerParameters['Content-Type'] = 'application/json';
2749
2957
 
2750
- if (this.configuration && this.configuration.apiKey) {
2751
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2752
- }
2958
+ if (this.configuration && this.configuration.accessToken) {
2959
+ const token = this.configuration.accessToken;
2960
+ const tokenString = await token("authentik", []);
2753
2961
 
2962
+ if (tokenString) {
2963
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2964
+ }
2965
+ }
2754
2966
  const response = await this.request({
2755
2967
  path: `/providers/scim/`,
2756
2968
  method: 'POST',
@@ -2782,10 +2994,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2782
2994
 
2783
2995
  const headerParameters: runtime.HTTPHeaders = {};
2784
2996
 
2785
- if (this.configuration && this.configuration.apiKey) {
2786
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2787
- }
2997
+ if (this.configuration && this.configuration.accessToken) {
2998
+ const token = this.configuration.accessToken;
2999
+ const tokenString = await token("authentik", []);
2788
3000
 
3001
+ if (tokenString) {
3002
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3003
+ }
3004
+ }
2789
3005
  const response = await this.request({
2790
3006
  path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2791
3007
  method: 'DELETE',
@@ -2843,10 +3059,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2843
3059
 
2844
3060
  const headerParameters: runtime.HTTPHeaders = {};
2845
3061
 
2846
- if (this.configuration && this.configuration.apiKey) {
2847
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2848
- }
3062
+ if (this.configuration && this.configuration.accessToken) {
3063
+ const token = this.configuration.accessToken;
3064
+ const tokenString = await token("authentik", []);
2849
3065
 
3066
+ if (tokenString) {
3067
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3068
+ }
3069
+ }
2850
3070
  const response = await this.request({
2851
3071
  path: `/providers/scim/`,
2852
3072
  method: 'GET',
@@ -2879,10 +3099,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2879
3099
 
2880
3100
  headerParameters['Content-Type'] = 'application/json';
2881
3101
 
2882
- if (this.configuration && this.configuration.apiKey) {
2883
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2884
- }
3102
+ if (this.configuration && this.configuration.accessToken) {
3103
+ const token = this.configuration.accessToken;
3104
+ const tokenString = await token("authentik", []);
2885
3105
 
3106
+ if (tokenString) {
3107
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3108
+ }
3109
+ }
2886
3110
  const response = await this.request({
2887
3111
  path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2888
3112
  method: 'PATCH',
@@ -2914,10 +3138,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2914
3138
 
2915
3139
  const headerParameters: runtime.HTTPHeaders = {};
2916
3140
 
2917
- if (this.configuration && this.configuration.apiKey) {
2918
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2919
- }
3141
+ if (this.configuration && this.configuration.accessToken) {
3142
+ const token = this.configuration.accessToken;
3143
+ const tokenString = await token("authentik", []);
2920
3144
 
3145
+ if (tokenString) {
3146
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3147
+ }
3148
+ }
2921
3149
  const response = await this.request({
2922
3150
  path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2923
3151
  method: 'GET',
@@ -2948,10 +3176,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2948
3176
 
2949
3177
  const headerParameters: runtime.HTTPHeaders = {};
2950
3178
 
2951
- if (this.configuration && this.configuration.apiKey) {
2952
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2953
- }
3179
+ if (this.configuration && this.configuration.accessToken) {
3180
+ const token = this.configuration.accessToken;
3181
+ const tokenString = await token("authentik", []);
2954
3182
 
3183
+ if (tokenString) {
3184
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3185
+ }
3186
+ }
2955
3187
  const response = await this.request({
2956
3188
  path: `/providers/scim/{id}/sync_status/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2957
3189
  method: 'GET',
@@ -2988,10 +3220,14 @@ export class ProvidersApi extends runtime.BaseAPI {
2988
3220
 
2989
3221
  headerParameters['Content-Type'] = 'application/json';
2990
3222
 
2991
- if (this.configuration && this.configuration.apiKey) {
2992
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2993
- }
3223
+ if (this.configuration && this.configuration.accessToken) {
3224
+ const token = this.configuration.accessToken;
3225
+ const tokenString = await token("authentik", []);
2994
3226
 
3227
+ if (tokenString) {
3228
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3229
+ }
3230
+ }
2995
3231
  const response = await this.request({
2996
3232
  path: `/providers/scim/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2997
3233
  method: 'PUT',
@@ -3023,10 +3259,14 @@ export class ProvidersApi extends runtime.BaseAPI {
3023
3259
 
3024
3260
  const headerParameters: runtime.HTTPHeaders = {};
3025
3261
 
3026
- if (this.configuration && this.configuration.apiKey) {
3027
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
3028
- }
3262
+ if (this.configuration && this.configuration.accessToken) {
3263
+ const token = this.configuration.accessToken;
3264
+ const tokenString = await token("authentik", []);
3029
3265
 
3266
+ if (tokenString) {
3267
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3268
+ }
3269
+ }
3030
3270
  const response = await this.request({
3031
3271
  path: `/providers/scim/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
3032
3272
  method: 'GET',