@goauthentik/api 2024.8.3-1729630021 → 2024.8.3-1729753499

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) 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/DeviceChallenge.d.ts +6 -0
  19. package/dist/esm/models/DeviceChallenge.js +3 -0
  20. package/dist/esm/models/DeviceChallengeRequest.d.ts +6 -0
  21. package/dist/esm/models/DeviceChallengeRequest.js +3 -0
  22. package/dist/esm/models/GroupKerberosSourceConnection.d.ts +56 -0
  23. package/dist/esm/models/GroupKerberosSourceConnection.js +50 -0
  24. package/dist/esm/models/KerberosSource.d.ts +198 -0
  25. package/dist/esm/models/KerberosSource.js +103 -0
  26. package/dist/esm/models/KerberosSourcePropertyMapping.d.ts +73 -0
  27. package/dist/esm/models/KerberosSourcePropertyMapping.js +59 -0
  28. package/dist/esm/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
  29. package/dist/esm/models/KerberosSourcePropertyMappingRequest.js +49 -0
  30. package/dist/esm/models/KerberosSourceRequest.d.ts +166 -0
  31. package/dist/esm/models/KerberosSourceRequest.js +93 -0
  32. package/dist/esm/models/KerberosSyncStatus.d.ts +38 -0
  33. package/dist/esm/models/KerberosSyncStatus.js +44 -0
  34. package/dist/esm/models/ModelEnum.d.ts +4 -0
  35. package/dist/esm/models/ModelEnum.js +4 -0
  36. package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedGroupKerberosSourceConnectionList.js +48 -0
  38. package/dist/esm/models/PaginatedKerberosSourceList.d.ts +39 -0
  39. package/dist/esm/models/PaginatedKerberosSourceList.js +48 -0
  40. package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
  41. package/dist/esm/models/PaginatedKerberosSourcePropertyMappingList.js +48 -0
  42. package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
  43. package/dist/esm/models/PaginatedUserKerberosSourceConnectionList.js +48 -0
  44. package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
  45. package/dist/esm/models/PatchedKerberosSourcePropertyMappingRequest.js +47 -0
  46. package/dist/esm/models/PatchedKerberosSourceRequest.d.ts +166 -0
  47. package/dist/esm/models/PatchedKerberosSourceRequest.js +90 -0
  48. package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
  49. package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +45 -0
  50. package/dist/esm/models/UserKerberosSourceConnection.d.ts +56 -0
  51. package/dist/esm/models/UserKerberosSourceConnection.js +53 -0
  52. package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
  53. package/dist/esm/models/UserKerberosSourceConnectionRequest.js +46 -0
  54. package/dist/esm/models/index.d.ts +15 -0
  55. package/dist/esm/models/index.js +15 -0
  56. package/dist/models/AppEnum.d.ts +1 -0
  57. package/dist/models/AppEnum.js +1 -0
  58. package/dist/models/BackendsEnum.d.ts +1 -0
  59. package/dist/models/BackendsEnum.js +1 -0
  60. package/dist/models/DeviceChallenge.d.ts +6 -0
  61. package/dist/models/DeviceChallenge.js +3 -0
  62. package/dist/models/DeviceChallengeRequest.d.ts +6 -0
  63. package/dist/models/DeviceChallengeRequest.js +3 -0
  64. package/dist/models/GroupKerberosSourceConnection.d.ts +56 -0
  65. package/dist/models/GroupKerberosSourceConnection.js +57 -0
  66. package/dist/models/KerberosSource.d.ts +198 -0
  67. package/dist/models/KerberosSource.js +110 -0
  68. package/dist/models/KerberosSourcePropertyMapping.d.ts +73 -0
  69. package/dist/models/KerberosSourcePropertyMapping.js +66 -0
  70. package/dist/models/KerberosSourcePropertyMappingRequest.d.ts +43 -0
  71. package/dist/models/KerberosSourcePropertyMappingRequest.js +56 -0
  72. package/dist/models/KerberosSourceRequest.d.ts +166 -0
  73. package/dist/models/KerberosSourceRequest.js +100 -0
  74. package/dist/models/KerberosSyncStatus.d.ts +38 -0
  75. package/dist/models/KerberosSyncStatus.js +51 -0
  76. package/dist/models/ModelEnum.d.ts +4 -0
  77. package/dist/models/ModelEnum.js +4 -0
  78. package/dist/models/PaginatedGroupKerberosSourceConnectionList.d.ts +39 -0
  79. package/dist/models/PaginatedGroupKerberosSourceConnectionList.js +55 -0
  80. package/dist/models/PaginatedKerberosSourceList.d.ts +39 -0
  81. package/dist/models/PaginatedKerberosSourceList.js +55 -0
  82. package/dist/models/PaginatedKerberosSourcePropertyMappingList.d.ts +39 -0
  83. package/dist/models/PaginatedKerberosSourcePropertyMappingList.js +55 -0
  84. package/dist/models/PaginatedUserKerberosSourceConnectionList.d.ts +39 -0
  85. package/dist/models/PaginatedUserKerberosSourceConnectionList.js +55 -0
  86. package/dist/models/PatchedKerberosSourcePropertyMappingRequest.d.ts +43 -0
  87. package/dist/models/PatchedKerberosSourcePropertyMappingRequest.js +54 -0
  88. package/dist/models/PatchedKerberosSourceRequest.d.ts +166 -0
  89. package/dist/models/PatchedKerberosSourceRequest.js +97 -0
  90. package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +37 -0
  91. package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +52 -0
  92. package/dist/models/UserKerberosSourceConnection.d.ts +56 -0
  93. package/dist/models/UserKerberosSourceConnection.js +60 -0
  94. package/dist/models/UserKerberosSourceConnectionRequest.d.ts +37 -0
  95. package/dist/models/UserKerberosSourceConnectionRequest.js +53 -0
  96. package/dist/models/index.d.ts +15 -0
  97. package/dist/models/index.js +15 -0
  98. package/package.json +1 -1
  99. package/src/apis/PropertymappingsApi.ts +350 -0
  100. package/src/apis/RbacApi.ts +8 -0
  101. package/src/apis/SourcesApi.ts +1200 -153
  102. package/src/models/AppEnum.ts +1 -0
  103. package/src/models/BackendsEnum.ts +1 -0
  104. package/src/models/DeviceChallenge.ts +9 -0
  105. package/src/models/DeviceChallengeRequest.ts +9 -0
  106. package/src/models/GroupKerberosSourceConnection.ts +104 -0
  107. package/src/models/KerberosSource.ts +303 -0
  108. package/src/models/KerberosSourcePropertyMapping.ts +123 -0
  109. package/src/models/KerberosSourcePropertyMappingRequest.ts +83 -0
  110. package/src/models/KerberosSourceRequest.ts +263 -0
  111. package/src/models/KerberosSyncStatus.ts +80 -0
  112. package/src/models/ModelEnum.ts +4 -0
  113. package/src/models/PaginatedGroupKerberosSourceConnectionList.ts +88 -0
  114. package/src/models/PaginatedKerberosSourceList.ts +88 -0
  115. package/src/models/PaginatedKerberosSourcePropertyMappingList.ts +88 -0
  116. package/src/models/PaginatedUserKerberosSourceConnectionList.ts +88 -0
  117. package/src/models/PatchedKerberosSourcePropertyMappingRequest.ts +81 -0
  118. package/src/models/PatchedKerberosSourceRequest.ts +260 -0
  119. package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +73 -0
  120. package/src/models/UserKerberosSourceConnection.ts +106 -0
  121. package/src/models/UserKerberosSourceConnectionRequest.ts +75 -0
  122. package/src/models/index.ts +15 -0
