@goauthentik/api 2024.6.3-1722940666 → 2024.6.3-1723050887
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 +13 -0
- package/dist/apis/PropertymappingsApi.d.ts +171 -1
- package/dist/apis/PropertymappingsApi.js +542 -0
- package/dist/apis/RbacApi.d.ts +8 -0
- package/dist/apis/RbacApi.js +8 -0
- package/dist/apis/SourcesApi.d.ts +162 -1
- package/dist/apis/SourcesApi.js +493 -1
- package/dist/esm/apis/PropertymappingsApi.d.ts +171 -1
- package/dist/esm/apis/PropertymappingsApi.js +543 -1
- package/dist/esm/apis/RbacApi.d.ts +8 -0
- package/dist/esm/apis/RbacApi.js +8 -0
- package/dist/esm/apis/SourcesApi.d.ts +162 -1
- package/dist/esm/apis/SourcesApi.js +493 -1
- package/dist/esm/models/Device.d.ts +18 -0
- package/dist/esm/models/Device.js +6 -0
- package/dist/esm/models/GroupMatchingModeEnum.d.ts +25 -0
- package/dist/esm/models/GroupMatchingModeEnum.js +32 -0
- package/dist/esm/models/GroupOAuthSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupOAuthSourceConnection.js +50 -0
- package/dist/esm/models/GroupSAMLSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupSAMLSourceConnection.js +50 -0
- package/dist/esm/models/ModelEnum.d.ts +4 -0
- package/dist/esm/models/ModelEnum.js +4 -0
- package/dist/esm/models/OAuthSource.d.ts +7 -0
- package/dist/esm/models/OAuthSource.js +3 -0
- package/dist/esm/models/OAuthSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/OAuthSourcePropertyMapping.js +59 -0
- package/dist/esm/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/OAuthSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/OAuthSourceRequest.js +3 -0
- package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +7 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.js +3 -0
- package/dist/esm/models/SAMLSource.d.ts +7 -0
- package/dist/esm/models/SAMLSource.js +3 -0
- package/dist/esm/models/SAMLSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/SAMLSourcePropertyMapping.js +59 -0
- package/dist/esm/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/SAMLSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/SAMLSourceRequest.d.ts +7 -0
- package/dist/esm/models/SAMLSourceRequest.js +3 -0
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.js +13 -0
- package/dist/models/Device.d.ts +18 -0
- package/dist/models/Device.js +6 -0
- package/dist/models/GroupMatchingModeEnum.d.ts +25 -0
- package/dist/models/GroupMatchingModeEnum.js +38 -0
- package/dist/models/GroupOAuthSourceConnection.d.ts +56 -0
- package/dist/models/GroupOAuthSourceConnection.js +57 -0
- package/dist/models/GroupSAMLSourceConnection.d.ts +56 -0
- package/dist/models/GroupSAMLSourceConnection.js +57 -0
- package/dist/models/ModelEnum.d.ts +4 -0
- package/dist/models/ModelEnum.js +4 -0
- package/dist/models/OAuthSource.d.ts +7 -0
- package/dist/models/OAuthSource.js +3 -0
- package/dist/models/OAuthSourcePropertyMapping.d.ts +73 -0
- package/dist/models/OAuthSourcePropertyMapping.js +66 -0
- package/dist/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/OAuthSourcePropertyMappingRequest.js +56 -0
- package/dist/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/models/OAuthSourceRequest.js +3 -0
- package/dist/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupOAuthSourceConnectionList.js +55 -0
- package/dist/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupSAMLSourceConnectionList.js +55 -0
- package/dist/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedOAuthSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedSAMLSourcePropertyMappingList.js +55 -0
- package/dist/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedOAuthSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedSAMLSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedSAMLSourceRequest.d.ts +7 -0
- package/dist/models/PatchedSAMLSourceRequest.js +3 -0
- package/dist/models/SAMLSource.d.ts +7 -0
- package/dist/models/SAMLSource.js +3 -0
- package/dist/models/SAMLSourcePropertyMapping.d.ts +73 -0
- package/dist/models/SAMLSourcePropertyMapping.js +66 -0
- package/dist/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/SAMLSourcePropertyMappingRequest.js +56 -0
- package/dist/models/SAMLSourceRequest.d.ts +7 -0
- package/dist/models/SAMLSourceRequest.js +3 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +700 -0
- package/src/apis/RbacApi.ts +8 -0
- package/src/apis/SourcesApi.ts +613 -0
- package/src/models/Device.ts +24 -0
- package/src/models/GroupMatchingModeEnum.ts +40 -0
- package/src/models/GroupOAuthSourceConnection.ts +104 -0
- package/src/models/GroupSAMLSourceConnection.ts +104 -0
- package/src/models/ModelEnum.ts +4 -0
- package/src/models/OAuthSource.ts +14 -0
- package/src/models/OAuthSourcePropertyMapping.ts +123 -0
- package/src/models/OAuthSourcePropertyMappingRequest.ts +83 -0
- package/src/models/OAuthSourceRequest.ts +14 -0
- package/src/models/PaginatedGroupOAuthSourceConnectionList.ts +88 -0
- package/src/models/PaginatedGroupSAMLSourceConnectionList.ts +88 -0
- package/src/models/PaginatedOAuthSourcePropertyMappingList.ts +88 -0
- package/src/models/PaginatedSAMLSourcePropertyMappingList.ts +88 -0
- package/src/models/PatchedOAuthSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedOAuthSourceRequest.ts +14 -0
- package/src/models/PatchedSAMLSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedSAMLSourceRequest.ts +14 -0
- package/src/models/SAMLSource.ts +14 -0
- package/src/models/SAMLSourcePropertyMapping.ts +123 -0
- package/src/models/SAMLSourcePropertyMappingRequest.ts +83 -0
- package/src/models/SAMLSourceRequest.ts +14 -0
- package/src/models/index.ts +13 -0
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GoogleWorkspaceProviderMappingFromJSON, GoogleWorkspaceProviderMappingRequestToJSON, LDAPSourcePropertyMappingFromJSON, LDAPSourcePropertyMappingRequestToJSON, MicrosoftEntraProviderMappingFromJSON, MicrosoftEntraProviderMappingRequestToJSON, NotificationWebhookMappingFromJSON, NotificationWebhookMappingRequestToJSON, PaginatedGoogleWorkspaceProviderMappingListFromJSON, PaginatedLDAPSourcePropertyMappingListFromJSON, PaginatedMicrosoftEntraProviderMappingListFromJSON, PaginatedNotificationWebhookMappingListFromJSON, PaginatedPropertyMappingListFromJSON, PaginatedRACPropertyMappingListFromJSON, PaginatedRadiusProviderPropertyMappingListFromJSON, PaginatedSAMLPropertyMappingListFromJSON, PaginatedSCIMMappingListFromJSON, PaginatedSCIMSourcePropertyMappingListFromJSON, PaginatedScopeMappingListFromJSON, PatchedGoogleWorkspaceProviderMappingRequestToJSON, PatchedLDAPSourcePropertyMappingRequestToJSON, PatchedMicrosoftEntraProviderMappingRequestToJSON, PatchedNotificationWebhookMappingRequestToJSON, PatchedRACPropertyMappingRequestToJSON, PatchedRadiusProviderPropertyMappingRequestToJSON, PatchedSAMLPropertyMappingRequestToJSON, PatchedSCIMMappingRequestToJSON, PatchedSCIMSourcePropertyMappingRequestToJSON, PatchedScopeMappingRequestToJSON, PropertyMappingFromJSON, PropertyMappingTestRequestToJSON, PropertyMappingTestResultFromJSON, RACPropertyMappingFromJSON, RACPropertyMappingRequestToJSON, RadiusProviderPropertyMappingFromJSON, RadiusProviderPropertyMappingRequestToJSON, SAMLPropertyMappingFromJSON, SAMLPropertyMappingRequestToJSON, SCIMMappingFromJSON, SCIMMappingRequestToJSON, SCIMSourcePropertyMappingFromJSON, SCIMSourcePropertyMappingRequestToJSON, ScopeMappingFromJSON, ScopeMappingRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
24
|
+
import { GoogleWorkspaceProviderMappingFromJSON, GoogleWorkspaceProviderMappingRequestToJSON, LDAPSourcePropertyMappingFromJSON, LDAPSourcePropertyMappingRequestToJSON, MicrosoftEntraProviderMappingFromJSON, MicrosoftEntraProviderMappingRequestToJSON, NotificationWebhookMappingFromJSON, NotificationWebhookMappingRequestToJSON, OAuthSourcePropertyMappingFromJSON, OAuthSourcePropertyMappingRequestToJSON, PaginatedGoogleWorkspaceProviderMappingListFromJSON, PaginatedLDAPSourcePropertyMappingListFromJSON, PaginatedMicrosoftEntraProviderMappingListFromJSON, PaginatedNotificationWebhookMappingListFromJSON, PaginatedOAuthSourcePropertyMappingListFromJSON, PaginatedPropertyMappingListFromJSON, PaginatedRACPropertyMappingListFromJSON, PaginatedRadiusProviderPropertyMappingListFromJSON, PaginatedSAMLPropertyMappingListFromJSON, PaginatedSAMLSourcePropertyMappingListFromJSON, PaginatedSCIMMappingListFromJSON, PaginatedSCIMSourcePropertyMappingListFromJSON, PaginatedScopeMappingListFromJSON, PatchedGoogleWorkspaceProviderMappingRequestToJSON, PatchedLDAPSourcePropertyMappingRequestToJSON, PatchedMicrosoftEntraProviderMappingRequestToJSON, PatchedNotificationWebhookMappingRequestToJSON, PatchedOAuthSourcePropertyMappingRequestToJSON, PatchedRACPropertyMappingRequestToJSON, PatchedRadiusProviderPropertyMappingRequestToJSON, PatchedSAMLPropertyMappingRequestToJSON, PatchedSAMLSourcePropertyMappingRequestToJSON, PatchedSCIMMappingRequestToJSON, PatchedSCIMSourcePropertyMappingRequestToJSON, PatchedScopeMappingRequestToJSON, PropertyMappingFromJSON, PropertyMappingTestRequestToJSON, PropertyMappingTestResultFromJSON, RACPropertyMappingFromJSON, RACPropertyMappingRequestToJSON, RadiusProviderPropertyMappingFromJSON, RadiusProviderPropertyMappingRequestToJSON, SAMLPropertyMappingFromJSON, SAMLPropertyMappingRequestToJSON, SAMLSourcePropertyMappingFromJSON, SAMLSourcePropertyMappingRequestToJSON, SCIMMappingFromJSON, SCIMMappingRequestToJSON, SCIMSourcePropertyMappingFromJSON, SCIMSourcePropertyMappingRequestToJSON, ScopeMappingFromJSON, ScopeMappingRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -2700,6 +2700,548 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
2700
2700
|
return yield response.value();
|
|
2701
2701
|
});
|
|
2702
2702
|
}
|
|
2703
|
+
/**
|
|
2704
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2705
|
+
*/
|
|
2706
|
+
propertymappingsSourceOauthCreateRaw(requestParameters, initOverrides) {
|
|
2707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2708
|
+
if (requestParameters.oAuthSourcePropertyMappingRequest === null || requestParameters.oAuthSourcePropertyMappingRequest === undefined) {
|
|
2709
|
+
throw new runtime.RequiredError('oAuthSourcePropertyMappingRequest', 'Required parameter requestParameters.oAuthSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceOauthCreate.');
|
|
2710
|
+
}
|
|
2711
|
+
const queryParameters = {};
|
|
2712
|
+
const headerParameters = {};
|
|
2713
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2714
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2715
|
+
const token = this.configuration.accessToken;
|
|
2716
|
+
const tokenString = yield token("authentik", []);
|
|
2717
|
+
if (tokenString) {
|
|
2718
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
const response = yield this.request({
|
|
2722
|
+
path: `/propertymappings/source/oauth/`,
|
|
2723
|
+
method: 'POST',
|
|
2724
|
+
headers: headerParameters,
|
|
2725
|
+
query: queryParameters,
|
|
2726
|
+
body: OAuthSourcePropertyMappingRequestToJSON(requestParameters.oAuthSourcePropertyMappingRequest),
|
|
2727
|
+
}, initOverrides);
|
|
2728
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthSourcePropertyMappingFromJSON(jsonValue));
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2731
|
+
/**
|
|
2732
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2733
|
+
*/
|
|
2734
|
+
propertymappingsSourceOauthCreate(requestParameters, initOverrides) {
|
|
2735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2736
|
+
const response = yield this.propertymappingsSourceOauthCreateRaw(requestParameters, initOverrides);
|
|
2737
|
+
return yield response.value();
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2742
|
+
*/
|
|
2743
|
+
propertymappingsSourceOauthDestroyRaw(requestParameters, initOverrides) {
|
|
2744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2745
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
2746
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthDestroy.');
|
|
2747
|
+
}
|
|
2748
|
+
const queryParameters = {};
|
|
2749
|
+
const headerParameters = {};
|
|
2750
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2751
|
+
const token = this.configuration.accessToken;
|
|
2752
|
+
const tokenString = yield token("authentik", []);
|
|
2753
|
+
if (tokenString) {
|
|
2754
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
const response = yield this.request({
|
|
2758
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
2759
|
+
method: 'DELETE',
|
|
2760
|
+
headers: headerParameters,
|
|
2761
|
+
query: queryParameters,
|
|
2762
|
+
}, initOverrides);
|
|
2763
|
+
return new runtime.VoidApiResponse(response);
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
/**
|
|
2767
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2768
|
+
*/
|
|
2769
|
+
propertymappingsSourceOauthDestroy(requestParameters, initOverrides) {
|
|
2770
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2771
|
+
yield this.propertymappingsSourceOauthDestroyRaw(requestParameters, initOverrides);
|
|
2772
|
+
});
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2776
|
+
*/
|
|
2777
|
+
propertymappingsSourceOauthListRaw(requestParameters, initOverrides) {
|
|
2778
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2779
|
+
const queryParameters = {};
|
|
2780
|
+
if (requestParameters.managed) {
|
|
2781
|
+
queryParameters['managed'] = requestParameters.managed;
|
|
2782
|
+
}
|
|
2783
|
+
if (requestParameters.managedIsnull !== undefined) {
|
|
2784
|
+
queryParameters['managed__isnull'] = requestParameters.managedIsnull;
|
|
2785
|
+
}
|
|
2786
|
+
if (requestParameters.name !== undefined) {
|
|
2787
|
+
queryParameters['name'] = requestParameters.name;
|
|
2788
|
+
}
|
|
2789
|
+
if (requestParameters.ordering !== undefined) {
|
|
2790
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
2791
|
+
}
|
|
2792
|
+
if (requestParameters.page !== undefined) {
|
|
2793
|
+
queryParameters['page'] = requestParameters.page;
|
|
2794
|
+
}
|
|
2795
|
+
if (requestParameters.pageSize !== undefined) {
|
|
2796
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
2797
|
+
}
|
|
2798
|
+
if (requestParameters.search !== undefined) {
|
|
2799
|
+
queryParameters['search'] = requestParameters.search;
|
|
2800
|
+
}
|
|
2801
|
+
const headerParameters = {};
|
|
2802
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2803
|
+
const token = this.configuration.accessToken;
|
|
2804
|
+
const tokenString = yield token("authentik", []);
|
|
2805
|
+
if (tokenString) {
|
|
2806
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
const response = yield this.request({
|
|
2810
|
+
path: `/propertymappings/source/oauth/`,
|
|
2811
|
+
method: 'GET',
|
|
2812
|
+
headers: headerParameters,
|
|
2813
|
+
query: queryParameters,
|
|
2814
|
+
}, initOverrides);
|
|
2815
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOAuthSourcePropertyMappingListFromJSON(jsonValue));
|
|
2816
|
+
});
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2820
|
+
*/
|
|
2821
|
+
propertymappingsSourceOauthList(requestParameters = {}, initOverrides) {
|
|
2822
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2823
|
+
const response = yield this.propertymappingsSourceOauthListRaw(requestParameters, initOverrides);
|
|
2824
|
+
return yield response.value();
|
|
2825
|
+
});
|
|
2826
|
+
}
|
|
2827
|
+
/**
|
|
2828
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2829
|
+
*/
|
|
2830
|
+
propertymappingsSourceOauthPartialUpdateRaw(requestParameters, initOverrides) {
|
|
2831
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2832
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
2833
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthPartialUpdate.');
|
|
2834
|
+
}
|
|
2835
|
+
const queryParameters = {};
|
|
2836
|
+
const headerParameters = {};
|
|
2837
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2838
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2839
|
+
const token = this.configuration.accessToken;
|
|
2840
|
+
const tokenString = yield token("authentik", []);
|
|
2841
|
+
if (tokenString) {
|
|
2842
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2843
|
+
}
|
|
2844
|
+
}
|
|
2845
|
+
const response = yield this.request({
|
|
2846
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
2847
|
+
method: 'PATCH',
|
|
2848
|
+
headers: headerParameters,
|
|
2849
|
+
query: queryParameters,
|
|
2850
|
+
body: PatchedOAuthSourcePropertyMappingRequestToJSON(requestParameters.patchedOAuthSourcePropertyMappingRequest),
|
|
2851
|
+
}, initOverrides);
|
|
2852
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthSourcePropertyMappingFromJSON(jsonValue));
|
|
2853
|
+
});
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2857
|
+
*/
|
|
2858
|
+
propertymappingsSourceOauthPartialUpdate(requestParameters, initOverrides) {
|
|
2859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2860
|
+
const response = yield this.propertymappingsSourceOauthPartialUpdateRaw(requestParameters, initOverrides);
|
|
2861
|
+
return yield response.value();
|
|
2862
|
+
});
|
|
2863
|
+
}
|
|
2864
|
+
/**
|
|
2865
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2866
|
+
*/
|
|
2867
|
+
propertymappingsSourceOauthRetrieveRaw(requestParameters, initOverrides) {
|
|
2868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2869
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
2870
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthRetrieve.');
|
|
2871
|
+
}
|
|
2872
|
+
const queryParameters = {};
|
|
2873
|
+
const headerParameters = {};
|
|
2874
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2875
|
+
const token = this.configuration.accessToken;
|
|
2876
|
+
const tokenString = yield token("authentik", []);
|
|
2877
|
+
if (tokenString) {
|
|
2878
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
const response = yield this.request({
|
|
2882
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
2883
|
+
method: 'GET',
|
|
2884
|
+
headers: headerParameters,
|
|
2885
|
+
query: queryParameters,
|
|
2886
|
+
}, initOverrides);
|
|
2887
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthSourcePropertyMappingFromJSON(jsonValue));
|
|
2888
|
+
});
|
|
2889
|
+
}
|
|
2890
|
+
/**
|
|
2891
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2892
|
+
*/
|
|
2893
|
+
propertymappingsSourceOauthRetrieve(requestParameters, initOverrides) {
|
|
2894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2895
|
+
const response = yield this.propertymappingsSourceOauthRetrieveRaw(requestParameters, initOverrides);
|
|
2896
|
+
return yield response.value();
|
|
2897
|
+
});
|
|
2898
|
+
}
|
|
2899
|
+
/**
|
|
2900
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2901
|
+
*/
|
|
2902
|
+
propertymappingsSourceOauthUpdateRaw(requestParameters, initOverrides) {
|
|
2903
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2904
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
2905
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthUpdate.');
|
|
2906
|
+
}
|
|
2907
|
+
if (requestParameters.oAuthSourcePropertyMappingRequest === null || requestParameters.oAuthSourcePropertyMappingRequest === undefined) {
|
|
2908
|
+
throw new runtime.RequiredError('oAuthSourcePropertyMappingRequest', 'Required parameter requestParameters.oAuthSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceOauthUpdate.');
|
|
2909
|
+
}
|
|
2910
|
+
const queryParameters = {};
|
|
2911
|
+
const headerParameters = {};
|
|
2912
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2913
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2914
|
+
const token = this.configuration.accessToken;
|
|
2915
|
+
const tokenString = yield token("authentik", []);
|
|
2916
|
+
if (tokenString) {
|
|
2917
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
const response = yield this.request({
|
|
2921
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
2922
|
+
method: 'PUT',
|
|
2923
|
+
headers: headerParameters,
|
|
2924
|
+
query: queryParameters,
|
|
2925
|
+
body: OAuthSourcePropertyMappingRequestToJSON(requestParameters.oAuthSourcePropertyMappingRequest),
|
|
2926
|
+
}, initOverrides);
|
|
2927
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthSourcePropertyMappingFromJSON(jsonValue));
|
|
2928
|
+
});
|
|
2929
|
+
}
|
|
2930
|
+
/**
|
|
2931
|
+
* OAuthSourcePropertyMapping Viewset
|
|
2932
|
+
*/
|
|
2933
|
+
propertymappingsSourceOauthUpdate(requestParameters, initOverrides) {
|
|
2934
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2935
|
+
const response = yield this.propertymappingsSourceOauthUpdateRaw(requestParameters, initOverrides);
|
|
2936
|
+
return yield response.value();
|
|
2937
|
+
});
|
|
2938
|
+
}
|
|
2939
|
+
/**
|
|
2940
|
+
* Get a list of all objects that use this object
|
|
2941
|
+
*/
|
|
2942
|
+
propertymappingsSourceOauthUsedByListRaw(requestParameters, initOverrides) {
|
|
2943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2944
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
2945
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthUsedByList.');
|
|
2946
|
+
}
|
|
2947
|
+
const queryParameters = {};
|
|
2948
|
+
const headerParameters = {};
|
|
2949
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2950
|
+
const token = this.configuration.accessToken;
|
|
2951
|
+
const tokenString = yield token("authentik", []);
|
|
2952
|
+
if (tokenString) {
|
|
2953
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
const response = yield this.request({
|
|
2957
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
2958
|
+
method: 'GET',
|
|
2959
|
+
headers: headerParameters,
|
|
2960
|
+
query: queryParameters,
|
|
2961
|
+
}, initOverrides);
|
|
2962
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* Get a list of all objects that use this object
|
|
2967
|
+
*/
|
|
2968
|
+
propertymappingsSourceOauthUsedByList(requestParameters, initOverrides) {
|
|
2969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2970
|
+
const response = yield this.propertymappingsSourceOauthUsedByListRaw(requestParameters, initOverrides);
|
|
2971
|
+
return yield response.value();
|
|
2972
|
+
});
|
|
2973
|
+
}
|
|
2974
|
+
/**
|
|
2975
|
+
* SAMLSourcePropertyMapping Viewset
|
|
2976
|
+
*/
|
|
2977
|
+
propertymappingsSourceSamlCreateRaw(requestParameters, initOverrides) {
|
|
2978
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2979
|
+
if (requestParameters.sAMLSourcePropertyMappingRequest === null || requestParameters.sAMLSourcePropertyMappingRequest === undefined) {
|
|
2980
|
+
throw new runtime.RequiredError('sAMLSourcePropertyMappingRequest', 'Required parameter requestParameters.sAMLSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceSamlCreate.');
|
|
2981
|
+
}
|
|
2982
|
+
const queryParameters = {};
|
|
2983
|
+
const headerParameters = {};
|
|
2984
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2985
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2986
|
+
const token = this.configuration.accessToken;
|
|
2987
|
+
const tokenString = yield token("authentik", []);
|
|
2988
|
+
if (tokenString) {
|
|
2989
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
const response = yield this.request({
|
|
2993
|
+
path: `/propertymappings/source/saml/`,
|
|
2994
|
+
method: 'POST',
|
|
2995
|
+
headers: headerParameters,
|
|
2996
|
+
query: queryParameters,
|
|
2997
|
+
body: SAMLSourcePropertyMappingRequestToJSON(requestParameters.sAMLSourcePropertyMappingRequest),
|
|
2998
|
+
}, initOverrides);
|
|
2999
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SAMLSourcePropertyMappingFromJSON(jsonValue));
|
|
3000
|
+
});
|
|
3001
|
+
}
|
|
3002
|
+
/**
|
|
3003
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3004
|
+
*/
|
|
3005
|
+
propertymappingsSourceSamlCreate(requestParameters, initOverrides) {
|
|
3006
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3007
|
+
const response = yield this.propertymappingsSourceSamlCreateRaw(requestParameters, initOverrides);
|
|
3008
|
+
return yield response.value();
|
|
3009
|
+
});
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3013
|
+
*/
|
|
3014
|
+
propertymappingsSourceSamlDestroyRaw(requestParameters, initOverrides) {
|
|
3015
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3016
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
3017
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlDestroy.');
|
|
3018
|
+
}
|
|
3019
|
+
const queryParameters = {};
|
|
3020
|
+
const headerParameters = {};
|
|
3021
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3022
|
+
const token = this.configuration.accessToken;
|
|
3023
|
+
const tokenString = yield token("authentik", []);
|
|
3024
|
+
if (tokenString) {
|
|
3025
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
const response = yield this.request({
|
|
3029
|
+
path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
3030
|
+
method: 'DELETE',
|
|
3031
|
+
headers: headerParameters,
|
|
3032
|
+
query: queryParameters,
|
|
3033
|
+
}, initOverrides);
|
|
3034
|
+
return new runtime.VoidApiResponse(response);
|
|
3035
|
+
});
|
|
3036
|
+
}
|
|
3037
|
+
/**
|
|
3038
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3039
|
+
*/
|
|
3040
|
+
propertymappingsSourceSamlDestroy(requestParameters, initOverrides) {
|
|
3041
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3042
|
+
yield this.propertymappingsSourceSamlDestroyRaw(requestParameters, initOverrides);
|
|
3043
|
+
});
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3047
|
+
*/
|
|
3048
|
+
propertymappingsSourceSamlListRaw(requestParameters, initOverrides) {
|
|
3049
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3050
|
+
const queryParameters = {};
|
|
3051
|
+
if (requestParameters.managed) {
|
|
3052
|
+
queryParameters['managed'] = requestParameters.managed;
|
|
3053
|
+
}
|
|
3054
|
+
if (requestParameters.managedIsnull !== undefined) {
|
|
3055
|
+
queryParameters['managed__isnull'] = requestParameters.managedIsnull;
|
|
3056
|
+
}
|
|
3057
|
+
if (requestParameters.name !== undefined) {
|
|
3058
|
+
queryParameters['name'] = requestParameters.name;
|
|
3059
|
+
}
|
|
3060
|
+
if (requestParameters.ordering !== undefined) {
|
|
3061
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
3062
|
+
}
|
|
3063
|
+
if (requestParameters.page !== undefined) {
|
|
3064
|
+
queryParameters['page'] = requestParameters.page;
|
|
3065
|
+
}
|
|
3066
|
+
if (requestParameters.pageSize !== undefined) {
|
|
3067
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
3068
|
+
}
|
|
3069
|
+
if (requestParameters.search !== undefined) {
|
|
3070
|
+
queryParameters['search'] = requestParameters.search;
|
|
3071
|
+
}
|
|
3072
|
+
const headerParameters = {};
|
|
3073
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3074
|
+
const token = this.configuration.accessToken;
|
|
3075
|
+
const tokenString = yield token("authentik", []);
|
|
3076
|
+
if (tokenString) {
|
|
3077
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
const response = yield this.request({
|
|
3081
|
+
path: `/propertymappings/source/saml/`,
|
|
3082
|
+
method: 'GET',
|
|
3083
|
+
headers: headerParameters,
|
|
3084
|
+
query: queryParameters,
|
|
3085
|
+
}, initOverrides);
|
|
3086
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSAMLSourcePropertyMappingListFromJSON(jsonValue));
|
|
3087
|
+
});
|
|
3088
|
+
}
|
|
3089
|
+
/**
|
|
3090
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3091
|
+
*/
|
|
3092
|
+
propertymappingsSourceSamlList(requestParameters = {}, initOverrides) {
|
|
3093
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3094
|
+
const response = yield this.propertymappingsSourceSamlListRaw(requestParameters, initOverrides);
|
|
3095
|
+
return yield response.value();
|
|
3096
|
+
});
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3100
|
+
*/
|
|
3101
|
+
propertymappingsSourceSamlPartialUpdateRaw(requestParameters, initOverrides) {
|
|
3102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3103
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
3104
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlPartialUpdate.');
|
|
3105
|
+
}
|
|
3106
|
+
const queryParameters = {};
|
|
3107
|
+
const headerParameters = {};
|
|
3108
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3110
|
+
const token = this.configuration.accessToken;
|
|
3111
|
+
const tokenString = yield token("authentik", []);
|
|
3112
|
+
if (tokenString) {
|
|
3113
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
const response = yield this.request({
|
|
3117
|
+
path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
3118
|
+
method: 'PATCH',
|
|
3119
|
+
headers: headerParameters,
|
|
3120
|
+
query: queryParameters,
|
|
3121
|
+
body: PatchedSAMLSourcePropertyMappingRequestToJSON(requestParameters.patchedSAMLSourcePropertyMappingRequest),
|
|
3122
|
+
}, initOverrides);
|
|
3123
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SAMLSourcePropertyMappingFromJSON(jsonValue));
|
|
3124
|
+
});
|
|
3125
|
+
}
|
|
3126
|
+
/**
|
|
3127
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3128
|
+
*/
|
|
3129
|
+
propertymappingsSourceSamlPartialUpdate(requestParameters, initOverrides) {
|
|
3130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3131
|
+
const response = yield this.propertymappingsSourceSamlPartialUpdateRaw(requestParameters, initOverrides);
|
|
3132
|
+
return yield response.value();
|
|
3133
|
+
});
|
|
3134
|
+
}
|
|
3135
|
+
/**
|
|
3136
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3137
|
+
*/
|
|
3138
|
+
propertymappingsSourceSamlRetrieveRaw(requestParameters, initOverrides) {
|
|
3139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3140
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
3141
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlRetrieve.');
|
|
3142
|
+
}
|
|
3143
|
+
const queryParameters = {};
|
|
3144
|
+
const headerParameters = {};
|
|
3145
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3146
|
+
const token = this.configuration.accessToken;
|
|
3147
|
+
const tokenString = yield token("authentik", []);
|
|
3148
|
+
if (tokenString) {
|
|
3149
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
const response = yield this.request({
|
|
3153
|
+
path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
3154
|
+
method: 'GET',
|
|
3155
|
+
headers: headerParameters,
|
|
3156
|
+
query: queryParameters,
|
|
3157
|
+
}, initOverrides);
|
|
3158
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SAMLSourcePropertyMappingFromJSON(jsonValue));
|
|
3159
|
+
});
|
|
3160
|
+
}
|
|
3161
|
+
/**
|
|
3162
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3163
|
+
*/
|
|
3164
|
+
propertymappingsSourceSamlRetrieve(requestParameters, initOverrides) {
|
|
3165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3166
|
+
const response = yield this.propertymappingsSourceSamlRetrieveRaw(requestParameters, initOverrides);
|
|
3167
|
+
return yield response.value();
|
|
3168
|
+
});
|
|
3169
|
+
}
|
|
3170
|
+
/**
|
|
3171
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3172
|
+
*/
|
|
3173
|
+
propertymappingsSourceSamlUpdateRaw(requestParameters, initOverrides) {
|
|
3174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3175
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
3176
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlUpdate.');
|
|
3177
|
+
}
|
|
3178
|
+
if (requestParameters.sAMLSourcePropertyMappingRequest === null || requestParameters.sAMLSourcePropertyMappingRequest === undefined) {
|
|
3179
|
+
throw new runtime.RequiredError('sAMLSourcePropertyMappingRequest', 'Required parameter requestParameters.sAMLSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceSamlUpdate.');
|
|
3180
|
+
}
|
|
3181
|
+
const queryParameters = {};
|
|
3182
|
+
const headerParameters = {};
|
|
3183
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3184
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3185
|
+
const token = this.configuration.accessToken;
|
|
3186
|
+
const tokenString = yield token("authentik", []);
|
|
3187
|
+
if (tokenString) {
|
|
3188
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
const response = yield this.request({
|
|
3192
|
+
path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
3193
|
+
method: 'PUT',
|
|
3194
|
+
headers: headerParameters,
|
|
3195
|
+
query: queryParameters,
|
|
3196
|
+
body: SAMLSourcePropertyMappingRequestToJSON(requestParameters.sAMLSourcePropertyMappingRequest),
|
|
3197
|
+
}, initOverrides);
|
|
3198
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SAMLSourcePropertyMappingFromJSON(jsonValue));
|
|
3199
|
+
});
|
|
3200
|
+
}
|
|
3201
|
+
/**
|
|
3202
|
+
* SAMLSourcePropertyMapping Viewset
|
|
3203
|
+
*/
|
|
3204
|
+
propertymappingsSourceSamlUpdate(requestParameters, initOverrides) {
|
|
3205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3206
|
+
const response = yield this.propertymappingsSourceSamlUpdateRaw(requestParameters, initOverrides);
|
|
3207
|
+
return yield response.value();
|
|
3208
|
+
});
|
|
3209
|
+
}
|
|
3210
|
+
/**
|
|
3211
|
+
* Get a list of all objects that use this object
|
|
3212
|
+
*/
|
|
3213
|
+
propertymappingsSourceSamlUsedByListRaw(requestParameters, initOverrides) {
|
|
3214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3215
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
3216
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlUsedByList.');
|
|
3217
|
+
}
|
|
3218
|
+
const queryParameters = {};
|
|
3219
|
+
const headerParameters = {};
|
|
3220
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3221
|
+
const token = this.configuration.accessToken;
|
|
3222
|
+
const tokenString = yield token("authentik", []);
|
|
3223
|
+
if (tokenString) {
|
|
3224
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
const response = yield this.request({
|
|
3228
|
+
path: `/propertymappings/source/saml/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
3229
|
+
method: 'GET',
|
|
3230
|
+
headers: headerParameters,
|
|
3231
|
+
query: queryParameters,
|
|
3232
|
+
}, initOverrides);
|
|
3233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
3234
|
+
});
|
|
3235
|
+
}
|
|
3236
|
+
/**
|
|
3237
|
+
* Get a list of all objects that use this object
|
|
3238
|
+
*/
|
|
3239
|
+
propertymappingsSourceSamlUsedByList(requestParameters, initOverrides) {
|
|
3240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3241
|
+
const response = yield this.propertymappingsSourceSamlUsedByListRaw(requestParameters, initOverrides);
|
|
3242
|
+
return yield response.value();
|
|
3243
|
+
});
|
|
3244
|
+
}
|
|
2703
3245
|
/**
|
|
2704
3246
|
* SCIMSourcePropertyMapping Viewset
|
|
2705
3247
|
*/
|
|
@@ -381,11 +381,15 @@ export declare const RbacPermissionsAssignedByRolesListModelEnum: {
|
|
|
381
381
|
readonly RbacRole: "authentik_rbac.role";
|
|
382
382
|
readonly SourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
|
|
383
383
|
readonly SourcesLdapLdapsourcepropertymapping: "authentik_sources_ldap.ldapsourcepropertymapping";
|
|
384
|
+
readonly SourcesOauthGroupoauthsourceconnection: "authentik_sources_oauth.groupoauthsourceconnection";
|
|
384
385
|
readonly SourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
|
|
386
|
+
readonly SourcesOauthOauthsourcepropertymapping: "authentik_sources_oauth.oauthsourcepropertymapping";
|
|
385
387
|
readonly SourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
|
|
386
388
|
readonly SourcesPlexPlexsource: "authentik_sources_plex.plexsource";
|
|
387
389
|
readonly SourcesPlexPlexsourceconnection: "authentik_sources_plex.plexsourceconnection";
|
|
390
|
+
readonly SourcesSamlGroupsamlsourceconnection: "authentik_sources_saml.groupsamlsourceconnection";
|
|
388
391
|
readonly SourcesSamlSamlsource: "authentik_sources_saml.samlsource";
|
|
392
|
+
readonly SourcesSamlSamlsourcepropertymapping: "authentik_sources_saml.samlsourcepropertymapping";
|
|
389
393
|
readonly SourcesSamlUsersamlsourceconnection: "authentik_sources_saml.usersamlsourceconnection";
|
|
390
394
|
readonly SourcesScimScimsource: "authentik_sources_scim.scimsource";
|
|
391
395
|
readonly SourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
|
|
@@ -471,11 +475,15 @@ export declare const RbacPermissionsAssignedByUsersListModelEnum: {
|
|
|
471
475
|
readonly RbacRole: "authentik_rbac.role";
|
|
472
476
|
readonly SourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
|
|
473
477
|
readonly SourcesLdapLdapsourcepropertymapping: "authentik_sources_ldap.ldapsourcepropertymapping";
|
|
478
|
+
readonly SourcesOauthGroupoauthsourceconnection: "authentik_sources_oauth.groupoauthsourceconnection";
|
|
474
479
|
readonly SourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
|
|
480
|
+
readonly SourcesOauthOauthsourcepropertymapping: "authentik_sources_oauth.oauthsourcepropertymapping";
|
|
475
481
|
readonly SourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
|
|
476
482
|
readonly SourcesPlexPlexsource: "authentik_sources_plex.plexsource";
|
|
477
483
|
readonly SourcesPlexPlexsourceconnection: "authentik_sources_plex.plexsourceconnection";
|
|
484
|
+
readonly SourcesSamlGroupsamlsourceconnection: "authentik_sources_saml.groupsamlsourceconnection";
|
|
478
485
|
readonly SourcesSamlSamlsource: "authentik_sources_saml.samlsource";
|
|
486
|
+
readonly SourcesSamlSamlsourcepropertymapping: "authentik_sources_saml.samlsourcepropertymapping";
|
|
479
487
|
readonly SourcesSamlUsersamlsourceconnection: "authentik_sources_saml.usersamlsourceconnection";
|
|
480
488
|
readonly SourcesScimScimsource: "authentik_sources_scim.scimsource";
|
|
481
489
|
readonly SourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
|
package/dist/esm/apis/RbacApi.js
CHANGED
|
@@ -1080,11 +1080,15 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
1080
1080
|
RbacRole: 'authentik_rbac.role',
|
|
1081
1081
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
|
1082
1082
|
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
|
1083
|
+
SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
|
|
1083
1084
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
|
1085
|
+
SourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
|
|
1084
1086
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
|
1085
1087
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
|
1086
1088
|
SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
|
|
1089
|
+
SourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
|
|
1087
1090
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
|
1091
|
+
SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
|
|
1088
1092
|
SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
|
|
1089
1093
|
SourcesScimScimsource: 'authentik_sources_scim.scimsource',
|
|
1090
1094
|
SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
|
@@ -1169,11 +1173,15 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1169
1173
|
RbacRole: 'authentik_rbac.role',
|
|
1170
1174
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
|
1171
1175
|
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
|
1176
|
+
SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
|
|
1172
1177
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
|
1178
|
+
SourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
|
|
1173
1179
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
|
1174
1180
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
|
1175
1181
|
SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
|
|
1182
|
+
SourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
|
|
1176
1183
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
|
1184
|
+
SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
|
|
1177
1185
|
SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
|
|
1178
1186
|
SourcesScimScimsource: 'authentik_sources_scim.scimsource',
|
|
1179
1187
|
SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|