@goauthentik/api 2023.5.3-1687462221 → 2023.5.3-1687465529

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.
Files changed (92) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/AdminApi.d.ts +8 -0
  3. package/dist/apis/AdminApi.js +28 -0
  4. package/dist/apis/PoliciesApi.d.ts +1 -0
  5. package/dist/apis/PoliciesApi.js +3 -0
  6. package/dist/apis/SourcesApi.d.ts +3 -0
  7. package/dist/apis/SourcesApi.js +9 -0
  8. package/dist/esm/apis/AdminApi.d.ts +8 -0
  9. package/dist/esm/apis/AdminApi.js +28 -0
  10. package/dist/esm/apis/PoliciesApi.d.ts +1 -0
  11. package/dist/esm/apis/PoliciesApi.js +3 -0
  12. package/dist/esm/apis/SourcesApi.d.ts +3 -0
  13. package/dist/esm/apis/SourcesApi.js +9 -0
  14. package/dist/esm/models/EventMatcherPolicy.d.ts +10 -3
  15. package/dist/esm/models/EventMatcherPolicy.js +3 -0
  16. package/dist/esm/models/EventMatcherPolicyRequest.d.ts +10 -3
  17. package/dist/esm/models/EventMatcherPolicyRequest.js +3 -0
  18. package/dist/esm/models/LDAPOutpostConfig.d.ts +8 -2
  19. package/dist/esm/models/LDAPOutpostConfig.js +2 -0
  20. package/dist/esm/models/LDAPProvider.d.ts +8 -2
  21. package/dist/esm/models/LDAPProvider.js +2 -0
  22. package/dist/esm/models/LDAPProviderRequest.d.ts +8 -2
  23. package/dist/esm/models/LDAPProviderRequest.js +2 -0
  24. package/dist/esm/models/LDAPSource.d.ts +12 -0
  25. package/dist/esm/models/LDAPSource.js +4 -0
  26. package/dist/esm/models/LDAPSourceRequest.d.ts +12 -0
  27. package/dist/esm/models/LDAPSourceRequest.js +4 -0
  28. package/dist/esm/models/ModelEnum.d.ts +161 -0
  29. package/dist/esm/models/ModelEnum.js +168 -0
  30. package/dist/esm/models/PatchedEventMatcherPolicyRequest.d.ts +10 -3
  31. package/dist/esm/models/PatchedEventMatcherPolicyRequest.js +3 -0
  32. package/dist/esm/models/PatchedLDAPProviderRequest.d.ts +8 -2
  33. package/dist/esm/models/PatchedLDAPProviderRequest.js +2 -0
  34. package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +12 -0
  35. package/dist/esm/models/PatchedLDAPSourceRequest.js +4 -0
  36. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +7 -1
  37. package/dist/esm/models/PatchedSAMLSourceRequest.js +2 -0
  38. package/dist/esm/models/SAMLSource.d.ts +7 -1
  39. package/dist/esm/models/SAMLSource.js +2 -0
  40. package/dist/esm/models/SAMLSourceRequest.d.ts +7 -1
  41. package/dist/esm/models/SAMLSourceRequest.js +2 -0
  42. package/dist/esm/models/index.d.ts +1 -0
  43. package/dist/esm/models/index.js +1 -0
  44. package/dist/models/EventMatcherPolicy.d.ts +10 -3
  45. package/dist/models/EventMatcherPolicy.js +3 -0
  46. package/dist/models/EventMatcherPolicyRequest.d.ts +10 -3
  47. package/dist/models/EventMatcherPolicyRequest.js +3 -0
  48. package/dist/models/LDAPOutpostConfig.d.ts +8 -2
  49. package/dist/models/LDAPOutpostConfig.js +2 -0
  50. package/dist/models/LDAPProvider.d.ts +8 -2
  51. package/dist/models/LDAPProvider.js +2 -0
  52. package/dist/models/LDAPProviderRequest.d.ts +8 -2
  53. package/dist/models/LDAPProviderRequest.js +2 -0
  54. package/dist/models/LDAPSource.d.ts +12 -0
  55. package/dist/models/LDAPSource.js +4 -0
  56. package/dist/models/LDAPSourceRequest.d.ts +12 -0
  57. package/dist/models/LDAPSourceRequest.js +4 -0
  58. package/dist/models/ModelEnum.d.ts +161 -0
  59. package/dist/models/ModelEnum.js +174 -0
  60. package/dist/models/PatchedEventMatcherPolicyRequest.d.ts +10 -3
  61. package/dist/models/PatchedEventMatcherPolicyRequest.js +3 -0
  62. package/dist/models/PatchedLDAPProviderRequest.d.ts +8 -2
  63. package/dist/models/PatchedLDAPProviderRequest.js +2 -0
  64. package/dist/models/PatchedLDAPSourceRequest.d.ts +12 -0
  65. package/dist/models/PatchedLDAPSourceRequest.js +4 -0
  66. package/dist/models/PatchedSAMLSourceRequest.d.ts +7 -1
  67. package/dist/models/PatchedSAMLSourceRequest.js +2 -0
  68. package/dist/models/SAMLSource.d.ts +7 -1
  69. package/dist/models/SAMLSource.js +2 -0
  70. package/dist/models/SAMLSourceRequest.d.ts +7 -1
  71. package/dist/models/SAMLSourceRequest.js +2 -0
  72. package/dist/models/index.d.ts +1 -0
  73. package/dist/models/index.js +1 -0
  74. package/package.json +1 -1
  75. package/src/apis/AdminApi.ts +30 -0
  76. package/src/apis/PoliciesApi.ts +5 -0
  77. package/src/apis/SourcesApi.ts +15 -0
  78. package/src/models/EventMatcherPolicy.ts +17 -3
  79. package/src/models/EventMatcherPolicyRequest.ts +17 -3
  80. package/src/models/LDAPOutpostConfig.ts +10 -2
  81. package/src/models/LDAPProvider.ts +10 -2
  82. package/src/models/LDAPProviderRequest.ts +10 -2
  83. package/src/models/LDAPSource.ts +16 -0
  84. package/src/models/LDAPSourceRequest.ts +16 -0
  85. package/src/models/ModelEnum.ts +176 -0
  86. package/src/models/PatchedEventMatcherPolicyRequest.ts +17 -3
  87. package/src/models/PatchedLDAPProviderRequest.ts +10 -2
  88. package/src/models/PatchedLDAPSourceRequest.ts +16 -0
  89. package/src/models/PatchedSAMLSourceRequest.ts +9 -1
  90. package/src/models/SAMLSource.ts +9 -1
  91. package/src/models/SAMLSourceRequest.ts +9 -1
  92. package/src/models/index.ts +1 -0
