@goauthentik/api 2024.10.5-1734022840 → 2024.10.5-1734528783
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -0
- package/dist/apis/CoreApi.d.ts +86 -1
- package/dist/apis/CoreApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/SourcesApi.d.ts +21 -5
- package/dist/apis/SourcesApi.js +51 -6
- package/dist/esm/apis/CoreApi.d.ts +86 -1
- package/dist/esm/apis/CoreApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/SourcesApi.d.ts +21 -5
- package/dist/esm/apis/SourcesApi.js +52 -7
- package/dist/esm/models/ApplicationEntitlement.d.ts +49 -0
- package/dist/esm/models/ApplicationEntitlement.js +51 -0
- package/dist/esm/models/ApplicationEntitlementRequest.d.ts +43 -0
- package/dist/esm/models/ApplicationEntitlementRequest.js +49 -0
- package/dist/esm/models/GroupKerberosSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupKerberosSourceConnection.js +8 -2
- package/dist/esm/models/GroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupKerberosSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupOAuthSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupOAuthSourceConnection.js +8 -2
- package/dist/esm/models/GroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupOAuthSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupPlexSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupPlexSourceConnection.js +8 -2
- package/dist/esm/models/GroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupPlexSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupSAMLSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupSAMLSourceConnection.js +8 -2
- package/dist/esm/models/GroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupSAMLSourceConnectionRequest.js +49 -0
- package/dist/esm/models/IdentificationChallenge.d.ts +1 -1
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedApplicationEntitlementList.d.ts +39 -0
- package/dist/esm/models/PaginatedApplicationEntitlementList.js +48 -0
- package/dist/esm/models/PatchedApplicationEntitlementRequest.d.ts +43 -0
- package/dist/esm/models/PatchedApplicationEntitlementRequest.js +47 -0
- package/dist/esm/models/PatchedGroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupKerberosSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupOAuthSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupPlexSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupSAMLSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +2 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/PatchedUserSourceConnectionRequest.js +45 -0
- package/dist/esm/models/UserKerberosSourceConnection.d.ts +7 -1
- package/dist/esm/models/UserKerberosSourceConnection.js +4 -1
- package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.js +3 -0
- package/dist/esm/models/UserOAuthSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserOAuthSourceConnection.js +5 -1
- package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserOAuthSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserPlexSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserPlexSourceConnection.js +5 -1
- package/dist/esm/models/UserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserPlexSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserSAMLSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserSAMLSourceConnection.js +5 -1
- package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserSAMLSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserSourceConnection.d.ts +9 -3
- package/dist/esm/models/UserSourceConnection.js +7 -2
- package/dist/esm/models/UserSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/UserSourceConnectionRequest.js +46 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/ApplicationEntitlement.d.ts +49 -0
- package/dist/models/ApplicationEntitlement.js +58 -0
- package/dist/models/ApplicationEntitlementRequest.d.ts +43 -0
- package/dist/models/ApplicationEntitlementRequest.js +56 -0
- package/dist/models/GroupKerberosSourceConnection.d.ts +9 -3
- package/dist/models/GroupKerberosSourceConnection.js +8 -2
- package/dist/models/GroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupKerberosSourceConnectionRequest.js +56 -0
- package/dist/models/GroupOAuthSourceConnection.d.ts +9 -3
- package/dist/models/GroupOAuthSourceConnection.js +8 -2
- package/dist/models/GroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupOAuthSourceConnectionRequest.js +56 -0
- package/dist/models/GroupPlexSourceConnection.d.ts +9 -3
- package/dist/models/GroupPlexSourceConnection.js +8 -2
- package/dist/models/GroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupPlexSourceConnectionRequest.js +56 -0
- package/dist/models/GroupSAMLSourceConnection.d.ts +9 -3
- package/dist/models/GroupSAMLSourceConnection.js +8 -2
- package/dist/models/GroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupSAMLSourceConnectionRequest.js +56 -0
- package/dist/models/IdentificationChallenge.d.ts +1 -1
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedApplicationEntitlementList.d.ts +39 -0
- package/dist/models/PaginatedApplicationEntitlementList.js +55 -0
- package/dist/models/PatchedApplicationEntitlementRequest.d.ts +43 -0
- package/dist/models/PatchedApplicationEntitlementRequest.js +54 -0
- package/dist/models/PatchedGroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupKerberosSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupOAuthSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupPlexSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupSAMLSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +2 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserSourceConnectionRequest.d.ts +37 -0
- package/dist/models/PatchedUserSourceConnectionRequest.js +52 -0
- package/dist/models/UserKerberosSourceConnection.d.ts +7 -1
- package/dist/models/UserKerberosSourceConnection.js +4 -1
- package/dist/models/UserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/models/UserKerberosSourceConnectionRequest.js +3 -0
- package/dist/models/UserOAuthSourceConnection.d.ts +8 -2
- package/dist/models/UserOAuthSourceConnection.js +5 -1
- package/dist/models/UserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserOAuthSourceConnectionRequest.js +6 -0
- package/dist/models/UserPlexSourceConnection.d.ts +8 -2
- package/dist/models/UserPlexSourceConnection.js +5 -1
- package/dist/models/UserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserPlexSourceConnectionRequest.js +6 -0
- package/dist/models/UserSAMLSourceConnection.d.ts +8 -2
- package/dist/models/UserSAMLSourceConnection.js +5 -1
- package/dist/models/UserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserSAMLSourceConnectionRequest.js +6 -0
- package/dist/models/UserSourceConnection.d.ts +9 -3
- package/dist/models/UserSourceConnection.js +7 -2
- package/dist/models/UserSourceConnectionRequest.d.ts +37 -0
- package/dist/models/UserSourceConnectionRequest.js +53 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +350 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/SourcesApi.ts +118 -6
- package/src/models/ApplicationEntitlement.ts +91 -0
- package/src/models/ApplicationEntitlementRequest.ts +83 -0
- package/src/models/GroupKerberosSourceConnection.ts +15 -4
- package/src/models/GroupKerberosSourceConnectionRequest.ts +84 -0
- package/src/models/GroupOAuthSourceConnection.ts +15 -4
- package/src/models/GroupOAuthSourceConnectionRequest.ts +84 -0
- package/src/models/GroupPlexSourceConnection.ts +15 -4
- package/src/models/GroupPlexSourceConnectionRequest.ts +84 -0
- package/src/models/GroupSAMLSourceConnection.ts +15 -4
- package/src/models/GroupSAMLSourceConnectionRequest.ts +84 -0
- package/src/models/IdentificationChallenge.ts +1 -1
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedApplicationEntitlementList.ts +88 -0
- package/src/models/PatchedApplicationEntitlementRequest.ts +81 -0
- package/src/models/PatchedGroupKerberosSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupOAuthSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupPlexSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupSAMLSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +8 -0
- package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserPlexSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserSourceConnectionRequest.ts +73 -0
- package/src/models/UserKerberosSourceConnection.ts +11 -2
- package/src/models/UserKerberosSourceConnectionRequest.ts +9 -0
- package/src/models/UserOAuthSourceConnection.ts +13 -3
- package/src/models/UserOAuthSourceConnectionRequest.ts +18 -0
- package/src/models/UserPlexSourceConnection.ts +13 -3
- package/src/models/UserPlexSourceConnectionRequest.ts +18 -0
- package/src/models/UserSAMLSourceConnection.ts +13 -3
- package/src/models/UserSAMLSourceConnectionRequest.ts +18 -0
- package/src/models/UserSourceConnection.ts +14 -4
- package/src/models/UserSourceConnectionRequest.ts +75 -0
- package/src/models/index.ts +14 -0
|
@@ -37,19 +37,25 @@ export interface GroupKerberosSourceConnection {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof GroupKerberosSourceConnection
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
group: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GroupKerberosSourceConnection
|
|
45
|
+
*/
|
|
46
|
+
source: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Source}
|
|
44
50
|
* @memberof GroupKerberosSourceConnection
|
|
45
51
|
*/
|
|
46
|
-
readonly
|
|
52
|
+
readonly sourceObj: Source;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {string}
|
|
50
56
|
* @memberof GroupKerberosSourceConnection
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
identifier: string;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {Date}
|
|
@@ -66,6 +72,7 @@ export function instanceOfGroupKerberosSourceConnection(value: object): boolean
|
|
|
66
72
|
isInstance = isInstance && "pk" in value;
|
|
67
73
|
isInstance = isInstance && "group" in value;
|
|
68
74
|
isInstance = isInstance && "source" in value;
|
|
75
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
69
76
|
isInstance = isInstance && "identifier" in value;
|
|
70
77
|
isInstance = isInstance && "created" in value;
|
|
71
78
|
|
|
@@ -84,7 +91,8 @@ export function GroupKerberosSourceConnectionFromJSONTyped(json: any, ignoreDisc
|
|
|
84
91
|
|
|
85
92
|
'pk': json['pk'],
|
|
86
93
|
'group': json['group'],
|
|
87
|
-
'source':
|
|
94
|
+
'source': json['source'],
|
|
95
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
88
96
|
'identifier': json['identifier'],
|
|
89
97
|
'created': (new Date(json['created'])),
|
|
90
98
|
};
|
|
@@ -99,6 +107,9 @@ export function GroupKerberosSourceConnectionToJSON(value?: GroupKerberosSourceC
|
|
|
99
107
|
}
|
|
100
108
|
return {
|
|
101
109
|
|
|
110
|
+
'group': value.group,
|
|
111
|
+
'source': value.source,
|
|
112
|
+
'identifier': value.identifier,
|
|
102
113
|
};
|
|
103
114
|
}
|
|
104
115
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
* OAuth Group-Source connection Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GroupKerberosSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupKerberosSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupKerberosSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupKerberosSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GroupKerberosSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GroupKerberosSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGroupKerberosSourceConnectionRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "group" in value;
|
|
48
|
+
isInstance = isInstance && "source" in value;
|
|
49
|
+
isInstance = isInstance && "identifier" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function GroupKerberosSourceConnectionRequestFromJSON(json: any): GroupKerberosSourceConnectionRequest {
|
|
55
|
+
return GroupKerberosSourceConnectionRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GroupKerberosSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupKerberosSourceConnectionRequest {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'group': json['group'],
|
|
65
|
+
'source': json['source'],
|
|
66
|
+
'identifier': json['identifier'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GroupKerberosSourceConnectionRequestToJSON(value?: GroupKerberosSourceConnectionRequest | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'group': value.group,
|
|
80
|
+
'source': value.source,
|
|
81
|
+
'identifier': value.identifier,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -37,19 +37,25 @@ export interface GroupOAuthSourceConnection {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof GroupOAuthSourceConnection
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
group: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GroupOAuthSourceConnection
|
|
45
|
+
*/
|
|
46
|
+
source: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Source}
|
|
44
50
|
* @memberof GroupOAuthSourceConnection
|
|
45
51
|
*/
|
|
46
|
-
readonly
|
|
52
|
+
readonly sourceObj: Source;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {string}
|
|
50
56
|
* @memberof GroupOAuthSourceConnection
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
identifier: string;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {Date}
|
|
@@ -66,6 +72,7 @@ export function instanceOfGroupOAuthSourceConnection(value: object): boolean {
|
|
|
66
72
|
isInstance = isInstance && "pk" in value;
|
|
67
73
|
isInstance = isInstance && "group" in value;
|
|
68
74
|
isInstance = isInstance && "source" in value;
|
|
75
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
69
76
|
isInstance = isInstance && "identifier" in value;
|
|
70
77
|
isInstance = isInstance && "created" in value;
|
|
71
78
|
|
|
@@ -84,7 +91,8 @@ export function GroupOAuthSourceConnectionFromJSONTyped(json: any, ignoreDiscrim
|
|
|
84
91
|
|
|
85
92
|
'pk': json['pk'],
|
|
86
93
|
'group': json['group'],
|
|
87
|
-
'source':
|
|
94
|
+
'source': json['source'],
|
|
95
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
88
96
|
'identifier': json['identifier'],
|
|
89
97
|
'created': (new Date(json['created'])),
|
|
90
98
|
};
|
|
@@ -99,6 +107,9 @@ export function GroupOAuthSourceConnectionToJSON(value?: GroupOAuthSourceConnect
|
|
|
99
107
|
}
|
|
100
108
|
return {
|
|
101
109
|
|
|
110
|
+
'group': value.group,
|
|
111
|
+
'source': value.source,
|
|
112
|
+
'identifier': value.identifier,
|
|
102
113
|
};
|
|
103
114
|
}
|
|
104
115
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
* OAuth Group-Source connection Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GroupOAuthSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupOAuthSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupOAuthSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupOAuthSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GroupOAuthSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GroupOAuthSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGroupOAuthSourceConnectionRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "group" in value;
|
|
48
|
+
isInstance = isInstance && "source" in value;
|
|
49
|
+
isInstance = isInstance && "identifier" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function GroupOAuthSourceConnectionRequestFromJSON(json: any): GroupOAuthSourceConnectionRequest {
|
|
55
|
+
return GroupOAuthSourceConnectionRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GroupOAuthSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupOAuthSourceConnectionRequest {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'group': json['group'],
|
|
65
|
+
'source': json['source'],
|
|
66
|
+
'identifier': json['identifier'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GroupOAuthSourceConnectionRequestToJSON(value?: GroupOAuthSourceConnectionRequest | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'group': value.group,
|
|
80
|
+
'source': value.source,
|
|
81
|
+
'identifier': value.identifier,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -37,19 +37,25 @@ export interface GroupPlexSourceConnection {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof GroupPlexSourceConnection
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
group: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GroupPlexSourceConnection
|
|
45
|
+
*/
|
|
46
|
+
source: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Source}
|
|
44
50
|
* @memberof GroupPlexSourceConnection
|
|
45
51
|
*/
|
|
46
|
-
readonly
|
|
52
|
+
readonly sourceObj: Source;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {string}
|
|
50
56
|
* @memberof GroupPlexSourceConnection
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
identifier: string;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {Date}
|
|
@@ -66,6 +72,7 @@ export function instanceOfGroupPlexSourceConnection(value: object): boolean {
|
|
|
66
72
|
isInstance = isInstance && "pk" in value;
|
|
67
73
|
isInstance = isInstance && "group" in value;
|
|
68
74
|
isInstance = isInstance && "source" in value;
|
|
75
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
69
76
|
isInstance = isInstance && "identifier" in value;
|
|
70
77
|
isInstance = isInstance && "created" in value;
|
|
71
78
|
|
|
@@ -84,7 +91,8 @@ export function GroupPlexSourceConnectionFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
84
91
|
|
|
85
92
|
'pk': json['pk'],
|
|
86
93
|
'group': json['group'],
|
|
87
|
-
'source':
|
|
94
|
+
'source': json['source'],
|
|
95
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
88
96
|
'identifier': json['identifier'],
|
|
89
97
|
'created': (new Date(json['created'])),
|
|
90
98
|
};
|
|
@@ -99,6 +107,9 @@ export function GroupPlexSourceConnectionToJSON(value?: GroupPlexSourceConnectio
|
|
|
99
107
|
}
|
|
100
108
|
return {
|
|
101
109
|
|
|
110
|
+
'group': value.group,
|
|
111
|
+
'source': value.source,
|
|
112
|
+
'identifier': value.identifier,
|
|
102
113
|
};
|
|
103
114
|
}
|
|
104
115
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
* Plex Group-Source connection Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GroupPlexSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupPlexSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupPlexSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupPlexSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GroupPlexSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GroupPlexSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGroupPlexSourceConnectionRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "group" in value;
|
|
48
|
+
isInstance = isInstance && "source" in value;
|
|
49
|
+
isInstance = isInstance && "identifier" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function GroupPlexSourceConnectionRequestFromJSON(json: any): GroupPlexSourceConnectionRequest {
|
|
55
|
+
return GroupPlexSourceConnectionRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GroupPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupPlexSourceConnectionRequest {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'group': json['group'],
|
|
65
|
+
'source': json['source'],
|
|
66
|
+
'identifier': json['identifier'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GroupPlexSourceConnectionRequestToJSON(value?: GroupPlexSourceConnectionRequest | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'group': value.group,
|
|
80
|
+
'source': value.source,
|
|
81
|
+
'identifier': value.identifier,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -37,19 +37,25 @@ export interface GroupSAMLSourceConnection {
|
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof GroupSAMLSourceConnection
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
group: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof GroupSAMLSourceConnection
|
|
45
|
+
*/
|
|
46
|
+
source: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Source}
|
|
44
50
|
* @memberof GroupSAMLSourceConnection
|
|
45
51
|
*/
|
|
46
|
-
readonly
|
|
52
|
+
readonly sourceObj: Source;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {string}
|
|
50
56
|
* @memberof GroupSAMLSourceConnection
|
|
51
57
|
*/
|
|
52
|
-
|
|
58
|
+
identifier: string;
|
|
53
59
|
/**
|
|
54
60
|
*
|
|
55
61
|
* @type {Date}
|
|
@@ -66,6 +72,7 @@ export function instanceOfGroupSAMLSourceConnection(value: object): boolean {
|
|
|
66
72
|
isInstance = isInstance && "pk" in value;
|
|
67
73
|
isInstance = isInstance && "group" in value;
|
|
68
74
|
isInstance = isInstance && "source" in value;
|
|
75
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
69
76
|
isInstance = isInstance && "identifier" in value;
|
|
70
77
|
isInstance = isInstance && "created" in value;
|
|
71
78
|
|
|
@@ -84,7 +91,8 @@ export function GroupSAMLSourceConnectionFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
84
91
|
|
|
85
92
|
'pk': json['pk'],
|
|
86
93
|
'group': json['group'],
|
|
87
|
-
'source':
|
|
94
|
+
'source': json['source'],
|
|
95
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
88
96
|
'identifier': json['identifier'],
|
|
89
97
|
'created': (new Date(json['created'])),
|
|
90
98
|
};
|
|
@@ -99,6 +107,9 @@ export function GroupSAMLSourceConnectionToJSON(value?: GroupSAMLSourceConnectio
|
|
|
99
107
|
}
|
|
100
108
|
return {
|
|
101
109
|
|
|
110
|
+
'group': value.group,
|
|
111
|
+
'source': value.source,
|
|
112
|
+
'identifier': value.identifier,
|
|
102
113
|
};
|
|
103
114
|
}
|
|
104
115
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
* OAuth Group-Source connection Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GroupSAMLSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupSAMLSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupSAMLSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupSAMLSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GroupSAMLSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GroupSAMLSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGroupSAMLSourceConnectionRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "group" in value;
|
|
48
|
+
isInstance = isInstance && "source" in value;
|
|
49
|
+
isInstance = isInstance && "identifier" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function GroupSAMLSourceConnectionRequestFromJSON(json: any): GroupSAMLSourceConnectionRequest {
|
|
55
|
+
return GroupSAMLSourceConnectionRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GroupSAMLSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupSAMLSourceConnectionRequest {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'group': json['group'],
|
|
65
|
+
'source': json['source'],
|
|
66
|
+
'identifier': json['identifier'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GroupSAMLSourceConnectionRequestToJSON(value?: GroupSAMLSourceConnectionRequest | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'group': value.group,
|
|
80
|
+
'source': value.source,
|
|
81
|
+
'identifier': value.identifier,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -97,6 +97,7 @@ export const ModelEnum = {
|
|
|
97
97
|
CoreGroup: 'authentik_core.group',
|
|
98
98
|
CoreUser: 'authentik_core.user',
|
|
99
99
|
CoreApplication: 'authentik_core.application',
|
|
100
|
+
CoreApplicationentitlement: 'authentik_core.applicationentitlement',
|
|
100
101
|
CoreToken: 'authentik_core.token',
|
|
101
102
|
EnterpriseLicense: 'authentik_enterprise.license',
|
|
102
103
|
ProvidersGoogleWorkspaceGoogleworkspaceprovider: 'authentik_providers_google_workspace.googleworkspaceprovider',
|
|
@@ -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.10.5
|
|
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 { ApplicationEntitlement } from './ApplicationEntitlement';
|
|
17
|
+
import {
|
|
18
|
+
ApplicationEntitlementFromJSON,
|
|
19
|
+
ApplicationEntitlementFromJSONTyped,
|
|
20
|
+
ApplicationEntitlementToJSON,
|
|
21
|
+
} from './ApplicationEntitlement';
|
|
22
|
+
import type { Pagination } from './Pagination';
|
|
23
|
+
import {
|
|
24
|
+
PaginationFromJSON,
|
|
25
|
+
PaginationFromJSONTyped,
|
|
26
|
+
PaginationToJSON,
|
|
27
|
+
} from './Pagination';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PaginatedApplicationEntitlementList
|
|
33
|
+
*/
|
|
34
|
+
export interface PaginatedApplicationEntitlementList {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Pagination}
|
|
38
|
+
* @memberof PaginatedApplicationEntitlementList
|
|
39
|
+
*/
|
|
40
|
+
pagination: Pagination;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<ApplicationEntitlement>}
|
|
44
|
+
* @memberof PaginatedApplicationEntitlementList
|
|
45
|
+
*/
|
|
46
|
+
results: Array<ApplicationEntitlement>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PaginatedApplicationEntitlementList interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPaginatedApplicationEntitlementList(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 PaginatedApplicationEntitlementListFromJSON(json: any): PaginatedApplicationEntitlementList {
|
|
61
|
+
return PaginatedApplicationEntitlementListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedApplicationEntitlementListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedApplicationEntitlementList {
|
|
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(ApplicationEntitlementFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedApplicationEntitlementListToJSON(value?: PaginatedApplicationEntitlementList | 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(ApplicationEntitlementToJSON)),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|