@goauthentik/api 2024.6.3-1723050887 → 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/PatchedSAMLSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.js +2 -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/SAMLSource.d.ts +6 -0
- package/dist/esm/models/SAMLSource.js +2 -0
- package/dist/esm/models/SAMLSourceRequest.d.ts +6 -0
- package/dist/esm/models/SAMLSourceRequest.js +2 -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/PatchedSAMLSourceRequest.d.ts +6 -0
- package/dist/models/PatchedSAMLSourceRequest.js +2 -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/SAMLSource.d.ts +6 -0
- package/dist/models/SAMLSource.js +2 -0
- package/dist/models/SAMLSourceRequest.d.ts +6 -0
- package/dist/models/SAMLSourceRequest.js +2 -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/PatchedSAMLSourceRequest.ts +8 -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/SAMLSource.ts +8 -0
- package/src/models/SAMLSourceRequest.ts +8 -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,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
9
|
+
* Contact: hello@goauthentik.io
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.PatchedUserPlexSourceConnectionRequestToJSON = exports.PatchedUserPlexSourceConnectionRequestFromJSONTyped = exports.PatchedUserPlexSourceConnectionRequestFromJSON = exports.instanceOfPatchedUserPlexSourceConnectionRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the PatchedUserPlexSourceConnectionRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfPatchedUserPlexSourceConnectionRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
return isInstance;
|
24
|
+
}
|
25
|
+
exports.instanceOfPatchedUserPlexSourceConnectionRequest = instanceOfPatchedUserPlexSourceConnectionRequest;
|
26
|
+
function PatchedUserPlexSourceConnectionRequestFromJSON(json) {
|
27
|
+
return PatchedUserPlexSourceConnectionRequestFromJSONTyped(json, false);
|
28
|
+
}
|
29
|
+
exports.PatchedUserPlexSourceConnectionRequestFromJSON = PatchedUserPlexSourceConnectionRequestFromJSON;
|
30
|
+
function PatchedUserPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
31
|
+
if ((json === undefined) || (json === null)) {
|
32
|
+
return json;
|
33
|
+
}
|
34
|
+
return {
|
35
|
+
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
36
|
+
'plexToken': !(0, runtime_1.exists)(json, 'plex_token') ? undefined : json['plex_token'],
|
37
|
+
};
|
38
|
+
}
|
39
|
+
exports.PatchedUserPlexSourceConnectionRequestFromJSONTyped = PatchedUserPlexSourceConnectionRequestFromJSONTyped;
|
40
|
+
function PatchedUserPlexSourceConnectionRequestToJSON(value) {
|
41
|
+
if (value === undefined) {
|
42
|
+
return undefined;
|
43
|
+
}
|
44
|
+
if (value === null) {
|
45
|
+
return null;
|
46
|
+
}
|
47
|
+
return {
|
48
|
+
'identifier': value.identifier,
|
49
|
+
'plex_token': value.plexToken,
|
50
|
+
};
|
51
|
+
}
|
52
|
+
exports.PatchedUserPlexSourceConnectionRequestToJSON = PatchedUserPlexSourceConnectionRequestToJSON;
|
@@ -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
|
/**
|
@@ -119,6 +120,12 @@ export interface PlexSource {
|
|
119
120
|
* @memberof PlexSource
|
120
121
|
*/
|
121
122
|
readonly icon: string;
|
123
|
+
/**
|
124
|
+
*
|
125
|
+
* @type {GroupMatchingModeEnum}
|
126
|
+
* @memberof PlexSource
|
127
|
+
*/
|
128
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
122
129
|
/**
|
123
130
|
* Client identifier used to talk to Plex.
|
124
131
|
* @type {string}
|
@@ -15,6 +15,7 @@
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
16
|
exports.PlexSourceToJSON = exports.PlexSourceFromJSONTyped = exports.PlexSourceFromJSON = exports.instanceOfPlexSource = void 0;
|
17
17
|
const runtime_1 = require("../runtime");
|
18
|
+
const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
|
18
19
|
const PolicyEngineMode_1 = require("./PolicyEngineMode");
|
19
20
|
const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
|
20
21
|
/**
|
@@ -61,6 +62,7 @@ function PlexSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
62
|
'managed': json['managed'],
|
62
63
|
'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
|
63
64
|
'icon': json['icon'],
|
65
|
+
'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
|
64
66
|
'clientId': !(0, runtime_1.exists)(json, 'client_id') ? undefined : json['client_id'],
|
65
67
|
'allowedServers': !(0, runtime_1.exists)(json, 'allowed_servers') ? undefined : json['allowed_servers'],
|
66
68
|
'allowFriends': !(0, runtime_1.exists)(json, 'allow_friends') ? undefined : json['allow_friends'],
|
@@ -86,6 +88,7 @@ function PlexSourceToJSON(value) {
|
|
86
88
|
'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
|
87
89
|
'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
|
88
90
|
'user_path_template': value.userPathTemplate,
|
91
|
+
'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
|
89
92
|
'client_id': value.clientId,
|
90
93
|
'allowed_servers': value.allowedServers,
|
91
94
|
'allow_friends': value.allowFriends,
|
@@ -0,0 +1,73 @@
|
|
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 PlexSourcePropertyMapping
|
16
|
+
*/
|
17
|
+
export interface PlexSourcePropertyMapping {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof PlexSourcePropertyMapping
|
22
|
+
*/
|
23
|
+
readonly pk: string;
|
24
|
+
/**
|
25
|
+
* 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.
|
26
|
+
* @type {string}
|
27
|
+
* @memberof PlexSourcePropertyMapping
|
28
|
+
*/
|
29
|
+
managed?: string | null;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {string}
|
33
|
+
* @memberof PlexSourcePropertyMapping
|
34
|
+
*/
|
35
|
+
name: string;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @type {string}
|
39
|
+
* @memberof PlexSourcePropertyMapping
|
40
|
+
*/
|
41
|
+
expression: string;
|
42
|
+
/**
|
43
|
+
* Get object's component so that we know how to edit the object
|
44
|
+
* @type {string}
|
45
|
+
* @memberof PlexSourcePropertyMapping
|
46
|
+
*/
|
47
|
+
readonly component: string;
|
48
|
+
/**
|
49
|
+
* Return object's verbose_name
|
50
|
+
* @type {string}
|
51
|
+
* @memberof PlexSourcePropertyMapping
|
52
|
+
*/
|
53
|
+
readonly verboseName: string;
|
54
|
+
/**
|
55
|
+
* Return object's plural verbose_name
|
56
|
+
* @type {string}
|
57
|
+
* @memberof PlexSourcePropertyMapping
|
58
|
+
*/
|
59
|
+
readonly verboseNamePlural: string;
|
60
|
+
/**
|
61
|
+
* Return internal model name
|
62
|
+
* @type {string}
|
63
|
+
* @memberof PlexSourcePropertyMapping
|
64
|
+
*/
|
65
|
+
readonly metaModelName: string;
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* Check if a given object implements the PlexSourcePropertyMapping interface.
|
69
|
+
*/
|
70
|
+
export declare function instanceOfPlexSourcePropertyMapping(value: object): boolean;
|
71
|
+
export declare function PlexSourcePropertyMappingFromJSON(json: any): PlexSourcePropertyMapping;
|
72
|
+
export declare function PlexSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlexSourcePropertyMapping;
|
73
|
+
export declare function PlexSourcePropertyMappingToJSON(value?: PlexSourcePropertyMapping | null): any;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
9
|
+
* Contact: hello@goauthentik.io
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.PlexSourcePropertyMappingToJSON = exports.PlexSourcePropertyMappingFromJSONTyped = exports.PlexSourcePropertyMappingFromJSON = exports.instanceOfPlexSourcePropertyMapping = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the PlexSourcePropertyMapping interface.
|
20
|
+
*/
|
21
|
+
function instanceOfPlexSourcePropertyMapping(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "pk" in value;
|
24
|
+
isInstance = isInstance && "name" in value;
|
25
|
+
isInstance = isInstance && "expression" in value;
|
26
|
+
isInstance = isInstance && "component" in value;
|
27
|
+
isInstance = isInstance && "verboseName" in value;
|
28
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
29
|
+
isInstance = isInstance && "metaModelName" in value;
|
30
|
+
return isInstance;
|
31
|
+
}
|
32
|
+
exports.instanceOfPlexSourcePropertyMapping = instanceOfPlexSourcePropertyMapping;
|
33
|
+
function PlexSourcePropertyMappingFromJSON(json) {
|
34
|
+
return PlexSourcePropertyMappingFromJSONTyped(json, false);
|
35
|
+
}
|
36
|
+
exports.PlexSourcePropertyMappingFromJSON = PlexSourcePropertyMappingFromJSON;
|
37
|
+
function PlexSourcePropertyMappingFromJSONTyped(json, ignoreDiscriminator) {
|
38
|
+
if ((json === undefined) || (json === null)) {
|
39
|
+
return json;
|
40
|
+
}
|
41
|
+
return {
|
42
|
+
'pk': json['pk'],
|
43
|
+
'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
|
44
|
+
'name': json['name'],
|
45
|
+
'expression': json['expression'],
|
46
|
+
'component': json['component'],
|
47
|
+
'verboseName': json['verbose_name'],
|
48
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
49
|
+
'metaModelName': json['meta_model_name'],
|
50
|
+
};
|
51
|
+
}
|
52
|
+
exports.PlexSourcePropertyMappingFromJSONTyped = PlexSourcePropertyMappingFromJSONTyped;
|
53
|
+
function PlexSourcePropertyMappingToJSON(value) {
|
54
|
+
if (value === undefined) {
|
55
|
+
return undefined;
|
56
|
+
}
|
57
|
+
if (value === null) {
|
58
|
+
return null;
|
59
|
+
}
|
60
|
+
return {
|
61
|
+
'managed': value.managed,
|
62
|
+
'name': value.name,
|
63
|
+
'expression': value.expression,
|
64
|
+
};
|
65
|
+
}
|
66
|
+
exports.PlexSourcePropertyMappingToJSON = PlexSourcePropertyMappingToJSON;
|
@@ -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 PlexSourcePropertyMappingRequest
|
16
|
+
*/
|
17
|
+
export interface PlexSourcePropertyMappingRequest {
|
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 PlexSourcePropertyMappingRequest
|
22
|
+
*/
|
23
|
+
managed?: string | null;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {string}
|
27
|
+
* @memberof PlexSourcePropertyMappingRequest
|
28
|
+
*/
|
29
|
+
name: string;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {string}
|
33
|
+
* @memberof PlexSourcePropertyMappingRequest
|
34
|
+
*/
|
35
|
+
expression: string;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Check if a given object implements the PlexSourcePropertyMappingRequest interface.
|
39
|
+
*/
|
40
|
+
export declare function instanceOfPlexSourcePropertyMappingRequest(value: object): boolean;
|
41
|
+
export declare function PlexSourcePropertyMappingRequestFromJSON(json: any): PlexSourcePropertyMappingRequest;
|
42
|
+
export declare function PlexSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlexSourcePropertyMappingRequest;
|
43
|
+
export declare function PlexSourcePropertyMappingRequestToJSON(value?: PlexSourcePropertyMappingRequest | null): any;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
9
|
+
* Contact: hello@goauthentik.io
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.PlexSourcePropertyMappingRequestToJSON = exports.PlexSourcePropertyMappingRequestFromJSONTyped = exports.PlexSourcePropertyMappingRequestFromJSON = exports.instanceOfPlexSourcePropertyMappingRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the PlexSourcePropertyMappingRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfPlexSourcePropertyMappingRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "name" in value;
|
24
|
+
isInstance = isInstance && "expression" in value;
|
25
|
+
return isInstance;
|
26
|
+
}
|
27
|
+
exports.instanceOfPlexSourcePropertyMappingRequest = instanceOfPlexSourcePropertyMappingRequest;
|
28
|
+
function PlexSourcePropertyMappingRequestFromJSON(json) {
|
29
|
+
return PlexSourcePropertyMappingRequestFromJSONTyped(json, false);
|
30
|
+
}
|
31
|
+
exports.PlexSourcePropertyMappingRequestFromJSON = PlexSourcePropertyMappingRequestFromJSON;
|
32
|
+
function PlexSourcePropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
|
33
|
+
if ((json === undefined) || (json === null)) {
|
34
|
+
return json;
|
35
|
+
}
|
36
|
+
return {
|
37
|
+
'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
|
38
|
+
'name': json['name'],
|
39
|
+
'expression': json['expression'],
|
40
|
+
};
|
41
|
+
}
|
42
|
+
exports.PlexSourcePropertyMappingRequestFromJSONTyped = PlexSourcePropertyMappingRequestFromJSONTyped;
|
43
|
+
function PlexSourcePropertyMappingRequestToJSON(value) {
|
44
|
+
if (value === undefined) {
|
45
|
+
return undefined;
|
46
|
+
}
|
47
|
+
if (value === null) {
|
48
|
+
return null;
|
49
|
+
}
|
50
|
+
return {
|
51
|
+
'managed': value.managed,
|
52
|
+
'name': value.name,
|
53
|
+
'expression': value.expression,
|
54
|
+
};
|
55
|
+
}
|
56
|
+
exports.PlexSourcePropertyMappingRequestToJSON = PlexSourcePropertyMappingRequestToJSON;
|
@@ -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 PlexSourceRequest {
|
|
77
78
|
* @memberof PlexSourceRequest
|
78
79
|
*/
|
79
80
|
userPathTemplate?: string;
|
81
|
+
/**
|
82
|
+
*
|
83
|
+
* @type {GroupMatchingModeEnum}
|
84
|
+
* @memberof PlexSourceRequest
|
85
|
+
*/
|
86
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
80
87
|
/**
|
81
88
|
* Client identifier used to talk to Plex.
|
82
89
|
* @type {string}
|
@@ -15,6 +15,7 @@
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
16
|
exports.PlexSourceRequestToJSON = exports.PlexSourceRequestFromJSONTyped = exports.PlexSourceRequestFromJSON = exports.instanceOfPlexSourceRequest = void 0;
|
17
17
|
const runtime_1 = require("../runtime");
|
18
|
+
const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
|
18
19
|
const PolicyEngineMode_1 = require("./PolicyEngineMode");
|
19
20
|
const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
|
20
21
|
/**
|
@@ -47,6 +48,7 @@ function PlexSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
48
|
'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
|
48
49
|
'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
|
49
50
|
'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
|
51
|
+
'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
|
50
52
|
'clientId': !(0, runtime_1.exists)(json, 'client_id') ? undefined : json['client_id'],
|
51
53
|
'allowedServers': !(0, runtime_1.exists)(json, 'allowed_servers') ? undefined : json['allowed_servers'],
|
52
54
|
'allowFriends': !(0, runtime_1.exists)(json, 'allow_friends') ? undefined : json['allow_friends'],
|
@@ -72,6 +74,7 @@ function PlexSourceRequestToJSON(value) {
|
|
72
74
|
'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
|
73
75
|
'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
|
74
76
|
'user_path_template': value.userPathTemplate,
|
77
|
+
'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
|
75
78
|
'client_id': value.clientId,
|
76
79
|
'allowed_servers': value.allowedServers,
|
77
80
|
'allow_friends': value.allowFriends,
|
@@ -202,6 +202,12 @@ export interface SAMLSource {
|
|
202
202
|
* @memberof SAMLSource
|
203
203
|
*/
|
204
204
|
temporaryUserDeleteAfter?: string;
|
205
|
+
/**
|
206
|
+
* When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
|
207
|
+
* @type {string}
|
208
|
+
* @memberof SAMLSource
|
209
|
+
*/
|
210
|
+
encryptionKp?: string | null;
|
205
211
|
}
|
206
212
|
/**
|
207
213
|
* Check if a given object implements the SAMLSource interface.
|
@@ -80,6 +80,7 @@ function SAMLSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
80
80
|
'digestAlgorithm': !(0, runtime_1.exists)(json, 'digest_algorithm') ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
|
81
81
|
'signatureAlgorithm': !(0, runtime_1.exists)(json, 'signature_algorithm') ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
|
82
82
|
'temporaryUserDeleteAfter': !(0, runtime_1.exists)(json, 'temporary_user_delete_after') ? undefined : json['temporary_user_delete_after'],
|
83
|
+
'encryptionKp': !(0, runtime_1.exists)(json, 'encryption_kp') ? undefined : json['encryption_kp'],
|
83
84
|
};
|
84
85
|
}
|
85
86
|
exports.SAMLSourceFromJSONTyped = SAMLSourceFromJSONTyped;
|
@@ -114,6 +115,7 @@ function SAMLSourceToJSON(value) {
|
|
114
115
|
'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value.digestAlgorithm),
|
115
116
|
'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value.signatureAlgorithm),
|
116
117
|
'temporary_user_delete_after': value.temporaryUserDeleteAfter,
|
118
|
+
'encryption_kp': value.encryptionKp,
|
117
119
|
};
|
118
120
|
}
|
119
121
|
exports.SAMLSourceToJSON = SAMLSourceToJSON;
|
@@ -160,6 +160,12 @@ export interface SAMLSourceRequest {
|
|
160
160
|
* @memberof SAMLSourceRequest
|
161
161
|
*/
|
162
162
|
temporaryUserDeleteAfter?: string;
|
163
|
+
/**
|
164
|
+
* When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
|
165
|
+
* @type {string}
|
166
|
+
* @memberof SAMLSourceRequest
|
167
|
+
*/
|
168
|
+
encryptionKp?: string | null;
|
163
169
|
}
|
164
170
|
/**
|
165
171
|
* Check if a given object implements the SAMLSourceRequest interface.
|
@@ -66,6 +66,7 @@ function SAMLSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
66
66
|
'digestAlgorithm': !(0, runtime_1.exists)(json, 'digest_algorithm') ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
|
67
67
|
'signatureAlgorithm': !(0, runtime_1.exists)(json, 'signature_algorithm') ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
|
68
68
|
'temporaryUserDeleteAfter': !(0, runtime_1.exists)(json, 'temporary_user_delete_after') ? undefined : json['temporary_user_delete_after'],
|
69
|
+
'encryptionKp': !(0, runtime_1.exists)(json, 'encryption_kp') ? undefined : json['encryption_kp'],
|
69
70
|
};
|
70
71
|
}
|
71
72
|
exports.SAMLSourceRequestFromJSONTyped = SAMLSourceRequestFromJSONTyped;
|
@@ -100,6 +101,7 @@ function SAMLSourceRequestToJSON(value) {
|
|
100
101
|
'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value.digestAlgorithm),
|
101
102
|
'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value.signatureAlgorithm),
|
102
103
|
'temporary_user_delete_after': value.temporaryUserDeleteAfter,
|
104
|
+
'encryption_kp': value.encryptionKp,
|
103
105
|
};
|
104
106
|
}
|
105
107
|
exports.SAMLSourceRequestToJSON = SAMLSourceRequestToJSON;
|
@@ -0,0 +1,56 @@
|
|
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 { Source } from './Source';
|
13
|
+
/**
|
14
|
+
* Plex Source connection Serializer
|
15
|
+
* @export
|
16
|
+
* @interface UserPlexSourceConnection
|
17
|
+
*/
|
18
|
+
export interface UserPlexSourceConnection {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {number}
|
22
|
+
* @memberof UserPlexSourceConnection
|
23
|
+
*/
|
24
|
+
readonly pk: number;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {number}
|
28
|
+
* @memberof UserPlexSourceConnection
|
29
|
+
*/
|
30
|
+
readonly user: number;
|
31
|
+
/**
|
32
|
+
*
|
33
|
+
* @type {Source}
|
34
|
+
* @memberof UserPlexSourceConnection
|
35
|
+
*/
|
36
|
+
readonly source: Source;
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
* @type {Date}
|
40
|
+
* @memberof UserPlexSourceConnection
|
41
|
+
*/
|
42
|
+
readonly created: Date;
|
43
|
+
/**
|
44
|
+
*
|
45
|
+
* @type {string}
|
46
|
+
* @memberof UserPlexSourceConnection
|
47
|
+
*/
|
48
|
+
identifier: string;
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Check if a given object implements the UserPlexSourceConnection interface.
|
52
|
+
*/
|
53
|
+
export declare function instanceOfUserPlexSourceConnection(value: object): boolean;
|
54
|
+
export declare function UserPlexSourceConnectionFromJSON(json: any): UserPlexSourceConnection;
|
55
|
+
export declare function UserPlexSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPlexSourceConnection;
|
56
|
+
export declare function UserPlexSourceConnectionToJSON(value?: UserPlexSourceConnection | null): any;
|
@@ -13,12 +13,12 @@
|
|
13
13
|
* Do not edit the class manually.
|
14
14
|
*/
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
-
exports.
|
16
|
+
exports.UserPlexSourceConnectionToJSON = exports.UserPlexSourceConnectionFromJSONTyped = exports.UserPlexSourceConnectionFromJSON = exports.instanceOfUserPlexSourceConnection = void 0;
|
17
17
|
const Source_1 = require("./Source");
|
18
18
|
/**
|
19
|
-
* Check if a given object implements the
|
19
|
+
* Check if a given object implements the UserPlexSourceConnection interface.
|
20
20
|
*/
|
21
|
-
function
|
21
|
+
function instanceOfUserPlexSourceConnection(value) {
|
22
22
|
let isInstance = true;
|
23
23
|
isInstance = isInstance && "pk" in value;
|
24
24
|
isInstance = isInstance && "user" in value;
|
@@ -27,12 +27,12 @@ function instanceOfPlexSourceConnection(value) {
|
|
27
27
|
isInstance = isInstance && "identifier" in value;
|
28
28
|
return isInstance;
|
29
29
|
}
|
30
|
-
exports.
|
31
|
-
function
|
32
|
-
return
|
30
|
+
exports.instanceOfUserPlexSourceConnection = instanceOfUserPlexSourceConnection;
|
31
|
+
function UserPlexSourceConnectionFromJSON(json) {
|
32
|
+
return UserPlexSourceConnectionFromJSONTyped(json, false);
|
33
33
|
}
|
34
|
-
exports.
|
35
|
-
function
|
34
|
+
exports.UserPlexSourceConnectionFromJSON = UserPlexSourceConnectionFromJSON;
|
35
|
+
function UserPlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
36
36
|
if ((json === undefined) || (json === null)) {
|
37
37
|
return json;
|
38
38
|
}
|
@@ -44,8 +44,8 @@ function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
44
|
'identifier': json['identifier'],
|
45
45
|
};
|
46
46
|
}
|
47
|
-
exports.
|
48
|
-
function
|
47
|
+
exports.UserPlexSourceConnectionFromJSONTyped = UserPlexSourceConnectionFromJSONTyped;
|
48
|
+
function UserPlexSourceConnectionToJSON(value) {
|
49
49
|
if (value === undefined) {
|
50
50
|
return undefined;
|
51
51
|
}
|
@@ -56,4 +56,4 @@ function PlexSourceConnectionToJSON(value) {
|
|
56
56
|
'identifier': value.identifier,
|
57
57
|
};
|
58
58
|
}
|
59
|
-
exports.
|
59
|
+
exports.UserPlexSourceConnectionToJSON = UserPlexSourceConnectionToJSON;
|
@@ -0,0 +1,37 @@
|
|
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
|
+
* Plex Source connection Serializer
|
14
|
+
* @export
|
15
|
+
* @interface UserPlexSourceConnectionRequest
|
16
|
+
*/
|
17
|
+
export interface UserPlexSourceConnectionRequest {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof UserPlexSourceConnectionRequest
|
22
|
+
*/
|
23
|
+
identifier: string;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {string}
|
27
|
+
* @memberof UserPlexSourceConnectionRequest
|
28
|
+
*/
|
29
|
+
plexToken: string;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Check if a given object implements the UserPlexSourceConnectionRequest interface.
|
33
|
+
*/
|
34
|
+
export declare function instanceOfUserPlexSourceConnectionRequest(value: object): boolean;
|
35
|
+
export declare function UserPlexSourceConnectionRequestFromJSON(json: any): UserPlexSourceConnectionRequest;
|
36
|
+
export declare function UserPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPlexSourceConnectionRequest;
|
37
|
+
export declare function UserPlexSourceConnectionRequestToJSON(value?: UserPlexSourceConnectionRequest | null): any;
|
@@ -0,0 +1,53 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
9
|
+
* Contact: hello@goauthentik.io
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.UserPlexSourceConnectionRequestToJSON = exports.UserPlexSourceConnectionRequestFromJSONTyped = exports.UserPlexSourceConnectionRequestFromJSON = exports.instanceOfUserPlexSourceConnectionRequest = void 0;
|
17
|
+
/**
|
18
|
+
* Check if a given object implements the UserPlexSourceConnectionRequest interface.
|
19
|
+
*/
|
20
|
+
function instanceOfUserPlexSourceConnectionRequest(value) {
|
21
|
+
let isInstance = true;
|
22
|
+
isInstance = isInstance && "identifier" in value;
|
23
|
+
isInstance = isInstance && "plexToken" in value;
|
24
|
+
return isInstance;
|
25
|
+
}
|
26
|
+
exports.instanceOfUserPlexSourceConnectionRequest = instanceOfUserPlexSourceConnectionRequest;
|
27
|
+
function UserPlexSourceConnectionRequestFromJSON(json) {
|
28
|
+
return UserPlexSourceConnectionRequestFromJSONTyped(json, false);
|
29
|
+
}
|
30
|
+
exports.UserPlexSourceConnectionRequestFromJSON = UserPlexSourceConnectionRequestFromJSON;
|
31
|
+
function UserPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
32
|
+
if ((json === undefined) || (json === null)) {
|
33
|
+
return json;
|
34
|
+
}
|
35
|
+
return {
|
36
|
+
'identifier': json['identifier'],
|
37
|
+
'plexToken': json['plex_token'],
|
38
|
+
};
|
39
|
+
}
|
40
|
+
exports.UserPlexSourceConnectionRequestFromJSONTyped = UserPlexSourceConnectionRequestFromJSONTyped;
|
41
|
+
function UserPlexSourceConnectionRequestToJSON(value) {
|
42
|
+
if (value === undefined) {
|
43
|
+
return undefined;
|
44
|
+
}
|
45
|
+
if (value === null) {
|
46
|
+
return null;
|
47
|
+
}
|
48
|
+
return {
|
49
|
+
'identifier': value.identifier,
|
50
|
+
'plex_token': value.plexToken,
|
51
|
+
};
|
52
|
+
}
|
53
|
+
exports.UserPlexSourceConnectionRequestToJSON = UserPlexSourceConnectionRequestToJSON;
|