@@ -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 { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { UserKerberosSourceConnection } from './UserKerberosSourceConnection';
23
+ import {
24
+ UserKerberosSourceConnectionFromJSON,
25
+ UserKerberosSourceConnectionFromJSONTyped,
26
+ UserKerberosSourceConnectionToJSON,
27
+ } from './UserKerberosSourceConnection';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedUserKerberosSourceConnectionList
33
+ */
34
+ export interface PaginatedUserKerberosSourceConnectionList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedUserKerberosSourceConnectionList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<UserKerberosSourceConnection>}
44
+ * @memberof PaginatedUserKerberosSourceConnectionList
45
+ */
46
+ results: Array<UserKerberosSourceConnection>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedUserKerberosSourceConnectionList interface.
51
+ */
52
+ export function instanceOfPaginatedUserKerberosSourceConnectionList(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 PaginatedUserKerberosSourceConnectionListFromJSON(json: any): PaginatedUserKerberosSourceConnectionList {
61
+ return PaginatedUserKerberosSourceConnectionListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedUserKerberosSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserKerberosSourceConnectionList {
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(UserKerberosSourceConnectionFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedUserKerberosSourceConnectionListToJSON(value?: PaginatedUserKerberosSourceConnectionList | 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(UserKerberosSourceConnectionToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 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 PatchedKerberosSourcePropertyMappingRequest
20
+ */
21
+ export interface PatchedKerberosSourcePropertyMappingRequest {
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 PatchedKerberosSourcePropertyMappingRequest
26
+ */
27
+ managed?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedKerberosSourcePropertyMappingRequest
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedKerberosSourcePropertyMappingRequest
38
+ */
39
+ expression?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PatchedKerberosSourcePropertyMappingRequest interface.
44
+ */
45
+ export function instanceOfPatchedKerberosSourcePropertyMappingRequest(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function PatchedKerberosSourcePropertyMappingRequestFromJSON(json: any): PatchedKerberosSourcePropertyMappingRequest {
52
+ return PatchedKerberosSourcePropertyMappingRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PatchedKerberosSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedKerberosSourcePropertyMappingRequest {
56
+ if ((json === undefined) || (json === null)) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
62
+ 'name': !exists(json, 'name') ? undefined : json['name'],
63
+ 'expression': !exists(json, 'expression') ? undefined : json['expression'],
64
+ };
65
+ }
66
+
67
+ export function PatchedKerberosSourcePropertyMappingRequestToJSON(value?: PatchedKerberosSourcePropertyMappingRequest | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'managed': value.managed,
77
+ 'name': value.name,
78
+ 'expression': value.expression,
79
+ };
80
+ }
81
+
@@ -0,0 +1,260 @@
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 PatchedKerberosSourceRequest
39
+ */
40
+ export interface PatchedKerberosSourceRequest {
41
+ /**
42
+ * Source's display Name.
43
+ * @type {string}
44
+ * @memberof PatchedKerberosSourceRequest
45
+ */
46
+ name?: string;
47
+ /**
48
+ * Internal source name, used in URLs.
49
+ * @type {string}
50
+ * @memberof PatchedKerberosSourceRequest
51
+ */
52
+ slug?: string;
53
+ /**
54
+ *
55
+ * @type {boolean}
56
+ * @memberof PatchedKerberosSourceRequest
57
+ */
58
+ enabled?: boolean;
59
+ /**
60
+ * Flow to use when authenticating existing users.
61
+ * @type {string}
62
+ * @memberof PatchedKerberosSourceRequest
63
+ */
64
+ authenticationFlow?: string | null;
65
+ /**
66
+ * Flow to use when enrolling new users.
67
+ * @type {string}
68
+ * @memberof PatchedKerberosSourceRequest
69
+ */
70
+ enrollmentFlow?: string | null;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof PatchedKerberosSourceRequest
75
+ */
76
+ userPropertyMappings?: Array<string>;
77
+ /**
78
+ *
79
+ * @type {Array<string>}
80
+ * @memberof PatchedKerberosSourceRequest
81
+ */
82
+ groupPropertyMappings?: Array<string>;
83
+ /**
84
+ *
85
+ * @type {PolicyEngineMode}
86
+ * @memberof PatchedKerberosSourceRequest
87
+ */
88
+ policyEngineMode?: PolicyEngineMode;
89
+ /**
90
+ *
91
+ * @type {UserMatchingModeEnum}
92
+ * @memberof PatchedKerberosSourceRequest
93
+ */
94
+ userMatchingMode?: UserMatchingModeEnum;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof PatchedKerberosSourceRequest
99
+ */
100
+ userPathTemplate?: string;
101
+ /**
102
+ *
103
+ * @type {GroupMatchingModeEnum}
104
+ * @memberof PatchedKerberosSourceRequest
105
+ */
106
+ groupMatchingMode?: GroupMatchingModeEnum;
107
+ /**
108
+ * Kerberos realm
109
+ * @type {string}
110
+ * @memberof PatchedKerberosSourceRequest
111
+ */
112
+ realm?: string;
113
+ /**
114
+ * Custom krb5.conf to use. Uses the system one by default
115
+ * @type {string}
116
+ * @memberof PatchedKerberosSourceRequest
117
+ */
118
+ krb5Conf?: string;
119
+ /**
120
+ * Sync users from Kerberos into authentik
121
+ * @type {boolean}
122
+ * @memberof PatchedKerberosSourceRequest
123
+ */
124
+ syncUsers?: boolean;
125
+ /**
126
+ * When a user changes their password, sync it back to Kerberos
127
+ * @type {boolean}
128
+ * @memberof PatchedKerberosSourceRequest
129
+ */
130
+ syncUsersPassword?: boolean;
131
+ /**
132
+ * Principal to authenticate to kadmin for sync.
133
+ * @type {string}
134
+ * @memberof PatchedKerberosSourceRequest
135
+ */
136
+ syncPrincipal?: string;
137
+ /**
138
+ * Password to authenticate to kadmin for sync
139
+ * @type {string}
140
+ * @memberof PatchedKerberosSourceRequest
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 PatchedKerberosSourceRequest
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 PatchedKerberosSourceRequest
153
+ */
154
+ syncCcache?: string;
155
+ /**
156
+ * Force the use of a specific server name for SPNEGO
157
+ * @type {string}
158
+ * @memberof PatchedKerberosSourceRequest
159
+ */
160
+ spnegoServerName?: string;
161
+ /**
162
+ * SPNEGO keytab base64-encoded or path to keytab in the form FILE:path
163
+ * @type {string}
164
+ * @memberof PatchedKerberosSourceRequest
165
+ */
166
+ spnegoKeytab?: string;
167
+ /**
168
+ * Credential cache to use for SPNEGO in form type:residual
169
+ * @type {string}
170
+ * @memberof PatchedKerberosSourceRequest
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 PatchedKerberosSourceRequest
177
+ */
178
+ passwordLoginUpdateInternalPassword?: boolean;
179
+ }
180
+
181
+ /**
182
+ * Check if a given object implements the PatchedKerberosSourceRequest interface.
183
+ */
184
+ export function instanceOfPatchedKerberosSourceRequest(value: object): boolean {
185
+ let isInstance = true;
186
+
187
+ return isInstance;
188
+ }
189
+
190
+ export function PatchedKerberosSourceRequestFromJSON(json: any): PatchedKerberosSourceRequest {
191
+ return PatchedKerberosSourceRequestFromJSONTyped(json, false);
192
+ }
193
+
194
+ export function PatchedKerberosSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedKerberosSourceRequest {
195
+ if ((json === undefined) || (json === null)) {
196
+ return json;
197
+ }
198
+ return {
199
+
200
+ 'name': !exists(json, 'name') ? undefined : json['name'],
201
+ 'slug': !exists(json, 'slug') ? undefined : json['slug'],
202
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
203
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
204
+ 'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
205
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
206
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
207
+ 'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
208
+ 'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
209
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
210
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
211
+ 'realm': !exists(json, 'realm') ? undefined : json['realm'],
212
+ 'krb5Conf': !exists(json, 'krb5_conf') ? undefined : json['krb5_conf'],
213
+ 'syncUsers': !exists(json, 'sync_users') ? undefined : json['sync_users'],
214
+ 'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
215
+ 'syncPrincipal': !exists(json, 'sync_principal') ? undefined : json['sync_principal'],
216
+ 'syncPassword': !exists(json, 'sync_password') ? undefined : json['sync_password'],
217
+ 'syncKeytab': !exists(json, 'sync_keytab') ? undefined : json['sync_keytab'],
218
+ 'syncCcache': !exists(json, 'sync_ccache') ? undefined : json['sync_ccache'],
219
+ 'spnegoServerName': !exists(json, 'spnego_server_name') ? undefined : json['spnego_server_name'],
220
+ 'spnegoKeytab': !exists(json, 'spnego_keytab') ? undefined : json['spnego_keytab'],
221
+ 'spnegoCcache': !exists(json, 'spnego_ccache') ? undefined : json['spnego_ccache'],
222
+ 'passwordLoginUpdateInternalPassword': !exists(json, 'password_login_update_internal_password') ? undefined : json['password_login_update_internal_password'],
223
+ };
224
+ }
225
+
226
+ export function PatchedKerberosSourceRequestToJSON(value?: PatchedKerberosSourceRequest | null): any {
227
+ if (value === undefined) {
228
+ return undefined;
229
+ }
230
+ if (value === null) {
231
+ return null;
232
+ }
233
+ return {
234
+
235
+ 'name': value.name,
236
+ 'slug': value.slug,
237
+ 'enabled': value.enabled,
238
+ 'authentication_flow': value.authenticationFlow,
239
+ 'enrollment_flow': value.enrollmentFlow,
240
+ 'user_property_mappings': value.userPropertyMappings,
241
+ 'group_property_mappings': value.groupPropertyMappings,
242
+ 'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
243
+ 'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
244
+ 'user_path_template': value.userPathTemplate,
245
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
246
+ 'realm': value.realm,
247
+ 'krb5_conf': value.krb5Conf,
248
+ 'sync_users': value.syncUsers,
249
+ 'sync_users_password': value.syncUsersPassword,
250
+ 'sync_principal': value.syncPrincipal,
251
+ 'sync_password': value.syncPassword,
252
+ 'sync_keytab': value.syncKeytab,
253
+ 'sync_ccache': value.syncCcache,
254
+ 'spnego_server_name': value.spnegoServerName,
255
+ 'spnego_keytab': value.spnegoKeytab,
256
+ 'spnego_ccache': value.spnegoCcache,
257
+ 'password_login_update_internal_password': value.passwordLoginUpdateInternalPassword,
258
+ };
259
+ }
260
+
@@ -0,0 +1,73 @@
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 Source Serializer
18
+ * @export
19
+ * @interface PatchedUserKerberosSourceConnectionRequest
20
+ */
21
+ export interface PatchedUserKerberosSourceConnectionRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof PatchedUserKerberosSourceConnectionRequest
26
+ */
27
+ user?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedUserKerberosSourceConnectionRequest
32
+ */
33
+ identifier?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PatchedUserKerberosSourceConnectionRequest interface.
38
+ */
39
+ export function instanceOfPatchedUserKerberosSourceConnectionRequest(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function PatchedUserKerberosSourceConnectionRequestFromJSON(json: any): PatchedUserKerberosSourceConnectionRequest {
46
+ return PatchedUserKerberosSourceConnectionRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PatchedUserKerberosSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserKerberosSourceConnectionRequest {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'user': !exists(json, 'user') ? undefined : json['user'],
56
+ 'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
57
+ };
58
+ }
59
+
60
+ export function PatchedUserKerberosSourceConnectionRequestToJSON(value?: PatchedUserKerberosSourceConnectionRequest | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'user': value.user,
70
+ 'identifier': value.identifier,
71
+ };
72
+ }
73
+
@@ -0,0 +1,106 @@
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
+ * Kerberos Source Serializer
25
+ * @export
26
+ * @interface UserKerberosSourceConnection
27
+ */
28
+ export interface UserKerberosSourceConnection {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof UserKerberosSourceConnection
33
+ */
34
+ readonly pk: number;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof UserKerberosSourceConnection
39
+ */
40
+ user: number;
41
+ /**
42
+ *
43
+ * @type {Source}
44
+ * @memberof UserKerberosSourceConnection
45
+ */
46
+ readonly source: Source;
47
+ /**
48
+ *
49
+ * @type {Date}
50
+ * @memberof UserKerberosSourceConnection
51
+ */
52
+ readonly created: Date;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof UserKerberosSourceConnection
57
+ */
58
+ identifier: string;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the UserKerberosSourceConnection interface.
63
+ */
64
+ export function instanceOfUserKerberosSourceConnection(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "pk" in value;
67
+ isInstance = isInstance && "user" in value;
68
+ isInstance = isInstance && "source" in value;
69
+ isInstance = isInstance && "created" in value;
70
+ isInstance = isInstance && "identifier" in value;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function UserKerberosSourceConnectionFromJSON(json: any): UserKerberosSourceConnection {
76
+ return UserKerberosSourceConnectionFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function UserKerberosSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserKerberosSourceConnection {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'pk': json['pk'],
86
+ 'user': json['user'],
87
+ 'source': SourceFromJSON(json['source']),
88
+ 'created': (new Date(json['created'])),
89
+ 'identifier': json['identifier'],
90
+ };
91
+ }
92
+
93
+ export function UserKerberosSourceConnectionToJSON(value?: UserKerberosSourceConnection | null): any {
94
+ if (value === undefined) {
95
+ return undefined;
96
+ }
97
+ if (value === null) {
98
+ return null;
99
+ }
100
+ return {
101
+
102
+ 'user': value.user,
103
+ 'identifier': value.identifier,
104
+ };
105
+ }
106
+
@@ -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: 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 Source Serializer
18
+ * @export
19
+ * @interface UserKerberosSourceConnectionRequest
20
+ */
21
+ export interface UserKerberosSourceConnectionRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof UserKerberosSourceConnectionRequest
26
+ */
27
+ user: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UserKerberosSourceConnectionRequest
32
+ */
33
+ identifier: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the UserKerberosSourceConnectionRequest interface.
38
+ */
39
+ export function instanceOfUserKerberosSourceConnectionRequest(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "user" in value;
42
+ isInstance = isInstance && "identifier" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function UserKerberosSourceConnectionRequestFromJSON(json: any): UserKerberosSourceConnectionRequest {
48
+ return UserKerberosSourceConnectionRequestFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function UserKerberosSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserKerberosSourceConnectionRequest {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'user': json['user'],
58
+ 'identifier': json['identifier'],
59
+ };
60
+ }
61
+
62
+ export function UserKerberosSourceConnectionRequestToJSON(value?: UserKerberosSourceConnectionRequest | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'user': value.user,
72
+ 'identifier': value.identifier,
73
+ };
74
+ }
75
+