@goauthentik/api 2024.6.1-1721092506 → 2024.6.1-1721725857

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/dist/apis/PropertymappingsApi.d.ts +0 -1
  2. package/dist/apis/PropertymappingsApi.js +0 -3
  3. package/dist/apis/SourcesApi.d.ts +2 -2
  4. package/dist/apis/SourcesApi.js +6 -6
  5. package/dist/esm/apis/PropertymappingsApi.d.ts +0 -1
  6. package/dist/esm/apis/PropertymappingsApi.js +0 -3
  7. package/dist/esm/apis/SourcesApi.d.ts +2 -2
  8. package/dist/esm/apis/SourcesApi.js +6 -6
  9. package/dist/esm/models/Brand.d.ts +6 -0
  10. package/dist/esm/models/Brand.js +2 -0
  11. package/dist/esm/models/BrandRequest.d.ts +6 -0
  12. package/dist/esm/models/BrandRequest.js +2 -0
  13. package/dist/esm/models/LDAPPropertyMapping.d.ts +0 -6
  14. package/dist/esm/models/LDAPPropertyMapping.js +0 -3
  15. package/dist/esm/models/LDAPPropertyMappingRequest.d.ts +0 -6
  16. package/dist/esm/models/LDAPPropertyMappingRequest.js +0 -3
  17. package/dist/esm/models/LDAPSource.d.ts +12 -12
  18. package/dist/esm/models/LDAPSource.js +4 -4
  19. package/dist/esm/models/LDAPSourceRequest.d.ts +12 -12
  20. package/dist/esm/models/LDAPSourceRequest.js +4 -4
  21. package/dist/esm/models/OAuthSource.d.ts +12 -0
  22. package/dist/esm/models/OAuthSource.js +4 -0
  23. package/dist/esm/models/OAuthSourceRequest.d.ts +12 -0
  24. package/dist/esm/models/OAuthSourceRequest.js +4 -0
  25. package/dist/esm/models/PatchedBrandRequest.d.ts +6 -0
  26. package/dist/esm/models/PatchedBrandRequest.js +2 -0
  27. package/dist/esm/models/PatchedLDAPPropertyMappingRequest.d.ts +0 -6
  28. package/dist/esm/models/PatchedLDAPPropertyMappingRequest.js +0 -2
  29. package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +12 -12
  30. package/dist/esm/models/PatchedLDAPSourceRequest.js +4 -4
  31. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +12 -0
  32. package/dist/esm/models/PatchedOAuthSourceRequest.js +4 -0
  33. package/dist/esm/models/PatchedPlexSourceRequest.d.ts +12 -0
  34. package/dist/esm/models/PatchedPlexSourceRequest.js +4 -0
  35. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +12 -0
  36. package/dist/esm/models/PatchedSAMLSourceRequest.js +4 -0
  37. package/dist/esm/models/PlexSource.d.ts +12 -0
  38. package/dist/esm/models/PlexSource.js +4 -0
  39. package/dist/esm/models/PlexSourceRequest.d.ts +12 -0
  40. package/dist/esm/models/PlexSourceRequest.js +4 -0
  41. package/dist/esm/models/SAMLSource.d.ts +12 -0
  42. package/dist/esm/models/SAMLSource.js +4 -0
  43. package/dist/esm/models/SAMLSourceRequest.d.ts +12 -0
  44. package/dist/esm/models/SAMLSourceRequest.js +4 -0
  45. package/dist/esm/models/Source.d.ts +12 -0
  46. package/dist/esm/models/Source.js +4 -0
  47. package/dist/esm/models/SourceRequest.d.ts +12 -0
  48. package/dist/esm/models/SourceRequest.js +4 -0
  49. package/dist/models/Brand.d.ts +6 -0
  50. package/dist/models/Brand.js +2 -0
  51. package/dist/models/BrandRequest.d.ts +6 -0
  52. package/dist/models/BrandRequest.js +2 -0
  53. package/dist/models/LDAPPropertyMapping.d.ts +0 -6
  54. package/dist/models/LDAPPropertyMapping.js +0 -3
  55. package/dist/models/LDAPPropertyMappingRequest.d.ts +0 -6
  56. package/dist/models/LDAPPropertyMappingRequest.js +0 -3
  57. package/dist/models/LDAPSource.d.ts +12 -12
  58. package/dist/models/LDAPSource.js +4 -4
  59. package/dist/models/LDAPSourceRequest.d.ts +12 -12
  60. package/dist/models/LDAPSourceRequest.js +4 -4
  61. package/dist/models/OAuthSource.d.ts +12 -0
  62. package/dist/models/OAuthSource.js +4 -0
  63. package/dist/models/OAuthSourceRequest.d.ts +12 -0
  64. package/dist/models/OAuthSourceRequest.js +4 -0
  65. package/dist/models/PatchedBrandRequest.d.ts +6 -0
  66. package/dist/models/PatchedBrandRequest.js +2 -0
  67. package/dist/models/PatchedLDAPPropertyMappingRequest.d.ts +0 -6
  68. package/dist/models/PatchedLDAPPropertyMappingRequest.js +0 -2
  69. package/dist/models/PatchedLDAPSourceRequest.d.ts +12 -12
  70. package/dist/models/PatchedLDAPSourceRequest.js +4 -4
  71. package/dist/models/PatchedOAuthSourceRequest.d.ts +12 -0
  72. package/dist/models/PatchedOAuthSourceRequest.js +4 -0
  73. package/dist/models/PatchedPlexSourceRequest.d.ts +12 -0
  74. package/dist/models/PatchedPlexSourceRequest.js +4 -0
  75. package/dist/models/PatchedSAMLSourceRequest.d.ts +12 -0
  76. package/dist/models/PatchedSAMLSourceRequest.js +4 -0
  77. package/dist/models/PlexSource.d.ts +12 -0
  78. package/dist/models/PlexSource.js +4 -0
  79. package/dist/models/PlexSourceRequest.d.ts +12 -0
  80. package/dist/models/PlexSourceRequest.js +4 -0
  81. package/dist/models/SAMLSource.d.ts +12 -0
  82. package/dist/models/SAMLSource.js +4 -0
  83. package/dist/models/SAMLSourceRequest.d.ts +12 -0
  84. package/dist/models/SAMLSourceRequest.js +4 -0
  85. package/dist/models/Source.d.ts +12 -0
  86. package/dist/models/Source.js +4 -0
  87. package/dist/models/SourceRequest.d.ts +12 -0
  88. package/dist/models/SourceRequest.js +4 -0
  89. package/package.json +1 -1
  90. package/src/apis/PropertymappingsApi.ts +0 -5
  91. package/src/apis/SourcesApi.ts +10 -10
  92. package/src/models/Brand.ts +8 -0
  93. package/src/models/BrandRequest.ts +8 -0
  94. package/src/models/LDAPPropertyMapping.ts +0 -9
  95. package/src/models/LDAPPropertyMappingRequest.ts +0 -9
  96. package/src/models/LDAPSource.ts +16 -16
  97. package/src/models/LDAPSourceRequest.ts +16 -16
  98. package/src/models/OAuthSource.ts +16 -0
  99. package/src/models/OAuthSourceRequest.ts +16 -0
  100. package/src/models/PatchedBrandRequest.ts +8 -0
  101. package/src/models/PatchedLDAPPropertyMappingRequest.ts +0 -8
  102. package/src/models/PatchedLDAPSourceRequest.ts +16 -16
  103. package/src/models/PatchedOAuthSourceRequest.ts +16 -0
  104. package/src/models/PatchedPlexSourceRequest.ts +16 -0
  105. package/src/models/PatchedSAMLSourceRequest.ts +16 -0
  106. package/src/models/PlexSource.ts +16 -0
  107. package/src/models/PlexSourceRequest.ts +16 -0
  108. package/src/models/SAMLSource.ts +16 -0
  109. package/src/models/SAMLSourceRequest.ts +16 -0
  110. package/src/models/Source.ts +16 -0
  111. package/src/models/SourceRequest.ts +16 -0
