@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
@@ -0,0 +1,104 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.3
|
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 { Source } from './Source';
|
17
|
+
import {
|
18
|
+
SourceFromJSON,
|
19
|
+
SourceFromJSONTyped,
|
20
|
+
SourceToJSON,
|
21
|
+
} from './Source';
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Plex Group-Source connection Serializer
|
25
|
+
* @export
|
26
|
+
* @interface GroupPlexSourceConnection
|
27
|
+
*/
|
28
|
+
export interface GroupPlexSourceConnection {
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @type {number}
|
32
|
+
* @memberof GroupPlexSourceConnection
|
33
|
+
*/
|
34
|
+
readonly pk: number;
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {string}
|
38
|
+
* @memberof GroupPlexSourceConnection
|
39
|
+
*/
|
40
|
+
readonly group: string;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Source}
|
44
|
+
* @memberof GroupPlexSourceConnection
|
45
|
+
*/
|
46
|
+
readonly source: Source;
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* @type {string}
|
50
|
+
* @memberof GroupPlexSourceConnection
|
51
|
+
*/
|
52
|
+
readonly identifier: string;
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* @type {Date}
|
56
|
+
* @memberof GroupPlexSourceConnection
|
57
|
+
*/
|
58
|
+
readonly created: Date;
|
59
|
+
}
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Check if a given object implements the GroupPlexSourceConnection interface.
|
63
|
+
*/
|
64
|
+
export function instanceOfGroupPlexSourceConnection(value: object): boolean {
|
65
|
+
let isInstance = true;
|
66
|
+
isInstance = isInstance && "pk" in value;
|
67
|
+
isInstance = isInstance && "group" in value;
|
68
|
+
isInstance = isInstance && "source" in value;
|
69
|
+
isInstance = isInstance && "identifier" in value;
|
70
|
+
isInstance = isInstance && "created" in value;
|
71
|
+
|
72
|
+
return isInstance;
|
73
|
+
}
|
74
|
+
|
75
|
+
export function GroupPlexSourceConnectionFromJSON(json: any): GroupPlexSourceConnection {
|
76
|
+
return GroupPlexSourceConnectionFromJSONTyped(json, false);
|
77
|
+
}
|
78
|
+
|
79
|
+
export function GroupPlexSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupPlexSourceConnection {
|
80
|
+
if ((json === undefined) || (json === null)) {
|
81
|
+
return json;
|
82
|
+
}
|
83
|
+
return {
|
84
|
+
|
85
|
+
'pk': json['pk'],
|
86
|
+
'group': json['group'],
|
87
|
+
'source': SourceFromJSON(json['source']),
|
88
|
+
'identifier': json['identifier'],
|
89
|
+
'created': (new Date(json['created'])),
|
90
|
+
};
|
91
|
+
}
|
92
|
+
|
93
|
+
export function GroupPlexSourceConnectionToJSON(value?: GroupPlexSourceConnection | null): any {
|
94
|
+
if (value === undefined) {
|
95
|
+
return undefined;
|
96
|
+
}
|
97
|
+
if (value === null) {
|
98
|
+
return null;
|
99
|
+
}
|
100
|
+
return {
|
101
|
+
|
102
|
+
};
|
103
|
+
}
|
104
|
+
|
package/src/models/ModelEnum.ts
CHANGED
@@ -51,7 +51,9 @@ export const ModelEnum = {
|
|
51
51
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
52
52
|
SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
|
53
53
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
54
|
-
|
54
|
+
SourcesPlexPlexsourcepropertymapping: 'authentik_sources_plex.plexsourcepropertymapping',
|
55
|
+
SourcesPlexUserplexsourceconnection: 'authentik_sources_plex.userplexsourceconnection',
|
56
|
+
SourcesPlexGroupplexsourceconnection: 'authentik_sources_plex.groupplexsourceconnection',
|
55
57
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
56
58
|
SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
|
57
59
|
SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
|
@@ -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.3
|
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 { GroupPlexSourceConnection } from './GroupPlexSourceConnection';
|
17
|
+
import {
|
18
|
+
GroupPlexSourceConnectionFromJSON,
|
19
|
+
GroupPlexSourceConnectionFromJSONTyped,
|
20
|
+
GroupPlexSourceConnectionToJSON,
|
21
|
+
} from './GroupPlexSourceConnection';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedGroupPlexSourceConnectionList
|
33
|
+
*/
|
34
|
+
export interface PaginatedGroupPlexSourceConnectionList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedGroupPlexSourceConnectionList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<GroupPlexSourceConnection>}
|
44
|
+
* @memberof PaginatedGroupPlexSourceConnectionList
|
45
|
+
*/
|
46
|
+
results: Array<GroupPlexSourceConnection>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedGroupPlexSourceConnectionList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedGroupPlexSourceConnectionList(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 PaginatedGroupPlexSourceConnectionListFromJSON(json: any): PaginatedGroupPlexSourceConnectionList {
|
61
|
+
return PaginatedGroupPlexSourceConnectionListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedGroupPlexSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupPlexSourceConnectionList {
|
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(GroupPlexSourceConnectionFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedGroupPlexSourceConnectionListToJSON(value?: PaginatedGroupPlexSourceConnectionList | 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(GroupPlexSourceConnectionToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
@@ -19,37 +19,37 @@ import {
|
|
19
19
|
PaginationFromJSONTyped,
|
20
20
|
PaginationToJSON,
|
21
21
|
} from './Pagination';
|
22
|
-
import type {
|
22
|
+
import type { PlexSourcePropertyMapping } from './PlexSourcePropertyMapping';
|
23
23
|
import {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
} from './
|
24
|
+
PlexSourcePropertyMappingFromJSON,
|
25
|
+
PlexSourcePropertyMappingFromJSONTyped,
|
26
|
+
PlexSourcePropertyMappingToJSON,
|
27
|
+
} from './PlexSourcePropertyMapping';
|
28
28
|
|
29
29
|
/**
|
30
30
|
*
|
31
31
|
* @export
|
32
|
-
* @interface
|
32
|
+
* @interface PaginatedPlexSourcePropertyMappingList
|
33
33
|
*/
|
34
|
-
export interface
|
34
|
+
export interface PaginatedPlexSourcePropertyMappingList {
|
35
35
|
/**
|
36
36
|
*
|
37
37
|
* @type {Pagination}
|
38
|
-
* @memberof
|
38
|
+
* @memberof PaginatedPlexSourcePropertyMappingList
|
39
39
|
*/
|
40
40
|
pagination: Pagination;
|
41
41
|
/**
|
42
42
|
*
|
43
|
-
* @type {Array<
|
44
|
-
* @memberof
|
43
|
+
* @type {Array<PlexSourcePropertyMapping>}
|
44
|
+
* @memberof PaginatedPlexSourcePropertyMappingList
|
45
45
|
*/
|
46
|
-
results: Array<
|
46
|
+
results: Array<PlexSourcePropertyMapping>;
|
47
47
|
}
|
48
48
|
|
49
49
|
/**
|
50
|
-
* Check if a given object implements the
|
50
|
+
* Check if a given object implements the PaginatedPlexSourcePropertyMappingList interface.
|
51
51
|
*/
|
52
|
-
export function
|
52
|
+
export function instanceOfPaginatedPlexSourcePropertyMappingList(value: object): boolean {
|
53
53
|
let isInstance = true;
|
54
54
|
isInstance = isInstance && "pagination" in value;
|
55
55
|
isInstance = isInstance && "results" in value;
|
@@ -57,22 +57,22 @@ export function instanceOfPaginatedPlexSourceConnectionList(value: object): bool
|
|
57
57
|
return isInstance;
|
58
58
|
}
|
59
59
|
|
60
|
-
export function
|
61
|
-
return
|
60
|
+
export function PaginatedPlexSourcePropertyMappingListFromJSON(json: any): PaginatedPlexSourcePropertyMappingList {
|
61
|
+
return PaginatedPlexSourcePropertyMappingListFromJSONTyped(json, false);
|
62
62
|
}
|
63
63
|
|
64
|
-
export function
|
64
|
+
export function PaginatedPlexSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPlexSourcePropertyMappingList {
|
65
65
|
if ((json === undefined) || (json === null)) {
|
66
66
|
return json;
|
67
67
|
}
|
68
68
|
return {
|
69
69
|
|
70
70
|
'pagination': PaginationFromJSON(json['pagination']),
|
71
|
-
'results': ((json['results'] as Array<any>).map(
|
71
|
+
'results': ((json['results'] as Array<any>).map(PlexSourcePropertyMappingFromJSON)),
|
72
72
|
};
|
73
73
|
}
|
74
74
|
|
75
|
-
export function
|
75
|
+
export function PaginatedPlexSourcePropertyMappingListToJSON(value?: PaginatedPlexSourcePropertyMappingList | null): any {
|
76
76
|
if (value === undefined) {
|
77
77
|
return undefined;
|
78
78
|
}
|
@@ -82,7 +82,7 @@ export function PaginatedPlexSourceConnectionListToJSON(value?: PaginatedPlexSou
|
|
82
82
|
return {
|
83
83
|
|
84
84
|
'pagination': PaginationToJSON(value.pagination),
|
85
|
-
'results': ((value.results as Array<any>).map(
|
85
|
+
'results': ((value.results as Array<any>).map(PlexSourcePropertyMappingToJSON)),
|
86
86
|
};
|
87
87
|
}
|
88
88
|
|
@@ -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.3
|
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 { UserPlexSourceConnection } from './UserPlexSourceConnection';
|
23
|
+
import {
|
24
|
+
UserPlexSourceConnectionFromJSON,
|
25
|
+
UserPlexSourceConnectionFromJSONTyped,
|
26
|
+
UserPlexSourceConnectionToJSON,
|
27
|
+
} from './UserPlexSourceConnection';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedUserPlexSourceConnectionList
|
33
|
+
*/
|
34
|
+
export interface PaginatedUserPlexSourceConnectionList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedUserPlexSourceConnectionList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<UserPlexSourceConnection>}
|
44
|
+
* @memberof PaginatedUserPlexSourceConnectionList
|
45
|
+
*/
|
46
|
+
results: Array<UserPlexSourceConnection>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedUserPlexSourceConnectionList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedUserPlexSourceConnectionList(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 PaginatedUserPlexSourceConnectionListFromJSON(json: any): PaginatedUserPlexSourceConnectionList {
|
61
|
+
return PaginatedUserPlexSourceConnectionListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedUserPlexSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserPlexSourceConnectionList {
|
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(UserPlexSourceConnectionFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedUserPlexSourceConnectionListToJSON(value?: PaginatedUserPlexSourceConnectionList | 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(UserPlexSourceConnectionToJSON)),
|
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.3
|
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
|
+
* PlexSourcePropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface PatchedPlexSourcePropertyMappingRequest
|
20
|
+
*/
|
21
|
+
export interface PatchedPlexSourcePropertyMappingRequest {
|
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 PatchedPlexSourcePropertyMappingRequest
|
26
|
+
*/
|
27
|
+
managed?: string | null;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {string}
|
31
|
+
* @memberof PatchedPlexSourcePropertyMappingRequest
|
32
|
+
*/
|
33
|
+
name?: string;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof PatchedPlexSourcePropertyMappingRequest
|
38
|
+
*/
|
39
|
+
expression?: string;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Check if a given object implements the PatchedPlexSourcePropertyMappingRequest interface.
|
44
|
+
*/
|
45
|
+
export function instanceOfPatchedPlexSourcePropertyMappingRequest(value: object): boolean {
|
46
|
+
let isInstance = true;
|
47
|
+
|
48
|
+
return isInstance;
|
49
|
+
}
|
50
|
+
|
51
|
+
export function PatchedPlexSourcePropertyMappingRequestFromJSON(json: any): PatchedPlexSourcePropertyMappingRequest {
|
52
|
+
return PatchedPlexSourcePropertyMappingRequestFromJSONTyped(json, false);
|
53
|
+
}
|
54
|
+
|
55
|
+
export function PatchedPlexSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPlexSourcePropertyMappingRequest {
|
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 PatchedPlexSourcePropertyMappingRequestToJSON(value?: PatchedPlexSourcePropertyMappingRequest | 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,6 +13,12 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
17
|
+
import {
|
18
|
+
GroupMatchingModeEnumFromJSON,
|
19
|
+
GroupMatchingModeEnumFromJSONTyped,
|
20
|
+
GroupMatchingModeEnumToJSON,
|
21
|
+
} from './GroupMatchingModeEnum';
|
16
22
|
import type { PolicyEngineMode } from './PolicyEngineMode';
|
17
23
|
import {
|
18
24
|
PolicyEngineModeFromJSON,
|
@@ -92,6 +98,12 @@ export interface PatchedPlexSourceRequest {
|
|
92
98
|
* @memberof PatchedPlexSourceRequest
|
93
99
|
*/
|
94
100
|
userPathTemplate?: string;
|
101
|
+
/**
|
102
|
+
*
|
103
|
+
* @type {GroupMatchingModeEnum}
|
104
|
+
* @memberof PatchedPlexSourceRequest
|
105
|
+
*/
|
106
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
95
107
|
/**
|
96
108
|
* Client identifier used to talk to Plex.
|
97
109
|
* @type {string}
|
@@ -147,6 +159,7 @@ export function PatchedPlexSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
147
159
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
148
160
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
149
161
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
162
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
150
163
|
'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
|
151
164
|
'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
|
152
165
|
'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
|
@@ -173,6 +186,7 @@ export function PatchedPlexSourceRequestToJSON(value?: PatchedPlexSourceRequest
|
|
173
186
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
174
187
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
175
188
|
'user_path_template': value.userPathTemplate,
|
189
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
176
190
|
'client_id': value.clientId,
|
177
191
|
'allowed_servers': value.allowedServers,
|
178
192
|
'allow_friends': value.allowFriends,
|
@@ -16,37 +16,37 @@ import { exists, mapValues } from '../runtime';
|
|
16
16
|
/**
|
17
17
|
* Plex Source connection Serializer
|
18
18
|
* @export
|
19
|
-
* @interface
|
19
|
+
* @interface PatchedUserPlexSourceConnectionRequest
|
20
20
|
*/
|
21
|
-
export interface
|
21
|
+
export interface PatchedUserPlexSourceConnectionRequest {
|
22
22
|
/**
|
23
23
|
*
|
24
24
|
* @type {string}
|
25
|
-
* @memberof
|
25
|
+
* @memberof PatchedUserPlexSourceConnectionRequest
|
26
26
|
*/
|
27
27
|
identifier?: string;
|
28
28
|
/**
|
29
29
|
*
|
30
30
|
* @type {string}
|
31
|
-
* @memberof
|
31
|
+
* @memberof PatchedUserPlexSourceConnectionRequest
|
32
32
|
*/
|
33
33
|
plexToken?: string;
|
34
34
|
}
|
35
35
|
|
36
36
|
/**
|
37
|
-
* Check if a given object implements the
|
37
|
+
* Check if a given object implements the PatchedUserPlexSourceConnectionRequest interface.
|
38
38
|
*/
|
39
|
-
export function
|
39
|
+
export function instanceOfPatchedUserPlexSourceConnectionRequest(value: object): boolean {
|
40
40
|
let isInstance = true;
|
41
41
|
|
42
42
|
return isInstance;
|
43
43
|
}
|
44
44
|
|
45
|
-
export function
|
46
|
-
return
|
45
|
+
export function PatchedUserPlexSourceConnectionRequestFromJSON(json: any): PatchedUserPlexSourceConnectionRequest {
|
46
|
+
return PatchedUserPlexSourceConnectionRequestFromJSONTyped(json, false);
|
47
47
|
}
|
48
48
|
|
49
|
-
export function
|
49
|
+
export function PatchedUserPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserPlexSourceConnectionRequest {
|
50
50
|
if ((json === undefined) || (json === null)) {
|
51
51
|
return json;
|
52
52
|
}
|
@@ -57,7 +57,7 @@ export function PatchedPlexSourceConnectionRequestFromJSONTyped(json: any, ignor
|
|
57
57
|
};
|
58
58
|
}
|
59
59
|
|
60
|
-
export function
|
60
|
+
export function PatchedUserPlexSourceConnectionRequestToJSON(value?: PatchedUserPlexSourceConnectionRequest | null): any {
|
61
61
|
if (value === undefined) {
|
62
62
|
return undefined;
|
63
63
|
}
|
package/src/models/PlexSource.ts
CHANGED
@@ -13,6 +13,12 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
17
|
+
import {
|
18
|
+
GroupMatchingModeEnumFromJSON,
|
19
|
+
GroupMatchingModeEnumFromJSONTyped,
|
20
|
+
GroupMatchingModeEnumToJSON,
|
21
|
+
} from './GroupMatchingModeEnum';
|
16
22
|
import type { PolicyEngineMode } from './PolicyEngineMode';
|
17
23
|
import {
|
18
24
|
PolicyEngineModeFromJSON,
|
@@ -134,6 +140,12 @@ export interface PlexSource {
|
|
134
140
|
* @memberof PlexSource
|
135
141
|
*/
|
136
142
|
readonly icon: string;
|
143
|
+
/**
|
144
|
+
*
|
145
|
+
* @type {GroupMatchingModeEnum}
|
146
|
+
* @memberof PlexSource
|
147
|
+
*/
|
148
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
137
149
|
/**
|
138
150
|
* Client identifier used to talk to Plex.
|
139
151
|
* @type {string}
|
@@ -206,6 +218,7 @@ export function PlexSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
206
218
|
'managed': json['managed'],
|
207
219
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
208
220
|
'icon': json['icon'],
|
221
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
209
222
|
'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
|
210
223
|
'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
|
211
224
|
'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
|
@@ -232,6 +245,7 @@ export function PlexSourceToJSON(value?: PlexSource | null): any {
|
|
232
245
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
233
246
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
234
247
|
'user_path_template': value.userPathTemplate,
|
248
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
235
249
|
'client_id': value.clientId,
|
236
250
|
'allowed_servers': value.allowedServers,
|
237
251
|
'allow_friends': value.allowFriends,
|