@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/apis/AdminApi.js +60 -20
  2. package/dist/apis/AuthenticatorsApi.js +372 -124
  3. package/dist/apis/CoreApi.js +372 -124
  4. package/dist/apis/CryptoApi.js +60 -20
  5. package/dist/apis/EnterpriseApi.js +60 -20
  6. package/dist/apis/EventsApi.js +210 -70
  7. package/dist/apis/FlowsApi.js +150 -50
  8. package/dist/apis/ManagedApi.js +54 -18
  9. package/dist/apis/Oauth2Api.js +72 -24
  10. package/dist/apis/OutpostsApi.js +210 -70
  11. package/dist/apis/PoliciesApi.js +366 -122
  12. package/dist/apis/PropertymappingsApi.js +288 -96
  13. package/dist/apis/ProvidersApi.js +360 -120
  14. package/dist/apis/RacApi.js +78 -26
  15. package/dist/apis/RbacApi.js +102 -34
  16. package/dist/apis/RootApi.js +6 -2
  17. package/dist/apis/SchemaApi.js +6 -2
  18. package/dist/apis/SourcesApi.js +414 -138
  19. package/dist/apis/StagesApi.js +1002 -334
  20. package/dist/esm/apis/AdminApi.js +60 -20
  21. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  22. package/dist/esm/apis/CoreApi.js +372 -124
  23. package/dist/esm/apis/CryptoApi.js +60 -20
  24. package/dist/esm/apis/EnterpriseApi.js +60 -20
  25. package/dist/esm/apis/EventsApi.js +210 -70
  26. package/dist/esm/apis/FlowsApi.js +150 -50
  27. package/dist/esm/apis/ManagedApi.js +54 -18
  28. package/dist/esm/apis/Oauth2Api.js +72 -24
  29. package/dist/esm/apis/OutpostsApi.js +210 -70
  30. package/dist/esm/apis/PoliciesApi.js +366 -122
  31. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  32. package/dist/esm/apis/ProvidersApi.js +360 -120
  33. package/dist/esm/apis/RacApi.js +78 -26
  34. package/dist/esm/apis/RbacApi.js +102 -34
  35. package/dist/esm/apis/RootApi.js +6 -2
  36. package/dist/esm/apis/SchemaApi.js +6 -2
  37. package/dist/esm/apis/SourcesApi.js +414 -138
  38. package/dist/esm/apis/StagesApi.js +1002 -334
  39. package/package.json +1 -1
  40. package/src/apis/AdminApi.ts +70 -30
  41. package/src/apis/AuthenticatorsApi.ts +434 -186
  42. package/src/apis/CoreApi.ts +434 -186
  43. package/src/apis/CryptoApi.ts +70 -30
  44. package/src/apis/EnterpriseApi.ts +70 -30
  45. package/src/apis/EventsApi.ts +245 -105
  46. package/src/apis/FlowsApi.ts +175 -75
  47. package/src/apis/ManagedApi.ts +63 -27
  48. package/src/apis/Oauth2Api.ts +84 -36
  49. package/src/apis/OutpostsApi.ts +245 -105
  50. package/src/apis/PoliciesApi.ts +427 -183
  51. package/src/apis/PropertymappingsApi.ts +336 -144
  52. package/src/apis/ProvidersApi.ts +420 -180
  53. package/src/apis/RacApi.ts +91 -39
  54. package/src/apis/RbacApi.ts +119 -51
  55. package/src/apis/RootApi.ts +7 -3
  56. package/src/apis/SchemaApi.ts +7 -3
  57. package/src/apis/SourcesApi.ts +483 -207
  58. package/src/apis/StagesApi.ts +1169 -501
@@ -377,10 +377,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
377
377
 
378
378
  const headerParameters: runtime.HTTPHeaders = {};
379
379
 
