@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/SourcesApi.ts
CHANGED
@@ -556,10 +556,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
556
556
|
|
557
557
|
const headerParameters: runtime.HTTPHeaders = {};
|
558
558
|
|
559
|
-
if (this.configuration && this.configuration.
|
560
|
-
|
561
|
-
|
559
|
+
if (this.configuration && this.configuration.accessToken) {
|
560
|
+
const token = this.configuration.accessToken;
|
561
|
+
const tokenString = await token("authentik", []);
|
562
562
|
|
563
|
+
if (tokenString) {
|
564
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
565
|
+
}
|
566
|
+
}
|
563
567
|
const response = await this.request({
|
564
568
|
path: `/sources/all/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
565
569
|
method: 'DELETE',
|
@@ -613,10 +617,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
613
617
|
|
614
618
|
const headerParameters: runtime.HTTPHeaders = {};
|
615
619
|
|
616
|
-
if (this.configuration && this.configuration.
|
617
|
-
|
618
|
-
|
620
|
+
if (this.configuration && this.configuration.accessToken) {
|
621
|
+
const token = this.configuration.accessToken;
|
622
|
+
const tokenString = await token("authentik", []);
|
619
623
|
|
624
|
+
if (tokenString) {
|
625
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
626
|
+
}
|
627
|
+
}
|
620
628
|
const response = await this.request({
|
621
629
|
path: `/sources/all/`,
|
622
630
|
method: 'GET',
|
@@ -647,10 +655,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
647
655
|
|
648
656
|
const headerParameters: runtime.HTTPHeaders = {};
|
649
657
|
|
650
|
-
if (this.configuration && this.configuration.
|
651
|
-
|
652
|
-
|
658
|
+
if (this.configuration && this.configuration.accessToken) {
|
659
|
+
const token = this.configuration.accessToken;
|
660
|
+
const tokenString = await token("authentik", []);
|
653
661
|
|
662
|
+
if (tokenString) {
|
663
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
664
|
+
}
|
665
|
+
}
|
654
666
|
const response = await this.request({
|
655
667
|
path: `/sources/all/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
656
668
|
method: 'GET',
|
@@ -681,10 +693,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
681
693
|
|
682
694
|
const headerParameters: runtime.HTTPHeaders = {};
|
683
695
|
|
684
|
-
if (this.configuration && this.configuration.
|
685
|
-
|
686
|
-
|
696
|
+
if (this.configuration && this.configuration.accessToken) {
|
697
|
+
const token = this.configuration.accessToken;
|
698
|
+
const tokenString = await token("authentik", []);
|
687
699
|
|
700
|
+
if (tokenString) {
|
701
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
702
|
+
}
|
703
|
+
}
|
688
704
|
const consumes: runtime.Consume[] = [
|
689
705
|
{ contentType: 'multipart/form-data' },
|
690
706
|
];
|
@@ -745,10 +761,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
745
761
|
|
746
762
|
headerParameters['Content-Type'] = 'application/json';
|
747
763
|
|
748
|
-
if (this.configuration && this.configuration.
|
749
|
-
|
750
|
-
|
764
|
+
if (this.configuration && this.configuration.accessToken) {
|
765
|
+
const token = this.configuration.accessToken;
|
766
|
+
const tokenString = await token("authentik", []);
|
751
767
|
|
768
|
+
if (tokenString) {
|
769
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
770
|
+
}
|
771
|
+
}
|
752
772
|
const response = await this.request({
|
753
773
|
path: `/sources/all/{slug}/set_icon_url/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
754
774
|
method: 'POST',
|
@@ -775,10 +795,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
775
795
|
|
776
796
|
const headerParameters: runtime.HTTPHeaders = {};
|
777
797
|
|
778
|
-
if (this.configuration && this.configuration.
|
779
|
-
|
780
|
-
|
798
|
+
if (this.configuration && this.configuration.accessToken) {
|
799
|
+
const token = this.configuration.accessToken;
|
800
|
+
const tokenString = await token("authentik", []);
|
781
801
|
|
802
|
+
if (tokenString) {
|
803
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
804
|
+
}
|
805
|
+
}
|
782
806
|
const response = await this.request({
|
783
807
|
path: `/sources/all/types/`,
|
784
808
|
method: 'GET',
|
@@ -809,10 +833,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
809
833
|
|
810
834
|
const headerParameters: runtime.HTTPHeaders = {};
|
811
835
|
|
812
|
-
if (this.configuration && this.configuration.
|
813
|
-
|
814
|
-
|
836
|
+
if (this.configuration && this.configuration.accessToken) {
|
837
|
+
const token = this.configuration.accessToken;
|
838
|
+
const tokenString = await token("authentik", []);
|
815
839
|
|
840
|
+
if (tokenString) {
|
841
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
842
|
+
}
|
843
|
+
}
|
816
844
|
const response = await this.request({
|
817
845
|
path: `/sources/all/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
818
846
|
method: 'GET',
|
@@ -839,10 +867,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
839
867
|
|
840
868
|
const headerParameters: runtime.HTTPHeaders = {};
|
841
869
|
|
842
|
-
if (this.configuration && this.configuration.
|
843
|
-
|
844
|
-
|
870
|
+
if (this.configuration && this.configuration.accessToken) {
|
871
|
+
const token = this.configuration.accessToken;
|
872
|
+
const tokenString = await token("authentik", []);
|
845
873
|
|
874
|
+
if (tokenString) {
|
875
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
876
|
+
}
|
877
|
+
}
|
846
878
|
const response = await this.request({
|
847
879
|
path: `/sources/all/user_settings/`,
|
848
880
|
method: 'GET',
|
@@ -875,10 +907,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
875
907
|
|
876
908
|
headerParameters['Content-Type'] = 'application/json';
|
877
909
|
|
878
|
-
if (this.configuration && this.configuration.
|
879
|
-
|
880
|
-
|
910
|
+
if (this.configuration && this.configuration.accessToken) {
|
911
|
+
const token = this.configuration.accessToken;
|
912
|
+
const tokenString = await token("authentik", []);
|
881
913
|
|
914
|
+
if (tokenString) {
|
915
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
916
|
+
}
|
917
|
+
}
|
882
918
|
const response = await this.request({
|
883
919
|
path: `/sources/ldap/`,
|
884
920
|
method: 'POST',
|
@@ -910,10 +946,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
910
946
|
|
911
947
|
const headerParameters: runtime.HTTPHeaders = {};
|
912
948
|
|
913
|
-
if (this.configuration && this.configuration.
|
914
|
-
|
915
|
-
|
949
|
+
if (this.configuration && this.configuration.accessToken) {
|
950
|
+
const token = this.configuration.accessToken;
|
951
|
+
const tokenString = await token("authentik", []);
|
916
952
|
|
953
|
+
if (tokenString) {
|
954
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
955
|
+
}
|
956
|
+
}
|
917
957
|
const response = await this.request({
|
918
958
|
path: `/sources/ldap/{slug}/debug/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
919
959
|
method: 'GET',
|
@@ -944,10 +984,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
944
984
|
|
945
985
|
const headerParameters: runtime.HTTPHeaders = {};
|
946
986
|
|
947
|
-
if (this.configuration && this.configuration.
|
948
|
-
|
949
|
-
|
987
|
+
if (this.configuration && this.configuration.accessToken) {
|
988
|
+
const token = this.configuration.accessToken;
|
989
|
+
const tokenString = await token("authentik", []);
|
950
990
|
|
991
|
+
if (tokenString) {
|
992
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
993
|
+
}
|
994
|
+
}
|
951
995
|
const response = await this.request({
|
952
996
|
path: `/sources/ldap/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
953
997
|
method: 'DELETE',
|
@@ -1081,10 +1125,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1081
1125
|
|
1082
1126
|
const headerParameters: runtime.HTTPHeaders = {};
|
1083
1127
|
|
1084
|
-
if (this.configuration && this.configuration.
|
1085
|
-
|
1086
|
-
|
1128
|
+
if (this.configuration && this.configuration.accessToken) {
|
1129
|
+
const token = this.configuration.accessToken;
|
1130
|
+
const tokenString = await token("authentik", []);
|
1087
1131
|
|
1132
|
+
if (tokenString) {
|
1133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1134
|
+
}
|
1135
|
+
}
|
1088
1136
|
const response = await this.request({
|
1089
1137
|
path: `/sources/ldap/`,
|
1090
1138
|
method: 'GET',
|
@@ -1117,10 +1165,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1117
1165
|
|
1118
1166
|
headerParameters['Content-Type'] = 'application/json';
|
1119
1167
|
|
1120
|
-
if (this.configuration && this.configuration.
|
1121
|
-
|
1122
|
-
|
1168
|
+
if (this.configuration && this.configuration.accessToken) {
|
1169
|
+
const token = this.configuration.accessToken;
|
1170
|
+
const tokenString = await token("authentik", []);
|
1123
1171
|
|
1172
|
+
if (tokenString) {
|
1173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1174
|
+
}
|
1175
|
+
}
|
1124
1176
|
const response = await this.request({
|
1125
1177
|
path: `/sources/ldap/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1126
1178
|
method: 'PATCH',
|
@@ -1152,10 +1204,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1152
1204
|
|
1153
1205
|
const headerParameters: runtime.HTTPHeaders = {};
|
1154
1206
|
|
1155
|
-
if (this.configuration && this.configuration.
|
1156
|
-
|
1157
|
-
|
1207
|
+
if (this.configuration && this.configuration.accessToken) {
|
1208
|
+
const token = this.configuration.accessToken;
|
1209
|
+
const tokenString = await token("authentik", []);
|
1158
1210
|
|
1211
|
+
if (tokenString) {
|
1212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1213
|
+
}
|
1214
|
+
}
|
1159
1215
|
const response = await this.request({
|
1160
1216
|
path: `/sources/ldap/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1161
1217
|
method: 'GET',
|
@@ -1186,10 +1242,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1186
1242
|
|
1187
1243
|
const headerParameters: runtime.HTTPHeaders = {};
|
1188
1244
|
|
1189
|
-
if (this.configuration && this.configuration.
|
1190
|
-
|
1191
|
-
|
1245
|
+
if (this.configuration && this.configuration.accessToken) {
|
1246
|
+
const token = this.configuration.accessToken;
|
1247
|
+
const tokenString = await token("authentik", []);
|
1192
1248
|
|
1249
|
+
if (tokenString) {
|
1250
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1251
|
+
}
|
1252
|
+
}
|
1193
1253
|
const response = await this.request({
|
1194
1254
|
path: `/sources/ldap/{slug}/sync_status/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1195
1255
|
method: 'GET',
|
@@ -1226,10 +1286,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1226
1286
|
|
1227
1287
|
headerParameters['Content-Type'] = 'application/json';
|
1228
1288
|
|
1229
|
-
if (this.configuration && this.configuration.
|
1230
|
-
|
1231
|
-
|
1289
|
+
if (this.configuration && this.configuration.accessToken) {
|
1290
|
+
const token = this.configuration.accessToken;
|
1291
|
+
const tokenString = await token("authentik", []);
|
1232
1292
|
|
1293
|
+
if (tokenString) {
|
1294
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1295
|
+
}
|
1296
|
+
}
|
1233
1297
|
const response = await this.request({
|
1234
1298
|
path: `/sources/ldap/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1235
1299
|
method: 'PUT',
|
@@ -1261,10 +1325,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1261
1325
|
|
1262
1326
|
const headerParameters: runtime.HTTPHeaders = {};
|
1263
1327
|
|
1264
|
-
if (this.configuration && this.configuration.
|
1265
|
-
|
1266
|
-
|
1328
|
+
if (this.configuration && this.configuration.accessToken) {
|
1329
|
+
const token = this.configuration.accessToken;
|
1330
|
+
const tokenString = await token("authentik", []);
|
1267
1331
|
|
1332
|
+
if (tokenString) {
|
1333
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1334
|
+
}
|
1335
|
+
}
|
1268
1336
|
const response = await this.request({
|
1269
1337
|
path: `/sources/ldap/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1270
1338
|
method: 'GET',
|
@@ -1297,10 +1365,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1297
1365
|
|
1298
1366
|
headerParameters['Content-Type'] = 'application/json';
|
1299
1367
|
|
1300
|
-
if (this.configuration && this.configuration.
|
1301
|
-
|
1302
|
-
|
1368
|
+
if (this.configuration && this.configuration.accessToken) {
|
1369
|
+
const token = this.configuration.accessToken;
|
1370
|
+
const tokenString = await token("authentik", []);
|
1303
1371
|
|
1372
|
+
if (tokenString) {
|
1373
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1374
|
+
}
|
1375
|
+
}
|
1304
1376
|
const response = await this.request({
|
1305
1377
|
path: `/sources/oauth/`,
|
1306
1378
|
method: 'POST',
|
@@ -1332,10 +1404,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1332
1404
|
|
1333
1405
|
const headerParameters: runtime.HTTPHeaders = {};
|
1334
1406
|
|
1335
|
-
if (this.configuration && this.configuration.
|
1336
|
-
|
1337
|
-
|
1407
|
+
if (this.configuration && this.configuration.accessToken) {
|
1408
|
+
const token = this.configuration.accessToken;
|
1409
|
+
const tokenString = await token("authentik", []);
|
1338
1410
|
|
1411
|
+
if (tokenString) {
|
1412
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1413
|
+
}
|
1414
|
+
}
|
1339
1415
|
const response = await this.request({
|
1340
1416
|
path: `/sources/oauth/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1341
1417
|
method: 'DELETE',
|
@@ -1437,10 +1513,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1437
1513
|
|
1438
1514
|
const headerParameters: runtime.HTTPHeaders = {};
|
1439
1515
|
|
1440
|
-
if (this.configuration && this.configuration.
|
1441
|
-
|
1442
|
-
|
1516
|
+
if (this.configuration && this.configuration.accessToken) {
|
1517
|
+
const token = this.configuration.accessToken;
|
1518
|
+
const tokenString = await token("authentik", []);
|
1443
1519
|
|
1520
|
+
if (tokenString) {
|
1521
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1522
|
+
}
|
1523
|
+
}
|
1444
1524
|
const response = await this.request({
|
1445
1525
|
path: `/sources/oauth/`,
|
1446
1526
|
method: 'GET',
|
@@ -1473,10 +1553,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1473
1553
|
|
1474
1554
|
headerParameters['Content-Type'] = 'application/json';
|
1475
1555
|
|
1476
|
-
if (this.configuration && this.configuration.
|
1477
|
-
|
1478
|
-
|
1556
|
+
if (this.configuration && this.configuration.accessToken) {
|
1557
|
+
const token = this.configuration.accessToken;
|
1558
|
+
const tokenString = await token("authentik", []);
|
1479
1559
|
|
1560
|
+
if (tokenString) {
|
1561
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1562
|
+
}
|
1563
|
+
}
|
1480
1564
|
const response = await this.request({
|
1481
1565
|
path: `/sources/oauth/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1482
1566
|
method: 'PATCH',
|
@@ -1508,10 +1592,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1508
1592
|
|
1509
1593
|
const headerParameters: runtime.HTTPHeaders = {};
|
1510
1594
|
|
1511
|
-
if (this.configuration && this.configuration.
|
1512
|
-
|
1513
|
-
|
1595
|
+
if (this.configuration && this.configuration.accessToken) {
|
1596
|
+
const token = this.configuration.accessToken;
|
1597
|
+
const tokenString = await token("authentik", []);
|
1514
1598
|
|
1599
|
+
if (tokenString) {
|
1600
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1601
|
+
}
|
1602
|
+
}
|
1515
1603
|
const response = await this.request({
|
1516
1604
|
path: `/sources/oauth/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1517
1605
|
method: 'GET',
|
@@ -1542,10 +1630,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1542
1630
|
|
1543
1631
|
const headerParameters: runtime.HTTPHeaders = {};
|
1544
1632
|
|
1545
|
-
if (this.configuration && this.configuration.
|
1546
|
-
|
1547
|
-
|
1633
|
+
if (this.configuration && this.configuration.accessToken) {
|
1634
|
+
const token = this.configuration.accessToken;
|
1635
|
+
const tokenString = await token("authentik", []);
|
1548
1636
|
|
1637
|
+
if (tokenString) {
|
1638
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1639
|
+
}
|
1640
|
+
}
|
1549
1641
|
const response = await this.request({
|
1550
1642
|
path: `/sources/oauth/source_types/`,
|
1551
1643
|
method: 'GET',
|
@@ -1582,10 +1674,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1582
1674
|
|
1583
1675
|
headerParameters['Content-Type'] = 'application/json';
|
1584
1676
|
|
1585
|
-
if (this.configuration && this.configuration.
|
1586
|
-
|
1587
|
-
|
1677
|
+
if (this.configuration && this.configuration.accessToken) {
|
1678
|
+
const token = this.configuration.accessToken;
|
1679
|
+
const tokenString = await token("authentik", []);
|
1588
1680
|
|
1681
|
+
if (tokenString) {
|
1682
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1683
|
+
}
|
1684
|
+
}
|
1589
1685
|
const response = await this.request({
|
1590
1686
|
path: `/sources/oauth/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1591
1687
|
method: 'PUT',
|
@@ -1617,10 +1713,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1617
1713
|
|
1618
1714
|
const headerParameters: runtime.HTTPHeaders = {};
|
1619
1715
|
|
1620
|
-
if (this.configuration && this.configuration.
|
1621
|
-
|
1622
|
-
|
1716
|
+
if (this.configuration && this.configuration.accessToken) {
|
1717
|
+
const token = this.configuration.accessToken;
|
1718
|
+
const tokenString = await token("authentik", []);
|
1623
1719
|
|
1720
|
+
if (tokenString) {
|
1721
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1722
|
+
}
|
1723
|
+
}
|
1624
1724
|
const response = await this.request({
|
1625
1725
|
path: `/sources/oauth/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1626
1726
|
method: 'GET',
|
@@ -1653,10 +1753,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1653
1753
|
|
1654
1754
|
headerParameters['Content-Type'] = 'application/json';
|
1655
1755
|
|
1656
|
-
if (this.configuration && this.configuration.
|
1657
|
-
|
1658
|
-
|
1756
|
+
if (this.configuration && this.configuration.accessToken) {
|
1757
|
+
const token = this.configuration.accessToken;
|
1758
|
+
const tokenString = await token("authentik", []);
|
1659
1759
|
|
1760
|
+
if (tokenString) {
|
1761
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1762
|
+
}
|
1763
|
+
}
|
1660
1764
|
const response = await this.request({
|
1661
1765
|
path: `/sources/plex/`,
|
1662
1766
|
method: 'POST',
|
@@ -1688,10 +1792,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1688
1792
|
|
1689
1793
|
const headerParameters: runtime.HTTPHeaders = {};
|
1690
1794
|
|
1691
|
-
if (this.configuration && this.configuration.
|
1692
|
-
|
1693
|
-
|
1795
|
+
if (this.configuration && this.configuration.accessToken) {
|
1796
|
+
const token = this.configuration.accessToken;
|
1797
|
+
const tokenString = await token("authentik", []);
|
1694
1798
|
|
1799
|
+
if (tokenString) {
|
1800
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1801
|
+
}
|
1802
|
+
}
|
1695
1803
|
const response = await this.request({
|
1696
1804
|
path: `/sources/plex/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1697
1805
|
method: 'DELETE',
|
@@ -1769,10 +1877,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1769
1877
|
|
1770
1878
|
const headerParameters: runtime.HTTPHeaders = {};
|
1771
1879
|
|
1772
|
-
if (this.configuration && this.configuration.
|
1773
|
-
|
1774
|
-
|
1880
|
+
if (this.configuration && this.configuration.accessToken) {
|
1881
|
+
const token = this.configuration.accessToken;
|
1882
|
+
const tokenString = await token("authentik", []);
|
1775
1883
|
|
1884
|
+
if (tokenString) {
|
1885
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1886
|
+
}
|
1887
|
+
}
|
1776
1888
|
const response = await this.request({
|
1777
1889
|
path: `/sources/plex/`,
|
1778
1890
|
method: 'GET',
|
@@ -1805,10 +1917,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1805
1917
|
|
1806
1918
|
headerParameters['Content-Type'] = 'application/json';
|
1807
1919
|
|
1808
|
-
if (this.configuration && this.configuration.
|
1809
|
-
|
1810
|
-
|
1920
|
+
if (this.configuration && this.configuration.accessToken) {
|
1921
|
+
const token = this.configuration.accessToken;
|
1922
|
+
const tokenString = await token("authentik", []);
|
1811
1923
|
|
1924
|
+
if (tokenString) {
|
1925
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1926
|
+
}
|
1927
|
+
}
|
1812
1928
|
const response = await this.request({
|
1813
1929
|
path: `/sources/plex/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1814
1930
|
method: 'PATCH',
|
@@ -1846,10 +1962,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1846
1962
|
|
1847
1963
|
headerParameters['Content-Type'] = 'application/json';
|
1848
1964
|
|
1849
|
-
if (this.configuration && this.configuration.
|
1850
|
-
|
1851
|
-
|
1965
|
+
if (this.configuration && this.configuration.accessToken) {
|
1966
|
+
const token = this.configuration.accessToken;
|
1967
|
+
const tokenString = await token("authentik", []);
|
1852
1968
|
|
1969
|
+
if (tokenString) {
|
1970
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1971
|
+
}
|
1972
|
+
}
|
1853
1973
|
const response = await this.request({
|
1854
1974
|
path: `/sources/plex/redeem_token_authenticated/`,
|
1855
1975
|
method: 'POST',
|
@@ -1886,10 +2006,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1886
2006
|
|
1887
2007
|
headerParameters['Content-Type'] = 'application/json';
|
1888
2008
|
|
1889
|
-
if (this.configuration && this.configuration.
|
1890
|
-
|
1891
|
-
|
2009
|
+
if (this.configuration && this.configuration.accessToken) {
|
2010
|
+
const token = this.configuration.accessToken;
|
2011
|
+
const tokenString = await token("authentik", []);
|
1892
2012
|
|
2013
|
+
if (tokenString) {
|
2014
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2015
|
+
}
|
2016
|
+
}
|
1893
2017
|
const response = await this.request({
|
1894
2018
|
path: `/sources/plex/redeem_token/`,
|
1895
2019
|
method: 'POST',
|
@@ -1921,10 +2045,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1921
2045
|
|
1922
2046
|
const headerParameters: runtime.HTTPHeaders = {};
|
1923
2047
|
|
1924
|
-
if (this.configuration && this.configuration.
|
1925
|
-
|
1926
|
-
|
2048
|
+
if (this.configuration && this.configuration.accessToken) {
|
2049
|
+
const token = this.configuration.accessToken;
|
2050
|
+
const tokenString = await token("authentik", []);
|
1927
2051
|
|
2052
|
+
if (tokenString) {
|
2053
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2054
|
+
}
|
2055
|
+
}
|
1928
2056
|
const response = await this.request({
|
1929
2057
|
path: `/sources/plex/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1930
2058
|
method: 'GET',
|
@@ -1961,10 +2089,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1961
2089
|
|
1962
2090
|
headerParameters['Content-Type'] = 'application/json';
|
1963
2091
|
|
1964
|
-
if (this.configuration && this.configuration.
|
1965
|
-
|
1966
|
-
|
2092
|
+
if (this.configuration && this.configuration.accessToken) {
|
2093
|
+
const token = this.configuration.accessToken;
|
2094
|
+
const tokenString = await token("authentik", []);
|
1967
2095
|
|
2096
|
+
if (tokenString) {
|
2097
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2098
|
+
}
|
2099
|
+
}
|
1968
2100
|
const response = await this.request({
|
1969
2101
|
path: `/sources/plex/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
1970
2102
|
method: 'PUT',
|
@@ -1996,10 +2128,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1996
2128
|
|
1997
2129
|
const headerParameters: runtime.HTTPHeaders = {};
|
1998
2130
|
|
1999
|
-
if (this.configuration && this.configuration.
|
2000
|
-
|
2001
|
-
|
2131
|
+
if (this.configuration && this.configuration.accessToken) {
|
2132
|
+
const token = this.configuration.accessToken;
|
2133
|
+
const tokenString = await token("authentik", []);
|
2002
2134
|
|
2135
|
+
if (tokenString) {
|
2136
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2137
|
+
}
|
2138
|
+
}
|
2003
2139
|
const response = await this.request({
|
2004
2140
|
path: `/sources/plex/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
2005
2141
|
method: 'GET',
|
@@ -2032,10 +2168,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2032
2168
|
|
2033
2169
|
headerParameters['Content-Type'] = 'application/json';
|
2034
2170
|
|
2035
|
-
if (this.configuration && this.configuration.
|
2036
|
-
|
2037
|
-
|
2171
|
+
if (this.configuration && this.configuration.accessToken) {
|
2172
|
+
const token = this.configuration.accessToken;
|
2173
|
+
const tokenString = await token("authentik", []);
|
2038
2174
|
|
2175
|
+
if (tokenString) {
|
2176
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2177
|
+
}
|
2178
|
+
}
|
2039
2179
|
const response = await this.request({
|
2040
2180
|
path: `/sources/saml/`,
|
2041
2181
|
method: 'POST',
|
@@ -2067,10 +2207,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2067
2207
|
|
2068
2208
|
const headerParameters: runtime.HTTPHeaders = {};
|
2069
2209
|
|
2070
|
-
if (this.configuration && this.configuration.
|
2071
|
-
|
2072
|
-
|
2210
|
+
if (this.configuration && this.configuration.accessToken) {
|
2211
|
+
const token = this.configuration.accessToken;
|
2212
|
+
const tokenString = await token("authentik", []);
|
2073
2213
|
|
2214
|
+
if (tokenString) {
|
2215
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2216
|
+
}
|
2217
|
+
}
|
2074
2218
|
const response = await this.request({
|
2075
2219
|
path: `/sources/saml/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
2076
2220
|
method: 'DELETE',
|
@@ -2192,10 +2336,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2192
2336
|
|
2193
2337
|
const headerParameters: runtime.HTTPHeaders = {};
|
2194
2338
|
|
2195
|
-
if (this.configuration && this.configuration.
|
2196
|
-
|
2197
|
-
|
2339
|
+
if (this.configuration && this.configuration.accessToken) {
|
2340
|
+
const token = this.configuration.accessToken;
|
2341
|
+
const tokenString = await token("authentik", []);
|
2198
2342
|
|
2343
|
+
if (tokenString) {
|
2344
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2345
|
+
}
|
2346
|
+
}
|
2199
2347
|
const response = await this.request({
|
2200
2348
|
path: `/sources/saml/`,
|
2201
2349
|
method: 'GET',
|
@@ -2226,10 +2374,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2226
2374
|
|
2227
2375
|
const headerParameters: runtime.HTTPHeaders = {};
|
2228
2376
|
|
2229
|
-
if (this.configuration && this.configuration.
|
2230
|
-
|
2231
|
-
|
2377
|
+
if (this.configuration && this.configuration.accessToken) {
|
2378
|
+
const token = this.configuration.accessToken;
|
2379
|
+
const tokenString = await token("authentik", []);
|
2232
2380
|
|
2381
|
+
if (tokenString) {
|
2382
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2383
|
+
}
|
2384
|
+
}
|
2233
2385
|
const response = await this.request({
|
2234
2386
|
path: `/sources/saml/{slug}/metadata/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
2235
2387
|
method: 'GET',
|
@@ -2262,10 +2414,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2262
2414
|
|
2263
2415
|
headerParameters['Content-Type'] = 'application/json';
|
2264
2416
|
|
2265
|
-
if (this.configuration && this.configuration.
|
2266
|
-
|
2267
|
-
|
2417
|
+
if (this.configuration && this.configuration.accessToken) {
|
2418
|
+
const token = this.configuration.accessToken;
|
2419
|
+
const tokenString = await token("authentik", []);
|
2268
2420
|
|
2421
|
+
if (tokenString) {
|
2422
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2423
|
+
}
|
2424
|
+
}
|
2269
2425
|
const response = await this.request({
|
2270
2426
|
path: `/sources/saml/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
2271
2427
|
method: 'PATCH',
|
@@ -2297,10 +2453,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2297
2453
|
|
2298
2454
|
const headerParameters: runtime.HTTPHeaders = {};
|
2299
2455
|
|
2300
|
-
if (this.configuration && this.configuration.
|
2301
|
-
|
2302
|
-
|
2456
|
+
if (this.configuration && this.configuration.accessToken) {
|
2457
|
+
const token = this.configuration.accessToken;
|
2458
|
+
const tokenString = await token("authentik", []);
|
2303
2459
|
|
2460
|
+
if (tokenString) {
|
2461
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2462
|
+
}
|
2463
|
+
}
|
2304
2464
|
const response = await this.request({
|
2305
2465
|
path: `/sources/saml/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
2306
2466
|
method: 'GET',
|
@@ -2337,10 +2497,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2337
2497
|
|
2338
2498
|
headerParameters['Content-Type'] = 'application/json';
|
2339
2499
|
|
2340
|
-
if (this.configuration && this.configuration.
|
2341
|
-
|
2342
|
-
|
2500
|
+
if (this.configuration && this.configuration.accessToken) {
|
2501
|
+
const token = this.configuration.accessToken;
|
2502
|
+
const tokenString = await token("authentik", []);
|
2343
2503
|
|
2504
|
+
if (tokenString) {
|
2505
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2506
|
+
}
|
2507
|
+
}
|
2344
2508
|
const response = await this.request({
|
2345
2509
|
path: `/sources/saml/{slug}/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
2346
2510
|
method: 'PUT',
|
@@ -2372,10 +2536,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2372
2536
|
|
2373
2537
|
const headerParameters: runtime.HTTPHeaders = {};
|
2374
2538
|
|
2375
|
-
if (this.configuration && this.configuration.
|
2376
|
-
|
2377
|
-
|
2539
|
+
if (this.configuration && this.configuration.accessToken) {
|
2540
|
+
const token = this.configuration.accessToken;
|
2541
|
+
const tokenString = await token("authentik", []);
|
2378
2542
|
|
2543
|
+
if (tokenString) {
|
2544
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2545
|
+
}
|
2546
|
+
}
|
2379
2547
|
const response = await this.request({
|
2380
2548
|
path: `/sources/saml/{slug}/used_by/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters.slug))),
|
2381
2549
|
method: 'GET',
|
@@ -2406,10 +2574,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2406
2574
|
|
2407
2575
|
const headerParameters: runtime.HTTPHeaders = {};
|
2408
2576
|
|
2409
|
-
if (this.configuration && this.configuration.
|
2410
|
-
|
2411
|
-
|
2577
|
+
if (this.configuration && this.configuration.accessToken) {
|
2578
|
+
const token = this.configuration.accessToken;
|
2579
|
+
const tokenString = await token("authentik", []);
|
2412
2580
|
|
2581
|
+
if (tokenString) {
|
2582
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2583
|
+
}
|
2584
|
+
}
|
2413
2585
|
const response = await this.request({
|
2414
2586
|
path: `/sources/user_connections/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2415
2587
|
method: 'DELETE',
|
@@ -2455,10 +2627,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2455
2627
|
|
2456
2628
|
const headerParameters: runtime.HTTPHeaders = {};
|
2457
2629
|
|
2458
|
-
if (this.configuration && this.configuration.
|
2459
|
-
|
2460
|
-
|
2630
|
+
if (this.configuration && this.configuration.accessToken) {
|
2631
|
+
const token = this.configuration.accessToken;
|
2632
|
+
const tokenString = await token("authentik", []);
|
2461
2633
|
|
2634
|
+
if (tokenString) {
|
2635
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2636
|
+
}
|
2637
|
+
}
|
2462
2638
|
const response = await this.request({
|
2463
2639
|
path: `/sources/user_connections/all/`,
|
2464
2640
|
method: 'GET',
|
@@ -2489,10 +2665,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2489
2665
|
|
2490
2666
|
const headerParameters: runtime.HTTPHeaders = {};
|
2491
2667
|
|
2492
|
-
if (this.configuration && this.configuration.
|
2493
|
-
|
2494
|
-
|
2668
|
+
if (this.configuration && this.configuration.accessToken) {
|
2669
|
+
const token = this.configuration.accessToken;
|
2670
|
+
const tokenString = await token("authentik", []);
|
2495
2671
|
|
2672
|
+
if (tokenString) {
|
2673
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2674
|
+
}
|
2675
|
+
}
|
2496
2676
|
const response = await this.request({
|
2497
2677
|
path: `/sources/user_connections/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2498
2678
|
method: 'PATCH',
|
@@ -2523,10 +2703,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2523
2703
|
|
2524
2704
|
const headerParameters: runtime.HTTPHeaders = {};
|
2525
2705
|
|
2526
|
-
if (this.configuration && this.configuration.
|
2527
|
-
|
2528
|
-
|
2706
|
+
if (this.configuration && this.configuration.accessToken) {
|
2707
|
+
const token = this.configuration.accessToken;
|
2708
|
+
const tokenString = await token("authentik", []);
|
2529
2709
|
|
2710
|
+
if (tokenString) {
|
2711
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2712
|
+
}
|
2713
|
+
}
|
2530
2714
|
const response = await this.request({
|
2531
2715
|
path: `/sources/user_connections/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2532
2716
|
method: 'GET',
|
@@ -2557,10 +2741,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2557
2741
|
|
2558
2742
|
const headerParameters: runtime.HTTPHeaders = {};
|
2559
2743
|
|
2560
|
-
if (this.configuration && this.configuration.
|
2561
|
-
|
2562
|
-
|
2744
|
+
if (this.configuration && this.configuration.accessToken) {
|
2745
|
+
const token = this.configuration.accessToken;
|
2746
|
+
const tokenString = await token("authentik", []);
|
2563
2747
|
|
2748
|
+
if (tokenString) {
|
2749
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2750
|
+
}
|
2751
|
+
}
|
2564
2752
|
const response = await this.request({
|
2565
2753
|
path: `/sources/user_connections/all/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2566
2754
|
method: 'PUT',
|
@@ -2591,10 +2779,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2591
2779
|
|
2592
2780
|
const headerParameters: runtime.HTTPHeaders = {};
|
2593
2781
|
|
2594
|
-
if (this.configuration && this.configuration.
|
2595
|
-
|
2596
|
-
|
2782
|
+
if (this.configuration && this.configuration.accessToken) {
|
2783
|
+
const token = this.configuration.accessToken;
|
2784
|
+
const tokenString = await token("authentik", []);
|
2597
2785
|
|
2786
|
+
if (tokenString) {
|
2787
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2788
|
+
}
|
2789
|
+
}
|
2598
2790
|
const response = await this.request({
|
2599
2791
|
path: `/sources/user_connections/all/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2600
2792
|
method: 'GET',
|
@@ -2627,10 +2819,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2627
2819
|
|
2628
2820
|
headerParameters['Content-Type'] = 'application/json';
|
2629
2821
|
|
2630
|
-
if (this.configuration && this.configuration.
|
2631
|
-
|
2632
|
-
|
2822
|
+
if (this.configuration && this.configuration.accessToken) {
|
2823
|
+
const token = this.configuration.accessToken;
|
2824
|
+
const tokenString = await token("authentik", []);
|
2633
2825
|
|
2826
|
+
if (tokenString) {
|
2827
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2828
|
+
}
|
2829
|
+
}
|
2634
2830
|
const response = await this.request({
|
2635
2831
|
path: `/sources/user_connections/oauth/`,
|
2636
2832
|
method: 'POST',
|
@@ -2662,10 +2858,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2662
2858
|
|
2663
2859
|
const headerParameters: runtime.HTTPHeaders = {};
|
2664
2860
|
|
2665
|
-
if (this.configuration && this.configuration.
|
2666
|
-
|
2667
|
-
|
2861
|
+
if (this.configuration && this.configuration.accessToken) {
|
2862
|
+
const token = this.configuration.accessToken;
|
2863
|
+
const tokenString = await token("authentik", []);
|
2668
2864
|
|
2865
|
+
if (tokenString) {
|
2866
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2867
|
+
}
|
2868
|
+
}
|
2669
2869
|
const response = await this.request({
|
2670
2870
|
path: `/sources/user_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2671
2871
|
method: 'DELETE',
|
@@ -2711,10 +2911,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2711
2911
|
|
2712
2912
|
const headerParameters: runtime.HTTPHeaders = {};
|
2713
2913
|
|
2714
|
-
if (this.configuration && this.configuration.
|
2715
|
-
|
2716
|
-
|
2914
|
+
if (this.configuration && this.configuration.accessToken) {
|
2915
|
+
const token = this.configuration.accessToken;
|
2916
|
+
const tokenString = await token("authentik", []);
|
2717
2917
|
|
2918
|
+
if (tokenString) {
|
2919
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2920
|
+
}
|
2921
|
+
}
|
2718
2922
|
const response = await this.request({
|
2719
2923
|
path: `/sources/user_connections/oauth/`,
|
2720
2924
|
method: 'GET',
|
@@ -2747,10 +2951,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2747
2951
|
|
2748
2952
|
headerParameters['Content-Type'] = 'application/json';
|
2749
2953
|
|
2750
|
-
if (this.configuration && this.configuration.
|
2751
|
-
|
2752
|
-
|
2954
|
+
if (this.configuration && this.configuration.accessToken) {
|
2955
|
+
const token = this.configuration.accessToken;
|
2956
|
+
const tokenString = await token("authentik", []);
|
2753
2957
|
|
2958
|
+
if (tokenString) {
|
2959
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2960
|
+
}
|
2961
|
+
}
|
2754
2962
|
const response = await this.request({
|
2755
2963
|
path: `/sources/user_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2756
2964
|
method: 'PATCH',
|
@@ -2782,10 +2990,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2782
2990
|
|
2783
2991
|
const headerParameters: runtime.HTTPHeaders = {};
|
2784
2992
|
|
2785
|
-
if (this.configuration && this.configuration.
|
2786
|
-
|
2787
|
-
|
2993
|
+
if (this.configuration && this.configuration.accessToken) {
|
2994
|
+
const token = this.configuration.accessToken;
|
2995
|
+
const tokenString = await token("authentik", []);
|
2788
2996
|
|
2997
|
+
if (tokenString) {
|
2998
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
2999
|
+
}
|
3000
|
+
}
|
2789
3001
|
const response = await this.request({
|
2790
3002
|
path: `/sources/user_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2791
3003
|
method: 'GET',
|
@@ -2822,10 +3034,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2822
3034
|
|
2823
3035
|
headerParameters['Content-Type'] = 'application/json';
|
2824
3036
|
|
2825
|
-
if (this.configuration && this.configuration.
|
2826
|
-
|
2827
|
-
|
3037
|
+
if (this.configuration && this.configuration.accessToken) {
|
3038
|
+
const token = this.configuration.accessToken;
|
3039
|
+
const tokenString = await token("authentik", []);
|
2828
3040
|
|
3041
|
+
if (tokenString) {
|
3042
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3043
|
+
}
|
3044
|
+
}
|
2829
3045
|
const response = await this.request({
|
2830
3046
|
path: `/sources/user_connections/oauth/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2831
3047
|
method: 'PUT',
|
@@ -2857,10 +3073,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2857
3073
|
|
2858
3074
|
const headerParameters: runtime.HTTPHeaders = {};
|
2859
3075
|
|
2860
|
-
if (this.configuration && this.configuration.
|
2861
|
-
|
2862
|
-
|
3076
|
+
if (this.configuration && this.configuration.accessToken) {
|
3077
|
+
const token = this.configuration.accessToken;
|
3078
|
+
const tokenString = await token("authentik", []);
|
2863
3079
|
|
3080
|
+
if (tokenString) {
|
3081
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3082
|
+
}
|
3083
|
+
}
|
2864
3084
|
const response = await this.request({
|
2865
3085
|
path: `/sources/user_connections/oauth/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2866
3086
|
method: 'GET',
|
@@ -2893,10 +3113,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2893
3113
|
|
2894
3114
|
headerParameters['Content-Type'] = 'application/json';
|
2895
3115
|
|
2896
|
-
if (this.configuration && this.configuration.
|
2897
|
-
|
2898
|
-
|
3116
|
+
if (this.configuration && this.configuration.accessToken) {
|
3117
|
+
const token = this.configuration.accessToken;
|
3118
|
+
const tokenString = await token("authentik", []);
|
2899
3119
|
|
3120
|
+
if (tokenString) {
|
3121
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3122
|
+
}
|
3123
|
+
}
|
2900
3124
|
const response = await this.request({
|
2901
3125
|
path: `/sources/user_connections/plex/`,
|
2902
3126
|
method: 'POST',
|
@@ -2928,10 +3152,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2928
3152
|
|
2929
3153
|
const headerParameters: runtime.HTTPHeaders = {};
|
2930
3154
|
|
2931
|
-
if (this.configuration && this.configuration.
|
2932
|
-
|
2933
|
-
|
3155
|
+
if (this.configuration && this.configuration.accessToken) {
|
3156
|
+
const token = this.configuration.accessToken;
|
3157
|
+
const tokenString = await token("authentik", []);
|
2934
3158
|
|
3159
|
+
if (tokenString) {
|
3160
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3161
|
+
}
|
3162
|
+
}
|
2935
3163
|
const response = await this.request({
|
2936
3164
|
path: `/sources/user_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
2937
3165
|
method: 'DELETE',
|
@@ -2977,10 +3205,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2977
3205
|
|
2978
3206
|
const headerParameters: runtime.HTTPHeaders = {};
|
2979
3207
|
|
2980
|
-
if (this.configuration && this.configuration.
|
2981
|
-
|
2982
|
-
|
3208
|
+
if (this.configuration && this.configuration.accessToken) {
|
3209
|
+
const token = this.configuration.accessToken;
|
3210
|
+
const tokenString = await token("authentik", []);
|
2983
3211
|
|
3212
|
+
if (tokenString) {
|
3213
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3214
|
+
}
|
3215
|
+
}
|
2984
3216
|
const response = await this.request({
|
2985
3217
|
path: `/sources/user_connections/plex/`,
|
2986
3218
|
method: 'GET',
|
@@ -3013,10 +3245,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3013
3245
|
|
3014
3246
|
headerParameters['Content-Type'] = 'application/json';
|
3015
3247
|
|
3016
|
-
if (this.configuration && this.configuration.
|
3017
|
-
|
3018
|
-
|
3248
|
+
if (this.configuration && this.configuration.accessToken) {
|
3249
|
+
const token = this.configuration.accessToken;
|
3250
|
+
const tokenString = await token("authentik", []);
|
3019
3251
|
|
3252
|
+
if (tokenString) {
|
3253
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3254
|
+
}
|
3255
|
+
}
|
3020
3256
|
const response = await this.request({
|
3021
3257
|
path: `/sources/user_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3022
3258
|
method: 'PATCH',
|
@@ -3048,10 +3284,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3048
3284
|
|
3049
3285
|
const headerParameters: runtime.HTTPHeaders = {};
|
3050
3286
|
|
3051
|
-
if (this.configuration && this.configuration.
|
3052
|
-
|
3053
|
-
|
3287
|
+
if (this.configuration && this.configuration.accessToken) {
|
3288
|
+
const token = this.configuration.accessToken;
|
3289
|
+
const tokenString = await token("authentik", []);
|
3054
3290
|
|
3291
|
+
if (tokenString) {
|
3292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3293
|
+
}
|
3294
|
+
}
|
3055
3295
|
const response = await this.request({
|
3056
3296
|
path: `/sources/user_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3057
3297
|
method: 'GET',
|
@@ -3088,10 +3328,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3088
3328
|
|
3089
3329
|
headerParameters['Content-Type'] = 'application/json';
|
3090
3330
|
|
3091
|
-
if (this.configuration && this.configuration.
|
3092
|
-
|
3093
|
-
|
3331
|
+
if (this.configuration && this.configuration.accessToken) {
|
3332
|
+
const token = this.configuration.accessToken;
|
3333
|
+
const tokenString = await token("authentik", []);
|
3094
3334
|
|
3335
|
+
if (tokenString) {
|
3336
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3337
|
+
}
|
3338
|
+
}
|
3095
3339
|
const response = await this.request({
|
3096
3340
|
path: `/sources/user_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3097
3341
|
method: 'PUT',
|
@@ -3123,10 +3367,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3123
3367
|
|
3124
3368
|
const headerParameters: runtime.HTTPHeaders = {};
|
3125
3369
|
|
3126
|
-
if (this.configuration && this.configuration.
|
3127
|
-
|
3128
|
-
|
3370
|
+
if (this.configuration && this.configuration.accessToken) {
|
3371
|
+
const token = this.configuration.accessToken;
|
3372
|
+
const tokenString = await token("authentik", []);
|
3129
3373
|
|
3374
|
+
if (tokenString) {
|
3375
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3376
|
+
}
|
3377
|
+
}
|
3130
3378
|
const response = await this.request({
|
3131
3379
|
path: `/sources/user_connections/plex/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3132
3380
|
method: 'GET',
|
@@ -3159,10 +3407,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3159
3407
|
|
3160
3408
|
headerParameters['Content-Type'] = 'application/json';
|
3161
3409
|
|
3162
|
-
if (this.configuration && this.configuration.
|
3163
|
-
|
3164
|
-
|
3410
|
+
if (this.configuration && this.configuration.accessToken) {
|
3411
|
+
const token = this.configuration.accessToken;
|
3412
|
+
const tokenString = await token("authentik", []);
|
3165
3413
|
|
3414
|
+
if (tokenString) {
|
3415
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3416
|
+
}
|
3417
|
+
}
|
3166
3418
|
const response = await this.request({
|
3167
3419
|
path: `/sources/user_connections/saml/`,
|
3168
3420
|
method: 'POST',
|
@@ -3194,10 +3446,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3194
3446
|
|
3195
3447
|
const headerParameters: runtime.HTTPHeaders = {};
|
3196
3448
|
|
3197
|
-
if (this.configuration && this.configuration.
|
3198
|
-
|
3199
|
-
|
3449
|
+
if (this.configuration && this.configuration.accessToken) {
|
3450
|
+
const token = this.configuration.accessToken;
|
3451
|
+
const tokenString = await token("authentik", []);
|
3200
3452
|
|
3453
|
+
if (tokenString) {
|
3454
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3455
|
+
}
|
3456
|
+
}
|
3201
3457
|
const response = await this.request({
|
3202
3458
|
path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3203
3459
|
method: 'DELETE',
|
@@ -3243,10 +3499,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3243
3499
|
|
3244
3500
|
const headerParameters: runtime.HTTPHeaders = {};
|
3245
3501
|
|
3246
|
-
if (this.configuration && this.configuration.
|
3247
|
-
|
3248
|
-
|
3502
|
+
if (this.configuration && this.configuration.accessToken) {
|
3503
|
+
const token = this.configuration.accessToken;
|
3504
|
+
const tokenString = await token("authentik", []);
|
3249
3505
|
|
3506
|
+
if (tokenString) {
|
3507
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3508
|
+
}
|
3509
|
+
}
|
3250
3510
|
const response = await this.request({
|
3251
3511
|
path: `/sources/user_connections/saml/`,
|
3252
3512
|
method: 'GET',
|
@@ -3279,10 +3539,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3279
3539
|
|
3280
3540
|
headerParameters['Content-Type'] = 'application/json';
|
3281
3541
|
|
3282
|
-
if (this.configuration && this.configuration.
|
3283
|
-
|
3284
|
-
|
3542
|
+
if (this.configuration && this.configuration.accessToken) {
|
3543
|
+
const token = this.configuration.accessToken;
|
3544
|
+
const tokenString = await token("authentik", []);
|
3285
3545
|
|
3546
|
+
if (tokenString) {
|
3547
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3548
|
+
}
|
3549
|
+
}
|
3286
3550
|
const response = await this.request({
|
3287
3551
|
path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3288
3552
|
method: 'PATCH',
|
@@ -3314,10 +3578,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3314
3578
|
|
3315
3579
|
const headerParameters: runtime.HTTPHeaders = {};
|
3316
3580
|
|
3317
|
-
if (this.configuration && this.configuration.
|
3318
|
-
|
3319
|
-
|
3581
|
+
if (this.configuration && this.configuration.accessToken) {
|
3582
|
+
const token = this.configuration.accessToken;
|
3583
|
+
const tokenString = await token("authentik", []);
|
3320
3584
|
|
3585
|
+
if (tokenString) {
|
3586
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3587
|
+
}
|
3588
|
+
}
|
3321
3589
|
const response = await this.request({
|
3322
3590
|
path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3323
3591
|
method: 'GET',
|
@@ -3354,10 +3622,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3354
3622
|
|
3355
3623
|
headerParameters['Content-Type'] = 'application/json';
|
3356
3624
|
|
3357
|
-
if (this.configuration && this.configuration.
|
3358
|
-
|
3359
|
-
|
3625
|
+
if (this.configuration && this.configuration.accessToken) {
|
3626
|
+
const token = this.configuration.accessToken;
|
3627
|
+
const tokenString = await token("authentik", []);
|
3360
3628
|
|
3629
|
+
if (tokenString) {
|
3630
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3631
|
+
}
|
3632
|
+
}
|
3361
3633
|
const response = await this.request({
|
3362
3634
|
path: `/sources/user_connections/saml/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3363
3635
|
method: 'PUT',
|
@@ -3389,10 +3661,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3389
3661
|
|
3390
3662
|
const headerParameters: runtime.HTTPHeaders = {};
|
3391
3663
|
|
3392
|
-
if (this.configuration && this.configuration.
|
3393
|
-
|
3394
|
-
|
3664
|
+
if (this.configuration && this.configuration.accessToken) {
|
3665
|
+
const token = this.configuration.accessToken;
|
3666
|
+
const tokenString = await token("authentik", []);
|
3395
3667
|
|
3668
|
+
if (tokenString) {
|
3669
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3670
|
+
}
|
3671
|
+
}
|
3396
3672
|
const response = await this.request({
|
3397
3673
|
path: `/sources/user_connections/saml/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
3398
3674
|
method: 'GET',
|