@@ -241,6 +241,7 @@ export interface SourcesLdapListRequest {
241
241
  enabled?: boolean;
242
242
  groupMembershipField?: string;
243
243
  groupObjectFilter?: string;
244
+ groupPropertyMappings?: Array<string>;
244
245
  name?: string;
245
246
  objectUniquenessField?: string;
246
247
  ordering?: string;
@@ -248,8 +249,6 @@ export interface SourcesLdapListRequest {
248
249
  pageSize?: number;
249
250
  passwordLoginUpdateInternalPassword?: boolean;
250
251
  peerCertificate?: string;
251
- propertyMappings?: Array<string>;
252
- propertyMappingsGroup?: Array<string>;
253
252
  search?: string;
254
253
  serverUri?: string;
255
254
  slug?: string;
@@ -260,6 +259,7 @@ export interface SourcesLdapListRequest {
260
259
  syncUsers?: boolean;
261
260
  syncUsersPassword?: boolean;
262
261
  userObjectFilter?: string;
262
+ userPropertyMappings?: Array<string>;
263
263
  }
264
264
 
265
265
  export interface SourcesLdapPartialUpdateRequest {
@@ -1190,6 +1190,10 @@ export class SourcesApi extends runtime.BaseAPI {
1190
1190
  queryParameters['group_object_filter'] = requestParameters.groupObjectFilter;
1191
1191
  }
1192
1192
 
1193
+ if (requestParameters.groupPropertyMappings) {
1194
+ queryParameters['group_property_mappings'] = requestParameters.groupPropertyMappings;
1195
+ }
1196
+
1193
1197
  if (requestParameters.name !== undefined) {
1194
1198
  queryParameters['name'] = requestParameters.name;
1195
1199
  }
@@ -1218,14 +1222,6 @@ export class SourcesApi extends runtime.BaseAPI {
1218
1222
  queryParameters['peer_certificate'] = requestParameters.peerCertificate;
1219
1223
  }
1220
1224
 
1221
- if (requestParameters.propertyMappings) {
1222
- queryParameters['property_mappings'] = requestParameters.propertyMappings;
1223
- }
1224
-
1225
- if (requestParameters.propertyMappingsGroup) {
1226
- queryParameters['property_mappings_group'] = requestParameters.propertyMappingsGroup;
1227
- }
1228
-
1229
1225
  if (requestParameters.search !== undefined) {
1230
1226
  queryParameters['search'] = requestParameters.search;
1231
1227
  }
@@ -1266,6 +1262,10 @@ export class SourcesApi extends runtime.BaseAPI {
1266
1262
  queryParameters['user_object_filter'] = requestParameters.userObjectFilter;
1267
1263
  }
1268
1264
 
1265
+ if (requestParameters.userPropertyMappings) {
1266
+ queryParameters['user_property_mappings'] = requestParameters.userPropertyMappings;
1267
+ }
1268
+
1269
1269
  const headerParameters: runtime.HTTPHeaders = {};
1270
1270
 
1271
1271
  if (this.configuration && this.configuration.accessToken) {
@@ -91,6 +91,12 @@ export interface Brand {
91
91
  * @memberof Brand
92
92
  */
93
93
  flowDeviceCode?: string | null;
94
+ /**
95
+ * When set, external users will be redirected to this application after authenticating.
96
+ * @type {string}
97
+ * @memberof Brand
98
+ */
99
+ defaultApplication?: string | null;
94
100
  /**
95
101
  * Web Certificate used by the authentik Core webserver.
96
102
  * @type {string}
@@ -138,6 +144,7 @@ export function BrandFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bra
138
144
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
139
145
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
140
146
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
147
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
141
148
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
142
149
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
143
150
  };
@@ -163,6 +170,7 @@ export function BrandToJSON(value?: Brand | null): any {
163
170
  'flow_unenrollment': value.flowUnenrollment,
164
171
  'flow_user_settings': value.flowUserSettings,
165
172
  'flow_device_code': value.flowDeviceCode,
173
+ 'default_application': value.defaultApplication,
166
174
  'web_certificate': value.webCertificate,
167
175
  'attributes': value.attributes,
168
176
  };
@@ -85,6 +85,12 @@ export interface BrandRequest {
85
85
  * @memberof BrandRequest
86
86
  */
87
87
  flowDeviceCode?: string | null;
88
+ /**
89
+ * When set, external users will be redirected to this application after authenticating.
90
+ * @type {string}
91
+ * @memberof BrandRequest
92
+ */
93
+ defaultApplication?: string | null;
88
94
  /**
89
95
  * Web Certificate used by the authentik Core webserver.
90
96
  * @type {string}
@@ -130,6 +136,7 @@ export function BrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
130
136
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
131
137
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
132
138
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
139
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
133
140
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
134
141
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
135
142
  };
@@ -155,6 +162,7 @@ export function BrandRequestToJSON(value?: BrandRequest | null): any {
155
162
  'flow_unenrollment': value.flowUnenrollment,
156
163
  'flow_user_settings': value.flowUserSettings,
157
164
  'flow_device_code': value.flowDeviceCode,
165
+ 'default_application': value.defaultApplication,
158
166
  'web_certificate': value.webCertificate,
159
167
  'attributes': value.attributes,
160
168
  };
@@ -67,12 +67,6 @@ export interface LDAPPropertyMapping {
67
67
  * @memberof LDAPPropertyMapping
68
68
  */
69
69
  readonly metaModelName: string;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof LDAPPropertyMapping
74
- */
75
- objectField: string;
76
70
  }
77
71
 
78
72
  /**
@@ -87,7 +81,6 @@ export function instanceOfLDAPPropertyMapping(value: object): boolean {
87
81
  isInstance = isInstance && "verboseName" in value;
88
82
  isInstance = isInstance && "verboseNamePlural" in value;
89
83
  isInstance = isInstance && "metaModelName" in value;
90
- isInstance = isInstance && "objectField" in value;
91
84
 
92
85
  return isInstance;
93
86
  }
@@ -110,7 +103,6 @@ export function LDAPPropertyMappingFromJSONTyped(json: any, ignoreDiscriminator:
110
103
  'verboseName': json['verbose_name'],
111
104
  'verboseNamePlural': json['verbose_name_plural'],
112
105
  'metaModelName': json['meta_model_name'],
113
- 'objectField': json['object_field'],
114
106
  };
115
107
  }
116
108
 
@@ -126,7 +118,6 @@ export function LDAPPropertyMappingToJSON(value?: LDAPPropertyMapping | null): a
126
118
  'managed': value.managed,
127
119
  'name': value.name,
128
120
  'expression': value.expression,
129
- 'object_field': value.objectField,
130
121
  };
131
122
  }
132
123
 
@@ -37,12 +37,6 @@ export interface LDAPPropertyMappingRequest {
37
37
  * @memberof LDAPPropertyMappingRequest
38
38
  */
39
39
  expression: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof LDAPPropertyMappingRequest
44
- */
45
- objectField: string;
46
40
  }
47
41
 
48
42
  /**
@@ -52,7 +46,6 @@ export function instanceOfLDAPPropertyMappingRequest(value: object): boolean {
52
46
  let isInstance = true;
53
47
  isInstance = isInstance && "name" in value;
54
48
  isInstance = isInstance && "expression" in value;
55
- isInstance = isInstance && "objectField" in value;
56
49
 
57
50
  return isInstance;
58
51
  }
@@ -70,7 +63,6 @@ export function LDAPPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscrim
70
63
  'managed': !exists(json, 'managed') ? undefined : json['managed'],
71
64
  'name': json['name'],
72
65
  'expression': json['expression'],
73
- 'objectField': json['object_field'],
74
66
  };
75
67
  }
76
68
 
@@ -86,7 +78,6 @@ export function LDAPPropertyMappingRequestToJSON(value?: LDAPPropertyMappingRequ
86
78
  'managed': value.managed,
87
79
  'name': value.name,
88
80
  'expression': value.expression,
89
- 'object_field': value.objectField,
90
81
  };
91
82
  }
92
83
 
@@ -68,6 +68,18 @@ export interface LDAPSource {
68
68
  * @memberof LDAPSource
69
69
  */
70
70
  enrollmentFlow?: string | null;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof LDAPSource
75
+ */
76
+ userPropertyMappings?: Array<string>;
77
+ /**
78
+ *
79
+ * @type {Array<string>}
80
+ * @memberof LDAPSource
81
+ */
82
+ groupPropertyMappings?: Array<string>;
71
83
  /**
72
84
  * Get object component so that we know how to edit the object
73
85
  * @type {string}
@@ -230,18 +242,6 @@ export interface LDAPSource {
230
242
  * @memberof LDAPSource
231
243
  */
232
244
  syncParentGroup?: string | null;
233
- /**
234
- *
235
- * @type {Array<string>}
236
- * @memberof LDAPSource
237
- */
238
- propertyMappings?: Array<string>;
239
- /**
240
- * Property mappings used for group creation/updating.
241
- * @type {Array<string>}
242
- * @memberof LDAPSource
243
- */
244
- propertyMappingsGroup?: Array<string>;
245
245
  /**
246
246
  * Get cached source connectivity
247
247
  * @type {{ [key: string]: { [key: string]: string; }; }}
@@ -287,6 +287,8 @@ export function LDAPSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
287
287
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
288
288
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
289
289
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
290
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
291
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
290
292
  'component': json['component'],
291
293
  'verboseName': json['verbose_name'],
292
294
  'verboseNamePlural': json['verbose_name_plural'],
@@ -314,8 +316,6 @@ export function LDAPSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
314
316
  'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
315
317
  'syncGroups': !exists(json, 'sync_groups') ? undefined : json['sync_groups'],
316
318
  'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
317
- 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
318
- 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
319
319
  'connectivity': json['connectivity'],
320
320
  };
321
321
  }
@@ -334,6 +334,8 @@ export function LDAPSourceToJSON(value?: LDAPSource | null): any {
334
334
  'enabled': value.enabled,
335
335
  'authentication_flow': value.authenticationFlow,
336
336
  'enrollment_flow': value.enrollmentFlow,
337
+ 'user_property_mappings': value.userPropertyMappings,
338
+ 'group_property_mappings': value.groupPropertyMappings,
337
339
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
338
340
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
339
341
  'user_path_template': value.userPathTemplate,
@@ -355,8 +357,6 @@ export function LDAPSourceToJSON(value?: LDAPSource | null): any {
355
357
  'sync_users_password': value.syncUsersPassword,
356
358
  'sync_groups': value.syncGroups,
357
359
  'sync_parent_group': value.syncParentGroup,
358
- 'property_mappings': value.propertyMappings,
359
- 'property_mappings_group': value.propertyMappingsGroup,
360
360
  };
361
361
  }
362
362
 
@@ -62,6 +62,18 @@ export interface LDAPSourceRequest {
62
62
  * @memberof LDAPSourceRequest
63
63
  */
64
64
  enrollmentFlow?: string | null;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof LDAPSourceRequest
69
+ */
70
+ userPropertyMappings?: Array<string>;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof LDAPSourceRequest
75
+ */
76
+ groupPropertyMappings?: Array<string>;
65
77
  /**
66
78
  *
67
79
  * @type {PolicyEngineMode}
@@ -194,18 +206,6 @@ export interface LDAPSourceRequest {
194
206
  * @memberof LDAPSourceRequest
195
207
  */
196
208
  syncParentGroup?: string | null;
197
- /**
198
- *
199
- * @type {Array<string>}
200
- * @memberof LDAPSourceRequest
201
- */
202
- propertyMappings?: Array<string>;
203
- /**
204
- * Property mappings used for group creation/updating.
205
- * @type {Array<string>}
206
- * @memberof LDAPSourceRequest
207
- */
208
- propertyMappingsGroup?: Array<string>;
209
209
  }
210
210
 
211
211
  /**
@@ -236,6 +236,8 @@ export function LDAPSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
236
236
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
237
237
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
238
238
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
239
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
240
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
239
241
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
240
242
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
241
243
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -258,8 +260,6 @@ export function LDAPSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
258
260
  'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
259
261
  'syncGroups': !exists(json, 'sync_groups') ? undefined : json['sync_groups'],
260
262
  'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
261
- 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
262
- 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
263
263
  };
264
264
  }
265
265
 
@@ -277,6 +277,8 @@ export function LDAPSourceRequestToJSON(value?: LDAPSourceRequest | null): any {
277
277
  'enabled': value.enabled,
278
278
  'authentication_flow': value.authenticationFlow,
279
279
  'enrollment_flow': value.enrollmentFlow,
280
+ 'user_property_mappings': value.userPropertyMappings,
281
+ 'group_property_mappings': value.groupPropertyMappings,
280
282
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
281
283
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
282
284
  'user_path_template': value.userPathTemplate,
@@ -299,8 +301,6 @@ export function LDAPSourceRequestToJSON(value?: LDAPSourceRequest | null): any {
299
301
  'sync_users_password': value.syncUsersPassword,
300
302
  'sync_groups': value.syncGroups,
301
303
  'sync_parent_group': value.syncParentGroup,
302
- 'property_mappings': value.propertyMappings,
303
- 'property_mappings_group': value.propertyMappingsGroup,
304
304
  };
305
305
  }
306
306
 
@@ -80,6 +80,18 @@ export interface OAuthSource {
80
80
  * @memberof OAuthSource
81
81
  */
82
82
  enrollmentFlow?: string | null;
83
+ /**
84
+ *
85
+ * @type {Array<string>}
86
+ * @memberof OAuthSource
87
+ */
88
+ userPropertyMappings?: Array<string>;
89
+ /**
90
+ *
91
+ * @type {Array<string>}
92
+ * @memberof OAuthSource
93
+ */
94
+ groupPropertyMappings?: Array<string>;
83
95
  /**
84
96
  * Get object component so that we know how to edit the object
85
97
  * @type {string}
@@ -246,6 +258,8 @@ export function OAuthSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
246
258
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
247
259
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
248
260
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
261
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
262
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
249
263
  'component': json['component'],
250
264
  'verboseName': json['verbose_name'],
251
265
  'verboseNamePlural': json['verbose_name_plural'],
@@ -284,6 +298,8 @@ export function OAuthSourceToJSON(value?: OAuthSource | null): any {
284
298
  'enabled': value.enabled,
285
299
  'authentication_flow': value.authenticationFlow,
286
300
  'enrollment_flow': value.enrollmentFlow,
301
+ 'user_property_mappings': value.userPropertyMappings,
302
+ 'group_property_mappings': value.groupPropertyMappings,
287
303
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
288
304
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
289
305
  'user_path_template': value.userPathTemplate,
@@ -68,6 +68,18 @@ export interface OAuthSourceRequest {
68
68
  * @memberof OAuthSourceRequest
69
69
  */
70
70
  enrollmentFlow?: string | null;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof OAuthSourceRequest
75
+ */
76
+ userPropertyMappings?: Array<string>;
77
+ /**
78
+ *
79
+ * @type {Array<string>}
80
+ * @memberof OAuthSourceRequest
81
+ */
82
+ groupPropertyMappings?: Array<string>;
71
83
  /**
72
84
  *
73
85
  * @type {PolicyEngineMode}
@@ -183,6 +195,8 @@ export function OAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator:
183
195
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
184
196
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
185
197
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
198
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
199
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
186
200
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
187
201
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
188
202
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -214,6 +228,8 @@ export function OAuthSourceRequestToJSON(value?: OAuthSourceRequest | null): any
214
228
  'enabled': value.enabled,
215
229
  'authentication_flow': value.authenticationFlow,
216
230
  'enrollment_flow': value.enrollmentFlow,
231
+ 'user_property_mappings': value.userPropertyMappings,
232
+ 'group_property_mappings': value.groupPropertyMappings,
217
233
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
218
234
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
219
235
  'user_path_template': value.userPathTemplate,
@@ -85,6 +85,12 @@ export interface PatchedBrandRequest {
85
85
  * @memberof PatchedBrandRequest
86
86
  */
87
87
  flowDeviceCode?: string | null;
88
+ /**
89
+ * When set, external users will be redirected to this application after authenticating.
90
+ * @type {string}
91
+ * @memberof PatchedBrandRequest
92
+ */
93
+ defaultApplication?: string | null;
88
94
  /**
89
95
  * Web Certificate used by the authentik Core webserver.
90
96
  * @type {string}
@@ -129,6 +135,7 @@ export function PatchedBrandRequestFromJSONTyped(json: any, ignoreDiscriminator:
129
135
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
130
136
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
131
137
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
138
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
132
139
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
133
140
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
134
141
  };
@@ -154,6 +161,7 @@ export function PatchedBrandRequestToJSON(value?: PatchedBrandRequest | null): a
154
161
  'flow_unenrollment': value.flowUnenrollment,
155
162
  'flow_user_settings': value.flowUserSettings,
156
163
  'flow_device_code': value.flowDeviceCode,
164
+ 'default_application': value.defaultApplication,
157
165
  'web_certificate': value.webCertificate,
158
166
  'attributes': value.attributes,
159
167
  };
@@ -37,12 +37,6 @@ export interface PatchedLDAPPropertyMappingRequest {
37
37
  * @memberof PatchedLDAPPropertyMappingRequest
38
38
  */
39
39
  expression?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof PatchedLDAPPropertyMappingRequest
44
- */
45
- objectField?: string;
46
40
  }
47
41
 
48
42
  /**
@@ -67,7 +61,6 @@ export function PatchedLDAPPropertyMappingRequestFromJSONTyped(json: any, ignore
67
61
  'managed': !exists(json, 'managed') ? undefined : json['managed'],
68
62
  'name': !exists(json, 'name') ? undefined : json['name'],
69
63
  'expression': !exists(json, 'expression') ? undefined : json['expression'],
70
- 'objectField': !exists(json, 'object_field') ? undefined : json['object_field'],
71
64
  };
72
65
  }
73
66
 
@@ -83,7 +76,6 @@ export function PatchedLDAPPropertyMappingRequestToJSON(value?: PatchedLDAPPrope
83
76
  'managed': value.managed,
84
77
  'name': value.name,
85
78
  'expression': value.expression,
86
- 'object_field': value.objectField,
87
79
  };
88
80
  }
89
81
 
@@ -62,6 +62,18 @@ export interface PatchedLDAPSourceRequest {
62
62
  * @memberof PatchedLDAPSourceRequest
63
63
  */
64
64
  enrollmentFlow?: string | null;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof PatchedLDAPSourceRequest
69
+ */
70
+ userPropertyMappings?: Array<string>;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof PatchedLDAPSourceRequest
75
+ */
76
+ groupPropertyMappings?: Array<string>;
65
77
  /**
66
78
  *
67
79
  * @type {PolicyEngineMode}
@@ -194,18 +206,6 @@ export interface PatchedLDAPSourceRequest {
194
206
  * @memberof PatchedLDAPSourceRequest
195
207
  */
196
208
  syncParentGroup?: string | null;
197
- /**
198
- *
199
- * @type {Array<string>}
200
- * @memberof PatchedLDAPSourceRequest
201
- */
202
- propertyMappings?: Array<string>;
203
- /**
204
- * Property mappings used for group creation/updating.
205
- * @type {Array<string>}
206
- * @memberof PatchedLDAPSourceRequest
207
- */
208
- propertyMappingsGroup?: Array<string>;
209
209
  }
