@goauthentik/api 2024.6.3-1723053526 → 2024.6.3-1723109801
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 +10 -4
- package/dist/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/apis/PropertymappingsApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +6 -2
- package/dist/apis/RbacApi.js +6 -2
- package/dist/apis/SourcesApi.d.ts +104 -14
- package/dist/apis/SourcesApi.js +281 -13
- package/dist/esm/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/esm/apis/PropertymappingsApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +6 -2
- package/dist/esm/apis/RbacApi.js +6 -2
- package/dist/esm/apis/SourcesApi.d.ts +104 -14
- package/dist/esm/apis/SourcesApi.js +281 -13
- package/dist/esm/models/GroupPlexSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupPlexSourceConnection.js +50 -0
- package/dist/esm/models/ModelEnum.d.ts +3 -1
- package/dist/esm/models/ModelEnum.js +3 -1
- package/dist/esm/models/PaginatedGroupPlexSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupPlexSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedPlexSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedPlexSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedUserPlexSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/{PaginatedPlexSourceConnectionList.js → PaginatedUserPlexSourceConnectionList.js} +9 -9
- package/dist/esm/models/PatchedPlexSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedPlexSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedPlexSourceRequest.d.ts +7 -0
- package/dist/esm/models/PatchedPlexSourceRequest.js +3 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/{PatchedPlexSourceConnectionRequest.js → PatchedUserPlexSourceConnectionRequest.js} +6 -6
- package/dist/esm/models/PlexSource.d.ts +7 -0
- package/dist/esm/models/PlexSource.js +3 -0
- package/dist/esm/models/PlexSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/PlexSourcePropertyMapping.js +59 -0
- package/dist/esm/models/PlexSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PlexSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/PlexSourceRequest.d.ts +7 -0
- package/dist/esm/models/PlexSourceRequest.js +3 -0
- package/dist/esm/models/UserPlexSourceConnection.d.ts +56 -0
- package/dist/esm/models/{PlexSourceConnection.js → UserPlexSourceConnection.js} +6 -6
- package/dist/esm/models/UserPlexSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/{PlexSourceConnectionRequest.js → UserPlexSourceConnectionRequest.js} +6 -6
- package/dist/esm/models/index.d.ts +10 -4
- package/dist/esm/models/index.js +10 -4
- package/dist/models/GroupPlexSourceConnection.d.ts +56 -0
- package/dist/models/GroupPlexSourceConnection.js +57 -0
- package/dist/models/ModelEnum.d.ts +3 -1
- package/dist/models/ModelEnum.js +3 -1
- package/dist/models/PaginatedGroupPlexSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupPlexSourceConnectionList.js +55 -0
- package/dist/models/PaginatedPlexSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedPlexSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedUserPlexSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedUserPlexSourceConnectionList.js +55 -0
- package/dist/models/PatchedPlexSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedPlexSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedPlexSourceRequest.d.ts +7 -0
- package/dist/models/PatchedPlexSourceRequest.js +3 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.d.ts +37 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.js +52 -0
- package/dist/models/PlexSource.d.ts +7 -0
- package/dist/models/PlexSource.js +3 -0
- package/dist/models/PlexSourcePropertyMapping.d.ts +73 -0
- package/dist/models/PlexSourcePropertyMapping.js +66 -0
- package/dist/models/PlexSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PlexSourcePropertyMappingRequest.js +56 -0
- package/dist/models/PlexSourceRequest.d.ts +7 -0
- package/dist/models/PlexSourceRequest.js +3 -0
- package/dist/models/UserPlexSourceConnection.d.ts +56 -0
- package/dist/models/{PlexSourceConnection.js → UserPlexSourceConnection.js} +11 -11
- package/dist/models/UserPlexSourceConnectionRequest.d.ts +37 -0
- package/dist/models/UserPlexSourceConnectionRequest.js +53 -0
- package/dist/models/index.d.ts +10 -4
- package/dist/models/index.js +10 -4
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +350 -0
- package/src/apis/RbacApi.ts +6 -2
- package/src/apis/SourcesApi.ts +368 -37
- package/src/models/GroupPlexSourceConnection.ts +104 -0
- package/src/models/ModelEnum.ts +3 -1
- package/src/models/PaginatedGroupPlexSourceConnectionList.ts +88 -0
- package/src/models/{PaginatedPlexSourceConnectionList.ts → PaginatedPlexSourcePropertyMappingList.ts} +19 -19
- package/src/models/PaginatedUserPlexSourceConnectionList.ts +88 -0
- package/src/models/PatchedPlexSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedPlexSourceRequest.ts +14 -0
- package/src/models/{PatchedPlexSourceConnectionRequest.ts → PatchedUserPlexSourceConnectionRequest.ts} +10 -10
- package/src/models/PlexSource.ts +14 -0
- package/src/models/PlexSourcePropertyMapping.ts +123 -0
- package/src/models/PlexSourcePropertyMappingRequest.ts +83 -0
- package/src/models/PlexSourceRequest.ts +14 -0
- package/src/models/{PlexSourceConnection.ts → UserPlexSourceConnection.ts} +13 -13
- package/src/models/{PlexSourceConnectionRequest.ts → UserPlexSourceConnectionRequest.ts} +10 -10
- package/src/models/index.ts +10 -4
- package/dist/esm/models/PaginatedPlexSourceConnectionList.d.ts +0 -39
- package/dist/esm/models/PatchedPlexSourceConnectionRequest.d.ts +0 -37
- package/dist/esm/models/PlexSourceConnection.d.ts +0 -56
- package/dist/esm/models/PlexSourceConnectionRequest.d.ts +0 -37
- package/dist/models/PaginatedPlexSourceConnectionList.d.ts +0 -39
- package/dist/models/PaginatedPlexSourceConnectionList.js +0 -55
- package/dist/models/PatchedPlexSourceConnectionRequest.d.ts +0 -37
- package/dist/models/PatchedPlexSourceConnectionRequest.js +0 -52
- package/dist/models/PlexSourceConnection.d.ts +0 -56
- package/dist/models/PlexSourceConnectionRequest.d.ts +0 -37
- package/dist/models/PlexSourceConnectionRequest.js +0 -53
|
@@ -31,6 +31,7 @@ import type {
|
|
|
31
31
|
PaginatedMicrosoftEntraProviderMappingList,
|
|
32
32
|
PaginatedNotificationWebhookMappingList,
|
|
33
33
|
PaginatedOAuthSourcePropertyMappingList,
|
|
34
|
+
PaginatedPlexSourcePropertyMappingList,
|
|
34
35
|
PaginatedPropertyMappingList,
|
|
35
36
|
PaginatedRACPropertyMappingList,
|
|
36
37
|
PaginatedRadiusProviderPropertyMappingList,
|
|
@@ -44,6 +45,7 @@ import type {
|
|
|
44
45
|
PatchedMicrosoftEntraProviderMappingRequest,
|
|
45
46
|
PatchedNotificationWebhookMappingRequest,
|
|
46
47
|
PatchedOAuthSourcePropertyMappingRequest,
|
|
48
|
+
PatchedPlexSourcePropertyMappingRequest,
|
|
47
49
|
PatchedRACPropertyMappingRequest,
|
|
48
50
|
PatchedRadiusProviderPropertyMappingRequest,
|
|
49
51
|
PatchedSAMLPropertyMappingRequest,
|
|
@@ -51,6 +53,8 @@ import type {
|
|
|
51
53
|
PatchedSCIMMappingRequest,
|
|
52
54
|
PatchedSCIMSourcePropertyMappingRequest,
|
|
53
55
|
PatchedScopeMappingRequest,
|
|
56
|
+
PlexSourcePropertyMapping,
|
|
57
|
+
PlexSourcePropertyMappingRequest,
|
|
54
58
|
PropertyMapping,
|
|
55
59
|
PropertyMappingTestRequest,
|
|
56
60
|
PropertyMappingTestResult,
|
|
@@ -105,6 +109,8 @@ import {
|
|
|
105
109
|
PaginatedNotificationWebhookMappingListToJSON,
|
|
106
110
|
PaginatedOAuthSourcePropertyMappingListFromJSON,
|
|
107
111
|
PaginatedOAuthSourcePropertyMappingListToJSON,
|
|
112
|
+
PaginatedPlexSourcePropertyMappingListFromJSON,
|
|
113
|
+
PaginatedPlexSourcePropertyMappingListToJSON,
|
|
108
114
|
PaginatedPropertyMappingListFromJSON,
|
|
109
115
|
PaginatedPropertyMappingListToJSON,
|
|
110
116
|
PaginatedRACPropertyMappingListFromJSON,
|
|
@@ -131,6 +137,8 @@ import {
|
|
|
131
137
|
PatchedNotificationWebhookMappingRequestToJSON,
|
|
132
138
|
PatchedOAuthSourcePropertyMappingRequestFromJSON,
|
|
133
139
|
PatchedOAuthSourcePropertyMappingRequestToJSON,
|
|
140
|
+
PatchedPlexSourcePropertyMappingRequestFromJSON,
|
|
141
|
+
PatchedPlexSourcePropertyMappingRequestToJSON,
|
|
134
142
|
PatchedRACPropertyMappingRequestFromJSON,
|
|
135
143
|
PatchedRACPropertyMappingRequestToJSON,
|
|
136
144
|
PatchedRadiusProviderPropertyMappingRequestFromJSON,
|
|
@@ -145,6 +153,10 @@ import {
|
|
|
145
153
|
PatchedSCIMSourcePropertyMappingRequestToJSON,
|
|
146
154
|
PatchedScopeMappingRequestFromJSON,
|
|
147
155
|
PatchedScopeMappingRequestToJSON,
|
|
156
|
+
PlexSourcePropertyMappingFromJSON,
|
|
157
|
+
PlexSourcePropertyMappingToJSON,
|
|
158
|
+
PlexSourcePropertyMappingRequestFromJSON,
|
|
159
|
+
PlexSourcePropertyMappingRequestToJSON,
|
|
148
160
|
PropertyMappingFromJSON,
|
|
149
161
|
PropertyMappingToJSON,
|
|
150
162
|
PropertyMappingTestRequestFromJSON,
|
|
@@ -577,6 +589,42 @@ export interface PropertymappingsSourceOauthUsedByListRequest {
|
|
|
577
589
|
pmUuid: string;
|
|
578
590
|
}
|
|
579
591
|
|
|
592
|
+
export interface PropertymappingsSourcePlexCreateRequest {
|
|
593
|
+
plexSourcePropertyMappingRequest: PlexSourcePropertyMappingRequest;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export interface PropertymappingsSourcePlexDestroyRequest {
|
|
597
|
+
pmUuid: string;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export interface PropertymappingsSourcePlexListRequest {
|
|
601
|
+
managed?: Array<string>;
|
|
602
|
+
managedIsnull?: boolean;
|
|
603
|
+
name?: string;
|
|
604
|
+
ordering?: string;
|
|
605
|
+
page?: number;
|
|
606
|
+
pageSize?: number;
|
|
607
|
+
search?: string;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export interface PropertymappingsSourcePlexPartialUpdateRequest {
|
|
611
|
+
pmUuid: string;
|
|
612
|
+
patchedPlexSourcePropertyMappingRequest?: PatchedPlexSourcePropertyMappingRequest;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export interface PropertymappingsSourcePlexRetrieveRequest {
|
|
616
|
+
pmUuid: string;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export interface PropertymappingsSourcePlexUpdateRequest {
|
|
620
|
+
pmUuid: string;
|
|
621
|
+
plexSourcePropertyMappingRequest: PlexSourcePropertyMappingRequest;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export interface PropertymappingsSourcePlexUsedByListRequest {
|
|
625
|
+
pmUuid: string;
|
|
626
|
+
}
|
|
627
|
+
|
|
580
628
|
export interface PropertymappingsSourceSamlCreateRequest {
|
|
581
629
|
sAMLSourcePropertyMappingRequest: SAMLSourcePropertyMappingRequest;
|
|
582
630
|
}
|
|
@@ -3936,6 +3984,308 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
3936
3984
|
return await response.value();
|
|
3937
3985
|
}
|
|
3938
3986
|
|
|
3987
|
+
/**
|
|
3988
|
+
* PlexSourcePropertyMapping Viewset
|
|
3989
|
+
*/
|
|
3990
|
+
async propertymappingsSourcePlexCreateRaw(requestParameters: PropertymappingsSourcePlexCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlexSourcePropertyMapping>> {
|
|
3991
|
+
if (requestParameters.plexSourcePropertyMappingRequest === null || requestParameters.plexSourcePropertyMappingRequest === undefined) {
|
|
3992
|
+
throw new runtime.RequiredError('plexSourcePropertyMappingRequest','Required parameter requestParameters.plexSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourcePlexCreate.');
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3995
|
+
const queryParameters: any = {};
|
|
3996
|
+
|
|
3997
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3998
|
+
|
|
3999
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4000
|
+
|
|
4001
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4002
|
+
const token = this.configuration.accessToken;
|
|
4003
|
+
const tokenString = await token("authentik", []);
|
|
4004
|
+
|
|
4005
|
+
if (tokenString) {
|
|
4006
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4007
|
+
}
|
|
4008
|
+
}
|
|
4009
|
+
const response = await this.request({
|
|
4010
|
+
path: `/propertymappings/source/plex/`,
|
|
4011
|
+
method: 'POST',
|
|
4012
|
+
headers: headerParameters,
|
|
4013
|
+
query: queryParameters,
|
|
4014
|
+
body: PlexSourcePropertyMappingRequestToJSON(requestParameters.plexSourcePropertyMappingRequest),
|
|
4015
|
+
}, initOverrides);
|
|
4016
|
+
|
|
4017
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlexSourcePropertyMappingFromJSON(jsonValue));
|
|
4018
|
+
}
|
|
4019
|
+
|
|
4020
|
+
/**
|
|
4021
|
+
* PlexSourcePropertyMapping Viewset
|
|
4022
|
+
*/
|
|
4023
|
+
async propertymappingsSourcePlexCreate(requestParameters: PropertymappingsSourcePlexCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlexSourcePropertyMapping> {
|
|
4024
|
+
const response = await this.propertymappingsSourcePlexCreateRaw(requestParameters, initOverrides);
|
|
4025
|
+
return await response.value();
|
|
4026
|
+
}
|
|
4027
|
+
|
|
4028
|
+
/**
|
|
4029
|
+
* PlexSourcePropertyMapping Viewset
|
|
4030
|
+
*/
|
|
4031
|
+
async propertymappingsSourcePlexDestroyRaw(requestParameters: PropertymappingsSourcePlexDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
4032
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
4033
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourcePlexDestroy.');
|
|
4034
|
+
}
|
|
4035
|
+
|
|
4036
|
+
const queryParameters: any = {};
|
|
4037
|
+
|
|
4038
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4039
|
+
|
|
4040
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4041
|
+
const token = this.configuration.accessToken;
|
|
4042
|
+
const tokenString = await token("authentik", []);
|
|
4043
|
+
|
|
4044
|
+
if (tokenString) {
|
|
4045
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4046
|
+
}
|
|
4047
|
+
}
|
|
4048
|
+
const response = await this.request({
|
|
4049
|
+
path: `/propertymappings/source/plex/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
4050
|
+
method: 'DELETE',
|
|
4051
|
+
headers: headerParameters,
|
|
4052
|
+
query: queryParameters,
|
|
4053
|
+
}, initOverrides);
|
|
4054
|
+
|
|
4055
|
+
return new runtime.VoidApiResponse(response);
|
|
4056
|
+
}
|
|
4057
|
+
|
|
4058
|
+
/**
|
|
4059
|
+
* PlexSourcePropertyMapping Viewset
|
|
4060
|
+
*/
|
|
4061
|
+
async propertymappingsSourcePlexDestroy(requestParameters: PropertymappingsSourcePlexDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
4062
|
+
await this.propertymappingsSourcePlexDestroyRaw(requestParameters, initOverrides);
|
|
4063
|
+
}
|
|
4064
|
+
|
|
4065
|
+
/**
|
|
4066
|
+
* PlexSourcePropertyMapping Viewset
|
|
4067
|
+
*/
|
|
4068
|
+
async propertymappingsSourcePlexListRaw(requestParameters: PropertymappingsSourcePlexListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedPlexSourcePropertyMappingList>> {
|
|
4069
|
+
const queryParameters: any = {};
|
|
4070
|
+
|
|
4071
|
+
if (requestParameters.managed) {
|
|
4072
|
+
queryParameters['managed'] = requestParameters.managed;
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4075
|
+
if (requestParameters.managedIsnull !== undefined) {
|
|
4076
|
+
queryParameters['managed__isnull'] = requestParameters.managedIsnull;
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
if (requestParameters.name !== undefined) {
|
|
4080
|
+
queryParameters['name'] = requestParameters.name;
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4083
|
+
if (requestParameters.ordering !== undefined) {
|
|
4084
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
4085
|
+
}
|
|
4086
|
+
|
|
4087
|
+
if (requestParameters.page !== undefined) {
|
|
4088
|
+
queryParameters['page'] = requestParameters.page;
|
|
4089
|
+
}
|
|
4090
|
+
|
|
4091
|
+
if (requestParameters.pageSize !== undefined) {
|
|
4092
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
4093
|
+
}
|
|
4094
|
+
|
|
4095
|
+
if (requestParameters.search !== undefined) {
|
|
4096
|
+
queryParameters['search'] = requestParameters.search;
|
|
4097
|
+
}
|
|
4098
|
+
|
|
4099
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4100
|
+
|
|
4101
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4102
|
+
const token = this.configuration.accessToken;
|
|
4103
|
+
const tokenString = await token("authentik", []);
|
|
4104
|
+
|
|
4105
|
+
if (tokenString) {
|
|
4106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4107
|
+
}
|
|
4108
|
+
}
|
|
4109
|
+
const response = await this.request({
|
|
4110
|
+
path: `/propertymappings/source/plex/`,
|
|
4111
|
+
method: 'GET',
|
|
4112
|
+
headers: headerParameters,
|
|
4113
|
+
query: queryParameters,
|
|
4114
|
+
}, initOverrides);
|
|
4115
|
+
|
|
4116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedPlexSourcePropertyMappingListFromJSON(jsonValue));
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
/**
|
|
4120
|
+
* PlexSourcePropertyMapping Viewset
|
|
4121
|
+
*/
|
|
4122
|
+
async propertymappingsSourcePlexList(requestParameters: PropertymappingsSourcePlexListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedPlexSourcePropertyMappingList> {
|
|
4123
|
+
const response = await this.propertymappingsSourcePlexListRaw(requestParameters, initOverrides);
|
|
4124
|
+
return await response.value();
|
|
4125
|
+
}
|
|
4126
|
+
|
|
4127
|
+
/**
|
|
4128
|
+
* PlexSourcePropertyMapping Viewset
|
|
4129
|
+
*/
|
|
4130
|
+
async propertymappingsSourcePlexPartialUpdateRaw(requestParameters: PropertymappingsSourcePlexPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlexSourcePropertyMapping>> {
|
|
4131
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
4132
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourcePlexPartialUpdate.');
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
const queryParameters: any = {};
|
|
4136
|
+
|
|
4137
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4138
|
+
|
|
4139
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4140
|
+
|
|
4141
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4142
|
+
const token = this.configuration.accessToken;
|
|
4143
|
+
const tokenString = await token("authentik", []);
|
|
4144
|
+
|
|
4145
|
+
if (tokenString) {
|
|
4146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
4149
|
+
const response = await this.request({
|
|
4150
|
+
path: `/propertymappings/source/plex/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
4151
|
+
method: 'PATCH',
|
|
4152
|
+
headers: headerParameters,
|
|
4153
|
+
query: queryParameters,
|
|
4154
|
+
body: PatchedPlexSourcePropertyMappingRequestToJSON(requestParameters.patchedPlexSourcePropertyMappingRequest),
|
|
4155
|
+
}, initOverrides);
|
|
4156
|
+
|
|
4157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlexSourcePropertyMappingFromJSON(jsonValue));
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
/**
|
|
4161
|
+
* PlexSourcePropertyMapping Viewset
|
|
4162
|
+
*/
|
|
4163
|
+
async propertymappingsSourcePlexPartialUpdate(requestParameters: PropertymappingsSourcePlexPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlexSourcePropertyMapping> {
|
|
4164
|
+
const response = await this.propertymappingsSourcePlexPartialUpdateRaw(requestParameters, initOverrides);
|
|
4165
|
+
return await response.value();
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
/**
|
|
4169
|
+
* PlexSourcePropertyMapping Viewset
|
|
4170
|
+
*/
|
|
4171
|
+
async propertymappingsSourcePlexRetrieveRaw(requestParameters: PropertymappingsSourcePlexRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlexSourcePropertyMapping>> {
|
|
4172
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
4173
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourcePlexRetrieve.');
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
const queryParameters: any = {};
|
|
4177
|
+
|
|
4178
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4179
|
+
|
|
4180
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4181
|
+
const token = this.configuration.accessToken;
|
|
4182
|
+
const tokenString = await token("authentik", []);
|
|
4183
|
+
|
|
4184
|
+
if (tokenString) {
|
|
4185
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4188
|
+
const response = await this.request({
|
|
4189
|
+
path: `/propertymappings/source/plex/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
4190
|
+
method: 'GET',
|
|
4191
|
+
headers: headerParameters,
|
|
4192
|
+
query: queryParameters,
|
|
4193
|
+
}, initOverrides);
|
|
4194
|
+
|
|
4195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlexSourcePropertyMappingFromJSON(jsonValue));
|
|
4196
|
+
}
|
|
4197
|
+
|
|
4198
|
+
/**
|
|
4199
|
+
* PlexSourcePropertyMapping Viewset
|
|
4200
|
+
*/
|
|
4201
|
+
async propertymappingsSourcePlexRetrieve(requestParameters: PropertymappingsSourcePlexRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlexSourcePropertyMapping> {
|
|
4202
|
+
const response = await this.propertymappingsSourcePlexRetrieveRaw(requestParameters, initOverrides);
|
|
4203
|
+
return await response.value();
|
|
4204
|
+
}
|
|
4205
|
+
|
|
4206
|
+
/**
|
|
4207
|
+
* PlexSourcePropertyMapping Viewset
|
|
4208
|
+
*/
|
|
4209
|
+
async propertymappingsSourcePlexUpdateRaw(requestParameters: PropertymappingsSourcePlexUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlexSourcePropertyMapping>> {
|
|
4210
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
4211
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourcePlexUpdate.');
|
|
4212
|
+
}
|
|
4213
|
+
|
|
4214
|
+
if (requestParameters.plexSourcePropertyMappingRequest === null || requestParameters.plexSourcePropertyMappingRequest === undefined) {
|
|
4215
|
+
throw new runtime.RequiredError('plexSourcePropertyMappingRequest','Required parameter requestParameters.plexSourcePropertyMappingRequest was null or undefined when calling propertymappingsSourcePlexUpdate.');
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
const queryParameters: any = {};
|
|
4219
|
+
|
|
4220
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4221
|
+
|
|
4222
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4223
|
+
|
|
4224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4225
|
+
const token = this.configuration.accessToken;
|
|
4226
|
+
const tokenString = await token("authentik", []);
|
|
4227
|
+
|
|
4228
|
+
if (tokenString) {
|
|
4229
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4230
|
+
}
|
|
4231
|
+
}
|
|
4232
|
+
const response = await this.request({
|
|
4233
|
+
path: `/propertymappings/source/plex/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
4234
|
+
method: 'PUT',
|
|
4235
|
+
headers: headerParameters,
|
|
4236
|
+
query: queryParameters,
|
|
4237
|
+
body: PlexSourcePropertyMappingRequestToJSON(requestParameters.plexSourcePropertyMappingRequest),
|
|
4238
|
+
}, initOverrides);
|
|
4239
|
+
|
|
4240
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlexSourcePropertyMappingFromJSON(jsonValue));
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
/**
|
|
4244
|
+
* PlexSourcePropertyMapping Viewset
|
|
4245
|
+
*/
|
|
4246
|
+
async propertymappingsSourcePlexUpdate(requestParameters: PropertymappingsSourcePlexUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlexSourcePropertyMapping> {
|
|
4247
|
+
const response = await this.propertymappingsSourcePlexUpdateRaw(requestParameters, initOverrides);
|
|
4248
|
+
return await response.value();
|
|
4249
|
+
}
|
|
4250
|
+
|
|
4251
|
+
/**
|
|
4252
|
+
* Get a list of all objects that use this object
|
|
4253
|
+
*/
|
|
4254
|
+
async propertymappingsSourcePlexUsedByListRaw(requestParameters: PropertymappingsSourcePlexUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
|
4255
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
4256
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsSourcePlexUsedByList.');
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
const queryParameters: any = {};
|
|
4260
|
+
|
|
4261
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4262
|
+
|
|
4263
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4264
|
+
const token = this.configuration.accessToken;
|
|
4265
|
+
const tokenString = await token("authentik", []);
|
|
4266
|
+
|
|
4267
|
+
if (tokenString) {
|
|
4268
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4269
|
+
}
|
|
4270
|
+
}
|
|
4271
|
+
const response = await this.request({
|
|
4272
|
+
path: `/propertymappings/source/plex/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
4273
|
+
method: 'GET',
|
|
4274
|
+
headers: headerParameters,
|
|
4275
|
+
query: queryParameters,
|
|
4276
|
+
}, initOverrides);
|
|
4277
|
+
|
|
4278
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
4279
|
+
}
|
|
4280
|
+
|
|
4281
|
+
/**
|
|
4282
|
+
* Get a list of all objects that use this object
|
|
4283
|
+
*/
|
|
4284
|
+
async propertymappingsSourcePlexUsedByList(requestParameters: PropertymappingsSourcePlexUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
|
4285
|
+
const response = await this.propertymappingsSourcePlexUsedByListRaw(requestParameters, initOverrides);
|
|
4286
|
+
return await response.value();
|
|
4287
|
+
}
|
|
4288
|
+
|
|
3939
4289
|
/**
|
|
3940
4290
|
* SAMLSourcePropertyMapping Viewset
|
|
3941
4291
|
*/
|
package/src/apis/RbacApi.ts
CHANGED
|
@@ -1412,8 +1412,10 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
1412
1412
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
|
1413
1413
|
SourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
|
|
1414
1414
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
|
1415
|
+
SourcesPlexGroupplexsourceconnection: 'authentik_sources_plex.groupplexsourceconnection',
|
|
1415
1416
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
|
1416
|
-
|
|
1417
|
+
SourcesPlexPlexsourcepropertymapping: 'authentik_sources_plex.plexsourcepropertymapping',
|
|
1418
|
+
SourcesPlexUserplexsourceconnection: 'authentik_sources_plex.userplexsourceconnection',
|
|
1417
1419
|
SourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
|
|
1418
1420
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
|
1419
1421
|
SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
|
|
@@ -1506,8 +1508,10 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1506
1508
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
|
1507
1509
|
SourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
|
|
1508
1510
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
|
1511
|
+
SourcesPlexGroupplexsourceconnection: 'authentik_sources_plex.groupplexsourceconnection',
|
|
1509
1512
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
|
1510
|
-
|
|
1513
|
+
SourcesPlexPlexsourcepropertymapping: 'authentik_sources_plex.plexsourcepropertymapping',
|
|
1514
|
+
SourcesPlexUserplexsourceconnection: 'authentik_sources_plex.userplexsourceconnection',
|
|
1511
1515
|
SourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
|
|
1512
1516
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
|
1513
1517
|
SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
|