@goauthentik/api 2024.10.5-1734022840 → 2024.10.5-1734528783
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -0
- package/dist/apis/CoreApi.d.ts +86 -1
- package/dist/apis/CoreApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/SourcesApi.d.ts +21 -5
- package/dist/apis/SourcesApi.js +51 -6
- package/dist/esm/apis/CoreApi.d.ts +86 -1
- package/dist/esm/apis/CoreApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/SourcesApi.d.ts +21 -5
- package/dist/esm/apis/SourcesApi.js +52 -7
- package/dist/esm/models/ApplicationEntitlement.d.ts +49 -0
- package/dist/esm/models/ApplicationEntitlement.js +51 -0
- package/dist/esm/models/ApplicationEntitlementRequest.d.ts +43 -0
- package/dist/esm/models/ApplicationEntitlementRequest.js +49 -0
- package/dist/esm/models/GroupKerberosSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupKerberosSourceConnection.js +8 -2
- package/dist/esm/models/GroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupKerberosSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupOAuthSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupOAuthSourceConnection.js +8 -2
- package/dist/esm/models/GroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupOAuthSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupPlexSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupPlexSourceConnection.js +8 -2
- package/dist/esm/models/GroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupPlexSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupSAMLSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupSAMLSourceConnection.js +8 -2
- package/dist/esm/models/GroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupSAMLSourceConnectionRequest.js +49 -0
- package/dist/esm/models/IdentificationChallenge.d.ts +1 -1
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedApplicationEntitlementList.d.ts +39 -0
- package/dist/esm/models/PaginatedApplicationEntitlementList.js +48 -0
- package/dist/esm/models/PatchedApplicationEntitlementRequest.d.ts +43 -0
- package/dist/esm/models/PatchedApplicationEntitlementRequest.js +47 -0
- package/dist/esm/models/PatchedGroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupKerberosSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupOAuthSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupPlexSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupSAMLSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +2 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/PatchedUserSourceConnectionRequest.js +45 -0
- package/dist/esm/models/UserKerberosSourceConnection.d.ts +7 -1
- package/dist/esm/models/UserKerberosSourceConnection.js +4 -1
- package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.js +3 -0
- package/dist/esm/models/UserOAuthSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserOAuthSourceConnection.js +5 -1
- package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserOAuthSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserPlexSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserPlexSourceConnection.js +5 -1
- package/dist/esm/models/UserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserPlexSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserSAMLSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserSAMLSourceConnection.js +5 -1
- package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserSAMLSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserSourceConnection.d.ts +9 -3
- package/dist/esm/models/UserSourceConnection.js +7 -2
- package/dist/esm/models/UserSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/UserSourceConnectionRequest.js +46 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/ApplicationEntitlement.d.ts +49 -0
- package/dist/models/ApplicationEntitlement.js +58 -0
- package/dist/models/ApplicationEntitlementRequest.d.ts +43 -0
- package/dist/models/ApplicationEntitlementRequest.js +56 -0
- package/dist/models/GroupKerberosSourceConnection.d.ts +9 -3
- package/dist/models/GroupKerberosSourceConnection.js +8 -2
- package/dist/models/GroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupKerberosSourceConnectionRequest.js +56 -0
- package/dist/models/GroupOAuthSourceConnection.d.ts +9 -3
- package/dist/models/GroupOAuthSourceConnection.js +8 -2
- package/dist/models/GroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupOAuthSourceConnectionRequest.js +56 -0
- package/dist/models/GroupPlexSourceConnection.d.ts +9 -3
- package/dist/models/GroupPlexSourceConnection.js +8 -2
- package/dist/models/GroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupPlexSourceConnectionRequest.js +56 -0
- package/dist/models/GroupSAMLSourceConnection.d.ts +9 -3
- package/dist/models/GroupSAMLSourceConnection.js +8 -2
- package/dist/models/GroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupSAMLSourceConnectionRequest.js +56 -0
- package/dist/models/IdentificationChallenge.d.ts +1 -1
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedApplicationEntitlementList.d.ts +39 -0
- package/dist/models/PaginatedApplicationEntitlementList.js +55 -0
- package/dist/models/PatchedApplicationEntitlementRequest.d.ts +43 -0
- package/dist/models/PatchedApplicationEntitlementRequest.js +54 -0
- package/dist/models/PatchedGroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupKerberosSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupOAuthSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupPlexSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupSAMLSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +2 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserSourceConnectionRequest.d.ts +37 -0
- package/dist/models/PatchedUserSourceConnectionRequest.js +52 -0
- package/dist/models/UserKerberosSourceConnection.d.ts +7 -1
- package/dist/models/UserKerberosSourceConnection.js +4 -1
- package/dist/models/UserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/models/UserKerberosSourceConnectionRequest.js +3 -0
- package/dist/models/UserOAuthSourceConnection.d.ts +8 -2
- package/dist/models/UserOAuthSourceConnection.js +5 -1
- package/dist/models/UserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserOAuthSourceConnectionRequest.js +6 -0
- package/dist/models/UserPlexSourceConnection.d.ts +8 -2
- package/dist/models/UserPlexSourceConnection.js +5 -1
- package/dist/models/UserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserPlexSourceConnectionRequest.js +6 -0
- package/dist/models/UserSAMLSourceConnection.d.ts +8 -2
- package/dist/models/UserSAMLSourceConnection.js +5 -1
- package/dist/models/UserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserSAMLSourceConnectionRequest.js +6 -0
- package/dist/models/UserSourceConnection.d.ts +9 -3
- package/dist/models/UserSourceConnection.js +7 -2
- package/dist/models/UserSourceConnectionRequest.d.ts +37 -0
- package/dist/models/UserSourceConnectionRequest.js +53 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +350 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/SourcesApi.ts +118 -6
- package/src/models/ApplicationEntitlement.ts +91 -0
- package/src/models/ApplicationEntitlementRequest.ts +83 -0
- package/src/models/GroupKerberosSourceConnection.ts +15 -4
- package/src/models/GroupKerberosSourceConnectionRequest.ts +84 -0
- package/src/models/GroupOAuthSourceConnection.ts +15 -4
- package/src/models/GroupOAuthSourceConnectionRequest.ts +84 -0
- package/src/models/GroupPlexSourceConnection.ts +15 -4
- package/src/models/GroupPlexSourceConnectionRequest.ts +84 -0
- package/src/models/GroupSAMLSourceConnection.ts +15 -4
- package/src/models/GroupSAMLSourceConnectionRequest.ts +84 -0
- package/src/models/IdentificationChallenge.ts +1 -1
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedApplicationEntitlementList.ts +88 -0
- package/src/models/PatchedApplicationEntitlementRequest.ts +81 -0
- package/src/models/PatchedGroupKerberosSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupOAuthSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupPlexSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupSAMLSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +8 -0
- package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserPlexSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserSourceConnectionRequest.ts +73 -0
- package/src/models/UserKerberosSourceConnection.ts +11 -2
- package/src/models/UserKerberosSourceConnectionRequest.ts +9 -0
- package/src/models/UserOAuthSourceConnection.ts +13 -3
- package/src/models/UserOAuthSourceConnectionRequest.ts +18 -0
- package/src/models/UserPlexSourceConnection.ts +13 -3
- package/src/models/UserPlexSourceConnectionRequest.ts +18 -0
- package/src/models/UserSAMLSourceConnection.ts +13 -3
- package/src/models/UserSAMLSourceConnectionRequest.ts +18 -0
- package/src/models/UserSourceConnection.ts +14 -4
- package/src/models/UserSourceConnectionRequest.ts +75 -0
- package/src/models/index.ts +14 -0
package/dist/apis/SourcesApi.js
CHANGED
|
@@ -439,6 +439,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
439
439
|
}
|
|
440
440
|
const queryParameters = {};
|
|
441
441
|
const headerParameters = {};
|
|
442
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
442
443
|
if (this.configuration && this.configuration.accessToken) {
|
|
443
444
|
const token = this.configuration.accessToken;
|
|
444
445
|
const tokenString = yield token("authentik", []);
|
|
@@ -451,6 +452,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
451
452
|
method: 'PATCH',
|
|
452
453
|
headers: headerParameters,
|
|
453
454
|
query: queryParameters,
|
|
455
|
+
body: (0, models_1.PatchedGroupKerberosSourceConnectionRequestToJSON)(requestParameters.patchedGroupKerberosSourceConnectionRequest),
|
|
454
456
|
}, initOverrides);
|
|
455
457
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupKerberosSourceConnectionFromJSON)(jsonValue));
|
|
456
458
|
});
|
|
@@ -507,8 +509,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
507
509
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
508
510
|
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsKerberosUpdate.');
|
|
509
511
|
}
|
|
512
|
+
if (requestParameters.groupKerberosSourceConnectionRequest === null || requestParameters.groupKerberosSourceConnectionRequest === undefined) {
|
|
513
|
+
throw new runtime.RequiredError('groupKerberosSourceConnectionRequest', 'Required parameter requestParameters.groupKerberosSourceConnectionRequest was null or undefined when calling sourcesGroupConnectionsKerberosUpdate.');
|
|
514
|
+
}
|
|
510
515
|
const queryParameters = {};
|
|
511
516
|
const headerParameters = {};
|
|
517
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
512
518
|
if (this.configuration && this.configuration.accessToken) {
|
|
513
519
|
const token = this.configuration.accessToken;
|
|
514
520
|
const tokenString = yield token("authentik", []);
|
|
@@ -521,6 +527,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
521
527
|
method: 'PUT',
|
|
522
528
|
headers: headerParameters,
|
|
523
529
|
query: queryParameters,
|
|
530
|
+
body: (0, models_1.GroupKerberosSourceConnectionRequestToJSON)(requestParameters.groupKerberosSourceConnectionRequest),
|
|
524
531
|
}, initOverrides);
|
|
525
532
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupKerberosSourceConnectionFromJSON)(jsonValue));
|
|
526
533
|
});
|
|
@@ -572,10 +579,14 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
572
579
|
/**
|
|
573
580
|
* Group-source connection Viewset
|
|
574
581
|
*/
|
|
575
|
-
sourcesGroupConnectionsOauthCreateRaw(initOverrides) {
|
|
582
|
+
sourcesGroupConnectionsOauthCreateRaw(requestParameters, initOverrides) {
|
|
576
583
|
return __awaiter(this, void 0, void 0, function* () {
|
|
584
|
+
if (requestParameters.groupOAuthSourceConnectionRequest === null || requestParameters.groupOAuthSourceConnectionRequest === undefined) {
|
|
585
|
+
throw new runtime.RequiredError('groupOAuthSourceConnectionRequest', 'Required parameter requestParameters.groupOAuthSourceConnectionRequest was null or undefined when calling sourcesGroupConnectionsOauthCreate.');
|
|
586
|
+
}
|
|
577
587
|
const queryParameters = {};
|
|
578
588
|
const headerParameters = {};
|
|
589
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
579
590
|
if (this.configuration && this.configuration.accessToken) {
|
|
580
591
|
const token = this.configuration.accessToken;
|
|
581
592
|
const tokenString = yield token("authentik", []);
|
|
@@ -588,6 +599,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
588
599
|
method: 'POST',
|
|
589
600
|
headers: headerParameters,
|
|
590
601
|
query: queryParameters,
|
|
602
|
+
body: (0, models_1.GroupOAuthSourceConnectionRequestToJSON)(requestParameters.groupOAuthSourceConnectionRequest),
|
|
591
603
|
}, initOverrides);
|
|
592
604
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupOAuthSourceConnectionFromJSON)(jsonValue));
|
|
593
605
|
});
|
|
@@ -595,9 +607,9 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
595
607
|
/**
|
|
596
608
|
* Group-source connection Viewset
|
|
597
609
|
*/
|
|
598
|
-
sourcesGroupConnectionsOauthCreate(initOverrides) {
|
|
610
|
+
sourcesGroupConnectionsOauthCreate(requestParameters, initOverrides) {
|
|
599
611
|
return __awaiter(this, void 0, void 0, function* () {
|
|
600
|
-
const response = yield this.sourcesGroupConnectionsOauthCreateRaw(initOverrides);
|
|
612
|
+
const response = yield this.sourcesGroupConnectionsOauthCreateRaw(requestParameters, initOverrides);
|
|
601
613
|
return yield response.value();
|
|
602
614
|
});
|
|
603
615
|
}
|
|
@@ -695,6 +707,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
695
707
|
}
|
|
696
708
|
const queryParameters = {};
|
|
697
709
|
const headerParameters = {};
|
|
710
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
698
711
|
if (this.configuration && this.configuration.accessToken) {
|
|
699
712
|
const token = this.configuration.accessToken;
|
|
700
713
|
const tokenString = yield token("authentik", []);
|
|
@@ -707,6 +720,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
707
720
|
method: 'PATCH',
|
|
708
721
|
headers: headerParameters,
|
|
709
722
|
query: queryParameters,
|
|
723
|
+
body: (0, models_1.PatchedGroupOAuthSourceConnectionRequestToJSON)(requestParameters.patchedGroupOAuthSourceConnectionRequest),
|
|
710
724
|
}, initOverrides);
|
|
711
725
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupOAuthSourceConnectionFromJSON)(jsonValue));
|
|
712
726
|
});
|
|
@@ -763,8 +777,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
763
777
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
764
778
|
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsOauthUpdate.');
|
|
765
779
|
}
|
|
780
|
+
if (requestParameters.groupOAuthSourceConnectionRequest === null || requestParameters.groupOAuthSourceConnectionRequest === undefined) {
|
|
781
|
+
throw new runtime.RequiredError('groupOAuthSourceConnectionRequest', 'Required parameter requestParameters.groupOAuthSourceConnectionRequest was null or undefined when calling sourcesGroupConnectionsOauthUpdate.');
|
|
782
|
+
}
|
|
766
783
|
const queryParameters = {};
|
|
767
784
|
const headerParameters = {};
|
|
785
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
768
786
|
if (this.configuration && this.configuration.accessToken) {
|
|
769
787
|
const token = this.configuration.accessToken;
|
|
770
788
|
const tokenString = yield token("authentik", []);
|
|
@@ -777,6 +795,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
777
795
|
method: 'PUT',
|
|
778
796
|
headers: headerParameters,
|
|
779
797
|
query: queryParameters,
|
|
798
|
+
body: (0, models_1.GroupOAuthSourceConnectionRequestToJSON)(requestParameters.groupOAuthSourceConnectionRequest),
|
|
780
799
|
}, initOverrides);
|
|
781
800
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupOAuthSourceConnectionFromJSON)(jsonValue));
|
|
782
801
|
});
|
|
@@ -828,10 +847,14 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
828
847
|
/**
|
|
829
848
|
* Group-source connection Viewset
|
|
830
849
|
*/
|
|
831
|
-
sourcesGroupConnectionsPlexCreateRaw(initOverrides) {
|
|
850
|
+
sourcesGroupConnectionsPlexCreateRaw(requestParameters, initOverrides) {
|
|
832
851
|
return __awaiter(this, void 0, void 0, function* () {
|
|
852
|
+
if (requestParameters.groupPlexSourceConnectionRequest === null || requestParameters.groupPlexSourceConnectionRequest === undefined) {
|
|
853
|
+
throw new runtime.RequiredError('groupPlexSourceConnectionRequest', 'Required parameter requestParameters.groupPlexSourceConnectionRequest was null or undefined when calling sourcesGroupConnectionsPlexCreate.');
|
|
854
|
+
}
|
|
833
855
|
const queryParameters = {};
|
|
834
856
|
const headerParameters = {};
|
|
857
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
835
858
|
if (this.configuration && this.configuration.accessToken) {
|
|
836
859
|
const token = this.configuration.accessToken;
|
|
837
860
|
const tokenString = yield token("authentik", []);
|
|
@@ -844,6 +867,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
844
867
|
method: 'POST',
|
|
845
868
|
headers: headerParameters,
|
|
846
869
|
query: queryParameters,
|
|
870
|
+
body: (0, models_1.GroupPlexSourceConnectionRequestToJSON)(requestParameters.groupPlexSourceConnectionRequest),
|
|
847
871
|
}, initOverrides);
|
|
848
872
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupPlexSourceConnectionFromJSON)(jsonValue));
|
|
849
873
|
});
|
|
@@ -851,9 +875,9 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
851
875
|
/**
|
|
852
876
|
* Group-source connection Viewset
|
|
853
877
|
*/
|
|
854
|
-
sourcesGroupConnectionsPlexCreate(initOverrides) {
|
|
878
|
+
sourcesGroupConnectionsPlexCreate(requestParameters, initOverrides) {
|
|
855
879
|
return __awaiter(this, void 0, void 0, function* () {
|
|
856
|
-
const response = yield this.sourcesGroupConnectionsPlexCreateRaw(initOverrides);
|
|
880
|
+
const response = yield this.sourcesGroupConnectionsPlexCreateRaw(requestParameters, initOverrides);
|
|
857
881
|
return yield response.value();
|
|
858
882
|
});
|
|
859
883
|
}
|
|
@@ -951,6 +975,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
951
975
|
}
|
|
952
976
|
const queryParameters = {};
|
|
953
977
|
const headerParameters = {};
|
|
978
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
954
979
|
if (this.configuration && this.configuration.accessToken) {
|
|
955
980
|
const token = this.configuration.accessToken;
|
|
956
981
|
const tokenString = yield token("authentik", []);
|
|
@@ -963,6 +988,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
963
988
|
method: 'PATCH',
|
|
964
989
|
headers: headerParameters,
|
|
965
990
|
query: queryParameters,
|
|
991
|
+
body: (0, models_1.PatchedGroupPlexSourceConnectionRequestToJSON)(requestParameters.patchedGroupPlexSourceConnectionRequest),
|
|
966
992
|
}, initOverrides);
|
|
967
993
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupPlexSourceConnectionFromJSON)(jsonValue));
|
|
968
994
|
});
|
|
@@ -1019,8 +1045,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1019
1045
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1020
1046
|
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsPlexUpdate.');
|
|
1021
1047
|
}
|
|
1048
|
+
if (requestParameters.groupPlexSourceConnectionRequest === null || requestParameters.groupPlexSourceConnectionRequest === undefined) {
|
|
1049
|
+
throw new runtime.RequiredError('groupPlexSourceConnectionRequest', 'Required parameter requestParameters.groupPlexSourceConnectionRequest was null or undefined when calling sourcesGroupConnectionsPlexUpdate.');
|
|
1050
|
+
}
|
|
1022
1051
|
const queryParameters = {};
|
|
1023
1052
|
const headerParameters = {};
|
|
1053
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1024
1054
|
if (this.configuration && this.configuration.accessToken) {
|
|
1025
1055
|
const token = this.configuration.accessToken;
|
|
1026
1056
|
const tokenString = yield token("authentik", []);
|
|
@@ -1033,6 +1063,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1033
1063
|
method: 'PUT',
|
|
1034
1064
|
headers: headerParameters,
|
|
1035
1065
|
query: queryParameters,
|
|
1066
|
+
body: (0, models_1.GroupPlexSourceConnectionRequestToJSON)(requestParameters.groupPlexSourceConnectionRequest),
|
|
1036
1067
|
}, initOverrides);
|
|
1037
1068
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupPlexSourceConnectionFromJSON)(jsonValue));
|
|
1038
1069
|
});
|
|
@@ -1175,6 +1206,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1175
1206
|
}
|
|
1176
1207
|
const queryParameters = {};
|
|
1177
1208
|
const headerParameters = {};
|
|
1209
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1178
1210
|
if (this.configuration && this.configuration.accessToken) {
|
|
1179
1211
|
const token = this.configuration.accessToken;
|
|
1180
1212
|
const tokenString = yield token("authentik", []);
|
|
@@ -1187,6 +1219,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1187
1219
|
method: 'PATCH',
|
|
1188
1220
|
headers: headerParameters,
|
|
1189
1221
|
query: queryParameters,
|
|
1222
|
+
body: (0, models_1.PatchedGroupSAMLSourceConnectionRequestToJSON)(requestParameters.patchedGroupSAMLSourceConnectionRequest),
|
|
1190
1223
|
}, initOverrides);
|
|
1191
1224
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupSAMLSourceConnectionFromJSON)(jsonValue));
|
|
1192
1225
|
});
|
|
@@ -1243,8 +1276,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1243
1276
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1244
1277
|
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsSamlUpdate.');
|
|
1245
1278
|
}
|
|
1279
|
+
if (requestParameters.groupSAMLSourceConnectionRequest === null || requestParameters.groupSAMLSourceConnectionRequest === undefined) {
|
|
1280
|
+
throw new runtime.RequiredError('groupSAMLSourceConnectionRequest', 'Required parameter requestParameters.groupSAMLSourceConnectionRequest was null or undefined when calling sourcesGroupConnectionsSamlUpdate.');
|
|
1281
|
+
}
|
|
1246
1282
|
const queryParameters = {};
|
|
1247
1283
|
const headerParameters = {};
|
|
1284
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1248
1285
|
if (this.configuration && this.configuration.accessToken) {
|
|
1249
1286
|
const token = this.configuration.accessToken;
|
|
1250
1287
|
const tokenString = yield token("authentik", []);
|
|
@@ -1257,6 +1294,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
1257
1294
|
method: 'PUT',
|
|
1258
1295
|
headers: headerParameters,
|
|
1259
1296
|
query: queryParameters,
|
|
1297
|
+
body: (0, models_1.GroupSAMLSourceConnectionRequestToJSON)(requestParameters.groupSAMLSourceConnectionRequest),
|
|
1260
1298
|
}, initOverrides);
|
|
1261
1299
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GroupSAMLSourceConnectionFromJSON)(jsonValue));
|
|
1262
1300
|
});
|
|
@@ -4010,6 +4048,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
4010
4048
|
}
|
|
4011
4049
|
const queryParameters = {};
|
|
4012
4050
|
const headerParameters = {};
|
|
4051
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4013
4052
|
if (this.configuration && this.configuration.accessToken) {
|
|
4014
4053
|
const token = this.configuration.accessToken;
|
|
4015
4054
|
const tokenString = yield token("authentik", []);
|
|
@@ -4022,6 +4061,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
4022
4061
|
method: 'PATCH',
|
|
4023
4062
|
headers: headerParameters,
|
|
4024
4063
|
query: queryParameters,
|
|
4064
|
+
body: (0, models_1.PatchedUserSourceConnectionRequestToJSON)(requestParameters.patchedUserSourceConnectionRequest),
|
|
4025
4065
|
}, initOverrides);
|
|
4026
4066
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserSourceConnectionFromJSON)(jsonValue));
|
|
4027
4067
|
});
|
|
@@ -4078,8 +4118,12 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
4078
4118
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
4079
4119
|
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsAllUpdate.');
|
|
4080
4120
|
}
|
|
4121
|
+
if (requestParameters.userSourceConnectionRequest === null || requestParameters.userSourceConnectionRequest === undefined) {
|
|
4122
|
+
throw new runtime.RequiredError('userSourceConnectionRequest', 'Required parameter requestParameters.userSourceConnectionRequest was null or undefined when calling sourcesUserConnectionsAllUpdate.');
|
|
4123
|
+
}
|
|
4081
4124
|
const queryParameters = {};
|
|
4082
4125
|
const headerParameters = {};
|
|
4126
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4083
4127
|
if (this.configuration && this.configuration.accessToken) {
|
|
4084
4128
|
const token = this.configuration.accessToken;
|
|
4085
4129
|
const tokenString = yield token("authentik", []);
|
|
@@ -4092,6 +4136,7 @@ class SourcesApi extends runtime.BaseAPI {
|
|
|
4092
4136
|
method: 'PUT',
|
|
4093
4137
|
headers: headerParameters,
|
|
4094
4138
|
query: queryParameters,
|
|
4139
|
+
body: (0, models_1.UserSourceConnectionRequestToJSON)(requestParameters.userSourceConnectionRequest),
|
|
4095
4140
|
}, initOverrides);
|
|
4096
4141
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserSourceConnectionFromJSON)(jsonValue));
|
|
4097
4142
|
});
|
|
@@ -10,7 +10,36 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Application, ApplicationRequest, AuthenticatedSession, Brand, BrandRequest, Coordinate, CurrentBrand, FilePathRequest, Group, GroupRequest, ImpersonationRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedBrandList, PaginatedGroupList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedBrandRequest, PatchedGroupRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Token, TokenRequest, TokenSetKeyRequest, TokenView, TransactionApplicationRequest, TransactionApplicationResponse, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
|
|
13
|
+
import type { Application, ApplicationEntitlement, ApplicationEntitlementRequest, ApplicationRequest, AuthenticatedSession, Brand, BrandRequest, Coordinate, CurrentBrand, FilePathRequest, Group, GroupRequest, ImpersonationRequest, Link, PaginatedApplicationEntitlementList, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedBrandList, PaginatedGroupList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationEntitlementRequest, PatchedApplicationRequest, PatchedBrandRequest, PatchedGroupRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Token, TokenRequest, TokenSetKeyRequest, TokenView, TransactionApplicationRequest, TransactionApplicationResponse, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
|
|
14
|
+
export interface CoreApplicationEntitlementsCreateRequest {
|
|
15
|
+
applicationEntitlementRequest: ApplicationEntitlementRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface CoreApplicationEntitlementsDestroyRequest {
|
|
18
|
+
pbmUuid: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CoreApplicationEntitlementsListRequest {
|
|
21
|
+
app?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
ordering?: string;
|
|
24
|
+
page?: number;
|
|
25
|
+
pageSize?: number;
|
|
26
|
+
pbmUuid?: string;
|
|
27
|
+
search?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface CoreApplicationEntitlementsPartialUpdateRequest {
|
|
30
|
+
pbmUuid: string;
|
|
31
|
+
patchedApplicationEntitlementRequest?: PatchedApplicationEntitlementRequest;
|
|
32
|
+
}
|
|
33
|
+
export interface CoreApplicationEntitlementsRetrieveRequest {
|
|
34
|
+
pbmUuid: string;
|
|
35
|
+
}
|
|
36
|
+
export interface CoreApplicationEntitlementsUpdateRequest {
|
|
37
|
+
pbmUuid: string;
|
|
38
|
+
applicationEntitlementRequest: ApplicationEntitlementRequest;
|
|
39
|
+
}
|
|
40
|
+
export interface CoreApplicationEntitlementsUsedByListRequest {
|
|
41
|
+
pbmUuid: string;
|
|
42
|
+
}
|
|
14
43
|
export interface CoreApplicationsCheckAccessRetrieveRequest {
|
|
15
44
|
slug: string;
|
|
16
45
|
forUser?: number;
|
|
@@ -287,6 +316,62 @@ export interface CoreUsersUsedByListRequest {
|
|
|
287
316
|
*
|
|
288
317
|
*/
|
|
289
318
|
export declare class CoreApi extends runtime.BaseAPI {
|
|
319
|
+
/**
|
|
320
|
+
* ApplicationEntitlement Viewset
|
|
321
|
+
*/
|
|
322
|
+
coreApplicationEntitlementsCreateRaw(requestParameters: CoreApplicationEntitlementsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
323
|
+
/**
|
|
324
|
+
* ApplicationEntitlement Viewset
|
|
325
|
+
*/
|
|
326
|
+
coreApplicationEntitlementsCreate(requestParameters: CoreApplicationEntitlementsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
327
|
+
/**
|
|
328
|
+
* ApplicationEntitlement Viewset
|
|
329
|
+
*/
|
|
330
|
+
coreApplicationEntitlementsDestroyRaw(requestParameters: CoreApplicationEntitlementsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
331
|
+
/**
|
|
332
|
+
* ApplicationEntitlement Viewset
|
|
333
|
+
*/
|
|
334
|
+
coreApplicationEntitlementsDestroy(requestParameters: CoreApplicationEntitlementsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
335
|
+
/**
|
|
336
|
+
* ApplicationEntitlement Viewset
|
|
337
|
+
*/
|
|
338
|
+
coreApplicationEntitlementsListRaw(requestParameters: CoreApplicationEntitlementsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedApplicationEntitlementList>>;
|
|
339
|
+
/**
|
|
340
|
+
* ApplicationEntitlement Viewset
|
|
341
|
+
*/
|
|
342
|
+
coreApplicationEntitlementsList(requestParameters?: CoreApplicationEntitlementsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedApplicationEntitlementList>;
|
|
343
|
+
/**
|
|
344
|
+
* ApplicationEntitlement Viewset
|
|
345
|
+
*/
|
|
346
|
+
coreApplicationEntitlementsPartialUpdateRaw(requestParameters: CoreApplicationEntitlementsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
347
|
+
/**
|
|
348
|
+
* ApplicationEntitlement Viewset
|
|
349
|
+
*/
|
|
350
|
+
coreApplicationEntitlementsPartialUpdate(requestParameters: CoreApplicationEntitlementsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
351
|
+
/**
|
|
352
|
+
* ApplicationEntitlement Viewset
|
|
353
|
+
*/
|
|
354
|
+
coreApplicationEntitlementsRetrieveRaw(requestParameters: CoreApplicationEntitlementsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
355
|
+
/**
|
|
356
|
+
* ApplicationEntitlement Viewset
|
|
357
|
+
*/
|
|
358
|
+
coreApplicationEntitlementsRetrieve(requestParameters: CoreApplicationEntitlementsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
359
|
+
/**
|
|
360
|
+
* ApplicationEntitlement Viewset
|
|
361
|
+
*/
|
|
362
|
+
coreApplicationEntitlementsUpdateRaw(requestParameters: CoreApplicationEntitlementsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationEntitlement>>;
|
|
363
|
+
/**
|
|
364
|
+
* ApplicationEntitlement Viewset
|
|
365
|
+
*/
|
|
366
|
+
coreApplicationEntitlementsUpdate(requestParameters: CoreApplicationEntitlementsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationEntitlement>;
|
|
367
|
+
/**
|
|
368
|
+
* Get a list of all objects that use this object
|
|
369
|
+
*/
|
|
370
|
+
coreApplicationEntitlementsUsedByListRaw(requestParameters: CoreApplicationEntitlementsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
|
|
371
|
+
/**
|
|
372
|
+
* Get a list of all objects that use this object
|
|
373
|
+
*/
|
|
374
|
+
coreApplicationEntitlementsUsedByList(requestParameters: CoreApplicationEntitlementsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>>;
|
|
290
375
|
/**
|
|
291
376
|
* Check access to a single application by slug
|
|
292
377
|
*/
|
package/dist/esm/apis/CoreApi.js
CHANGED
|
@@ -21,11 +21,282 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApplicationFromJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, BrandFromJSON, BrandRequestToJSON, CoordinateFromJSON, CurrentBrandFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, ImpersonationRequestToJSON, LinkFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedBrandListFromJSON, PaginatedGroupListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationRequestToJSON, PatchedBrandRequestToJSON, PatchedGroupRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, TransactionApplicationRequestToJSON, TransactionApplicationResponseFromJSON, UsedByFromJSON, UserFromJSON, UserAccountRequestToJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserPathFromJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';
|
|
24
|
+
import { ApplicationFromJSON, ApplicationEntitlementFromJSON, ApplicationEntitlementRequestToJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, BrandFromJSON, BrandRequestToJSON, CoordinateFromJSON, CurrentBrandFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, ImpersonationRequestToJSON, LinkFromJSON, PaginatedApplicationEntitlementListFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedBrandListFromJSON, PaginatedGroupListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationEntitlementRequestToJSON, PatchedApplicationRequestToJSON, PatchedBrandRequestToJSON, PatchedGroupRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, TransactionApplicationRequestToJSON, TransactionApplicationResponseFromJSON, UsedByFromJSON, UserFromJSON, UserAccountRequestToJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserPathFromJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class CoreApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* ApplicationEntitlement Viewset
|
|
31
|
+
*/
|
|
32
|
+
coreApplicationEntitlementsCreateRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters.applicationEntitlementRequest === null || requestParameters.applicationEntitlementRequest === undefined) {
|
|
35
|
+
throw new runtime.RequiredError('applicationEntitlementRequest', 'Required parameter requestParameters.applicationEntitlementRequest was null or undefined when calling coreApplicationEntitlementsCreate.');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("authentik", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: `/core/application_entitlements/`,
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
body: ApplicationEntitlementRequestToJSON(requestParameters.applicationEntitlementRequest),
|
|
53
|
+
}, initOverrides);
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationEntitlementFromJSON(jsonValue));
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* ApplicationEntitlement Viewset
|
|
59
|
+
*/
|
|
60
|
+
coreApplicationEntitlementsCreate(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const response = yield this.coreApplicationEntitlementsCreateRaw(requestParameters, initOverrides);
|
|
63
|
+
return yield response.value();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* ApplicationEntitlement Viewset
|
|
68
|
+
*/
|
|
69
|
+
coreApplicationEntitlementsDestroyRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
72
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsDestroy.');
|
|
73
|
+
}
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("authentik", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const response = yield this.request({
|
|
84
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
85
|
+
method: 'DELETE',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
}, initOverrides);
|
|
89
|
+
return new runtime.VoidApiResponse(response);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* ApplicationEntitlement Viewset
|
|
94
|
+
*/
|
|
95
|
+
coreApplicationEntitlementsDestroy(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
yield this.coreApplicationEntitlementsDestroyRaw(requestParameters, initOverrides);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* ApplicationEntitlement Viewset
|
|
102
|
+
*/
|
|
103
|
+
coreApplicationEntitlementsListRaw(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const queryParameters = {};
|
|
106
|
+
if (requestParameters.app !== undefined) {
|
|
107
|
+
queryParameters['app'] = requestParameters.app;
|
|
108
|
+
}
|
|
109
|
+
if (requestParameters.name !== undefined) {
|
|
110
|
+
queryParameters['name'] = requestParameters.name;
|
|
111
|
+
}
|
|
112
|
+
if (requestParameters.ordering !== undefined) {
|
|
113
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
114
|
+
}
|
|
115
|
+
if (requestParameters.page !== undefined) {
|
|
116
|
+
queryParameters['page'] = requestParameters.page;
|
|
117
|
+
}
|
|
118
|
+
if (requestParameters.pageSize !== undefined) {
|
|
119
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters.pbmUuid !== undefined) {
|
|
122
|
+
queryParameters['pbm_uuid'] = requestParameters.pbmUuid;
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters.search !== undefined) {
|
|
125
|
+
queryParameters['search'] = requestParameters.search;
|
|
126
|
+
}
|
|
127
|
+
const headerParameters = {};
|
|
128
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
129
|
+
const token = this.configuration.accessToken;
|
|
130
|
+
const tokenString = yield token("authentik", []);
|
|
131
|
+
if (tokenString) {
|
|
132
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const response = yield this.request({
|
|
136
|
+
path: `/core/application_entitlements/`,
|
|
137
|
+
method: 'GET',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
}, initOverrides);
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedApplicationEntitlementListFromJSON(jsonValue));
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* ApplicationEntitlement Viewset
|
|
146
|
+
*/
|
|
147
|
+
coreApplicationEntitlementsList(requestParameters = {}, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const response = yield this.coreApplicationEntitlementsListRaw(requestParameters, initOverrides);
|
|
150
|
+
return yield response.value();
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* ApplicationEntitlement Viewset
|
|
155
|
+
*/
|
|
156
|
+
coreApplicationEntitlementsPartialUpdateRaw(requestParameters, initOverrides) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
159
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsPartialUpdate.');
|
|
160
|
+
}
|
|
161
|
+
const queryParameters = {};
|
|
162
|
+
const headerParameters = {};
|
|
163
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
164
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
165
|
+
const token = this.configuration.accessToken;
|
|
166
|
+
const tokenString = yield token("authentik", []);
|
|
167
|
+
if (tokenString) {
|
|
168
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
const response = yield this.request({
|
|
172
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
173
|
+
method: 'PATCH',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
body: PatchedApplicationEntitlementRequestToJSON(requestParameters.patchedApplicationEntitlementRequest),
|
|
177
|
+
}, initOverrides);
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationEntitlementFromJSON(jsonValue));
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* ApplicationEntitlement Viewset
|
|
183
|
+
*/
|
|
184
|
+
coreApplicationEntitlementsPartialUpdate(requestParameters, initOverrides) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
const response = yield this.coreApplicationEntitlementsPartialUpdateRaw(requestParameters, initOverrides);
|
|
187
|
+
return yield response.value();
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* ApplicationEntitlement Viewset
|
|
192
|
+
*/
|
|
193
|
+
coreApplicationEntitlementsRetrieveRaw(requestParameters, initOverrides) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
196
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsRetrieve.');
|
|
197
|
+
}
|
|
198
|
+
const queryParameters = {};
|
|
199
|
+
const headerParameters = {};
|
|
200
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
201
|
+
const token = this.configuration.accessToken;
|
|
202
|
+
const tokenString = yield token("authentik", []);
|
|
203
|
+
if (tokenString) {
|
|
204
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
const response = yield this.request({
|
|
208
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
209
|
+
method: 'GET',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
}, initOverrides);
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationEntitlementFromJSON(jsonValue));
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* ApplicationEntitlement Viewset
|
|
218
|
+
*/
|
|
219
|
+
coreApplicationEntitlementsRetrieve(requestParameters, initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
const response = yield this.coreApplicationEntitlementsRetrieveRaw(requestParameters, initOverrides);
|
|
222
|
+
return yield response.value();
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* ApplicationEntitlement Viewset
|
|
227
|
+
*/
|
|
228
|
+
coreApplicationEntitlementsUpdateRaw(requestParameters, initOverrides) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
231
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsUpdate.');
|
|
232
|
+
}
|
|
233
|
+
if (requestParameters.applicationEntitlementRequest === null || requestParameters.applicationEntitlementRequest === undefined) {
|
|
234
|
+
throw new runtime.RequiredError('applicationEntitlementRequest', 'Required parameter requestParameters.applicationEntitlementRequest was null or undefined when calling coreApplicationEntitlementsUpdate.');
|
|
235
|
+
}
|
|
236
|
+
const queryParameters = {};
|
|
237
|
+
const headerParameters = {};
|
|
238
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
240
|
+
const token = this.configuration.accessToken;
|
|
241
|
+
const tokenString = yield token("authentik", []);
|
|
242
|
+
if (tokenString) {
|
|
243
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
const response = yield this.request({
|
|
247
|
+
path: `/core/application_entitlements/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
248
|
+
method: 'PUT',
|
|
249
|
+
headers: headerParameters,
|
|
250
|
+
query: queryParameters,
|
|
251
|
+
body: ApplicationEntitlementRequestToJSON(requestParameters.applicationEntitlementRequest),
|
|
252
|
+
}, initOverrides);
|
|
253
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationEntitlementFromJSON(jsonValue));
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* ApplicationEntitlement Viewset
|
|
258
|
+
*/
|
|
259
|
+
coreApplicationEntitlementsUpdate(requestParameters, initOverrides) {
|
|
260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
const response = yield this.coreApplicationEntitlementsUpdateRaw(requestParameters, initOverrides);
|
|
262
|
+
return yield response.value();
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Get a list of all objects that use this object
|
|
267
|
+
*/
|
|
268
|
+
coreApplicationEntitlementsUsedByListRaw(requestParameters, initOverrides) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
271
|
+
throw new runtime.RequiredError('pbmUuid', 'Required parameter requestParameters.pbmUuid was null or undefined when calling coreApplicationEntitlementsUsedByList.');
|
|
272
|
+
}
|
|
273
|
+
const queryParameters = {};
|
|
274
|
+
const headerParameters = {};
|
|
275
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
276
|
+
const token = this.configuration.accessToken;
|
|
277
|
+
const tokenString = yield token("authentik", []);
|
|
278
|
+
if (tokenString) {
|
|
279
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
const response = yield this.request({
|
|
283
|
+
path: `/core/application_entitlements/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
284
|
+
method: 'GET',
|
|
285
|
+
headers: headerParameters,
|
|
286
|
+
query: queryParameters,
|
|
287
|
+
}, initOverrides);
|
|
288
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Get a list of all objects that use this object
|
|
293
|
+
*/
|
|
294
|
+
coreApplicationEntitlementsUsedByList(requestParameters, initOverrides) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
const response = yield this.coreApplicationEntitlementsUsedByListRaw(requestParameters, initOverrides);
|
|
297
|
+
return yield response.value();
|
|
298
|
+
});
|
|
299
|
+
}
|
|
29
300
|
/**
|
|
30
301
|
* Check access to a single application by slug
|
|
31
302
|
*/
|
|
@@ -338,6 +338,7 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
|
|
|
338
338
|
readonly BlueprintsBlueprintinstance: "authentik_blueprints.blueprintinstance";
|
|
339
339
|
readonly BrandsBrand: "authentik_brands.brand";
|
|
340
340
|
readonly CoreApplication: "authentik_core.application";
|
|
341
|
+
readonly CoreApplicationentitlement: "authentik_core.applicationentitlement";
|
|
341
342
|
readonly CoreGroup: "authentik_core.group";
|
|
342
343
|
readonly CoreToken: "authentik_core.token";
|
|
343
344
|
readonly CoreUser: "authentik_core.user";
|
|
@@ -440,6 +441,7 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
|
|
|
440
441
|
readonly BlueprintsBlueprintinstance: "authentik_blueprints.blueprintinstance";
|
|
441
442
|
readonly BrandsBrand: "authentik_brands.brand";
|
|
442
443
|
readonly CoreApplication: "authentik_core.application";
|
|
444
|
+
readonly CoreApplicationentitlement: "authentik_core.applicationentitlement";
|
|
443
445
|
readonly CoreGroup: "authentik_core.group";
|
|
444
446
|
readonly CoreToken: "authentik_core.token";
|
|
445
447
|
readonly CoreUser: "authentik_core.user";
|