210
210
 
211
211
  /**
@@ -232,6 +232,8 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
232
232
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
233
233
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
234
234
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
235
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
236
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
235
237
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
236
238
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
237
239
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -254,8 +256,6 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
254
256
  'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
255
257
  'syncGroups': !exists(json, 'sync_groups') ? undefined : json['sync_groups'],
256
258
  'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
257
- 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
258
- 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
259
259
  };
260
260
  }
261
261
 
@@ -273,6 +273,8 @@ export function PatchedLDAPSourceRequestToJSON(value?: PatchedLDAPSourceRequest
273
273
  'enabled': value.enabled,
274
274
  'authentication_flow': value.authenticationFlow,
275
275
  'enrollment_flow': value.enrollmentFlow,
276
+ 'user_property_mappings': value.userPropertyMappings,
277
+ 'group_property_mappings': value.groupPropertyMappings,
276
278
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
277
279
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
278
280
  'user_path_template': value.userPathTemplate,
@@ -295,8 +297,6 @@ export function PatchedLDAPSourceRequestToJSON(value?: PatchedLDAPSourceRequest
295
297
  'sync_users_password': value.syncUsersPassword,
296
298
  'sync_groups': value.syncGroups,
297
299
  'sync_parent_group': value.syncParentGroup,
298
- 'property_mappings': value.propertyMappings,
299
- 'property_mappings_group': value.propertyMappingsGroup,
300
300
  };
301
301
  }
302
302
 
@@ -68,6 +68,18 @@ export interface PatchedOAuthSourceRequest {
68
68
  * @memberof PatchedOAuthSourceRequest
69
69
  */
