@goauthentik/api 2024.6.1-1722014086 → 2024.6.1-1722285189
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +4 -0
- package/dist/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/apis/PropertymappingsApi.js +274 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/esm/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/esm/apis/PropertymappingsApi.js +275 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedSCIMSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedSCIMSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedSCIMSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedSCIMSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedSCIMSourceRequest.d.ts +8 -3
- package/dist/esm/models/PatchedSCIMSourceRequest.js +4 -3
- package/dist/esm/models/SCIMSource.d.ts +12 -7
- package/dist/esm/models/SCIMSource.js +4 -3
- package/dist/esm/models/SCIMSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/SCIMSourcePropertyMapping.js +59 -0
- package/dist/esm/models/SCIMSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/SCIMSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/SCIMSourceRequest.d.ts +8 -3
- package/dist/esm/models/SCIMSourceRequest.js +4 -3
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedSCIMSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedSCIMSourcePropertyMappingList.js +55 -0
- package/dist/models/PatchedSCIMSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedSCIMSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedSCIMSourceRequest.d.ts +8 -3
- package/dist/models/PatchedSCIMSourceRequest.js +4 -3
- package/dist/models/SCIMSource.d.ts +12 -7
- package/dist/models/SCIMSource.js +4 -3
- package/dist/models/SCIMSourcePropertyMapping.d.ts +73 -0
- package/dist/models/SCIMSourcePropertyMapping.js +66 -0
- package/dist/models/SCIMSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/SCIMSourcePropertyMappingRequest.js +56 -0
- package/dist/models/SCIMSourceRequest.d.ts +8 -3
- package/dist/models/SCIMSourceRequest.js +4 -3
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +355 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedSCIMSourcePropertyMappingList.ts +88 -0
- package/src/models/PatchedSCIMSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedSCIMSourceRequest.ts +12 -11
- package/src/models/SCIMSource.ts +16 -14
- package/src/models/SCIMSourcePropertyMapping.ts +123 -0
- package/src/models/SCIMSourcePropertyMappingRequest.ts +83 -0
- package/src/models/SCIMSourceRequest.ts +12 -11
- package/src/models/index.ts +4 -0
@@ -33,6 +33,7 @@ import type {
|
|
33
33
|
PaginatedRadiusProviderPropertyMappingList,
|
34
34
|
PaginatedSAMLPropertyMappingList,
|
35
35
|
PaginatedSCIMMappingList,
|
36
|
+
PaginatedSCIMSourcePropertyMappingList,
|
36
37
|
PaginatedScopeMappingList,
|
37
38
|
PatchedGoogleWorkspaceProviderMappingRequest,
|
38
39
|
PatchedLDAPSourcePropertyMappingRequest,
|
@@ -42,6 +43,7 @@ import type {
|
|
42
43
|
PatchedRadiusProviderPropertyMappingRequest,
|
43
44
|
PatchedSAMLPropertyMappingRequest,
|
44
45
|
PatchedSCIMMappingRequest,
|
46
|
+
PatchedSCIMSourcePropertyMappingRequest,
|
45
47
|
PatchedScopeMappingRequest,
|
46
48
|
PropertyMapping,
|
47
49
|
PropertyMappingTestRequest,
|
@@ -54,6 +56,8 @@ import type {
|
|
54
56
|
SAMLPropertyMappingRequest,
|
55
57
|
SCIMMapping,
|
56
58
|
SCIMMappingRequest,
|
59
|
+
SCIMSourcePropertyMapping,
|
60
|
+
SCIMSourcePropertyMappingRequest,
|
57
61
|
ScopeMapping,
|
58
62
|
ScopeMappingRequest,
|
59
63
|
TypeCreate,
|
@@ -97,6 +101,8 @@ import {
|
|
97
101
|
PaginatedSAMLPropertyMappingListToJSON,
|
98
102
|
PaginatedSCIMMappingListFromJSON,
|
99
103
|
PaginatedSCIMMappingListToJSON,
|
104
|
+
PaginatedSCIMSourcePropertyMappingListFromJSON,
|
105
|
+
PaginatedSCIMSourcePropertyMappingListToJSON,
|
100
106
|
PaginatedScopeMappingListFromJSON,
|
101
107
|
PaginatedScopeMappingListToJSON,
|
102
108
|
PatchedGoogleWorkspaceProviderMappingRequestFromJSON,
|
@@ -115,6 +121,8 @@ import {
|
|
115
121
|
PatchedSAMLPropertyMappingRequestToJSON,
|
116
122
|
PatchedSCIMMappingRequestFromJSON,
|
117
123
|
PatchedSCIMMappingRequestToJSON,
|
124
|
+
PatchedSCIMSourcePropertyMappingRequestFromJSON,
|
125
|
+
PatchedSCIMSourcePropertyMappingRequestToJSON,
|
118
126
|
PatchedScopeMappingRequestFromJSON,
|
119
127
|
PatchedScopeMappingRequestToJSON,
|
120
128
|
PropertyMappingFromJSON,
|
@@ -139,6 +147,10 @@ import {
|
|
139
147
|
SCIMMappingToJSON,
|
140
148
|
SCIMMappingRequestFromJSON,
|
141
149
|
SCIMMappingRequestToJSON,
|
150
|
+
SCIMSourcePropertyMappingFromJSON,
|
151
|
+
SCIMSourcePropertyMappingToJSON,
|
152
|
+
SCIMSourcePropertyMappingRequestFromJSON,
|
153
|
+
SCIMSourcePropertyMappingRequestToJSON,
|
142
154
|
ScopeMappingFromJSON,
|
143
155
|
ScopeMappingToJSON,
|
144
156
|
ScopeMappingRequestFromJSON,
|
@@ -503,6 +515,43 @@ export interface PropertymappingsSourceLdapUsedByListRequest {
|
|
503
515
|
pmUuid: string;
|
504
516
|
}
|
505
517
|
|
518
|
+
export interface PropertymappingsSourceScimCreateRequest {
|
519
|
+
sCIMSourcePropertyMappingRequest: SCIMSourcePropertyMappingRequest;
|
520
|
+
}
|
521
|
+
|
522
|
+
export interface PropertymappingsSourceScimDestroyRequest {
|
523
|
+
pmUuid: string;
|
524
|
+
}
|
525
|
+
|
526
|
+
export interface PropertymappingsSourceScimListRequest {
|
527
|
+
expression?: string;
|
528
|
+
managed?: Array<string>;
|
529
|
+
name?: string;
|
530
|
+
ordering?: string;
|
531
|
+
page?: number;
|
532
|
+
pageSize?: number;
|
533
|
+
pmUuid?: string;
|
534
|
+
search?: string;
|
535
|
+
}
|
536
|
+
|
537
|
+
export interface PropertymappingsSourceScimPartialUpdateRequest {
|
538
|
+
pmUuid: string;
|
539
|
+
patchedSCIMSourcePropertyMappingRequest?: PatchedSCIMSourcePropertyMappingRequest;
|
540
|
+
}
|
541
|
+
|
542
|
+
export interface PropertymappingsSourceScimRetrieveRequest {
|
543
|
+
pmUuid: string;
|
544
|
+
}
|
545
|
+
|
546
|
+
export interface PropertymappingsSourceScimUpdateRequest {
|
547
|
+
pmUuid: string;
|
548
|
+
sCIMSourcePropertyMappingRequest: SCIMSourcePropertyMappingRequest;
|
549
|
+
}
|
550
|
+
|
551
|
+
export interface PropertymappingsSourceScimUsedByListRequest {
|
552
|
+
pmUuid: string;
|
553
|
+
}
|
554
|
+
|
506
555
|
/**
|
507
556
|
*
|
508
557
|
*/
|
@@ -3480,4 +3529,310 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
3480
3529
|
return await response.value();
|
3481
3530
|
}
|
3482
3531
|
|
3532
|
+
/**
|
3533
|
+
* SCIMSourcePropertyMapping Viewset
|
3534
|
+
*/
|
3535
|
+
async propertymappingsSourceScimCreateRaw(requestParameters: PropertymappingsSourceScimCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SCIMSourcePropertyMapping>> {
|
3536
|
+
if (requestParameters.sCIMSourcePropertyMappingRequest === null || requestParameters.sCIMSourcePropertyMappingRequest === undefined) {
|
3537
|
+
throw new runtime.RequiredError('sCIMSourcePropertyMappingRequest','Required parameter requestParameters.sCIMSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceScimCreate.');
|
3538
|
+
}
|
3539
|
+
|
3540
|
+
const queryParameters: any = {};
|
3541
|
+
|
3542
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3543
|
+
|
3544
|
+
headerParameters['Content-Type'] = 'application/json';
|
3545
|
+
|
3546
|
+
if (this.configuration && this.configuration.accessToken) {
|
3547
|
+
const token = this.configuration.accessToken;
|
3548
|
+
const tokenString = await token("authentik", []);
|
3549
|
+
|
3550
|
+
if (tokenString) {
|
3551
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3552
|
+
}
|
3553
|
+
}
|
3554
|
+
const response = await this.request({
|
3555
|
+
path: `/propertymappings/source/scim/`,
|
3556
|
+
method: 'POST',
|
3557
|
+
headers: headerParameters,
|
3558
|
+
query: queryParameters,
|
3559
|
+
body: SCIMSourcePropertyMappingRequestToJSON(requestParameters.sCIMSourcePropertyMappingRequest),
|
3560
|
+
}, initOverrides);
|
3561
|
+
|
3562
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SCIMSourcePropertyMappingFromJSON(jsonValue));
|
3563
|
+
}
|
3564
|
+
|
3565
|
+
/**
|
3566
|
+
* SCIMSourcePropertyMapping Viewset
|
3567
|
+
*/
|
3568
|
+
async propertymappingsSourceScimCreate(requestParameters: PropertymappingsSourceScimCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SCIMSourcePropertyMapping> {
|
3569
|
+
const response = await this.propertymappingsSourceScimCreateRaw(requestParameters, initOverrides);
|
3570
|
+
return await response.value();
|
3571
|
+
}
|
3572
|
+
|
3573
|
+
/**
|
3574
|
+
* SCIMSourcePropertyMapping Viewset
|
3575
|
+
*/
|
3576
|
+
async propertymappingsSourceScimDestroyRaw(requestParameters: PropertymappingsSourceScimDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
3577
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3578
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceScimDestroy.');
|
3579
|
+
}
|
3580
|
+
|
3581
|
+
const queryParameters: any = {};
|
3582
|
+
|
3583
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3584
|
+
|
3585
|
+
if (this.configuration && this.configuration.accessToken) {
|
3586
|
+
const token = this.configuration.accessToken;
|
3587
|
+
const tokenString = await token("authentik", []);
|
3588
|
+
|
3589
|
+
if (tokenString) {
|
3590
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3591
|
+
}
|
3592
|
+
}
|
3593
|
+
const response = await this.request({
|
3594
|
+
path: `/propertymappings/source/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3595
|
+
method: 'DELETE',
|
3596
|
+
headers: headerParameters,
|
3597
|
+
query: queryParameters,
|
3598
|
+
}, initOverrides);
|
3599
|
+
|
3600
|
+
return new runtime.VoidApiResponse(response);
|
3601
|
+
}
|
3602
|
+
|
3603
|
+
/**
|
3604
|
+
* SCIMSourcePropertyMapping Viewset
|
3605
|
+
*/
|
3606
|
+
async propertymappingsSourceScimDestroy(requestParameters: PropertymappingsSourceScimDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
3607
|
+
await this.propertymappingsSourceScimDestroyRaw(requestParameters, initOverrides);
|
3608
|
+
}
|
3609
|
+
|
3610
|
+
/**
|
3611
|
+
* SCIMSourcePropertyMapping Viewset
|
3612
|
+
*/
|
3613
|
+
async propertymappingsSourceScimListRaw(requestParameters: PropertymappingsSourceScimListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSCIMSourcePropertyMappingList>> {
|
3614
|
+
const queryParameters: any = {};
|
3615
|
+
|
3616
|
+
if (requestParameters.expression !== undefined) {
|
3617
|
+
queryParameters['expression'] = requestParameters.expression;
|
3618
|
+
}
|
3619
|
+
|
3620
|
+
if (requestParameters.managed) {
|
3621
|
+
queryParameters['managed'] = requestParameters.managed;
|
3622
|
+
}
|
3623
|
+
|
3624
|
+
if (requestParameters.name !== undefined) {
|
3625
|
+
queryParameters['name'] = requestParameters.name;
|
3626
|
+
}
|
3627
|
+
|
3628
|
+
if (requestParameters.ordering !== undefined) {
|
3629
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
3630
|
+
}
|
3631
|
+
|
3632
|
+
if (requestParameters.page !== undefined) {
|
3633
|
+
queryParameters['page'] = requestParameters.page;
|
3634
|
+
}
|
3635
|
+
|
3636
|
+
if (requestParameters.pageSize !== undefined) {
|
3637
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
3638
|
+
}
|
3639
|
+
|
3640
|
+
if (requestParameters.pmUuid !== undefined) {
|
3641
|
+
queryParameters['pm_uuid'] = requestParameters.pmUuid;
|
3642
|
+
}
|
3643
|
+
|
3644
|
+
if (requestParameters.search !== undefined) {
|
3645
|
+
queryParameters['search'] = requestParameters.search;
|
3646
|
+
}
|
3647
|
+
|
3648
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3649
|
+
|
3650
|
+
if (this.configuration && this.configuration.accessToken) {
|
3651
|
+
const token = this.configuration.accessToken;
|
3652
|
+
const tokenString = await token("authentik", []);
|
3653
|
+
|
3654
|
+
if (tokenString) {
|
3655
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3656
|
+
}
|
3657
|
+
}
|
3658
|
+
const response = await this.request({
|
3659
|
+
path: `/propertymappings/source/scim/`,
|
3660
|
+
method: 'GET',
|
3661
|
+
headers: headerParameters,
|
3662
|
+
query: queryParameters,
|
3663
|
+
}, initOverrides);
|
3664
|
+
|
3665
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSCIMSourcePropertyMappingListFromJSON(jsonValue));
|
3666
|
+
}
|
3667
|
+
|
3668
|
+
/**
|
3669
|
+
* SCIMSourcePropertyMapping Viewset
|
3670
|
+
*/
|
3671
|
+
async propertymappingsSourceScimList(requestParameters: PropertymappingsSourceScimListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSCIMSourcePropertyMappingList> {
|
3672
|
+
const response = await this.propertymappingsSourceScimListRaw(requestParameters, initOverrides);
|
3673
|
+
return await response.value();
|
3674
|
+
}
|
3675
|
+
|
3676
|
+
/**
|
3677
|
+
* SCIMSourcePropertyMapping Viewset
|
3678
|
+
*/
|
3679
|
+
async propertymappingsSourceScimPartialUpdateRaw(requestParameters: PropertymappingsSourceScimPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SCIMSourcePropertyMapping>> {
|
3680
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3681
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceScimPartialUpdate.');
|
3682
|
+
}
|
3683
|
+
|
3684
|
+
const queryParameters: any = {};
|
3685
|
+
|
3686
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3687
|
+
|
3688
|
+
headerParameters['Content-Type'] = 'application/json';
|
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/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3700
|
+
method: 'PATCH',
|
3701
|
+
headers: headerParameters,
|
3702
|
+
query: queryParameters,
|
3703
|
+
body: PatchedSCIMSourcePropertyMappingRequestToJSON(requestParameters.patchedSCIMSourcePropertyMappingRequest),
|
3704
|
+
}, initOverrides);
|
3705
|
+
|
3706
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SCIMSourcePropertyMappingFromJSON(jsonValue));
|
3707
|
+
}
|
3708
|
+
|
3709
|
+
/**
|
3710
|
+
* SCIMSourcePropertyMapping Viewset
|
3711
|
+
*/
|
3712
|
+
async propertymappingsSourceScimPartialUpdate(requestParameters: PropertymappingsSourceScimPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SCIMSourcePropertyMapping> {
|
3713
|
+
const response = await this.propertymappingsSourceScimPartialUpdateRaw(requestParameters, initOverrides);
|
3714
|
+
return await response.value();
|
3715
|
+
}
|
3716
|
+
|
3717
|
+
/**
|
3718
|
+
* SCIMSourcePropertyMapping Viewset
|
3719
|
+
*/
|
3720
|
+
async propertymappingsSourceScimRetrieveRaw(requestParameters: PropertymappingsSourceScimRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SCIMSourcePropertyMapping>> {
|
3721
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3722
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceScimRetrieve.');
|
3723
|
+
}
|
3724
|
+
|
3725
|
+
const queryParameters: any = {};
|
3726
|
+
|
3727
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3728
|
+
|
3729
|
+
if (this.configuration && this.configuration.accessToken) {
|
3730
|
+
const token = this.configuration.accessToken;
|
3731
|
+
const tokenString = await token("authentik", []);
|
3732
|
+
|
3733
|
+
if (tokenString) {
|
3734
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3735
|
+
}
|
3736
|
+
}
|
3737
|
+
const response = await this.request({
|
3738
|
+
path: `/propertymappings/source/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3739
|
+
method: 'GET',
|
3740
|
+
headers: headerParameters,
|
3741
|
+
query: queryParameters,
|
3742
|
+
}, initOverrides);
|
3743
|
+
|
3744
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SCIMSourcePropertyMappingFromJSON(jsonValue));
|
3745
|
+
}
|
3746
|
+
|
3747
|
+
/**
|
3748
|
+
* SCIMSourcePropertyMapping Viewset
|
3749
|
+
*/
|
3750
|
+
async propertymappingsSourceScimRetrieve(requestParameters: PropertymappingsSourceScimRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SCIMSourcePropertyMapping> {
|
3751
|
+
const response = await this.propertymappingsSourceScimRetrieveRaw(requestParameters, initOverrides);
|
3752
|
+
return await response.value();
|
3753
|
+
}
|
3754
|
+
|
3755
|
+
/**
|
3756
|
+
* SCIMSourcePropertyMapping Viewset
|
3757
|
+
*/
|
3758
|
+
async propertymappingsSourceScimUpdateRaw(requestParameters: PropertymappingsSourceScimUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SCIMSourcePropertyMapping>> {
|
3759
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3760
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceScimUpdate.');
|
3761
|
+
}
|
3762
|
+
|
3763
|
+
if (requestParameters.sCIMSourcePropertyMappingRequest === null || requestParameters.sCIMSourcePropertyMappingRequest === undefined) {
|
3764
|
+
throw new runtime.RequiredError('sCIMSourcePropertyMappingRequest','Required parameter requestParameters.sCIMSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourceScimUpdate.');
|
3765
|
+
}
|
3766
|
+
|
3767
|
+
const queryParameters: any = {};
|
3768
|
+
|
3769
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3770
|
+
|
3771
|
+
headerParameters['Content-Type'] = 'application/json';
|
3772
|
+
|
3773
|
+
if (this.configuration && this.configuration.accessToken) {
|
3774
|
+
const token = this.configuration.accessToken;
|
3775
|
+
const tokenString = await token("authentik", []);
|
3776
|
+
|
3777
|
+
if (tokenString) {
|
3778
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3779
|
+
}
|
3780
|
+
}
|
3781
|
+
const response = await this.request({
|
3782
|
+
path: `/propertymappings/source/scim/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3783
|
+
method: 'PUT',
|
3784
|
+
headers: headerParameters,
|
3785
|
+
query: queryParameters,
|
3786
|
+
body: SCIMSourcePropertyMappingRequestToJSON(requestParameters.sCIMSourcePropertyMappingRequest),
|
3787
|
+
}, initOverrides);
|
3788
|
+
|
3789
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SCIMSourcePropertyMappingFromJSON(jsonValue));
|
3790
|
+
}
|
3791
|
+
|
3792
|
+
/**
|
3793
|
+
* SCIMSourcePropertyMapping Viewset
|
3794
|
+
*/
|
3795
|
+
async propertymappingsSourceScimUpdate(requestParameters: PropertymappingsSourceScimUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SCIMSourcePropertyMapping> {
|
3796
|
+
const response = await this.propertymappingsSourceScimUpdateRaw(requestParameters, initOverrides);
|
3797
|
+
return await response.value();
|
3798
|
+
}
|
3799
|
+
|
3800
|
+
/**
|
3801
|
+
* Get a list of all objects that use this object
|
3802
|
+
*/
|
3803
|
+
async propertymappingsSourceScimUsedByListRaw(requestParameters: PropertymappingsSourceScimUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
3804
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
3805
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourceScimUsedByList.');
|
3806
|
+
}
|
3807
|
+
|
3808
|
+
const queryParameters: any = {};
|
3809
|
+
|
3810
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3811
|
+
|
3812
|
+
if (this.configuration && this.configuration.accessToken) {
|
3813
|
+
const token = this.configuration.accessToken;
|
3814
|
+
const tokenString = await token("authentik", []);
|
3815
|
+
|
3816
|
+
if (tokenString) {
|
3817
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
3818
|
+
}
|
3819
|
+
}
|
3820
|
+
const response = await this.request({
|
3821
|
+
path: `/propertymappings/source/scim/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
3822
|
+
method: 'GET',
|
3823
|
+
headers: headerParameters,
|
3824
|
+
query: queryParameters,
|
3825
|
+
}, initOverrides);
|
3826
|
+
|
3827
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
3828
|
+
}
|
3829
|
+
|
3830
|
+
/**
|
3831
|
+
* Get a list of all objects that use this object
|
3832
|
+
*/
|
3833
|
+
async propertymappingsSourceScimUsedByList(requestParameters: PropertymappingsSourceScimUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
3834
|
+
const response = await this.propertymappingsSourceScimUsedByListRaw(requestParameters, initOverrides);
|
3835
|
+
return await response.value();
|
3836
|
+
}
|
3837
|
+
|
3483
3838
|
}
|
package/src/apis/RbacApi.ts
CHANGED
@@ -1041,6 +1041,7 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
1041
1041
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
1042
1042
|
SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
|
1043
1043
|
SourcesScimScimsource: 'authentik_sources_scim.scimsource',
|
1044
|
+
SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
1044
1045
|
StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
|
1045
1046
|
StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
|
1046
1047
|
StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
|
@@ -1129,6 +1130,7 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
1129
1130
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
1130
1131
|
SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
|
1131
1132
|
SourcesScimScimsource: 'authentik_sources_scim.scimsource',
|
1133
|
+
SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
1132
1134
|
StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
|
1133
1135
|
StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
|
1134
1136
|
StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
|
package/src/models/ModelEnum.ts
CHANGED
@@ -52,6 +52,7 @@ export const ModelEnum = {
|
|
52
52
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
53
53
|
SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
|
54
54
|
SourcesScimScimsource: 'authentik_sources_scim.scimsource',
|
55
|
+
SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
55
56
|
StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
|
56
57
|
StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
|
57
58
|
StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.1
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { Pagination } from './Pagination';
|
17
|
+
import {
|
18
|
+
PaginationFromJSON,
|
19
|
+
PaginationFromJSONTyped,
|
20
|
+
PaginationToJSON,
|
21
|
+
} from './Pagination';
|
22
|
+
import type { SCIMSourcePropertyMapping } from './SCIMSourcePropertyMapping';
|
23
|
+
import {
|
24
|
+
SCIMSourcePropertyMappingFromJSON,
|
25
|
+
SCIMSourcePropertyMappingFromJSONTyped,
|
26
|
+
SCIMSourcePropertyMappingToJSON,
|
27
|
+
} from './SCIMSourcePropertyMapping';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedSCIMSourcePropertyMappingList
|
33
|
+
*/
|
34
|
+
export interface PaginatedSCIMSourcePropertyMappingList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedSCIMSourcePropertyMappingList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<SCIMSourcePropertyMapping>}
|
44
|
+
* @memberof PaginatedSCIMSourcePropertyMappingList
|
45
|
+
*/
|
46
|
+
results: Array<SCIMSourcePropertyMapping>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedSCIMSourcePropertyMappingList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedSCIMSourcePropertyMappingList(value: object): boolean {
|
53
|
+
let isInstance = true;
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
55
|
+
isInstance = isInstance && "results" in value;
|
56
|
+
|
57
|
+
return isInstance;
|
58
|
+
}
|
59
|
+
|
60
|
+
export function PaginatedSCIMSourcePropertyMappingListFromJSON(json: any): PaginatedSCIMSourcePropertyMappingList {
|
61
|
+
return PaginatedSCIMSourcePropertyMappingListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedSCIMSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSCIMSourcePropertyMappingList {
|
65
|
+
if ((json === undefined) || (json === null)) {
|
66
|
+
return json;
|
67
|
+
}
|
68
|
+
return {
|
69
|
+
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
71
|
+
'results': ((json['results'] as Array<any>).map(SCIMSourcePropertyMappingFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedSCIMSourcePropertyMappingListToJSON(value?: PaginatedSCIMSourcePropertyMappingList | null): any {
|
76
|
+
if (value === undefined) {
|
77
|
+
return undefined;
|
78
|
+
}
|
79
|
+
if (value === null) {
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
return {
|
83
|
+
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
85
|
+
'results': ((value.results as Array<any>).map(SCIMSourcePropertyMappingToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.1
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
/**
|
17
|
+
* SCIMSourcePropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface PatchedSCIMSourcePropertyMappingRequest
|
20
|
+
*/
|
21
|
+
export interface PatchedSCIMSourcePropertyMappingRequest {
|
22
|
+
/**
|
23
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
24
|
+
* @type {string}
|
25
|
+
* @memberof PatchedSCIMSourcePropertyMappingRequest
|
26
|
+
*/
|
27
|
+
managed?: string | null;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {string}
|
31
|
+
* @memberof PatchedSCIMSourcePropertyMappingRequest
|
32
|
+
*/
|
33
|
+
name?: string;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof PatchedSCIMSourcePropertyMappingRequest
|
38
|
+
*/
|
39
|
+
expression?: string;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Check if a given object implements the PatchedSCIMSourcePropertyMappingRequest interface.
|
44
|
+
*/
|
45
|
+
export function instanceOfPatchedSCIMSourcePropertyMappingRequest(value: object): boolean {
|
46
|
+
let isInstance = true;
|
47
|
+
|
48
|
+
return isInstance;
|
49
|
+
}
|
50
|
+
|
51
|
+
export function PatchedSCIMSourcePropertyMappingRequestFromJSON(json: any): PatchedSCIMSourcePropertyMappingRequest {
|
52
|
+
return PatchedSCIMSourcePropertyMappingRequestFromJSONTyped(json, false);
|
53
|
+
}
|
54
|
+
|
55
|
+
export function PatchedSCIMSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSCIMSourcePropertyMappingRequest {
|
56
|
+
if ((json === undefined) || (json === null)) {
|
57
|
+
return json;
|
58
|
+
}
|
59
|
+
return {
|
60
|
+
|
61
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
62
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
63
|
+
'expression': !exists(json, 'expression') ? undefined : json['expression'],
|
64
|
+
};
|
65
|
+
}
|
66
|
+
|
67
|
+
export function PatchedSCIMSourcePropertyMappingRequestToJSON(value?: PatchedSCIMSourcePropertyMappingRequest | null): any {
|
68
|
+
if (value === undefined) {
|
69
|
+
return undefined;
|
70
|
+
}
|
71
|
+
if (value === null) {
|
72
|
+
return null;
|
73
|
+
}
|
74
|
+
return {
|
75
|
+
|
76
|
+
'managed': value.managed,
|
77
|
+
'name': value.name,
|
78
|
+
'expression': value.expression,
|
79
|
+
};
|
80
|
+
}
|
81
|
+
|
@@ -13,13 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
17
|
-
import {
|
18
|
-
UserMatchingModeEnumFromJSON,
|
19
|
-
UserMatchingModeEnumFromJSONTyped,
|
20
|
-
UserMatchingModeEnumToJSON,
|
21
|
-
} from './UserMatchingModeEnum';
|
22
|
-
|
23
16
|
/**
|
24
17
|
* SCIMSource Serializer
|
25
18
|
* @export
|
@@ -46,10 +39,16 @@ export interface PatchedSCIMSourceRequest {
|
|
46
39
|
enabled?: boolean;
|
47
40
|
/**
|
48
41
|
*
|
49
|
-
* @type {
|
42
|
+
* @type {Array<string>}
|
43
|
+
* @memberof PatchedSCIMSourceRequest
|
44
|
+
*/
|
45
|
+
userPropertyMappings?: Array<string>;
|
46
|
+
/**
|
47
|
+
*
|
48
|
+
* @type {Array<string>}
|
50
49
|
* @memberof PatchedSCIMSourceRequest
|
51
50
|
*/
|
52
|
-
|
51
|
+
groupPropertyMappings?: Array<string>;
|
53
52
|
/**
|
54
53
|
*
|
55
54
|
* @type {string}
|
@@ -80,7 +79,8 @@ export function PatchedSCIMSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
80
79
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
81
80
|
'slug': !exists(json, 'slug') ? undefined : json['slug'],
|
82
81
|
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
83
|
-
'
|
82
|
+
'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
|
83
|
+
'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
|
84
84
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
85
85
|
};
|
86
86
|
}
|
@@ -97,7 +97,8 @@ export function PatchedSCIMSourceRequestToJSON(value?: PatchedSCIMSourceRequest
|
|
97
97
|
'name': value.name,
|
98
98
|
'slug': value.slug,
|
99
99
|
'enabled': value.enabled,
|
100
|
-
'
|
100
|
+
'user_property_mappings': value.userPropertyMappings,
|
101
|
+
'group_property_mappings': value.groupPropertyMappings,
|
101
102
|
'user_path_template': value.userPathTemplate,
|
102
103
|
};
|
103
104
|
}
|