@goauthentik/api 2024.6.3-1723053526 → 2024.6.3-1723109801
Sign up to get free protection for your applications and to get access to all the features.
- 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
package/src/apis/SourcesApi.ts
CHANGED
@@ -18,6 +18,7 @@ import type {
|
|
18
18
|
FilePathRequest,
|
19
19
|
GenericError,
|
20
20
|
GroupOAuthSourceConnection,
|
21
|
+
GroupPlexSourceConnection,
|
21
22
|
GroupSAMLSourceConnection,
|
22
23
|
LDAPDebug,
|
23
24
|
LDAPSource,
|
@@ -25,10 +26,10 @@ import type {
|
|
25
26
|
OAuthSource,
|
26
27
|
OAuthSourceRequest,
|
27
28
|
PaginatedGroupOAuthSourceConnectionList,
|
29
|
+
PaginatedGroupPlexSourceConnectionList,
|
28
30
|
PaginatedGroupSAMLSourceConnectionList,
|
29
31
|
PaginatedLDAPSourceList,
|
30
32
|
PaginatedOAuthSourceList,
|
31
|
-
PaginatedPlexSourceConnectionList,
|
32
33
|
PaginatedPlexSourceList,
|
33
34
|
PaginatedSAMLSourceList,
|
34
35
|
PaginatedSCIMSourceGroupList,
|
@@ -36,21 +37,20 @@ import type {
|
|
36
37
|
PaginatedSCIMSourceUserList,
|
37
38
|
PaginatedSourceList,
|
38
39
|
PaginatedUserOAuthSourceConnectionList,
|
40
|
+
PaginatedUserPlexSourceConnectionList,
|
39
41
|
PaginatedUserSAMLSourceConnectionList,
|
40
42
|
PaginatedUserSourceConnectionList,
|
41
43
|
PatchedLDAPSourceRequest,
|
42
44
|
PatchedOAuthSourceRequest,
|
43
|
-
PatchedPlexSourceConnectionRequest,
|
44
45
|
PatchedPlexSourceRequest,
|
45
46
|
PatchedSAMLSourceRequest,
|
46
47
|
PatchedSCIMSourceGroupRequest,
|
47
48
|
PatchedSCIMSourceRequest,
|
48
49
|
PatchedSCIMSourceUserRequest,
|
49
50
|
PatchedUserOAuthSourceConnectionRequest,
|
51
|
+
PatchedUserPlexSourceConnectionRequest,
|
50
52
|
PatchedUserSAMLSourceConnectionRequest,
|
51
53
|
PlexSource,
|
52
|
-
PlexSourceConnection,
|
53
|
-
PlexSourceConnectionRequest,
|
54
54
|
PlexSourceRequest,
|
55
55
|
PlexTokenRedeemRequest,
|
56
56
|
RedirectChallenge,
|
@@ -70,6 +70,8 @@ import type {
|
|
70
70
|
UsedBy,
|
71
71
|
UserOAuthSourceConnection,
|
72
72
|
UserOAuthSourceConnectionRequest,
|
73
|
+
UserPlexSourceConnection,
|
74
|
+
UserPlexSourceConnectionRequest,
|
73
75
|
UserSAMLSourceConnection,
|
74
76
|
UserSAMLSourceConnectionRequest,
|
75
77
|
UserSetting,
|
@@ -83,6 +85,8 @@ import {
|
|
83
85
|
GenericErrorToJSON,
|
84
86
|
GroupOAuthSourceConnectionFromJSON,
|
85
87
|
GroupOAuthSourceConnectionToJSON,
|
88
|
+
GroupPlexSourceConnectionFromJSON,
|
89
|
+
GroupPlexSourceConnectionToJSON,
|
86
90
|
GroupSAMLSourceConnectionFromJSON,
|
87
91
|
GroupSAMLSourceConnectionToJSON,
|
88
92
|
LDAPDebugFromJSON,
|
@@ -97,14 +101,14 @@ import {
|
|
97
101
|
OAuthSourceRequestToJSON,
|
98
102
|
PaginatedGroupOAuthSourceConnectionListFromJSON,
|
99
103
|
PaginatedGroupOAuthSourceConnectionListToJSON,
|
104
|
+
PaginatedGroupPlexSourceConnectionListFromJSON,
|
105
|
+
PaginatedGroupPlexSourceConnectionListToJSON,
|
100
106
|
PaginatedGroupSAMLSourceConnectionListFromJSON,
|
101
107
|
PaginatedGroupSAMLSourceConnectionListToJSON,
|
102
108
|
PaginatedLDAPSourceListFromJSON,
|
103
109
|
PaginatedLDAPSourceListToJSON,
|
104
110
|
PaginatedOAuthSourceListFromJSON,
|
105
111
|
PaginatedOAuthSourceListToJSON,
|
106
|
-
PaginatedPlexSourceConnectionListFromJSON,
|
107
|
-
PaginatedPlexSourceConnectionListToJSON,
|
108
112
|
PaginatedPlexSourceListFromJSON,
|
109
113
|
PaginatedPlexSourceListToJSON,
|
110
114
|
PaginatedSAMLSourceListFromJSON,
|
@@ -119,6 +123,8 @@ import {
|
|
119
123
|
PaginatedSourceListToJSON,
|
120
124
|
PaginatedUserOAuthSourceConnectionListFromJSON,
|
121
125
|
PaginatedUserOAuthSourceConnectionListToJSON,
|
126
|
+
PaginatedUserPlexSourceConnectionListFromJSON,
|
127
|
+
PaginatedUserPlexSourceConnectionListToJSON,
|
122
128
|
PaginatedUserSAMLSourceConnectionListFromJSON,
|
123
129
|
PaginatedUserSAMLSourceConnectionListToJSON,
|
124
130
|
PaginatedUserSourceConnectionListFromJSON,
|
@@ -127,8 +133,6 @@ import {
|
|
127
133
|
PatchedLDAPSourceRequestToJSON,
|
128
134
|
PatchedOAuthSourceRequestFromJSON,
|
129
135
|
PatchedOAuthSourceRequestToJSON,
|
130
|
-
PatchedPlexSourceConnectionRequestFromJSON,
|
131
|
-
PatchedPlexSourceConnectionRequestToJSON,
|
132
136
|
PatchedPlexSourceRequestFromJSON,
|
133
137
|
PatchedPlexSourceRequestToJSON,
|
134
138
|
PatchedSAMLSourceRequestFromJSON,
|
@@ -141,14 +145,12 @@ import {
|
|
141
145
|
PatchedSCIMSourceUserRequestToJSON,
|
142
146
|
PatchedUserOAuthSourceConnectionRequestFromJSON,
|
143
147
|
PatchedUserOAuthSourceConnectionRequestToJSON,
|
148
|
+
PatchedUserPlexSourceConnectionRequestFromJSON,
|
149
|
+
PatchedUserPlexSourceConnectionRequestToJSON,
|
144
150
|
PatchedUserSAMLSourceConnectionRequestFromJSON,
|
145
151
|
PatchedUserSAMLSourceConnectionRequestToJSON,
|
146
152
|
PlexSourceFromJSON,
|
147
153
|
PlexSourceToJSON,
|
148
|
-
PlexSourceConnectionFromJSON,
|
149
|
-
PlexSourceConnectionToJSON,
|
150
|
-
PlexSourceConnectionRequestFromJSON,
|
151
|
-
PlexSourceConnectionRequestToJSON,
|
152
154
|
PlexSourceRequestFromJSON,
|
153
155
|
PlexSourceRequestToJSON,
|
154
156
|
PlexTokenRedeemRequestFromJSON,
|
@@ -187,6 +189,10 @@ import {
|
|
187
189
|
UserOAuthSourceConnectionToJSON,
|
188
190
|
UserOAuthSourceConnectionRequestFromJSON,
|
189
191
|
UserOAuthSourceConnectionRequestToJSON,
|
192
|
+
UserPlexSourceConnectionFromJSON,
|
193
|
+
UserPlexSourceConnectionToJSON,
|
194
|
+
UserPlexSourceConnectionRequestFromJSON,
|
195
|
+
UserPlexSourceConnectionRequestToJSON,
|
190
196
|
UserSAMLSourceConnectionFromJSON,
|
191
197
|
UserSAMLSourceConnectionToJSON,
|
192
198
|
UserSAMLSourceConnectionRequestFromJSON,
|
@@ -261,6 +267,35 @@ export interface SourcesGroupConnectionsOauthUsedByListRequest {
|
|
261
267
|
id: number;
|
262
268
|
}
|
263
269
|
|
270
|
+
export interface SourcesGroupConnectionsPlexDestroyRequest {
|
271
|
+
id: number;
|
272
|
+
}
|
273
|
+
|
274
|
+
export interface SourcesGroupConnectionsPlexListRequest {
|
275
|
+
group?: string;
|
276
|
+
ordering?: string;
|
277
|
+
page?: number;
|
278
|
+
pageSize?: number;
|
279
|
+
search?: string;
|
280
|
+
sourceSlug?: string;
|
281
|
+
}
|
282
|
+
|
283
|
+
export interface SourcesGroupConnectionsPlexPartialUpdateRequest {
|
284
|
+
id: number;
|
285
|
+
}
|
286
|
+
|
287
|
+
export interface SourcesGroupConnectionsPlexRetrieveRequest {
|
288
|
+
id: number;
|
289
|
+
}
|
290
|
+
|
291
|
+
export interface SourcesGroupConnectionsPlexUpdateRequest {
|
292
|
+
id: number;
|
293
|
+
}
|
294
|
+
|
295
|
+
export interface SourcesGroupConnectionsPlexUsedByListRequest {
|
296
|
+
id: number;
|
297
|
+
}
|
298
|
+
|
264
299
|
export interface SourcesGroupConnectionsSamlDestroyRequest {
|
265
300
|
id: number;
|
266
301
|
}
|
@@ -421,6 +456,7 @@ export interface SourcesPlexListRequest {
|
|
421
456
|
clientId?: string;
|
422
457
|
enabled?: boolean;
|
423
458
|
enrollmentFlow?: string;
|
459
|
+
groupMatchingMode?: SourcesPlexListGroupMatchingModeEnum;
|
424
460
|
name?: string;
|
425
461
|
ordering?: string;
|
426
462
|
page?: number;
|
@@ -688,7 +724,7 @@ export interface SourcesUserConnectionsOauthUsedByListRequest {
|
|
688
724
|
}
|
689
725
|
|
690
726
|
export interface SourcesUserConnectionsPlexCreateRequest {
|
691
|
-
|
727
|
+
userPlexSourceConnectionRequest: UserPlexSourceConnectionRequest;
|
692
728
|
}
|
693
729
|
|
694
730
|
export interface SourcesUserConnectionsPlexDestroyRequest {
|
@@ -706,7 +742,7 @@ export interface SourcesUserConnectionsPlexListRequest {
|
|
706
742
|
|
707
743
|
export interface SourcesUserConnectionsPlexPartialUpdateRequest {
|
708
744
|
id: number;
|
709
|
-
|
745
|
+
patchedUserPlexSourceConnectionRequest?: PatchedUserPlexSourceConnectionRequest;
|
710
746
|
}
|
711
747
|
|
712
748
|
export interface SourcesUserConnectionsPlexRetrieveRequest {
|
@@ -715,7 +751,7 @@ export interface SourcesUserConnectionsPlexRetrieveRequest {
|
|
715
751
|
|
716
752
|
export interface SourcesUserConnectionsPlexUpdateRequest {
|
717
753
|
id: number;
|
718
|
-
|
754
|
+
userPlexSourceConnectionRequest: UserPlexSourceConnectionRequest;
|
719
755
|
}
|
720
756
|
|
721
757
|
export interface SourcesUserConnectionsPlexUsedByListRequest {
|
@@ -1392,6 +1428,287 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
1392
1428
|
return await response.value();
|
1393
1429
|
}
|
1394
1430
|
|
1431
|
+
/**
|
1432
|
+
* Group-source connection Viewset
|
1433
|
+
*/
|
1434
|
+
async sourcesGroupConnectionsPlexCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupPlexSourceConnection>> {
|
1435
|
+
const queryParameters: any = {};
|
1436
|
+
|
1437
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
1438
|
+
|
1439
|
+
if (this.configuration && this.configuration.accessToken) {
|
1440
|
+
const token = this.configuration.accessToken;
|
1441
|
+
const tokenString = await token("authentik", []);
|
1442
|
+
|
1443
|
+
if (tokenString) {
|
1444
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1445
|
+
}
|
1446
|
+
}
|
1447
|
+
const response = await this.request({
|
1448
|
+
path: `/sources/group_connections/plex/`,
|
1449
|
+
method: 'POST',
|
1450
|
+
headers: headerParameters,
|
1451
|
+
query: queryParameters,
|
1452
|
+
}, initOverrides);
|
1453
|
+
|
1454
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupPlexSourceConnectionFromJSON(jsonValue));
|
1455
|
+
}
|
1456
|
+
|
1457
|
+
/**
|
1458
|
+
* Group-source connection Viewset
|
1459
|
+
*/
|
1460
|
+
async sourcesGroupConnectionsPlexCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupPlexSourceConnection> {
|
1461
|
+
const response = await this.sourcesGroupConnectionsPlexCreateRaw(initOverrides);
|
1462
|
+
return await response.value();
|
1463
|
+
}
|
1464
|
+
|
1465
|
+
/**
|
1466
|
+
* Group-source connection Viewset
|
1467
|
+
*/
|
1468
|
+
async sourcesGroupConnectionsPlexDestroyRaw(requestParameters: SourcesGroupConnectionsPlexDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
1469
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
1470
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsPlexDestroy.');
|
1471
|
+
}
|
1472
|
+
|
1473
|
+
const queryParameters: any = {};
|
1474
|
+
|
1475
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
1476
|
+
|
1477
|
+
if (this.configuration && this.configuration.accessToken) {
|
1478
|
+
const token = this.configuration.accessToken;
|
1479
|
+
const tokenString = await token("authentik", []);
|
1480
|
+
|
1481
|
+
if (tokenString) {
|
1482
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1483
|
+
}
|
1484
|
+
}
|
1485
|
+
const response = await this.request({
|
1486
|
+
path: `/sources/group_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
1487
|
+
method: 'DELETE',
|
1488
|
+
headers: headerParameters,
|
1489
|
+
query: queryParameters,
|
1490
|
+
}, initOverrides);
|
1491
|
+
|
1492
|
+
return new runtime.VoidApiResponse(response);
|
1493
|
+
}
|
1494
|
+
|
1495
|
+
/**
|
1496
|
+
* Group-source connection Viewset
|
1497
|
+
*/
|
1498
|
+
async sourcesGroupConnectionsPlexDestroy(requestParameters: SourcesGroupConnectionsPlexDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
1499
|
+
await this.sourcesGroupConnectionsPlexDestroyRaw(requestParameters, initOverrides);
|
1500
|
+
}
|
1501
|
+
|
1502
|
+
/**
|
1503
|
+
* Group-source connection Viewset
|
1504
|
+
*/
|
1505
|
+
async sourcesGroupConnectionsPlexListRaw(requestParameters: SourcesGroupConnectionsPlexListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedGroupPlexSourceConnectionList>> {
|
1506
|
+
const queryParameters: any = {};
|
1507
|
+
|
1508
|
+
if (requestParameters.group !== undefined) {
|
1509
|
+
queryParameters['group'] = requestParameters.group;
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
if (requestParameters.ordering !== undefined) {
|
1513
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
1514
|
+
}
|
1515
|
+
|
1516
|
+
if (requestParameters.page !== undefined) {
|
1517
|
+
queryParameters['page'] = requestParameters.page;
|
1518
|
+
}
|
1519
|
+
|
1520
|
+
if (requestParameters.pageSize !== undefined) {
|
1521
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
1522
|
+
}
|
1523
|
+
|
1524
|
+
if (requestParameters.search !== undefined) {
|
1525
|
+
queryParameters['search'] = requestParameters.search;
|
1526
|
+
}
|
1527
|
+
|
1528
|
+
if (requestParameters.sourceSlug !== undefined) {
|
1529
|
+
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
1530
|
+
}
|
1531
|
+
|
1532
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
1533
|
+
|
1534
|
+
if (this.configuration && this.configuration.accessToken) {
|
1535
|
+
const token = this.configuration.accessToken;
|
1536
|
+
const tokenString = await token("authentik", []);
|
1537
|
+
|
1538
|
+
if (tokenString) {
|
1539
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1540
|
+
}
|
1541
|
+
}
|
1542
|
+
const response = await this.request({
|
1543
|
+
path: `/sources/group_connections/plex/`,
|
1544
|
+
method: 'GET',
|
1545
|
+
headers: headerParameters,
|
1546
|
+
query: queryParameters,
|
1547
|
+
}, initOverrides);
|
1548
|
+
|
1549
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGroupPlexSourceConnectionListFromJSON(jsonValue));
|
1550
|
+
}
|
1551
|
+
|
1552
|
+
/**
|
1553
|
+
* Group-source connection Viewset
|
1554
|
+
*/
|
1555
|
+
async sourcesGroupConnectionsPlexList(requestParameters: SourcesGroupConnectionsPlexListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedGroupPlexSourceConnectionList> {
|
1556
|
+
const response = await this.sourcesGroupConnectionsPlexListRaw(requestParameters, initOverrides);
|
1557
|
+
return await response.value();
|
1558
|
+
}
|
1559
|
+
|
1560
|
+
/**
|
1561
|
+
* Group-source connection Viewset
|
1562
|
+
*/
|
1563
|
+
async sourcesGroupConnectionsPlexPartialUpdateRaw(requestParameters: SourcesGroupConnectionsPlexPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupPlexSourceConnection>> {
|
1564
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
1565
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsPlexPartialUpdate.');
|
1566
|
+
}
|
1567
|
+
|
1568
|
+
const queryParameters: any = {};
|
1569
|
+
|
1570
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
1571
|
+
|
1572
|
+
if (this.configuration && this.configuration.accessToken) {
|
1573
|
+
const token = this.configuration.accessToken;
|
1574
|
+
const tokenString = await token("authentik", []);
|
1575
|
+
|
1576
|
+
if (tokenString) {
|
1577
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1578
|
+
}
|
1579
|
+
}
|
1580
|
+
const response = await this.request({
|
1581
|
+
path: `/sources/group_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
1582
|
+
method: 'PATCH',
|
1583
|
+
headers: headerParameters,
|
1584
|
+
query: queryParameters,
|
1585
|
+
}, initOverrides);
|
1586
|
+
|
1587
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupPlexSourceConnectionFromJSON(jsonValue));
|
1588
|
+
}
|
1589
|
+
|
1590
|
+
/**
|
1591
|
+
* Group-source connection Viewset
|
1592
|
+
*/
|
1593
|
+
async sourcesGroupConnectionsPlexPartialUpdate(requestParameters: SourcesGroupConnectionsPlexPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupPlexSourceConnection> {
|
1594
|
+
const response = await this.sourcesGroupConnectionsPlexPartialUpdateRaw(requestParameters, initOverrides);
|
1595
|
+
return await response.value();
|
1596
|
+
}
|
1597
|
+
|
1598
|
+
/**
|
1599
|
+
* Group-source connection Viewset
|
1600
|
+
*/
|
1601
|
+
async sourcesGroupConnectionsPlexRetrieveRaw(requestParameters: SourcesGroupConnectionsPlexRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupPlexSourceConnection>> {
|
1602
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
1603
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsPlexRetrieve.');
|
1604
|
+
}
|
1605
|
+
|
1606
|
+
const queryParameters: any = {};
|
1607
|
+
|
1608
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
1609
|
+
|
1610
|
+
if (this.configuration && this.configuration.accessToken) {
|
1611
|
+
const token = this.configuration.accessToken;
|
1612
|
+
const tokenString = await token("authentik", []);
|
1613
|
+
|
1614
|
+
if (tokenString) {
|
1615
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1616
|
+
}
|
1617
|
+
}
|
1618
|
+
const response = await this.request({
|
1619
|
+
path: `/sources/group_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
1620
|
+
method: 'GET',
|
1621
|
+
headers: headerParameters,
|
1622
|
+
query: queryParameters,
|
1623
|
+
}, initOverrides);
|
1624
|
+
|
1625
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupPlexSourceConnectionFromJSON(jsonValue));
|
1626
|
+
}
|
1627
|
+
|
1628
|
+
/**
|
1629
|
+
* Group-source connection Viewset
|
1630
|
+
*/
|
1631
|
+
async sourcesGroupConnectionsPlexRetrieve(requestParameters: SourcesGroupConnectionsPlexRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupPlexSourceConnection> {
|
1632
|
+
const response = await this.sourcesGroupConnectionsPlexRetrieveRaw(requestParameters, initOverrides);
|
1633
|
+
return await response.value();
|
1634
|
+
}
|
1635
|
+
|
1636
|
+
/**
|
1637
|
+
* Group-source connection Viewset
|
1638
|
+
*/
|
1639
|
+
async sourcesGroupConnectionsPlexUpdateRaw(requestParameters: SourcesGroupConnectionsPlexUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupPlexSourceConnection>> {
|
1640
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
1641
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsPlexUpdate.');
|
1642
|
+
}
|
1643
|
+
|
1644
|
+
const queryParameters: any = {};
|
1645
|
+
|
1646
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
1647
|
+
|
1648
|
+
if (this.configuration && this.configuration.accessToken) {
|
1649
|
+
const token = this.configuration.accessToken;
|
1650
|
+
const tokenString = await token("authentik", []);
|
1651
|
+
|
1652
|
+
if (tokenString) {
|
1653
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1654
|
+
}
|
1655
|
+
}
|
1656
|
+
const response = await this.request({
|
1657
|
+
path: `/sources/group_connections/plex/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
1658
|
+
method: 'PUT',
|
1659
|
+
headers: headerParameters,
|
1660
|
+
query: queryParameters,
|
1661
|
+
}, initOverrides);
|
1662
|
+
|
1663
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupPlexSourceConnectionFromJSON(jsonValue));
|
1664
|
+
}
|
1665
|
+
|
1666
|
+
/**
|
1667
|
+
* Group-source connection Viewset
|
1668
|
+
*/
|
1669
|
+
async sourcesGroupConnectionsPlexUpdate(requestParameters: SourcesGroupConnectionsPlexUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupPlexSourceConnection> {
|
1670
|
+
const response = await this.sourcesGroupConnectionsPlexUpdateRaw(requestParameters, initOverrides);
|
1671
|
+
return await response.value();
|
1672
|
+
}
|
1673
|
+
|
1674
|
+
/**
|
1675
|
+
* Get a list of all objects that use this object
|
1676
|
+
*/
|
1677
|
+
async sourcesGroupConnectionsPlexUsedByListRaw(requestParameters: SourcesGroupConnectionsPlexUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
1678
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
1679
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesGroupConnectionsPlexUsedByList.');
|
1680
|
+
}
|
1681
|
+
|
1682
|
+
const queryParameters: any = {};
|
1683
|
+
|
1684
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
1685
|
+
|
1686
|
+
if (this.configuration && this.configuration.accessToken) {
|
1687
|
+
const token = this.configuration.accessToken;
|
1688
|
+
const tokenString = await token("authentik", []);
|
1689
|
+
|
1690
|
+
if (tokenString) {
|
1691
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
1692
|
+
}
|
1693
|
+
}
|
1694
|
+
const response = await this.request({
|
1695
|
+
path: `/sources/group_connections/plex/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
1696
|
+
method: 'GET',
|
1697
|
+
headers: headerParameters,
|
1698
|
+
query: queryParameters,
|
1699
|
+
}, initOverrides);
|
1700
|
+
|
1701
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
/**
|
1705
|
+
* Get a list of all objects that use this object
|
1706
|
+
*/
|
1707
|
+
async sourcesGroupConnectionsPlexUsedByList(requestParameters: SourcesGroupConnectionsPlexUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
1708
|
+
const response = await this.sourcesGroupConnectionsPlexUsedByListRaw(requestParameters, initOverrides);
|
1709
|
+
return await response.value();
|
1710
|
+
}
|
1711
|
+
|
1395
1712
|
/**
|
1396
1713
|
* Group-source connection Viewset
|
1397
1714
|
*/
|
@@ -2593,6 +2910,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2593
2910
|
queryParameters['enrollment_flow'] = requestParameters.enrollmentFlow;
|
2594
2911
|
}
|
2595
2912
|
|
2913
|
+
if (requestParameters.groupMatchingMode !== undefined) {
|
2914
|
+
queryParameters['group_matching_mode'] = requestParameters.groupMatchingMode;
|
2915
|
+
}
|
2916
|
+
|
2596
2917
|
if (requestParameters.name !== undefined) {
|
2597
2918
|
queryParameters['name'] = requestParameters.name;
|
2598
2919
|
}
|
@@ -4762,9 +5083,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4762
5083
|
/**
|
4763
5084
|
* Plex Source connection Serializer
|
4764
5085
|
*/
|
4765
|
-
async sourcesUserConnectionsPlexCreateRaw(requestParameters: SourcesUserConnectionsPlexCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
4766
|
-
if (requestParameters.
|
4767
|
-
throw new runtime.RequiredError('
|
5086
|
+
async sourcesUserConnectionsPlexCreateRaw(requestParameters: SourcesUserConnectionsPlexCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPlexSourceConnection>> {
|
5087
|
+
if (requestParameters.userPlexSourceConnectionRequest === null || requestParameters.userPlexSourceConnectionRequest === undefined) {
|
5088
|
+
throw new runtime.RequiredError('userPlexSourceConnectionRequest','Required parameter requestParameters.userPlexSourceConnectionRequest was null or undefined when calling sourcesUserConnectionsPlexCreate.');
|
4768
5089
|
}
|
4769
5090
|
|
4770
5091
|
const queryParameters: any = {};
|
@@ -4786,16 +5107,16 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4786
5107
|
method: 'POST',
|
4787
5108
|
headers: headerParameters,
|
4788
5109
|
query: queryParameters,
|
4789
|
-
body:
|
5110
|
+
body: UserPlexSourceConnectionRequestToJSON(requestParameters.userPlexSourceConnectionRequest),
|
4790
5111
|
}, initOverrides);
|
4791
5112
|
|
4792
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
5113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserPlexSourceConnectionFromJSON(jsonValue));
|
4793
5114
|
}
|
4794
5115
|
|
4795
5116
|
/**
|
4796
5117
|
* Plex Source connection Serializer
|
4797
5118
|
*/
|
4798
|
-
async sourcesUserConnectionsPlexCreate(requestParameters: SourcesUserConnectionsPlexCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
5119
|
+
async sourcesUserConnectionsPlexCreate(requestParameters: SourcesUserConnectionsPlexCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPlexSourceConnection> {
|
4799
5120
|
const response = await this.sourcesUserConnectionsPlexCreateRaw(requestParameters, initOverrides);
|
4800
5121
|
return await response.value();
|
4801
5122
|
}
|
@@ -4840,7 +5161,7 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4840
5161
|
/**
|
4841
5162
|
* Plex Source connection Serializer
|
4842
5163
|
*/
|
4843
|
-
async sourcesUserConnectionsPlexListRaw(requestParameters: SourcesUserConnectionsPlexListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
5164
|
+
async sourcesUserConnectionsPlexListRaw(requestParameters: SourcesUserConnectionsPlexListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedUserPlexSourceConnectionList>> {
|
4844
5165
|
const queryParameters: any = {};
|
4845
5166
|
|
4846
5167
|
if (requestParameters.ordering !== undefined) {
|
@@ -4884,13 +5205,13 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4884
5205
|
query: queryParameters,
|
4885
5206
|
}, initOverrides);
|
4886
5207
|
|
4887
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
5208
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedUserPlexSourceConnectionListFromJSON(jsonValue));
|
4888
5209
|
}
|
4889
5210
|
|
4890
5211
|
/**
|
4891
5212
|
* Plex Source connection Serializer
|
4892
5213
|
*/
|
4893
|
-
async sourcesUserConnectionsPlexList(requestParameters: SourcesUserConnectionsPlexListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
5214
|
+
async sourcesUserConnectionsPlexList(requestParameters: SourcesUserConnectionsPlexListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedUserPlexSourceConnectionList> {
|
4894
5215
|
const response = await this.sourcesUserConnectionsPlexListRaw(requestParameters, initOverrides);
|
4895
5216
|
return await response.value();
|
4896
5217
|
}
|
@@ -4898,7 +5219,7 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4898
5219
|
/**
|
4899
5220
|
* Plex Source connection Serializer
|
4900
5221
|
*/
|
4901
|
-
async sourcesUserConnectionsPlexPartialUpdateRaw(requestParameters: SourcesUserConnectionsPlexPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
5222
|
+
async sourcesUserConnectionsPlexPartialUpdateRaw(requestParameters: SourcesUserConnectionsPlexPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPlexSourceConnection>> {
|
4902
5223
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
4903
5224
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsPlexPartialUpdate.');
|
4904
5225
|
}
|
@@ -4922,16 +5243,16 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4922
5243
|
method: 'PATCH',
|
4923
5244
|
headers: headerParameters,
|
4924
5245
|
query: queryParameters,
|
4925
|
-
body:
|
5246
|
+
body: PatchedUserPlexSourceConnectionRequestToJSON(requestParameters.patchedUserPlexSourceConnectionRequest),
|
4926
5247
|
}, initOverrides);
|
4927
5248
|
|
4928
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
5249
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserPlexSourceConnectionFromJSON(jsonValue));
|
4929
5250
|
}
|
4930
5251
|
|
4931
5252
|
/**
|
4932
5253
|
* Plex Source connection Serializer
|
4933
5254
|
*/
|
4934
|
-
async sourcesUserConnectionsPlexPartialUpdate(requestParameters: SourcesUserConnectionsPlexPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
5255
|
+
async sourcesUserConnectionsPlexPartialUpdate(requestParameters: SourcesUserConnectionsPlexPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPlexSourceConnection> {
|
4935
5256
|
const response = await this.sourcesUserConnectionsPlexPartialUpdateRaw(requestParameters, initOverrides);
|
4936
5257
|
return await response.value();
|
4937
5258
|
}
|
@@ -4939,7 +5260,7 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4939
5260
|
/**
|
4940
5261
|
* Plex Source connection Serializer
|
4941
5262
|
*/
|
4942
|
-
async sourcesUserConnectionsPlexRetrieveRaw(requestParameters: SourcesUserConnectionsPlexRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
5263
|
+
async sourcesUserConnectionsPlexRetrieveRaw(requestParameters: SourcesUserConnectionsPlexRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPlexSourceConnection>> {
|
4943
5264
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
4944
5265
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsPlexRetrieve.');
|
4945
5266
|
}
|
@@ -4963,13 +5284,13 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4963
5284
|
query: queryParameters,
|
4964
5285
|
}, initOverrides);
|
4965
5286
|
|
4966
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
5287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserPlexSourceConnectionFromJSON(jsonValue));
|
4967
5288
|
}
|
4968
5289
|
|
4969
5290
|
/**
|
4970
5291
|
* Plex Source connection Serializer
|
4971
5292
|
*/
|
4972
|
-
async sourcesUserConnectionsPlexRetrieve(requestParameters: SourcesUserConnectionsPlexRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
5293
|
+
async sourcesUserConnectionsPlexRetrieve(requestParameters: SourcesUserConnectionsPlexRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPlexSourceConnection> {
|
4973
5294
|
const response = await this.sourcesUserConnectionsPlexRetrieveRaw(requestParameters, initOverrides);
|
4974
5295
|
return await response.value();
|
4975
5296
|
}
|
@@ -4977,13 +5298,13 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4977
5298
|
/**
|
4978
5299
|
* Plex Source connection Serializer
|
4979
5300
|
*/
|
4980
|
-
async sourcesUserConnectionsPlexUpdateRaw(requestParameters: SourcesUserConnectionsPlexUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
5301
|
+
async sourcesUserConnectionsPlexUpdateRaw(requestParameters: SourcesUserConnectionsPlexUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPlexSourceConnection>> {
|
4981
5302
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
4982
5303
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling sourcesUserConnectionsPlexUpdate.');
|
4983
5304
|
}
|
4984
5305
|
|
4985
|
-
if (requestParameters.
|
4986
|
-
throw new runtime.RequiredError('
|
5306
|
+
if (requestParameters.userPlexSourceConnectionRequest === null || requestParameters.userPlexSourceConnectionRequest === undefined) {
|
5307
|
+
throw new runtime.RequiredError('userPlexSourceConnectionRequest','Required parameter requestParameters.userPlexSourceConnectionRequest was null or undefined when calling sourcesUserConnectionsPlexUpdate.');
|
4987
5308
|
}
|
4988
5309
|
|
4989
5310
|
const queryParameters: any = {};
|
@@ -5005,16 +5326,16 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
5005
5326
|
method: 'PUT',
|
5006
5327
|
headers: headerParameters,
|
5007
5328
|
query: queryParameters,
|
5008
|
-
body:
|
5329
|
+
body: UserPlexSourceConnectionRequestToJSON(requestParameters.userPlexSourceConnectionRequest),
|
5009
5330
|
}, initOverrides);
|
5010
5331
|
|
5011
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
5332
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserPlexSourceConnectionFromJSON(jsonValue));
|
5012
5333
|
}
|
5013
5334
|
|
5014
5335
|
/**
|
5015
5336
|
* Plex Source connection Serializer
|
5016
5337
|
*/
|
5017
|
-
async sourcesUserConnectionsPlexUpdate(requestParameters: SourcesUserConnectionsPlexUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
5338
|
+
async sourcesUserConnectionsPlexUpdate(requestParameters: SourcesUserConnectionsPlexUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPlexSourceConnection> {
|
5018
5339
|
const response = await this.sourcesUserConnectionsPlexUpdateRaw(requestParameters, initOverrides);
|
5019
5340
|
return await response.value();
|
5020
5341
|
}
|
@@ -5388,6 +5709,16 @@ export const SourcesOauthListUserMatchingModeEnum = {
|
|
5388
5709
|
UnknownDefaultOpenApi: '11184809'
|
5389
5710
|
} as const;
|
5390
5711
|
export type SourcesOauthListUserMatchingModeEnum = typeof SourcesOauthListUserMatchingModeEnum[keyof typeof SourcesOauthListUserMatchingModeEnum];
|
5712
|
+
/**
|
5713
|
+
* @export
|
5714
|
+
*/
|
5715
|
+
export const SourcesPlexListGroupMatchingModeEnum = {
|
5716
|
+
Identifier: 'identifier',
|
5717
|
+
NameDeny: 'name_deny',
|
5718
|
+
NameLink: 'name_link',
|
5719
|
+
UnknownDefaultOpenApi: '11184809'
|
5720
|
+
} as const;
|
5721
|
+
export type SourcesPlexListGroupMatchingModeEnum = typeof SourcesPlexListGroupMatchingModeEnum[keyof typeof SourcesPlexListGroupMatchingModeEnum];
|
5391
5722
|
/**
|
5392
5723
|
* @export
|
5393
5724
|
*/
|