@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.
Files changed (112) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/dist/apis/PropertymappingsApi.d.ts +86 -1
  3. package/dist/apis/PropertymappingsApi.js +271 -0
  4. package/dist/apis/RbacApi.d.ts +8 -0
  5. package/dist/apis/RbacApi.js +8 -0
  6. package/dist/apis/SourcesApi.d.ts +257 -1
  7. package/dist/apis/SourcesApi.js +841 -28
  8. package/dist/esm/apis/PropertymappingsApi.d.ts +86 -1
  9. package/dist/esm/apis/PropertymappingsApi.js +272 -1
  10. package/dist/esm/apis/RbacApi.d.ts +8 -0
  11. package/dist/esm/apis/RbacApi.js +8 -0
  12. package/dist/esm/apis/SourcesApi.d.ts +257 -1
  13. package/dist/esm/apis/SourcesApi.js +842 -29
  14. package/dist/esm/models/AppEnum.d.ts +1 -0
  15. package/dist/esm/models/AppEnum.js +1 -0
  16. package/dist/esm/models/BackendsEnum.d.ts +1 -0
  17. package/dist/esm/models/BackendsEnum.js +1 -0
  18. package/dist/esm/models/GroupKerberosSourceConnection.d.ts +56 -0
  19. package/dist/esm/models/GroupKerberosSourceConnection.js +50 -0
  20. package/dist/esm/models/KerberosSource.d.ts +198 -0
  21. package/dist/esm/models/KerberosSource.js +103 -0
  22. package/dist/esm/models/KerberosSourcePropertyMapping.d.ts +73 -0
  23. package/dist/esm/models/KerberosSourcePropertyMapping.js +59 -0
  24. package/dist/esm/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
  25. package/dist/esm/models/KerberosSourcePropertyMappingRequest.js +49 -0
  26. package/dist/esm/models/KerberosSourceRequest.d.ts +166 -0
  27. package/dist/esm/models/KerberosSourceRequest.js +93 -0
  28. package/dist/esm/models/KerberosSyncStatus.d.ts +38 -0
  29. package/dist/esm/models/KerberosSyncStatus.js +44 -0
  30. package/dist/esm/models/ModelEnum.d.ts +4 -0
  31. package/dist/esm/models/ModelEnum.js +4 -0
  32. package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
  33. package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.js +48 -0
  34. package/dist/esm/models/PaginatedKerberosSourceList.d.ts +39 -0
  35. package/dist/esm/models/PaginatedKerberosSourceList.js +48 -0
  36. package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.js +48 -0
  38. package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
  39. package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.js +48 -0
  40. package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
  41. package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.js +47 -0
  42. package/dist/esm/models/PatchedKerberosSourceRequest.d.ts +166 -0
  43. package/dist/esm/models/PatchedKerberosSourceRequest.js +90 -0
  44. package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
  45. package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +45 -0
  46. package/dist/esm/models/UserKerberosSourceConnection.d.ts +56 -0
  47. package/dist/esm/models/UserKerberosSourceConnection.js +53 -0
  48. package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
  49. package/dist/esm/models/UserKerberosSourceConnectionRequest.js +46 -0
  50. package/dist/esm/models/index.d.ts +15 -0
  51. package/dist/esm/models/index.js +15 -0
  52. package/dist/models/AppEnum.d.ts +1 -0
  53. package/dist/models/AppEnum.js +1 -0
  54. package/dist/models/BackendsEnum.d.ts +1 -0
  55. package/dist/models/BackendsEnum.js +1 -0
  56. package/dist/models/GroupKerberosSourceConnection.d.ts +56 -0
  57. package/dist/models/GroupKerberosSourceConnection.js +57 -0
  58. package/dist/models/KerberosSource.d.ts +198 -0
  59. package/dist/models/KerberosSource.js +110 -0
  60. package/dist/models/KerberosSourcePropertyMapping.d.ts +73 -0
  61. package/dist/models/KerberosSourcePropertyMapping.js +66 -0
  62. package/dist/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
  63. package/dist/models/KerberosSourcePropertyMappingRequest.js +56 -0
  64. package/dist/models/KerberosSourceRequest.d.ts +166 -0
  65. package/dist/models/KerberosSourceRequest.js +100 -0
  66. package/dist/models/KerberosSyncStatus.d.ts +38 -0
  67. package/dist/models/KerberosSyncStatus.js +51 -0
  68. package/dist/models/ModelEnum.d.ts +4 -0
  69. package/dist/models/ModelEnum.js +4 -0
  70. package/dist/models/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
  71. package/dist/models/PaginatedGroupKerberosSourceConnectionList.js +55 -0
  72. package/dist/models/PaginatedKerberosSourceList.d.ts +39 -0
  73. package/dist/models/PaginatedKerberosSourceList.js +55 -0
  74. package/dist/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
  75. package/dist/models/PaginatedKerberosSourcePropertyMappingList.js +55 -0
  76. package/dist/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
  77. package/dist/models/PaginatedUserKerberosSourceConnectionList.js +55 -0
  78. package/dist/models/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
  79. package/dist/models/PatchedKerberosSourcePropertyMappingRequest.js +54 -0
  80. package/dist/models/PatchedKerberosSourceRequest.d.ts +166 -0
  81. package/dist/models/PatchedKerberosSourceRequest.js +97 -0
  82. package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
  83. package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +52 -0
  84. package/dist/models/UserKerberosSourceConnection.d.ts +56 -0
  85. package/dist/models/UserKerberosSourceConnection.js +60 -0
  86. package/dist/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
  87. package/dist/models/UserKerberosSourceConnectionRequest.js +53 -0
  88. package/dist/models/index.d.ts +15 -0
  89. package/dist/models/index.js +15 -0
  90. package/package.json +1 -1
  91. package/src/apis/PropertymappingsApi.ts +350 -0
  92. package/src/apis/RbacApi.ts +8 -0
  93. package/src/apis/SourcesApi.ts +1200 -153
  94. package/src/models/AppEnum.ts +1 -0
  95. package/src/models/BackendsEnum.ts +1 -0
  96. package/src/models/GroupKerberosSourceConnection.ts +104 -0
  97. package/src/models/KerberosSource.ts +303 -0
  98. package/src/models/KerberosSourcePropertyMapping.ts +123 -0
  99. package/src/models/KerberosSourcePropertyMappingRequest.ts +83 -0
  100. package/src/models/KerberosSourceRequest.ts +263 -0
  101. package/src/models/KerberosSyncStatus.ts +80 -0
  102. package/src/models/ModelEnum.ts +4 -0
  103. package/src/models/PaginatedGroupKerberosSourceConnectionList.ts +88 -0
  104. package/src/models/PaginatedKerberosSourceList.ts +88 -0
  105. package/src/models/PaginatedKerberosSourcePropertyMappingList.ts +88 -0
  106. package/src/models/PaginatedUserKerberosSourceConnectionList.ts +88 -0
  107. package/src/models/PatchedKerberosSourcePropertyMappingRequest.ts +81 -0
  108. package/src/models/PatchedKerberosSourceRequest.ts +260 -0
  109. package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +73 -0
  110. package/src/models/UserKerberosSourceConnection.ts +106 -0
  111. package/src/models/UserKerberosSourceConnectionRequest.ts +75 -0
  112. package/src/models/index.ts +15 -0
