@goauthentik/api 2025.2.4-1744288676 → 2025.2.4-1744646168
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 +2 -2
- package/dist/apis/CoreApi.js +6 -6
- package/dist/apis/RbacApi.d.ts +90 -1
- package/dist/apis/RbacApi.js +271 -0
- package/dist/apis/SourcesApi.d.ts +169 -1
- package/dist/apis/SourcesApi.js +536 -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 +90 -1
- package/dist/esm/apis/RbacApi.js +272 -1
- package/dist/esm/apis/SourcesApi.d.ts +169 -1
- package/dist/esm/apis/SourcesApi.js +537 -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/InitialPermissions.d.ts +64 -0
- package/dist/esm/models/InitialPermissions.js +61 -0
- package/dist/esm/models/InitialPermissionsModeEnum.d.ts +26 -0
- package/dist/esm/models/InitialPermissionsModeEnum.js +44 -0
- package/dist/esm/models/InitialPermissionsRequest.d.ts +51 -0
- package/dist/esm/models/InitialPermissionsRequest.js +54 -0
- package/dist/esm/models/ModelEnum.d.ts +3 -0
- package/dist/esm/models/ModelEnum.js +3 -0
- package/dist/esm/models/PaginatedGroupLDAPSourceConnectionList.d.ts +40 -0
- package/dist/esm/models/PaginatedGroupLDAPSourceConnectionList.js +49 -0
- package/dist/esm/models/PaginatedInitialPermissionsList.d.ts +40 -0
- package/dist/esm/models/PaginatedInitialPermissionsList.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/PatchedInitialPermissionsRequest.d.ts +51 -0
- package/dist/esm/models/PatchedInitialPermissionsRequest.js +48 -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/PermissionRequest.d.ts +38 -0
- package/dist/esm/models/PermissionRequest.js +47 -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 +14 -0
- package/dist/esm/models/index.js +14 -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/InitialPermissions.d.ts +64 -0
- package/dist/models/InitialPermissions.js +68 -0
- package/dist/models/InitialPermissionsModeEnum.d.ts +26 -0
- package/dist/models/InitialPermissionsModeEnum.js +52 -0
- package/dist/models/InitialPermissionsRequest.d.ts +51 -0
- package/dist/models/InitialPermissionsRequest.js +61 -0
- package/dist/models/ModelEnum.d.ts +3 -0
- package/dist/models/ModelEnum.js +3 -0
- package/dist/models/PaginatedGroupLDAPSourceConnectionList.d.ts +40 -0
- package/dist/models/PaginatedGroupLDAPSourceConnectionList.js +56 -0
- package/dist/models/PaginatedInitialPermissionsList.d.ts +40 -0
- package/dist/models/PaginatedInitialPermissionsList.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/PatchedInitialPermissionsRequest.d.ts +51 -0
- package/dist/models/PatchedInitialPermissionsRequest.js +55 -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/PermissionRequest.d.ts +38 -0
- package/dist/models/PermissionRequest.js +54 -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 +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +10 -10
- package/src/apis/RbacApi.ts +367 -0
- package/src/apis/SourcesApi.ts +1929 -1197
- package/src/models/AuthenticatedSession.ts +8 -9
- package/src/models/GroupLDAPSourceConnection.ts +124 -0
- package/src/models/GroupLDAPSourceConnectionRequest.ts +84 -0
- package/src/models/InitialPermissions.ts +125 -0
- package/src/models/InitialPermissionsModeEnum.ts +54 -0
- package/src/models/InitialPermissionsRequest.ts +102 -0
- package/src/models/ModelEnum.ts +3 -0
- package/src/models/PaginatedGroupLDAPSourceConnectionList.ts +90 -0
- package/src/models/PaginatedInitialPermissionsList.ts +90 -0
- package/src/models/PaginatedUserLDAPSourceConnectionList.ts +90 -0
- package/src/models/PatchedGroupLDAPSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedInitialPermissionsRequest.ts +99 -0
- package/src/models/PatchedSettingsRequest.ts +16 -0
- package/src/models/PatchedUserLDAPSourceConnectionRequest.ts +81 -0
- package/src/models/PermissionRequest.ts +75 -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 +14 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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
|
+
* Group Source Connection
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GroupLDAPSourceConnection
|
|
17
|
+
*/
|
|
18
|
+
export interface GroupLDAPSourceConnection {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GroupLDAPSourceConnection
|
|
23
|
+
*/
|
|
24
|
+
readonly pk: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GroupLDAPSourceConnection
|
|
29
|
+
*/
|
|
30
|
+
group: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GroupLDAPSourceConnection
|
|
35
|
+
*/
|
|
36
|
+
source: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Source}
|
|
40
|
+
* @memberof GroupLDAPSourceConnection
|
|
41
|
+
*/
|
|
42
|
+
readonly sourceObj: Source;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GroupLDAPSourceConnection
|
|
47
|
+
*/
|
|
48
|
+
identifier: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof GroupLDAPSourceConnection
|
|
53
|
+
*/
|
|
54
|
+
readonly created: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof GroupLDAPSourceConnection
|
|
59
|
+
*/
|
|
60
|
+
readonly lastUpdated: Date;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GroupLDAPSourceConnection interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfGroupLDAPSourceConnection(value: object): value is GroupLDAPSourceConnection;
|
|
66
|
+
export declare function GroupLDAPSourceConnectionFromJSON(json: any): GroupLDAPSourceConnection;
|
|
67
|
+
export declare function GroupLDAPSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupLDAPSourceConnection;
|
|
68
|
+
export declare function GroupLDAPSourceConnectionToJSON(json: any): GroupLDAPSourceConnection;
|
|
69
|
+
export declare function GroupLDAPSourceConnectionToJSONTyped(value?: Omit<GroupLDAPSourceConnection, 'pk' | 'source_obj' | 'created' | 'last_updated'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import { SourceFromJSON, } from './Source';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GroupLDAPSourceConnection interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGroupLDAPSourceConnection(value) {
|
|
19
|
+
if (!('pk' in value) || value['pk'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('sourceObj' in value) || value['sourceObj'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function GroupLDAPSourceConnectionFromJSON(json) {
|
|
36
|
+
return GroupLDAPSourceConnectionFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function GroupLDAPSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'pk': json['pk'],
|
|
44
|
+
'group': json['group'],
|
|
45
|
+
'source': json['source'],
|
|
46
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
47
|
+
'identifier': json['identifier'],
|
|
48
|
+
'created': (new Date(json['created'])),
|
|
49
|
+
'lastUpdated': (new Date(json['last_updated'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function GroupLDAPSourceConnectionToJSON(json) {
|
|
53
|
+
return GroupLDAPSourceConnectionToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function GroupLDAPSourceConnectionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'group': value['group'],
|
|
61
|
+
'source': value['source'],
|
|
62
|
+
'identifier': value['identifier'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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
|
+
* Group Source Connection
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GroupLDAPSourceConnectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GroupLDAPSourceConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GroupLDAPSourceConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
group: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GroupLDAPSourceConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
source: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GroupLDAPSourceConnectionRequest
|
|
34
|
+
*/
|
|
35
|
+
identifier: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GroupLDAPSourceConnectionRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGroupLDAPSourceConnectionRequest(value: object): value is GroupLDAPSourceConnectionRequest;
|
|
41
|
+
export declare function GroupLDAPSourceConnectionRequestFromJSON(json: any): GroupLDAPSourceConnectionRequest;
|
|
42
|
+
export declare function GroupLDAPSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupLDAPSourceConnectionRequest;
|
|
43
|
+
export declare function GroupLDAPSourceConnectionRequestToJSON(json: any): GroupLDAPSourceConnectionRequest;
|
|
44
|
+
export declare function GroupLDAPSourceConnectionRequestToJSONTyped(value?: GroupLDAPSourceConnectionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Check if a given object implements the GroupLDAPSourceConnectionRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGroupLDAPSourceConnectionRequest(value) {
|
|
18
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GroupLDAPSourceConnectionRequestFromJSON(json) {
|
|
27
|
+
return GroupLDAPSourceConnectionRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GroupLDAPSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'group': json['group'],
|
|
35
|
+
'source': json['source'],
|
|
36
|
+
'identifier': json['identifier'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GroupLDAPSourceConnectionRequestToJSON(json) {
|
|
40
|
+
return GroupLDAPSourceConnectionRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GroupLDAPSourceConnectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'group': value['group'],
|
|
48
|
+
'source': value['source'],
|
|
49
|
+
'identifier': value['identifier'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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 { Permission } from './Permission';
|
|
13
|
+
import type { InitialPermissionsModeEnum } from './InitialPermissionsModeEnum';
|
|
14
|
+
/**
|
|
15
|
+
* InitialPermissions serializer
|
|
16
|
+
* @export
|
|
17
|
+
* @interface InitialPermissions
|
|
18
|
+
*/
|
|
19
|
+
export interface InitialPermissions {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof InitialPermissions
|
|
24
|
+
*/
|
|
25
|
+
readonly pk: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof InitialPermissions
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {InitialPermissionsModeEnum}
|
|
35
|
+
* @memberof InitialPermissions
|
|
36
|
+
*/
|
|
37
|
+
mode: InitialPermissionsModeEnum;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof InitialPermissions
|
|
42
|
+
*/
|
|
43
|
+
role: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<number>}
|
|
47
|
+
* @memberof InitialPermissions
|
|
48
|
+
*/
|
|
49
|
+
permissions?: Array<number>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<Permission>}
|
|
53
|
+
* @memberof InitialPermissions
|
|
54
|
+
*/
|
|
55
|
+
readonly permissionsObj: Array<Permission>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the InitialPermissions interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfInitialPermissions(value: object): value is InitialPermissions;
|
|
61
|
+
export declare function InitialPermissionsFromJSON(json: any): InitialPermissions;
|
|
62
|
+
export declare function InitialPermissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitialPermissions;
|
|
63
|
+
export declare function InitialPermissionsToJSON(json: any): InitialPermissions;
|
|
64
|
+
export declare function InitialPermissionsToJSONTyped(value?: Omit<InitialPermissions, 'pk' | 'permissions_obj'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
import { PermissionFromJSON, } from './Permission';
|
|
15
|
+
import { InitialPermissionsModeEnumFromJSON, InitialPermissionsModeEnumToJSON, } from './InitialPermissionsModeEnum';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the InitialPermissions interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfInitialPermissions(value) {
|
|
20
|
+
if (!('pk' in value) || value['pk'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('permissionsObj' in value) || value['permissionsObj'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function InitialPermissionsFromJSON(json) {
|
|
33
|
+
return InitialPermissionsFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function InitialPermissionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'pk': json['pk'],
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'mode': InitialPermissionsModeEnumFromJSON(json['mode']),
|
|
43
|
+
'role': json['role'],
|
|
44
|
+
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
45
|
+
'permissionsObj': (json['permissions_obj'].map(PermissionFromJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function InitialPermissionsToJSON(json) {
|
|
49
|
+
return InitialPermissionsToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function InitialPermissionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'mode': InitialPermissionsModeEnumToJSON(value['mode']),
|
|
58
|
+
'role': value['role'],
|
|
59
|
+
'permissions': value['permissions'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const InitialPermissionsModeEnum: {
|
|
17
|
+
readonly User: "user";
|
|
18
|
+
readonly Role: "role";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type InitialPermissionsModeEnum = typeof InitialPermissionsModeEnum[keyof typeof InitialPermissionsModeEnum];
|
|
22
|
+
export declare function instanceOfInitialPermissionsModeEnum(value: any): boolean;
|
|
23
|
+
export declare function InitialPermissionsModeEnumFromJSON(json: any): InitialPermissionsModeEnum;
|
|
24
|
+
export declare function InitialPermissionsModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitialPermissionsModeEnum;
|
|
25
|
+
export declare function InitialPermissionsModeEnumToJSON(value?: InitialPermissionsModeEnum | null): any;
|
|
26
|
+
export declare function InitialPermissionsModeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): InitialPermissionsModeEnum;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const InitialPermissionsModeEnum = {
|
|
19
|
+
User: 'user',
|
|
20
|
+
Role: 'role',
|
|
21
|
+
UnknownDefaultOpenApi: '11184809'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfInitialPermissionsModeEnum(value) {
|
|
24
|
+
for (const key in InitialPermissionsModeEnum) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(InitialPermissionsModeEnum, key)) {
|
|
26
|
+
if (InitialPermissionsModeEnum[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function InitialPermissionsModeEnumFromJSON(json) {
|
|
34
|
+
return InitialPermissionsModeEnumFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function InitialPermissionsModeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function InitialPermissionsModeEnumToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function InitialPermissionsModeEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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 { InitialPermissionsModeEnum } from './InitialPermissionsModeEnum';
|
|
13
|
+
/**
|
|
14
|
+
* InitialPermissions serializer
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InitialPermissionsRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface InitialPermissionsRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof InitialPermissionsRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {InitialPermissionsModeEnum}
|
|
28
|
+
* @memberof InitialPermissionsRequest
|
|
29
|
+
*/
|
|
30
|
+
mode: InitialPermissionsModeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof InitialPermissionsRequest
|
|
35
|
+
*/
|
|
36
|
+
role: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<number>}
|
|
40
|
+
* @memberof InitialPermissionsRequest
|
|
41
|
+
*/
|
|
42
|
+
permissions?: Array<number>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the InitialPermissionsRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfInitialPermissionsRequest(value: object): value is InitialPermissionsRequest;
|
|
48
|
+
export declare function InitialPermissionsRequestFromJSON(json: any): InitialPermissionsRequest;
|
|
49
|
+
export declare function InitialPermissionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitialPermissionsRequest;
|
|
50
|
+
export declare function InitialPermissionsRequestToJSON(json: any): InitialPermissionsRequest;
|
|
51
|
+
export declare function InitialPermissionsRequestToJSONTyped(value?: InitialPermissionsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import { InitialPermissionsModeEnumFromJSON, InitialPermissionsModeEnumToJSON, } from './InitialPermissionsModeEnum';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the InitialPermissionsRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfInitialPermissionsRequest(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function InitialPermissionsRequestFromJSON(json) {
|
|
28
|
+
return InitialPermissionsRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function InitialPermissionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
'mode': InitialPermissionsModeEnumFromJSON(json['mode']),
|
|
37
|
+
'role': json['role'],
|
|
38
|
+
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function InitialPermissionsRequestToJSON(json) {
|
|
42
|
+
return InitialPermissionsRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function InitialPermissionsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'mode': InitialPermissionsModeEnumToJSON(value['mode']),
|
|
51
|
+
'role': value['role'],
|
|
52
|
+
'permissions': value['permissions'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -43,12 +43,15 @@ export declare const ModelEnum: {
|
|
|
43
43
|
readonly AuthentikProvidersScimScimprovider: "authentik_providers_scim.scimprovider";
|
|
44
44
|
readonly AuthentikProvidersScimScimmapping: "authentik_providers_scim.scimmapping";
|
|
45
45
|
readonly AuthentikRbacRole: "authentik_rbac.role";
|
|
46
|
+
readonly AuthentikRbacInitialpermissions: "authentik_rbac.initialpermissions";
|
|
46
47
|
readonly AuthentikSourcesKerberosKerberossource: "authentik_sources_kerberos.kerberossource";
|
|
47
48
|
readonly AuthentikSourcesKerberosKerberossourcepropertymapping: "authentik_sources_kerberos.kerberossourcepropertymapping";
|
|
48
49
|
readonly AuthentikSourcesKerberosUserkerberossourceconnection: "authentik_sources_kerberos.userkerberossourceconnection";
|
|
49
50
|
readonly AuthentikSourcesKerberosGroupkerberossourceconnection: "authentik_sources_kerberos.groupkerberossourceconnection";
|
|
50
51
|
readonly AuthentikSourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
|
|
51
52
|
readonly AuthentikSourcesLdapLdapsourcepropertymapping: "authentik_sources_ldap.ldapsourcepropertymapping";
|
|
53
|
+
readonly AuthentikSourcesLdapUserldapsourceconnection: "authentik_sources_ldap.userldapsourceconnection";
|
|
54
|
+
readonly AuthentikSourcesLdapGroupldapsourceconnection: "authentik_sources_ldap.groupldapsourceconnection";
|
|
52
55
|
readonly AuthentikSourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
|
|
53
56
|
readonly AuthentikSourcesOauthOauthsourcepropertymapping: "authentik_sources_oauth.oauthsourcepropertymapping";
|
|
54
57
|
readonly AuthentikSourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
|
|
@@ -45,12 +45,15 @@ export const ModelEnum = {
|
|
|
45
45
|
AuthentikProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
|
46
46
|
AuthentikProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
|
47
47
|
AuthentikRbacRole: 'authentik_rbac.role',
|
|
48
|
+
AuthentikRbacInitialpermissions: 'authentik_rbac.initialpermissions',
|
|
48
49
|
AuthentikSourcesKerberosKerberossource: 'authentik_sources_kerberos.kerberossource',
|
|
49
50
|
AuthentikSourcesKerberosKerberossourcepropertymapping: 'authentik_sources_kerberos.kerberossourcepropertymapping',
|
|
50
51
|
AuthentikSourcesKerberosUserkerberossourceconnection: 'authentik_sources_kerberos.userkerberossourceconnection',
|
|
51
52
|
AuthentikSourcesKerberosGroupkerberossourceconnection: 'authentik_sources_kerberos.groupkerberossourceconnection',
|
|
52
53
|
AuthentikSourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
|
53
54
|
AuthentikSourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
|
55
|
+
AuthentikSourcesLdapUserldapsourceconnection: 'authentik_sources_ldap.userldapsourceconnection',
|
|
56
|
+
AuthentikSourcesLdapGroupldapsourceconnection: 'authentik_sources_ldap.groupldapsourceconnection',
|
|
54
57
|
AuthentikSourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
|
55
58
|
AuthentikSourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
|
|
56
59
|
AuthentikSourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Pagination } from './Pagination';
|
|
13
|
+
import type { GroupLDAPSourceConnection } from './GroupLDAPSourceConnection';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedGroupLDAPSourceConnectionList
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedGroupLDAPSourceConnectionList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Pagination}
|
|
23
|
+
* @memberof PaginatedGroupLDAPSourceConnectionList
|
|
24
|
+
*/
|
|
25
|
+
pagination: Pagination;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<GroupLDAPSourceConnection>}
|
|
29
|
+
* @memberof PaginatedGroupLDAPSourceConnectionList
|
|
30
|
+
*/
|
|
31
|
+
results: Array<GroupLDAPSourceConnection>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedGroupLDAPSourceConnectionList interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedGroupLDAPSourceConnectionList(value: object): value is PaginatedGroupLDAPSourceConnectionList;
|
|
37
|
+
export declare function PaginatedGroupLDAPSourceConnectionListFromJSON(json: any): PaginatedGroupLDAPSourceConnectionList;
|
|
38
|
+
export declare function PaginatedGroupLDAPSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupLDAPSourceConnectionList;
|
|
39
|
+
export declare function PaginatedGroupLDAPSourceConnectionListToJSON(json: any): PaginatedGroupLDAPSourceConnectionList;
|
|
40
|
+
export declare function PaginatedGroupLDAPSourceConnectionListToJSONTyped(value?: PaginatedGroupLDAPSourceConnectionList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
|
|
15
|
+
import { GroupLDAPSourceConnectionFromJSON, GroupLDAPSourceConnectionToJSON, } from './GroupLDAPSourceConnection';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PaginatedGroupLDAPSourceConnectionList interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPaginatedGroupLDAPSourceConnectionList(value) {
|
|
20
|
+
if (!('pagination' in value) || value['pagination'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('results' in value) || value['results'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function PaginatedGroupLDAPSourceConnectionListFromJSON(json) {
|
|
27
|
+
return PaginatedGroupLDAPSourceConnectionListFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function PaginatedGroupLDAPSourceConnectionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
35
|
+
'results': (json['results'].map(GroupLDAPSourceConnectionFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function PaginatedGroupLDAPSourceConnectionListToJSON(json) {
|
|
39
|
+
return PaginatedGroupLDAPSourceConnectionListToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function PaginatedGroupLDAPSourceConnectionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
47
|
+
'results': (value['results'].map(GroupLDAPSourceConnectionToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|