70
70
  enrollmentFlow?: string | null;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof PatchedOAuthSourceRequest
75
+ */
76
+ userPropertyMappings?: Array<string>;
77
+ /**
78
+ *
79
+ * @type {Array<string>}
80
+ * @memberof PatchedOAuthSourceRequest
81
+ */
82
+ groupPropertyMappings?: Array<string>;
71
83
  /**
72
84
  *
73
85
  * @type {PolicyEngineMode}
@@ -178,6 +190,8 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json: any, ignoreDiscrimi
178
190
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
179
191
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
180
192
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
193
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
194
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
181
195
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
182
196
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
183
197
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -209,6 +223,8 @@ export function PatchedOAuthSourceRequestToJSON(value?: PatchedOAuthSourceReques
209
223
  'enabled': value.enabled,
210
224
  'authentication_flow': value.authenticationFlow,
211
225
  'enrollment_flow': value.enrollmentFlow,
226
+ 'user_property_mappings': value.userPropertyMappings,
227
+ 'group_property_mappings': value.groupPropertyMappings,
212
228
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
213
229
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
214
230
  'user_path_template': value.userPathTemplate,
@@ -62,6 +62,18 @@ export interface PatchedPlexSourceRequest {
62
62
  * @memberof PatchedPlexSourceRequest
63
63
  */