@@ -40,6 +40,7 @@ export const AppEnum = {
40
40
  ProvidersScim: 'authentik.providers.scim',
41
41
  Rbac: 'authentik.rbac',
42
42
  Recovery: 'authentik.recovery',
43
+ SourcesKerberos: 'authentik.sources.kerberos',
43
44
  SourcesLdap: 'authentik.sources.ldap',
44
45
  SourcesOauth: 'authentik.sources.oauth',
45
46
  SourcesPlex: 'authentik.sources.plex',
@@ -21,6 +21,7 @@ export const BackendsEnum = {
21
21
  CoreAuthInbuiltBackend: 'authentik.core.auth.InbuiltBackend',
22
22
  CoreAuthTokenBackend: 'authentik.core.auth.TokenBackend',
23
23
  SourcesLdapAuthLdapBackend: 'authentik.sources.ldap.auth.LDAPBackend',
24
+ SourcesKerberosAuthKerberosBackend: 'authentik.sources.kerberos.auth.KerberosBackend',
24
25
  UnknownDefaultOpenApi: '11184809'
25
26
  } as const;
26
27
  export type BackendsEnum = typeof BackendsEnum[keyof typeof BackendsEnum];
@@ -0,0 +1,104 @@
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 { Source } from './Source';
17
+ import {
18
+ SourceFromJSON,
19
+ SourceFromJSONTyped,
20
+ SourceToJSON,
21
+ } from './Source';
22
+
23
+ /**
24
+ * OAuth Group-Source connection Serializer
25
+ * @export
26
+ * @interface GroupKerberosSourceConnection
27
+ */
28
+ export interface GroupKerberosSourceConnection {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof GroupKerberosSourceConnection
33
+ */
34
+ readonly pk: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof GroupKerberosSourceConnection
39
+ */
40
+ readonly group: string;
41
+ /**
42
+ *
43
+ * @type {Source}
44
+ * @memberof GroupKerberosSourceConnection
45
+ */
46
+ readonly source: Source;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof GroupKerberosSourceConnection
51
+ */
52
+ readonly identifier: string;
53
+ /**
54
+ *
55
+ * @type {Date}
56
+ * @memberof GroupKerberosSourceConnection
57
+ */
58
+ readonly created: Date;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the GroupKerberosSourceConnection interface.
63
+ */
64
+ export function instanceOfGroupKerberosSourceConnection(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "pk" in value;
67
+ isInstance = isInstance && "group" in value;
68
+ isInstance = isInstance && "source" in value;
69
+ isInstance = isInstance && "identifier" in value;
70
+ isInstance = isInstance && "created" in value;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function GroupKerberosSourceConnectionFromJSON(json: any): GroupKerberosSourceConnection {
76
+ return GroupKerberosSourceConnectionFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function GroupKerberosSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupKerberosSourceConnection {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'pk': json['pk'],
86
+ 'group': json['group'],
87
+ 'source': SourceFromJSON(json['source']),
88
+ 'identifier': json['identifier'],
89
+ 'created': (new Date(json['created'])),
90
+ };
91
+ }
92
+
93
+ export function GroupKerberosSourceConnectionToJSON(value?: GroupKerberosSourceConnection | null): any {
94
+ if (value === undefined) {
95
+ return undefined;
96
+ }
97
+ if (value === null) {
98
+ return null;
99
+ }
100
+ return {
101
+
102
+ };
103
+ }
104
+
@@ -0,0 +1,303 @@
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 KerberosSource
39
+ */
40
+ export interface KerberosSource {
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof KerberosSource
45
+ */
46
+ readonly pk: string;
47
+ /**
48
+ * Source's display Name.
49
+ * @type {string}
50
+ * @memberof KerberosSource
51
+ */
52
+ name: string;
53
+ /**
54
+ * Internal source name, used in URLs.
55
+ * @type {string}
56
+ * @memberof KerberosSource
57
+ */
58
+ slug: string;
59
+ /**
60
+ *
61
+ * @type {boolean}
62
+ * @memberof KerberosSource
63
+ */
64
+ enabled?: boolean;
65
+ /**
66
+ * Flow to use when authenticating existing users.
67
+ * @type {string}
68
+ * @memberof KerberosSource
69
+ */
70
+ authenticationFlow?: string | null;
71
+ /**
72
+ * Flow to use when enrolling new users.
73
+ * @type {string}
74
+ * @memberof KerberosSource
75
+ */
76
+ enrollmentFlow?: string | null;
77
+ /**
78
+ *
79
+ * @type {Array<string>}
80
+ * @memberof KerberosSource
81
+ */
82
+ userPropertyMappings?: Array<string>;
83
+ /**
84
+ *
85
+ * @type {Array<string>}
86
+ * @memberof KerberosSource
87
+ */
88
+ groupPropertyMappings?: Array<string>;
89
+ /**
90
+ * Get object component so that we know how to edit the object
91
+ * @type {string}
92
+ * @memberof KerberosSource
93
+ */
94
+ readonly component: string;
95
+ /**
96
+ * Return object's verbose_name
97
+ * @type {string}
98
+ * @memberof KerberosSource
99
+ */
100
+ readonly verboseName: string;
101
+ /**
102
+ * Return object's plural verbose_name
103
+ * @type {string}
104
+ * @memberof KerberosSource
105
+ */
106
+ readonly verboseNamePlural: string;
107
+ /**
108
+ * Return internal model name
109
+ * @type {string}
110
+ * @memberof KerberosSource
111
+ */
112
+ readonly metaModelName: string;
113
+ /**
114
+ *
115
+ * @type {PolicyEngineMode}
116
+ * @memberof KerberosSource
117
+ */
118
+ policyEngineMode?: PolicyEngineMode;
119
+ /**
120
+ *
121
+ * @type {UserMatchingModeEnum}
122
+ * @memberof KerberosSource
123
+ */
124
+ userMatchingMode?: UserMatchingModeEnum;
125
+ /**
126
+ * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
127
+ * @type {string}
128
+ * @memberof KerberosSource
129
+ */
130
+ readonly managed: string | null;
131
+ /**
132
+ *
133
+ * @type {string}
134
+ * @memberof KerberosSource
135
+ */
136
+ userPathTemplate?: string;
137
+ /**
138
+ *
139
+ * @type {string}
140
+ * @memberof KerberosSource
141
+ */
142
+ readonly icon: string;
143
+ /**
144
+ *
145
+ * @type {GroupMatchingModeEnum}
146
+ * @memberof KerberosSource
147
+ */
148
+ groupMatchingMode?: GroupMatchingModeEnum;
149
+ /**
150
+ * Kerberos realm
151
+ * @type {string}
152
+ * @memberof KerberosSource
153
+ */
154
+ realm: string;
155
+ /**
156
+ * Custom krb5.conf to use. Uses the system one by default
157
+ * @type {string}
158
+ * @memberof KerberosSource
159
+ */
160
+ krb5Conf?: string;
161
+ /**
162
+ * Sync users from Kerberos into authentik
163
+ * @type {boolean}
164
+ * @memberof KerberosSource
165
+ */
166
+ syncUsers?: boolean;
167
+ /**
168
+ * When a user changes their password, sync it back to Kerberos
169
+ * @type {boolean}
170
+ * @memberof KerberosSource
171
+ */
172
+ syncUsersPassword?: boolean;
173
+ /**
174
+ * Principal to authenticate to kadmin for sync.
175
+ * @type {string}
176
+ * @memberof KerberosSource
177
+ */
178
+ syncPrincipal?: string;
179
+ /**
180
+ * Credentials cache to authenticate to kadmin for sync. Must be in the form TYPE:residual
181
+ * @type {string}
182
+ * @memberof KerberosSource
183
+ */
184
+ syncCcache?: string;
185
+ /**
186
+ * Get cached source connectivity
187
+ * @type {{ [key: string]: string; }}
188
+ * @memberof KerberosSource
189
+ */
190
+ readonly connectivity: { [key: string]: string; } | null;
191
+ /**
192
+ * Force the use of a specific server name for SPNEGO
193
+ * @type {string}
194
+ * @memberof KerberosSource
195
+ */
196
+ spnegoServerName?: string;
197
+ /**
198
+ * Credential cache to use for SPNEGO in form type:residual
199
+ * @type {string}
200
+ * @memberof KerberosSource
201
+ */
202
+ spnegoCcache?: string;
203
+ /**
204
+ * If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend
205
+ * @type {boolean}
206
+ * @memberof KerberosSource
207
+ */
208
+ passwordLoginUpdateInternalPassword?: boolean;
209
+ }
210
+
211
+ /**
212
+ * Check if a given object implements the KerberosSource interface.
213
+ */
214
+ export function instanceOfKerberosSource(value: object): boolean {
215
+ let isInstance = true;
216
+ isInstance = isInstance && "pk" in value;
217
+ isInstance = isInstance && "name" in value;
218
+ isInstance = isInstance && "slug" in value;
219
+ isInstance = isInstance && "component" in value;
220
+ isInstance = isInstance && "verboseName" in value;
221
+ isInstance = isInstance && "verboseNamePlural" in value;
222
+ isInstance = isInstance && "metaModelName" in value;
223
+ isInstance = isInstance && "managed" in value;
224
+ isInstance = isInstance && "icon" in value;
225
+ isInstance = isInstance && "realm" in value;
226
+ isInstance = isInstance && "connectivity" in value;
227
+
228
+ return isInstance;
229
+ }
230
+
231
+ export function KerberosSourceFromJSON(json: any): KerberosSource {
232
+ return KerberosSourceFromJSONTyped(json, false);
233
+ }
234
+
235
+ export function KerberosSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): KerberosSource {
236
+ if ((json === undefined) || (json === null)) {
237
+ return json;
238
+ }
239
+ return {
240
+
241
+ 'pk': json['pk'],
242
+ 'name': json['name'],
243
+ 'slug': json['slug'],
244
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
245
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
246
+ 'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
247
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
248
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
249
+ 'component': json['component'],
250
+ 'verboseName': json['verbose_name'],
251
+ 'verboseNamePlural': json['verbose_name_plural'],
252
+ 'metaModelName': json['meta_model_name'],
253
+ 'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
254
+ 'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
255
+ 'managed': json['managed'],
256
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
257
+ 'icon': json['icon'],
258
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
259
+ 'realm': json['realm'],
260
+ 'krb5Conf': !exists(json, 'krb5_conf') ? undefined : json['krb5_conf'],
261
+ 'syncUsers': !exists(json, 'sync_users') ? undefined : json['sync_users'],
262
+ 'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
263
+ 'syncPrincipal': !exists(json, 'sync_principal') ? undefined : json['sync_principal'],
264
+ 'syncCcache': !exists(json, 'sync_ccache') ? undefined : json['sync_ccache'],
265
+ 'connectivity': json['connectivity'],
266
+ 'spnegoServerName': !exists(json, 'spnego_server_name') ? undefined : json['spnego_server_name'],
267
+ 'spnegoCcache': !exists(json, 'spnego_ccache') ? undefined : json['spnego_ccache'],
268
+ 'passwordLoginUpdateInternalPassword': !exists(json, 'password_login_update_internal_password') ? undefined : json['password_login_update_internal_password'],
269
+ };
270
+ }
271
+
272
+ export function KerberosSourceToJSON(value?: KerberosSource | null): any {
273
+ if (value === undefined) {
274
+ return undefined;
275
+ }
276
+ if (value === null) {
277
+ return null;
278
+ }
279
+ return {
280
+
281
+ 'name': value.name,
282
+ 'slug': value.slug,
283
+ 'enabled': value.enabled,
284
+ 'authentication_flow': value.authenticationFlow,
285
+ 'enrollment_flow': value.enrollmentFlow,
286
+ 'user_property_mappings': value.userPropertyMappings,
287
+ 'group_property_mappings': value.groupPropertyMappings,
288
+ 'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
289
+ 'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
290
+ 'user_path_template': value.userPathTemplate,
291
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
292
+ 'realm': value.realm,
293
+ 'krb5_conf': value.krb5Conf,
294
+ 'sync_users': value.syncUsers,
295
+ 'sync_users_password': value.syncUsersPassword,
296
+ 'sync_principal': value.syncPrincipal,
297
+ 'sync_ccache': value.syncCcache,
298
+ 'spnego_server_name': value.spnegoServerName,
299
+ 'spnego_ccache': value.spnegoCcache,
300
+ 'password_login_update_internal_password': value.passwordLoginUpdateInternalPassword,
301
+ };
302
+ }
303
+
@@ -0,0 +1,123 @@
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
+ /**
17
+ * Kerberos PropertyMapping Serializer
18
+ * @export
19
+ * @interface KerberosSourcePropertyMapping
20
+ */
21
+ export interface KerberosSourcePropertyMapping {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof KerberosSourcePropertyMapping
26
+ */
27
+ readonly pk: string;
28
+ /**
29
+ * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
30
+ * @type {string}
31
+ * @memberof KerberosSourcePropertyMapping
32
+ */
33
+ managed?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof KerberosSourcePropertyMapping
38
+ */
39
+ name: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof KerberosSourcePropertyMapping
44
+ */
45
+ expression: string;
46
+ /**
47
+ * Get object's component so that we know how to edit the object
48
+ * @type {string}
49
+ * @memberof KerberosSourcePropertyMapping
50
+ */
51
+ readonly component: string;
52
+ /**
53
+ * Return object's verbose_name
54
+ * @type {string}
55
+ * @memberof KerberosSourcePropertyMapping
56
+ */
57
+ readonly verboseName: string;
58
+ /**
59
+ * Return object's plural verbose_name
60
+ * @type {string}
61
+ * @memberof KerberosSourcePropertyMapping
62
+ */
63
+ readonly verboseNamePlural: string;
64
+ /**
65
+ * Return internal model name
66
+ * @type {string}
67
+ * @memberof KerberosSourcePropertyMapping
68
+ */
69
+ readonly metaModelName: string;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the KerberosSourcePropertyMapping interface.
74
+ */
75
+ export function instanceOfKerberosSourcePropertyMapping(value: object): boolean {
76
+ let isInstance = true;
77
+ isInstance = isInstance && "pk" in value;
78
+ isInstance = isInstance && "name" in value;
79
+ isInstance = isInstance && "expression" in value;
80
+ isInstance = isInstance && "component" in value;
81
+ isInstance = isInstance && "verboseName" in value;
82
+ isInstance = isInstance && "verboseNamePlural" in value;
83
+ isInstance = isInstance && "metaModelName" in value;
84
+
85
+ return isInstance;
86
+ }
87
+
88
+ export function KerberosSourcePropertyMappingFromJSON(json: any): KerberosSourcePropertyMapping {
89
+ return KerberosSourcePropertyMappingFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function KerberosSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): KerberosSourcePropertyMapping {
93
+ if ((json === undefined) || (json === null)) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'pk': json['pk'],
99
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
100
+ 'name': json['name'],
101
+ 'expression': json['expression'],
102
+ 'component': json['component'],
103
+ 'verboseName': json['verbose_name'],
104
+ 'verboseNamePlural': json['verbose_name_plural'],
105
+ 'metaModelName': json['meta_model_name'],
106
+ };
107
+ }
108
+
109
+ export function KerberosSourcePropertyMappingToJSON(value?: KerberosSourcePropertyMapping | null): any {
110
+ if (value === undefined) {
111
+ return undefined;
112
+ }
113
+ if (value === null) {
114
+ return null;
115
+ }
116
+ return {
117
+
118
+ 'managed': value.managed,
119
+ 'name': value.name,
120
+ 'expression': value.expression,
121
+ };
122
+ }
123
+
@@ -0,0 +1,83 @@
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
+ /**
17
+ * Kerberos PropertyMapping Serializer
18
+ * @export
19
+ * @interface KerberosSourcePropertyMappingRequest
20
+ */
21
+ export interface KerberosSourcePropertyMappingRequest {
22
+ /**
23
+ * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
24
+ * @type {string}
25
+ * @memberof KerberosSourcePropertyMappingRequest
26
+ */
27
+ managed?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof KerberosSourcePropertyMappingRequest
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof KerberosSourcePropertyMappingRequest
38
+ */
39
+ expression: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the KerberosSourcePropertyMappingRequest interface.
44
+ */
45
+ export function instanceOfKerberosSourcePropertyMappingRequest(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "name" in value;
48
+ isInstance = isInstance && "expression" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function KerberosSourcePropertyMappingRequestFromJSON(json: any): KerberosSourcePropertyMappingRequest {
54
+ return KerberosSourcePropertyMappingRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function KerberosSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KerberosSourcePropertyMappingRequest {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
64
+ 'name': json['name'],
65
+ 'expression': json['expression'],
66
+ };
67
+ }
68
+
69
+ export function KerberosSourcePropertyMappingRequestToJSON(value?: KerberosSourcePropertyMappingRequest | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'managed': value.managed,
79
+ 'name': value.name,
80
+ 'expression': value.expression,
81
+ };
82
+ }
83
+