@goauthentik/api 2024.8.3-1729630021 → 2024.8.3-1729699127
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +15 -0
- package/dist/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/apis/PropertymappingsApi.js +271 -0
- package/dist/apis/RbacApi.d.ts +8 -0
- package/dist/apis/RbacApi.js +8 -0
- package/dist/apis/SourcesApi.d.ts +257 -1
- package/dist/apis/SourcesApi.js +841 -28
- package/dist/esm/apis/PropertymappingsApi.d.ts +86 -1
- package/dist/esm/apis/PropertymappingsApi.js +272 -1
- package/dist/esm/apis/RbacApi.d.ts +8 -0
- package/dist/esm/apis/RbacApi.js +8 -0
- package/dist/esm/apis/SourcesApi.d.ts +257 -1
- package/dist/esm/apis/SourcesApi.js +842 -29
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/BackendsEnum.d.ts +1 -0
- package/dist/esm/models/BackendsEnum.js +1 -0
- package/dist/esm/models/GroupKerberosSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupKerberosSourceConnection.js +50 -0
- package/dist/esm/models/KerberosSource.d.ts +198 -0
- package/dist/esm/models/KerberosSource.js +103 -0
- package/dist/esm/models/KerberosSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/KerberosSourcePropertyMapping.js +59 -0
- package/dist/esm/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/KerberosSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/KerberosSourceRequest.d.ts +166 -0
- package/dist/esm/models/KerberosSourceRequest.js +93 -0
- package/dist/esm/models/KerberosSyncStatus.d.ts +38 -0
- package/dist/esm/models/KerberosSyncStatus.js +44 -0
- package/dist/esm/models/ModelEnum.d.ts +4 -0
- package/dist/esm/models/ModelEnum.js +4 -0
- package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedKerberosSourceList.d.ts +39 -0
- package/dist/esm/models/PaginatedKerberosSourceList.js +48 -0
- package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.js +48 -0
- package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedKerberosSourceRequest.d.ts +166 -0
- package/dist/esm/models/PatchedKerberosSourceRequest.js +90 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +45 -0
- package/dist/esm/models/UserKerberosSourceConnection.d.ts +56 -0
- package/dist/esm/models/UserKerberosSourceConnection.js +53 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.js +46 -0
- package/dist/esm/models/index.d.ts +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/BackendsEnum.d.ts +1 -0
- package/dist/models/BackendsEnum.js +1 -0
- package/dist/models/GroupKerberosSourceConnection.d.ts +56 -0
- package/dist/models/GroupKerberosSourceConnection.js +57 -0
- package/dist/models/KerberosSource.d.ts +198 -0
- package/dist/models/KerberosSource.js +110 -0
- package/dist/models/KerberosSourcePropertyMapping.d.ts +73 -0
- package/dist/models/KerberosSourcePropertyMapping.js +66 -0
- package/dist/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/KerberosSourcePropertyMappingRequest.js +56 -0
- package/dist/models/KerberosSourceRequest.d.ts +166 -0
- package/dist/models/KerberosSourceRequest.js +100 -0
- package/dist/models/KerberosSyncStatus.d.ts +38 -0
- package/dist/models/KerberosSyncStatus.js +51 -0
- package/dist/models/ModelEnum.d.ts +4 -0
- package/dist/models/ModelEnum.js +4 -0
- package/dist/models/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupKerberosSourceConnectionList.js +55 -0
- package/dist/models/PaginatedKerberosSourceList.d.ts +39 -0
- package/dist/models/PaginatedKerberosSourceList.js +55 -0
- package/dist/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedKerberosSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedUserKerberosSourceConnectionList.js +55 -0
- package/dist/models/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedKerberosSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedKerberosSourceRequest.d.ts +166 -0
- package/dist/models/PatchedKerberosSourceRequest.js +97 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +52 -0
- package/dist/models/UserKerberosSourceConnection.d.ts +56 -0
- package/dist/models/UserKerberosSourceConnection.js +60 -0
- package/dist/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
- package/dist/models/UserKerberosSourceConnectionRequest.js +53 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +350 -0
- package/src/apis/RbacApi.ts +8 -0
- package/src/apis/SourcesApi.ts +1200 -153
- package/src/models/AppEnum.ts +1 -0
- package/src/models/BackendsEnum.ts +1 -0
- package/src/models/GroupKerberosSourceConnection.ts +104 -0
- package/src/models/KerberosSource.ts +303 -0
- package/src/models/KerberosSourcePropertyMapping.ts +123 -0
- package/src/models/KerberosSourcePropertyMappingRequest.ts +83 -0
- package/src/models/KerberosSourceRequest.ts +263 -0
- package/src/models/KerberosSyncStatus.ts +80 -0
- package/src/models/ModelEnum.ts +4 -0
- package/src/models/PaginatedGroupKerberosSourceConnectionList.ts +88 -0
- package/src/models/PaginatedKerberosSourceList.ts +88 -0
- package/src/models/PaginatedKerberosSourcePropertyMappingList.ts +88 -0
- package/src/models/PaginatedUserKerberosSourceConnectionList.ts +88 -0
- package/src/models/PatchedKerberosSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedKerberosSourceRequest.ts +260 -0
- package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +73 -0
- package/src/models/UserKerberosSourceConnection.ts +106 -0
- package/src/models/UserKerberosSourceConnectionRequest.ts +75 -0
- package/src/models/index.ts +15 -0
@@ -0,0 +1,263 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.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
|
+
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
17
|
+
import {
|
18
|
+
GroupMatchingModeEnumFromJSON,
|
19
|
+
GroupMatchingModeEnumFromJSONTyped,
|
20
|
+
GroupMatchingModeEnumToJSON,
|
21
|
+
} from './GroupMatchingModeEnum';
|
22
|
+
import type { PolicyEngineMode } from './PolicyEngineMode';
|
23
|
+
import {
|
24
|
+
PolicyEngineModeFromJSON,
|
25
|
+
PolicyEngineModeFromJSONTyped,
|
26
|
+
PolicyEngineModeToJSON,
|
27
|
+
} from './PolicyEngineMode';
|
28
|
+
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
29
|
+
import {
|
30
|
+
UserMatchingModeEnumFromJSON,
|
31
|
+
UserMatchingModeEnumFromJSONTyped,
|
32
|
+
UserMatchingModeEnumToJSON,
|
33
|
+
} from './UserMatchingModeEnum';
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Kerberos Source Serializer
|
37
|
+
* @export
|
38
|
+
* @interface KerberosSourceRequest
|
39
|
+
*/
|
40
|
+
export interface KerberosSourceRequest {
|
41
|
+
/**
|
42
|
+
* Source's display Name.
|
43
|
+
* @type {string}
|
44
|
+
* @memberof KerberosSourceRequest
|
45
|
+
*/
|
46
|
+
name: string;
|
47
|
+
/**
|
48
|
+
* Internal source name, used in URLs.
|
49
|
+
* @type {string}
|
50
|
+
* @memberof KerberosSourceRequest
|
51
|
+
*/
|
52
|
+
slug: string;
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* @type {boolean}
|
56
|
+
* @memberof KerberosSourceRequest
|
57
|
+
*/
|
58
|
+
enabled?: boolean;
|
59
|
+
/**
|
60
|
+
* Flow to use when authenticating existing users.
|
61
|
+
* @type {string}
|
62
|
+
* @memberof KerberosSourceRequest
|
63
|
+
*/
|
64
|
+
authenticationFlow?: string | null;
|
65
|
+
/**
|
66
|
+
* Flow to use when enrolling new users.
|
67
|
+
* @type {string}
|
68
|
+
* @memberof KerberosSourceRequest
|
69
|
+
*/
|
70
|
+
enrollmentFlow?: string | null;
|
71
|
+
/**
|
72
|
+
*
|
73
|
+
* @type {Array<string>}
|
74
|
+
* @memberof KerberosSourceRequest
|
75
|
+
*/
|
76
|
+
userPropertyMappings?: Array<string>;
|
77
|
+
/**
|
78
|
+
*
|
79
|
+
* @type {Array<string>}
|
80
|
+
* @memberof KerberosSourceRequest
|
81
|
+
*/
|
82
|
+
groupPropertyMappings?: Array<string>;
|
83
|
+
/**
|
84
|
+
*
|
85
|
+
* @type {PolicyEngineMode}
|
86
|
+
* @memberof KerberosSourceRequest
|
87
|
+
*/
|
88
|
+
policyEngineMode?: PolicyEngineMode;
|
89
|
+
/**
|
90
|
+
*
|
91
|
+
* @type {UserMatchingModeEnum}
|
92
|
+
* @memberof KerberosSourceRequest
|
93
|
+
*/
|
94
|
+
userMatchingMode?: UserMatchingModeEnum;
|
95
|
+
/**
|
96
|
+
*
|
97
|
+
* @type {string}
|
98
|
+
* @memberof KerberosSourceRequest
|
99
|
+
*/
|
100
|
+
userPathTemplate?: string;
|
101
|
+
/**
|
102
|
+
*
|
103
|
+
* @type {GroupMatchingModeEnum}
|
104
|
+
* @memberof KerberosSourceRequest
|
105
|
+
*/
|
106
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
107
|
+
/**
|
108
|
+
* Kerberos realm
|
109
|
+
* @type {string}
|
110
|
+
* @memberof KerberosSourceRequest
|
111
|
+
*/
|
112
|
+
realm: string;
|
113
|
+
/**
|
114
|
+
* Custom krb5.conf to use. Uses the system one by default
|
115
|
+
* @type {string}
|
116
|
+
* @memberof KerberosSourceRequest
|
117
|
+
*/
|
118
|
+
krb5Conf?: string;
|
119
|
+
/**
|
120
|
+
* Sync users from Kerberos into authentik
|
121
|
+
* @type {boolean}
|
122
|
+
* @memberof KerberosSourceRequest
|
123
|
+
*/
|
124
|
+
syncUsers?: boolean;
|
125
|
+
/**
|
126
|
+
* When a user changes their password, sync it back to Kerberos
|
127
|
+
* @type {boolean}
|
128
|
+
* @memberof KerberosSourceRequest
|
129
|
+
*/
|
130
|
+
syncUsersPassword?: boolean;
|
131
|
+
/**
|
132
|
+
* Principal to authenticate to kadmin for sync.
|
133
|
+
* @type {string}
|
134
|
+
* @memberof KerberosSourceRequest
|
135
|
+
*/
|
136
|
+
syncPrincipal?: string;
|
137
|
+
/**
|
138
|
+
* Password to authenticate to kadmin for sync
|
139
|
+
* @type {string}
|
140
|
+
* @memberof KerberosSourceRequest
|
141
|
+
*/
|
142
|
+
syncPassword?: string;
|
143
|
+
/**
|
144
|
+
* Keytab to authenticate to kadmin for sync. Must be base64-encoded or in the form TYPE:residual
|
145
|
+
* @type {string}
|
146
|
+
* @memberof KerberosSourceRequest
|
147
|
+
*/
|
148
|
+
syncKeytab?: string;
|
149
|
+
/**
|
150
|
+
* Credentials cache to authenticate to kadmin for sync. Must be in the form TYPE:residual
|
151
|
+
* @type {string}
|
152
|
+
* @memberof KerberosSourceRequest
|
153
|
+
*/
|
154
|
+
syncCcache?: string;
|
155
|
+
/**
|
156
|
+
* Force the use of a specific server name for SPNEGO
|
157
|
+
* @type {string}
|
158
|
+
* @memberof KerberosSourceRequest
|
159
|
+
*/
|
160
|
+
spnegoServerName?: string;
|
161
|
+
/**
|
162
|
+
* SPNEGO keytab base64-encoded or path to keytab in the form FILE:path
|
163
|
+
* @type {string}
|
164
|
+
* @memberof KerberosSourceRequest
|
165
|
+
*/
|
166
|
+
spnegoKeytab?: string;
|
167
|
+
/**
|
168
|
+
* Credential cache to use for SPNEGO in form type:residual
|
169
|
+
* @type {string}
|
170
|
+
* @memberof KerberosSourceRequest
|
171
|
+
*/
|
172
|
+
spnegoCcache?: string;
|
173
|
+
/**
|
174
|
+
* If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend
|
175
|
+
* @type {boolean}
|
176
|
+
* @memberof KerberosSourceRequest
|
177
|
+
*/
|
178
|
+
passwordLoginUpdateInternalPassword?: boolean;
|
179
|
+
}
|
180
|
+
|
181
|
+
/**
|
182
|
+
* Check if a given object implements the KerberosSourceRequest interface.
|
183
|
+
*/
|
184
|
+
export function instanceOfKerberosSourceRequest(value: object): boolean {
|
185
|
+
let isInstance = true;
|
186
|
+
isInstance = isInstance && "name" in value;
|
187
|
+
isInstance = isInstance && "slug" in value;
|
188
|
+
isInstance = isInstance && "realm" in value;
|
189
|
+
|
190
|
+
return isInstance;
|
191
|
+
}
|
192
|
+
|
193
|
+
export function KerberosSourceRequestFromJSON(json: any): KerberosSourceRequest {
|
194
|
+
return KerberosSourceRequestFromJSONTyped(json, false);
|
195
|
+
}
|
196
|
+
|
197
|
+
export function KerberosSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KerberosSourceRequest {
|
198
|
+
if ((json === undefined) || (json === null)) {
|
199
|
+
return json;
|
200
|
+
}
|
201
|
+
return {
|
202
|
+
|
203
|
+
'name': json['name'],
|
204
|
+
'slug': json['slug'],
|
205
|
+
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
206
|
+
'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
|
207
|
+
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
208
|
+
'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
|
209
|
+
'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
|
210
|
+
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
211
|
+
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
212
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
213
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
214
|
+
'realm': json['realm'],
|
215
|
+
'krb5Conf': !exists(json, 'krb5_conf') ? undefined : json['krb5_conf'],
|
216
|
+
'syncUsers': !exists(json, 'sync_users') ? undefined : json['sync_users'],
|
217
|
+
'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
|
218
|
+
'syncPrincipal': !exists(json, 'sync_principal') ? undefined : json['sync_principal'],
|
219
|
+
'syncPassword': !exists(json, 'sync_password') ? undefined : json['sync_password'],
|
220
|
+
'syncKeytab': !exists(json, 'sync_keytab') ? undefined : json['sync_keytab'],
|
221
|
+
'syncCcache': !exists(json, 'sync_ccache') ? undefined : json['sync_ccache'],
|
222
|
+
'spnegoServerName': !exists(json, 'spnego_server_name') ? undefined : json['spnego_server_name'],
|
223
|
+
'spnegoKeytab': !exists(json, 'spnego_keytab') ? undefined : json['spnego_keytab'],
|
224
|
+
'spnegoCcache': !exists(json, 'spnego_ccache') ? undefined : json['spnego_ccache'],
|
225
|
+
'passwordLoginUpdateInternalPassword': !exists(json, 'password_login_update_internal_password') ? undefined : json['password_login_update_internal_password'],
|
226
|
+
};
|
227
|
+
}
|
228
|
+
|
229
|
+
export function KerberosSourceRequestToJSON(value?: KerberosSourceRequest | null): any {
|
230
|
+
if (value === undefined) {
|
231
|
+
return undefined;
|
232
|
+
}
|
233
|
+
if (value === null) {
|
234
|
+
return null;
|
235
|
+
}
|
236
|
+
return {
|
237
|
+
|
238
|
+
'name': value.name,
|
239
|
+
'slug': value.slug,
|
240
|
+
'enabled': value.enabled,
|
241
|
+
'authentication_flow': value.authenticationFlow,
|
242
|
+
'enrollment_flow': value.enrollmentFlow,
|
243
|
+
'user_property_mappings': value.userPropertyMappings,
|
244
|
+
'group_property_mappings': value.groupPropertyMappings,
|
245
|
+
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
246
|
+
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
247
|
+
'user_path_template': value.userPathTemplate,
|
248
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
249
|
+
'realm': value.realm,
|
250
|
+
'krb5_conf': value.krb5Conf,
|
251
|
+
'sync_users': value.syncUsers,
|
252
|
+
'sync_users_password': value.syncUsersPassword,
|
253
|
+
'sync_principal': value.syncPrincipal,
|
254
|
+
'sync_password': value.syncPassword,
|
255
|
+
'sync_keytab': value.syncKeytab,
|
256
|
+
'sync_ccache': value.syncCcache,
|
257
|
+
'spnego_server_name': value.spnegoServerName,
|
258
|
+
'spnego_keytab': value.spnegoKeytab,
|
259
|
+
'spnego_ccache': value.spnegoCcache,
|
260
|
+
'password_login_update_internal_password': value.passwordLoginUpdateInternalPassword,
|
261
|
+
};
|
262
|
+
}
|
263
|
+
|
@@ -0,0 +1,80 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.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
|
+
import type { SystemTask } from './SystemTask';
|
17
|
+
import {
|
18
|
+
SystemTaskFromJSON,
|
19
|
+
SystemTaskFromJSONTyped,
|
20
|
+
SystemTaskToJSON,
|
21
|
+
} from './SystemTask';
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Kerberos Source sync status
|
25
|
+
* @export
|
26
|
+
* @interface KerberosSyncStatus
|
27
|
+
*/
|
28
|
+
export interface KerberosSyncStatus {
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @type {boolean}
|
32
|
+
* @memberof KerberosSyncStatus
|
33
|
+
*/
|
34
|
+
readonly isRunning: boolean;
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Array<SystemTask>}
|
38
|
+
* @memberof KerberosSyncStatus
|
39
|
+
*/
|
40
|
+
readonly tasks: Array<SystemTask>;
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Check if a given object implements the KerberosSyncStatus interface.
|
45
|
+
*/
|
46
|
+
export function instanceOfKerberosSyncStatus(value: object): boolean {
|
47
|
+
let isInstance = true;
|
48
|
+
isInstance = isInstance && "isRunning" in value;
|
49
|
+
isInstance = isInstance && "tasks" in value;
|
50
|
+
|
51
|
+
return isInstance;
|
52
|
+
}
|
53
|
+
|
54
|
+
export function KerberosSyncStatusFromJSON(json: any): KerberosSyncStatus {
|
55
|
+
return KerberosSyncStatusFromJSONTyped(json, false);
|
56
|
+
}
|
57
|
+
|
58
|
+
export function KerberosSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): KerberosSyncStatus {
|
59
|
+
if ((json === undefined) || (json === null)) {
|
60
|
+
return json;
|
61
|
+
}
|
62
|
+
return {
|
63
|
+
|
64
|
+
'isRunning': json['is_running'],
|
65
|
+
'tasks': ((json['tasks'] as Array<any>).map(SystemTaskFromJSON)),
|
66
|
+
};
|
67
|
+
}
|
68
|
+
|
69
|
+
export function KerberosSyncStatusToJSON(value?: KerberosSyncStatus | null): any {
|
70
|
+
if (value === undefined) {
|
71
|
+
return undefined;
|
72
|
+
}
|
73
|
+
if (value === null) {
|
74
|
+
return null;
|
75
|
+
}
|
76
|
+
return {
|
77
|
+
|
78
|
+
};
|
79
|
+
}
|
80
|
+
|
package/src/models/ModelEnum.ts
CHANGED
@@ -44,6 +44,10 @@ export const ModelEnum = {
|
|
44
44
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
45
45
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
46
46
|
RbacRole: 'authentik_rbac.role',
|
47
|
+
SourcesKerberosKerberossource: 'authentik_sources_kerberos.kerberossource',
|
48
|
+
SourcesKerberosKerberossourcepropertymapping: 'authentik_sources_kerberos.kerberossourcepropertymapping',
|
49
|
+
SourcesKerberosUserkerberossourceconnection: 'authentik_sources_kerberos.userkerberossourceconnection',
|
50
|
+
SourcesKerberosGroupkerberossourceconnection: 'authentik_sources_kerberos.groupkerberossourceconnection',
|
47
51
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
48
52
|
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
49
53
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.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
|
+
import type { GroupKerberosSourceConnection } from './GroupKerberosSourceConnection';
|
17
|
+
import {
|
18
|
+
GroupKerberosSourceConnectionFromJSON,
|
19
|
+
GroupKerberosSourceConnectionFromJSONTyped,
|
20
|
+
GroupKerberosSourceConnectionToJSON,
|
21
|
+
} from './GroupKerberosSourceConnection';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedGroupKerberosSourceConnectionList
|
33
|
+
*/
|
34
|
+
export interface PaginatedGroupKerberosSourceConnectionList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedGroupKerberosSourceConnectionList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<GroupKerberosSourceConnection>}
|
44
|
+
* @memberof PaginatedGroupKerberosSourceConnectionList
|
45
|
+
*/
|
46
|
+
results: Array<GroupKerberosSourceConnection>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedGroupKerberosSourceConnectionList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedGroupKerberosSourceConnectionList(value: object): boolean {
|
53
|
+
let isInstance = true;
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
55
|
+
isInstance = isInstance && "results" in value;
|
56
|
+
|
57
|
+
return isInstance;
|
58
|
+
}
|
59
|
+
|
60
|
+
export function PaginatedGroupKerberosSourceConnectionListFromJSON(json: any): PaginatedGroupKerberosSourceConnectionList {
|
61
|
+
return PaginatedGroupKerberosSourceConnectionListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedGroupKerberosSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupKerberosSourceConnectionList {
|
65
|
+
if ((json === undefined) || (json === null)) {
|
66
|
+
return json;
|
67
|
+
}
|
68
|
+
return {
|
69
|
+
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
71
|
+
'results': ((json['results'] as Array<any>).map(GroupKerberosSourceConnectionFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedGroupKerberosSourceConnectionListToJSON(value?: PaginatedGroupKerberosSourceConnectionList | null): any {
|
76
|
+
if (value === undefined) {
|
77
|
+
return undefined;
|
78
|
+
}
|
79
|
+
if (value === null) {
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
return {
|
83
|
+
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
85
|
+
'results': ((value.results as Array<any>).map(GroupKerberosSourceConnectionToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.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
|
+
import type { KerberosSource } from './KerberosSource';
|
17
|
+
import {
|
18
|
+
KerberosSourceFromJSON,
|
19
|
+
KerberosSourceFromJSONTyped,
|
20
|
+
KerberosSourceToJSON,
|
21
|
+
} from './KerberosSource';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedKerberosSourceList
|
33
|
+
*/
|
34
|
+
export interface PaginatedKerberosSourceList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedKerberosSourceList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<KerberosSource>}
|
44
|
+
* @memberof PaginatedKerberosSourceList
|
45
|
+
*/
|
46
|
+
results: Array<KerberosSource>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedKerberosSourceList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedKerberosSourceList(value: object): boolean {
|
53
|
+
let isInstance = true;
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
55
|
+
isInstance = isInstance && "results" in value;
|
56
|
+
|
57
|
+
return isInstance;
|
58
|
+
}
|
59
|
+
|
60
|
+
export function PaginatedKerberosSourceListFromJSON(json: any): PaginatedKerberosSourceList {
|
61
|
+
return PaginatedKerberosSourceListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedKerberosSourceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedKerberosSourceList {
|
65
|
+
if ((json === undefined) || (json === null)) {
|
66
|
+
return json;
|
67
|
+
}
|
68
|
+
return {
|
69
|
+
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
71
|
+
'results': ((json['results'] as Array<any>).map(KerberosSourceFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedKerberosSourceListToJSON(value?: PaginatedKerberosSourceList | null): any {
|
76
|
+
if (value === undefined) {
|
77
|
+
return undefined;
|
78
|
+
}
|
79
|
+
if (value === null) {
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
return {
|
83
|
+
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
85
|
+
'results': ((value.results as Array<any>).map(KerberosSourceToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.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
|
+
import type { KerberosSourcePropertyMapping } from './KerberosSourcePropertyMapping';
|
17
|
+
import {
|
18
|
+
KerberosSourcePropertyMappingFromJSON,
|
19
|
+
KerberosSourcePropertyMappingFromJSONTyped,
|
20
|
+
KerberosSourcePropertyMappingToJSON,
|
21
|
+
} from './KerberosSourcePropertyMapping';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedKerberosSourcePropertyMappingList
|
33
|
+
*/
|
34
|
+
export interface PaginatedKerberosSourcePropertyMappingList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedKerberosSourcePropertyMappingList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<KerberosSourcePropertyMapping>}
|
44
|
+
* @memberof PaginatedKerberosSourcePropertyMappingList
|
45
|
+
*/
|
46
|
+
results: Array<KerberosSourcePropertyMapping>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedKerberosSourcePropertyMappingList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedKerberosSourcePropertyMappingList(value: object): boolean {
|
53
|
+
let isInstance = true;
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
55
|
+
isInstance = isInstance && "results" in value;
|
56
|
+
|
57
|
+
return isInstance;
|
58
|
+
}
|
59
|
+
|
60
|
+
export function PaginatedKerberosSourcePropertyMappingListFromJSON(json: any): PaginatedKerberosSourcePropertyMappingList {
|
61
|
+
return PaginatedKerberosSourcePropertyMappingListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedKerberosSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedKerberosSourcePropertyMappingList {
|
65
|
+
if ((json === undefined) || (json === null)) {
|
66
|
+
return json;
|
67
|
+
}
|
68
|
+
return {
|
69
|
+
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
71
|
+
'results': ((json['results'] as Array<any>).map(KerberosSourcePropertyMappingFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedKerberosSourcePropertyMappingListToJSON(value?: PaginatedKerberosSourcePropertyMappingList | null): any {
|
76
|
+
if (value === undefined) {
|
77
|
+
return undefined;
|
78
|
+
}
|
79
|
+
if (value === null) {
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
return {
|
83
|
+
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
85
|
+
'results': ((value.results as Array<any>).map(KerberosSourcePropertyMappingToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|