@goauthentik/api 2024.6.3-1722940666 → 2024.6.3-1723050887
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -24,14 +24,18 @@ import type {
|
|
24
24
|
MicrosoftEntraProviderMappingRequest,
|
25
25
|
NotificationWebhookMapping,
|
26
26
|
NotificationWebhookMappingRequest,
|
27
|
+
OAuthSourcePropertyMapping,
|
28
|
+
OAuthSourcePropertyMappingRequest,
|
27
29
|
PaginatedGoogleWorkspaceProviderMappingList,
|
28
30
|
PaginatedLDAPSourcePropertyMappingList,
|
29
31
|
PaginatedMicrosoftEntraProviderMappingList,
|
30
32
|
PaginatedNotificationWebhookMappingList,
|
33
|
+
PaginatedOAuthSourcePropertyMappingList,
|
31
34
|
PaginatedPropertyMappingList,
|
32
35
|
PaginatedRACPropertyMappingList,
|
33
36
|
PaginatedRadiusProviderPropertyMappingList,
|
34
37
|
PaginatedSAMLPropertyMappingList,
|
38
|
+
PaginatedSAMLSourcePropertyMappingList,
|
35
39
|
PaginatedSCIMMappingList,
|
36
40
|
PaginatedSCIMSourcePropertyMappingList,
|
37
41
|
PaginatedScopeMappingList,
|
@@ -39,9 +43,11 @@ import type {
|
|
39
43
|
PatchedLDAPSourcePropertyMappingRequest,
|
40
44
|
PatchedMicrosoftEntraProviderMappingRequest,
|
41
45
|
PatchedNotificationWebhookMappingRequest,
|
46
|
+
PatchedOAuthSourcePropertyMappingRequest,
|
42
47
|
PatchedRACPropertyMappingRequest,
|
43
48
|
PatchedRadiusProviderPropertyMappingRequest,
|
44
49
|
PatchedSAMLPropertyMappingRequest,
|
50
|
+
PatchedSAMLSourcePropertyMappingRequest,
|
45
51
|
PatchedSCIMMappingRequest,
|
46
52
|
PatchedSCIMSourcePropertyMappingRequest,
|
47
53
|
PatchedScopeMappingRequest,
|
@@ -54,6 +60,8 @@ import type {
|
|
54
60
|
RadiusProviderPropertyMappingRequest,
|
55
61
|
SAMLPropertyMapping,
|
56
62
|
SAMLPropertyMappingRequest,
|
63
|
+
SAMLSourcePropertyMapping,
|
64
|
+
SAMLSourcePropertyMappingRequest,
|
57
65
|
SCIMMapping,
|
58
66
|
SCIMMappingRequest,
|
59
67
|
SCIMSourcePropertyMapping,
|
@@ -83,6 +91,10 @@ import {
|
|
83
91
|
NotificationWebhookMappingToJSON,
|
84
92
|
NotificationWebhookMappingRequestFromJSON,
|
85
93
|
NotificationWebhookMappingRequestToJSON,
|
94
|
+
OAuthSourcePropertyMappingFromJSON,
|
95
|
+
OAuthSourcePropertyMappingToJSON,
|
96
|
+
OAuthSourcePropertyMappingRequestFromJSON,
|
97
|
+
OAuthSourcePropertyMappingRequestToJSON,
|
86
98
|
PaginatedGoogleWorkspaceProviderMappingListFromJSON,
|
87
99
|
PaginatedGoogleWorkspaceProviderMappingListToJSON,
|
88
100
|
PaginatedLDAPSourcePropertyMappingListFromJSON,
|
@@ -91,6 +103,8 @@ import {
|
|
91
103
|
PaginatedMicrosoftEntraProviderMappingListToJSON,
|
92
104
|
PaginatedNotificationWebhookMappingListFromJSON,
|
93
105
|
PaginatedNotificationWebhookMappingListToJSON,
|
106
|
+
PaginatedOAuthSourcePropertyMappingListFromJSON,
|
107
|
+
PaginatedOAuthSourcePropertyMappingListToJSON,
|
94
108
|
PaginatedPropertyMappingListFromJSON,
|
95
109
|
PaginatedPropertyMappingListToJSON,
|
96
110
|
PaginatedRACPropertyMappingListFromJSON,
|
@@ -99,6 +113,8 @@ import {
|
|
99
113
|
PaginatedRadiusProviderPropertyMappingListToJSON,
|
100
114
|
PaginatedSAMLPropertyMappingListFromJSON,
|
101
115
|
PaginatedSAMLPropertyMappingListToJSON,
|
116
|
+
PaginatedSAMLSourcePropertyMappingListFromJSON,
|
117
|
+
PaginatedSAMLSourcePropertyMappingListToJSON,
|
102
118
|
PaginatedSCIMMappingListFromJSON,
|
103
119
|
PaginatedSCIMMappingListToJSON,
|
104
120
|
PaginatedSCIMSourcePropertyMappingListFromJSON,
|
@@ -113,12 +129,16 @@ import {
|
|
113
129
|
PatchedMicrosoftEntraProviderMappingRequestToJSON,
|
114
130
|
PatchedNotificationWebhookMappingRequestFromJSON,
|
115
131
|
PatchedNotificationWebhookMappingRequestToJSON,
|
132
|
+
PatchedOAuthSourcePropertyMappingRequestFromJSON,
|
133
|
+
PatchedOAuthSourcePropertyMappingRequestToJSON,
|
116
134
|
PatchedRACPropertyMappingRequestFromJSON,
|
117
135
|
PatchedRACPropertyMappingRequestToJSON,
|
118
136
|
PatchedRadiusProviderPropertyMappingRequestFromJSON,
|
119
137
|
PatchedRadiusProviderPropertyMappingRequestToJSON,
|
120
138
|
PatchedSAMLPropertyMappingRequestFromJSON,
|
121
139
|
PatchedSAMLPropertyMappingRequestToJSON,
|
140
|
+
PatchedSAMLSourcePropertyMappingRequestFromJSON,
|
141
|
+
PatchedSAMLSourcePropertyMappingRequestToJSON,
|
122
142
|
PatchedSCIMMappingRequestFromJSON,
|
123
143
|
PatchedSCIMMappingRequestToJSON,
|
124
144
|
PatchedSCIMSourcePropertyMappingRequestFromJSON,
|
@@ -143,6 +163,10 @@ import {
|
|
143
163
|
SAMLPropertyMappingToJSON,
|
144
164
|
SAMLPropertyMappingRequestFromJSON,
|
145
165
|
SAMLPropertyMappingRequestToJSON,
|
166
|
+
SAMLSourcePropertyMappingFromJSON,
|
167
|
+
SAMLSourcePropertyMappingToJSON,
|
168
|
+
SAMLSourcePropertyMappingRequestFromJSON,
|
169
|
+
SAMLSourcePropertyMappingRequestToJSON,
|
146
170
|
SCIMMappingFromJSON,
|
147
171
|
SCIMMappingToJSON,
|
148
172
|
SCIMMappingRequestFromJSON,
|
@@ -517,6 +541,78 @@ export interface PropertymappingsSourceLdapUsedByListRequest {
|
|
517
541
|
pmUuid: string;
|
518
542
|
}
|
519
543
|
|
544
|
+
export interface PropertymappingsSourceOauthCreateRequest {
|
545
|
+
oAuthSourcePropertyMappingRequest: OAuthSourcePropertyMappingRequest;
|
546
|
+
}
|
547
|
+
|
548
|
+
export interface PropertymappingsSourceOauthDestroyRequest {
|
549
|
+
pmUuid: string;
|
550
|
+
}
|
551
|
+
|
552
|
+
export interface PropertymappingsSourceOauthListRequest {
|
553
|
+
managed?: Array<string>;
|
554
|
+
managedIsnull?: boolean;
|
555
|
+
name?: string;
|
556
|
+
ordering?: string;
|
557
|
+
page?: number;
|
558
|
+
pageSize?: number;
|
559
|
+
search?: string;
|
560
|
+
}
|
561
|
+
|
562
|
+
export interface PropertymappingsSourceOauthPartialUpdateRequest {
|
563
|
+
pmUuid: string;
|
564
|
+
patchedOAuthSourcePropertyMappingRequest?: PatchedOAuthSourcePropertyMappingRequest;
|
565
|
+
}
|
566
|
+
|
567
|
+
export interface PropertymappingsSourceOauthRetrieveRequest {
|
568
|
+
pmUuid: string;
|
569
|
+
}
|
570
|
+
|
571
|
+
export interface PropertymappingsSourceOauthUpdateRequest {
|
572
|
+
pmUuid: string;
|
573
|
+
oAuthSourcePropertyMappingRequest: OAuthSourcePropertyMappingRequest;
|
574
|
+
}
|
575
|
+
|
576
|
+
export interface PropertymappingsSourceOauthUsedByListRequest {
|
577
|
+
pmUuid: string;
|
578
|
+
}
|
579
|
+
|
580
|
+
export interface PropertymappingsSourceSamlCreateRequest {
|
581
|
+
sAMLSourcePropertyMappingRequest: SAMLSourcePropertyMappingRequest;
|
582
|
+
}
|
583
|
+
|
584
|
+
export interface PropertymappingsSourceSamlDestroyRequest {
|
585
|
+
pmUuid: string;
|
586
|
+
}
|
587
|
+
|
588
|
+
export interface PropertymappingsSourceSamlListRequest {
|
589
|
+
managed?: Array<string>;
|
590
|
+
managedIsnull?: boolean;
|
591
|
+
name?: string;
|
592
|
+
ordering?: string;
|
593
|
+
page?: number;
|
594
|
+
pageSize?: number;
|
595
|
+
search?: string;
|
596
|
+
}
|
597
|
+
|
598
|
+
export interface PropertymappingsSourceSamlPartialUpdateRequest {
|
599
|
+
pmUuid: string;
|
600
|
+
patchedSAMLSourcePropertyMappingRequest?: PatchedSAMLSourcePropertyMappingRequest;
|
601
|
+
}
|
602
|
+
|
603
|
+
export interface PropertymappingsSourceSamlRetrieveRequest {
|
604
|
+
pmUuid: string;
|
605
|
+
}
|
606
|
+
|
607
|
+
export interface PropertymappingsSourceSamlUpdateRequest {
|
608
|
+
pmUuid: string;
|
609
|
+
sAMLSourcePropertyMappingRequest: SAMLSourcePropertyMappingRequest;
|
610
|
+
}
|
611
|
+
|
612
|
+
export interface PropertymappingsSourceSamlUsedByListRequest {
|
613
|
+
pmUuid: string;
|
614
|
+
}
|
615
|
+
|
520
616
|
export interface PropertymappingsSourceScimCreateRequest {
|
521
617
|
sCIMSourcePropertyMappingRequest: SCIMSourcePropertyMappingRequest;
|
522
618
|
}
|
@@ -3538,6 +3634,610 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
3538
3634
|
return await response.value();
|
3539
3635
|
}
|
3540
3636
|
|
3637
|
+
/**
|
3638
|
+
* OAuthSourcePropertyMapping Viewset
|
3639
|
+
*/
|
3640
|
+
async propertymappingsSourceOauthCreateRaw(requestParameters: PropertymappingsSourceOauthCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthSourcePropertyMapping>> {
|
3641
|
+
if (requestParameters.oAuthSourcePropertyMappingRequest === null || requestParameters.oAuthSourcePropertyMappingRequest === undefined) {
|
3642
|
+
throw new runtime.RequiredError('oAuthSourcePropertyMappingRequest','Required parameter requestParameters.oAuthSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceOauthCreate.');
|
3643
|
+
}
|
3644
|
+
|
3645
|
+
const queryParameters: any = {};
|
3646
|
+
|
3647
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3648
|
+
|
3649
|
+
headerParameters['Content-Type'] = 'application/json';
|
3650
|
+
|
3651
|
+
if (this.configuration && this.configuration.accessToken) {
|
3652
|
+
const token = this.configuration.accessToken;
|
3653
|
+
const tokenString = await token("authentik", []);
|
3654
|
+
|
3655
|
+
if (tokenString) {
|
3656
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3657
|
+
}
|
3658
|
+
}
|
3659
|
+
const response = await this.request({
|
3660
|
+
path: `/propertymappings/source/oauth/`,
|
3661
|
+
method: 'POST',
|
3662
|
+
headers: headerParameters,
|
3663
|
+
query: queryParameters,
|
3664
|
+
body: OAuthSourcePropertyMappingRequestToJSON(requestParameters.oAuthSourcePropertyMappingRequest),
|
3665
|
+
}, initOverrides);
|
3666
|
+
|
3667
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthSourcePropertyMappingFromJSON(jsonValue));
|
3668
|
+
}
|
3669
|
+
|
3670
|
+
/**
|
3671
|
+
* OAuthSourcePropertyMapping Viewset
|
3672
|
+
*/
|
3673
|
+
async propertymappingsSourceOauthCreate(requestParameters: PropertymappingsSourceOauthCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthSourcePropertyMapping> {
|
3674
|
+
const response = await this.propertymappingsSourceOauthCreateRaw(requestParameters, initOverrides);
|
3675
|
+
return await response.value();
|
3676
|
+
}
|
3677
|
+
|
3678
|
+
/**
|
3679
|
+
* OAuthSourcePropertyMapping Viewset
|
3680
|
+
*/
|
3681
|
+
async propertymappingsSourceOauthDestroyRaw(requestParameters: PropertymappingsSourceOauthDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
3682
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3683
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthDestroy.');
|
3684
|
+
}
|
3685
|
+
|
3686
|
+
const queryParameters: any = {};
|
3687
|
+
|
3688
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3689
|
+
|
3690
|
+
if (this.configuration && this.configuration.accessToken) {
|
3691
|
+
const token = this.configuration.accessToken;
|
3692
|
+
const tokenString = await token("authentik", []);
|
3693
|
+
|
3694
|
+
if (tokenString) {
|
3695
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3696
|
+
}
|
3697
|
+
}
|
3698
|
+
const response = await this.request({
|
3699
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3700
|
+
method: 'DELETE',
|
3701
|
+
headers: headerParameters,
|
3702
|
+
query: queryParameters,
|
3703
|
+
}, initOverrides);
|
3704
|
+
|
3705
|
+
return new runtime.VoidApiResponse(response);
|
3706
|
+
}
|
3707
|
+
|
3708
|
+
/**
|
3709
|
+
* OAuthSourcePropertyMapping Viewset
|
3710
|
+
*/
|
3711
|
+
async propertymappingsSourceOauthDestroy(requestParameters: PropertymappingsSourceOauthDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
3712
|
+
await this.propertymappingsSourceOauthDestroyRaw(requestParameters, initOverrides);
|
3713
|
+
}
|
3714
|
+
|
3715
|
+
/**
|
3716
|
+
* OAuthSourcePropertyMapping Viewset
|
3717
|
+
*/
|
3718
|
+
async propertymappingsSourceOauthListRaw(requestParameters: PropertymappingsSourceOauthListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedOAuthSourcePropertyMappingList>> {
|
3719
|
+
const queryParameters: any = {};
|
3720
|
+
|
3721
|
+
if (requestParameters.managed) {
|
3722
|
+
queryParameters['managed'] = requestParameters.managed;
|
3723
|
+
}
|
3724
|
+
|
3725
|
+
if (requestParameters.managedIsnull !== undefined) {
|
3726
|
+
queryParameters['managed__isnull'] = requestParameters.managedIsnull;
|
3727
|
+
}
|
3728
|
+
|
3729
|
+
if (requestParameters.name !== undefined) {
|
3730
|
+
queryParameters['name'] = requestParameters.name;
|
3731
|
+
}
|
3732
|
+
|
3733
|
+
if (requestParameters.ordering !== undefined) {
|
3734
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
3735
|
+
}
|
3736
|
+
|
3737
|
+
if (requestParameters.page !== undefined) {
|
3738
|
+
queryParameters['page'] = requestParameters.page;
|
3739
|
+
}
|
3740
|
+
|
3741
|
+
if (requestParameters.pageSize !== undefined) {
|
3742
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
3743
|
+
}
|
3744
|
+
|
3745
|
+
if (requestParameters.search !== undefined) {
|
3746
|
+
queryParameters['search'] = requestParameters.search;
|
3747
|
+
}
|
3748
|
+
|
3749
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3750
|
+
|
3751
|
+
if (this.configuration && this.configuration.accessToken) {
|
3752
|
+
const token = this.configuration.accessToken;
|
3753
|
+
const tokenString = await token("authentik", []);
|
3754
|
+
|
3755
|
+
if (tokenString) {
|
3756
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3757
|
+
}
|
3758
|
+
}
|
3759
|
+
const response = await this.request({
|
3760
|
+
path: `/propertymappings/source/oauth/`,
|
3761
|
+
method: 'GET',
|
3762
|
+
headers: headerParameters,
|
3763
|
+
query: queryParameters,
|
3764
|
+
}, initOverrides);
|
3765
|
+
|
3766
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOAuthSourcePropertyMappingListFromJSON(jsonValue));
|
3767
|
+
}
|
3768
|
+
|
3769
|
+
/**
|
3770
|
+
* OAuthSourcePropertyMapping Viewset
|
3771
|
+
*/
|
3772
|
+
async propertymappingsSourceOauthList(requestParameters: PropertymappingsSourceOauthListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedOAuthSourcePropertyMappingList> {
|
3773
|
+
const response = await this.propertymappingsSourceOauthListRaw(requestParameters, initOverrides);
|
3774
|
+
return await response.value();
|
3775
|
+
}
|
3776
|
+
|
3777
|
+
/**
|
3778
|
+
* OAuthSourcePropertyMapping Viewset
|
3779
|
+
*/
|
3780
|
+
async propertymappingsSourceOauthPartialUpdateRaw(requestParameters: PropertymappingsSourceOauthPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthSourcePropertyMapping>> {
|
3781
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3782
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthPartialUpdate.');
|
3783
|
+
}
|
3784
|
+
|
3785
|
+
const queryParameters: any = {};
|
3786
|
+
|
3787
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3788
|
+
|
3789
|
+
headerParameters['Content-Type'] = 'application/json';
|
3790
|
+
|
3791
|
+
if (this.configuration && this.configuration.accessToken) {
|
3792
|
+
const token = this.configuration.accessToken;
|
3793
|
+
const tokenString = await token("authentik", []);
|
3794
|
+
|
3795
|
+
if (tokenString) {
|
3796
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3797
|
+
}
|
3798
|
+
}
|
3799
|
+
const response = await this.request({
|
3800
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3801
|
+
method: 'PATCH',
|
3802
|
+
headers: headerParameters,
|
3803
|
+
query: queryParameters,
|
3804
|
+
body: PatchedOAuthSourcePropertyMappingRequestToJSON(requestParameters.patchedOAuthSourcePropertyMappingRequest),
|
3805
|
+
}, initOverrides);
|
3806
|
+
|
3807
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthSourcePropertyMappingFromJSON(jsonValue));
|
3808
|
+
}
|
3809
|
+
|
3810
|
+
/**
|
3811
|
+
* OAuthSourcePropertyMapping Viewset
|
3812
|
+
*/
|
3813
|
+
async propertymappingsSourceOauthPartialUpdate(requestParameters: PropertymappingsSourceOauthPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthSourcePropertyMapping> {
|
3814
|
+
const response = await this.propertymappingsSourceOauthPartialUpdateRaw(requestParameters, initOverrides);
|
3815
|
+
return await response.value();
|
3816
|
+
}
|
3817
|
+
|
3818
|
+
/**
|
3819
|
+
* OAuthSourcePropertyMapping Viewset
|
3820
|
+
*/
|
3821
|
+
async propertymappingsSourceOauthRetrieveRaw(requestParameters: PropertymappingsSourceOauthRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthSourcePropertyMapping>> {
|
3822
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3823
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthRetrieve.');
|
3824
|
+
}
|
3825
|
+
|
3826
|
+
const queryParameters: any = {};
|
3827
|
+
|
3828
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3829
|
+
|
3830
|
+
if (this.configuration && this.configuration.accessToken) {
|
3831
|
+
const token = this.configuration.accessToken;
|
3832
|
+
const tokenString = await token("authentik", []);
|
3833
|
+
|
3834
|
+
if (tokenString) {
|
3835
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3836
|
+
}
|
3837
|
+
}
|
3838
|
+
const response = await this.request({
|
3839
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3840
|
+
method: 'GET',
|
3841
|
+
headers: headerParameters,
|
3842
|
+
query: queryParameters,
|
3843
|
+
}, initOverrides);
|
3844
|
+
|
3845
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthSourcePropertyMappingFromJSON(jsonValue));
|
3846
|
+
}
|
3847
|
+
|
3848
|
+
/**
|
3849
|
+
* OAuthSourcePropertyMapping Viewset
|
3850
|
+
*/
|
3851
|
+
async propertymappingsSourceOauthRetrieve(requestParameters: PropertymappingsSourceOauthRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthSourcePropertyMapping> {
|
3852
|
+
const response = await this.propertymappingsSourceOauthRetrieveRaw(requestParameters, initOverrides);
|
3853
|
+
return await response.value();
|
3854
|
+
}
|
3855
|
+
|
3856
|
+
/**
|
3857
|
+
* OAuthSourcePropertyMapping Viewset
|
3858
|
+
*/
|
3859
|
+
async propertymappingsSourceOauthUpdateRaw(requestParameters: PropertymappingsSourceOauthUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthSourcePropertyMapping>> {
|
3860
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3861
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthUpdate.');
|
3862
|
+
}
|
3863
|
+
|
3864
|
+
if (requestParameters.oAuthSourcePropertyMappingRequest === null || requestParameters.oAuthSourcePropertyMappingRequest === undefined) {
|
3865
|
+
throw new runtime.RequiredError('oAuthSourcePropertyMappingRequest','Required parameter requestParameters.oAuthSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceOauthUpdate.');
|
3866
|
+
}
|
3867
|
+
|
3868
|
+
const queryParameters: any = {};
|
3869
|
+
|
3870
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3871
|
+
|
3872
|
+
headerParameters['Content-Type'] = 'application/json';
|
3873
|
+
|
3874
|
+
if (this.configuration && this.configuration.accessToken) {
|
3875
|
+
const token = this.configuration.accessToken;
|
3876
|
+
const tokenString = await token("authentik", []);
|
3877
|
+
|
3878
|
+
if (tokenString) {
|
3879
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3880
|
+
}
|
3881
|
+
}
|
3882
|
+
const response = await this.request({
|
3883
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3884
|
+
method: 'PUT',
|
3885
|
+
headers: headerParameters,
|
3886
|
+
query: queryParameters,
|
3887
|
+
body: OAuthSourcePropertyMappingRequestToJSON(requestParameters.oAuthSourcePropertyMappingRequest),
|
3888
|
+
}, initOverrides);
|
3889
|
+
|
3890
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthSourcePropertyMappingFromJSON(jsonValue));
|
3891
|
+
}
|
3892
|
+
|
3893
|
+
/**
|
3894
|
+
* OAuthSourcePropertyMapping Viewset
|
3895
|
+
*/
|
3896
|
+
async propertymappingsSourceOauthUpdate(requestParameters: PropertymappingsSourceOauthUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthSourcePropertyMapping> {
|
3897
|
+
const response = await this.propertymappingsSourceOauthUpdateRaw(requestParameters, initOverrides);
|
3898
|
+
return await response.value();
|
3899
|
+
}
|
3900
|
+
|
3901
|
+
/**
|
3902
|
+
* Get a list of all objects that use this object
|
3903
|
+
*/
|
3904
|
+
async propertymappingsSourceOauthUsedByListRaw(requestParameters: PropertymappingsSourceOauthUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
3905
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3906
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceOauthUsedByList.');
|
3907
|
+
}
|
3908
|
+
|
3909
|
+
const queryParameters: any = {};
|
3910
|
+
|
3911
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3912
|
+
|
3913
|
+
if (this.configuration && this.configuration.accessToken) {
|
3914
|
+
const token = this.configuration.accessToken;
|
3915
|
+
const tokenString = await token("authentik", []);
|
3916
|
+
|
3917
|
+
if (tokenString) {
|
3918
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3919
|
+
}
|
3920
|
+
}
|
3921
|
+
const response = await this.request({
|
3922
|
+
path: `/propertymappings/source/oauth/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3923
|
+
method: 'GET',
|
3924
|
+
headers: headerParameters,
|
3925
|
+
query: queryParameters,
|
3926
|
+
}, initOverrides);
|
3927
|
+
|
3928
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
3929
|
+
}
|
3930
|
+
|
3931
|
+
/**
|
3932
|
+
* Get a list of all objects that use this object
|
3933
|
+
*/
|
3934
|
+
async propertymappingsSourceOauthUsedByList(requestParameters: PropertymappingsSourceOauthUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
3935
|
+
const response = await this.propertymappingsSourceOauthUsedByListRaw(requestParameters, initOverrides);
|
3936
|
+
return await response.value();
|
3937
|
+
}
|
3938
|
+
|
3939
|
+
/**
|
3940
|
+
* SAMLSourcePropertyMapping Viewset
|
3941
|
+
*/
|
3942
|
+
async propertymappingsSourceSamlCreateRaw(requestParameters: PropertymappingsSourceSamlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SAMLSourcePropertyMapping>> {
|
3943
|
+
if (requestParameters.sAMLSourcePropertyMappingRequest === null || requestParameters.sAMLSourcePropertyMappingRequest === undefined) {
|
3944
|
+
throw new runtime.RequiredError('sAMLSourcePropertyMappingRequest','Required parameter requestParameters.sAMLSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceSamlCreate.');
|
3945
|
+
}
|
3946
|
+
|
3947
|
+
const queryParameters: any = {};
|
3948
|
+
|
3949
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3950
|
+
|
3951
|
+
headerParameters['Content-Type'] = 'application/json';
|
3952
|
+
|
3953
|
+
if (this.configuration && this.configuration.accessToken) {
|
3954
|
+
const token = this.configuration.accessToken;
|
3955
|
+
const tokenString = await token("authentik", []);
|
3956
|
+
|
3957
|
+
if (tokenString) {
|
3958
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3959
|
+
}
|
3960
|
+
}
|
3961
|
+
const response = await this.request({
|
3962
|
+
path: `/propertymappings/source/saml/`,
|
3963
|
+
method: 'POST',
|
3964
|
+
headers: headerParameters,
|
3965
|
+
query: queryParameters,
|
3966
|
+
body: SAMLSourcePropertyMappingRequestToJSON(requestParameters.sAMLSourcePropertyMappingRequest),
|
3967
|
+
}, initOverrides);
|
3968
|
+
|
3969
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SAMLSourcePropertyMappingFromJSON(jsonValue));
|
3970
|
+
}
|
3971
|
+
|
3972
|
+
/**
|
3973
|
+
* SAMLSourcePropertyMapping Viewset
|
3974
|
+
*/
|
3975
|
+
async propertymappingsSourceSamlCreate(requestParameters: PropertymappingsSourceSamlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SAMLSourcePropertyMapping> {
|
3976
|
+
const response = await this.propertymappingsSourceSamlCreateRaw(requestParameters, initOverrides);
|
3977
|
+
return await response.value();
|
3978
|
+
}
|
3979
|
+
|
3980
|
+
/**
|
3981
|
+
* SAMLSourcePropertyMapping Viewset
|
3982
|
+
*/
|
3983
|
+
async propertymappingsSourceSamlDestroyRaw(requestParameters: PropertymappingsSourceSamlDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
3984
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3985
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlDestroy.');
|
3986
|
+
}
|
3987
|
+
|
3988
|
+
const queryParameters: any = {};
|
3989
|
+
|
3990
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3991
|
+
|
3992
|
+
if (this.configuration && this.configuration.accessToken) {
|
3993
|
+
const token = this.configuration.accessToken;
|
3994
|
+
const tokenString = await token("authentik", []);
|
3995
|
+
|
3996
|
+
if (tokenString) {
|
3997
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3998
|
+
}
|
3999
|
+
}
|
4000
|
+
const response = await this.request({
|
4001
|
+
path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
4002
|
+
method: 'DELETE',
|
4003
|
+
headers: headerParameters,
|
4004
|
+
query: queryParameters,
|
4005
|
+
}, initOverrides);
|
4006
|
+
|
4007
|
+
return new runtime.VoidApiResponse(response);
|
4008
|
+
}
|
4009
|
+
|
4010
|
+
/**
|
4011
|
+
* SAMLSourcePropertyMapping Viewset
|
4012
|
+
*/
|
4013
|
+
async propertymappingsSourceSamlDestroy(requestParameters: PropertymappingsSourceSamlDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
4014
|
+
await this.propertymappingsSourceSamlDestroyRaw(requestParameters, initOverrides);
|
4015
|
+
}
|
4016
|
+
|
4017
|
+
/**
|
4018
|
+
* SAMLSourcePropertyMapping Viewset
|
4019
|
+
*/
|
4020
|
+
async propertymappingsSourceSamlListRaw(requestParameters: PropertymappingsSourceSamlListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSAMLSourcePropertyMappingList>> {
|
4021
|
+
const queryParameters: any = {};
|
4022
|
+
|
4023
|
+
if (requestParameters.managed) {
|
4024
|
+
queryParameters['managed'] = requestParameters.managed;
|
4025
|
+
}
|
4026
|
+
|
4027
|
+
if (requestParameters.managedIsnull !== undefined) {
|
4028
|
+
queryParameters['managed__isnull'] = requestParameters.managedIsnull;
|
4029
|
+
}
|
4030
|
+
|
4031
|
+
if (requestParameters.name !== undefined) {
|
4032
|
+
queryParameters['name'] = requestParameters.name;
|
4033
|
+
}
|
4034
|
+
|
4035
|
+
if (requestParameters.ordering !== undefined) {
|
4036
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
4037
|
+
}
|
4038
|
+
|
4039
|
+
if (requestParameters.page !== undefined) {
|
4040
|
+
queryParameters['page'] = requestParameters.page;
|
4041
|
+
}
|
4042
|
+
|
4043
|
+
if (requestParameters.pageSize !== undefined) {
|
4044
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
4045
|
+
}
|
4046
|
+
|
4047
|
+
if (requestParameters.search !== undefined) {
|
4048
|
+
queryParameters['search'] = requestParameters.search;
|
4049
|
+
}
|
4050
|
+
|
4051
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
4052
|
+
|
4053
|
+
if (this.configuration && this.configuration.accessToken) {
|
4054
|
+
const token = this.configuration.accessToken;
|
4055
|
+
const tokenString = await token("authentik", []);
|
4056
|
+
|
4057
|
+
if (tokenString) {
|
4058
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
4059
|
+
}
|
4060
|
+
}
|
4061
|
+
const response = await this.request({
|
4062
|
+
path: `/propertymappings/source/saml/`,
|
4063
|
+
method: 'GET',
|
4064
|
+
headers: headerParameters,
|
4065
|
+
query: queryParameters,
|
4066
|
+
}, initOverrides);
|
4067
|
+
|
4068
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSAMLSourcePropertyMappingListFromJSON(jsonValue));
|
4069
|
+
}
|
4070
|
+
|
4071
|
+
/**
|
4072
|
+
* SAMLSourcePropertyMapping Viewset
|
4073
|
+
*/
|
4074
|
+
async propertymappingsSourceSamlList(requestParameters: PropertymappingsSourceSamlListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSAMLSourcePropertyMappingList> {
|
4075
|
+
const response = await this.propertymappingsSourceSamlListRaw(requestParameters, initOverrides);
|
4076
|
+
return await response.value();
|
4077
|
+
}
|
4078
|
+
|
4079
|
+
/**
|
4080
|
+
* SAMLSourcePropertyMapping Viewset
|
4081
|
+
*/
|
4082
|
+
async propertymappingsSourceSamlPartialUpdateRaw(requestParameters: PropertymappingsSourceSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SAMLSourcePropertyMapping>> {
|
4083
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
4084
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlPartialUpdate.');
|
4085
|
+
}
|
4086
|
+
|
4087
|
+
const queryParameters: any = {};
|
4088
|
+
|
4089
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
4090
|
+
|
4091
|
+
headerParameters['Content-Type'] = 'application/json';
|
4092
|
+
|
4093
|
+
if (this.configuration && this.configuration.accessToken) {
|
4094
|
+
const token = this.configuration.accessToken;
|
4095
|
+
const tokenString = await token("authentik", []);
|
4096
|
+
|
4097
|
+
if (tokenString) {
|
4098
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
4099
|
+
}
|
4100
|
+
}
|
4101
|
+
const response = await this.request({
|
4102
|
+
path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
4103
|
+
method: 'PATCH',
|
4104
|
+
headers: headerParameters,
|
4105
|
+
query: queryParameters,
|
4106
|
+
body: PatchedSAMLSourcePropertyMappingRequestToJSON(requestParameters.patchedSAMLSourcePropertyMappingRequest),
|
4107
|
+
}, initOverrides);
|
4108
|
+
|
4109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SAMLSourcePropertyMappingFromJSON(jsonValue));
|
4110
|
+
}
|
4111
|
+
|
4112
|
+
/**
|
4113
|
+
* SAMLSourcePropertyMapping Viewset
|
4114
|
+
*/
|
4115
|
+
async propertymappingsSourceSamlPartialUpdate(requestParameters: PropertymappingsSourceSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SAMLSourcePropertyMapping> {
|
4116
|
+
const response = await this.propertymappingsSourceSamlPartialUpdateRaw(requestParameters, initOverrides);
|
4117
|
+
return await response.value();
|
4118
|
+
}
|
4119
|
+
|
4120
|
+
/**
|
4121
|
+
* SAMLSourcePropertyMapping Viewset
|
4122
|
+
*/
|
4123
|
+
async propertymappingsSourceSamlRetrieveRaw(requestParameters: PropertymappingsSourceSamlRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SAMLSourcePropertyMapping>> {
|
4124
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
4125
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlRetrieve.');
|
4126
|
+
}
|
4127
|
+
|
4128
|
+
const queryParameters: any = {};
|
4129
|
+
|
4130
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
4131
|
+
|
4132
|
+
if (this.configuration && this.configuration.accessToken) {
|
4133
|
+
const token = this.configuration.accessToken;
|
4134
|
+
const tokenString = await token("authentik", []);
|
4135
|
+
|
4136
|
+
if (tokenString) {
|
4137
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
4138
|
+
}
|
4139
|
+
}
|
4140
|
+
const response = await this.request({
|
4141
|
+
path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
4142
|
+
method: 'GET',
|
4143
|
+
headers: headerParameters,
|
4144
|
+
query: queryParameters,
|
4145
|
+
}, initOverrides);
|
4146
|
+
|
4147
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SAMLSourcePropertyMappingFromJSON(jsonValue));
|
4148
|
+
}
|
4149
|
+
|
4150
|
+
/**
|
4151
|
+
* SAMLSourcePropertyMapping Viewset
|
4152
|
+
*/
|
4153
|
+
async propertymappingsSourceSamlRetrieve(requestParameters: PropertymappingsSourceSamlRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SAMLSourcePropertyMapping> {
|
4154
|
+
const response = await this.propertymappingsSourceSamlRetrieveRaw(requestParameters, initOverrides);
|
4155
|
+
return await response.value();
|
4156
|
+
}
|
4157
|
+
|
4158
|
+
/**
|
4159
|
+
* SAMLSourcePropertyMapping Viewset
|
4160
|
+
*/
|
4161
|
+
async propertymappingsSourceSamlUpdateRaw(requestParameters: PropertymappingsSourceSamlUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SAMLSourcePropertyMapping>> {
|
4162
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
4163
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlUpdate.');
|
4164
|
+
}
|
4165
|
+
|
4166
|
+
if (requestParameters.sAMLSourcePropertyMappingRequest === null || requestParameters.sAMLSourcePropertyMappingRequest === undefined) {
|
4167
|
+
throw new runtime.RequiredError('sAMLSourcePropertyMappingRequest','Required parameter requestParameters.sAMLSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceSamlUpdate.');
|
4168
|
+
}
|
4169
|
+
|
4170
|
+
const queryParameters: any = {};
|
4171
|
+
|
4172
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
4173
|
+
|
4174
|
+
headerParameters['Content-Type'] = 'application/json';
|
4175
|
+
|
4176
|
+
if (this.configuration && this.configuration.accessToken) {
|
4177
|
+
const token = this.configuration.accessToken;
|
4178
|
+
const tokenString = await token("authentik", []);
|
4179
|
+
|
4180
|
+
if (tokenString) {
|
4181
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
4182
|
+
}
|
4183
|
+
}
|
4184
|
+
const response = await this.request({
|
4185
|
+
path: `/propertymappings/source/saml/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
4186
|
+
method: 'PUT',
|
4187
|
+
headers: headerParameters,
|
4188
|
+
query: queryParameters,
|
4189
|
+
body: SAMLSourcePropertyMappingRequestToJSON(requestParameters.sAMLSourcePropertyMappingRequest),
|
4190
|
+
}, initOverrides);
|
4191
|
+
|
4192
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SAMLSourcePropertyMappingFromJSON(jsonValue));
|
4193
|
+
}
|
4194
|
+
|
4195
|
+
/**
|
4196
|
+
* SAMLSourcePropertyMapping Viewset
|
4197
|
+
*/
|
4198
|
+
async propertymappingsSourceSamlUpdate(requestParameters: PropertymappingsSourceSamlUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SAMLSourcePropertyMapping> {
|
4199
|
+
const response = await this.propertymappingsSourceSamlUpdateRaw(requestParameters, initOverrides);
|
4200
|
+
return await response.value();
|
4201
|
+
}
|
4202
|
+
|
4203
|
+
/**
|
4204
|
+
* Get a list of all objects that use this object
|
4205
|
+
*/
|
4206
|
+
async propertymappingsSourceSamlUsedByListRaw(requestParameters: PropertymappingsSourceSamlUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
4207
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
4208
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceSamlUsedByList.');
|
4209
|
+
}
|
4210
|
+
|
4211
|
+
const queryParameters: any = {};
|
4212
|
+
|
4213
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
4214
|
+
|
4215
|
+
if (this.configuration && this.configuration.accessToken) {
|
4216
|
+
const token = this.configuration.accessToken;
|
4217
|
+
const tokenString = await token("authentik", []);
|
4218
|
+
|
4219
|
+
if (tokenString) {
|
4220
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
4221
|
+
}
|
4222
|
+
}
|
4223
|
+
const response = await this.request({
|
4224
|
+
path: `/propertymappings/source/saml/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
4225
|
+
method: 'GET',
|
4226
|
+
headers: headerParameters,
|
4227
|
+
query: queryParameters,
|
4228
|
+
}, initOverrides);
|
4229
|
+
|
4230
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
4231
|
+
}
|
4232
|
+
|
4233
|
+
/**
|
4234
|
+
* Get a list of all objects that use this object
|
4235
|
+
*/
|
4236
|
+
async propertymappingsSourceSamlUsedByList(requestParameters: PropertymappingsSourceSamlUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
4237
|
+
const response = await this.propertymappingsSourceSamlUsedByListRaw(requestParameters, initOverrides);
|
4238
|
+
return await response.value();
|
4239
|
+
}
|
4240
|
+
|
3541
4241
|
/**
|
3542
4242
|
* SCIMSourcePropertyMapping Viewset
|
3543
4243
|
*/
|