@goauthentik/api 2025.2.4-1744139776 → 2025.2.4-1744640358
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 +8 -0
- package/dist/apis/CoreApi.d.ts +2 -2
- package/dist/apis/CoreApi.js +6 -6
- package/dist/apis/RbacApi.d.ts +4 -0
- package/dist/apis/RbacApi.js +4 -0
- package/dist/apis/SourcesApi.d.ts +170 -1
- package/dist/apis/SourcesApi.js +539 -0
- package/dist/esm/apis/CoreApi.d.ts +2 -2
- package/dist/esm/apis/CoreApi.js +6 -6
- package/dist/esm/apis/RbacApi.d.ts +4 -0
- package/dist/esm/apis/RbacApi.js +4 -0
- package/dist/esm/apis/SourcesApi.d.ts +170 -1
- package/dist/esm/apis/SourcesApi.js +540 -1
- package/dist/esm/models/AuthenticatedSession.d.ts +4 -4
- package/dist/esm/models/AuthenticatedSession.js +6 -5
- package/dist/esm/models/GroupLDAPSourceConnection.d.ts +69 -0
- package/dist/esm/models/GroupLDAPSourceConnection.js +64 -0
- package/dist/esm/models/GroupLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/esm/models/GroupLDAPSourceConnectionRequest.js +51 -0
- package/dist/esm/models/LDAPSource.d.ts +6 -0
- package/dist/esm/models/LDAPSource.js +2 -0
- package/dist/esm/models/LDAPSourceRequest.d.ts +6 -0
- package/dist/esm/models/LDAPSourceRequest.js +2 -0
- package/dist/esm/models/ModelEnum.d.ts +2 -0
- package/dist/esm/models/ModelEnum.js +2 -0
- package/dist/esm/models/PaginatedGroupLDAPSourceConnectionList.d.ts +40 -0
- package/dist/esm/models/PaginatedGroupLDAPSourceConnectionList.js +49 -0
- package/dist/esm/models/PaginatedUserLDAPSourceConnectionList.d.ts +40 -0
- package/dist/esm/models/PaginatedUserLDAPSourceConnectionList.js +49 -0
- package/dist/esm/models/PatchedGroupLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/esm/models/PatchedGroupLDAPSourceConnectionRequest.js +45 -0
- package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedLDAPSourceRequest.js +2 -0
- package/dist/esm/models/PatchedSettingsRequest.d.ts +12 -0
- package/dist/esm/models/PatchedSettingsRequest.js +4 -0
- package/dist/esm/models/PatchedUserLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/esm/models/PatchedUserLDAPSourceConnectionRequest.js +45 -0
- package/dist/esm/models/Settings.d.ts +12 -0
- package/dist/esm/models/Settings.js +4 -0
- package/dist/esm/models/SettingsRequest.d.ts +12 -0
- package/dist/esm/models/SettingsRequest.js +4 -0
- package/dist/esm/models/UserLDAPSourceConnection.d.ts +69 -0
- package/dist/esm/models/UserLDAPSourceConnection.js +64 -0
- package/dist/esm/models/UserLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/esm/models/UserLDAPSourceConnectionRequest.js +51 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/AuthenticatedSession.d.ts +4 -4
- package/dist/models/AuthenticatedSession.js +6 -5
- package/dist/models/GroupLDAPSourceConnection.d.ts +69 -0
- package/dist/models/GroupLDAPSourceConnection.js +71 -0
- package/dist/models/GroupLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/models/GroupLDAPSourceConnectionRequest.js +58 -0
- package/dist/models/LDAPSource.d.ts +6 -0
- package/dist/models/LDAPSource.js +2 -0
- package/dist/models/LDAPSourceRequest.d.ts +6 -0
- package/dist/models/LDAPSourceRequest.js +2 -0
- package/dist/models/ModelEnum.d.ts +2 -0
- package/dist/models/ModelEnum.js +2 -0
- package/dist/models/PaginatedGroupLDAPSourceConnectionList.d.ts +40 -0
- package/dist/models/PaginatedGroupLDAPSourceConnectionList.js +56 -0
- package/dist/models/PaginatedUserLDAPSourceConnectionList.d.ts +40 -0
- package/dist/models/PaginatedUserLDAPSourceConnectionList.js +56 -0
- package/dist/models/PatchedGroupLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/models/PatchedGroupLDAPSourceConnectionRequest.js +52 -0
- package/dist/models/PatchedLDAPSourceRequest.d.ts +6 -0
- package/dist/models/PatchedLDAPSourceRequest.js +2 -0
- package/dist/models/PatchedSettingsRequest.d.ts +12 -0
- package/dist/models/PatchedSettingsRequest.js +4 -0
- package/dist/models/PatchedUserLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/models/PatchedUserLDAPSourceConnectionRequest.js +52 -0
- package/dist/models/Settings.d.ts +12 -0
- package/dist/models/Settings.js +4 -0
- package/dist/models/SettingsRequest.d.ts +12 -0
- package/dist/models/SettingsRequest.js +4 -0
- package/dist/models/UserLDAPSourceConnection.d.ts +69 -0
- package/dist/models/UserLDAPSourceConnection.js +71 -0
- package/dist/models/UserLDAPSourceConnectionRequest.d.ts +44 -0
- package/dist/models/UserLDAPSourceConnectionRequest.js +58 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +10 -10
- package/src/apis/RbacApi.ts +4 -0
- package/src/apis/SourcesApi.ts +1932 -1195
- package/src/models/AuthenticatedSession.ts +8 -9
- package/src/models/GroupLDAPSourceConnection.ts +124 -0
- package/src/models/GroupLDAPSourceConnectionRequest.ts +84 -0
- package/src/models/LDAPSource.ts +8 -0
- package/src/models/LDAPSourceRequest.ts +8 -0
- package/src/models/ModelEnum.ts +2 -0
- package/src/models/PaginatedGroupLDAPSourceConnectionList.ts +90 -0
- package/src/models/PaginatedUserLDAPSourceConnectionList.ts +90 -0
- package/src/models/PatchedGroupLDAPSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedLDAPSourceRequest.ts +8 -0
- package/src/models/PatchedSettingsRequest.ts +16 -0
- package/src/models/PatchedUserLDAPSourceConnectionRequest.ts +81 -0
- package/src/models/Settings.ts +16 -0
- package/src/models/SettingsRequest.ts +16 -0
- package/src/models/UserLDAPSourceConnection.ts +124 -0
- package/src/models/UserLDAPSourceConnectionRequest.ts +84 -0
- package/src/models/index.ts +8 -0
|
@@ -82,13 +82,13 @@ export interface AuthenticatedSession {
|
|
|
82
82
|
* @type {string}
|
|
83
83
|
* @memberof AuthenticatedSession
|
|
84
84
|
*/
|
|
85
|
-
lastIp: string;
|
|
85
|
+
readonly lastIp: string;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof AuthenticatedSession
|
|
90
90
|
*/
|
|
91
|
-
lastUserAgent
|
|
91
|
+
readonly lastUserAgent: string;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {Date}
|
|
@@ -100,7 +100,7 @@ export interface AuthenticatedSession {
|
|
|
100
100
|
* @type {Date}
|
|
101
101
|
* @memberof AuthenticatedSession
|
|
102
102
|
*/
|
|
103
|
-
expires
|
|
103
|
+
readonly expires: Date;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -113,7 +113,9 @@ export function instanceOfAuthenticatedSession(value: object): value is Authenti
|
|
|
113
113
|
if (!('asn' in value) || value['asn'] === undefined) return false;
|
|
114
114
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
115
115
|
if (!('lastIp' in value) || value['lastIp'] === undefined) return false;
|
|
116
|
+
if (!('lastUserAgent' in value) || value['lastUserAgent'] === undefined) return false;
|
|
116
117
|
if (!('lastUsed' in value) || value['lastUsed'] === undefined) return false;
|
|
118
|
+
if (!('expires' in value) || value['expires'] === undefined) return false;
|
|
117
119
|
return true;
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -134,9 +136,9 @@ export function AuthenticatedSessionFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
134
136
|
'asn': AuthenticatedSessionAsnFromJSON(json['asn']),
|
|
135
137
|
'user': json['user'],
|
|
136
138
|
'lastIp': json['last_ip'],
|
|
137
|
-
'lastUserAgent': json['last_user_agent']
|
|
139
|
+
'lastUserAgent': json['last_user_agent'],
|
|
138
140
|
'lastUsed': (new Date(json['last_used'])),
|
|
139
|
-
'expires':
|
|
141
|
+
'expires': (new Date(json['expires'])),
|
|
140
142
|
};
|
|
141
143
|
}
|
|
142
144
|
|
|
@@ -144,7 +146,7 @@ export function AuthenticatedSessionToJSON(json: any): AuthenticatedSession {
|
|
|
144
146
|
return AuthenticatedSessionToJSONTyped(json, false);
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
export function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSession, 'current'|'last_used'> | null, ignoreDiscriminator: boolean = false): any {
|
|
149
|
+
export function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSession, 'current'|'last_ip'|'last_user_agent'|'last_used'|'expires'> | null, ignoreDiscriminator: boolean = false): any {
|
|
148
150
|
if (value == null) {
|
|
149
151
|
return value;
|
|
150
152
|
}
|
|
@@ -156,9 +158,6 @@ export function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSessio
|
|
|
156
158
|
'geo_ip': AuthenticatedSessionGeoIpToJSON(value['geoIp']),
|
|
157
159
|
'asn': AuthenticatedSessionAsnToJSON(value['asn']),
|
|
158
160
|
'user': value['user'],
|
|
159
|
-
'last_ip': value['lastIp'],
|
|
160
|
-
'last_user_agent': value['lastUserAgent'],
|
|
161
|
-
'expires': value['expires'] == null ? undefined : ((value['expires'] as any).toISOString()),
|
|
162
161
|
};
|
|
163
162
|
}
|
|
164
163
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { Source } from './Source';
|
|
17
|
+
import {
|
|
18
|
+
SourceFromJSON,
|
|
19
|
+
SourceFromJSONTyped,
|
|
20
|
+
SourceToJSON,
|
|
21
|
+
SourceToJSONTyped,
|
|
22
|
+
} from './Source';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Group Source Connection
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GroupLDAPSourceConnection
|
|
28
|
+
*/
|
|
29
|
+
export interface GroupLDAPSourceConnection {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GroupLDAPSourceConnection
|
|
34
|
+
*/
|
|
35
|
+
readonly pk: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GroupLDAPSourceConnection
|
|
40
|
+
*/
|
|
41
|
+
group: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GroupLDAPSourceConnection
|
|
46
|
+
*/
|
|
47
|
+
source: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Source}
|
|
51
|
+
* @memberof GroupLDAPSourceConnection
|
|
52
|
+
*/
|
|
53
|
+
readonly sourceObj: Source;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GroupLDAPSourceConnection
|
|
58
|
+
*/
|
|
59
|
+
identifier: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof GroupLDAPSourceConnection
|
|
64
|
+
*/
|
|
65
|
+
readonly created: Date;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof GroupLDAPSourceConnection
|
|
70
|
+
*/
|
|
71
|
+
readonly lastUpdated: Date;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the GroupLDAPSourceConnection interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfGroupLDAPSourceConnection(value: object): value is GroupLDAPSourceConnection {
|
|
78
|
+
if (!('pk' in value) || value['pk'] === undefined) return false;
|
|
79
|
+
if (!('group' in value) || value['group'] === undefined) return false;
|
|
80
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
81
|
+
if (!('sourceObj' in value) || value['sourceObj'] === undefined) return false;
|
|
82
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
83
|
+
if (!('created' in value) || value['created'] === undefined) return false;
|
|
84
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GroupLDAPSourceConnectionFromJSON(json: any): GroupLDAPSourceConnection {
|
|
89
|
+
return GroupLDAPSourceConnectionFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GroupLDAPSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupLDAPSourceConnection {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'pk': json['pk'],
|
|
99
|
+
'group': json['group'],
|
|
100
|
+
'source': json['source'],
|
|
101
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
102
|
+
'identifier': json['identifier'],
|
|
103
|
+
'created': (new Date(json['created'])),
|
|
104
|
+
'lastUpdated': (new Date(json['last_updated'])),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function GroupLDAPSourceConnectionToJSON(json: any): GroupLDAPSourceConnection {
|
|
109
|
+
return GroupLDAPSourceConnectionToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function GroupLDAPSourceConnectionToJSONTyped(value?: Omit<GroupLDAPSourceConnection, 'pk'|'source_obj'|'created'|'last_updated'> | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'group': value['group'],
|
|
120
|
+
'source': value['source'],
|
|
121
|
+
'identifier': value['identifier'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -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: 2025.2.4
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Group Source Connection
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GroupLDAPSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupLDAPSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupLDAPSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupLDAPSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GroupLDAPSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GroupLDAPSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGroupLDAPSourceConnectionRequest(value: object): value is GroupLDAPSourceConnectionRequest {
|
|
46
|
+
if (!('group' in value) || value['group'] === undefined) return false;
|
|
47
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
48
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GroupLDAPSourceConnectionRequestFromJSON(json: any): GroupLDAPSourceConnectionRequest {
|
|
53
|
+
return GroupLDAPSourceConnectionRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GroupLDAPSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupLDAPSourceConnectionRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'group': json['group'],
|
|
63
|
+
'source': json['source'],
|
|
64
|
+
'identifier': json['identifier'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GroupLDAPSourceConnectionRequestToJSON(json: any): GroupLDAPSourceConnectionRequest {
|
|
69
|
+
return GroupLDAPSourceConnectionRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GroupLDAPSourceConnectionRequestToJSONTyped(value?: GroupLDAPSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'group': value['group'],
|
|
80
|
+
'source': value['source'],
|
|
81
|
+
'identifier': value['identifier'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/LDAPSource.ts
CHANGED
|
@@ -250,6 +250,12 @@ export interface LDAPSource {
|
|
|
250
250
|
* @memberof LDAPSource
|
|
251
251
|
*/
|
|
252
252
|
readonly connectivity: { [key: string]: { [key: string]: string; }; } | null;
|
|
253
|
+
/**
|
|
254
|
+
* Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory
|
|
255
|
+
* @type {boolean}
|
|
256
|
+
* @memberof LDAPSource
|
|
257
|
+
*/
|
|
258
|
+
lookupGroupsFromUser?: boolean;
|
|
253
259
|
}
|
|
254
260
|
|
|
255
261
|
|
|
@@ -319,6 +325,7 @@ export function LDAPSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
319
325
|
'syncGroups': json['sync_groups'] == null ? undefined : json['sync_groups'],
|
|
320
326
|
'syncParentGroup': json['sync_parent_group'] == null ? undefined : json['sync_parent_group'],
|
|
321
327
|
'connectivity': json['connectivity'],
|
|
328
|
+
'lookupGroupsFromUser': json['lookup_groups_from_user'] == null ? undefined : json['lookup_groups_from_user'],
|
|
322
329
|
};
|
|
323
330
|
}
|
|
324
331
|
|
|
@@ -361,6 +368,7 @@ export function LDAPSourceToJSONTyped(value?: Omit<LDAPSource, 'pk'|'component'|
|
|
|
361
368
|
'sync_users_password': value['syncUsersPassword'],
|
|
362
369
|
'sync_groups': value['syncGroups'],
|
|
363
370
|
'sync_parent_group': value['syncParentGroup'],
|
|
371
|
+
'lookup_groups_from_user': value['lookupGroupsFromUser'],
|
|
364
372
|
};
|
|
365
373
|
}
|
|
366
374
|
|
|
@@ -208,6 +208,12 @@ export interface LDAPSourceRequest {
|
|
|
208
208
|
* @memberof LDAPSourceRequest
|
|
209
209
|
*/
|
|
210
210
|
syncParentGroup?: string | null;
|
|
211
|
+
/**
|
|
212
|
+
* Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory
|
|
213
|
+
* @type {boolean}
|
|
214
|
+
* @memberof LDAPSourceRequest
|
|
215
|
+
*/
|
|
216
|
+
lookupGroupsFromUser?: boolean;
|
|
211
217
|
}
|
|
212
218
|
|
|
213
219
|
|
|
@@ -262,6 +268,7 @@ export function LDAPSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
262
268
|
'syncUsersPassword': json['sync_users_password'] == null ? undefined : json['sync_users_password'],
|
|
263
269
|
'syncGroups': json['sync_groups'] == null ? undefined : json['sync_groups'],
|
|
264
270
|
'syncParentGroup': json['sync_parent_group'] == null ? undefined : json['sync_parent_group'],
|
|
271
|
+
'lookupGroupsFromUser': json['lookup_groups_from_user'] == null ? undefined : json['lookup_groups_from_user'],
|
|
265
272
|
};
|
|
266
273
|
}
|
|
267
274
|
|
|
@@ -305,6 +312,7 @@ export function LDAPSourceRequestToJSONTyped(value?: LDAPSourceRequest | null, i
|
|
|
305
312
|
'sync_users_password': value['syncUsersPassword'],
|
|
306
313
|
'sync_groups': value['syncGroups'],
|
|
307
314
|
'sync_parent_group': value['syncParentGroup'],
|
|
315
|
+
'lookup_groups_from_user': value['lookupGroupsFromUser'],
|
|
308
316
|
};
|
|
309
317
|
}
|
|
310
318
|
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -53,6 +53,8 @@ export const ModelEnum = {
|
|
|
53
53
|
AuthentikSourcesKerberosGroupkerberossourceconnection: 'authentik_sources_kerberos.groupkerberossourceconnection',
|
|
54
54
|
AuthentikSourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
|
55
55
|
AuthentikSourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
|
56
|
+
AuthentikSourcesLdapUserldapsourceconnection: 'authentik_sources_ldap.userldapsourceconnection',
|
|
57
|
+
AuthentikSourcesLdapGroupldapsourceconnection: 'authentik_sources_ldap.groupldapsourceconnection',
|
|
56
58
|
AuthentikSourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
|
57
59
|
AuthentikSourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
|
|
58
60
|
AuthentikSourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { Pagination } from './Pagination';
|
|
17
|
+
import {
|
|
18
|
+
PaginationFromJSON,
|
|
19
|
+
PaginationFromJSONTyped,
|
|
20
|
+
PaginationToJSON,
|
|
21
|
+
PaginationToJSONTyped,
|
|
22
|
+
} from './Pagination';
|
|
23
|
+
import type { GroupLDAPSourceConnection } from './GroupLDAPSourceConnection';
|
|
24
|
+
import {
|
|
25
|
+
GroupLDAPSourceConnectionFromJSON,
|
|
26
|
+
GroupLDAPSourceConnectionFromJSONTyped,
|
|
27
|
+
GroupLDAPSourceConnectionToJSON,
|
|
28
|
+
GroupLDAPSourceConnectionToJSONTyped,
|
|
29
|
+
} from './GroupLDAPSourceConnection';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedGroupLDAPSourceConnectionList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedGroupLDAPSourceConnectionList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedGroupLDAPSourceConnectionList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GroupLDAPSourceConnection>}
|
|
46
|
+
* @memberof PaginatedGroupLDAPSourceConnectionList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<GroupLDAPSourceConnection>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedGroupLDAPSourceConnectionList interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedGroupLDAPSourceConnectionList(value: object): value is PaginatedGroupLDAPSourceConnectionList {
|
|
55
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
56
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedGroupLDAPSourceConnectionListFromJSON(json: any): PaginatedGroupLDAPSourceConnectionList {
|
|
61
|
+
return PaginatedGroupLDAPSourceConnectionListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedGroupLDAPSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupLDAPSourceConnectionList {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(GroupLDAPSourceConnectionFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedGroupLDAPSourceConnectionListToJSON(json: any): PaginatedGroupLDAPSourceConnectionList {
|
|
76
|
+
return PaginatedGroupLDAPSourceConnectionListToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedGroupLDAPSourceConnectionListToJSONTyped(value?: PaginatedGroupLDAPSourceConnectionList | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
87
|
+
'results': ((value['results'] as Array<any>).map(GroupLDAPSourceConnectionToJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { Pagination } from './Pagination';
|
|
17
|
+
import {
|
|
18
|
+
PaginationFromJSON,
|
|
19
|
+
PaginationFromJSONTyped,
|
|
20
|
+
PaginationToJSON,
|
|
21
|
+
PaginationToJSONTyped,
|
|
22
|
+
} from './Pagination';
|
|
23
|
+
import type { UserLDAPSourceConnection } from './UserLDAPSourceConnection';
|
|
24
|
+
import {
|
|
25
|
+
UserLDAPSourceConnectionFromJSON,
|
|
26
|
+
UserLDAPSourceConnectionFromJSONTyped,
|
|
27
|
+
UserLDAPSourceConnectionToJSON,
|
|
28
|
+
UserLDAPSourceConnectionToJSONTyped,
|
|
29
|
+
} from './UserLDAPSourceConnection';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedUserLDAPSourceConnectionList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedUserLDAPSourceConnectionList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedUserLDAPSourceConnectionList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<UserLDAPSourceConnection>}
|
|
46
|
+
* @memberof PaginatedUserLDAPSourceConnectionList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<UserLDAPSourceConnection>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedUserLDAPSourceConnectionList interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedUserLDAPSourceConnectionList(value: object): value is PaginatedUserLDAPSourceConnectionList {
|
|
55
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
56
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedUserLDAPSourceConnectionListFromJSON(json: any): PaginatedUserLDAPSourceConnectionList {
|
|
61
|
+
return PaginatedUserLDAPSourceConnectionListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedUserLDAPSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserLDAPSourceConnectionList {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(UserLDAPSourceConnectionFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedUserLDAPSourceConnectionListToJSON(json: any): PaginatedUserLDAPSourceConnectionList {
|
|
76
|
+
return PaginatedUserLDAPSourceConnectionListToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedUserLDAPSourceConnectionListToJSONTyped(value?: PaginatedUserLDAPSourceConnectionList | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
87
|
+
'results': ((value['results'] as Array<any>).map(UserLDAPSourceConnectionToJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Group Source Connection
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PatchedGroupLDAPSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedGroupLDAPSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PatchedGroupLDAPSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedGroupLDAPSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PatchedGroupLDAPSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PatchedGroupLDAPSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPatchedGroupLDAPSourceConnectionRequest(value: object): value is PatchedGroupLDAPSourceConnectionRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PatchedGroupLDAPSourceConnectionRequestFromJSON(json: any): PatchedGroupLDAPSourceConnectionRequest {
|
|
50
|
+
return PatchedGroupLDAPSourceConnectionRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PatchedGroupLDAPSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedGroupLDAPSourceConnectionRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'group': json['group'] == null ? undefined : json['group'],
|
|
60
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
61
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PatchedGroupLDAPSourceConnectionRequestToJSON(json: any): PatchedGroupLDAPSourceConnectionRequest {
|
|
66
|
+
return PatchedGroupLDAPSourceConnectionRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PatchedGroupLDAPSourceConnectionRequestToJSONTyped(value?: PatchedGroupLDAPSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'group': value['group'],
|
|
77
|
+
'source': value['source'],
|
|
78
|
+
'identifier': value['identifier'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -208,6 +208,12 @@ export interface PatchedLDAPSourceRequest {
|
|
|
208
208
|
* @memberof PatchedLDAPSourceRequest
|
|
209
209
|
*/
|
|
210
210
|
syncParentGroup?: string | null;
|
|
211
|
+
/**
|
|
212
|
+
* Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory
|
|
213
|
+
* @type {boolean}
|
|
214
|
+
* @memberof PatchedLDAPSourceRequest
|
|
215
|
+
*/
|
|
216
|
+
lookupGroupsFromUser?: boolean;
|
|
211
217
|
}
|
|
212
218
|
|
|
213
219
|
|
|
@@ -258,6 +264,7 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
258
264
|
'syncUsersPassword': json['sync_users_password'] == null ? undefined : json['sync_users_password'],
|
|
259
265
|
'syncGroups': json['sync_groups'] == null ? undefined : json['sync_groups'],
|
|
260
266
|
'syncParentGroup': json['sync_parent_group'] == null ? undefined : json['sync_parent_group'],
|
|
267
|
+
'lookupGroupsFromUser': json['lookup_groups_from_user'] == null ? undefined : json['lookup_groups_from_user'],
|
|
261
268
|
};
|
|
262
269
|
}
|
|
263
270
|
|
|
@@ -301,6 +308,7 @@ export function PatchedLDAPSourceRequestToJSONTyped(value?: PatchedLDAPSourceReq
|
|
|
301
308
|
'sync_users_password': value['syncUsersPassword'],
|
|
302
309
|
'sync_groups': value['syncGroups'],
|
|
303
310
|
'sync_parent_group': value['syncParentGroup'],
|
|
311
|
+
'lookup_groups_from_user': value['lookupGroupsFromUser'],
|
|
304
312
|
};
|
|
305
313
|
}
|
|
306
314
|
|
|
@@ -49,6 +49,18 @@ export interface PatchedSettingsRequest {
|
|
|
49
49
|
* @memberof PatchedSettingsRequest
|
|
50
50
|
*/
|
|
51
51
|
eventRetention?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Reputation cannot decrease lower than this value. Zero or negative.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PatchedSettingsRequest
|
|
56
|
+
*/
|
|
57
|
+
reputationLowerLimit?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Reputation cannot increase higher than this value. Zero or positive.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof PatchedSettingsRequest
|
|
62
|
+
*/
|
|
63
|
+
reputationUpperLimit?: number;
|
|
52
64
|
/**
|
|
53
65
|
* The option configures the footer links on the flow executor pages.
|
|
54
66
|
* @type {any}
|
|
@@ -109,6 +121,8 @@ export function PatchedSettingsRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
109
121
|
'defaultUserChangeEmail': json['default_user_change_email'] == null ? undefined : json['default_user_change_email'],
|
|
110
122
|
'defaultUserChangeUsername': json['default_user_change_username'] == null ? undefined : json['default_user_change_username'],
|
|
111
123
|
'eventRetention': json['event_retention'] == null ? undefined : json['event_retention'],
|
|
124
|
+
'reputationLowerLimit': json['reputation_lower_limit'] == null ? undefined : json['reputation_lower_limit'],
|
|
125
|
+
'reputationUpperLimit': json['reputation_upper_limit'] == null ? undefined : json['reputation_upper_limit'],
|
|
112
126
|
'footerLinks': json['footer_links'] == null ? undefined : json['footer_links'],
|
|
113
127
|
'gdprCompliance': json['gdpr_compliance'] == null ? undefined : json['gdpr_compliance'],
|
|
114
128
|
'impersonation': json['impersonation'] == null ? undefined : json['impersonation'],
|
|
@@ -134,6 +148,8 @@ export function PatchedSettingsRequestToJSONTyped(value?: PatchedSettingsRequest
|
|
|
134
148
|
'default_user_change_email': value['defaultUserChangeEmail'],
|
|
135
149
|
'default_user_change_username': value['defaultUserChangeUsername'],
|
|
136
150
|
'event_retention': value['eventRetention'],
|
|
151
|
+
'reputation_lower_limit': value['reputationLowerLimit'],
|
|
152
|
+
'reputation_upper_limit': value['reputationUpperLimit'],
|
|
137
153
|
'footer_links': value['footerLinks'],
|
|
138
154
|
'gdpr_compliance': value['gdprCompliance'],
|
|
139
155
|
'impersonation': value['impersonation'],
|