@goauthentik/api 2024.6.3-1723053526 → 2024.6.3-1723206419
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +11 -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/LicenseSummary.d.ts +3 -26
- package/dist/esm/models/LicenseSummary.js +4 -15
- package/dist/esm/models/LicenseSummaryStatusEnum.d.ts +29 -0
- package/dist/esm/models/LicenseSummaryStatusEnum.js +36 -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 +11 -4
- package/dist/esm/models/index.js +11 -4
- package/dist/models/GroupPlexSourceConnection.d.ts +56 -0
- package/dist/models/GroupPlexSourceConnection.js +57 -0
- package/dist/models/LicenseSummary.d.ts +3 -26
- package/dist/models/LicenseSummary.js +4 -15
- package/dist/models/LicenseSummaryStatusEnum.d.ts +29 -0
- package/dist/models/LicenseSummaryStatusEnum.js +42 -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 +11 -4
- package/dist/models/index.js +11 -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/LicenseSummary.ts +12 -41
- package/src/models/LicenseSummaryStatusEnum.ts +44 -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 +11 -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
|
+
|
@@ -13,6 +13,13 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { LicenseSummaryStatusEnum } from './LicenseSummaryStatusEnum';
|
17
|
+
import {
|
18
|
+
LicenseSummaryStatusEnumFromJSON,
|
19
|
+
LicenseSummaryStatusEnumFromJSONTyped,
|
20
|
+
LicenseSummaryStatusEnumToJSON,
|
21
|
+
} from './LicenseSummaryStatusEnum';
|
22
|
+
|
16
23
|
/**
|
17
24
|
* Serializer for license status
|
18
25
|
* @export
|
@@ -33,40 +40,16 @@ export interface LicenseSummary {
|
|
33
40
|
externalUsers: number;
|
34
41
|
/**
|
35
42
|
*
|
36
|
-
* @type {
|
37
|
-
* @memberof LicenseSummary
|
38
|
-
*/
|
39
|
-
valid: boolean;
|
40
|
-
/**
|
41
|
-
*
|
42
|
-
* @type {boolean}
|
43
|
-
* @memberof LicenseSummary
|
44
|
-
*/
|
45
|
-
showAdminWarning: boolean;
|
46
|
-
/**
|
47
|
-
*
|
48
|
-
* @type {boolean}
|
43
|
+
* @type {LicenseSummaryStatusEnum}
|
49
44
|
* @memberof LicenseSummary
|
50
45
|
*/
|
51
|
-
|
52
|
-
/**
|
53
|
-
*
|
54
|
-
* @type {boolean}
|
55
|
-
* @memberof LicenseSummary
|
56
|
-
*/
|
57
|
-
readOnly: boolean;
|
46
|
+
status: LicenseSummaryStatusEnum;
|
58
47
|
/**
|
59
48
|
*
|
60
49
|
* @type {Date}
|
61
50
|
* @memberof LicenseSummary
|
62
51
|
*/
|
63
52
|
latestValid: Date;
|
64
|
-
/**
|
65
|
-
*
|
66
|
-
* @type {boolean}
|
67
|
-
* @memberof LicenseSummary
|
68
|
-
*/
|
69
|
-
hasLicense: boolean;
|
70
53
|
}
|
71
54
|
|
72
55
|
/**
|
@@ -76,12 +59,8 @@ export function instanceOfLicenseSummary(value: object): boolean {
|
|
76
59
|
let isInstance = true;
|
77
60
|
isInstance = isInstance && "internalUsers" in value;
|
78
61
|
isInstance = isInstance && "externalUsers" in value;
|
79
|
-
isInstance = isInstance && "
|
80
|
-
isInstance = isInstance && "showAdminWarning" in value;
|
81
|
-
isInstance = isInstance && "showUserWarning" in value;
|
82
|
-
isInstance = isInstance && "readOnly" in value;
|
62
|
+
isInstance = isInstance && "status" in value;
|
83
63
|
isInstance = isInstance && "latestValid" in value;
|
84
|
-
isInstance = isInstance && "hasLicense" in value;
|
85
64
|
|
86
65
|
return isInstance;
|
87
66
|
}
|
@@ -98,12 +77,8 @@ export function LicenseSummaryFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
98
77
|
|
99
78
|
'internalUsers': json['internal_users'],
|
100
79
|
'externalUsers': json['external_users'],
|
101
|
-
'
|
102
|
-
'showAdminWarning': json['show_admin_warning'],
|
103
|
-
'showUserWarning': json['show_user_warning'],
|
104
|
-
'readOnly': json['read_only'],
|
80
|
+
'status': LicenseSummaryStatusEnumFromJSON(json['status']),
|
105
81
|
'latestValid': (new Date(json['latest_valid'])),
|
106
|
-
'hasLicense': json['has_license'],
|
107
82
|
};
|
108
83
|
}
|
109
84
|
|
@@ -118,12 +93,8 @@ export function LicenseSummaryToJSON(value?: LicenseSummary | null): any {
|
|
118
93
|
|
119
94
|
'internal_users': value.internalUsers,
|
120
95
|
'external_users': value.externalUsers,
|
121
|
-
'
|
122
|
-
'show_admin_warning': value.showAdminWarning,
|
123
|
-
'show_user_warning': value.showUserWarning,
|
124
|
-
'read_only': value.readOnly,
|
96
|
+
'status': LicenseSummaryStatusEnumToJSON(value.status),
|
125
97
|
'latest_valid': (value.latestValid.toISOString()),
|
126
|
-
'has_license': value.hasLicense,
|
127
98
|
};
|
128
99
|
}
|
129
100
|
|
@@ -0,0 +1,44 @@
|
|
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
|
+
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* @export
|
19
|
+
*/
|
20
|
+
export const LicenseSummaryStatusEnum = {
|
21
|
+
Unlicensed: 'unlicensed',
|
22
|
+
Valid: 'valid',
|
23
|
+
Expired: 'expired',
|
24
|
+
ExpirySoon: 'expiry_soon',
|
25
|
+
LimitExceededAdmin: 'limit_exceeded_admin',
|
26
|
+
LimitExceededUser: 'limit_exceeded_user',
|
27
|
+
ReadOnly: 'read_only',
|
28
|
+
UnknownDefaultOpenApi: '11184809'
|
29
|
+
} as const;
|
30
|
+
export type LicenseSummaryStatusEnum = typeof LicenseSummaryStatusEnum[keyof typeof LicenseSummaryStatusEnum];
|
31
|
+
|
32
|
+
|
33
|
+
export function LicenseSummaryStatusEnumFromJSON(json: any): LicenseSummaryStatusEnum {
|
34
|
+
return LicenseSummaryStatusEnumFromJSONTyped(json, false);
|
35
|
+
}
|
36
|
+
|
37
|
+
export function LicenseSummaryStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseSummaryStatusEnum {
|
38
|
+
return json as LicenseSummaryStatusEnum;
|
39
|
+
}
|
40
|
+
|
41
|
+
export function LicenseSummaryStatusEnumToJSON(value?: LicenseSummaryStatusEnum | null): any {
|
42
|
+
return value as any;
|
43
|
+
}
|
44
|
+
|
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,
|