@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.js +372 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.js +372 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +434 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
package/src/apis/CoreApi.ts
CHANGED
@@ -495,10 +495,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
495
495
|
|
496
496
|
const headerParameters: runtime.HTTPHeaders = {};
|
497
497
|
|
498
|
-
if (this.configuration && this.configuration.
|
499
|
-
|
500
|
-
|
498
|
+
if (this.configuration && this.configuration.accessToken) {
|
499
|
+
const token = this.configuration.accessToken;
|
500
|
+
const tokenString = await token("authentik", []);
|
501
501
|
|
502
|
+
if (tokenString) {
|
503
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
504
|
+
}
|
505
|
+
}
|
502
506
|
const response = await this.request({
|
503
507
|
path: `/core/applications/{slug}/check_access/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
504
508
|
method: 'GET',
|
@@ -531,10 +535,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
531
535
|
|
532
536
|
headerParameters['Content-Type'] = 'application/json';
|
533
537
|
|
534
|
-
if (this.configuration && this.configuration.
|
535
|
-
|
536
|
-
|
538
|
+
if (this.configuration && this.configuration.accessToken) {
|
539
|
+
const token = this.configuration.accessToken;
|
540
|
+
const tokenString = await token("authentik", []);
|
537
541
|
|
542
|
+
if (tokenString) {
|
543
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
544
|
+
}
|
545
|
+
}
|
538
546
|
const response = await this.request({
|
539
547
|
path: `/core/applications/`,
|
540
548
|
method: 'POST',
|
@@ -566,10 +574,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
566
574
|
|
567
575
|
const headerParameters: runtime.HTTPHeaders = {};
|
568
576
|
|
569
|
-
if (this.configuration && this.configuration.
|
570
|
-
|
571
|
-
|
577
|
+
if (this.configuration && this.configuration.accessToken) {
|
578
|
+
const token = this.configuration.accessToken;
|
579
|
+
const tokenString = await token("authentik", []);
|
572
580
|
|
581
|
+
if (tokenString) {
|
582
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
583
|
+
}
|
584
|
+
}
|
573
585
|
const response = await this.request({
|
574
586
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
575
587
|
method: 'DELETE',
|
@@ -643,10 +655,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
643
655
|
|
644
656
|
const headerParameters: runtime.HTTPHeaders = {};
|
645
657
|
|
646
|
-
if (this.configuration && this.configuration.
|
647
|
-
|
648
|
-
|
658
|
+
if (this.configuration && this.configuration.accessToken) {
|
659
|
+
const token = this.configuration.accessToken;
|
660
|
+
const tokenString = await token("authentik", []);
|
649
661
|
|
662
|
+
if (tokenString) {
|
663
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
664
|
+
}
|
665
|
+
}
|
650
666
|
const response = await this.request({
|
651
667
|
path: `/core/applications/`,
|
652
668
|
method: 'GET',
|
@@ -677,10 +693,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
677
693
|
|
678
694
|
const headerParameters: runtime.HTTPHeaders = {};
|
679
695
|
|
680
|
-
if (this.configuration && this.configuration.
|
681
|
-
|
682
|
-
|
696
|
+
if (this.configuration && this.configuration.accessToken) {
|
697
|
+
const token = this.configuration.accessToken;
|
698
|
+
const tokenString = await token("authentik", []);
|
683
699
|
|
700
|
+
if (tokenString) {
|
701
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
702
|
+
}
|
703
|
+
}
|
684
704
|
const response = await this.request({
|
685
705
|
path: `/core/applications/{slug}/metrics/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
686
706
|
method: 'GET',
|
@@ -713,10 +733,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
713
733
|
|
714
734
|
headerParameters['Content-Type'] = 'application/json';
|
715
735
|
|
716
|
-
if (this.configuration && this.configuration.
|
717
|
-
|
718
|
-
|
736
|
+
if (this.configuration && this.configuration.accessToken) {
|
737
|
+
const token = this.configuration.accessToken;
|
738
|
+
const tokenString = await token("authentik", []);
|
719
739
|
|
740
|
+
if (tokenString) {
|
741
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
742
|
+
}
|
743
|
+
}
|
720
744
|
const response = await this.request({
|
721
745
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
722
746
|
method: 'PATCH',
|
@@ -748,10 +772,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
748
772
|
|
749
773
|
const headerParameters: runtime.HTTPHeaders = {};
|
750
774
|
|
751
|
-
if (this.configuration && this.configuration.
|
752
|
-
|
753
|
-
|
775
|
+
if (this.configuration && this.configuration.accessToken) {
|
776
|
+
const token = this.configuration.accessToken;
|
777
|
+
const tokenString = await token("authentik", []);
|
754
778
|
|
779
|
+
if (tokenString) {
|
780
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
781
|
+
}
|
782
|
+
}
|
755
783
|
const response = await this.request({
|
756
784
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
757
785
|
method: 'GET',
|
@@ -782,10 +810,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
782
810
|
|
783
811
|
const headerParameters: runtime.HTTPHeaders = {};
|
784
812
|
|
785
|
-
if (this.configuration && this.configuration.
|
786
|
-
|
787
|
-
|
813
|
+
if (this.configuration && this.configuration.accessToken) {
|
814
|
+
const token = this.configuration.accessToken;
|
815
|
+
const tokenString = await token("authentik", []);
|
788
816
|
|
817
|
+
if (tokenString) {
|
818
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
819
|
+
}
|
820
|
+
}
|
789
821
|
const consumes: runtime.Consume[] = [
|
790
822
|
{ contentType: 'multipart/form-data' },
|
791
823
|
];
|
@@ -846,10 +878,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
846
878
|
|
847
879
|
headerParameters['Content-Type'] = 'application/json';
|
848
880
|
|
849
|
-
if (this.configuration && this.configuration.
|
850
|
-
|
851
|
-
|
881
|
+
if (this.configuration && this.configuration.accessToken) {
|
882
|
+
const token = this.configuration.accessToken;
|
883
|
+
const tokenString = await token("authentik", []);
|
852
884
|
|
885
|
+
if (tokenString) {
|
886
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
887
|
+
}
|
888
|
+
}
|
853
889
|
const response = await this.request({
|
854
890
|
path: `/core/applications/{slug}/set_icon_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
855
891
|
method: 'POST',
|
@@ -886,10 +922,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
886
922
|
|
887
923
|
headerParameters['Content-Type'] = 'application/json';
|
888
924
|
|
889
|
-
if (this.configuration && this.configuration.
|
890
|
-
|
891
|
-
|
925
|
+
if (this.configuration && this.configuration.accessToken) {
|
926
|
+
const token = this.configuration.accessToken;
|
927
|
+
const tokenString = await token("authentik", []);
|
892
928
|
|
929
|
+
if (tokenString) {
|
930
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
931
|
+
}
|
932
|
+
}
|
893
933
|
const response = await this.request({
|
894
934
|
path: `/core/applications/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
895
935
|
method: 'PUT',
|
@@ -921,10 +961,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
921
961
|
|
922
962
|
const headerParameters: runtime.HTTPHeaders = {};
|
923
963
|
|
924
|
-
if (this.configuration && this.configuration.
|
925
|
-
|
926
|
-
|
964
|
+
if (this.configuration && this.configuration.accessToken) {
|
965
|
+
const token = this.configuration.accessToken;
|
966
|
+
const tokenString = await token("authentik", []);
|
927
967
|
|
968
|
+
if (tokenString) {
|
969
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
970
|
+
}
|
971
|
+
}
|
928
972
|
const response = await this.request({
|
929
973
|
path: `/core/applications/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
930
974
|
method: 'GET',
|
@@ -955,10 +999,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
955
999
|
|
956
1000
|
const headerParameters: runtime.HTTPHeaders = {};
|
957
1001
|
|
958
|
-
if (this.configuration && this.configuration.
|
959
|
-
|
960
|
-
|
1002
|
+
if (this.configuration && this.configuration.accessToken) {
|
1003
|
+
const token = this.configuration.accessToken;
|
1004
|
+
const tokenString = await token("authentik", []);
|
961
1005
|
|
1006
|
+
if (tokenString) {
|
1007
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1008
|
+
}
|
1009
|
+
}
|
962
1010
|
const response = await this.request({
|
963
1011
|
path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
964
1012
|
method: 'DELETE',
|
@@ -1012,10 +1060,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1012
1060
|
|
1013
1061
|
const headerParameters: runtime.HTTPHeaders = {};
|
1014
1062
|
|
1015
|
-
if (this.configuration && this.configuration.
|
1016
|
-
|
1017
|
-
|
1063
|
+
if (this.configuration && this.configuration.accessToken) {
|
1064
|
+
const token = this.configuration.accessToken;
|
1065
|
+
const tokenString = await token("authentik", []);
|
1018
1066
|
|
1067
|
+
if (tokenString) {
|
1068
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1069
|
+
}
|
1070
|
+
}
|
1019
1071
|
const response = await this.request({
|
1020
1072
|
path: `/core/authenticated_sessions/`,
|
1021
1073
|
method: 'GET',
|
@@ -1046,10 +1098,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1046
1098
|
|
1047
1099
|
const headerParameters: runtime.HTTPHeaders = {};
|
1048
1100
|
|
1049
|
-
if (this.configuration && this.configuration.
|
1050
|
-
|
1051
|
-
|
1101
|
+
if (this.configuration && this.configuration.accessToken) {
|
1102
|
+
const token = this.configuration.accessToken;
|
1103
|
+
const tokenString = await token("authentik", []);
|
1052
1104
|
|
1105
|
+
if (tokenString) {
|
1106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1107
|
+
}
|
1108
|
+
}
|
1053
1109
|
const response = await this.request({
|
1054
1110
|
path: `/core/authenticated_sessions/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1055
1111
|
method: 'GET',
|
@@ -1080,10 +1136,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1080
1136
|
|
1081
1137
|
const headerParameters: runtime.HTTPHeaders = {};
|
1082
1138
|
|
1083
|
-
if (this.configuration && this.configuration.
|
1084
|
-
|
1085
|
-
|
1139
|
+
if (this.configuration && this.configuration.accessToken) {
|
1140
|
+
const token = this.configuration.accessToken;
|
1141
|
+
const tokenString = await token("authentik", []);
|
1086
1142
|
|
1143
|
+
if (tokenString) {
|
1144
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1145
|
+
}
|
1146
|
+
}
|
1087
1147
|
const response = await this.request({
|
1088
1148
|
path: `/core/authenticated_sessions/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
1089
1149
|
method: 'GET',
|
@@ -1116,10 +1176,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1116
1176
|
|
1117
1177
|
headerParameters['Content-Type'] = 'application/json';
|
1118
1178
|
|
1119
|
-
if (this.configuration && this.configuration.
|
1120
|
-
|
1121
|
-
|
1179
|
+
if (this.configuration && this.configuration.accessToken) {
|
1180
|
+
const token = this.configuration.accessToken;
|
1181
|
+
const tokenString = await token("authentik", []);
|
1122
1182
|
|
1183
|
+
if (tokenString) {
|
1184
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1185
|
+
}
|
1186
|
+
}
|
1123
1187
|
const response = await this.request({
|
1124
1188
|
path: `/core/brands/`,
|
1125
1189
|
method: 'POST',
|
@@ -1147,10 +1211,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1147
1211
|
|
1148
1212
|
const headerParameters: runtime.HTTPHeaders = {};
|
1149
1213
|
|
1150
|
-
if (this.configuration && this.configuration.
|
1151
|
-
|
1152
|
-
|
1214
|
+
if (this.configuration && this.configuration.accessToken) {
|
1215
|
+
const token = this.configuration.accessToken;
|
1216
|
+
const tokenString = await token("authentik", []);
|
1153
1217
|
|
1218
|
+
if (tokenString) {
|
1219
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1220
|
+
}
|
1221
|
+
}
|
1154
1222
|
const response = await this.request({
|
1155
1223
|
path: `/core/brands/current/`,
|
1156
1224
|
method: 'GET',
|
@@ -1181,10 +1249,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1181
1249
|
|
1182
1250
|
const headerParameters: runtime.HTTPHeaders = {};
|
1183
1251
|
|
1184
|
-
if (this.configuration && this.configuration.
|
1185
|
-
|
1186
|
-
|
1252
|
+
if (this.configuration && this.configuration.accessToken) {
|
1253
|
+
const token = this.configuration.accessToken;
|
1254
|
+
const tokenString = await token("authentik", []);
|
1187
1255
|
|
1256
|
+
if (tokenString) {
|
1257
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1258
|
+
}
|
1259
|
+
}
|
1188
1260
|
const response = await this.request({
|
1189
1261
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
1190
1262
|
method: 'DELETE',
|
@@ -1278,10 +1350,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1278
1350
|
|
1279
1351
|
const headerParameters: runtime.HTTPHeaders = {};
|
1280
1352
|
|
1281
|
-
if (this.configuration && this.configuration.
|
1282
|
-
|
1283
|
-
|
1353
|
+
if (this.configuration && this.configuration.accessToken) {
|
1354
|
+
const token = this.configuration.accessToken;
|
1355
|
+
const tokenString = await token("authentik", []);
|
1284
1356
|
|
1357
|
+
if (tokenString) {
|
1358
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1359
|
+
}
|
1360
|
+
}
|
1285
1361
|
const response = await this.request({
|
1286
1362
|
path: `/core/brands/`,
|
1287
1363
|
method: 'GET',
|
@@ -1314,10 +1390,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1314
1390
|
|
1315
1391
|
headerParameters['Content-Type'] = 'application/json';
|
1316
1392
|
|
1317
|
-
if (this.configuration && this.configuration.
|
1318
|
-
|
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: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
1323
1403
|
method: 'PATCH',
|
@@ -1349,10 +1429,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1349
1429
|
|
1350
1430
|
const headerParameters: runtime.HTTPHeaders = {};
|
1351
1431
|
|
1352
|
-
if (this.configuration && this.configuration.
|
1353
|
-
|
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: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
1358
1442
|
method: 'GET',
|
@@ -1389,10 +1473,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1389
1473
|
|
1390
1474
|
headerParameters['Content-Type'] = 'application/json';
|
1391
1475
|
|
1392
|
-
if (this.configuration && this.configuration.
|
1393
|
-
|
1394
|
-
|
1476
|
+
if (this.configuration && this.configuration.accessToken) {
|
1477
|
+
const token = this.configuration.accessToken;
|
1478
|
+
const tokenString = await token("authentik", []);
|
1395
1479
|
|
1480
|
+
if (tokenString) {
|
1481
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1482
|
+
}
|
1483
|
+
}
|
1396
1484
|
const response = await this.request({
|
1397
1485
|
path: `/core/brands/{brand_uuid}/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
1398
1486
|
method: 'PUT',
|
@@ -1424,10 +1512,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1424
1512
|
|
1425
1513
|
const headerParameters: runtime.HTTPHeaders = {};
|
1426
1514
|
|
1427
|
-
if (this.configuration && this.configuration.
|
1428
|
-
|
1429
|
-
|
1515
|
+
if (this.configuration && this.configuration.accessToken) {
|
1516
|
+
const token = this.configuration.accessToken;
|
1517
|
+
const tokenString = await token("authentik", []);
|
1430
1518
|
|
1519
|
+
if (tokenString) {
|
1520
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1521
|
+
}
|
1522
|
+
}
|
1431
1523
|
const response = await this.request({
|
1432
1524
|
path: `/core/brands/{brand_uuid}/used_by/`.replace(`{${"brand_uuid"}}`, encodeURIComponent(String(requestParameters.brandUuid))),
|
1433
1525
|
method: 'GET',
|
@@ -1464,10 +1556,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1464
1556
|
|
1465
1557
|
headerParameters['Content-Type'] = 'application/json';
|
1466
1558
|
|
1467
|
-
if (this.configuration && this.configuration.
|
1468
|
-
|
1469
|
-
|
1559
|
+
if (this.configuration && this.configuration.accessToken) {
|
1560
|
+
const token = this.configuration.accessToken;
|
1561
|
+
const tokenString = await token("authentik", []);
|
1470
1562
|
|
1563
|
+
if (tokenString) {
|
1564
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1565
|
+
}
|
1566
|
+
}
|
1471
1567
|
const response = await this.request({
|
1472
1568
|
path: `/core/groups/{group_uuid}/add_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
1473
1569
|
method: 'POST',
|
@@ -1500,10 +1596,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1500
1596
|
|
1501
1597
|
headerParameters['Content-Type'] = 'application/json';
|
1502
1598
|
|
1503
|
-
if (this.configuration && this.configuration.
|
1504
|
-
|
1505
|
-
|
1599
|
+
if (this.configuration && this.configuration.accessToken) {
|
1600
|
+
const token = this.configuration.accessToken;
|
1601
|
+
const tokenString = await token("authentik", []);
|
1506
1602
|
|
1603
|
+
if (tokenString) {
|
1604
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1605
|
+
}
|
1606
|
+
}
|
1507
1607
|
const response = await this.request({
|
1508
1608
|
path: `/core/groups/`,
|
1509
1609
|
method: 'POST',
|
@@ -1535,10 +1635,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1535
1635
|
|
1536
1636
|
const headerParameters: runtime.HTTPHeaders = {};
|
1537
1637
|
|
1538
|
-
if (this.configuration && this.configuration.
|
1539
|
-
|
1540
|
-
|
1638
|
+
if (this.configuration && this.configuration.accessToken) {
|
1639
|
+
const token = this.configuration.accessToken;
|
1640
|
+
const tokenString = await token("authentik", []);
|
1541
1641
|
|
1642
|
+
if (tokenString) {
|
1643
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1644
|
+
}
|
1645
|
+
}
|
1542
1646
|
const response = await this.request({
|
1543
1647
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
1544
1648
|
method: 'DELETE',
|
@@ -1600,10 +1704,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1600
1704
|
|
1601
1705
|
const headerParameters: runtime.HTTPHeaders = {};
|
1602
1706
|
|
1603
|
-
if (this.configuration && this.configuration.
|
1604
|
-
|
1605
|
-
|
1707
|
+
if (this.configuration && this.configuration.accessToken) {
|
1708
|
+
const token = this.configuration.accessToken;
|
1709
|
+
const tokenString = await token("authentik", []);
|
1606
1710
|
|
1711
|
+
if (tokenString) {
|
1712
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1713
|
+
}
|
1714
|
+
}
|
1607
1715
|
const response = await this.request({
|
1608
1716
|
path: `/core/groups/`,
|
1609
1717
|
method: 'GET',
|
@@ -1636,10 +1744,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1636
1744
|
|
1637
1745
|
headerParameters['Content-Type'] = 'application/json';
|
1638
1746
|
|
1639
|
-
if (this.configuration && this.configuration.
|
1640
|
-
|
1641
|
-
|
1747
|
+
if (this.configuration && this.configuration.accessToken) {
|
1748
|
+
const token = this.configuration.accessToken;
|
1749
|
+
const tokenString = await token("authentik", []);
|
1642
1750
|
|
1751
|
+
if (tokenString) {
|
1752
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1753
|
+
}
|
1754
|
+
}
|
1643
1755
|
const response = await this.request({
|
1644
1756
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
1645
1757
|
method: 'PATCH',
|
@@ -1677,10 +1789,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1677
1789
|
|
1678
1790
|
headerParameters['Content-Type'] = 'application/json';
|
1679
1791
|
|
1680
|
-
if (this.configuration && this.configuration.
|
1681
|
-
|
1682
|
-
|
1792
|
+
if (this.configuration && this.configuration.accessToken) {
|
1793
|
+
const token = this.configuration.accessToken;
|
1794
|
+
const tokenString = await token("authentik", []);
|
1683
1795
|
|
1796
|
+
if (tokenString) {
|
1797
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1798
|
+
}
|
1799
|
+
}
|
1684
1800
|
const response = await this.request({
|
1685
1801
|
path: `/core/groups/{group_uuid}/remove_user/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
1686
1802
|
method: 'POST',
|
@@ -1711,10 +1827,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1711
1827
|
|
1712
1828
|
const headerParameters: runtime.HTTPHeaders = {};
|
1713
1829
|
|
1714
|
-
if (this.configuration && this.configuration.
|
1715
|
-
|
1716
|
-
|
1830
|
+
if (this.configuration && this.configuration.accessToken) {
|
1831
|
+
const token = this.configuration.accessToken;
|
1832
|
+
const tokenString = await token("authentik", []);
|
1717
1833
|
|
1834
|
+
if (tokenString) {
|
1835
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1836
|
+
}
|
1837
|
+
}
|
1718
1838
|
const response = await this.request({
|
1719
1839
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
1720
1840
|
method: 'GET',
|
@@ -1751,10 +1871,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1751
1871
|
|
1752
1872
|
headerParameters['Content-Type'] = 'application/json';
|
1753
1873
|
|
1754
|
-
if (this.configuration && this.configuration.
|
1755
|
-
|
1756
|
-
|
1874
|
+
if (this.configuration && this.configuration.accessToken) {
|
1875
|
+
const token = this.configuration.accessToken;
|
1876
|
+
const tokenString = await token("authentik", []);
|
1757
1877
|
|
1878
|
+
if (tokenString) {
|
1879
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1880
|
+
}
|
1881
|
+
}
|
1758
1882
|
const response = await this.request({
|
1759
1883
|
path: `/core/groups/{group_uuid}/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
1760
1884
|
method: 'PUT',
|
@@ -1786,10 +1910,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1786
1910
|
|
1787
1911
|
const headerParameters: runtime.HTTPHeaders = {};
|
1788
1912
|
|
1789
|
-
if (this.configuration && this.configuration.
|
1790
|
-
|
1791
|
-
|
1913
|
+
if (this.configuration && this.configuration.accessToken) {
|
1914
|
+
const token = this.configuration.accessToken;
|
1915
|
+
const tokenString = await token("authentik", []);
|
1792
1916
|
|
1917
|
+
if (tokenString) {
|
1918
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1919
|
+
}
|
1920
|
+
}
|
1793
1921
|
const response = await this.request({
|
1794
1922
|
path: `/core/groups/{group_uuid}/used_by/`.replace(`{${"group_uuid"}}`, encodeURIComponent(String(requestParameters.groupUuid))),
|
1795
1923
|
method: 'GET',
|
@@ -1822,10 +1950,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1822
1950
|
|
1823
1951
|
headerParameters['Content-Type'] = 'application/json';
|
1824
1952
|
|
1825
|
-
if (this.configuration && this.configuration.
|
1826
|
-
|
1827
|
-
|
1953
|
+
if (this.configuration && this.configuration.accessToken) {
|
1954
|
+
const token = this.configuration.accessToken;
|
1955
|
+
const tokenString = await token("authentik", []);
|
1828
1956
|
|
1957
|
+
if (tokenString) {
|
1958
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1959
|
+
}
|
1960
|
+
}
|
1829
1961
|
const response = await this.request({
|
1830
1962
|
path: `/core/tokens/`,
|
1831
1963
|
method: 'POST',
|
@@ -1857,10 +1989,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1857
1989
|
|
1858
1990
|
const headerParameters: runtime.HTTPHeaders = {};
|
1859
1991
|
|
1860
|
-
if (this.configuration && this.configuration.
|
1861
|
-
|
1862
|
-
|
1992
|
+
if (this.configuration && this.configuration.accessToken) {
|
1993
|
+
const token = this.configuration.accessToken;
|
1994
|
+
const tokenString = await token("authentik", []);
|
1863
1995
|
|
1996
|
+
if (tokenString) {
|
1997
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1998
|
+
}
|
1999
|
+
}
|
1864
2000
|
const response = await this.request({
|
1865
2001
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
1866
2002
|
method: 'DELETE',
|
@@ -1930,10 +2066,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1930
2066
|
|
1931
2067
|
const headerParameters: runtime.HTTPHeaders = {};
|
1932
2068
|
|
1933
|
-
if (this.configuration && this.configuration.
|
1934
|
-
|
1935
|
-
|
2069
|
+
if (this.configuration && this.configuration.accessToken) {
|
2070
|
+
const token = this.configuration.accessToken;
|
2071
|
+
const tokenString = await token("authentik", []);
|
1936
2072
|
|
2073
|
+
if (tokenString) {
|
2074
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2075
|
+
}
|
2076
|
+
}
|
1937
2077
|
const response = await this.request({
|
1938
2078
|
path: `/core/tokens/`,
|
1939
2079
|
method: 'GET',
|
@@ -1966,10 +2106,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
1966
2106
|
|
1967
2107
|
headerParameters['Content-Type'] = 'application/json';
|
1968
2108
|
|
1969
|
-
if (this.configuration && this.configuration.
|
1970
|
-
|
1971
|
-
|
2109
|
+
if (this.configuration && this.configuration.accessToken) {
|
2110
|
+
const token = this.configuration.accessToken;
|
2111
|
+
const tokenString = await token("authentik", []);
|
1972
2112
|
|
2113
|
+
if (tokenString) {
|
2114
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2115
|
+
}
|
2116
|
+
}
|
1973
2117
|
const response = await this.request({
|
1974
2118
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
1975
2119
|
method: 'PATCH',
|
@@ -2001,10 +2145,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2001
2145
|
|
2002
2146
|
const headerParameters: runtime.HTTPHeaders = {};
|
2003
2147
|
|
2004
|
-
if (this.configuration && this.configuration.
|
2005
|
-
|
2006
|
-
|
2148
|
+
if (this.configuration && this.configuration.accessToken) {
|
2149
|
+
const token = this.configuration.accessToken;
|
2150
|
+
const tokenString = await token("authentik", []);
|
2007
2151
|
|
2152
|
+
if (tokenString) {
|
2153
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2154
|
+
}
|
2155
|
+
}
|
2008
2156
|
const response = await this.request({
|
2009
2157
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
2010
2158
|
method: 'GET',
|
@@ -2041,10 +2189,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2041
2189
|
|
2042
2190
|
headerParameters['Content-Type'] = 'application/json';
|
2043
2191
|
|
2044
|
-
if (this.configuration && this.configuration.
|
2045
|
-
|
2046
|
-
|
2192
|
+
if (this.configuration && this.configuration.accessToken) {
|
2193
|
+
const token = this.configuration.accessToken;
|
2194
|
+
const tokenString = await token("authentik", []);
|
2047
2195
|
|
2196
|
+
if (tokenString) {
|
2197
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2198
|
+
}
|
2199
|
+
}
|
2048
2200
|
const response = await this.request({
|
2049
2201
|
path: `/core/tokens/{identifier}/set_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
2050
2202
|
method: 'POST',
|
@@ -2081,10 +2233,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2081
2233
|
|
2082
2234
|
headerParameters['Content-Type'] = 'application/json';
|
2083
2235
|
|
2084
|
-
if (this.configuration && this.configuration.
|
2085
|
-
|
2086
|
-
|
2236
|
+
if (this.configuration && this.configuration.accessToken) {
|
2237
|
+
const token = this.configuration.accessToken;
|
2238
|
+
const tokenString = await token("authentik", []);
|
2087
2239
|
|
2240
|
+
if (tokenString) {
|
2241
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2242
|
+
}
|
2243
|
+
}
|
2088
2244
|
const response = await this.request({
|
2089
2245
|
path: `/core/tokens/{identifier}/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
2090
2246
|
method: 'PUT',
|
@@ -2116,10 +2272,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2116
2272
|
|
2117
2273
|
const headerParameters: runtime.HTTPHeaders = {};
|
2118
2274
|
|
2119
|
-
if (this.configuration && this.configuration.
|
2120
|
-
|
2121
|
-
|
2275
|
+
if (this.configuration && this.configuration.accessToken) {
|
2276
|
+
const token = this.configuration.accessToken;
|
2277
|
+
const tokenString = await token("authentik", []);
|
2122
2278
|
|
2279
|
+
if (tokenString) {
|
2280
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2281
|
+
}
|
2282
|
+
}
|
2123
2283
|
const response = await this.request({
|
2124
2284
|
path: `/core/tokens/{identifier}/used_by/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
2125
2285
|
method: 'GET',
|
@@ -2150,10 +2310,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2150
2310
|
|
2151
2311
|
const headerParameters: runtime.HTTPHeaders = {};
|
2152
2312
|
|
2153
|
-
if (this.configuration && this.configuration.
|
2154
|
-
|
2155
|
-
|
2313
|
+
if (this.configuration && this.configuration.accessToken) {
|
2314
|
+
const token = this.configuration.accessToken;
|
2315
|
+
const tokenString = await token("authentik", []);
|
2156
2316
|
|
2317
|
+
if (tokenString) {
|
2318
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2319
|
+
}
|
2320
|
+
}
|
2157
2321
|
const response = await this.request({
|
2158
2322
|
path: `/core/tokens/{identifier}/view_key/`.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters.identifier))),
|
2159
2323
|
method: 'GET',
|
@@ -2186,10 +2350,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2186
2350
|
|
2187
2351
|
headerParameters['Content-Type'] = 'application/json';
|
2188
2352
|
|
2189
|
-
if (this.configuration && this.configuration.
|
2190
|
-
|
2191
|
-
|
2353
|
+
if (this.configuration && this.configuration.accessToken) {
|
2354
|
+
const token = this.configuration.accessToken;
|
2355
|
+
const tokenString = await token("authentik", []);
|
2192
2356
|
|
2357
|
+
if (tokenString) {
|
2358
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2359
|
+
}
|
2360
|
+
}
|
2193
2361
|
const response = await this.request({
|
2194
2362
|
path: `/core/transactional/applications/`,
|
2195
2363
|
method: 'PUT',
|
@@ -2221,10 +2389,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2221
2389
|
|
2222
2390
|
const headerParameters: runtime.HTTPHeaders = {};
|
2223
2391
|
|
2224
|
-
if (this.configuration && this.configuration.
|
2225
|
-
|
2226
|
-
|
2392
|
+
if (this.configuration && this.configuration.accessToken) {
|
2393
|
+
const token = this.configuration.accessToken;
|
2394
|
+
const tokenString = await token("authentik", []);
|
2227
2395
|
|
2396
|
+
if (tokenString) {
|
2397
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2398
|
+
}
|
2399
|
+
}
|
2228
2400
|
const response = await this.request({
|
2229
2401
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2230
2402
|
method: 'DELETE',
|
@@ -2274,10 +2446,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2274
2446
|
|
2275
2447
|
const headerParameters: runtime.HTTPHeaders = {};
|
2276
2448
|
|
2277
|
-
if (this.configuration && this.configuration.
|
2278
|
-
|
2279
|
-
|
2449
|
+
if (this.configuration && this.configuration.accessToken) {
|
2450
|
+
const token = this.configuration.accessToken;
|
2451
|
+
const tokenString = await token("authentik", []);
|
2280
2452
|
|
2453
|
+
if (tokenString) {
|
2454
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2455
|
+
}
|
2456
|
+
}
|
2281
2457
|
const response = await this.request({
|
2282
2458
|
path: `/core/user_consent/`,
|
2283
2459
|
method: 'GET',
|
@@ -2308,10 +2484,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2308
2484
|
|
2309
2485
|
const headerParameters: runtime.HTTPHeaders = {};
|
2310
2486
|
|
2311
|
-
if (this.configuration && this.configuration.
|
2312
|
-
|
2313
|
-
|
2487
|
+
if (this.configuration && this.configuration.accessToken) {
|
2488
|
+
const token = this.configuration.accessToken;
|
2489
|
+
const tokenString = await token("authentik", []);
|
2314
2490
|
|
2491
|
+
if (tokenString) {
|
2492
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2493
|
+
}
|
2494
|
+
}
|
2315
2495
|
const response = await this.request({
|
2316
2496
|
path: `/core/user_consent/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2317
2497
|
method: 'GET',
|
@@ -2342,10 +2522,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2342
2522
|
|
2343
2523
|
const headerParameters: runtime.HTTPHeaders = {};
|
2344
2524
|
|
2345
|
-
if (this.configuration && this.configuration.
|
2346
|
-
|
2347
|
-
|
2525
|
+
if (this.configuration && this.configuration.accessToken) {
|
2526
|
+
const token = this.configuration.accessToken;
|
2527
|
+
const tokenString = await token("authentik", []);
|
2348
2528
|
|
2529
|
+
if (tokenString) {
|
2530
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2531
|
+
}
|
2532
|
+
}
|
2349
2533
|
const response = await this.request({
|
2350
2534
|
path: `/core/user_consent/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2351
2535
|
method: 'GET',
|
@@ -2378,10 +2562,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2378
2562
|
|
2379
2563
|
headerParameters['Content-Type'] = 'application/json';
|
2380
2564
|
|
2381
|
-
if (this.configuration && this.configuration.
|
2382
|
-
|
2383
|
-
|
2565
|
+
if (this.configuration && this.configuration.accessToken) {
|
2566
|
+
const token = this.configuration.accessToken;
|
2567
|
+
const tokenString = await token("authentik", []);
|
2384
2568
|
|
2569
|
+
if (tokenString) {
|
2570
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2571
|
+
}
|
2572
|
+
}
|
2385
2573
|
const response = await this.request({
|
2386
2574
|
path: `/core/users/`,
|
2387
2575
|
method: 'POST',
|
@@ -2413,10 +2601,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2413
2601
|
|
2414
2602
|
const headerParameters: runtime.HTTPHeaders = {};
|
2415
2603
|
|
2416
|
-
if (this.configuration && this.configuration.
|
2417
|
-
|
2418
|
-
|
2604
|
+
if (this.configuration && this.configuration.accessToken) {
|
2605
|
+
const token = this.configuration.accessToken;
|
2606
|
+
const tokenString = await token("authentik", []);
|
2419
2607
|
|
2608
|
+
if (tokenString) {
|
2609
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2610
|
+
}
|
2611
|
+
}
|
2420
2612
|
const response = await this.request({
|
2421
2613
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2422
2614
|
method: 'DELETE',
|
@@ -2446,10 +2638,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2446
2638
|
|
2447
2639
|
const headerParameters: runtime.HTTPHeaders = {};
|
2448
2640
|
|
2449
|
-
if (this.configuration && this.configuration.
|
2450
|
-
|
2451
|
-
|
2641
|
+
if (this.configuration && this.configuration.accessToken) {
|
2642
|
+
const token = this.configuration.accessToken;
|
2643
|
+
const tokenString = await token("authentik", []);
|
2452
2644
|
|
2645
|
+
if (tokenString) {
|
2646
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2647
|
+
}
|
2648
|
+
}
|
2453
2649
|
const response = await this.request({
|
2454
2650
|
path: `/core/users/{id}/impersonate/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2455
2651
|
method: 'POST',
|
@@ -2475,10 +2671,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2475
2671
|
|
2476
2672
|
const headerParameters: runtime.HTTPHeaders = {};
|
2477
2673
|
|
2478
|
-
if (this.configuration && this.configuration.
|
2479
|
-
|
2480
|
-
|
2674
|
+
if (this.configuration && this.configuration.accessToken) {
|
2675
|
+
const token = this.configuration.accessToken;
|
2676
|
+
const tokenString = await token("authentik", []);
|
2481
2677
|
|
2678
|
+
if (tokenString) {
|
2679
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2680
|
+
}
|
2681
|
+
}
|
2482
2682
|
const response = await this.request({
|
2483
2683
|
path: `/core/users/impersonate_end/`,
|
2484
2684
|
method: 'GET',
|
@@ -2568,10 +2768,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2568
2768
|
|
2569
2769
|
const headerParameters: runtime.HTTPHeaders = {};
|
2570
2770
|
|
2571
|
-
if (this.configuration && this.configuration.
|
2572
|
-
|
2573
|
-
|
2771
|
+
if (this.configuration && this.configuration.accessToken) {
|
2772
|
+
const token = this.configuration.accessToken;
|
2773
|
+
const tokenString = await token("authentik", []);
|
2574
2774
|
|
2775
|
+
if (tokenString) {
|
2776
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2777
|
+
}
|
2778
|
+
}
|
2575
2779
|
const response = await this.request({
|
2576
2780
|
path: `/core/users/`,
|
2577
2781
|
method: 'GET',
|
@@ -2598,10 +2802,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2598
2802
|
|
2599
2803
|
const headerParameters: runtime.HTTPHeaders = {};
|
2600
2804
|
|
2601
|
-
if (this.configuration && this.configuration.
|
2602
|
-
|
2603
|
-
|
2805
|
+
if (this.configuration && this.configuration.accessToken) {
|
2806
|
+
const token = this.configuration.accessToken;
|
2807
|
+
const tokenString = await token("authentik", []);
|
2604
2808
|
|
2809
|
+
if (tokenString) {
|
2810
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2811
|
+
}
|
2812
|
+
}
|
2605
2813
|
const response = await this.request({
|
2606
2814
|
path: `/core/users/me/`,
|
2607
2815
|
method: 'GET',
|
@@ -2632,10 +2840,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2632
2840
|
|
2633
2841
|
const headerParameters: runtime.HTTPHeaders = {};
|
2634
2842
|
|
2635
|
-
if (this.configuration && this.configuration.
|
2636
|
-
|
2637
|
-
|
2843
|
+
if (this.configuration && this.configuration.accessToken) {
|
2844
|
+
const token = this.configuration.accessToken;
|
2845
|
+
const tokenString = await token("authentik", []);
|
2638
2846
|
|
2847
|
+
if (tokenString) {
|
2848
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2849
|
+
}
|
2850
|
+
}
|
2639
2851
|
const response = await this.request({
|
2640
2852
|
path: `/core/users/{id}/metrics/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2641
2853
|
method: 'GET',
|
@@ -2668,10 +2880,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2668
2880
|
|
2669
2881
|
headerParameters['Content-Type'] = 'application/json';
|
2670
2882
|
|
2671
|
-
if (this.configuration && this.configuration.
|
2672
|
-
|
2673
|
-
|
2883
|
+
if (this.configuration && this.configuration.accessToken) {
|
2884
|
+
const token = this.configuration.accessToken;
|
2885
|
+
const tokenString = await token("authentik", []);
|
2674
2886
|
|
2887
|
+
if (tokenString) {
|
2888
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2889
|
+
}
|
2890
|
+
}
|
2675
2891
|
const response = await this.request({
|
2676
2892
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2677
2893
|
method: 'PATCH',
|
@@ -2703,10 +2919,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2703
2919
|
|
2704
2920
|
const headerParameters: runtime.HTTPHeaders = {};
|
2705
2921
|
|
2706
|
-
if (this.configuration && this.configuration.
|
2707
|
-
|
2708
|
-
|
2922
|
+
if (this.configuration && this.configuration.accessToken) {
|
2923
|
+
const token = this.configuration.accessToken;
|
2924
|
+
const tokenString = await token("authentik", []);
|
2709
2925
|
|
2926
|
+
if (tokenString) {
|
2927
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2928
|
+
}
|
2929
|
+
}
|
2710
2930
|
const response = await this.request({
|
2711
2931
|
path: `/core/users/paths/`,
|
2712
2932
|
method: 'GET',
|
@@ -2737,10 +2957,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2737
2957
|
|
2738
2958
|
const headerParameters: runtime.HTTPHeaders = {};
|
2739
2959
|
|
2740
|
-
if (this.configuration && this.configuration.
|
2741
|
-
|
2742
|
-
|
2960
|
+
if (this.configuration && this.configuration.accessToken) {
|
2961
|
+
const token = this.configuration.accessToken;
|
2962
|
+
const tokenString = await token("authentik", []);
|
2743
2963
|
|
2964
|
+
if (tokenString) {
|
2965
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2966
|
+
}
|
2967
|
+
}
|
2744
2968
|
const response = await this.request({
|
2745
2969
|
path: `/core/users/{id}/recovery/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2746
2970
|
method: 'POST',
|
@@ -2779,10 +3003,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2779
3003
|
|
2780
3004
|
const headerParameters: runtime.HTTPHeaders = {};
|
2781
3005
|
|
2782
|
-
if (this.configuration && this.configuration.
|
2783
|
-
|
2784
|
-
|
3006
|
+
if (this.configuration && this.configuration.accessToken) {
|
3007
|
+
const token = this.configuration.accessToken;
|
3008
|
+
const tokenString = await token("authentik", []);
|
2785
3009
|
|
3010
|
+
if (tokenString) {
|
3011
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3012
|
+
}
|
3013
|
+
}
|
2786
3014
|
const response = await this.request({
|
2787
3015
|
path: `/core/users/{id}/recovery_email/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2788
3016
|
method: 'POST',
|
@@ -2812,10 +3040,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2812
3040
|
|
2813
3041
|
const headerParameters: runtime.HTTPHeaders = {};
|
2814
3042
|
|
2815
|
-
if (this.configuration && this.configuration.
|
2816
|
-
|
2817
|
-
|
3043
|
+
if (this.configuration && this.configuration.accessToken) {
|
3044
|
+
const token = this.configuration.accessToken;
|
3045
|
+
const tokenString = await token("authentik", []);
|
2818
3046
|
|
3047
|
+
if (tokenString) {
|
3048
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3049
|
+
}
|
3050
|
+
}
|
2819
3051
|
const response = await this.request({
|
2820
3052
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2821
3053
|
method: 'GET',
|
@@ -2848,10 +3080,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2848
3080
|
|
2849
3081
|
headerParameters['Content-Type'] = 'application/json';
|
2850
3082
|
|
2851
|
-
if (this.configuration && this.configuration.
|
2852
|
-
|
2853
|
-
|
3083
|
+
if (this.configuration && this.configuration.accessToken) {
|
3084
|
+
const token = this.configuration.accessToken;
|
3085
|
+
const tokenString = await token("authentik", []);
|
2854
3086
|
|
3087
|
+
if (tokenString) {
|
3088
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3089
|
+
}
|
3090
|
+
}
|
2855
3091
|
const response = await this.request({
|
2856
3092
|
path: `/core/users/service_account/`,
|
2857
3093
|
method: 'POST',
|
@@ -2889,10 +3125,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2889
3125
|
|
2890
3126
|
headerParameters['Content-Type'] = 'application/json';
|
2891
3127
|
|
2892
|
-
if (this.configuration && this.configuration.
|
2893
|
-
|
2894
|
-
|
3128
|
+
if (this.configuration && this.configuration.accessToken) {
|
3129
|
+
const token = this.configuration.accessToken;
|
3130
|
+
const tokenString = await token("authentik", []);
|
2895
3131
|
|
3132
|
+
if (tokenString) {
|
3133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3134
|
+
}
|
3135
|
+
}
|
2896
3136
|
const response = await this.request({
|
2897
3137
|
path: `/core/users/{id}/set_password/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2898
3138
|
method: 'POST',
|
@@ -2929,10 +3169,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2929
3169
|
|
2930
3170
|
headerParameters['Content-Type'] = 'application/json';
|
2931
3171
|
|
2932
|
-
if (this.configuration && this.configuration.
|
2933
|
-
|
2934
|
-
|
3172
|
+
if (this.configuration && this.configuration.accessToken) {
|
3173
|
+
const token = this.configuration.accessToken;
|
3174
|
+
const tokenString = await token("authentik", []);
|
2935
3175
|
|
3176
|
+
if (tokenString) {
|
3177
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3178
|
+
}
|
3179
|
+
}
|
2936
3180
|
const response = await this.request({
|
2937
3181
|
path: `/core/users/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2938
3182
|
method: 'PUT',
|
@@ -2964,10 +3208,14 @@ export class CoreApi extends runtime.BaseAPI {
|
|
2964
3208
|
|
2965
3209
|
const headerParameters: runtime.HTTPHeaders = {};
|
2966
3210
|
|
2967
|
-
if (this.configuration && this.configuration.
|
2968
|
-
|
2969
|
-
|
3211
|
+
if (this.configuration && this.configuration.accessToken) {
|
3212
|
+
const token = this.configuration.accessToken;
|
3213
|
+
const tokenString = await token("authentik", []);
|
2970
3214
|
|
3215
|
+
if (tokenString) {
|
3216
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3217
|
+
}
|
3218
|
+
}
|
2971
3219
|
const response = await this.request({
|
2972
3220
|
path: `/core/users/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2973
3221
|
method: 'GET',
|