380
- if (this.configuration && this.configuration.apiKey) {
381
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
382
- }
380
+ if (this.configuration && this.configuration.accessToken) {
381
+ const token = this.configuration.accessToken;
382
+ const tokenString = await token("authentik", []);
383
383
 
384
+ if (tokenString) {
385
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
386
+ }
387
+ }
384
388
  const response = await this.request({
385
389
  path: `/propertymappings/all/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
386
390
  method: 'DELETE',
@@ -426,10 +430,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
426
430
 
427
431
  const headerParameters: runtime.HTTPHeaders = {};
428
432
 
429
- if (this.configuration && this.configuration.apiKey) {
430
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
431
- }
433
+ if (this.configuration && this.configuration.accessToken) {
434
+ const token = this.configuration.accessToken;
435
+ const tokenString = await token("authentik", []);
432
436
 
437
+ if (tokenString) {
438
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
439
+ }
440
+ }
433
441
  const response = await this.request({
434
442
  path: `/propertymappings/all/`,
435
443
  method: 'GET',
@@ -460,10 +468,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
460
468
 
461
469
  const headerParameters: runtime.HTTPHeaders = {};
462
470
 
463
- if (this.configuration && this.configuration.apiKey) {
464
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
465
- }
471
+ if (this.configuration && this.configuration.accessToken) {
472
+ const token = this.configuration.accessToken;
473
+ const tokenString = await token("authentik", []);
466
474
 
475
+ if (tokenString) {
476
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
477
+ }
478
+ }
467
479
  const response = await this.request({
468
480
  path: `/propertymappings/all/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
469
481
  method: 'GET',
@@ -504,10 +516,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
504
516
 
505
517
  headerParameters['Content-Type'] = 'application/json';
506
518
 
507
- if (this.configuration && this.configuration.apiKey) {
508
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
509
- }
519
+ if (this.configuration && this.configuration.accessToken) {
520
+ const token = this.configuration.accessToken;
521
+ const tokenString = await token("authentik", []);
510
522
 
523
+ if (tokenString) {
524
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
525
+ }
526
+ }
511
527
  const response = await this.request({
512
528
  path: `/propertymappings/all/{pm_uuid}/test/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
513
529
  method: 'POST',
@@ -535,10 +551,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
535
551
 
536
552
  const headerParameters: runtime.HTTPHeaders = {};
537
553
 
538
- if (this.configuration && this.configuration.apiKey) {
539
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
540
- }
554
+ if (this.configuration && this.configuration.accessToken) {
555
+ const token = this.configuration.accessToken;
556
+ const tokenString = await token("authentik", []);
541
557
 
558
+ if (tokenString) {
559
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
560
+ }
561
+ }
542
562
  const response = await this.request({
543
563
  path: `/propertymappings/all/types/`,
544
564
  method: 'GET',
@@ -569,10 +589,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
569
589
 
570
590
  const headerParameters: runtime.HTTPHeaders = {};
571
591
 
572
- if (this.configuration && this.configuration.apiKey) {
573
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
574
- }
592
+ if (this.configuration && this.configuration.accessToken) {
593
+ const token = this.configuration.accessToken;
594
+ const tokenString = await token("authentik", []);
575
595
 
596
+ if (tokenString) {
597
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
598
+ }
599
+ }
576
600
  const response = await this.request({
577
601
  path: `/propertymappings/all/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
578
602
  method: 'GET',
@@ -605,10 +629,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
605
629
 
606
630
  headerParameters['Content-Type'] = 'application/json';
607
631
 
608
- if (this.configuration && this.configuration.apiKey) {
609
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
610
- }
632
+ if (this.configuration && this.configuration.accessToken) {
633
+ const token = this.configuration.accessToken;
634
+ const tokenString = await token("authentik", []);
611
635
 
636
+ if (tokenString) {
637
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
638
+ }
639
+ }
612
640
  const response = await this.request({
613
641
  path: `/propertymappings/ldap/`,
614
642
  method: 'POST',
@@ -640,10 +668,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
640
668
 
641
669
  const headerParameters: runtime.HTTPHeaders = {};
642
670
 
643
- if (this.configuration && this.configuration.apiKey) {
644
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
645
- }
671
+ if (this.configuration && this.configuration.accessToken) {
672
+ const token = this.configuration.accessToken;
673
+ const tokenString = await token("authentik", []);
646
674
 
675
+ if (tokenString) {
676
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
677
+ }
678
+ }
647
679
  const response = await this.request({
648
680
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
649
681
  method: 'DELETE',
@@ -705,10 +737,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
705
737
 
706
738
  const headerParameters: runtime.HTTPHeaders = {};
707
739
 
708
- if (this.configuration && this.configuration.apiKey) {
709
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
710
- }
740
+ if (this.configuration && this.configuration.accessToken) {
741
+ const token = this.configuration.accessToken;
742
+ const tokenString = await token("authentik", []);
711
743
 
744
+ if (tokenString) {
745
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
746
+ }
747
+ }
712
748
  const response = await this.request({
713
749
  path: `/propertymappings/ldap/`,
714
750
  method: 'GET',
@@ -741,10 +777,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
741
777
 
742
778
  headerParameters['Content-Type'] = 'application/json';
743
779
 
744
- if (this.configuration && this.configuration.apiKey) {
745
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
746
- }
780
+ if (this.configuration && this.configuration.accessToken) {
781
+ const token = this.configuration.accessToken;
782
+ const tokenString = await token("authentik", []);
747
783
 
784
+ if (tokenString) {
785
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
786
+ }
787
+ }
748
788
  const response = await this.request({
749
789
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
750
790
  method: 'PATCH',
@@ -776,10 +816,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
776
816
 
777
817
  const headerParameters: runtime.HTTPHeaders = {};
778
818
 
779
- if (this.configuration && this.configuration.apiKey) {
780
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
781
- }
819
+ if (this.configuration && this.configuration.accessToken) {
820
+ const token = this.configuration.accessToken;
821
+ const tokenString = await token("authentik", []);
782
822
 
823
+ if (tokenString) {
824
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
825
+ }
826
+ }
783
827
  const response = await this.request({
784
828
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
785
829
  method: 'GET',
@@ -816,10 +860,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
816
860
 
817
861
  headerParameters['Content-Type'] = 'application/json';
818
862
 
819
- if (this.configuration && this.configuration.apiKey) {
820
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
821
- }
863
+ if (this.configuration && this.configuration.accessToken) {
864
+ const token = this.configuration.accessToken;
865
+ const tokenString = await token("authentik", []);
822
866
 
867
+ if (tokenString) {
868
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
869
+ }
870
+ }
823
871
  const response = await this.request({
824
872
  path: `/propertymappings/ldap/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
825
873
  method: 'PUT',
@@ -851,10 +899,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
851
899
 
852
900
  const headerParameters: runtime.HTTPHeaders = {};
853
901
 
854
- if (this.configuration && this.configuration.apiKey) {
855
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
856
- }
902
+ if (this.configuration && this.configuration.accessToken) {
903
+ const token = this.configuration.accessToken;
904
+ const tokenString = await token("authentik", []);
857
905
 
906
+ if (tokenString) {
907
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
908
+ }
909
+ }
858
910
  const response = await this.request({
859
911
  path: `/propertymappings/ldap/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
860
912
  method: 'GET',
@@ -887,10 +939,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
887
939
 
888
940
  headerParameters['Content-Type'] = 'application/json';
889
941
 
890
- if (this.configuration && this.configuration.apiKey) {
891
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
892
- }
942
+ if (this.configuration && this.configuration.accessToken) {
943
+ const token = this.configuration.accessToken;
944
+ const tokenString = await token("authentik", []);
893
945
 
946
+ if (tokenString) {
947
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
948
+ }
949
+ }
894
950
  const response = await this.request({
895
951
  path: `/propertymappings/notification/`,
896
952
  method: 'POST',
@@ -922,10 +978,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
922
978
 
923
979
  const headerParameters: runtime.HTTPHeaders = {};
924
980
 
925
- if (this.configuration && this.configuration.apiKey) {
926
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
927
- }
981
+ if (this.configuration && this.configuration.accessToken) {
982
+ const token = this.configuration.accessToken;
983
+ const tokenString = await token("authentik", []);
928
984
 
985
+ if (tokenString) {
986
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
987
+ }
988
+ }
929
989
  const response = await this.request({
930
990
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
931
991
  method: 'DELETE',
@@ -971,10 +1031,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
971
1031
 
972
1032
  const headerParameters: runtime.HTTPHeaders = {};
973
1033
 
974
- if (this.configuration && this.configuration.apiKey) {
975
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
976
- }
1034
+ if (this.configuration && this.configuration.accessToken) {
1035
+ const token = this.configuration.accessToken;
1036
+ const tokenString = await token("authentik", []);
977
1037
 
1038
+ if (tokenString) {
1039
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1040
+ }
1041
+ }
978
1042
  const response = await this.request({
979
1043
  path: `/propertymappings/notification/`,
980
1044
  method: 'GET',
@@ -1007,10 +1071,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1007
1071
 
1008
1072
  headerParameters['Content-Type'] = 'application/json';
1009
1073
 
1010
- if (this.configuration && this.configuration.apiKey) {
1011
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1012
- }
1074
+ if (this.configuration && this.configuration.accessToken) {
1075
+ const token = this.configuration.accessToken;
1076
+ const tokenString = await token("authentik", []);
1013
1077
 
1078
+ if (tokenString) {
1079
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1080
+ }
1081
+ }
1014
1082
  const response = await this.request({
1015
1083
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1016
1084
  method: 'PATCH',
@@ -1042,10 +1110,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1042
1110
 
1043
1111
  const headerParameters: runtime.HTTPHeaders = {};
1044
1112
 
1045
- if (this.configuration && this.configuration.apiKey) {
1046
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1047
- }
1113
+ if (this.configuration && this.configuration.accessToken) {
1114
+ const token = this.configuration.accessToken;
1115
+ const tokenString = await token("authentik", []);
1048
1116
 
1117
+ if (tokenString) {
1118
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1119
+ }
1120
+ }
1049
1121
  const response = await this.request({
1050
1122
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1051
1123
  method: 'GET',
@@ -1082,10 +1154,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1082
1154
 
1083
1155
  headerParameters['Content-Type'] = 'application/json';
1084
1156
 
1085
- if (this.configuration && this.configuration.apiKey) {
1086
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1087
- }
1157
+ if (this.configuration && this.configuration.accessToken) {
1158
+ const token = this.configuration.accessToken;
1159
+ const tokenString = await token("authentik", []);
1088
1160
 
1161
+ if (tokenString) {
1162
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1163
+ }
1164
+ }
1089
1165
  const response = await this.request({
1090
1166
  path: `/propertymappings/notification/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1091
1167
  method: 'PUT',
@@ -1117,10 +1193,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1117
1193
 
1118
1194
  const headerParameters: runtime.HTTPHeaders = {};
1119
1195
 
1120
- if (this.configuration && this.configuration.apiKey) {
1121
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1122
- }
1196
+ if (this.configuration && this.configuration.accessToken) {
1197
+ const token = this.configuration.accessToken;
1198
+ const tokenString = await token("authentik", []);
1123
1199
 
1200
+ if (tokenString) {
1201
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1202
+ }
1203
+ }
1124
1204
  const response = await this.request({
1125
1205
  path: `/propertymappings/notification/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1126
1206
  method: 'GET',
@@ -1153,10 +1233,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1153
1233
 
1154
1234
  headerParameters['Content-Type'] = 'application/json';
1155
1235
 
1156
- if (this.configuration && this.configuration.apiKey) {
1157
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1158
- }
1236
+ if (this.configuration && this.configuration.accessToken) {
1237
+ const token = this.configuration.accessToken;
1238
+ const tokenString = await token("authentik", []);
1159
1239
 
1240
+ if (tokenString) {
1241
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1242
+ }
1243
+ }
1160
1244
  const response = await this.request({
1161
1245
  path: `/propertymappings/rac/`,
1162
1246
  method: 'POST',
@@ -1188,10 +1272,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1188
1272
 
1189
1273
  const headerParameters: runtime.HTTPHeaders = {};
1190
1274
 
1191
- if (this.configuration && this.configuration.apiKey) {
1192
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1193
- }
1275
+ if (this.configuration && this.configuration.accessToken) {
1276
+ const token = this.configuration.accessToken;
1277
+ const tokenString = await token("authentik", []);
1194
1278
 
1279
+ if (tokenString) {
1280
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1281
+ }
1282
+ }
1195
1283
  const response = await this.request({
1196
1284
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1197
1285
  method: 'DELETE',
@@ -1241,10 +1329,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1241
1329
 
1242
1330
  const headerParameters: runtime.HTTPHeaders = {};
1243
1331
 
1244
- if (this.configuration && this.configuration.apiKey) {
1245
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1246
- }
1332
+ if (this.configuration && this.configuration.accessToken) {
1333
+ const token = this.configuration.accessToken;
1334
+ const tokenString = await token("authentik", []);
1247
1335
 
1336
+ if (tokenString) {
1337
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1338
+ }
1339
+ }
1248
1340
  const response = await this.request({
1249
1341
  path: `/propertymappings/rac/`,
1250
1342
  method: 'GET',
@@ -1277,10 +1369,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1277
1369
 
1278
1370
  headerParameters['Content-Type'] = 'application/json';
1279
1371
 
1280
- if (this.configuration && this.configuration.apiKey) {
1281
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1282
- }
1372
+ if (this.configuration && this.configuration.accessToken) {
1373
+ const token = this.configuration.accessToken;
1374
+ const tokenString = await token("authentik", []);
1283
1375
 
1376
+ if (tokenString) {
1377
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1378
+ }
1379
+ }
1284
1380
  const response = await this.request({
1285
1381
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1286
1382
  method: 'PATCH',
@@ -1312,10 +1408,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1312
1408
 
1313
1409
  const headerParameters: runtime.HTTPHeaders = {};
1314
1410
 
1315
- if (this.configuration && this.configuration.apiKey) {
1316
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1317
- }
1411
+ if (this.configuration && this.configuration.accessToken) {
1412
+ const token = this.configuration.accessToken;
1413
+ const tokenString = await token("authentik", []);
1318
1414
 
1415
+ if (tokenString) {
1416
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1417
+ }
1418
+ }
1319
1419
  const response = await this.request({
1320
1420
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1321
1421
  method: 'GET',
@@ -1352,10 +1452,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1352
1452
 
1353
1453
  headerParameters['Content-Type'] = 'application/json';
1354
1454
 
1355
- if (this.configuration && this.configuration.apiKey) {
1356
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1357
- }
1455
+ if (this.configuration && this.configuration.accessToken) {
1456
+ const token = this.configuration.accessToken;
1457
+ const tokenString = await token("authentik", []);
1358
1458
 
1459
+ if (tokenString) {
1460
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1461
+ }
1462
+ }
1359
1463
  const response = await this.request({
1360
1464
  path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1361
1465
  method: 'PUT',
@@ -1387,10 +1491,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1387
1491
 
1388
1492
  const headerParameters: runtime.HTTPHeaders = {};
1389
1493
 
1390
- if (this.configuration && this.configuration.apiKey) {
1391
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1392
- }
1494
+ if (this.configuration && this.configuration.accessToken) {
1495
+ const token = this.configuration.accessToken;
1496
+ const tokenString = await token("authentik", []);
1393
1497
 
1498
+ if (tokenString) {
1499
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1500
+ }
1501
+ }
1394
1502
  const response = await this.request({
1395
1503
  path: `/propertymappings/rac/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1396
1504
  method: 'GET',
@@ -1423,10 +1531,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1423
1531
 
1424
1532
  headerParameters['Content-Type'] = 'application/json';
1425
1533
 
1426
- if (this.configuration && this.configuration.apiKey) {
1427
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1428
- }
1534
+ if (this.configuration && this.configuration.accessToken) {
1535
+ const token = this.configuration.accessToken;
1536
+ const tokenString = await token("authentik", []);
1429
1537
 
1538
+ if (tokenString) {
1539
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1540
+ }
1541
+ }
1430
1542
  const response = await this.request({
1431
1543
  path: `/propertymappings/saml/`,
1432
1544
  method: 'POST',
@@ -1458,10 +1570,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1458
1570
 
1459
1571
  const headerParameters: runtime.HTTPHeaders = {};
1460
1572
 
1461
- if (this.configuration && this.configuration.apiKey) {
1462
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1463
- }
1573
+ if (this.configuration && this.configuration.accessToken) {
1574
+ const token = this.configuration.accessToken;
1575
+ const tokenString = await token("authentik", []);
1464
1576
 
1577
+ if (tokenString) {
1578
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1579
+ }
1580
+ }
1465
1581
  const response = await this.request({
1466
1582
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1467
1583
  method: 'DELETE',
@@ -1527,10 +1643,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1527
1643
 
1528
1644
  const headerParameters: runtime.HTTPHeaders = {};
1529
1645
 
1530
- if (this.configuration && this.configuration.apiKey) {
1531
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1532
- }
1646
+ if (this.configuration && this.configuration.accessToken) {
1647
+ const token = this.configuration.accessToken;
1648
+ const tokenString = await token("authentik", []);
1533
1649
 
1650
+ if (tokenString) {
1651
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1652
+ }
1653
+ }
1534
1654
  const response = await this.request({
1535
1655
  path: `/propertymappings/saml/`,
1536
1656
  method: 'GET',
@@ -1563,10 +1683,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1563
1683
 
1564
1684
  headerParameters['Content-Type'] = 'application/json';
1565
1685
 
1566
- if (this.configuration && this.configuration.apiKey) {
1567
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1568
- }
1686
+ if (this.configuration && this.configuration.accessToken) {
1687
+ const token = this.configuration.accessToken;
1688
+ const tokenString = await token("authentik", []);
1569
1689
 
1690
+ if (tokenString) {
1691
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1692
+ }
1693
+ }
1570
1694
  const response = await this.request({
1571
1695
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1572
1696
  method: 'PATCH',
@@ -1598,10 +1722,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1598
1722
 
1599
1723
  const headerParameters: runtime.HTTPHeaders = {};
1600
1724
 
1601
- if (this.configuration && this.configuration.apiKey) {
1602
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1603
- }
1725
+ if (this.configuration && this.configuration.accessToken) {
1726
+ const token = this.configuration.accessToken;
1727
+ const tokenString = await token("authentik", []);
1604
1728
 
1729
+ if (tokenString) {
1730
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1731
+ }
1732
+ }
1605
1733
  const response = await this.request({
1606
1734
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1607
1735
  method: 'GET',
@@ -1638,10 +1766,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1638
1766
 
1639
1767
  headerParameters['Content-Type'] = 'application/json';
1640
1768
 
1641
- if (this.configuration && this.configuration.apiKey) {
1642
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1643
- }
1769
+ if (this.configuration && this.configuration.accessToken) {
1770
+ const token = this.configuration.accessToken;
1771
+ const tokenString = await token("authentik", []);
1644
1772
 
1773
+ if (tokenString) {
1774
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1775
+ }
1776
+ }
1645
1777
  const response = await this.request({
1646
1778
  path: `/propertymappings/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1647
1779
  method: 'PUT',
@@ -1673,10 +1805,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1673
1805
 
1674
1806
  const headerParameters: runtime.HTTPHeaders = {};
1675
1807
 
1676
- if (this.configuration && this.configuration.apiKey) {
1677
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1678
- }
1808
+ if (this.configuration && this.configuration.accessToken) {
1809
+ const token = this.configuration.accessToken;
1810
+ const tokenString = await token("authentik", []);
1679
1811
 
1812
+ if (tokenString) {
1813
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1814
+ }
1815
+ }
1680
1816
  const response = await this.request({
1681
1817
  path: `/propertymappings/saml/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1682
1818
  method: 'GET',
@@ -1709,10 +1845,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1709
1845
 
1710
1846
  headerParameters['Content-Type'] = 'application/json';
1711
1847
 
1712
- if (this.configuration && this.configuration.apiKey) {
1713
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1714
- }
1848
+ if (this.configuration && this.configuration.accessToken) {
1849
+ const token = this.configuration.accessToken;
1850
+ const tokenString = await token("authentik", []);
1715
1851
 
1852
+ if (tokenString) {
1853
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1854
+ }
1855
+ }
1716
1856
  const response = await this.request({
1717
1857
  path: `/propertymappings/scim/`,
1718
1858
  method: 'POST',
@@ -1744,10 +1884,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1744
1884
 
1745
1885
  const headerParameters: runtime.HTTPHeaders = {};
1746
1886
 
1747
- if (this.configuration && this.configuration.apiKey) {
1748
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1749
- }
1887
+ if (this.configuration && this.configuration.accessToken) {
1888
+ const token = this.configuration.accessToken;
1889
+ const tokenString = await token("authentik", []);
1750
1890
 
1891
+ if (tokenString) {
1892
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1893
+ }
1894
+ }
1751
1895
  const response = await this.request({
1752
1896
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1753
1897
  method: 'DELETE',
@@ -1805,10 +1949,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1805
1949
 
1806
1950
  const headerParameters: runtime.HTTPHeaders = {};
1807
1951
 
1808
- if (this.configuration && this.configuration.apiKey) {
1809
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1810
- }
1952
+ if (this.configuration && this.configuration.accessToken) {
1953
+ const token = this.configuration.accessToken;
1954
+ const tokenString = await token("authentik", []);
1811
1955
 
1956
+ if (tokenString) {
1957
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1958
+ }
1959
+ }
1812
1960
  const response = await this.request({
1813
1961
  path: `/propertymappings/scim/`,
1814
1962
  method: 'GET',
@@ -1841,10 +1989,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1841
1989
 
1842
1990
  headerParameters['Content-Type'] = 'application/json';
1843
1991
 
1844
- if (this.configuration && this.configuration.apiKey) {
1845
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1846
- }
1992
+ if (this.configuration && this.configuration.accessToken) {
1993
+ const token = this.configuration.accessToken;
1994
+ const tokenString = await token("authentik", []);
1847
1995
 
1996
+ if (tokenString) {
1997
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1998
+ }
1999
+ }
1848
2000
  const response = await this.request({
1849
2001
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1850
2002
  method: 'PATCH',
@@ -1876,10 +2028,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1876
2028
 
1877
2029
  const headerParameters: runtime.HTTPHeaders = {};
1878
2030
 
1879
- if (this.configuration && this.configuration.apiKey) {
1880
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1881
- }
2031
+ if (this.configuration && this.configuration.accessToken) {
2032
+ const token = this.configuration.accessToken;
2033
+ const tokenString = await token("authentik", []);
1882
2034
 
2035
+ if (tokenString) {
2036
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2037
+ }
2038
+ }
1883
2039
  const response = await this.request({
1884
2040
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1885
2041
  method: 'GET',
@@ -1916,10 +2072,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1916
2072
 
1917
2073
  headerParameters['Content-Type'] = 'application/json';
1918
2074
 
1919
- if (this.configuration && this.configuration.apiKey) {
1920
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1921
- }
2075
+ if (this.configuration && this.configuration.accessToken) {
2076
+ const token = this.configuration.accessToken;
2077
+ const tokenString = await token("authentik", []);
1922
2078
 
2079
+ if (tokenString) {
2080
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2081
+ }
2082
+ }
1923
2083
  const response = await this.request({
1924
2084
  path: `/propertymappings/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1925
2085
  method: 'PUT',
@@ -1951,10 +2111,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1951
2111
 
1952
2112
  const headerParameters: runtime.HTTPHeaders = {};
1953
2113
 
1954
- if (this.configuration && this.configuration.apiKey) {
1955
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1956
- }
2114
+ if (this.configuration && this.configuration.accessToken) {
2115
+ const token = this.configuration.accessToken;
2116
+ const tokenString = await token("authentik", []);
1957
2117
 
2118
+ if (tokenString) {
2119
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2120
+ }
2121
+ }
1958
2122
  const response = await this.request({
1959
2123
  path: `/propertymappings/scim/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
1960
2124
  method: 'GET',
@@ -1987,10 +2151,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
1987
2151
 
1988
2152
  headerParameters['Content-Type'] = 'application/json';
1989
2153
 
1990
- if (this.configuration && this.configuration.apiKey) {
1991
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1992
- }
2154
+ if (this.configuration && this.configuration.accessToken) {
2155
+ const token = this.configuration.accessToken;
2156
+ const tokenString = await token("authentik", []);
1993
2157
 
2158
+ if (tokenString) {
2159
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2160
+ }
2161
+ }
1994
2162
  const response = await this.request({
1995
2163
  path: `/propertymappings/scope/`,
1996
2164
  method: 'POST',
@@ -2022,10 +2190,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
2022
2190
 
2023
2191
  const headerParameters: runtime.HTTPHeaders = {};
2024
2192
 
2025
- if (this.configuration && this.configuration.apiKey) {
2026
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2027
- }
2193
+ if (this.configuration && this.configuration.accessToken) {
2194
+ const token = this.configuration.accessToken;
2195
+ const tokenString = await token("authentik", []);
2028
2196
 
2197
+ if (tokenString) {
2198
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2199
+ }
2200
+ }
2029
2201
  const response = await this.request({
2030
2202
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2031
2203
  method: 'DELETE',
@@ -2079,10 +2251,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
2079
2251
 
2080
2252
  const headerParameters: runtime.HTTPHeaders = {};
2081
2253
 
2082
- if (this.configuration && this.configuration.apiKey) {
2083
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2084
- }
2254
+ if (this.configuration && this.configuration.accessToken) {
2255
+ const token = this.configuration.accessToken;
2256
+ const tokenString = await token("authentik", []);
2085
2257
 
2258
+ if (tokenString) {
2259
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2260
+ }
2261
+ }
2086
2262
  const response = await this.request({
2087
2263
  path: `/propertymappings/scope/`,
2088
2264
  method: 'GET',
@@ -2115,10 +2291,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
2115
2291
 
2116
2292
  headerParameters['Content-Type'] = 'application/json';
2117
2293
 
2118
- if (this.configuration && this.configuration.apiKey) {
2119
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2120
- }
2294
+ if (this.configuration && this.configuration.accessToken) {
2295
+ const token = this.configuration.accessToken;
2296
+ const tokenString = await token("authentik", []);
2121
2297
 
2298
+ if (tokenString) {
2299
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2300
+ }
2301
+ }
2122
2302
  const response = await this.request({
2123
2303
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2124
2304
  method: 'PATCH',
@@ -2150,10 +2330,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
2150
2330
 
2151
2331
  const headerParameters: runtime.HTTPHeaders = {};
2152
2332
 
2153
- if (this.configuration && this.configuration.apiKey) {
2154
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2155
- }
2333
+ if (this.configuration && this.configuration.accessToken) {
2334
+ const token = this.configuration.accessToken;
2335
+ const tokenString = await token("authentik", []);
2156
2336
 
2337
+ if (tokenString) {
2338
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2339
+ }
2340
+ }
2157
2341
  const response = await this.request({
2158
2342
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2159
2343
  method: 'GET',
@@ -2190,10 +2374,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
2190
2374
 
2191
2375
  headerParameters['Content-Type'] = 'application/json';
2192
2376
 
2193
- if (this.configuration && this.configuration.apiKey) {
2194
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2195
- }
2377
+ if (this.configuration && this.configuration.accessToken) {
2378
+ const token = this.configuration.accessToken;
2379
+ const tokenString = await token("authentik", []);
2196
2380
 
2381
+ if (tokenString) {
2382
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2383
+ }
2384
+ }
2197
2385
  const response = await this.request({
2198
2386
  path: `/propertymappings/scope/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2199
2387
  method: 'PUT',
@@ -2225,10 +2413,14 @@ export class PropertymappingsApi extends runtime.BaseAPI {
2225
2413
 
2226
2414
  const headerParameters: runtime.HTTPHeaders = {};
2227
2415
 
2228
- if (this.configuration && this.configuration.apiKey) {
2229
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2230
- }
2416
+ if (this.configuration && this.configuration.accessToken) {
2417
+ const token = this.configuration.accessToken;
2418
+ const tokenString = await token("authentik", []);
2231
2419
 
2420
+ if (tokenString) {
2421
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2422
+ }
2423
+ }
2232
2424
  const response = await this.request({
2233
2425
  path: `/propertymappings/scope/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
2234
2426
  method: 'GET',