@goauthentik/api 2022.4.1-1652019098 → 2022.4.1-1652209547
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.
- package/.openapi-generator/FILES +1 -2
- package/dist/esm/models/AuthenticatorValidateStage.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStage.js +2 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/LDAPAPIAccessMode.d.ts +23 -0
- package/dist/esm/models/{BindModeEnum.js → LDAPAPIAccessMode.js} +5 -5
- package/dist/esm/models/LDAPOutpostConfig.d.ts +5 -6
- package/dist/esm/models/LDAPOutpostConfig.js +5 -6
- package/dist/esm/models/LDAPProvider.d.ts +5 -6
- package/dist/esm/models/LDAPProvider.js +5 -6
- package/dist/esm/models/LDAPProviderRequest.d.ts +5 -6
- package/dist/esm/models/LDAPProviderRequest.js +5 -6
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/esm/models/PatchedLDAPProviderRequest.d.ts +5 -6
- package/dist/esm/models/PatchedLDAPProviderRequest.js +5 -6
- package/dist/esm/models/index.d.ts +1 -2
- package/dist/esm/models/index.js +1 -2
- package/dist/models/AuthenticatorValidateStage.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStage.js +2 -0
- package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/LDAPAPIAccessMode.d.ts +23 -0
- package/dist/models/LDAPAPIAccessMode.js +36 -0
- package/dist/models/LDAPOutpostConfig.d.ts +5 -6
- package/dist/models/LDAPOutpostConfig.js +5 -6
- package/dist/models/LDAPProvider.d.ts +5 -6
- package/dist/models/LDAPProvider.js +5 -6
- package/dist/models/LDAPProviderRequest.d.ts +5 -6
- package/dist/models/LDAPProviderRequest.js +5 -6
- package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
- package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
- package/dist/models/PatchedLDAPProviderRequest.d.ts +5 -6
- package/dist/models/PatchedLDAPProviderRequest.js +5 -6
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +1 -2
- package/package.json +1 -1
- package/src/models/AuthenticatorValidateStage.ts +8 -0
- package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/LDAPAPIAccessMode.ts +39 -0
- package/src/models/LDAPOutpostConfig.ts +13 -19
- package/src/models/LDAPProvider.ts +13 -19
- package/src/models/LDAPProviderRequest.ts +13 -19
- package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
- package/src/models/PatchedLDAPProviderRequest.ts +13 -19
- package/src/models/index.ts +1 -2
- package/dist/esm/models/BindModeEnum.d.ts +0 -23
- package/dist/esm/models/SearchModeEnum.d.ts +0 -23
- package/dist/esm/models/SearchModeEnum.js +0 -30
- package/dist/models/BindModeEnum.d.ts +0 -23
- package/dist/models/BindModeEnum.js +0 -36
- package/dist/models/SearchModeEnum.d.ts +0 -23
- package/dist/models/SearchModeEnum.js +0 -36
- package/src/models/BindModeEnum.ts +0 -39
- package/src/models/SearchModeEnum.ts +0 -39
package/.openapi-generator/FILES
CHANGED
|
@@ -62,7 +62,6 @@ src/models/AuthenticatorWebAuthnChallengeResponseRequest.ts
|
|
|
62
62
|
src/models/AutoSubmitChallengeResponseRequest.ts
|
|
63
63
|
src/models/AutosubmitChallenge.ts
|
|
64
64
|
src/models/BackendsEnum.ts
|
|
65
|
-
src/models/BindModeEnum.ts
|
|
66
65
|
src/models/BindingTypeEnum.ts
|
|
67
66
|
src/models/Cache.ts
|
|
68
67
|
src/models/CapabilitiesEnum.ts
|
|
@@ -150,6 +149,7 @@ src/models/InvitationStageRequest.ts
|
|
|
150
149
|
src/models/IssuerModeEnum.ts
|
|
151
150
|
src/models/KubernetesServiceConnection.ts
|
|
152
151
|
src/models/KubernetesServiceConnectionRequest.ts
|
|
152
|
+
src/models/LDAPAPIAccessMode.ts
|
|
153
153
|
src/models/LDAPOutpostConfig.ts
|
|
154
154
|
src/models/LDAPPropertyMapping.ts
|
|
155
155
|
src/models/LDAPPropertyMappingRequest.ts
|
|
@@ -382,7 +382,6 @@ src/models/SMSDevice.ts
|
|
|
382
382
|
src/models/SMSDeviceRequest.ts
|
|
383
383
|
src/models/ScopeMapping.ts
|
|
384
384
|
src/models/ScopeMappingRequest.ts
|
|
385
|
-
src/models/SearchModeEnum.ts
|
|
386
385
|
src/models/SelectableStage.ts
|
|
387
386
|
src/models/ServiceConnection.ts
|
|
388
387
|
src/models/ServiceConnectionRequest.ts
|
|
@@ -78,6 +78,12 @@ export interface AuthenticatorValidateStage {
|
|
|
78
78
|
* @memberof AuthenticatorValidateStage
|
|
79
79
|
*/
|
|
80
80
|
configurationStages?: Array<string>;
|
|
81
|
+
/**
|
|
82
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AuthenticatorValidateStage
|
|
85
|
+
*/
|
|
86
|
+
lastAuthThreshold?: string;
|
|
81
87
|
}
|
|
82
88
|
export declare function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage;
|
|
83
89
|
export declare function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage;
|
|
@@ -33,6 +33,7 @@ export function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminato
|
|
|
33
33
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
34
34
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
35
35
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
36
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
export function AuthenticatorValidateStageToJSON(value) {
|
|
@@ -48,5 +49,6 @@ export function AuthenticatorValidateStageToJSON(value) {
|
|
|
48
49
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
49
50
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
50
51
|
'configuration_stages': value.configurationStages,
|
|
52
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
51
53
|
};
|
|
52
54
|
}
|
|
@@ -48,6 +48,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
|
48
48
|
* @memberof AuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
50
|
configurationStages?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AuthenticatorValidateStageRequest
|
|
55
|
+
*/
|
|
56
|
+
lastAuthThreshold?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest;
|
|
53
59
|
export declare function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest;
|
|
@@ -28,6 +28,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
|
|
|
28
28
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
29
29
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
30
30
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
31
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function AuthenticatorValidateStageRequestToJSON(value) {
|
|
@@ -43,5 +44,6 @@ export function AuthenticatorValidateStageRequestToJSON(value) {
|
|
|
43
44
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
44
45
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
45
46
|
'configuration_stages': value.configurationStages,
|
|
47
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
46
48
|
};
|
|
47
49
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.4.1
|
|
6
|
+
* Contact: hello@beryju.org
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const LDAPAPIAccessMode: {
|
|
17
|
+
readonly Direct: "direct";
|
|
18
|
+
readonly Cached: "cached";
|
|
19
|
+
};
|
|
20
|
+
export declare type LDAPAPIAccessMode = typeof LDAPAPIAccessMode[keyof typeof LDAPAPIAccessMode];
|
|
21
|
+
export declare function LDAPAPIAccessModeFromJSON(json: any): LDAPAPIAccessMode;
|
|
22
|
+
export declare function LDAPAPIAccessModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPAPIAccessMode;
|
|
23
|
+
export declare function LDAPAPIAccessModeToJSON(value?: LDAPAPIAccessMode | null): any;
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
18
|
+
export const LDAPAPIAccessMode = {
|
|
19
19
|
Direct: 'direct',
|
|
20
20
|
Cached: 'cached'
|
|
21
21
|
};
|
|
22
|
-
export function
|
|
23
|
-
return
|
|
22
|
+
export function LDAPAPIAccessModeFromJSON(json) {
|
|
23
|
+
return LDAPAPIAccessModeFromJSONTyped(json, false);
|
|
24
24
|
}
|
|
25
|
-
export function
|
|
25
|
+
export function LDAPAPIAccessModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
|
-
export function
|
|
28
|
+
export function LDAPAPIAccessModeToJSON(value) {
|
|
29
29
|
return value;
|
|
30
30
|
}
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { SearchModeEnum } from './SearchModeEnum';
|
|
12
|
+
import { LDAPAPIAccessMode } from './LDAPAPIAccessMode';
|
|
14
13
|
/**
|
|
15
14
|
* LDAPProvider Serializer
|
|
16
15
|
* @export
|
|
@@ -79,16 +78,16 @@ export interface LDAPOutpostConfig {
|
|
|
79
78
|
gidStartNumber?: number;
|
|
80
79
|
/**
|
|
81
80
|
*
|
|
82
|
-
* @type {
|
|
81
|
+
* @type {LDAPAPIAccessMode}
|
|
83
82
|
* @memberof LDAPOutpostConfig
|
|
84
83
|
*/
|
|
85
|
-
searchMode?:
|
|
84
|
+
searchMode?: LDAPAPIAccessMode;
|
|
86
85
|
/**
|
|
87
86
|
*
|
|
88
|
-
* @type {
|
|
87
|
+
* @type {LDAPAPIAccessMode}
|
|
89
88
|
* @memberof LDAPOutpostConfig
|
|
90
89
|
*/
|
|
91
|
-
bindMode?:
|
|
90
|
+
bindMode?: LDAPAPIAccessMode;
|
|
92
91
|
}
|
|
93
92
|
export declare function LDAPOutpostConfigFromJSON(json: any): LDAPOutpostConfig;
|
|
94
93
|
export declare function LDAPOutpostConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPOutpostConfig;
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import {
|
|
16
|
-
import { SearchModeEnumFromJSON, SearchModeEnumToJSON, } from './SearchModeEnum';
|
|
15
|
+
import { LDAPAPIAccessModeFromJSON, LDAPAPIAccessModeToJSON, } from './LDAPAPIAccessMode';
|
|
17
16
|
export function LDAPOutpostConfigFromJSON(json) {
|
|
18
17
|
return LDAPOutpostConfigFromJSONTyped(json, false);
|
|
19
18
|
}
|
|
@@ -32,8 +31,8 @@ export function LDAPOutpostConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
31
|
'tlsServerName': !exists(json, 'tls_server_name') ? undefined : json['tls_server_name'],
|
|
33
32
|
'uidStartNumber': !exists(json, 'uid_start_number') ? undefined : json['uid_start_number'],
|
|
34
33
|
'gidStartNumber': !exists(json, 'gid_start_number') ? undefined : json['gid_start_number'],
|
|
35
|
-
'searchMode': !exists(json, 'search_mode') ? undefined :
|
|
36
|
-
'bindMode': !exists(json, 'bind_mode') ? undefined :
|
|
34
|
+
'searchMode': !exists(json, 'search_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['search_mode']),
|
|
35
|
+
'bindMode': !exists(json, 'bind_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['bind_mode']),
|
|
37
36
|
};
|
|
38
37
|
}
|
|
39
38
|
export function LDAPOutpostConfigToJSON(value) {
|
|
@@ -53,7 +52,7 @@ export function LDAPOutpostConfigToJSON(value) {
|
|
|
53
52
|
'tls_server_name': value.tlsServerName,
|
|
54
53
|
'uid_start_number': value.uidStartNumber,
|
|
55
54
|
'gid_start_number': value.gidStartNumber,
|
|
56
|
-
'search_mode':
|
|
57
|
-
'bind_mode':
|
|
55
|
+
'search_mode': LDAPAPIAccessModeToJSON(value.searchMode),
|
|
56
|
+
'bind_mode': LDAPAPIAccessModeToJSON(value.bindMode),
|
|
58
57
|
};
|
|
59
58
|
}
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { SearchModeEnum } from './SearchModeEnum';
|
|
12
|
+
import { LDAPAPIAccessMode } from './LDAPAPIAccessMode';
|
|
14
13
|
/**
|
|
15
14
|
* LDAPProvider Serializer
|
|
16
15
|
* @export
|
|
@@ -121,16 +120,16 @@ export interface LDAPProvider {
|
|
|
121
120
|
readonly outpostSet: Array<string>;
|
|
122
121
|
/**
|
|
123
122
|
*
|
|
124
|
-
* @type {
|
|
123
|
+
* @type {LDAPAPIAccessMode}
|
|
125
124
|
* @memberof LDAPProvider
|
|
126
125
|
*/
|
|
127
|
-
searchMode?:
|
|
126
|
+
searchMode?: LDAPAPIAccessMode;
|
|
128
127
|
/**
|
|
129
128
|
*
|
|
130
|
-
* @type {
|
|
129
|
+
* @type {LDAPAPIAccessMode}
|
|
131
130
|
* @memberof LDAPProvider
|
|
132
131
|
*/
|
|
133
|
-
bindMode?:
|
|
132
|
+
bindMode?: LDAPAPIAccessMode;
|
|
134
133
|
}
|
|
135
134
|
export declare function LDAPProviderFromJSON(json: any): LDAPProvider;
|
|
136
135
|
export declare function LDAPProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPProvider;
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import {
|
|
16
|
-
import { SearchModeEnumFromJSON, SearchModeEnumToJSON, } from './SearchModeEnum';
|
|
15
|
+
import { LDAPAPIAccessModeFromJSON, LDAPAPIAccessModeToJSON, } from './LDAPAPIAccessMode';
|
|
17
16
|
export function LDAPProviderFromJSON(json) {
|
|
18
17
|
return LDAPProviderFromJSONTyped(json, false);
|
|
19
18
|
}
|
|
@@ -39,8 +38,8 @@ export function LDAPProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
38
|
'uidStartNumber': !exists(json, 'uid_start_number') ? undefined : json['uid_start_number'],
|
|
40
39
|
'gidStartNumber': !exists(json, 'gid_start_number') ? undefined : json['gid_start_number'],
|
|
41
40
|
'outpostSet': json['outpost_set'],
|
|
42
|
-
'searchMode': !exists(json, 'search_mode') ? undefined :
|
|
43
|
-
'bindMode': !exists(json, 'bind_mode') ? undefined :
|
|
41
|
+
'searchMode': !exists(json, 'search_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['search_mode']),
|
|
42
|
+
'bindMode': !exists(json, 'bind_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['bind_mode']),
|
|
44
43
|
};
|
|
45
44
|
}
|
|
46
45
|
export function LDAPProviderToJSON(value) {
|
|
@@ -60,7 +59,7 @@ export function LDAPProviderToJSON(value) {
|
|
|
60
59
|
'tls_server_name': value.tlsServerName,
|
|
61
60
|
'uid_start_number': value.uidStartNumber,
|
|
62
61
|
'gid_start_number': value.gidStartNumber,
|
|
63
|
-
'search_mode':
|
|
64
|
-
'bind_mode':
|
|
62
|
+
'search_mode': LDAPAPIAccessModeToJSON(value.searchMode),
|
|
63
|
+
'bind_mode': LDAPAPIAccessModeToJSON(value.bindMode),
|
|
65
64
|
};
|
|
66
65
|
}
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { SearchModeEnum } from './SearchModeEnum';
|
|
12
|
+
import { LDAPAPIAccessMode } from './LDAPAPIAccessMode';
|
|
14
13
|
/**
|
|
15
14
|
* LDAPProvider Serializer
|
|
16
15
|
* @export
|
|
@@ -73,16 +72,16 @@ export interface LDAPProviderRequest {
|
|
|
73
72
|
gidStartNumber?: number;
|
|
74
73
|
/**
|
|
75
74
|
*
|
|
76
|
-
* @type {
|
|
75
|
+
* @type {LDAPAPIAccessMode}
|
|
77
76
|
* @memberof LDAPProviderRequest
|
|
78
77
|
*/
|
|
79
|
-
searchMode?:
|
|
78
|
+
searchMode?: LDAPAPIAccessMode;
|
|
80
79
|
/**
|
|
81
80
|
*
|
|
82
|
-
* @type {
|
|
81
|
+
* @type {LDAPAPIAccessMode}
|
|
83
82
|
* @memberof LDAPProviderRequest
|
|
84
83
|
*/
|
|
85
|
-
bindMode?:
|
|
84
|
+
bindMode?: LDAPAPIAccessMode;
|
|
86
85
|
}
|
|
87
86
|
export declare function LDAPProviderRequestFromJSON(json: any): LDAPProviderRequest;
|
|
88
87
|
export declare function LDAPProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPProviderRequest;
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import {
|
|
16
|
-
import { SearchModeEnumFromJSON, SearchModeEnumToJSON, } from './SearchModeEnum';
|
|
15
|
+
import { LDAPAPIAccessModeFromJSON, LDAPAPIAccessModeToJSON, } from './LDAPAPIAccessMode';
|
|
17
16
|
export function LDAPProviderRequestFromJSON(json) {
|
|
18
17
|
return LDAPProviderRequestFromJSONTyped(json, false);
|
|
19
18
|
}
|
|
@@ -31,8 +30,8 @@ export function LDAPProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
30
|
'tlsServerName': !exists(json, 'tls_server_name') ? undefined : json['tls_server_name'],
|
|
32
31
|
'uidStartNumber': !exists(json, 'uid_start_number') ? undefined : json['uid_start_number'],
|
|
33
32
|
'gidStartNumber': !exists(json, 'gid_start_number') ? undefined : json['gid_start_number'],
|
|
34
|
-
'searchMode': !exists(json, 'search_mode') ? undefined :
|
|
35
|
-
'bindMode': !exists(json, 'bind_mode') ? undefined :
|
|
33
|
+
'searchMode': !exists(json, 'search_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['search_mode']),
|
|
34
|
+
'bindMode': !exists(json, 'bind_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['bind_mode']),
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
export function LDAPProviderRequestToJSON(value) {
|
|
@@ -52,7 +51,7 @@ export function LDAPProviderRequestToJSON(value) {
|
|
|
52
51
|
'tls_server_name': value.tlsServerName,
|
|
53
52
|
'uid_start_number': value.uidStartNumber,
|
|
54
53
|
'gid_start_number': value.gidStartNumber,
|
|
55
|
-
'search_mode':
|
|
56
|
-
'bind_mode':
|
|
54
|
+
'search_mode': LDAPAPIAccessModeToJSON(value.searchMode),
|
|
55
|
+
'bind_mode': LDAPAPIAccessModeToJSON(value.bindMode),
|
|
57
56
|
};
|
|
58
57
|
}
|
|
@@ -48,6 +48,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
|
|
|
48
48
|
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
50
|
configurationStages?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof PatchedAuthenticatorValidateStageRequest
|
|
55
|
+
*/
|
|
56
|
+
lastAuthThreshold?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest;
|
|
53
59
|
export declare function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorValidateStageRequest;
|
|
@@ -28,6 +28,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, igno
|
|
|
28
28
|
'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
29
29
|
'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
|
|
30
30
|
'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
31
|
+
'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
@@ -43,5 +44,6 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
|
|
|
43
44
|
'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
44
45
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
|
|
45
46
|
'configuration_stages': value.configurationStages,
|
|
47
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
46
48
|
};
|
|
47
49
|
}
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { SearchModeEnum } from './SearchModeEnum';
|
|
12
|
+
import { LDAPAPIAccessMode } from './LDAPAPIAccessMode';
|
|
14
13
|
/**
|
|
15
14
|
* LDAPProvider Serializer
|
|
16
15
|
* @export
|
|
@@ -73,16 +72,16 @@ export interface PatchedLDAPProviderRequest {
|
|
|
73
72
|
gidStartNumber?: number;
|
|
74
73
|
/**
|
|
75
74
|
*
|
|
76
|
-
* @type {
|
|
75
|
+
* @type {LDAPAPIAccessMode}
|
|
77
76
|
* @memberof PatchedLDAPProviderRequest
|
|
78
77
|
*/
|
|
79
|
-
searchMode?:
|
|
78
|
+
searchMode?: LDAPAPIAccessMode;
|
|
80
79
|
/**
|
|
81
80
|
*
|
|
82
|
-
* @type {
|
|
81
|
+
* @type {LDAPAPIAccessMode}
|
|
83
82
|
* @memberof PatchedLDAPProviderRequest
|
|
84
83
|
*/
|
|
85
|
-
bindMode?:
|
|
84
|
+
bindMode?: LDAPAPIAccessMode;
|
|
86
85
|
}
|
|
87
86
|
export declare function PatchedLDAPProviderRequestFromJSON(json: any): PatchedLDAPProviderRequest;
|
|
88
87
|
export declare function PatchedLDAPProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedLDAPProviderRequest;
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
-
import {
|
|
16
|
-
import { SearchModeEnumFromJSON, SearchModeEnumToJSON, } from './SearchModeEnum';
|
|
15
|
+
import { LDAPAPIAccessModeFromJSON, LDAPAPIAccessModeToJSON, } from './LDAPAPIAccessMode';
|
|
17
16
|
export function PatchedLDAPProviderRequestFromJSON(json) {
|
|
18
17
|
return PatchedLDAPProviderRequestFromJSONTyped(json, false);
|
|
19
18
|
}
|
|
@@ -31,8 +30,8 @@ export function PatchedLDAPProviderRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
31
30
|
'tlsServerName': !exists(json, 'tls_server_name') ? undefined : json['tls_server_name'],
|
|
32
31
|
'uidStartNumber': !exists(json, 'uid_start_number') ? undefined : json['uid_start_number'],
|
|
33
32
|
'gidStartNumber': !exists(json, 'gid_start_number') ? undefined : json['gid_start_number'],
|
|
34
|
-
'searchMode': !exists(json, 'search_mode') ? undefined :
|
|
35
|
-
'bindMode': !exists(json, 'bind_mode') ? undefined :
|
|
33
|
+
'searchMode': !exists(json, 'search_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['search_mode']),
|
|
34
|
+
'bindMode': !exists(json, 'bind_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['bind_mode']),
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
export function PatchedLDAPProviderRequestToJSON(value) {
|
|
@@ -52,7 +51,7 @@ export function PatchedLDAPProviderRequestToJSON(value) {
|
|
|
52
51
|
'tls_server_name': value.tlsServerName,
|
|
53
52
|
'uid_start_number': value.uidStartNumber,
|
|
54
53
|
'gid_start_number': value.gidStartNumber,
|
|
55
|
-
'search_mode':
|
|
56
|
-
'bind_mode':
|
|
54
|
+
'search_mode': LDAPAPIAccessModeToJSON(value.searchMode),
|
|
55
|
+
'bind_mode': LDAPAPIAccessModeToJSON(value.bindMode),
|
|
57
56
|
};
|
|
58
57
|
}
|
|
@@ -40,7 +40,6 @@ export * from './AuthenticatorWebAuthnChallengeResponseRequest';
|
|
|
40
40
|
export * from './AutoSubmitChallengeResponseRequest';
|
|
41
41
|
export * from './AutosubmitChallenge';
|
|
42
42
|
export * from './BackendsEnum';
|
|
43
|
-
export * from './BindModeEnum';
|
|
44
43
|
export * from './BindingTypeEnum';
|
|
45
44
|
export * from './Cache';
|
|
46
45
|
export * from './CapabilitiesEnum';
|
|
@@ -128,6 +127,7 @@ export * from './InvitationStageRequest';
|
|
|
128
127
|
export * from './IssuerModeEnum';
|
|
129
128
|
export * from './KubernetesServiceConnection';
|
|
130
129
|
export * from './KubernetesServiceConnectionRequest';
|
|
130
|
+
export * from './LDAPAPIAccessMode';
|
|
131
131
|
export * from './LDAPOutpostConfig';
|
|
132
132
|
export * from './LDAPPropertyMapping';
|
|
133
133
|
export * from './LDAPPropertyMappingRequest';
|
|
@@ -360,7 +360,6 @@ export * from './SMSDevice';
|
|
|
360
360
|
export * from './SMSDeviceRequest';
|
|
361
361
|
export * from './ScopeMapping';
|
|
362
362
|
export * from './ScopeMappingRequest';
|
|
363
|
-
export * from './SearchModeEnum';
|
|
364
363
|
export * from './SelectableStage';
|
|
365
364
|
export * from './ServiceConnection';
|
|
366
365
|
export * from './ServiceConnectionRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -42,7 +42,6 @@ export * from './AuthenticatorWebAuthnChallengeResponseRequest';
|
|
|
42
42
|
export * from './AutoSubmitChallengeResponseRequest';
|
|
43
43
|
export * from './AutosubmitChallenge';
|
|
44
44
|
export * from './BackendsEnum';
|
|
45
|
-
export * from './BindModeEnum';
|
|
46
45
|
export * from './BindingTypeEnum';
|
|
47
46
|
export * from './Cache';
|
|
48
47
|
export * from './CapabilitiesEnum';
|
|
@@ -130,6 +129,7 @@ export * from './InvitationStageRequest';
|
|
|
130
129
|
export * from './IssuerModeEnum';
|
|
131
130
|
export * from './KubernetesServiceConnection';
|
|
132
131
|
export * from './KubernetesServiceConnectionRequest';
|
|
132
|
+
export * from './LDAPAPIAccessMode';
|
|
133
133
|
export * from './LDAPOutpostConfig';
|
|
134
134
|
export * from './LDAPPropertyMapping';
|
|
135
135
|
export * from './LDAPPropertyMappingRequest';
|
|
@@ -362,7 +362,6 @@ export * from './SMSDevice';
|
|
|
362
362
|
export * from './SMSDeviceRequest';
|
|
363
363
|
export * from './ScopeMapping';
|
|
364
364
|
export * from './ScopeMappingRequest';
|
|
365
|
-
export * from './SearchModeEnum';
|
|
366
365
|
export * from './SelectableStage';
|
|
367
366
|
export * from './ServiceConnection';
|
|
368
367
|
export * from './ServiceConnectionRequest';
|
|
@@ -78,6 +78,12 @@ export interface AuthenticatorValidateStage {
|
|
|
78
78
|
* @memberof AuthenticatorValidateStage
|
|
79
79
|
*/
|
|
80
80
|
configurationStages?: Array<string>;
|
|
81
|
+
/**
|
|
82
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AuthenticatorValidateStage
|
|
85
|
+
*/
|
|
86
|
+
lastAuthThreshold?: string;
|
|
81
87
|
}
|
|
82
88
|
export declare function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage;
|
|
83
89
|
export declare function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage;
|
|
@@ -37,6 +37,7 @@ function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
38
38
|
'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
|
|
39
39
|
'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
40
|
+
'lastAuthThreshold': !runtime_1.exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
exports.AuthenticatorValidateStageFromJSONTyped = AuthenticatorValidateStageFromJSONTyped;
|
|
@@ -53,6 +54,7 @@ function AuthenticatorValidateStageToJSON(value) {
|
|
|
53
54
|
'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
54
55
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
|
|
55
56
|
'configuration_stages': value.configurationStages,
|
|
57
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
60
|
exports.AuthenticatorValidateStageToJSON = AuthenticatorValidateStageToJSON;
|
|
@@ -48,6 +48,12 @@ export interface AuthenticatorValidateStageRequest {
|
|
|
48
48
|
* @memberof AuthenticatorValidateStageRequest
|
|
49
49
|
*/
|
|
50
50
|
configurationStages?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* If any of the user's device has been used within this threshold, this stage will be skipped
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AuthenticatorValidateStageRequest
|
|
55
|
+
*/
|
|
56
|
+
lastAuthThreshold?: string;
|
|
51
57
|
}
|
|
52
58
|
export declare function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest;
|
|
53
59
|
export declare function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest;
|
|
@@ -32,6 +32,7 @@ function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
32
32
|
'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
|
|
33
33
|
'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
|
|
34
34
|
'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
|
|
35
|
+
'lastAuthThreshold': !runtime_1.exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
exports.AuthenticatorValidateStageRequestFromJSONTyped = AuthenticatorValidateStageRequestFromJSONTyped;
|
|
@@ -48,6 +49,7 @@ function AuthenticatorValidateStageRequestToJSON(value) {
|
|
|
48
49
|
'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
|
|
49
50
|
'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
|
|
50
51
|
'configuration_stages': value.configurationStages,
|
|
52
|
+
'last_auth_threshold': value.lastAuthThreshold,
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
exports.AuthenticatorValidateStageRequestToJSON = AuthenticatorValidateStageRequestToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.4.1
|
|
6
|
+
* Contact: hello@beryju.org
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const LDAPAPIAccessMode: {
|
|
17
|
+
readonly Direct: "direct";
|
|
18
|
+
readonly Cached: "cached";
|
|
19
|
+
};
|
|
20
|
+
export declare type LDAPAPIAccessMode = typeof LDAPAPIAccessMode[keyof typeof LDAPAPIAccessMode];
|
|
21
|
+
export declare function LDAPAPIAccessModeFromJSON(json: any): LDAPAPIAccessMode;
|
|
22
|
+
export declare function LDAPAPIAccessModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPAPIAccessMode;
|
|
23
|
+
export declare function LDAPAPIAccessModeToJSON(value?: LDAPAPIAccessMode | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2022.4.1
|
|
9
|
+
* Contact: hello@beryju.org
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LDAPAPIAccessModeToJSON = exports.LDAPAPIAccessModeFromJSONTyped = exports.LDAPAPIAccessModeFromJSON = exports.LDAPAPIAccessMode = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.LDAPAPIAccessMode = {
|
|
22
|
+
Direct: 'direct',
|
|
23
|
+
Cached: 'cached'
|
|
24
|
+
};
|
|
25
|
+
function LDAPAPIAccessModeFromJSON(json) {
|
|
26
|
+
return LDAPAPIAccessModeFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.LDAPAPIAccessModeFromJSON = LDAPAPIAccessModeFromJSON;
|
|
29
|
+
function LDAPAPIAccessModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
exports.LDAPAPIAccessModeFromJSONTyped = LDAPAPIAccessModeFromJSONTyped;
|
|
33
|
+
function LDAPAPIAccessModeToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
exports.LDAPAPIAccessModeToJSON = LDAPAPIAccessModeToJSON;
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { SearchModeEnum } from './SearchModeEnum';
|
|
12
|
+
import { LDAPAPIAccessMode } from './LDAPAPIAccessMode';
|
|
14
13
|
/**
|
|
15
14
|
* LDAPProvider Serializer
|
|
16
15
|
* @export
|
|
@@ -79,16 +78,16 @@ export interface LDAPOutpostConfig {
|
|
|
79
78
|
gidStartNumber?: number;
|
|
80
79
|
/**
|
|
81
80
|
*
|
|
82
|
-
* @type {
|
|
81
|
+
* @type {LDAPAPIAccessMode}
|
|
83
82
|
* @memberof LDAPOutpostConfig
|
|
84
83
|
*/
|
|
85
|
-
searchMode?:
|
|
84
|
+
searchMode?: LDAPAPIAccessMode;
|
|
86
85
|
/**
|
|
87
86
|
*
|
|
88
|
-
* @type {
|
|
87
|
+
* @type {LDAPAPIAccessMode}
|
|
89
88
|
* @memberof LDAPOutpostConfig
|
|
90
89
|
*/
|
|
91
|
-
bindMode?:
|
|
90
|
+
bindMode?: LDAPAPIAccessMode;
|
|
92
91
|
}
|
|
93
92
|
export declare function LDAPOutpostConfigFromJSON(json: any): LDAPOutpostConfig;
|
|
94
93
|
export declare function LDAPOutpostConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPOutpostConfig;
|