@goauthentik/api 2021.10.4-1638386397 → 2021.10.4-1638522576

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,11 +35,9 @@ export interface SourcesLdapDestroyRequest {
35
35
  export interface SourcesLdapListRequest {
36
36
  additionalGroupDn?: string;
37
37
  additionalUserDn?: string;
38
- authenticationFlow?: string;
39
38
  baseDn?: string;
40
39
  bindCn?: string;
41
40
  enabled?: boolean;
42
- enrollmentFlow?: string;
43
41
  groupMembershipField?: string;
44
42
  groupObjectFilter?: string;
45
43
  name?: string;
@@ -47,7 +45,7 @@ export interface SourcesLdapListRequest {
47
45
  ordering?: string;
48
46
  page?: number;
49
47
  pageSize?: number;
50
- policyEngineMode?: SourcesLdapListPolicyEngineModeEnum;
48
+ peerCertificate?: string;
51
49
  propertyMappings?: Array<string>;
52
50
  propertyMappingsGroup?: Array<string>;
53
51
  search?: string;
@@ -743,14 +741,6 @@ export declare class SourcesApi extends runtime.BaseAPI {
743
741
  */
744
742
  sourcesUserConnectionsPlexUsedByList(requestParameters: SourcesUserConnectionsPlexUsedByListRequest, initOverrides?: RequestInit): Promise<Array<UsedBy>>;
745
743
  }
746
- /**
747
- * @export
748
- * @enum {string}
749
- */
750
- export declare enum SourcesLdapListPolicyEngineModeEnum {
751
- All = "all",
752
- Any = "any"
753
- }
754
744
  /**
755
745
  * @export
756
746
  * @enum {string}
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.SourcesSamlListUserMatchingModeEnum = exports.SourcesSamlListSignatureAlgorithmEnum = exports.SourcesSamlListPolicyEngineModeEnum = exports.SourcesSamlListNameIdPolicyEnum = exports.SourcesSamlListDigestAlgorithmEnum = exports.SourcesSamlListBindingTypeEnum = exports.SourcesPlexListUserMatchingModeEnum = exports.SourcesPlexListPolicyEngineModeEnum = exports.SourcesOauthListUserMatchingModeEnum = exports.SourcesOauthListPolicyEngineModeEnum = exports.SourcesLdapListPolicyEngineModeEnum = exports.SourcesApi = void 0;
25
+ exports.SourcesSamlListUserMatchingModeEnum = exports.SourcesSamlListSignatureAlgorithmEnum = exports.SourcesSamlListPolicyEngineModeEnum = exports.SourcesSamlListNameIdPolicyEnum = exports.SourcesSamlListDigestAlgorithmEnum = exports.SourcesSamlListBindingTypeEnum = exports.SourcesPlexListUserMatchingModeEnum = exports.SourcesPlexListPolicyEngineModeEnum = exports.SourcesOauthListUserMatchingModeEnum = exports.SourcesOauthListPolicyEngineModeEnum = exports.SourcesApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const models_1 = require("../models");
28
28
  /**
@@ -292,9 +292,6 @@ class SourcesApi extends runtime.BaseAPI {
292
292
  if (requestParameters.additionalUserDn !== undefined) {
293
293
  queryParameters['additional_user_dn'] = requestParameters.additionalUserDn;
294
294
  }
295
- if (requestParameters.authenticationFlow !== undefined) {
296
- queryParameters['authentication_flow'] = requestParameters.authenticationFlow;
297
- }
298
295
  if (requestParameters.baseDn !== undefined) {
299
296
  queryParameters['base_dn'] = requestParameters.baseDn;
300
297
  }
@@ -304,9 +301,6 @@ class SourcesApi extends runtime.BaseAPI {
304
301
  if (requestParameters.enabled !== undefined) {
305
302
  queryParameters['enabled'] = requestParameters.enabled;
306
303
  }
307
- if (requestParameters.enrollmentFlow !== undefined) {
308
- queryParameters['enrollment_flow'] = requestParameters.enrollmentFlow;
309
- }
310
304
  if (requestParameters.groupMembershipField !== undefined) {
311
305
  queryParameters['group_membership_field'] = requestParameters.groupMembershipField;
312
306
  }
@@ -328,8 +322,8 @@ class SourcesApi extends runtime.BaseAPI {
328
322
  if (requestParameters.pageSize !== undefined) {
329
323
  queryParameters['page_size'] = requestParameters.pageSize;
330
324
  }
331
- if (requestParameters.policyEngineMode !== undefined) {
332
- queryParameters['policy_engine_mode'] = requestParameters.policyEngineMode;
325
+ if (requestParameters.peerCertificate !== undefined) {
326
+ queryParameters['peer_certificate'] = requestParameters.peerCertificate;
333
327
  }
334
328
  if (requestParameters.propertyMappings) {
335
329
  queryParameters['property_mappings'] = requestParameters.propertyMappings;
@@ -2119,15 +2113,6 @@ class SourcesApi extends runtime.BaseAPI {
2119
2113
  }
2120
2114
  }
2121
2115
  exports.SourcesApi = SourcesApi;
2122
- /**
2123
- * @export
2124
- * @enum {string}
2125
- */
2126
- var SourcesLdapListPolicyEngineModeEnum;
2127
- (function (SourcesLdapListPolicyEngineModeEnum) {
2128
- SourcesLdapListPolicyEngineModeEnum["All"] = "all";
2129
- SourcesLdapListPolicyEngineModeEnum["Any"] = "any";
2130
- })(SourcesLdapListPolicyEngineModeEnum = exports.SourcesLdapListPolicyEngineModeEnum || (exports.SourcesLdapListPolicyEngineModeEnum = {}));
2131
2116
  /**
2132
2117
  * @export
2133
2118
  * @enum {string}
@@ -35,11 +35,9 @@ export interface SourcesLdapDestroyRequest {
35
35
  export interface SourcesLdapListRequest {
36
36
  additionalGroupDn?: string;
37
37
  additionalUserDn?: string;
38
- authenticationFlow?: string;
39
38
  baseDn?: string;
40
39
  bindCn?: string;
41
40
  enabled?: boolean;
42
- enrollmentFlow?: string;
43
41
  groupMembershipField?: string;
44
42
  groupObjectFilter?: string;
45
43
  name?: string;
@@ -47,7 +45,7 @@ export interface SourcesLdapListRequest {
47
45
  ordering?: string;
48
46
  page?: number;
49
47
  pageSize?: number;
50
- policyEngineMode?: SourcesLdapListPolicyEngineModeEnum;
48
+ peerCertificate?: string;
51
49
  propertyMappings?: Array<string>;
52
50
  propertyMappingsGroup?: Array<string>;
53
51
  search?: string;
@@ -743,14 +741,6 @@ export declare class SourcesApi extends runtime.BaseAPI {
743
741
  */
744
742
  sourcesUserConnectionsPlexUsedByList(requestParameters: SourcesUserConnectionsPlexUsedByListRequest, initOverrides?: RequestInit): Promise<Array<UsedBy>>;
745
743
  }
746
- /**
747
- * @export
748
- * @enum {string}
749
- */
750
- export declare enum SourcesLdapListPolicyEngineModeEnum {
751
- All = "all",
752
- Any = "any"
753
- }
754
744
  /**
755
745
  * @export
756
746
  * @enum {string}
@@ -289,9 +289,6 @@ export class SourcesApi extends runtime.BaseAPI {
289
289
  if (requestParameters.additionalUserDn !== undefined) {
290
290
  queryParameters['additional_user_dn'] = requestParameters.additionalUserDn;
291
291
  }
292
- if (requestParameters.authenticationFlow !== undefined) {
293
- queryParameters['authentication_flow'] = requestParameters.authenticationFlow;
294
- }
295
292
  if (requestParameters.baseDn !== undefined) {
296
293
  queryParameters['base_dn'] = requestParameters.baseDn;
297
294
  }
@@ -301,9 +298,6 @@ export class SourcesApi extends runtime.BaseAPI {
301
298
  if (requestParameters.enabled !== undefined) {
302
299
  queryParameters['enabled'] = requestParameters.enabled;
303
300
  }
304
- if (requestParameters.enrollmentFlow !== undefined) {
305
- queryParameters['enrollment_flow'] = requestParameters.enrollmentFlow;
306
- }
307
301
  if (requestParameters.groupMembershipField !== undefined) {
308
302
  queryParameters['group_membership_field'] = requestParameters.groupMembershipField;
309
303
  }
@@ -325,8 +319,8 @@ export class SourcesApi extends runtime.BaseAPI {
325
319
  if (requestParameters.pageSize !== undefined) {
326
320
  queryParameters['page_size'] = requestParameters.pageSize;
327
321
  }
328
- if (requestParameters.policyEngineMode !== undefined) {
329
- queryParameters['policy_engine_mode'] = requestParameters.policyEngineMode;
322
+ if (requestParameters.peerCertificate !== undefined) {
323
+ queryParameters['peer_certificate'] = requestParameters.peerCertificate;
330
324
  }
331
325
  if (requestParameters.propertyMappings) {
332
326
  queryParameters['property_mappings'] = requestParameters.propertyMappings;
@@ -2115,15 +2109,6 @@ export class SourcesApi extends runtime.BaseAPI {
2115
2109
  });
2116
2110
  }
2117
2111
  }
2118
- /**
2119
- * @export
2120
- * @enum {string}
2121
- */
2122
- export var SourcesLdapListPolicyEngineModeEnum;
2123
- (function (SourcesLdapListPolicyEngineModeEnum) {
2124
- SourcesLdapListPolicyEngineModeEnum["All"] = "all";
2125
- SourcesLdapListPolicyEngineModeEnum["Any"] = "any";
2126
- })(SourcesLdapListPolicyEngineModeEnum || (SourcesLdapListPolicyEngineModeEnum = {}));
2127
2112
  /**
2128
2113
  * @export
2129
2114
  * @enum {string}
@@ -95,6 +95,12 @@ export interface LDAPSource {
95
95
  * @memberof LDAPSource
96
96
  */
97
97
  serverUri: string;
98
+ /**
99
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
100
+ * @type {string}
101
+ * @memberof LDAPSource
102
+ */
103
+ peerCertificate?: string | null;
98
104
  /**
99
105
  *
100
106
  * @type {string}
@@ -35,6 +35,7 @@ export function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
36
36
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
37
37
  'serverUri': json['server_uri'],
38
+ 'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
38
39
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
39
40
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
40
41
  'baseDn': json['base_dn'],
@@ -68,6 +69,7 @@ export function LDAPSourceToJSON(value) {
68
69
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
69
70
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
70
71
  'server_uri': value.serverUri,
72
+ 'peer_certificate': value.peerCertificate,
71
73
  'bind_cn': value.bindCn,
72
74
  'start_tls': value.startTls,
73
75
  'base_dn': value.baseDn,
@@ -65,6 +65,12 @@ export interface LDAPSourceRequest {
65
65
  * @memberof LDAPSourceRequest
66
66
  */
67
67
  serverUri: string;
68
+ /**
69
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
70
+ * @type {string}
71
+ * @memberof LDAPSourceRequest
72
+ */
73
+ peerCertificate?: string | null;
68
74
  /**
69
75
  *
70
76
  * @type {string}
@@ -30,6 +30,7 @@ export function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
31
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
32
32
  'serverUri': json['server_uri'],
33
+ 'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
33
34
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
34
35
  'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
35
36
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
@@ -64,6 +65,7 @@ export function LDAPSourceRequestToJSON(value) {
64
65
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
65
66
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
66
67
  'server_uri': value.serverUri,
68
+ 'peer_certificate': value.peerCertificate,
67
69
  'bind_cn': value.bindCn,
68
70
  'bind_password': value.bindPassword,
69
71
  'start_tls': value.startTls,
@@ -65,6 +65,12 @@ export interface PatchedLDAPSourceRequest {
65
65
  * @memberof PatchedLDAPSourceRequest
66
66
  */
67
67
  serverUri?: string;
68
+ /**
69
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
70
+ * @type {string}
71
+ * @memberof PatchedLDAPSourceRequest
72
+ */
73
+ peerCertificate?: string | null;
68
74
  /**
69
75
  *
70
76
  * @type {string}
@@ -30,6 +30,7 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator)
30
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
31
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
32
32
  'serverUri': !exists(json, 'server_uri') ? undefined : json['server_uri'],
33
+ 'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
33
34
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
34
35
  'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
35
36
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
@@ -64,6 +65,7 @@ export function PatchedLDAPSourceRequestToJSON(value) {
64
65
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
65
66
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
66
67
  'server_uri': value.serverUri,
68
+ 'peer_certificate': value.peerCertificate,
67
69
  'bind_cn': value.bindCn,
68
70
  'bind_password': value.bindPassword,
69
71
  'start_tls': value.startTls,
@@ -95,6 +95,12 @@ export interface LDAPSource {
95
95
  * @memberof LDAPSource
96
96
  */
97
97
  serverUri: string;
98
+ /**
99
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
100
+ * @type {string}
101
+ * @memberof LDAPSource
102
+ */
103
+ peerCertificate?: string | null;
98
104
  /**
99
105
  *
100
106
  * @type {string}
@@ -39,6 +39,7 @@ function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
40
40
  'userMatchingMode': !runtime_1.exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON(json['user_matching_mode']),
41
41
  'serverUri': json['server_uri'],
42
+ 'peerCertificate': !runtime_1.exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
42
43
  'bindCn': !runtime_1.exists(json, 'bind_cn') ? undefined : json['bind_cn'],
43
44
  'startTls': !runtime_1.exists(json, 'start_tls') ? undefined : json['start_tls'],
44
45
  'baseDn': json['base_dn'],
@@ -73,6 +74,7 @@ function LDAPSourceToJSON(value) {
73
74
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
74
75
  'user_matching_mode': UserMatchingModeEnum_1.UserMatchingModeEnumToJSON(value.userMatchingMode),
75
76
  'server_uri': value.serverUri,
77
+ 'peer_certificate': value.peerCertificate,
76
78
  'bind_cn': value.bindCn,
77
79
  'start_tls': value.startTls,
78
80
  'base_dn': value.baseDn,
@@ -65,6 +65,12 @@ export interface LDAPSourceRequest {
65
65
  * @memberof LDAPSourceRequest
66
66
  */
67
67
  serverUri: string;
68
+ /**
69
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
70
+ * @type {string}
71
+ * @memberof LDAPSourceRequest
72
+ */
73
+ peerCertificate?: string | null;
68
74
  /**
69
75
  *
70
76
  * @type {string}
@@ -34,6 +34,7 @@ function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
35
35
  'userMatchingMode': !runtime_1.exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON(json['user_matching_mode']),
36
36
  'serverUri': json['server_uri'],
37
+ 'peerCertificate': !runtime_1.exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
37
38
  'bindCn': !runtime_1.exists(json, 'bind_cn') ? undefined : json['bind_cn'],
38
39
  'bindPassword': !runtime_1.exists(json, 'bind_password') ? undefined : json['bind_password'],
39
40
  'startTls': !runtime_1.exists(json, 'start_tls') ? undefined : json['start_tls'],
@@ -69,6 +70,7 @@ function LDAPSourceRequestToJSON(value) {
69
70
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
70
71
  'user_matching_mode': UserMatchingModeEnum_1.UserMatchingModeEnumToJSON(value.userMatchingMode),
71
72
  'server_uri': value.serverUri,
73
+ 'peer_certificate': value.peerCertificate,
72
74
  'bind_cn': value.bindCn,
73
75
  'bind_password': value.bindPassword,
74
76
  'start_tls': value.startTls,
@@ -65,6 +65,12 @@ export interface PatchedLDAPSourceRequest {
65
65
  * @memberof PatchedLDAPSourceRequest
66
66
  */
67
67
  serverUri?: string;
68
+ /**
69
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
70
+ * @type {string}
71
+ * @memberof PatchedLDAPSourceRequest
72
+ */
73
+ peerCertificate?: string | null;
68
74
  /**
69
75
  *
70
76
  * @type {string}
@@ -34,6 +34,7 @@ function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'policyEngineMode': !runtime_1.exists(json, 'policy_engine_mode') ? undefined : PolicyEngineMode_1.PolicyEngineModeFromJSON(json['policy_engine_mode']),
35
35
  'userMatchingMode': !runtime_1.exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON(json['user_matching_mode']),
36
36
  'serverUri': !runtime_1.exists(json, 'server_uri') ? undefined : json['server_uri'],
37
+ 'peerCertificate': !runtime_1.exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
37
38
  'bindCn': !runtime_1.exists(json, 'bind_cn') ? undefined : json['bind_cn'],
38
39
  'bindPassword': !runtime_1.exists(json, 'bind_password') ? undefined : json['bind_password'],
39
40
  'startTls': !runtime_1.exists(json, 'start_tls') ? undefined : json['start_tls'],
@@ -69,6 +70,7 @@ function PatchedLDAPSourceRequestToJSON(value) {
69
70
  'policy_engine_mode': PolicyEngineMode_1.PolicyEngineModeToJSON(value.policyEngineMode),
70
71
  'user_matching_mode': UserMatchingModeEnum_1.UserMatchingModeEnumToJSON(value.userMatchingMode),
71
72
  'server_uri': value.serverUri,
73
+ 'peer_certificate': value.peerCertificate,
72
74
  'bind_cn': value.bindCn,
73
75
  'bind_password': value.bindPassword,
74
76
  'start_tls': value.startTls,
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@goauthentik/api", "version": "2021.10.4-1638386397", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
1
+ {"name": "@goauthentik/api", "version": "2021.10.4-1638522576", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
@@ -155,11 +155,9 @@ export interface SourcesLdapDestroyRequest {
155
155
  export interface SourcesLdapListRequest {
156
156
  additionalGroupDn?: string;
157
157
  additionalUserDn?: string;
158
- authenticationFlow?: string;
159
158
  baseDn?: string;
160
159
  bindCn?: string;
161
160
  enabled?: boolean;
162
- enrollmentFlow?: string;
163
161
  groupMembershipField?: string;
164
162
  groupObjectFilter?: string;
165
163
  name?: string;
@@ -167,7 +165,7 @@ export interface SourcesLdapListRequest {
167
165
  ordering?: string;
168
166
  page?: number;
169
167
  pageSize?: number;
170
- policyEngineMode?: SourcesLdapListPolicyEngineModeEnum;
168
+ peerCertificate?: string;
171
169
  propertyMappings?: Array<string>;
172
170
  propertyMappingsGroup?: Array<string>;
173
171
  search?: string;
@@ -747,10 +745,6 @@ export class SourcesApi extends runtime.BaseAPI {
747
745
  queryParameters['additional_user_dn'] = requestParameters.additionalUserDn;
748
746
  }
749
747
 
750
- if (requestParameters.authenticationFlow !== undefined) {
751
- queryParameters['authentication_flow'] = requestParameters.authenticationFlow;
752
- }
753
-
754
748
  if (requestParameters.baseDn !== undefined) {
755
749
  queryParameters['base_dn'] = requestParameters.baseDn;
756
750
  }
@@ -763,10 +757,6 @@ export class SourcesApi extends runtime.BaseAPI {
763
757
  queryParameters['enabled'] = requestParameters.enabled;
764
758
  }
765
759
 
766
- if (requestParameters.enrollmentFlow !== undefined) {
767
- queryParameters['enrollment_flow'] = requestParameters.enrollmentFlow;
768
- }
769
-
770
760
  if (requestParameters.groupMembershipField !== undefined) {
771
761
  queryParameters['group_membership_field'] = requestParameters.groupMembershipField;
772
762
  }
@@ -795,8 +785,8 @@ export class SourcesApi extends runtime.BaseAPI {
795
785
  queryParameters['page_size'] = requestParameters.pageSize;
796
786
  }
797
787
 
798
- if (requestParameters.policyEngineMode !== undefined) {
799
- queryParameters['policy_engine_mode'] = requestParameters.policyEngineMode;
788
+ if (requestParameters.peerCertificate !== undefined) {
789
+ queryParameters['peer_certificate'] = requestParameters.peerCertificate;
800
790
  }
801
791
 
802
792
  if (requestParameters.propertyMappings) {
@@ -2833,14 +2823,6 @@ export class SourcesApi extends runtime.BaseAPI {
2833
2823
 
2834
2824
  }
2835
2825
 
2836
- /**
2837
- * @export
2838
- * @enum {string}
2839
- */
2840
- export enum SourcesLdapListPolicyEngineModeEnum {
2841
- All = 'all',
2842
- Any = 'any'
2843
- }
2844
2826
  /**
2845
2827
  * @export
2846
2828
  * @enum {string}
@@ -110,6 +110,12 @@ export interface LDAPSource {
110
110
  * @memberof LDAPSource
111
111
  */
112
112
  serverUri: string;
113
+ /**
114
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
115
+ * @type {string}
116
+ * @memberof LDAPSource
117
+ */
118
+ peerCertificate?: string | null;
113
119
  /**
114
120
  *
115
121
  * @type {string}
@@ -225,6 +231,7 @@ export function LDAPSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
225
231
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
226
232
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
227
233
  'serverUri': json['server_uri'],
234
+ 'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
228
235
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
229
236
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
230
237
  'baseDn': json['base_dn'],
@@ -260,6 +267,7 @@ export function LDAPSourceToJSON(value?: LDAPSource | null): any {
260
267
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
261
268
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
262
269
  'server_uri': value.serverUri,
270
+ 'peer_certificate': value.peerCertificate,
263
271
  'bind_cn': value.bindCn,
264
272
  'start_tls': value.startTls,
265
273
  'base_dn': value.baseDn,
@@ -80,6 +80,12 @@ export interface LDAPSourceRequest {
80
80
  * @memberof LDAPSourceRequest
81
81
  */
82
82
  serverUri: string;
83
+ /**
84
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
85
+ * @type {string}
86
+ * @memberof LDAPSourceRequest
87
+ */
88
+ peerCertificate?: string | null;
83
89
  /**
84
90
  *
85
91
  * @type {string}
@@ -196,6 +202,7 @@ export function LDAPSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
196
202
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
197
203
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
198
204
  'serverUri': json['server_uri'],
205
+ 'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
199
206
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
200
207
  'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
201
208
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
@@ -232,6 +239,7 @@ export function LDAPSourceRequestToJSON(value?: LDAPSourceRequest | null): any {
232
239
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
233
240
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
234
241
  'server_uri': value.serverUri,
242
+ 'peer_certificate': value.peerCertificate,
235
243
  'bind_cn': value.bindCn,
236
244
  'bind_password': value.bindPassword,
237
245
  'start_tls': value.startTls,
@@ -80,6 +80,12 @@ export interface PatchedLDAPSourceRequest {
80
80
  * @memberof PatchedLDAPSourceRequest
81
81
  */
82
82
  serverUri?: string;
83
+ /**
84
+ * Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.
85
+ * @type {string}
86
+ * @memberof PatchedLDAPSourceRequest
87
+ */
88
+ peerCertificate?: string | null;
83
89
  /**
84
90
  *
85
91
  * @type {string}
@@ -196,6 +202,7 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
196
202
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
197
203
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
198
204
  'serverUri': !exists(json, 'server_uri') ? undefined : json['server_uri'],
205
+ 'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
199
206
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
200
207
  'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
201
208
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
@@ -232,6 +239,7 @@ export function PatchedLDAPSourceRequestToJSON(value?: PatchedLDAPSourceRequest
232
239
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
233
240
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
234
241
  'server_uri': value.serverUri,
242
+ 'peer_certificate': value.peerCertificate,
235
243
  'bind_cn': value.bindCn,
236
244
  'bind_password': value.bindPassword,
237
245
  'start_tls': value.startTls,