@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,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 { InitialPermissions } from './InitialPermissions';
|
|
24
|
+
import {
|
|
25
|
+
InitialPermissionsFromJSON,
|
|
26
|
+
InitialPermissionsFromJSONTyped,
|
|
27
|
+
InitialPermissionsToJSON,
|
|
28
|
+
InitialPermissionsToJSONTyped,
|
|
29
|
+
} from './InitialPermissions';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedInitialPermissionsList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedInitialPermissionsList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedInitialPermissionsList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<InitialPermissions>}
|
|
46
|
+
* @memberof PaginatedInitialPermissionsList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<InitialPermissions>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedInitialPermissionsList interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedInitialPermissionsList(value: object): value is PaginatedInitialPermissionsList {
|
|
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 PaginatedInitialPermissionsListFromJSON(json: any): PaginatedInitialPermissionsList {
|
|
61
|
+
return PaginatedInitialPermissionsListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedInitialPermissionsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedInitialPermissionsList {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(InitialPermissionsFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedInitialPermissionsListToJSON(json: any): PaginatedInitialPermissionsList {
|
|
76
|
+
return PaginatedInitialPermissionsListToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedInitialPermissionsListToJSONTyped(value?: PaginatedInitialPermissionsList | 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(InitialPermissionsToJSON)),
|
|
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
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { InitialPermissionsModeEnum } from './InitialPermissionsModeEnum';
|
|
17
|
+
import {
|
|
18
|
+
InitialPermissionsModeEnumFromJSON,
|
|
19
|
+
InitialPermissionsModeEnumFromJSONTyped,
|
|
20
|
+
InitialPermissionsModeEnumToJSON,
|
|
21
|
+
InitialPermissionsModeEnumToJSONTyped,
|
|
22
|
+
} from './InitialPermissionsModeEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* InitialPermissions serializer
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PatchedInitialPermissionsRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface PatchedInitialPermissionsRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PatchedInitialPermissionsRequest
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {InitialPermissionsModeEnum}
|
|
39
|
+
* @memberof PatchedInitialPermissionsRequest
|
|
40
|
+
*/
|
|
41
|
+
mode?: InitialPermissionsModeEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PatchedInitialPermissionsRequest
|
|
46
|
+
*/
|
|
47
|
+
role?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<number>}
|
|
51
|
+
* @memberof PatchedInitialPermissionsRequest
|
|
52
|
+
*/
|
|
53
|
+
permissions?: Array<number>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the PatchedInitialPermissionsRequest interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfPatchedInitialPermissionsRequest(value: object): value is PatchedInitialPermissionsRequest {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PatchedInitialPermissionsRequestFromJSON(json: any): PatchedInitialPermissionsRequest {
|
|
66
|
+
return PatchedInitialPermissionsRequestFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PatchedInitialPermissionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedInitialPermissionsRequest {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
76
|
+
'mode': json['mode'] == null ? undefined : InitialPermissionsModeEnumFromJSON(json['mode']),
|
|
77
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
78
|
+
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function PatchedInitialPermissionsRequestToJSON(json: any): PatchedInitialPermissionsRequest {
|
|
83
|
+
return PatchedInitialPermissionsRequestToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function PatchedInitialPermissionsRequestToJSONTyped(value?: PatchedInitialPermissionsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'name': value['name'],
|
|
94
|
+
'mode': InitialPermissionsModeEnumToJSON(value['mode']),
|
|
95
|
+
'role': value['role'],
|
|
96
|
+
'permissions': value['permissions'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -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'],
|
|
@@ -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
|
+
* User source connection
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PatchedUserLDAPSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedUserLDAPSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PatchedUserLDAPSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedUserLDAPSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PatchedUserLDAPSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PatchedUserLDAPSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPatchedUserLDAPSourceConnectionRequest(value: object): value is PatchedUserLDAPSourceConnectionRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PatchedUserLDAPSourceConnectionRequestFromJSON(json: any): PatchedUserLDAPSourceConnectionRequest {
|
|
50
|
+
return PatchedUserLDAPSourceConnectionRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PatchedUserLDAPSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserLDAPSourceConnectionRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'user': json['user'] == null ? undefined : json['user'],
|
|
60
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
61
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PatchedUserLDAPSourceConnectionRequestToJSON(json: any): PatchedUserLDAPSourceConnectionRequest {
|
|
66
|
+
return PatchedUserLDAPSourceConnectionRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PatchedUserLDAPSourceConnectionRequestToJSONTyped(value?: PatchedUserLDAPSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'user': value['user'],
|
|
77
|
+
'source': value['source'],
|
|
78
|
+
'identifier': value['identifier'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
* Global permission
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PermissionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PermissionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PermissionRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PermissionRequest
|
|
32
|
+
*/
|
|
33
|
+
codename: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PermissionRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPermissionRequest(value: object): value is PermissionRequest {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('codename' in value) || value['codename'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PermissionRequestFromJSON(json: any): PermissionRequest {
|
|
46
|
+
return PermissionRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'codename': json['codename'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PermissionRequestToJSON(json: any): PermissionRequest {
|
|
61
|
+
return PermissionRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PermissionRequestToJSONTyped(value?: PermissionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'codename': value['codename'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/Settings.ts
CHANGED
|
@@ -49,6 +49,18 @@ export interface Settings {
|
|
|
49
49
|
* @memberof Settings
|
|
50
50
|
*/
|
|
51
51
|
eventRetention?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Reputation cannot decrease lower than this value. Zero or negative.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof Settings
|
|
56
|
+
*/
|
|
57
|
+
reputationLowerLimit?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Reputation cannot increase higher than this value. Zero or positive.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Settings
|
|
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 SettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
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 SettingsToJSONTyped(value?: Settings | null, ignoreDiscriminator
|
|
|
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'],
|
|
@@ -49,6 +49,18 @@ export interface SettingsRequest {
|
|
|
49
49
|
* @memberof SettingsRequest
|
|
50
50
|
*/
|
|
51
51
|
eventRetention?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Reputation cannot decrease lower than this value. Zero or negative.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof SettingsRequest
|
|
56
|
+
*/
|
|
57
|
+
reputationLowerLimit?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Reputation cannot increase higher than this value. Zero or positive.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof SettingsRequest
|
|
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 SettingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
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 SettingsRequestToJSONTyped(value?: SettingsRequest | null, ignor
|
|
|
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'],
|