@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,50 @@
|
|
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
|
+
import { SourceFromJSON, } from './Source';
|
15
|
+
/**
|
16
|
+
* Check if a given object implements the GroupPlexSourceConnection interface.
|
17
|
+
*/
|
18
|
+
export function instanceOfGroupPlexSourceConnection(value) {
|
19
|
+
let isInstance = true;
|
20
|
+
isInstance = isInstance && "pk" in value;
|
21
|
+
isInstance = isInstance && "group" in value;
|
22
|
+
isInstance = isInstance && "source" in value;
|
23
|
+
isInstance = isInstance && "identifier" in value;
|
24
|
+
isInstance = isInstance && "created" in value;
|
25
|
+
return isInstance;
|
26
|
+
}
|
27
|
+
export function GroupPlexSourceConnectionFromJSON(json) {
|
28
|
+
return GroupPlexSourceConnectionFromJSONTyped(json, false);
|
29
|
+
}
|
30
|
+
export function GroupPlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
31
|
+
if ((json === undefined) || (json === null)) {
|
32
|
+
return json;
|
33
|
+
}
|
34
|
+
return {
|
35
|
+
'pk': json['pk'],
|
36
|
+
'group': json['group'],
|
37
|
+
'source': SourceFromJSON(json['source']),
|
38
|
+
'identifier': json['identifier'],
|
39
|
+
'created': (new Date(json['created'])),
|
40
|
+
};
|
41
|
+
}
|
42
|
+
export function GroupPlexSourceConnectionToJSON(value) {
|
43
|
+
if (value === undefined) {
|
44
|
+
return undefined;
|
45
|
+
}
|
46
|
+
if (value === null) {
|
47
|
+
return null;
|
48
|
+
}
|
49
|
+
return {};
|
50
|
+
}
|
@@ -9,6 +9,7 @@
|
|
9
9
|
* https://openapi-generator.tech
|
10
10
|
* Do not edit the class manually.
|
11
11
|
*/
|
12
|
+
import type { LicenseSummaryStatusEnum } from './LicenseSummaryStatusEnum';
|
12
13
|
/**
|
13
14
|
* Serializer for license status
|
14
15
|
* @export
|
@@ -29,40 +30,16 @@ export interface LicenseSummary {
|
|
29
30
|
externalUsers: number;
|
30
31
|
/**
|
31
32
|
*
|
32
|
-
* @type {
|
33
|
+
* @type {LicenseSummaryStatusEnum}
|
33
34
|
* @memberof LicenseSummary
|
34
35
|
*/
|
35
|
-
|
36
|
-
/**
|
37
|
-
*
|
38
|
-
* @type {boolean}
|
39
|
-
* @memberof LicenseSummary
|
40
|
-
*/
|
41
|
-
showAdminWarning: boolean;
|
42
|
-
/**
|
43
|
-
*
|
44
|
-
* @type {boolean}
|
45
|
-
* @memberof LicenseSummary
|
46
|
-
*/
|
47
|
-
showUserWarning: boolean;
|
48
|
-
/**
|
49
|
-
*
|
50
|
-
* @type {boolean}
|
51
|
-
* @memberof LicenseSummary
|
52
|
-
*/
|
53
|
-
readOnly: boolean;
|
36
|
+
status: LicenseSummaryStatusEnum;
|
54
37
|
/**
|
55
38
|
*
|
56
39
|
* @type {Date}
|
57
40
|
* @memberof LicenseSummary
|
58
41
|
*/
|
59
42
|
latestValid: Date;
|
60
|
-
/**
|
61
|
-
*
|
62
|
-
* @type {boolean}
|
63
|
-
* @memberof LicenseSummary
|
64
|
-
*/
|
65
|
-
hasLicense: boolean;
|
66
43
|
}
|
67
44
|
/**
|
68
45
|
* Check if a given object implements the LicenseSummary interface.
|
@@ -11,6 +11,7 @@
|
|
11
11
|
* https://openapi-generator.tech
|
12
12
|
* Do not edit the class manually.
|
13
13
|
*/
|
14
|
+
import { LicenseSummaryStatusEnumFromJSON, LicenseSummaryStatusEnumToJSON, } from './LicenseSummaryStatusEnum';
|
14
15
|
/**
|
15
16
|
* Check if a given object implements the LicenseSummary interface.
|
16
17
|
*/
|
@@ -18,12 +19,8 @@ export function instanceOfLicenseSummary(value) {
|
|
18
19
|
let isInstance = true;
|
19
20
|
isInstance = isInstance && "internalUsers" in value;
|
20
21
|
isInstance = isInstance && "externalUsers" in value;
|
21
|
-
isInstance = isInstance && "
|
22
|
-
isInstance = isInstance && "showAdminWarning" in value;
|
23
|
-
isInstance = isInstance && "showUserWarning" in value;
|
24
|
-
isInstance = isInstance && "readOnly" in value;
|
22
|
+
isInstance = isInstance && "status" in value;
|
25
23
|
isInstance = isInstance && "latestValid" in value;
|
26
|
-
isInstance = isInstance && "hasLicense" in value;
|
27
24
|
return isInstance;
|
28
25
|
}
|
29
26
|
export function LicenseSummaryFromJSON(json) {
|
@@ -36,12 +33,8 @@ export function LicenseSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
33
|
return {
|
37
34
|
'internalUsers': json['internal_users'],
|
38
35
|
'externalUsers': json['external_users'],
|
39
|
-
'
|
40
|
-
'showAdminWarning': json['show_admin_warning'],
|
41
|
-
'showUserWarning': json['show_user_warning'],
|
42
|
-
'readOnly': json['read_only'],
|
36
|
+
'status': LicenseSummaryStatusEnumFromJSON(json['status']),
|
43
37
|
'latestValid': (new Date(json['latest_valid'])),
|
44
|
-
'hasLicense': json['has_license'],
|
45
38
|
};
|
46
39
|
}
|
47
40
|
export function LicenseSummaryToJSON(value) {
|
@@ -54,11 +47,7 @@ export function LicenseSummaryToJSON(value) {
|
|
54
47
|
return {
|
55
48
|
'internal_users': value.internalUsers,
|
56
49
|
'external_users': value.externalUsers,
|
57
|
-
'
|
58
|
-
'show_admin_warning': value.showAdminWarning,
|
59
|
-
'show_user_warning': value.showUserWarning,
|
60
|
-
'read_only': value.readOnly,
|
50
|
+
'status': LicenseSummaryStatusEnumToJSON(value.status),
|
61
51
|
'latest_valid': (value.latestValid.toISOString()),
|
62
|
-
'has_license': value.hasLicense,
|
63
52
|
};
|
64
53
|
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.6.3
|
6
|
+
* Contact: hello@goauthentik.io
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
*
|
14
|
+
* @export
|
15
|
+
*/
|
16
|
+
export declare const LicenseSummaryStatusEnum: {
|
17
|
+
readonly Unlicensed: "unlicensed";
|
18
|
+
readonly Valid: "valid";
|
19
|
+
readonly Expired: "expired";
|
20
|
+
readonly ExpirySoon: "expiry_soon";
|
21
|
+
readonly LimitExceededAdmin: "limit_exceeded_admin";
|
22
|
+
readonly LimitExceededUser: "limit_exceeded_user";
|
23
|
+
readonly ReadOnly: "read_only";
|
24
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
25
|
+
};
|
26
|
+
export type LicenseSummaryStatusEnum = typeof LicenseSummaryStatusEnum[keyof typeof LicenseSummaryStatusEnum];
|
27
|
+
export declare function LicenseSummaryStatusEnumFromJSON(json: any): LicenseSummaryStatusEnum;
|
28
|
+
export declare function LicenseSummaryStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseSummaryStatusEnum;
|
29
|
+
export declare function LicenseSummaryStatusEnumToJSON(value?: LicenseSummaryStatusEnum | null): any;
|
@@ -0,0 +1,36 @@
|
|
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
|
+
* @export
|
17
|
+
*/
|
18
|
+
export const LicenseSummaryStatusEnum = {
|
19
|
+
Unlicensed: 'unlicensed',
|
20
|
+
Valid: 'valid',
|
21
|
+
Expired: 'expired',
|
22
|
+
ExpirySoon: 'expiry_soon',
|
23
|
+
LimitExceededAdmin: 'limit_exceeded_admin',
|
24
|
+
LimitExceededUser: 'limit_exceeded_user',
|
25
|
+
ReadOnly: 'read_only',
|
26
|
+
UnknownDefaultOpenApi: '11184809'
|
27
|
+
};
|
28
|
+
export function LicenseSummaryStatusEnumFromJSON(json) {
|
29
|
+
return LicenseSummaryStatusEnumFromJSONTyped(json, false);
|
30
|
+
}
|
31
|
+
export function LicenseSummaryStatusEnumFromJSONTyped(json, ignoreDiscriminator) {
|
32
|
+
return json;
|
33
|
+
}
|
34
|
+
export function LicenseSummaryStatusEnumToJSON(value) {
|
35
|
+
return value;
|
36
|
+
}
|
@@ -47,7 +47,9 @@ export declare const ModelEnum: {
|
|
47
47
|
readonly SourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
|
48
48
|
readonly SourcesOauthGroupoauthsourceconnection: "authentik_sources_oauth.groupoauthsourceconnection";
|
49
49
|
readonly SourcesPlexPlexsource: "authentik_sources_plex.plexsource";
|
50
|
-
readonly
|
50
|
+
readonly SourcesPlexPlexsourcepropertymapping: "authentik_sources_plex.plexsourcepropertymapping";
|
51
|
+
readonly SourcesPlexUserplexsourceconnection: "authentik_sources_plex.userplexsourceconnection";
|
52
|
+
readonly SourcesPlexGroupplexsourceconnection: "authentik_sources_plex.groupplexsourceconnection";
|
51
53
|
readonly SourcesSamlSamlsource: "authentik_sources_saml.samlsource";
|
52
54
|
readonly SourcesSamlSamlsourcepropertymapping: "authentik_sources_saml.samlsourcepropertymapping";
|
53
55
|
readonly SourcesSamlUsersamlsourceconnection: "authentik_sources_saml.usersamlsourceconnection";
|
@@ -49,7 +49,9 @@ export const ModelEnum = {
|
|
49
49
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
50
50
|
SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
|
51
51
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
52
|
-
|
52
|
+
SourcesPlexPlexsourcepropertymapping: 'authentik_sources_plex.plexsourcepropertymapping',
|
53
|
+
SourcesPlexUserplexsourceconnection: 'authentik_sources_plex.userplexsourceconnection',
|
54
|
+
SourcesPlexGroupplexsourceconnection: 'authentik_sources_plex.groupplexsourceconnection',
|
53
55
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
54
56
|
SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
|
55
57
|
SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.6.3
|
6
|
+
* Contact: hello@goauthentik.io
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
import type { GroupPlexSourceConnection } from './GroupPlexSourceConnection';
|
13
|
+
import type { Pagination } from './Pagination';
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
* @export
|
17
|
+
* @interface PaginatedGroupPlexSourceConnectionList
|
18
|
+
*/
|
19
|
+
export interface PaginatedGroupPlexSourceConnectionList {
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* @type {Pagination}
|
23
|
+
* @memberof PaginatedGroupPlexSourceConnectionList
|
24
|
+
*/
|
25
|
+
pagination: Pagination;
|
26
|
+
/**
|
27
|
+
*
|
28
|
+
* @type {Array<GroupPlexSourceConnection>}
|
29
|
+
* @memberof PaginatedGroupPlexSourceConnectionList
|
30
|
+
*/
|
31
|
+
results: Array<GroupPlexSourceConnection>;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* Check if a given object implements the PaginatedGroupPlexSourceConnectionList interface.
|
35
|
+
*/
|
36
|
+
export declare function instanceOfPaginatedGroupPlexSourceConnectionList(value: object): boolean;
|
37
|
+
export declare function PaginatedGroupPlexSourceConnectionListFromJSON(json: any): PaginatedGroupPlexSourceConnectionList;
|
38
|
+
export declare function PaginatedGroupPlexSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupPlexSourceConnectionList;
|
39
|
+
export declare function PaginatedGroupPlexSourceConnectionListToJSON(value?: PaginatedGroupPlexSourceConnectionList | null): any;
|
@@ -0,0 +1,48 @@
|
|
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
|
+
import { GroupPlexSourceConnectionFromJSON, GroupPlexSourceConnectionToJSON, } from './GroupPlexSourceConnection';
|
15
|
+
import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
|
16
|
+
/**
|
17
|
+
* Check if a given object implements the PaginatedGroupPlexSourceConnectionList interface.
|
18
|
+
*/
|
19
|
+
export function instanceOfPaginatedGroupPlexSourceConnectionList(value) {
|
20
|
+
let isInstance = true;
|
21
|
+
isInstance = isInstance && "pagination" in value;
|
22
|
+
isInstance = isInstance && "results" in value;
|
23
|
+
return isInstance;
|
24
|
+
}
|
25
|
+
export function PaginatedGroupPlexSourceConnectionListFromJSON(json) {
|
26
|
+
return PaginatedGroupPlexSourceConnectionListFromJSONTyped(json, false);
|
27
|
+
}
|
28
|
+
export function PaginatedGroupPlexSourceConnectionListFromJSONTyped(json, ignoreDiscriminator) {
|
29
|
+
if ((json === undefined) || (json === null)) {
|
30
|
+
return json;
|
31
|
+
}
|
32
|
+
return {
|
33
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
34
|
+
'results': (json['results'].map(GroupPlexSourceConnectionFromJSON)),
|
35
|
+
};
|
36
|
+
}
|
37
|
+
export function PaginatedGroupPlexSourceConnectionListToJSON(value) {
|
38
|
+
if (value === undefined) {
|
39
|
+
return undefined;
|
40
|
+
}
|
41
|
+
if (value === null) {
|
42
|
+
return null;
|
43
|
+
}
|
44
|
+
return {
|
45
|
+
'pagination': PaginationToJSON(value.pagination),
|
46
|
+
'results': (value.results.map(GroupPlexSourceConnectionToJSON)),
|
47
|
+
};
|
48
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.6.3
|
6
|
+
* Contact: hello@goauthentik.io
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
import type { Pagination } from './Pagination';
|
13
|
+
import type { PlexSourcePropertyMapping } from './PlexSourcePropertyMapping';
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
* @export
|
17
|
+
* @interface PaginatedPlexSourcePropertyMappingList
|
18
|
+
*/
|
19
|
+
export interface PaginatedPlexSourcePropertyMappingList {
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* @type {Pagination}
|
23
|
+
* @memberof PaginatedPlexSourcePropertyMappingList
|
24
|
+
*/
|
25
|
+
pagination: Pagination;
|
26
|
+
/**
|
27
|
+
*
|
28
|
+
* @type {Array<PlexSourcePropertyMapping>}
|
29
|
+
* @memberof PaginatedPlexSourcePropertyMappingList
|
30
|
+
*/
|
31
|
+
results: Array<PlexSourcePropertyMapping>;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* Check if a given object implements the PaginatedPlexSourcePropertyMappingList interface.
|
35
|
+
*/
|
36
|
+
export declare function instanceOfPaginatedPlexSourcePropertyMappingList(value: object): boolean;
|
37
|
+
export declare function PaginatedPlexSourcePropertyMappingListFromJSON(json: any): PaginatedPlexSourcePropertyMappingList;
|
38
|
+
export declare function PaginatedPlexSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPlexSourcePropertyMappingList;
|
39
|
+
export declare function PaginatedPlexSourcePropertyMappingListToJSON(value?: PaginatedPlexSourcePropertyMappingList | null): any;
|
@@ -0,0 +1,48 @@
|
|
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
|
+
import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
|
15
|
+
import { PlexSourcePropertyMappingFromJSON, PlexSourcePropertyMappingToJSON, } from './PlexSourcePropertyMapping';
|
16
|
+
/**
|
17
|
+
* Check if a given object implements the PaginatedPlexSourcePropertyMappingList interface.
|
18
|
+
*/
|
19
|
+
export function instanceOfPaginatedPlexSourcePropertyMappingList(value) {
|
20
|
+
let isInstance = true;
|
21
|
+
isInstance = isInstance && "pagination" in value;
|
22
|
+
isInstance = isInstance && "results" in value;
|
23
|
+
return isInstance;
|
24
|
+
}
|
25
|
+
export function PaginatedPlexSourcePropertyMappingListFromJSON(json) {
|
26
|
+
return PaginatedPlexSourcePropertyMappingListFromJSONTyped(json, false);
|
27
|
+
}
|
28
|
+
export function PaginatedPlexSourcePropertyMappingListFromJSONTyped(json, ignoreDiscriminator) {
|
29
|
+
if ((json === undefined) || (json === null)) {
|
30
|
+
return json;
|
31
|
+
}
|
32
|
+
return {
|
33
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
34
|
+
'results': (json['results'].map(PlexSourcePropertyMappingFromJSON)),
|
35
|
+
};
|
36
|
+
}
|
37
|
+
export function PaginatedPlexSourcePropertyMappingListToJSON(value) {
|
38
|
+
if (value === undefined) {
|
39
|
+
return undefined;
|
40
|
+
}
|
41
|
+
if (value === null) {
|
42
|
+
return null;
|
43
|
+
}
|
44
|
+
return {
|
45
|
+
'pagination': PaginationToJSON(value.pagination),
|
46
|
+
'results': (value.results.map(PlexSourcePropertyMappingToJSON)),
|
47
|
+
};
|
48
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.6.3
|
6
|
+
* Contact: hello@goauthentik.io
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
import type { Pagination } from './Pagination';
|
13
|
+
import type { UserPlexSourceConnection } from './UserPlexSourceConnection';
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
* @export
|
17
|
+
* @interface PaginatedUserPlexSourceConnectionList
|
18
|
+
*/
|
19
|
+
export interface PaginatedUserPlexSourceConnectionList {
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* @type {Pagination}
|
23
|
+
* @memberof PaginatedUserPlexSourceConnectionList
|
24
|
+
*/
|
25
|
+
pagination: Pagination;
|
26
|
+
/**
|
27
|
+
*
|
28
|
+
* @type {Array<UserPlexSourceConnection>}
|
29
|
+
* @memberof PaginatedUserPlexSourceConnectionList
|
30
|
+
*/
|
31
|
+
results: Array<UserPlexSourceConnection>;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* Check if a given object implements the PaginatedUserPlexSourceConnectionList interface.
|
35
|
+
*/
|
36
|
+
export declare function instanceOfPaginatedUserPlexSourceConnectionList(value: object): boolean;
|
37
|
+
export declare function PaginatedUserPlexSourceConnectionListFromJSON(json: any): PaginatedUserPlexSourceConnectionList;
|
38
|
+
export declare function PaginatedUserPlexSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserPlexSourceConnectionList;
|
39
|
+
export declare function PaginatedUserPlexSourceConnectionListToJSON(value?: PaginatedUserPlexSourceConnectionList | null): any;
|
@@ -12,29 +12,29 @@
|
|
12
12
|
* Do not edit the class manually.
|
13
13
|
*/
|
14
14
|
import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
|
15
|
-
import {
|
15
|
+
import { UserPlexSourceConnectionFromJSON, UserPlexSourceConnectionToJSON, } from './UserPlexSourceConnection';
|
16
16
|
/**
|
17
|
-
* Check if a given object implements the
|
17
|
+
* Check if a given object implements the PaginatedUserPlexSourceConnectionList interface.
|
18
18
|
*/
|
19
|
-
export function
|
19
|
+
export function instanceOfPaginatedUserPlexSourceConnectionList(value) {
|
20
20
|
let isInstance = true;
|
21
21
|
isInstance = isInstance && "pagination" in value;
|
22
22
|
isInstance = isInstance && "results" in value;
|
23
23
|
return isInstance;
|
24
24
|
}
|
25
|
-
export function
|
26
|
-
return
|
25
|
+
export function PaginatedUserPlexSourceConnectionListFromJSON(json) {
|
26
|
+
return PaginatedUserPlexSourceConnectionListFromJSONTyped(json, false);
|
27
27
|
}
|
28
|
-
export function
|
28
|
+
export function PaginatedUserPlexSourceConnectionListFromJSONTyped(json, ignoreDiscriminator) {
|
29
29
|
if ((json === undefined) || (json === null)) {
|
30
30
|
return json;
|
31
31
|
}
|
32
32
|
return {
|
33
33
|
'pagination': PaginationFromJSON(json['pagination']),
|
34
|
-
'results': (json['results'].map(
|
34
|
+
'results': (json['results'].map(UserPlexSourceConnectionFromJSON)),
|
35
35
|
};
|
36
36
|
}
|
37
|
-
export function
|
37
|
+
export function PaginatedUserPlexSourceConnectionListToJSON(value) {
|
38
38
|
if (value === undefined) {
|
39
39
|
return undefined;
|
40
40
|
}
|
@@ -43,6 +43,6 @@ export function PaginatedPlexSourceConnectionListToJSON(value) {
|
|
43
43
|
}
|
44
44
|
return {
|
45
45
|
'pagination': PaginationToJSON(value.pagination),
|
46
|
-
'results': (value.results.map(
|
46
|
+
'results': (value.results.map(UserPlexSourceConnectionToJSON)),
|
47
47
|
};
|
48
48
|
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.6.3
|
6
|
+
* Contact: hello@goauthentik.io
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
* PlexSourcePropertyMapping Serializer
|
14
|
+
* @export
|
15
|
+
* @interface PatchedPlexSourcePropertyMappingRequest
|
16
|
+
*/
|
17
|
+
export interface PatchedPlexSourcePropertyMappingRequest {
|
18
|
+
/**
|
19
|
+
* 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.
|
20
|
+
* @type {string}
|
21
|
+
* @memberof PatchedPlexSourcePropertyMappingRequest
|
22
|
+
*/
|
23
|
+
managed?: string | null;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {string}
|
27
|
+
* @memberof PatchedPlexSourcePropertyMappingRequest
|
28
|
+
*/
|
29
|
+
name?: string;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {string}
|
33
|
+
* @memberof PatchedPlexSourcePropertyMappingRequest
|
34
|
+
*/
|
35
|
+
expression?: string;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Check if a given object implements the PatchedPlexSourcePropertyMappingRequest interface.
|
39
|
+
*/
|
40
|
+
export declare function instanceOfPatchedPlexSourcePropertyMappingRequest(value: object): boolean;
|
41
|
+
export declare function PatchedPlexSourcePropertyMappingRequestFromJSON(json: any): PatchedPlexSourcePropertyMappingRequest;
|
42
|
+
export declare function PatchedPlexSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPlexSourcePropertyMappingRequest;
|
43
|
+
export declare function PatchedPlexSourcePropertyMappingRequestToJSON(value?: PatchedPlexSourcePropertyMappingRequest | null): any;
|
@@ -0,0 +1,47 @@
|
|
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
|
+
import { exists } from '../runtime';
|
15
|
+
/**
|
16
|
+
* Check if a given object implements the PatchedPlexSourcePropertyMappingRequest interface.
|
17
|
+
*/
|
18
|
+
export function instanceOfPatchedPlexSourcePropertyMappingRequest(value) {
|
19
|
+
let isInstance = true;
|
20
|
+
return isInstance;
|
21
|
+
}
|
22
|
+
export function PatchedPlexSourcePropertyMappingRequestFromJSON(json) {
|
23
|
+
return PatchedPlexSourcePropertyMappingRequestFromJSONTyped(json, false);
|
24
|
+
}
|
25
|
+
export function PatchedPlexSourcePropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
|
26
|
+
if ((json === undefined) || (json === null)) {
|
27
|
+
return json;
|
28
|
+
}
|
29
|
+
return {
|
30
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
31
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
32
|
+
'expression': !exists(json, 'expression') ? undefined : json['expression'],
|
33
|
+
};
|
34
|
+
}
|
35
|
+
export function PatchedPlexSourcePropertyMappingRequestToJSON(value) {
|
36
|
+
if (value === undefined) {
|
37
|
+
return undefined;
|
38
|
+
}
|
39
|
+
if (value === null) {
|
40
|
+
return null;
|
41
|
+
}
|
42
|
+
return {
|
43
|
+
'managed': value.managed,
|
44
|
+
'name': value.name,
|
45
|
+
'expression': value.expression,
|
46
|
+
};
|
47
|
+
}
|
@@ -9,6 +9,7 @@
|
|
9
9
|
* https://openapi-generator.tech
|
10
10
|
* Do not edit the class manually.
|
11
11
|
*/
|
12
|
+
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
12
13
|
import type { PolicyEngineMode } from './PolicyEngineMode';
|
13
14
|
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
14
15
|
/**
|
@@ -77,6 +78,12 @@ export interface PatchedPlexSourceRequest {
|
|
77
78
|
* @memberof PatchedPlexSourceRequest
|
78
79
|
*/
|
79
80
|
userPathTemplate?: string;
|
81
|
+
/**
|
82
|
+
*
|
83
|
+
* @type {GroupMatchingModeEnum}
|
84
|
+
* @memberof PatchedPlexSourceRequest
|
85
|
+
*/
|
86
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
80
87
|
/**
|
81
88
|
* Client identifier used to talk to Plex.
|
82
89
|
* @type {string}
|
@@ -12,6 +12,7 @@
|
|
12
12
|
* Do not edit the class manually.
|
13
13
|
*/
|
14
14
|
import { exists } from '../runtime';
|
15
|
+
import { GroupMatchingModeEnumFromJSON, GroupMatchingModeEnumToJSON, } from './GroupMatchingModeEnum';
|
15
16
|
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
|
16
17
|
import { UserMatchingModeEnumFromJSON, UserMatchingModeEnumToJSON, } from './UserMatchingModeEnum';
|
17
18
|
/**
|
@@ -39,6 +40,7 @@ export function PatchedPlexSourceRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
39
40
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
40
41
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
41
42
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
43
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
42
44
|
'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
|
43
45
|
'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
|
44
46
|
'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
|
@@ -63,6 +65,7 @@ export function PatchedPlexSourceRequestToJSON(value) {
|
|
63
65
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
64
66
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
65
67
|
'user_path_template': value.userPathTemplate,
|
68
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
66
69
|
'client_id': value.clientId,
|
67
70
|
'allowed_servers': value.allowedServers,
|
68
71
|
'allow_friends': value.allowFriends,
|