@goauthentik/api 2023.8.3-1696847703 → 2023.8.3-1697642041
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 +19 -0
- package/dist/apis/RbacApi.d.ts +403 -0
- package/dist/apis/RbacApi.js +840 -0
- package/dist/apis/StagesApi.d.ts +1 -0
- package/dist/apis/StagesApi.js +3 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RbacApi.d.ts +403 -0
- package/dist/esm/apis/RbacApi.js +836 -0
- package/dist/esm/apis/StagesApi.d.ts +1 -0
- package/dist/esm/apis/StagesApi.js +3 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AppEnum.d.ts +2 -0
- package/dist/esm/models/AppEnum.js +2 -0
- package/dist/esm/models/ConsentChallenge.d.ts +5 -5
- package/dist/esm/models/ConsentChallenge.js +5 -5
- package/dist/esm/models/ConsentPermission.d.ts +37 -0
- package/dist/esm/models/ConsentPermission.js +46 -0
- package/dist/esm/models/DenyStage.d.ts +6 -0
- package/dist/esm/models/DenyStage.js +2 -0
- package/dist/esm/models/DenyStageRequest.d.ts +6 -0
- package/dist/esm/models/DenyStageRequest.js +2 -0
- package/dist/esm/models/ExtraRoleObjectPermission.d.ts +81 -0
- package/dist/esm/models/ExtraRoleObjectPermission.js +57 -0
- package/dist/esm/models/ExtraUserObjectPermission.d.ts +81 -0
- package/dist/esm/models/ExtraUserObjectPermission.js +57 -0
- package/dist/esm/models/Group.d.ts +15 -2
- package/dist/esm/models/Group.js +6 -1
- package/dist/esm/models/GroupRequest.d.ts +6 -0
- package/dist/esm/models/GroupRequest.js +2 -0
- package/dist/esm/models/ModelEnum.d.ts +8 -4
- package/dist/esm/models/ModelEnum.js +8 -4
- package/dist/esm/models/PaginatedExtraRoleObjectPermissionList.d.ts +39 -0
- package/dist/esm/models/PaginatedExtraRoleObjectPermissionList.js +48 -0
- package/dist/esm/models/PaginatedExtraUserObjectPermissionList.d.ts +39 -0
- package/dist/esm/models/PaginatedExtraUserObjectPermissionList.js +48 -0
- package/dist/esm/models/PaginatedPermissionList.d.ts +39 -0
- package/dist/esm/models/PaginatedPermissionList.js +48 -0
- package/dist/esm/models/PaginatedRoleAssignedObjectPermissionList.d.ts +39 -0
- package/dist/esm/models/PaginatedRoleAssignedObjectPermissionList.js +48 -0
- package/dist/esm/models/PaginatedRoleList.d.ts +39 -0
- package/dist/esm/models/PaginatedRoleList.js +48 -0
- package/dist/esm/models/PaginatedUserAssignedObjectPermissionList.d.ts +39 -0
- package/dist/esm/models/PaginatedUserAssignedObjectPermissionList.js +48 -0
- package/dist/esm/models/PatchedDenyStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedDenyStageRequest.js +2 -0
- package/dist/esm/models/PatchedGroupRequest.d.ts +6 -0
- package/dist/esm/models/PatchedGroupRequest.js +2 -0
- package/dist/esm/models/PatchedPermissionAssignRequest.d.ts +44 -0
- package/dist/esm/models/PatchedPermissionAssignRequest.js +48 -0
- package/dist/esm/models/PatchedRoleRequest.d.ts +31 -0
- package/dist/esm/models/PatchedRoleRequest.js +43 -0
- package/dist/esm/models/Permission.d.ts +32 -2
- package/dist/esm/models/Permission.js +13 -3
- package/dist/esm/models/PermissionAssignRequest.d.ts +44 -0
- package/dist/esm/models/PermissionAssignRequest.js +49 -0
- package/dist/esm/models/Role.d.ts +37 -0
- package/dist/esm/models/Role.js +45 -0
- package/dist/esm/models/RoleAssignedObjectPermission.d.ts +44 -0
- package/dist/esm/models/RoleAssignedObjectPermission.js +48 -0
- package/dist/esm/models/RoleObjectPermission.d.ts +61 -0
- package/dist/esm/models/RoleObjectPermission.js +51 -0
- package/dist/esm/models/RoleRequest.d.ts +31 -0
- package/dist/esm/models/RoleRequest.js +43 -0
- package/dist/esm/models/UserAssignedObjectPermission.d.ts +88 -0
- package/dist/esm/models/UserAssignedObjectPermission.js +66 -0
- package/dist/esm/models/UserObjectPermission.d.ts +61 -0
- package/dist/esm/models/UserObjectPermission.js +51 -0
- package/dist/esm/models/UserSelf.d.ts +6 -0
- package/dist/esm/models/UserSelf.js +2 -0
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/models/AppEnum.d.ts +2 -0
- package/dist/models/AppEnum.js +2 -0
- package/dist/models/ConsentChallenge.d.ts +5 -5
- package/dist/models/ConsentChallenge.js +5 -5
- package/dist/models/ConsentPermission.d.ts +37 -0
- package/dist/models/ConsentPermission.js +53 -0
- package/dist/models/DenyStage.d.ts +6 -0
- package/dist/models/DenyStage.js +2 -0
- package/dist/models/DenyStageRequest.d.ts +6 -0
- package/dist/models/DenyStageRequest.js +2 -0
- package/dist/models/ExtraRoleObjectPermission.d.ts +81 -0
- package/dist/models/ExtraRoleObjectPermission.js +64 -0
- package/dist/models/ExtraUserObjectPermission.d.ts +81 -0
- package/dist/models/ExtraUserObjectPermission.js +64 -0
- package/dist/models/Group.d.ts +15 -2
- package/dist/models/Group.js +6 -1
- package/dist/models/GroupRequest.d.ts +6 -0
- package/dist/models/GroupRequest.js +2 -0
- package/dist/models/ModelEnum.d.ts +8 -4
- package/dist/models/ModelEnum.js +8 -4
- package/dist/models/PaginatedExtraRoleObjectPermissionList.d.ts +39 -0
- package/dist/models/PaginatedExtraRoleObjectPermissionList.js +55 -0
- package/dist/models/PaginatedExtraUserObjectPermissionList.d.ts +39 -0
- package/dist/models/PaginatedExtraUserObjectPermissionList.js +55 -0
- package/dist/models/PaginatedPermissionList.d.ts +39 -0
- package/dist/models/PaginatedPermissionList.js +55 -0
- package/dist/models/PaginatedRoleAssignedObjectPermissionList.d.ts +39 -0
- package/dist/models/PaginatedRoleAssignedObjectPermissionList.js +55 -0
- package/dist/models/PaginatedRoleList.d.ts +39 -0
- package/dist/models/PaginatedRoleList.js +55 -0
- package/dist/models/PaginatedUserAssignedObjectPermissionList.d.ts +39 -0
- package/dist/models/PaginatedUserAssignedObjectPermissionList.js +55 -0
- package/dist/models/PatchedDenyStageRequest.d.ts +6 -0
- package/dist/models/PatchedDenyStageRequest.js +2 -0
- package/dist/models/PatchedGroupRequest.d.ts +6 -0
- package/dist/models/PatchedGroupRequest.js +2 -0
- package/dist/models/PatchedPermissionAssignRequest.d.ts +44 -0
- package/dist/models/PatchedPermissionAssignRequest.js +55 -0
- package/dist/models/PatchedRoleRequest.d.ts +31 -0
- package/dist/models/PatchedRoleRequest.js +50 -0
- package/dist/models/Permission.d.ts +32 -2
- package/dist/models/Permission.js +13 -3
- package/dist/models/PermissionAssignRequest.d.ts +44 -0
- package/dist/models/PermissionAssignRequest.js +56 -0
- package/dist/models/Role.d.ts +37 -0
- package/dist/models/Role.js +52 -0
- package/dist/models/RoleAssignedObjectPermission.d.ts +44 -0
- package/dist/models/RoleAssignedObjectPermission.js +55 -0
- package/dist/models/RoleObjectPermission.d.ts +61 -0
- package/dist/models/RoleObjectPermission.js +58 -0
- package/dist/models/RoleRequest.d.ts +31 -0
- package/dist/models/RoleRequest.js +50 -0
- package/dist/models/UserAssignedObjectPermission.d.ts +88 -0
- package/dist/models/UserAssignedObjectPermission.js +73 -0
- package/dist/models/UserObjectPermission.d.ts +61 -0
- package/dist/models/UserObjectPermission.js +58 -0
- package/dist/models/UserSelf.d.ts +6 -0
- package/dist/models/UserSelf.js +2 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/package.json +1 -1
- package/src/apis/RbacApi.ts +1081 -0
- package/src/apis/StagesApi.ts +5 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AppEnum.ts +2 -0
- package/src/models/ConsentChallenge.ts +14 -14
- package/src/models/ConsentPermission.ts +75 -0
- package/src/models/DenyStage.ts +8 -0
- package/src/models/DenyStageRequest.ts +8 -0
- package/src/models/ExtraRoleObjectPermission.ts +131 -0
- package/src/models/ExtraUserObjectPermission.ts +131 -0
- package/src/models/Group.ts +25 -3
- package/src/models/GroupRequest.ts +8 -0
- package/src/models/ModelEnum.ts +8 -4
- package/src/models/PaginatedExtraRoleObjectPermissionList.ts +88 -0
- package/src/models/PaginatedExtraUserObjectPermissionList.ts +88 -0
- package/src/models/PaginatedPermissionList.ts +88 -0
- package/src/models/PaginatedRoleAssignedObjectPermissionList.ts +88 -0
- package/src/models/PaginatedRoleList.ts +88 -0
- package/src/models/PaginatedUserAssignedObjectPermissionList.ts +88 -0
- package/src/models/PatchedDenyStageRequest.ts +8 -0
- package/src/models/PatchedGroupRequest.ts +8 -0
- package/src/models/PatchedPermissionAssignRequest.ts +88 -0
- package/src/models/PatchedRoleRequest.ts +65 -0
- package/src/models/Permission.ts +45 -5
- package/src/models/PermissionAssignRequest.ts +89 -0
- package/src/models/Role.ts +74 -0
- package/src/models/RoleAssignedObjectPermission.ts +89 -0
- package/src/models/RoleObjectPermission.ts +105 -0
- package/src/models/RoleRequest.ts +66 -0
- package/src/models/UserAssignedObjectPermission.ts +148 -0
- package/src/models/UserObjectPermission.ts +105 -0
- package/src/models/UserSelf.ts +8 -0
- package/src/models/index.ts +18 -0
package/src/apis/StagesApi.ts
CHANGED
|
@@ -653,6 +653,7 @@ export interface StagesDenyDestroyRequest {
|
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
export interface StagesDenyListRequest {
|
|
656
|
+
denyMessage?: string;
|
|
656
657
|
name?: string;
|
|
657
658
|
ordering?: string;
|
|
658
659
|
page?: number;
|
|
@@ -3806,6 +3807,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
3806
3807
|
async stagesDenyListRaw(requestParameters: StagesDenyListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedDenyStageList>> {
|
|
3807
3808
|
const queryParameters: any = {};
|
|
3808
3809
|
|
|
3810
|
+
if (requestParameters.denyMessage !== undefined) {
|
|
3811
|
+
queryParameters['deny_message'] = requestParameters.denyMessage;
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3809
3814
|
if (requestParameters.name !== undefined) {
|
|
3810
3815
|
queryParameters['name'] = requestParameters.name;
|
|
3811
3816
|
}
|
package/src/apis/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './OutpostsApi';
|
|
|
13
13
|
export * from './PoliciesApi';
|
|
14
14
|
export * from './PropertymappingsApi';
|
|
15
15
|
export * from './ProvidersApi';
|
|
16
|
+
export * from './RbacApi';
|
|
16
17
|
export * from './RootApi';
|
|
17
18
|
export * from './SchemaApi';
|
|
18
19
|
export * from './SourcesApi';
|
package/src/models/AppEnum.ts
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
* * `authentik.providers.radius` - authentik Providers.Radius
|
|
34
34
|
* * `authentik.providers.saml` - authentik Providers.SAML
|
|
35
35
|
* * `authentik.providers.scim` - authentik Providers.SCIM
|
|
36
|
+
* * `authentik.rbac` - authentik RBAC
|
|
36
37
|
* * `authentik.recovery` - authentik Recovery
|
|
37
38
|
* * `authentik.sources.ldap` - authentik Sources.LDAP
|
|
38
39
|
* * `authentik.sources.oauth` - authentik Sources.OAuth
|
|
@@ -84,6 +85,7 @@ export const AppEnum = {
|
|
|
84
85
|
ProvidersRadius: 'authentik.providers.radius',
|
|
85
86
|
ProvidersSaml: 'authentik.providers.saml',
|
|
86
87
|
ProvidersScim: 'authentik.providers.scim',
|
|
88
|
+
Rbac: 'authentik.rbac',
|
|
87
89
|
Recovery: 'authentik.recovery',
|
|
88
90
|
SourcesLdap: 'authentik.sources.ldap',
|
|
89
91
|
SourcesOauth: 'authentik.sources.oauth',
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
ChallengeChoicesFromJSONTyped,
|
|
20
20
|
ChallengeChoicesToJSON,
|
|
21
21
|
} from './ChallengeChoices';
|
|
22
|
+
import type { ConsentPermission } from './ConsentPermission';
|
|
23
|
+
import {
|
|
24
|
+
ConsentPermissionFromJSON,
|
|
25
|
+
ConsentPermissionFromJSONTyped,
|
|
26
|
+
ConsentPermissionToJSON,
|
|
27
|
+
} from './ConsentPermission';
|
|
22
28
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
23
29
|
import {
|
|
24
30
|
ContextualFlowInfoFromJSON,
|
|
@@ -31,12 +37,6 @@ import {
|
|
|
31
37
|
ErrorDetailFromJSONTyped,
|
|
32
38
|
ErrorDetailToJSON,
|
|
33
39
|
} from './ErrorDetail';
|
|
34
|
-
import type { Permission } from './Permission';
|
|
35
|
-
import {
|
|
36
|
-
PermissionFromJSON,
|
|
37
|
-
PermissionFromJSONTyped,
|
|
38
|
-
PermissionToJSON,
|
|
39
|
-
} from './Permission';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Challenge info for consent screens
|
|
@@ -88,16 +88,16 @@ export interface ConsentChallenge {
|
|
|
88
88
|
headerText?: string;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
|
-
* @type {Array<
|
|
91
|
+
* @type {Array<ConsentPermission>}
|
|
92
92
|
* @memberof ConsentChallenge
|
|
93
93
|
*/
|
|
94
|
-
permissions: Array<
|
|
94
|
+
permissions: Array<ConsentPermission>;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
|
-
* @type {Array<
|
|
97
|
+
* @type {Array<ConsentPermission>}
|
|
98
98
|
* @memberof ConsentChallenge
|
|
99
99
|
*/
|
|
100
|
-
additionalPermissions: Array<
|
|
100
|
+
additionalPermissions: Array<ConsentPermission>;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
@@ -138,8 +138,8 @@ export function ConsentChallengeFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
138
138
|
'pendingUser': json['pending_user'],
|
|
139
139
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
140
140
|
'headerText': !exists(json, 'header_text') ? undefined : json['header_text'],
|
|
141
|
-
'permissions': ((json['permissions'] as Array<any>).map(
|
|
142
|
-
'additionalPermissions': ((json['additional_permissions'] as Array<any>).map(
|
|
141
|
+
'permissions': ((json['permissions'] as Array<any>).map(ConsentPermissionFromJSON)),
|
|
142
|
+
'additionalPermissions': ((json['additional_permissions'] as Array<any>).map(ConsentPermissionFromJSON)),
|
|
143
143
|
'token': json['token'],
|
|
144
144
|
};
|
|
145
145
|
}
|
|
@@ -160,8 +160,8 @@ export function ConsentChallengeToJSON(value?: ConsentChallenge | null): any {
|
|
|
160
160
|
'pending_user': value.pendingUser,
|
|
161
161
|
'pending_user_avatar': value.pendingUserAvatar,
|
|
162
162
|
'header_text': value.headerText,
|
|
163
|
-
'permissions': ((value.permissions as Array<any>).map(
|
|
164
|
-
'additional_permissions': ((value.additionalPermissions as Array<any>).map(
|
|
163
|
+
'permissions': ((value.permissions as Array<any>).map(ConsentPermissionToJSON)),
|
|
164
|
+
'additional_permissions': ((value.additionalPermissions as Array<any>).map(ConsentPermissionToJSON)),
|
|
165
165
|
'token': value.token,
|
|
166
166
|
};
|
|
167
167
|
}
|
|
@@ -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: 2023.8.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Permission used for consent
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConsentPermission
|
|
20
|
+
*/
|
|
21
|
+
export interface ConsentPermission {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConsentPermission
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ConsentPermission
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ConsentPermission interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfConsentPermission(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "name" in value;
|
|
42
|
+
isInstance = isInstance && "id" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ConsentPermissionFromJSON(json: any): ConsentPermission {
|
|
48
|
+
return ConsentPermissionFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ConsentPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentPermission {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ConsentPermissionToJSON(value?: ConsentPermission | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value.name,
|
|
72
|
+
'id': value.id,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/DenyStage.ts
CHANGED
|
@@ -68,6 +68,12 @@ export interface DenyStage {
|
|
|
68
68
|
* @memberof DenyStage
|
|
69
69
|
*/
|
|
70
70
|
flowSet?: Array<FlowSet>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof DenyStage
|
|
75
|
+
*/
|
|
76
|
+
denyMessage?: string;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
/**
|
|
@@ -102,6 +108,7 @@ export function DenyStageFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
102
108
|
'verboseNamePlural': json['verbose_name_plural'],
|
|
103
109
|
'metaModelName': json['meta_model_name'],
|
|
104
110
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
|
|
111
|
+
'denyMessage': !exists(json, 'deny_message') ? undefined : json['deny_message'],
|
|
105
112
|
};
|
|
106
113
|
}
|
|
107
114
|
|
|
@@ -116,6 +123,7 @@ export function DenyStageToJSON(value?: DenyStage | null): any {
|
|
|
116
123
|
|
|
117
124
|
'name': value.name,
|
|
118
125
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetToJSON)),
|
|
126
|
+
'deny_message': value.denyMessage,
|
|
119
127
|
};
|
|
120
128
|
}
|
|
121
129
|
|
|
@@ -38,6 +38,12 @@ export interface DenyStageRequest {
|
|
|
38
38
|
* @memberof DenyStageRequest
|
|
39
39
|
*/
|
|
40
40
|
flowSet?: Array<FlowSetRequest>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof DenyStageRequest
|
|
45
|
+
*/
|
|
46
|
+
denyMessage?: string;
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
/**
|
|
@@ -62,6 +68,7 @@ export function DenyStageRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
62
68
|
|
|
63
69
|
'name': json['name'],
|
|
64
70
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
|
71
|
+
'denyMessage': !exists(json, 'deny_message') ? undefined : json['deny_message'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -76,6 +83,7 @@ export function DenyStageRequestToJSON(value?: DenyStageRequest | null): any {
|
|
|
76
83
|
|
|
77
84
|
'name': value.name,
|
|
78
85
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
|
|
86
|
+
'deny_message': value.denyMessage,
|
|
79
87
|
};
|
|
80
88
|
}
|
|
81
89
|
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.8.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* User permission with additional object-related data
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ExtraRoleObjectPermission
|
|
20
|
+
*/
|
|
21
|
+
export interface ExtraRoleObjectPermission {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ExtraRoleObjectPermission
|
|
26
|
+
*/
|
|
27
|
+
readonly id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ExtraRoleObjectPermission
|
|
32
|
+
*/
|
|
33
|
+
readonly codename: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ExtraRoleObjectPermission
|
|
38
|
+
*/
|
|
39
|
+
readonly model: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ExtraRoleObjectPermission
|
|
44
|
+
*/
|
|
45
|
+
readonly appLabel: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ExtraRoleObjectPermission
|
|
50
|
+
*/
|
|
51
|
+
readonly objectPk: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ExtraRoleObjectPermission
|
|
56
|
+
*/
|
|
57
|
+
readonly name: string;
|
|
58
|
+
/**
|
|
59
|
+
* Get app label from permission's model
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ExtraRoleObjectPermission
|
|
62
|
+
*/
|
|
63
|
+
readonly appLabelVerbose: string;
|
|
64
|
+
/**
|
|
65
|
+
* Get model label from permission's model
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ExtraRoleObjectPermission
|
|
68
|
+
*/
|
|
69
|
+
readonly modelVerbose: string;
|
|
70
|
+
/**
|
|
71
|
+
* Get model description from attached model. This operation takes at least
|
|
72
|
+
* one additional query, and the description is only shown if the user/role has the
|
|
73
|
+
* view_ permission on the object
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ExtraRoleObjectPermission
|
|
76
|
+
*/
|
|
77
|
+
readonly objectDescription: string | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the ExtraRoleObjectPermission interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfExtraRoleObjectPermission(value: object): boolean {
|
|
84
|
+
let isInstance = true;
|
|
85
|
+
isInstance = isInstance && "id" in value;
|
|
86
|
+
isInstance = isInstance && "codename" in value;
|
|
87
|
+
isInstance = isInstance && "model" in value;
|
|
88
|
+
isInstance = isInstance && "appLabel" in value;
|
|
89
|
+
isInstance = isInstance && "objectPk" in value;
|
|
90
|
+
isInstance = isInstance && "name" in value;
|
|
91
|
+
isInstance = isInstance && "appLabelVerbose" in value;
|
|
92
|
+
isInstance = isInstance && "modelVerbose" in value;
|
|
93
|
+
isInstance = isInstance && "objectDescription" in value;
|
|
94
|
+
|
|
95
|
+
return isInstance;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function ExtraRoleObjectPermissionFromJSON(json: any): ExtraRoleObjectPermission {
|
|
99
|
+
return ExtraRoleObjectPermissionFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function ExtraRoleObjectPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraRoleObjectPermission {
|
|
103
|
+
if ((json === undefined) || (json === null)) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'id': json['id'],
|
|
109
|
+
'codename': json['codename'],
|
|
110
|
+
'model': json['model'],
|
|
111
|
+
'appLabel': json['app_label'],
|
|
112
|
+
'objectPk': json['object_pk'],
|
|
113
|
+
'name': json['name'],
|
|
114
|
+
'appLabelVerbose': json['app_label_verbose'],
|
|
115
|
+
'modelVerbose': json['model_verbose'],
|
|
116
|
+
'objectDescription': json['object_description'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ExtraRoleObjectPermissionToJSON(value?: ExtraRoleObjectPermission | null): any {
|
|
121
|
+
if (value === undefined) {
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
if (value === null) {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.8.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* User permission with additional object-related data
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ExtraUserObjectPermission
|
|
20
|
+
*/
|
|
21
|
+
export interface ExtraUserObjectPermission {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ExtraUserObjectPermission
|
|
26
|
+
*/
|
|
27
|
+
readonly id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ExtraUserObjectPermission
|
|
32
|
+
*/
|
|
33
|
+
readonly codename: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ExtraUserObjectPermission
|
|
38
|
+
*/
|
|
39
|
+
readonly model: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ExtraUserObjectPermission
|
|
44
|
+
*/
|
|
45
|
+
readonly appLabel: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ExtraUserObjectPermission
|
|
50
|
+
*/
|
|
51
|
+
readonly objectPk: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ExtraUserObjectPermission
|
|
56
|
+
*/
|
|
57
|
+
readonly name: string;
|
|
58
|
+
/**
|
|
59
|
+
* Get app label from permission's model
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ExtraUserObjectPermission
|
|
62
|
+
*/
|
|
63
|
+
readonly appLabelVerbose: string;
|
|
64
|
+
/**
|
|
65
|
+
* Get model label from permission's model
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ExtraUserObjectPermission
|
|
68
|
+
*/
|
|
69
|
+
readonly modelVerbose: string;
|
|
70
|
+
/**
|
|
71
|
+
* Get model description from attached model. This operation takes at least
|
|
72
|
+
* one additional query, and the description is only shown if the user/role has the
|
|
73
|
+
* view_ permission on the object
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ExtraUserObjectPermission
|
|
76
|
+
*/
|
|
77
|
+
readonly objectDescription: string | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the ExtraUserObjectPermission interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfExtraUserObjectPermission(value: object): boolean {
|
|
84
|
+
let isInstance = true;
|
|
85
|
+
isInstance = isInstance && "id" in value;
|
|
86
|
+
isInstance = isInstance && "codename" in value;
|
|
87
|
+
isInstance = isInstance && "model" in value;
|
|
88
|
+
isInstance = isInstance && "appLabel" in value;
|
|
89
|
+
isInstance = isInstance && "objectPk" in value;
|
|
90
|
+
isInstance = isInstance && "name" in value;
|
|
91
|
+
isInstance = isInstance && "appLabelVerbose" in value;
|
|
92
|
+
isInstance = isInstance && "modelVerbose" in value;
|
|
93
|
+
isInstance = isInstance && "objectDescription" in value;
|
|
94
|
+
|
|
95
|
+
return isInstance;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function ExtraUserObjectPermissionFromJSON(json: any): ExtraUserObjectPermission {
|
|
99
|
+
return ExtraUserObjectPermissionFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function ExtraUserObjectPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraUserObjectPermission {
|
|
103
|
+
if ((json === undefined) || (json === null)) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'id': json['id'],
|
|
109
|
+
'codename': json['codename'],
|
|
110
|
+
'model': json['model'],
|
|
111
|
+
'appLabel': json['app_label'],
|
|
112
|
+
'objectPk': json['object_pk'],
|
|
113
|
+
'name': json['name'],
|
|
114
|
+
'appLabelVerbose': json['app_label_verbose'],
|
|
115
|
+
'modelVerbose': json['model_verbose'],
|
|
116
|
+
'objectDescription': json['object_description'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ExtraUserObjectPermissionToJSON(value?: ExtraUserObjectPermission | null): any {
|
|
121
|
+
if (value === undefined) {
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
if (value === null) {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
package/src/models/Group.ts
CHANGED
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
GroupMemberFromJSONTyped,
|
|
20
20
|
GroupMemberToJSON,
|
|
21
21
|
} from './GroupMember';
|
|
22
|
+
import type { Role } from './Role';
|
|
23
|
+
import {
|
|
24
|
+
RoleFromJSON,
|
|
25
|
+
RoleFromJSONTyped,
|
|
26
|
+
RoleToJSON,
|
|
27
|
+
} from './Role';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
* Group Serializer
|
|
@@ -68,6 +74,12 @@ export interface Group {
|
|
|
68
74
|
* @memberof Group
|
|
69
75
|
*/
|
|
70
76
|
users?: Array<number>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<GroupMember>}
|
|
80
|
+
* @memberof Group
|
|
81
|
+
*/
|
|
82
|
+
readonly usersObj: Array<GroupMember>;
|
|
71
83
|
/**
|
|
72
84
|
*
|
|
73
85
|
* @type {{ [key: string]: any; }}
|
|
@@ -76,10 +88,16 @@ export interface Group {
|
|
|
76
88
|
attributes?: { [key: string]: any; };
|
|
77
89
|
/**
|
|
78
90
|
*
|
|
79
|
-
* @type {Array<
|
|
91
|
+
* @type {Array<string>}
|
|
80
92
|
* @memberof Group
|
|
81
93
|
*/
|
|
82
|
-
|
|
94
|
+
roles?: Array<string>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {Array<Role>}
|
|
98
|
+
* @memberof Group
|
|
99
|
+
*/
|
|
100
|
+
readonly rolesObj: Array<Role>;
|
|
83
101
|
}
|
|
84
102
|
|
|
85
103
|
/**
|
|
@@ -92,6 +110,7 @@ export function instanceOfGroup(value: object): boolean {
|
|
|
92
110
|
isInstance = isInstance && "name" in value;
|
|
93
111
|
isInstance = isInstance && "parentName" in value;
|
|
94
112
|
isInstance = isInstance && "usersObj" in value;
|
|
113
|
+
isInstance = isInstance && "rolesObj" in value;
|
|
95
114
|
|
|
96
115
|
return isInstance;
|
|
97
116
|
}
|
|
@@ -113,8 +132,10 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
|
|
|
113
132
|
'parent': !exists(json, 'parent') ? undefined : json['parent'],
|
|
114
133
|
'parentName': json['parent_name'],
|
|
115
134
|
'users': !exists(json, 'users') ? undefined : json['users'],
|
|
116
|
-
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
117
135
|
'usersObj': ((json['users_obj'] as Array<any>).map(GroupMemberFromJSON)),
|
|
136
|
+
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
137
|
+
'roles': !exists(json, 'roles') ? undefined : json['roles'],
|
|
138
|
+
'rolesObj': ((json['roles_obj'] as Array<any>).map(RoleFromJSON)),
|
|
118
139
|
};
|
|
119
140
|
}
|
|
120
141
|
|
|
@@ -132,6 +153,7 @@ export function GroupToJSON(value?: Group | null): any {
|
|
|
132
153
|
'parent': value.parent,
|
|
133
154
|
'users': value.users,
|
|
134
155
|
'attributes': value.attributes,
|
|
156
|
+
'roles': value.roles,
|
|
135
157
|
};
|
|
136
158
|
}
|
|
137
159
|
|
|
@@ -49,6 +49,12 @@ export interface GroupRequest {
|
|
|
49
49
|
* @memberof GroupRequest
|
|
50
50
|
*/
|
|
51
51
|
attributes?: { [key: string]: any; };
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof GroupRequest
|
|
56
|
+
*/
|
|
57
|
+
roles?: Array<string>;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -76,6 +82,7 @@ export function GroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
76
82
|
'parent': !exists(json, 'parent') ? undefined : json['parent'],
|
|
77
83
|
'users': !exists(json, 'users') ? undefined : json['users'],
|
|
78
84
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
85
|
+
'roles': !exists(json, 'roles') ? undefined : json['roles'],
|
|
79
86
|
};
|
|
80
87
|
}
|
|
81
88
|
|
|
@@ -93,6 +100,7 @@ export function GroupRequestToJSON(value?: GroupRequest | null): any {
|
|
|
93
100
|
'parent': value.parent,
|
|
94
101
|
'users': value.users,
|
|
95
102
|
'attributes': value.attributes,
|
|
103
|
+
'roles': value.roles,
|
|
96
104
|
};
|
|
97
105
|
}
|
|
98
106
|
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* * `authentik_flows.flowstagebinding` - Flow Stage Binding
|
|
25
25
|
* * `authentik_outposts.dockerserviceconnection` - Docker Service-Connection
|
|
26
26
|
* * `authentik_outposts.kubernetesserviceconnection` - Kubernetes Service-Connection
|
|
27
|
-
* * `authentik_outposts.outpost` -
|
|
27
|
+
* * `authentik_outposts.outpost` - Outpost
|
|
28
28
|
* * `authentik_policies_dummy.dummypolicy` - Dummy Policy
|
|
29
29
|
* * `authentik_policies_event_matcher.eventmatcherpolicy` - Event Matcher Policy
|
|
30
30
|
* * `authentik_policies_expiry.passwordexpirypolicy` - Password Expiry Policy
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
* * `authentik_providers_saml.samlpropertymapping` - SAML Property Mapping
|
|
46
46
|
* * `authentik_providers_scim.scimprovider` - SCIM Provider
|
|
47
47
|
* * `authentik_providers_scim.scimmapping` - SCIM Mapping
|
|
48
|
+
* * `authentik_rbac.role` - Role
|
|
48
49
|
* * `authentik_sources_ldap.ldapsource` - LDAP Source
|
|
49
50
|
* * `authentik_sources_ldap.ldappropertymapping` - LDAP Property Mapping
|
|
50
51
|
* * `authentik_sources_oauth.oauthsource` - OAuth Source
|
|
@@ -58,9 +59,9 @@
|
|
|
58
59
|
* * `authentik_stages_authenticator_sms.authenticatorsmsstage` - SMS Authenticator Setup Stage
|
|
59
60
|
* * `authentik_stages_authenticator_sms.smsdevice` - SMS Device
|
|
60
61
|
* * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Stage
|
|
61
|
-
* * `authentik_stages_authenticator_static.staticdevice` - Static
|
|
62
|
+
* * `authentik_stages_authenticator_static.staticdevice` - Static Device
|
|
62
63
|
* * `authentik_stages_authenticator_totp.authenticatortotpstage` - TOTP Authenticator Setup Stage
|
|
63
|
-
* * `authentik_stages_authenticator_totp.totpdevice` - TOTP
|
|
64
|
+
* * `authentik_stages_authenticator_totp.totpdevice` - TOTP Device
|
|
64
65
|
* * `authentik_stages_authenticator_validate.authenticatorvalidatestage` - Authenticator Validation Stage
|
|
65
66
|
* * `authentik_stages_authenticator_webauthn.authenticatewebauthnstage` - WebAuthn Authenticator Setup Stage
|
|
66
67
|
* * `authentik_stages_authenticator_webauthn.webauthndevice` - WebAuthn Device
|
|
@@ -82,10 +83,11 @@
|
|
|
82
83
|
* * `authentik_stages_user_write.userwritestage` - User Write Stage
|
|
83
84
|
* * `authentik_tenants.tenant` - Tenant
|
|
84
85
|
* * `authentik_blueprints.blueprintinstance` - Blueprint Instance
|
|
85
|
-
* * `authentik_core.group` -
|
|
86
|
+
* * `authentik_core.group` - Group
|
|
86
87
|
* * `authentik_core.user` - User
|
|
87
88
|
* * `authentik_core.application` - Application
|
|
88
89
|
* * `authentik_core.token` - Token
|
|
90
|
+
* * `authentik_enterprise.license` - License
|
|
89
91
|
* @export
|
|
90
92
|
*/
|
|
91
93
|
export const ModelEnum = {
|
|
@@ -120,6 +122,7 @@ export const ModelEnum = {
|
|
|
120
122
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
|
121
123
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
|
122
124
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
|
125
|
+
RbacRole: 'authentik_rbac.role',
|
|
123
126
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
|
124
127
|
SourcesLdapLdappropertymapping: 'authentik_sources_ldap.ldappropertymapping',
|
|
125
128
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
|
@@ -161,6 +164,7 @@ export const ModelEnum = {
|
|
|
161
164
|
CoreUser: 'authentik_core.user',
|
|
162
165
|
CoreApplication: 'authentik_core.application',
|
|
163
166
|
CoreToken: 'authentik_core.token',
|
|
167
|
+
EnterpriseLicense: 'authentik_enterprise.license',
|
|
164
168
|
UnknownDefaultOpenApi: '11184809'
|
|
165
169
|
} as const;
|
|
166
170
|
export type ModelEnum = typeof ModelEnum[keyof typeof ModelEnum];
|