64
64
  enrollmentFlow?: string | null;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof PatchedPlexSourceRequest
69
+ */
70
+ userPropertyMappings?: Array<string>;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof PatchedPlexSourceRequest
75
+ */
76
+ groupPropertyMappings?: Array<string>;
65
77
  /**
66
78
  *
67
79
  * @type {PolicyEngineMode}
@@ -130,6 +142,8 @@ export function PatchedPlexSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
130
142
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
131
143
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
132
144
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
145
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
146
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
133
147
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
134
148
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
135
149
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -154,6 +168,8 @@ export function PatchedPlexSourceRequestToJSON(value?: PatchedPlexSourceRequest
154
168
  'enabled': value.enabled,
155
169
  'authentication_flow': value.authenticationFlow,
156
170
  'enrollment_flow': value.enrollmentFlow,
171
+ 'user_property_mappings': value.userPropertyMappings,
172
+ 'group_property_mappings': value.groupPropertyMappings,
157
173
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
158
174
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
159
175
  'user_path_template': value.userPathTemplate,
@@ -86,6 +86,18 @@ export interface PatchedSAMLSourceRequest {
86
86
  * @memberof PatchedSAMLSourceRequest
87
87
  */
88
88
  enrollmentFlow?: string | null;
89
+ /**
90
+ *
91
+ * @type {Array<string>}
92
+ * @memberof PatchedSAMLSourceRequest
93
+ */
94
+ userPropertyMappings?: Array<string>;
95
+ /**
96
+ *
97
+ * @type {Array<string>}
98
+ * @memberof PatchedSAMLSourceRequest
99
+ */
100
+ groupPropertyMappings?: Array<string>;
89
101
  /**
90
102
  *
91
103
  * @type {PolicyEngineMode}
@@ -202,6 +214,8 @@ export function PatchedSAMLSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
202
214
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
203
215
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
204
216
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
217
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
218
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
205
219
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
206
220
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
207
221
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -234,6 +248,8 @@ export function PatchedSAMLSourceRequestToJSON(value?: PatchedSAMLSourceRequest
234
248
  'enabled': value.enabled,
235
249
  'authentication_flow': value.authenticationFlow,
236
250
  'enrollment_flow': value.enrollmentFlow,
251
+ 'user_property_mappings': value.userPropertyMappings,
252
+ 'group_property_mappings': value.groupPropertyMappings,
237
253
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
238
254
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
239
255
  'user_path_template': value.userPathTemplate,