@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
@@ -42,7 +42,6 @@ export interface PropertymappingsLdapListRequest {
42
42
  expression?: string;
43
43
  managed?: Array<string>;
44
44
  name?: string;
45
- objectField?: string;
46
45
  ordering?: string;
47
46
  page?: number;
48
47
  pageSize?: number;
@@ -338,9 +338,6 @@ class PropertymappingsApi extends runtime.BaseAPI {
338
338
  if (requestParameters.name !== undefined) {
339
339
  queryParameters['name'] = requestParameters.name;
340
340
  }
341
- if (requestParameters.objectField !== undefined) {
342
- queryParameters['object_field'] = requestParameters.objectField;
343
- }
344
341
  if (requestParameters.ordering !== undefined) {
345
342
  queryParameters['ordering'] = requestParameters.ordering;
346
343
  }
@@ -56,6 +56,7 @@ export interface SourcesLdapListRequest {
56
56
  enabled?: boolean;
57
57
  groupMembershipField?: string;
58
58
  groupObjectFilter?: string;
59
+ groupPropertyMappings?: Array<string>;
59
60
  name?: string;
60
61
  objectUniquenessField?: string;
61
62
  ordering?: string;
@@ -63,8 +64,6 @@ export interface SourcesLdapListRequest {
63
64
  pageSize?: number;
64
65
  passwordLoginUpdateInternalPassword?: boolean;
65
66
  peerCertificate?: string;
66
- propertyMappings?: Array<string>;
67
- propertyMappingsGroup?: Array<string>;
68
67
  search?: string;
69
68
  serverUri?: string;
70
69
  slug?: string;
@@ -75,6 +74,7 @@ export interface SourcesLdapListRequest {
75
74
  syncUsers?: boolean;
76
75
  syncUsersPassword?: boolean;
77
76
  userObjectFilter?: string;
77
+ userPropertyMappings?: Array<string>;
78
78
  }
79
79
  export interface SourcesLdapPartialUpdateRequest {
80
80
  slug: string;
@@ -481,6 +481,9 @@ class SourcesApi extends runtime.BaseAPI {
481
481
  if (requestParameters.groupObjectFilter !== undefined) {
482
482
  queryParameters['group_object_filter'] = requestParameters.groupObjectFilter;
483
483
  }
484
+ if (requestParameters.groupPropertyMappings) {
485
+ queryParameters['group_property_mappings'] = requestParameters.groupPropertyMappings;
486
+ }
484
487
  if (requestParameters.name !== undefined) {
485
488
  queryParameters['name'] = requestParameters.name;
486
489
  }
@@ -502,12 +505,6 @@ class SourcesApi extends runtime.BaseAPI {
502
505
  if (requestParameters.peerCertificate !== undefined) {
503
506
  queryParameters['peer_certificate'] = requestParameters.peerCertificate;
504
507
  }
505
- if (requestParameters.propertyMappings) {
506
- queryParameters['property_mappings'] = requestParameters.propertyMappings;
507
- }
508
- if (requestParameters.propertyMappingsGroup) {
509
- queryParameters['property_mappings_group'] = requestParameters.propertyMappingsGroup;
510
- }
511
508
  if (requestParameters.search !== undefined) {
512
509
  queryParameters['search'] = requestParameters.search;
513
510
  }
@@ -538,6 +535,9 @@ class SourcesApi extends runtime.BaseAPI {
538
535
  if (requestParameters.userObjectFilter !== undefined) {
539
536
  queryParameters['user_object_filter'] = requestParameters.userObjectFilter;
540
537
  }
538
+ if (requestParameters.userPropertyMappings) {
539
+ queryParameters['user_property_mappings'] = requestParameters.userPropertyMappings;
540
+ }
541
541
  const headerParameters = {};
542
542
  if (this.configuration && this.configuration.accessToken) {
543
543
  const token = this.configuration.accessToken;
@@ -42,7 +42,6 @@ export interface PropertymappingsLdapListRequest {
42
42
  expression?: string;
43
43
  managed?: Array<string>;
44
44
  name?: string;
45
- objectField?: string;
46
45
  ordering?: string;
47
46
  page?: number;
48
47
  pageSize?: number;
@@ -335,9 +335,6 @@ export class PropertymappingsApi extends runtime.BaseAPI {
335
335
  if (requestParameters.name !== undefined) {
336
336
  queryParameters['name'] = requestParameters.name;
337
337
  }
338
- if (requestParameters.objectField !== undefined) {
339
- queryParameters['object_field'] = requestParameters.objectField;
340
- }
341
338
  if (requestParameters.ordering !== undefined) {
342
339
  queryParameters['ordering'] = requestParameters.ordering;
343
340
  }
@@ -56,6 +56,7 @@ export interface SourcesLdapListRequest {
56
56
  enabled?: boolean;
57
57
  groupMembershipField?: string;
58
58
  groupObjectFilter?: string;
59
+ groupPropertyMappings?: Array<string>;
59
60
  name?: string;
60
61
  objectUniquenessField?: string;
61
62
  ordering?: string;
@@ -63,8 +64,6 @@ export interface SourcesLdapListRequest {
63
64
  pageSize?: number;
64
65
  passwordLoginUpdateInternalPassword?: boolean;
65
66
  peerCertificate?: string;
66
- propertyMappings?: Array<string>;
67
- propertyMappingsGroup?: Array<string>;
68
67
  search?: string;
69
68
  serverUri?: string;
70
69
  slug?: string;
@@ -75,6 +74,7 @@ export interface SourcesLdapListRequest {
75
74
  syncUsers?: boolean;
76
75
  syncUsersPassword?: boolean;
77
76
  userObjectFilter?: string;
77
+ userPropertyMappings?: Array<string>;
78
78
  }
79
79
  export interface SourcesLdapPartialUpdateRequest {
80
80
  slug: string;
@@ -478,6 +478,9 @@ export class SourcesApi extends runtime.BaseAPI {
478
478
  if (requestParameters.groupObjectFilter !== undefined) {
479
479
  queryParameters['group_object_filter'] = requestParameters.groupObjectFilter;
480
480
  }
481
+ if (requestParameters.groupPropertyMappings) {
482
+ queryParameters['group_property_mappings'] = requestParameters.groupPropertyMappings;
483
+ }
481
484
  if (requestParameters.name !== undefined) {
482
485
  queryParameters['name'] = requestParameters.name;
483
486
  }
@@ -499,12 +502,6 @@ export class SourcesApi extends runtime.BaseAPI {
499
502
  if (requestParameters.peerCertificate !== undefined) {
500
503
  queryParameters['peer_certificate'] = requestParameters.peerCertificate;
501
504
  }
502
- if (requestParameters.propertyMappings) {
503
- queryParameters['property_mappings'] = requestParameters.propertyMappings;
504
- }
505
- if (requestParameters.propertyMappingsGroup) {
506
- queryParameters['property_mappings_group'] = requestParameters.propertyMappingsGroup;
507
- }
508
505
  if (requestParameters.search !== undefined) {
509
506
  queryParameters['search'] = requestParameters.search;
510
507
  }
@@ -535,6 +532,9 @@ export class SourcesApi extends runtime.BaseAPI {
535
532
  if (requestParameters.userObjectFilter !== undefined) {
536
533
  queryParameters['user_object_filter'] = requestParameters.userObjectFilter;
537
534
  }
535
+ if (requestParameters.userPropertyMappings) {
536
+ queryParameters['user_property_mappings'] = requestParameters.userPropertyMappings;
537
+ }
538
538
  const headerParameters = {};
539
539
  if (this.configuration && this.configuration.accessToken) {
540
540
  const token = this.configuration.accessToken;
@@ -87,6 +87,12 @@ export interface Brand {
87
87
  * @memberof Brand
88
88
  */
89
89
  flowDeviceCode?: string | null;
90
+ /**
91
+ * When set, external users will be redirected to this application after authenticating.
92
+ * @type {string}
93
+ * @memberof Brand
94
+ */
95
+ defaultApplication?: string | null;
90
96
  /**
91
97
  * Web Certificate used by the authentik Core webserver.
92
98
  * @type {string}
@@ -41,6 +41,7 @@ export function BrandFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
42
42
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
43
43
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
44
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
44
45
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
45
46
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
46
47
  };
@@ -64,6 +65,7 @@ export function BrandToJSON(value) {
64
65
  'flow_unenrollment': value.flowUnenrollment,
65
66
  'flow_user_settings': value.flowUserSettings,
66
67
  'flow_device_code': value.flowDeviceCode,
68
+ 'default_application': value.defaultApplication,
67
69
  'web_certificate': value.webCertificate,
68
70
  'attributes': value.attributes,
69
71
  };
@@ -81,6 +81,12 @@ export interface BrandRequest {
81
81
  * @memberof BrandRequest
82
82
  */
83
83
  flowDeviceCode?: string | null;
84
+ /**
85
+ * When set, external users will be redirected to this application after authenticating.
86
+ * @type {string}
87
+ * @memberof BrandRequest
88
+ */
89
+ defaultApplication?: string | null;
84
90
  /**
85
91
  * Web Certificate used by the authentik Core webserver.
86
92
  * @type {string}
@@ -39,6 +39,7 @@ export function BrandRequestFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
40
40
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
41
41
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
42
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
42
43
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
43
44
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
44
45
  };
@@ -62,6 +63,7 @@ export function BrandRequestToJSON(value) {
62
63
  'flow_unenrollment': value.flowUnenrollment,
63
64
  'flow_user_settings': value.flowUserSettings,
64
65
  'flow_device_code': value.flowDeviceCode,
66
+ 'default_application': value.defaultApplication,
65
67
  'web_certificate': value.webCertificate,
66
68
  'attributes': value.attributes,
67
69
  };
@@ -63,12 +63,6 @@ export interface LDAPPropertyMapping {
63
63
  * @memberof LDAPPropertyMapping
64
64
  */
65
65
  readonly metaModelName: string;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof LDAPPropertyMapping
70
- */
71
- objectField: string;
72
66
  }
73
67
  /**
74
68
  * Check if a given object implements the LDAPPropertyMapping interface.
@@ -24,7 +24,6 @@ export function instanceOfLDAPPropertyMapping(value) {
24
24
  isInstance = isInstance && "verboseName" in value;
25
25
  isInstance = isInstance && "verboseNamePlural" in value;
26
26
  isInstance = isInstance && "metaModelName" in value;
27
- isInstance = isInstance && "objectField" in value;
28
27
  return isInstance;
29
28
  }
30
29
  export function LDAPPropertyMappingFromJSON(json) {
@@ -43,7 +42,6 @@ export function LDAPPropertyMappingFromJSONTyped(json, ignoreDiscriminator) {
43
42
  'verboseName': json['verbose_name'],
44
43
  'verboseNamePlural': json['verbose_name_plural'],
45
44
  'metaModelName': json['meta_model_name'],
46
- 'objectField': json['object_field'],
47
45
  };
48
46
  }
49
47
  export function LDAPPropertyMappingToJSON(value) {
@@ -57,6 +55,5 @@ export function LDAPPropertyMappingToJSON(value) {
57
55
  'managed': value.managed,
58
56
  'name': value.name,
59
57
  'expression': value.expression,
60
- 'object_field': value.objectField,
61
58
  };
62
59
  }
@@ -33,12 +33,6 @@ export interface LDAPPropertyMappingRequest {
33
33
  * @memberof LDAPPropertyMappingRequest
34
34
  */
35
35
  expression: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof LDAPPropertyMappingRequest
40
- */
41
- objectField: string;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the LDAPPropertyMappingRequest interface.
@@ -19,7 +19,6 @@ export function instanceOfLDAPPropertyMappingRequest(value) {
19
19
  let isInstance = true;
20
20
  isInstance = isInstance && "name" in value;
21
21
  isInstance = isInstance && "expression" in value;
22
- isInstance = isInstance && "objectField" in value;
23
22
  return isInstance;
24
23
  }
25
24
  export function LDAPPropertyMappingRequestFromJSON(json) {
@@ -33,7 +32,6 @@ export function LDAPPropertyMappingRequestFromJSONTyped(json, ignoreDiscriminato
33
32
  'managed': !exists(json, 'managed') ? undefined : json['managed'],
34
33
  'name': json['name'],
35
34
  'expression': json['expression'],
36
- 'objectField': json['object_field'],
37
35
  };
38
36
  }
39
37
  export function LDAPPropertyMappingRequestToJSON(value) {
@@ -47,6 +45,5 @@ export function LDAPPropertyMappingRequestToJSON(value) {
47
45
  'managed': value.managed,
48
46
  'name': value.name,
49
47
  'expression': value.expression,
50
- 'object_field': value.objectField,
51
48
  };
52
49
  }
@@ -53,6 +53,18 @@ export interface LDAPSource {
53
53
  * @memberof LDAPSource
54
54
  */
55
55
  enrollmentFlow?: string | null;
56
+ /**
57
+ *
58
+ * @type {Array<string>}
59
+ * @memberof LDAPSource
60
+ */
61
+ userPropertyMappings?: Array<string>;
62
+ /**
63
+ *
64
+ * @type {Array<string>}
65
+ * @memberof LDAPSource
66
+ */
67
+ groupPropertyMappings?: Array<string>;
56
68
  /**
57
69
  * Get object component so that we know how to edit the object
58
70
  * @type {string}
@@ -215,18 +227,6 @@ export interface LDAPSource {
215
227
  * @memberof LDAPSource
216
228
  */
217
229
  syncParentGroup?: string | null;
218
- /**
219
- *
220
- * @type {Array<string>}
221
- * @memberof LDAPSource
222
- */
223
- propertyMappings?: Array<string>;
224
- /**
225
- * Property mappings used for group creation/updating.
226
- * @type {Array<string>}
227
- * @memberof LDAPSource
228
- */
229
- propertyMappingsGroup?: Array<string>;
230
230
  /**
231
231
  * Get cached source connectivity
232
232
  * @type {{ [key: string]: { [key: string]: string; }; }}
@@ -47,6 +47,8 @@ export function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
48
48
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
49
49
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
50
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
51
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
50
52
  'component': json['component'],
51
53
  'verboseName': json['verbose_name'],
52
54
  'verboseNamePlural': json['verbose_name_plural'],
@@ -74,8 +76,6 @@ export function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
74
76
  'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
75
77
  'syncGroups': !exists(json, 'sync_groups') ? undefined : json['sync_groups'],
76
78
  'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
77
- 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
78
- 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
79
79
  'connectivity': json['connectivity'],
80
80
  };
81
81
  }
@@ -92,6 +92,8 @@ export function LDAPSourceToJSON(value) {
92
92
  'enabled': value.enabled,
93
93
  'authentication_flow': value.authenticationFlow,
94
94
  'enrollment_flow': value.enrollmentFlow,
95
+ 'user_property_mappings': value.userPropertyMappings,
96
+ 'group_property_mappings': value.groupPropertyMappings,
95
97
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
96
98
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
97
99
  'user_path_template': value.userPathTemplate,
@@ -113,7 +115,5 @@ export function LDAPSourceToJSON(value) {
113
115
  'sync_users_password': value.syncUsersPassword,
114
116
  'sync_groups': value.syncGroups,
115
117
  'sync_parent_group': value.syncParentGroup,
116
- 'property_mappings': value.propertyMappings,
117
- 'property_mappings_group': value.propertyMappingsGroup,
118
118
  };
119
119
  }
@@ -47,6 +47,18 @@ export interface LDAPSourceRequest {
47
47
  * @memberof LDAPSourceRequest
48
48
  */
49
49
  enrollmentFlow?: string | null;
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof LDAPSourceRequest
54
+ */
55
+ userPropertyMappings?: Array<string>;
56
+ /**
57
+ *
58
+ * @type {Array<string>}
59
+ * @memberof LDAPSourceRequest
60
+ */
61
+ groupPropertyMappings?: Array<string>;
50
62
  /**
51
63
  *
52
64
  * @type {PolicyEngineMode}
@@ -179,18 +191,6 @@ export interface LDAPSourceRequest {
179
191
  * @memberof LDAPSourceRequest
180
192
  */
181
193
  syncParentGroup?: string | null;
182
- /**
183
- *
184
- * @type {Array<string>}
185
- * @memberof LDAPSourceRequest
186
- */
187
- propertyMappings?: Array<string>;
188
- /**
189
- * Property mappings used for group creation/updating.
190
- * @type {Array<string>}
191
- * @memberof LDAPSourceRequest
192
- */
193
- propertyMappingsGroup?: Array<string>;
194
194
  }
195
195
  /**
196
196
  * Check if a given object implements the LDAPSourceRequest interface.
@@ -38,6 +38,8 @@ export function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
39
39
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
40
40
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
41
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
42
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
41
43
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
42
44
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
43
45
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -60,8 +62,6 @@ export function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
60
62
  'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
61
63
  'syncGroups': !exists(json, 'sync_groups') ? undefined : json['sync_groups'],
62
64
  'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
63
- 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
64
- 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
65
65
  };
66
66
  }
67
67
  export function LDAPSourceRequestToJSON(value) {
@@ -77,6 +77,8 @@ export function LDAPSourceRequestToJSON(value) {
77
77
  'enabled': value.enabled,
78
78
  'authentication_flow': value.authenticationFlow,
79
79
  'enrollment_flow': value.enrollmentFlow,
80
+ 'user_property_mappings': value.userPropertyMappings,
81
+ 'group_property_mappings': value.groupPropertyMappings,
80
82
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
81
83
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
82
84
  'user_path_template': value.userPathTemplate,
@@ -99,7 +101,5 @@ export function LDAPSourceRequestToJSON(value) {
99
101
  'sync_users_password': value.syncUsersPassword,
100
102
  'sync_groups': value.syncGroups,
101
103
  'sync_parent_group': value.syncParentGroup,
102
- 'property_mappings': value.propertyMappings,
103
- 'property_mappings_group': value.propertyMappingsGroup,
104
104
  };
105
105
  }
@@ -55,6 +55,18 @@ export interface OAuthSource {
55
55
  * @memberof OAuthSource
56
56
  */
57
57
  enrollmentFlow?: string | null;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof OAuthSource
62
+ */
63
+ userPropertyMappings?: Array<string>;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof OAuthSource
68
+ */
69
+ groupPropertyMappings?: Array<string>;
58
70
  /**
59
71
  * Get object component so that we know how to edit the object
60
72
  * @type {string}
@@ -50,6 +50,8 @@ export function OAuthSourceFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
51
51
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
52
52
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
53
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
54
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
53
55
  'component': json['component'],
54
56
  'verboseName': json['verbose_name'],
55
57
  'verboseNamePlural': json['verbose_name_plural'],
@@ -86,6 +88,8 @@ export function OAuthSourceToJSON(value) {
86
88
  'enabled': value.enabled,
87
89
  'authentication_flow': value.authenticationFlow,
88
90
  'enrollment_flow': value.enrollmentFlow,
91
+ 'user_property_mappings': value.userPropertyMappings,
92
+ 'group_property_mappings': value.groupPropertyMappings,
89
93
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
90
94
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
91
95
  'user_path_template': value.userPathTemplate,
@@ -48,6 +48,18 @@ export interface OAuthSourceRequest {
48
48
  * @memberof OAuthSourceRequest
49
49
  */
50
50
  enrollmentFlow?: string | null;
51
+ /**
52
+ *
53
+ * @type {Array<string>}
54
+ * @memberof OAuthSourceRequest
55
+ */
56
+ userPropertyMappings?: Array<string>;
57
+ /**
58
+ *
59
+ * @type {Array<string>}
60
+ * @memberof OAuthSourceRequest
61
+ */
62
+ groupPropertyMappings?: Array<string>;
51
63
  /**
52
64
  *
53
65
  * @type {PolicyEngineMode}
@@ -40,6 +40,8 @@ export function OAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
41
41
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
42
42
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
43
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
44
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
43
45
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
44
46
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
45
47
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -69,6 +71,8 @@ export function OAuthSourceRequestToJSON(value) {
69
71
  'enabled': value.enabled,
70
72
  'authentication_flow': value.authenticationFlow,
71
73
  'enrollment_flow': value.enrollmentFlow,
74
+ 'user_property_mappings': value.userPropertyMappings,
75
+ 'group_property_mappings': value.groupPropertyMappings,
72
76
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
73
77
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
74
78
  'user_path_template': value.userPathTemplate,
@@ -81,6 +81,12 @@ export interface PatchedBrandRequest {
81
81
  * @memberof PatchedBrandRequest
82
82
  */
83
83
  flowDeviceCode?: string | null;
84
+ /**
85
+ * When set, external users will be redirected to this application after authenticating.
86
+ * @type {string}
87
+ * @memberof PatchedBrandRequest
88
+ */
89
+ defaultApplication?: string | null;
84
90
  /**
85
91
  * Web Certificate used by the authentik Core webserver.
86
92
  * @type {string}
@@ -38,6 +38,7 @@ export function PatchedBrandRequestFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
39
39
  'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
40
40
  'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
41
+ 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
41
42
  'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
42
43
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
43
44
  };
@@ -61,6 +62,7 @@ export function PatchedBrandRequestToJSON(value) {
61
62
  'flow_unenrollment': value.flowUnenrollment,
62
63
  'flow_user_settings': value.flowUserSettings,
63
64
  'flow_device_code': value.flowDeviceCode,
65
+ 'default_application': value.defaultApplication,
64
66
  'web_certificate': value.webCertificate,
65
67
  'attributes': value.attributes,
66
68
  };
@@ -33,12 +33,6 @@ export interface PatchedLDAPPropertyMappingRequest {
33
33
  * @memberof PatchedLDAPPropertyMappingRequest
34
34
  */
35
35
  expression?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof PatchedLDAPPropertyMappingRequest
40
- */
41
- objectField?: string;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the PatchedLDAPPropertyMappingRequest interface.
@@ -30,7 +30,6 @@ export function PatchedLDAPPropertyMappingRequestFromJSONTyped(json, ignoreDiscr
30
30
  'managed': !exists(json, 'managed') ? undefined : json['managed'],
31
31
  'name': !exists(json, 'name') ? undefined : json['name'],
32
32
  'expression': !exists(json, 'expression') ? undefined : json['expression'],
33
- 'objectField': !exists(json, 'object_field') ? undefined : json['object_field'],
34
33
  };
35
34
  }
36
35
  export function PatchedLDAPPropertyMappingRequestToJSON(value) {
@@ -44,6 +43,5 @@ export function PatchedLDAPPropertyMappingRequestToJSON(value) {
44
43
  'managed': value.managed,
45
44
  'name': value.name,
46
45
  'expression': value.expression,
47
- 'object_field': value.objectField,
48
46
  };
49
47
  }
@@ -47,6 +47,18 @@ export interface PatchedLDAPSourceRequest {
47
47
  * @memberof PatchedLDAPSourceRequest
48
48
  */
49
49
  enrollmentFlow?: string | null;
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof PatchedLDAPSourceRequest
54
+ */
55
+ userPropertyMappings?: Array<string>;
56
+ /**
57
+ *
58
+ * @type {Array<string>}
59
+ * @memberof PatchedLDAPSourceRequest
60
+ */
61
+ groupPropertyMappings?: Array<string>;
50
62
  /**
51
63
  *
52
64
  * @type {PolicyEngineMode}
@@ -179,18 +191,6 @@ export interface PatchedLDAPSourceRequest {
179
191
  * @memberof PatchedLDAPSourceRequest
180
192
  */
181
193
  syncParentGroup?: string | null;
182
- /**
183
- *
184
- * @type {Array<string>}
185
- * @memberof PatchedLDAPSourceRequest
186
- */
187
- propertyMappings?: Array<string>;
188
- /**
189
- * Property mappings used for group creation/updating.
190
- * @type {Array<string>}
191
- * @memberof PatchedLDAPSourceRequest
192
- */
193
- propertyMappingsGroup?: Array<string>;
194
194
  }
195
195
  /**
196
196
  * Check if a given object implements the PatchedLDAPSourceRequest interface.
@@ -34,6 +34,8 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator)
34
34
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
35
35
  'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
36
36
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
37
+ 'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
38
+ 'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
37
39
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
38
40
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
39
41
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
@@ -56,8 +58,6 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator)
56
58
  'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
57
59
  'syncGroups': !exists(json, 'sync_groups') ? undefined : json['sync_groups'],
58
60
  'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
59
- 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
60
- 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
61
61
  };
62
62
  }
63
63
  export function PatchedLDAPSourceRequestToJSON(value) {
@@ -73,6 +73,8 @@ export function PatchedLDAPSourceRequestToJSON(value) {
73
73
  'enabled': value.enabled,
74
74
  'authentication_flow': value.authenticationFlow,
75
75
  'enrollment_flow': value.enrollmentFlow,
76
+ 'user_property_mappings': value.userPropertyMappings,
77
+ 'group_property_mappings': value.groupPropertyMappings,
76
78
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
77
79
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
78
80
  'user_path_template': value.userPathTemplate,
@@ -95,7 +97,5 @@ export function PatchedLDAPSourceRequestToJSON(value) {
95
97
  'sync_users_password': value.syncUsersPassword,
96
98
  'sync_groups': value.syncGroups,
97
99
  'sync_parent_group': value.syncParentGroup,
98
- 'property_mappings': value.propertyMappings,
99
- 'property_mappings_group': value.propertyMappingsGroup,
100
100
  };
101
101
  }