@@ -177,6 +177,7 @@ src/models/LoginChallengeTypes.ts
177
177
  src/models/LoginMetrics.ts
178
178
  src/models/LoginSource.ts
179
179
  src/models/Metadata.ts
180
+ src/models/ModelEnum.ts
180
181
  src/models/NameIdPolicyEnum.ts
181
182
  src/models/NotConfiguredActionEnum.ts
182
183
  src/models/Notification.ts
@@ -37,6 +37,14 @@ export declare class AdminApi extends runtime.BaseAPI {
37
37
  * Login Metrics per 1h
38
38
  */
39
39
  adminMetricsRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginMetrics>;
40
+ /**
41
+ * Read-only view list all installed models
42
+ */
43
+ adminModelsListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<App>>>;
44
+ /**
45
+ * Read-only view list all installed models
46
+ */
47
+ adminModelsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<App>>;
40
48
  /**
41
49
  * Get system information.
42
50
  */
@@ -85,6 +85,34 @@ class AdminApi extends runtime.BaseAPI {
85
85
  return yield response.value();
86
86
  });
87
87
  }
88
+ /**
89
+ * Read-only view list all installed models
90
+ */
91
+ adminModelsListRaw(initOverrides) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const queryParameters = {};
94
+ const headerParameters = {};
95
+ if (this.configuration && this.configuration.apiKey) {
96
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
97
+ }
98
+ const response = yield this.request({
99
+ path: `/admin/models/`,
100
+ method: 'GET',
101
+ headers: headerParameters,
102
+ query: queryParameters,
103
+ }, initOverrides);
104
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.AppFromJSON));
105
+ });
106
+ }
107
+ /**
108
+ * Read-only view list all installed models
109
+ */
110
+ adminModelsList(initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const response = yield this.adminModelsListRaw(initOverrides);
113
+ return yield response.value();
114
+ });
115
+ }
88
116
  /**
89
117
  * Get system information.
90
118
  */
