@goauthentik/api 2025.6.4-1754241870 → 2025.6.4-1754310573
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 +1 -0
- package/dist/apis/CoreApi.d.ts +2 -0
- package/dist/apis/CoreApi.d.ts.map +1 -1
- package/dist/apis/CoreApi.js +6 -0
- package/dist/apis/CoreApi.js.map +1 -1
- package/dist/esm/apis/CoreApi.d.ts +2 -0
- package/dist/esm/apis/CoreApi.d.ts.map +1 -1
- package/dist/esm/apis/CoreApi.js +6 -0
- package/dist/esm/apis/CoreApi.js.map +1 -1
- package/dist/esm/models/Group.d.ts +14 -1
- package/dist/esm/models/Group.d.ts.map +1 -1
- package/dist/esm/models/Group.js +6 -0
- package/dist/esm/models/Group.js.map +1 -1
- package/dist/esm/models/GroupChild.d.ts +59 -0
- package/dist/esm/models/GroupChild.d.ts.map +1 -0
- package/dist/esm/models/GroupChild.js +61 -0
- package/dist/esm/models/GroupChild.js.map +1 -0
- package/dist/esm/models/GroupRequest.d.ts +6 -0
- package/dist/esm/models/GroupRequest.d.ts.map +1 -1
- package/dist/esm/models/GroupRequest.js +2 -0
- package/dist/esm/models/GroupRequest.js.map +1 -1
- package/dist/esm/models/PatchedGroupRequest.d.ts +6 -0
- package/dist/esm/models/PatchedGroupRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedGroupRequest.js +2 -0
- package/dist/esm/models/PatchedGroupRequest.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/models/Group.d.ts +14 -1
- package/dist/models/Group.d.ts.map +1 -1
- package/dist/models/Group.js +6 -0
- package/dist/models/Group.js.map +1 -1
- package/dist/models/GroupChild.d.ts +59 -0
- package/dist/models/GroupChild.d.ts.map +1 -0
- package/dist/models/GroupChild.js +61 -0
- package/dist/models/GroupChild.js.map +1 -0
- package/dist/models/GroupRequest.d.ts +6 -0
- package/dist/models/GroupRequest.d.ts.map +1 -1
- package/dist/models/GroupRequest.js +2 -0
- package/dist/models/GroupRequest.js.map +1 -1
- package/dist/models/PatchedGroupRequest.d.ts +6 -0
- package/dist/models/PatchedGroupRequest.d.ts.map +1 -1
- package/dist/models/PatchedGroupRequest.js +2 -0
- package/dist/models/PatchedGroupRequest.js.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +10 -0
- package/src/models/Group.ts +24 -1
- package/src/models/GroupChild.ts +98 -0
- package/src/models/GroupRequest.ts +8 -0
- package/src/models/PatchedGroupRequest.ts +8 -0
- package/src/models/index.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/apis/CoreApi.ts
CHANGED
|
@@ -336,6 +336,7 @@ export interface CoreGroupsDestroyRequest {
|
|
|
336
336
|
|
|
337
337
|
export interface CoreGroupsListRequest {
|
|
338
338
|
attributes?: string;
|
|
339
|
+
includeChildren?: boolean;
|
|
339
340
|
includeUsers?: boolean;
|
|
340
341
|
isSuperuser?: boolean;
|
|
341
342
|
membersByPk?: Array<number>;
|
|
@@ -359,6 +360,7 @@ export interface CoreGroupsRemoveUserCreateRequest {
|
|
|
359
360
|
|
|
360
361
|
export interface CoreGroupsRetrieveRequest {
|
|
361
362
|
groupUuid: string;
|
|
363
|
+
includeChildren?: boolean;
|
|
362
364
|
includeUsers?: boolean;
|
|
363
365
|
}
|
|
364
366
|
|
|
@@ -2086,6 +2088,10 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2086
2088
|
queryParameters['attributes'] = requestParameters['attributes'];
|
|
2087
2089
|
}
|
|
2088
2090
|
|
|
2091
|
+
if (requestParameters['includeChildren'] != null) {
|
|
2092
|
+
queryParameters['include_children'] = requestParameters['includeChildren'];
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2089
2095
|
if (requestParameters['includeUsers'] != null) {
|
|
2090
2096
|
queryParameters['include_users'] = requestParameters['includeUsers'];
|
|
2091
2097
|
}
|
|
@@ -2257,6 +2263,10 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
2257
2263
|
|
|
2258
2264
|
const queryParameters: any = {};
|
|
2259
2265
|
|
|
2266
|
+
if (requestParameters['includeChildren'] != null) {
|
|
2267
|
+
queryParameters['include_children'] = requestParameters['includeChildren'];
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2260
2270
|
if (requestParameters['includeUsers'] != null) {
|
|
2261
2271
|
queryParameters['include_users'] = requestParameters['includeUsers'];
|
|
2262
2272
|
}
|
package/src/models/Group.ts
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
GroupMemberToJSON,
|
|
28
28
|
GroupMemberToJSONTyped,
|
|
29
29
|
} from './GroupMember';
|
|
30
|
+
import type { GroupChild } from './GroupChild';
|
|
31
|
+
import {
|
|
32
|
+
GroupChildFromJSON,
|
|
33
|
+
GroupChildFromJSONTyped,
|
|
34
|
+
GroupChildToJSON,
|
|
35
|
+
GroupChildToJSONTyped,
|
|
36
|
+
} from './GroupChild';
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
* Group Serializer
|
|
@@ -100,6 +107,18 @@ export interface Group {
|
|
|
100
107
|
* @memberof Group
|
|
101
108
|
*/
|
|
102
109
|
readonly rolesObj: Array<Role>;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {Array<string>}
|
|
113
|
+
* @memberof Group
|
|
114
|
+
*/
|
|
115
|
+
children?: Array<string>;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {Array<GroupChild>}
|
|
119
|
+
* @memberof Group
|
|
120
|
+
*/
|
|
121
|
+
readonly childrenObj: Array<GroupChild> | null;
|
|
103
122
|
}
|
|
104
123
|
|
|
105
124
|
/**
|
|
@@ -112,6 +131,7 @@ export function instanceOfGroup(value: object): value is Group {
|
|
|
112
131
|
if (!('parentName' in value) || value['parentName'] === undefined) return false;
|
|
113
132
|
if (!('usersObj' in value) || value['usersObj'] === undefined) return false;
|
|
114
133
|
if (!('rolesObj' in value) || value['rolesObj'] === undefined) return false;
|
|
134
|
+
if (!('childrenObj' in value) || value['childrenObj'] === undefined) return false;
|
|
115
135
|
return true;
|
|
116
136
|
}
|
|
117
137
|
|
|
@@ -136,6 +156,8 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
|
|
|
136
156
|
'attributes': json['attributes'] == null ? undefined : json['attributes'],
|
|
137
157
|
'roles': json['roles'] == null ? undefined : json['roles'],
|
|
138
158
|
'rolesObj': ((json['roles_obj'] as Array<any>).map(RoleFromJSON)),
|
|
159
|
+
'children': json['children'] == null ? undefined : json['children'],
|
|
160
|
+
'childrenObj': (json['children_obj'] == null ? null : (json['children_obj'] as Array<any>).map(GroupChildFromJSON)),
|
|
139
161
|
};
|
|
140
162
|
}
|
|
141
163
|
|
|
@@ -143,7 +165,7 @@ export function GroupToJSON(json: any): Group {
|
|
|
143
165
|
return GroupToJSONTyped(json, false);
|
|
144
166
|
}
|
|
145
167
|
|
|
146
|
-
export function GroupToJSONTyped(value?: Omit<Group, 'pk'|'num_pk'|'parent_name'|'users_obj'|'roles_obj'> | null, ignoreDiscriminator: boolean = false): any {
|
|
168
|
+
export function GroupToJSONTyped(value?: Omit<Group, 'pk'|'num_pk'|'parent_name'|'users_obj'|'roles_obj'|'children_obj'> | null, ignoreDiscriminator: boolean = false): any {
|
|
147
169
|
if (value == null) {
|
|
148
170
|
return value;
|
|
149
171
|
}
|
|
@@ -156,6 +178,7 @@ export function GroupToJSONTyped(value?: Omit<Group, 'pk'|'num_pk'|'parent_name'
|
|
|
156
178
|
'users': value['users'],
|
|
157
179
|
'attributes': value['attributes'],
|
|
158
180
|
'roles': value['roles'],
|
|
181
|
+
'children': value['children'],
|
|
159
182
|
};
|
|
160
183
|
}
|
|
161
184
|
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.6.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
|
+
* Stripped down group serializer to show relevant children for groups
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GroupChild
|
|
20
|
+
*/
|
|
21
|
+
export interface GroupChild {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GroupChild
|
|
26
|
+
*/
|
|
27
|
+
readonly pk: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GroupChild
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Users added to this group will be superusers.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof GroupChild
|
|
38
|
+
*/
|
|
39
|
+
isSuperuser?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof GroupChild
|
|
44
|
+
*/
|
|
45
|
+
attributes?: { [key: string]: any; };
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GroupChild
|
|
50
|
+
*/
|
|
51
|
+
readonly groupUuid: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the GroupChild interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfGroupChild(value: object): value is GroupChild {
|
|
58
|
+
if (!('pk' in value) || value['pk'] === undefined) return false;
|
|
59
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
+
if (!('groupUuid' in value) || value['groupUuid'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GroupChildFromJSON(json: any): GroupChild {
|
|
65
|
+
return GroupChildFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GroupChildFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupChild {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'pk': json['pk'],
|
|
75
|
+
'name': json['name'],
|
|
76
|
+
'isSuperuser': json['is_superuser'] == null ? undefined : json['is_superuser'],
|
|
77
|
+
'attributes': json['attributes'] == null ? undefined : json['attributes'],
|
|
78
|
+
'groupUuid': json['group_uuid'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function GroupChildToJSON(json: any): GroupChild {
|
|
83
|
+
return GroupChildToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function GroupChildToJSONTyped(value?: Omit<GroupChild, 'pk'|'group_uuid'> | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'name': value['name'],
|
|
94
|
+
'is_superuser': value['isSuperuser'],
|
|
95
|
+
'attributes': value['attributes'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -55,6 +55,12 @@ export interface GroupRequest {
|
|
|
55
55
|
* @memberof GroupRequest
|
|
56
56
|
*/
|
|
57
57
|
roles?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof GroupRequest
|
|
62
|
+
*/
|
|
63
|
+
children?: Array<string>;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
/**
|
|
@@ -81,6 +87,7 @@ export function GroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
81
87
|
'users': json['users'] == null ? undefined : json['users'],
|
|
82
88
|
'attributes': json['attributes'] == null ? undefined : json['attributes'],
|
|
83
89
|
'roles': json['roles'] == null ? undefined : json['roles'],
|
|
90
|
+
'children': json['children'] == null ? undefined : json['children'],
|
|
84
91
|
};
|
|
85
92
|
}
|
|
86
93
|
|
|
@@ -101,6 +108,7 @@ export function GroupRequestToJSONTyped(value?: GroupRequest | null, ignoreDiscr
|
|
|
101
108
|
'users': value['users'],
|
|
102
109
|
'attributes': value['attributes'],
|
|
103
110
|
'roles': value['roles'],
|
|
111
|
+
'children': value['children'],
|
|
104
112
|
};
|
|
105
113
|
}
|
|
106
114
|
|
|
@@ -55,6 +55,12 @@ export interface PatchedGroupRequest {
|
|
|
55
55
|
* @memberof PatchedGroupRequest
|
|
56
56
|
*/
|
|
57
57
|
roles?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof PatchedGroupRequest
|
|
62
|
+
*/
|
|
63
|
+
children?: Array<string>;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
/**
|
|
@@ -80,6 +86,7 @@ export function PatchedGroupRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
80
86
|
'users': json['users'] == null ? undefined : json['users'],
|
|
81
87
|
'attributes': json['attributes'] == null ? undefined : json['attributes'],
|
|
82
88
|
'roles': json['roles'] == null ? undefined : json['roles'],
|
|
89
|
+
'children': json['children'] == null ? undefined : json['children'],
|
|
83
90
|
};
|
|
84
91
|
}
|
|
85
92
|
|
|
@@ -100,6 +107,7 @@ export function PatchedGroupRequestToJSONTyped(value?: PatchedGroupRequest | nul
|
|
|
100
107
|
'users': value['users'],
|
|
101
108
|
'attributes': value['attributes'],
|
|
102
109
|
'roles': value['roles'],
|
|
110
|
+
'children': value['children'],
|
|
103
111
|
};
|
|
104
112
|
}
|
|
105
113
|
|
package/src/models/index.ts
CHANGED
|
@@ -176,6 +176,7 @@ export * from './GoogleWorkspaceProviderRequest';
|
|
|
176
176
|
export * from './GoogleWorkspaceProviderUser';
|
|
177
177
|
export * from './GoogleWorkspaceProviderUserRequest';
|
|
178
178
|
export * from './Group';
|
|
179
|
+
export * from './GroupChild';
|
|
179
180
|
export * from './GroupKerberosSourceConnection';
|
|
180
181
|
export * from './GroupKerberosSourceConnectionRequest';
|
|
181
182
|
export * from './GroupLDAPSourceConnection';
|