@@ -112,6 +112,7 @@ export interface PoliciesEventMatcherListRequest {
112
112
  created?: Date;
113
113
  executionLogging?: boolean;
114
114
  lastUpdated?: Date;
115
+ model?: string;
115
116
  name?: string;
116
117
  ordering?: string;
117
118
  page?: number;
@@ -886,6 +886,9 @@ class PoliciesApi extends runtime.BaseAPI {
886
886
  if (requestParameters.lastUpdated !== undefined) {
887
887
  queryParameters['last_updated'] = requestParameters.lastUpdated.toISOString();
888
888
  }
889
+ if (requestParameters.model !== undefined) {
890
+ queryParameters['model'] = requestParameters.model;
891
+ }
889
892
  if (requestParameters.name !== undefined) {
890
893
  queryParameters['name'] = requestParameters.name;
891
894
  }
@@ -52,6 +52,7 @@ export interface SourcesLdapListRequest {
52
52
  additionalUserDn?: string;
53
53
  baseDn?: string;
54
54
  bindCn?: string;
55
+ clientCertificate?: string;
55
56
  enabled?: boolean;
56
57
  groupMembershipField?: string;
57
58
  groupObjectFilter?: string;
@@ -66,6 +67,7 @@ export interface SourcesLdapListRequest {
66
67
  search?: string;
67
68
  serverUri?: string;
68
69
  slug?: string;
70
+ sni?: boolean;
69
71
  startTls?: boolean;
70
72
  syncGroups?: boolean;
71
73
  syncParentGroup?: string;
@@ -207,6 +209,7 @@ export interface SourcesSamlListRequest {
207
209
  ssoUrl?: string;
208
210
  temporaryUserDeleteAfter?: string;
209
211
  userMatchingMode?: SourcesSamlListUserMatchingModeEnum;
212
+ verificationKp?: string;
210
213
  }
211
214
  export interface SourcesSamlMetadataRetrieveRequest {
212
215
  slug: string;
@@ -425,6 +425,9 @@ class SourcesApi extends runtime.BaseAPI {
425
425
  if (requestParameters.bindCn !== undefined) {
426
426
  queryParameters['bind_cn'] = requestParameters.bindCn;
427
427
  }
428
+ if (requestParameters.clientCertificate !== undefined) {
429
+ queryParameters['client_certificate'] = requestParameters.clientCertificate;
430
+ }
428
431
  if (requestParameters.enabled !== undefined) {
429
432
  queryParameters['enabled'] = requestParameters.enabled;
430
433
  }
@@ -467,6 +470,9 @@ class SourcesApi extends runtime.BaseAPI {
467
470
  if (requestParameters.slug !== undefined) {
468
471
  queryParameters['slug'] = requestParameters.slug;
469
472
  }
473
+ if (requestParameters.sni !== undefined) {
474
+ queryParameters['sni'] = requestParameters.sni;
475
+ }
470
476
  if (requestParameters.startTls !== undefined) {
471
477
  queryParameters['start_tls'] = requestParameters.startTls;
472
478
  }
@@ -1449,6 +1455,9 @@ class SourcesApi extends runtime.BaseAPI {
1449
1455
  if (requestParameters.userMatchingMode !== undefined) {
1450
1456
  queryParameters['user_matching_mode'] = requestParameters.userMatchingMode;
1451
1457
  }
1458
+ if (requestParameters.verificationKp !== undefined) {
1459
+ queryParameters['verification_kp'] = requestParameters.verificationKp;
1460
+ }
1452
1461
  const headerParameters = {};
1453
1462
  if (this.configuration && this.configuration.apiKey) {
1454
1463
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -37,6 +37,14 @@ export declare class AdminApi extends runtime.BaseAPI {
37
37
  * Login Metrics per 1h
38
38
  */
39
39
  adminMetricsRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginMetrics>;
40
+ /**
41
+ * Read-only view list all installed models
42
+ */
43
+ adminModelsListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<App>>>;
44
+ /**
45
+ * Read-only view list all installed models
46
+ */
47
+ adminModelsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<App>>;
40
48
  /**
41
49
  * Get system information.
42
50
  */
@@ -82,6 +82,34 @@ export class AdminApi extends runtime.BaseAPI {
82
82
  return yield response.value();
83
83
  });
84
84
  }
85
+ /**
86
+ * Read-only view list all installed models
87
+ */
88
+ adminModelsListRaw(initOverrides) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const queryParameters = {};
91
+ const headerParameters = {};
92
+ if (this.configuration && this.configuration.apiKey) {
93
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
94
+ }
95
+ const response = yield this.request({
96
+ path: `/admin/models/`,
97
+ method: 'GET',
98
+ headers: headerParameters,
99
+ query: queryParameters,
100
+ }, initOverrides);
101
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AppFromJSON));
102
+ });
103
+ }
104
+ /**
105
+ * Read-only view list all installed models
106
+ */
107
+ adminModelsList(initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ const response = yield this.adminModelsListRaw(initOverrides);
110
+ return yield response.value();
111
+ });
112
+ }
85
113
  /**
86
114
  * Get system information.
87
115
  */
@@ -112,6 +112,7 @@ export interface PoliciesEventMatcherListRequest {
112
112
  created?: Date;
113
113
  executionLogging?: boolean;
114
114
  lastUpdated?: Date;
115
+ model?: string;
115
116
  name?: string;
116
117
  ordering?: string;
117
118
  page?: number;
@@ -883,6 +883,9 @@ export class PoliciesApi extends runtime.BaseAPI {
883
883
  if (requestParameters.lastUpdated !== undefined) {
884
884
  queryParameters['last_updated'] = requestParameters.lastUpdated.toISOString();
885
885
  }
886
+ if (requestParameters.model !== undefined) {
887
+ queryParameters['model'] = requestParameters.model;
888
+ }
886
889
  if (requestParameters.name !== undefined) {
887
890
  queryParameters['name'] = requestParameters.name;
888
891
  }
@@ -52,6 +52,7 @@ export interface SourcesLdapListRequest {
52
52
  additionalUserDn?: string;
53
53
  baseDn?: string;
54
54
  bindCn?: string;
55
+ clientCertificate?: string;
55
56
  enabled?: boolean;
56
57
  groupMembershipField?: string;
57
58
  groupObjectFilter?: string;
@@ -66,6 +67,7 @@ export interface SourcesLdapListRequest {
66
67
  search?: string;
67
68
  serverUri?: string;
68
69
  slug?: string;
70
+ sni?: boolean;
69
71
  startTls?: boolean;
70
72
  syncGroups?: boolean;
71
73
  syncParentGroup?: string;
@@ -207,6 +209,7 @@ export interface SourcesSamlListRequest {
207
209
  ssoUrl?: string;
208
210
  temporaryUserDeleteAfter?: string;
209
211
  userMatchingMode?: SourcesSamlListUserMatchingModeEnum;
212
+ verificationKp?: string;
210
213
  }
211
214
  export interface SourcesSamlMetadataRetrieveRequest {
212
215
  slug: string;
@@ -422,6 +422,9 @@ export class SourcesApi extends runtime.BaseAPI {
422
422
  if (requestParameters.bindCn !== undefined) {
423
423
  queryParameters['bind_cn'] = requestParameters.bindCn;
424
424
  }
425
+ if (requestParameters.clientCertificate !== undefined) {
426
+ queryParameters['client_certificate'] = requestParameters.clientCertificate;
427
+ }
425
428
  if (requestParameters.enabled !== undefined) {
426
429
  queryParameters['enabled'] = requestParameters.enabled;
427
430
  }
@@ -464,6 +467,9 @@ export class SourcesApi extends runtime.BaseAPI {
464
467
  if (requestParameters.slug !== undefined) {
465
468
  queryParameters['slug'] = requestParameters.slug;
466
469
  }
470
+ if (requestParameters.sni !== undefined) {
471
+ queryParameters['sni'] = requestParameters.sni;
472
+ }
467
473
  if (requestParameters.startTls !== undefined) {
468
474
  queryParameters['start_tls'] = requestParameters.startTls;
469
475
  }
@@ -1446,6 +1452,9 @@ export class SourcesApi extends runtime.BaseAPI {
1446
1452
  if (requestParameters.userMatchingMode !== undefined) {
1447
1453
  queryParameters['user_matching_mode'] = requestParameters.userMatchingMode;
1448
1454
  }
1455
+ if (requestParameters.verificationKp !== undefined) {
1456
+ queryParameters['verification_kp'] = requestParameters.verificationKp;
1457
+ }
1449
1458
  const headerParameters = {};
1450
1459
  if (this.configuration && this.configuration.apiKey) {
1451
1460
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { AppEnum } from './AppEnum';
13
13
  import type { EventActions } from './EventActions';
14
+ import type { ModelEnum } from './ModelEnum';
14
15
  /**
15
16
  * Event Matcher Policy Serializer
16
17
  * @export
@@ -70,19 +71,25 @@ export interface EventMatcherPolicy {
70
71
  * @type {EventActions}
71
72
  * @memberof EventMatcherPolicy
72
73
  */
73
- action?: EventActions;
74
+ action?: EventActions | null;
74
75
  /**
75
76
  * Matches Event's Client IP (strict matching, for network matching use an Expression Policy)
76
77
  * @type {string}
77
78
  * @memberof EventMatcherPolicy
78
79
  */
79
- clientIp?: string;
80
+ clientIp?: string | null;
80
81
  /**
81
82
  *
82
83
  * @type {AppEnum}
83
84
  * @memberof EventMatcherPolicy
84
85
  */
85
- app?: AppEnum;
86
+ app?: AppEnum | null;
87
+ /**
88
+ *
89
+ * @type {ModelEnum}
90
+ * @memberof EventMatcherPolicy
91
+ */
92
+ model?: ModelEnum | null;
86
93
  }
87
94
  /**
88
95
  * Check if a given object implements the EventMatcherPolicy interface.
@@ -14,6 +14,7 @@
14
14
  import { exists } from '../runtime';
15
15
  import { AppEnumFromJSON, AppEnumToJSON, } from './AppEnum';
16
16
  import { EventActionsFromJSON, EventActionsToJSON, } from './EventActions';
17
+ import { ModelEnumFromJSON, ModelEnumToJSON, } from './ModelEnum';
17
18
  /**
18
19
  * Check if a given object implements the EventMatcherPolicy interface.
19
20
  */
@@ -47,6 +48,7 @@ export function EventMatcherPolicyFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'action': !exists(json, 'action') ? undefined : EventActionsFromJSON(json['action']),
48
49
  'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
49
50
  'app': !exists(json, 'app') ? undefined : AppEnumFromJSON(json['app']),
51
+ 'model': !exists(json, 'model') ? undefined : ModelEnumFromJSON(json['model']),
50
52
  };
51
53
  }
52
54
  export function EventMatcherPolicyToJSON(value) {
@@ -62,5 +64,6 @@ export function EventMatcherPolicyToJSON(value) {
62
64
  'action': EventActionsToJSON(value.action),
63
65
  'client_ip': value.clientIp,
64
66
  'app': AppEnumToJSON(value.app),
67
+ 'model': ModelEnumToJSON(value.model),
65
68
  };
66
69
  }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { AppEnum } from './AppEnum';
13
13
  import type { EventActions } from './EventActions';
14
+ import type { ModelEnum } from './ModelEnum';
14
15
  /**
15
16
  * Event Matcher Policy Serializer
16
17
  * @export
@@ -34,19 +35,25 @@ export interface EventMatcherPolicyRequest {
34
35
  * @type {EventActions}
35
36
  * @memberof EventMatcherPolicyRequest
36
37
  */
37
- action?: EventActions;
38
+ action?: EventActions | null;
38
39
  /**
39
40
  * Matches Event's Client IP (strict matching, for network matching use an Expression Policy)
40
41
  * @type {string}
41
42
  * @memberof EventMatcherPolicyRequest
42
43
  */
43
- clientIp?: string;
44
+ clientIp?: string | null;
44
45
  /**
45
46
  *
46
47
  * @type {AppEnum}
47
48
  * @memberof EventMatcherPolicyRequest
48
49
  */
49
- app?: AppEnum;
50
+ app?: AppEnum | null;
51
+ /**
52
+ *
53
+ * @type {ModelEnum}
54
+ * @memberof EventMatcherPolicyRequest
55
+ */
56
+ model?: ModelEnum | null;
50
57
  }
51
58
  /**
52
59
  * Check if a given object implements the EventMatcherPolicyRequest interface.
@@ -14,6 +14,7 @@
14
14
  import { exists } from '../runtime';
15
15
  import { AppEnumFromJSON, AppEnumToJSON, } from './AppEnum';
16
16
  import { EventActionsFromJSON, EventActionsToJSON, } from './EventActions';
17
+ import { ModelEnumFromJSON, ModelEnumToJSON, } from './ModelEnum';
17
18
  /**
18
19
  * Check if a given object implements the EventMatcherPolicyRequest interface.
19
20
  */
@@ -35,6 +36,7 @@ export function EventMatcherPolicyRequestFromJSONTyped(json, ignoreDiscriminator
35
36
  'action': !exists(json, 'action') ? undefined : EventActionsFromJSON(json['action']),
36
37
  'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
37
38
  'app': !exists(json, 'app') ? undefined : AppEnumFromJSON(json['app']),
39
+ 'model': !exists(json, 'model') ? undefined : ModelEnumFromJSON(json['model']),
38
40
  };
39
41
  }
40
42
  export function EventMatcherPolicyRequestToJSON(value) {
@@ -50,5 +52,6 @@ export function EventMatcherPolicyRequestToJSON(value) {
50
52
  'action': EventActionsToJSON(value.action),
51
53
  'client_ip': value.clientIp,
52
54
  'app': AppEnumToJSON(value.app),
55
+ 'model': ModelEnumToJSON(value.model),
53
56
  };
54
57
  }
@@ -65,13 +65,13 @@ export interface LDAPOutpostConfig {
65
65
  */
66
66
  tlsServerName?: string;
67
67
  /**
68
- * The start for uidNumbers, this number is added to the user.Pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
68
+ * The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
69
69
  * @type {number}
70
70
  * @memberof LDAPOutpostConfig
71
71
  */
72
72
  uidStartNumber?: number;
73
73
  /**
74
- * The start for gidNumbers, this number is added to a number generated from the group.Pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
74
+ * The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
75
75
  * @type {number}
76
76
  * @memberof LDAPOutpostConfig
77
77
  */
@@ -88,6 +88,12 @@ export interface LDAPOutpostConfig {
88
88
  * @memberof LDAPOutpostConfig
89
89
  */
90
90
  bindMode?: LDAPAPIAccessMode;
91
+ /**
92
+ * When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.
93
+ * @type {boolean}
94
+ * @memberof LDAPOutpostConfig
95
+ */
96
+ mfaSupport?: boolean;
91
97
  }
92
98
  /**
93
99
  * Check if a given object implements the LDAPOutpostConfig interface.
@@ -44,6 +44,7 @@ export function LDAPOutpostConfigFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'gidStartNumber': !exists(json, 'gid_start_number') ? undefined : json['gid_start_number'],
45
45
  'searchMode': !exists(json, 'search_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['search_mode']),
46
46
  'bindMode': !exists(json, 'bind_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['bind_mode']),
47
+ 'mfaSupport': !exists(json, 'mfa_support') ? undefined : json['mfa_support'],
47
48
  };
48
49
  }
49
50
  export function LDAPOutpostConfigToJSON(value) {
@@ -64,5 +65,6 @@ export function LDAPOutpostConfigToJSON(value) {
64
65
  'gid_start_number': value.gidStartNumber,
65
66
  'search_mode': LDAPAPIAccessModeToJSON(value.searchMode),
66
67
  'bind_mode': LDAPAPIAccessModeToJSON(value.bindMode),
68
+ 'mfa_support': value.mfaSupport,
67
69
  };
68
70
  }
@@ -119,13 +119,13 @@ export interface LDAPProvider {
119
119
  */
120
120
  tlsServerName?: string;
121
121
  /**
122
- * The start for uidNumbers, this number is added to the user.Pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
122
+ * The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
123
123
  * @type {number}
124
124
  * @memberof LDAPProvider
125
125
  */
126
126
  uidStartNumber?: number;
127
127
  /**
128
- * The start for gidNumbers, this number is added to a number generated from the group.Pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
128
+ * The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
129
129
  * @type {number}
130
130
  * @memberof LDAPProvider
131
131
  */
@@ -148,6 +148,12 @@ export interface LDAPProvider {
148
148
  * @memberof LDAPProvider
149
149
  */
150
150
  bindMode?: LDAPAPIAccessMode;
151
+ /**
152
+ * When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.
153
+ * @type {boolean}
154
+ * @memberof LDAPProvider
155
+ */
156
+ mfaSupport?: boolean;
151
157
  }
152
158
  /**
153
159
  * Check if a given object implements the LDAPProvider interface.
@@ -62,6 +62,7 @@ export function LDAPProviderFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'outpostSet': json['outpost_set'],
63
63
  'searchMode': !exists(json, 'search_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['search_mode']),
64
64
  'bindMode': !exists(json, 'bind_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['bind_mode']),
65
+ 'mfaSupport': !exists(json, 'mfa_support') ? undefined : json['mfa_support'],
65
66
  };
66
67
  }
67
68
  export function LDAPProviderToJSON(value) {
@@ -84,5 +85,6 @@ export function LDAPProviderToJSON(value) {
84
85
  'gid_start_number': value.gidStartNumber,
85
86
  'search_mode': LDAPAPIAccessModeToJSON(value.searchMode),
86
87
  'bind_mode': LDAPAPIAccessModeToJSON(value.bindMode),
88
+ 'mfa_support': value.mfaSupport,
87
89
  };
88
90
  }
@@ -65,13 +65,13 @@ export interface LDAPProviderRequest {
65
65
  */
66
66
  tlsServerName?: string;
67
67
  /**
68
- * The start for uidNumbers, this number is added to the user.Pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
68
+ * The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
69
69
  * @type {number}
70
70
  * @memberof LDAPProviderRequest
71
71
  */
72
72
  uidStartNumber?: number;
73
73
  /**
74
- * The start for gidNumbers, this number is added to a number generated from the group.Pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
74
+ * The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
75
75
  * @type {number}
76
76
  * @memberof LDAPProviderRequest
77
77
  */
@@ -88,6 +88,12 @@ export interface LDAPProviderRequest {
88
88
  * @memberof LDAPProviderRequest
89
89
  */
90
90
  bindMode?: LDAPAPIAccessMode;
91
+ /**
92
+ * When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.
93
+ * @type {boolean}
94
+ * @memberof LDAPProviderRequest
95
+ */
96
+ mfaSupport?: boolean;
91
97
  }
92
98
  /**
93
99
  * Check if a given object implements the LDAPProviderRequest interface.
@@ -42,6 +42,7 @@ export function LDAPProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'gidStartNumber': !exists(json, 'gid_start_number') ? undefined : json['gid_start_number'],
43
43
  'searchMode': !exists(json, 'search_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['search_mode']),
44
44
  'bindMode': !exists(json, 'bind_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['bind_mode']),
45
+ 'mfaSupport': !exists(json, 'mfa_support') ? undefined : json['mfa_support'],
45
46
  };
46
47
  }
47
48
  export function LDAPProviderRequestToJSON(value) {
@@ -64,5 +65,6 @@ export function LDAPProviderRequestToJSON(value) {
64
65
  'gid_start_number': value.gidStartNumber,
65
66
  'search_mode': LDAPAPIAccessModeToJSON(value.searchMode),
66
67
  'bind_mode': LDAPAPIAccessModeToJSON(value.bindMode),
68
+ 'mfa_support': value.mfaSupport,
67
69
  };
68
70
  }
@@ -120,6 +120,12 @@ export interface LDAPSource {
120
120
  * @memberof LDAPSource
121
121
  */
122
122
  peerCertificate?: string | null;
123
+ /**
124
+ * Client certificate to authenticate against the LDAP Server's Certificate.
125
+ * @type {string}
126
+ * @memberof LDAPSource
127
+ */
128
+ clientCertificate?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {string}
@@ -132,6 +138,12 @@ export interface LDAPSource {
132
138
  * @memberof LDAPSource
133
139
  */
134
140
  startTls?: boolean;
141
+ /**
142
+ *
143
+ * @type {boolean}
144
+ * @memberof LDAPSource
145
+ */
146
+ sni?: boolean;
135
147
  /**
136
148
  *
137
149
  * @type {string}
@@ -57,8 +57,10 @@ export function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'icon': json['icon'],
58
58
  'serverUri': json['server_uri'],
59
59
  'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
60
+ 'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
60
61
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
61
62
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
63
+ 'sni': !exists(json, 'sni') ? undefined : json['sni'],
62
64
  'baseDn': json['base_dn'],
63
65
  'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
64
66
  'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
@@ -92,8 +94,10 @@ export function LDAPSourceToJSON(value) {
92
94
  'user_path_template': value.userPathTemplate,
93
95
  'server_uri': value.serverUri,
94
96
  'peer_certificate': value.peerCertificate,
97
+ 'client_certificate': value.clientCertificate,
95
98
  'bind_cn': value.bindCn,
96
99
  'start_tls': value.startTls,
100
+ 'sni': value.sni,
97
101
  'base_dn': value.baseDn,
98
102
  'additional_user_dn': value.additionalUserDn,
99
103
  'additional_group_dn': value.additionalGroupDn,
@@ -77,6 +77,12 @@ export interface LDAPSourceRequest {
77
77
  * @memberof LDAPSourceRequest
78
78
  */
79
79
  peerCertificate?: string | null;
80
+ /**
81
+ * Client certificate to authenticate against the LDAP Server's Certificate.
82
+ * @type {string}
83
+ * @memberof LDAPSourceRequest
84
+ */
85
+ clientCertificate?: string | null;
80
86
  /**
81
87
  *
82
88
  * @type {string}
@@ -95,6 +101,12 @@ export interface LDAPSourceRequest {
95
101
  * @memberof LDAPSourceRequest
96
102
  */
97
103
  startTls?: boolean;
104
+ /**
105
+ *
106
+ * @type {boolean}
107
+ * @memberof LDAPSourceRequest
108
+ */
109
+ sni?: boolean;
98
110
  /**
99
111
  *
100
112
  * @type {string}
@@ -43,9 +43,11 @@ export function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
44
44
  'serverUri': json['server_uri'],
45
45
  'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
46
+ 'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
46
47
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
47
48
  'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
48
49
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
50
+ 'sni': !exists(json, 'sni') ? undefined : json['sni'],
49
51
  'baseDn': json['base_dn'],
50
52
  'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
51
53
  'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
@@ -79,9 +81,11 @@ export function LDAPSourceRequestToJSON(value) {
79
81
  'user_path_template': value.userPathTemplate,
80
82
  'server_uri': value.serverUri,
81
83
  'peer_certificate': value.peerCertificate,
84
+ 'client_certificate': value.clientCertificate,
82
85
  'bind_cn': value.bindCn,
83
86
  'bind_password': value.bindPassword,
84
87
  'start_tls': value.startTls,
88
+ 'sni': value.sni,
85
89
  'base_dn': value.baseDn,
86
90
  'additional_user_dn': value.additionalUserDn,
87
91
  'additional_group_dn': value.additionalGroupDn,