@goauthentik/api 2024.8.3-1729699127 → 2024.8.3-1729836831
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/StagesApi.d.ts +1 -0
- package/dist/apis/StagesApi.js +3 -0
- package/dist/esm/apis/StagesApi.d.ts +1 -0
- package/dist/esm/apis/StagesApi.js +3 -0
- package/dist/esm/models/DeviceChallenge.d.ts +6 -0
- package/dist/esm/models/DeviceChallenge.js +3 -0
- package/dist/esm/models/DeviceChallengeRequest.d.ts +6 -0
- package/dist/esm/models/DeviceChallengeRequest.js +3 -0
- package/dist/esm/models/IdentificationChallenge.d.ts +7 -0
- package/dist/esm/models/IdentificationChallenge.js +3 -0
- package/dist/esm/models/IdentificationChallengeResponseRequest.d.ts +6 -0
- package/dist/esm/models/IdentificationChallengeResponseRequest.js +2 -0
- package/dist/esm/models/IdentificationStage.d.ts +6 -0
- package/dist/esm/models/IdentificationStage.js +2 -0
- package/dist/esm/models/IdentificationStageRequest.d.ts +6 -0
- package/dist/esm/models/IdentificationStageRequest.js +2 -0
- package/dist/esm/models/PatchedIdentificationStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedIdentificationStageRequest.js +2 -0
- package/dist/models/DeviceChallenge.d.ts +6 -0
- package/dist/models/DeviceChallenge.js +3 -0
- package/dist/models/DeviceChallengeRequest.d.ts +6 -0
- package/dist/models/DeviceChallengeRequest.js +3 -0
- package/dist/models/IdentificationChallenge.d.ts +7 -0
- package/dist/models/IdentificationChallenge.js +3 -0
- package/dist/models/IdentificationChallengeResponseRequest.d.ts +6 -0
- package/dist/models/IdentificationChallengeResponseRequest.js +2 -0
- package/dist/models/IdentificationStage.d.ts +6 -0
- package/dist/models/IdentificationStage.js +2 -0
- package/dist/models/IdentificationStageRequest.d.ts +6 -0
- package/dist/models/IdentificationStageRequest.js +2 -0
- package/dist/models/PatchedIdentificationStageRequest.d.ts +6 -0
- package/dist/models/PatchedIdentificationStageRequest.js +2 -0
- package/package.json +1 -1
- package/src/apis/StagesApi.ts +5 -0
- package/src/models/DeviceChallenge.ts +9 -0
- package/src/models/DeviceChallengeRequest.ts +9 -0
- package/src/models/IdentificationChallenge.ts +14 -0
- package/src/models/IdentificationChallengeResponseRequest.ts +8 -0
- package/src/models/IdentificationStage.ts +8 -0
- package/src/models/IdentificationStageRequest.ts +8 -0
- package/src/models/PatchedIdentificationStageRequest.ts +8 -0
package/dist/apis/StagesApi.d.ts
CHANGED
package/dist/apis/StagesApi.js
CHANGED
@@ -3889,6 +3889,9 @@ class StagesApi extends runtime.BaseAPI {
|
|
3889
3889
|
stagesIdentificationListRaw(requestParameters, initOverrides) {
|
3890
3890
|
return __awaiter(this, void 0, void 0, function* () {
|
3891
3891
|
const queryParameters = {};
|
3892
|
+
if (requestParameters.captchaStage !== undefined) {
|
3893
|
+
queryParameters['captcha_stage'] = requestParameters.captchaStage;
|
3894
|
+
}
|
3892
3895
|
if (requestParameters.caseInsensitiveMatching !== undefined) {
|
3893
3896
|
queryParameters['case_insensitive_matching'] = requestParameters.caseInsensitiveMatching;
|
3894
3897
|
}
|
@@ -3886,6 +3886,9 @@ export class StagesApi extends runtime.BaseAPI {
|
|
3886
3886
|
stagesIdentificationListRaw(requestParameters, initOverrides) {
|
3887
3887
|
return __awaiter(this, void 0, void 0, function* () {
|
3888
3888
|
const queryParameters = {};
|
3889
|
+
if (requestParameters.captchaStage !== undefined) {
|
3890
|
+
queryParameters['captcha_stage'] = requestParameters.captchaStage;
|
3891
|
+
}
|
3889
3892
|
if (requestParameters.caseInsensitiveMatching !== undefined) {
|
3890
3893
|
queryParameters['case_insensitive_matching'] = requestParameters.caseInsensitiveMatching;
|
3891
3894
|
}
|
@@ -35,6 +35,12 @@ export interface DeviceChallenge {
|
|
35
35
|
challenge: {
|
36
36
|
[key: string]: any;
|
37
37
|
};
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {Date}
|
41
|
+
* @memberof DeviceChallenge
|
42
|
+
*/
|
43
|
+
lastUsed: Date | null;
|
38
44
|
}
|
39
45
|
/**
|
40
46
|
* Check if a given object implements the DeviceChallenge interface.
|
@@ -19,6 +19,7 @@ export function instanceOfDeviceChallenge(value) {
|
|
19
19
|
isInstance = isInstance && "deviceClass" in value;
|
20
20
|
isInstance = isInstance && "deviceUid" in value;
|
21
21
|
isInstance = isInstance && "challenge" in value;
|
22
|
+
isInstance = isInstance && "lastUsed" in value;
|
22
23
|
return isInstance;
|
23
24
|
}
|
24
25
|
export function DeviceChallengeFromJSON(json) {
|
@@ -32,6 +33,7 @@ export function DeviceChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
33
|
'deviceClass': json['device_class'],
|
33
34
|
'deviceUid': json['device_uid'],
|
34
35
|
'challenge': json['challenge'],
|
36
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
35
37
|
};
|
36
38
|
}
|
37
39
|
export function DeviceChallengeToJSON(value) {
|
@@ -45,5 +47,6 @@ export function DeviceChallengeToJSON(value) {
|
|
45
47
|
'device_class': value.deviceClass,
|
46
48
|
'device_uid': value.deviceUid,
|
47
49
|
'challenge': value.challenge,
|
50
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
48
51
|
};
|
49
52
|
}
|
@@ -35,6 +35,12 @@ export interface DeviceChallengeRequest {
|
|
35
35
|
challenge: {
|
36
36
|
[key: string]: any;
|
37
37
|
};
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {Date}
|
41
|
+
* @memberof DeviceChallengeRequest
|
42
|
+
*/
|
43
|
+
lastUsed: Date | null;
|
38
44
|
}
|
39
45
|
/**
|
40
46
|
* Check if a given object implements the DeviceChallengeRequest interface.
|
@@ -19,6 +19,7 @@ export function instanceOfDeviceChallengeRequest(value) {
|
|
19
19
|
isInstance = isInstance && "deviceClass" in value;
|
20
20
|
isInstance = isInstance && "deviceUid" in value;
|
21
21
|
isInstance = isInstance && "challenge" in value;
|
22
|
+
isInstance = isInstance && "lastUsed" in value;
|
22
23
|
return isInstance;
|
23
24
|
}
|
24
25
|
export function DeviceChallengeRequestFromJSON(json) {
|
@@ -32,6 +33,7 @@ export function DeviceChallengeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
33
|
'deviceClass': json['device_class'],
|
33
34
|
'deviceUid': json['device_uid'],
|
34
35
|
'challenge': json['challenge'],
|
36
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
35
37
|
};
|
36
38
|
}
|
37
39
|
export function DeviceChallengeRequestToJSON(value) {
|
@@ -45,5 +47,6 @@ export function DeviceChallengeRequestToJSON(value) {
|
|
45
47
|
'device_class': value.deviceClass,
|
46
48
|
'device_uid': value.deviceUid,
|
47
49
|
'challenge': value.challenge,
|
50
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
48
51
|
};
|
49
52
|
}
|
@@ -9,6 +9,7 @@
|
|
9
9
|
* https://openapi-generator.tech
|
10
10
|
* Do not edit the class manually.
|
11
11
|
*/
|
12
|
+
import type { CaptchaChallenge } from './CaptchaChallenge';
|
12
13
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
13
14
|
import type { ErrorDetail } from './ErrorDetail';
|
14
15
|
import type { FlowDesignationEnum } from './FlowDesignationEnum';
|
@@ -69,6 +70,12 @@ export interface IdentificationChallenge {
|
|
69
70
|
* @memberof IdentificationChallenge
|
70
71
|
*/
|
71
72
|
flowDesignation: FlowDesignationEnum;
|
73
|
+
/**
|
74
|
+
*
|
75
|
+
* @type {CaptchaChallenge}
|
76
|
+
* @memberof IdentificationChallenge
|
77
|
+
*/
|
78
|
+
captchaStage?: CaptchaChallenge;
|
72
79
|
/**
|
73
80
|
*
|
74
81
|
* @type {string}
|
@@ -12,6 +12,7 @@
|
|
12
12
|
* Do not edit the class manually.
|
13
13
|
*/
|
14
14
|
import { exists } from '../runtime';
|
15
|
+
import { CaptchaChallengeFromJSON, CaptchaChallengeToJSON, } from './CaptchaChallenge';
|
15
16
|
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
16
17
|
import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
|
17
18
|
import { LoginSourceFromJSON, LoginSourceToJSON, } from './LoginSource';
|
@@ -43,6 +44,7 @@ export function IdentificationChallengeFromJSONTyped(json, ignoreDiscriminator)
|
|
43
44
|
'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
|
44
45
|
'applicationPre': !exists(json, 'application_pre') ? undefined : json['application_pre'],
|
45
46
|
'flowDesignation': FlowDesignationEnumFromJSON(json['flow_designation']),
|
47
|
+
'captchaStage': !exists(json, 'captcha_stage') ? undefined : CaptchaChallengeFromJSON(json['captcha_stage']),
|
46
48
|
'enrollUrl': !exists(json, 'enroll_url') ? undefined : json['enroll_url'],
|
47
49
|
'recoveryUrl': !exists(json, 'recovery_url') ? undefined : json['recovery_url'],
|
48
50
|
'passwordlessUrl': !exists(json, 'passwordless_url') ? undefined : json['passwordless_url'],
|
@@ -67,6 +69,7 @@ export function IdentificationChallengeToJSON(value) {
|
|
67
69
|
'allow_show_password': value.allowShowPassword,
|
68
70
|
'application_pre': value.applicationPre,
|
69
71
|
'flow_designation': FlowDesignationEnumToJSON(value.flowDesignation),
|
72
|
+
'captcha_stage': CaptchaChallengeToJSON(value.captchaStage),
|
70
73
|
'enroll_url': value.enrollUrl,
|
71
74
|
'recovery_url': value.recoveryUrl,
|
72
75
|
'passwordless_url': value.passwordlessUrl,
|
@@ -33,6 +33,12 @@ export interface IdentificationChallengeResponseRequest {
|
|
33
33
|
* @memberof IdentificationChallengeResponseRequest
|
34
34
|
*/
|
35
35
|
password?: string | null;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @type {string}
|
39
|
+
* @memberof IdentificationChallengeResponseRequest
|
40
|
+
*/
|
41
|
+
captchaToken?: string | null;
|
36
42
|
}
|
37
43
|
/**
|
38
44
|
* Check if a given object implements the IdentificationChallengeResponseRequest interface.
|
@@ -31,6 +31,7 @@ export function IdentificationChallengeResponseRequestFromJSONTyped(json, ignore
|
|
31
31
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
32
32
|
'uidField': json['uid_field'],
|
33
33
|
'password': !exists(json, 'password') ? undefined : json['password'],
|
34
|
+
'captchaToken': !exists(json, 'captcha_token') ? undefined : json['captcha_token'],
|
34
35
|
};
|
35
36
|
}
|
36
37
|
export function IdentificationChallengeResponseRequestToJSON(value) {
|
@@ -44,5 +45,6 @@ export function IdentificationChallengeResponseRequestToJSON(value) {
|
|
44
45
|
'component': value.component,
|
45
46
|
'uid_field': value.uidField,
|
46
47
|
'password': value.password,
|
48
|
+
'captcha_token': value.captchaToken,
|
47
49
|
};
|
48
50
|
}
|
@@ -71,6 +71,12 @@ export interface IdentificationStage {
|
|
71
71
|
* @memberof IdentificationStage
|
72
72
|
*/
|
73
73
|
passwordStage?: string | null;
|
74
|
+
/**
|
75
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
76
|
+
* @type {string}
|
77
|
+
* @memberof IdentificationStage
|
78
|
+
*/
|
79
|
+
captchaStage?: string | null;
|
74
80
|
/**
|
75
81
|
* When enabled, user fields are matched regardless of their casing.
|
76
82
|
* @type {boolean}
|
@@ -44,6 +44,7 @@ export function IdentificationStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
44
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
|
45
45
|
'userFields': !exists(json, 'user_fields') ? undefined : (json['user_fields'].map(UserFieldsEnumFromJSON)),
|
46
46
|
'passwordStage': !exists(json, 'password_stage') ? undefined : json['password_stage'],
|
47
|
+
'captchaStage': !exists(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
47
48
|
'caseInsensitiveMatching': !exists(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
48
49
|
'showMatchedUser': !exists(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
49
50
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -66,6 +67,7 @@ export function IdentificationStageToJSON(value) {
|
|
66
67
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
|
67
68
|
'user_fields': value.userFields === undefined ? undefined : (value.userFields.map(UserFieldsEnumToJSON)),
|
68
69
|
'password_stage': value.passwordStage,
|
70
|
+
'captcha_stage': value.captchaStage,
|
69
71
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
70
72
|
'show_matched_user': value.showMatchedUser,
|
71
73
|
'enrollment_flow': value.enrollmentFlow,
|
@@ -41,6 +41,12 @@ export interface IdentificationStageRequest {
|
|
41
41
|
* @memberof IdentificationStageRequest
|
42
42
|
*/
|
43
43
|
passwordStage?: string | null;
|
44
|
+
/**
|
45
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
46
|
+
* @type {string}
|
47
|
+
* @memberof IdentificationStageRequest
|
48
|
+
*/
|
49
|
+
captchaStage?: string | null;
|
44
50
|
/**
|
45
51
|
* When enabled, user fields are matched regardless of their casing.
|
46
52
|
* @type {boolean}
|
@@ -34,6 +34,7 @@ export function IdentificationStageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
34
34
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
|
35
35
|
'userFields': !exists(json, 'user_fields') ? undefined : (json['user_fields'].map(UserFieldsEnumFromJSON)),
|
36
36
|
'passwordStage': !exists(json, 'password_stage') ? undefined : json['password_stage'],
|
37
|
+
'captchaStage': !exists(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
37
38
|
'caseInsensitiveMatching': !exists(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
38
39
|
'showMatchedUser': !exists(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
39
40
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -56,6 +57,7 @@ export function IdentificationStageRequestToJSON(value) {
|
|
56
57
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
|
57
58
|
'user_fields': value.userFields === undefined ? undefined : (value.userFields.map(UserFieldsEnumToJSON)),
|
58
59
|
'password_stage': value.passwordStage,
|
60
|
+
'captcha_stage': value.captchaStage,
|
59
61
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
60
62
|
'show_matched_user': value.showMatchedUser,
|
61
63
|
'enrollment_flow': value.enrollmentFlow,
|
@@ -41,6 +41,12 @@ export interface PatchedIdentificationStageRequest {
|
|
41
41
|
* @memberof PatchedIdentificationStageRequest
|
42
42
|
*/
|
43
43
|
passwordStage?: string | null;
|
44
|
+
/**
|
45
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
46
|
+
* @type {string}
|
47
|
+
* @memberof PatchedIdentificationStageRequest
|
48
|
+
*/
|
49
|
+
captchaStage?: string | null;
|
44
50
|
/**
|
45
51
|
* When enabled, user fields are matched regardless of their casing.
|
46
52
|
* @type {boolean}
|
@@ -33,6 +33,7 @@ export function PatchedIdentificationStageRequestFromJSONTyped(json, ignoreDiscr
|
|
33
33
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
|
34
34
|
'userFields': !exists(json, 'user_fields') ? undefined : (json['user_fields'].map(UserFieldsEnumFromJSON)),
|
35
35
|
'passwordStage': !exists(json, 'password_stage') ? undefined : json['password_stage'],
|
36
|
+
'captchaStage': !exists(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
36
37
|
'caseInsensitiveMatching': !exists(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
37
38
|
'showMatchedUser': !exists(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
38
39
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -55,6 +56,7 @@ export function PatchedIdentificationStageRequestToJSON(value) {
|
|
55
56
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
|
56
57
|
'user_fields': value.userFields === undefined ? undefined : (value.userFields.map(UserFieldsEnumToJSON)),
|
57
58
|
'password_stage': value.passwordStage,
|
59
|
+
'captcha_stage': value.captchaStage,
|
58
60
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
59
61
|
'show_matched_user': value.showMatchedUser,
|
60
62
|
'enrollment_flow': value.enrollmentFlow,
|
@@ -35,6 +35,12 @@ export interface DeviceChallenge {
|
|
35
35
|
challenge: {
|
36
36
|
[key: string]: any;
|
37
37
|
};
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {Date}
|
41
|
+
* @memberof DeviceChallenge
|
42
|
+
*/
|
43
|
+
lastUsed: Date | null;
|
38
44
|
}
|
39
45
|
/**
|
40
46
|
* Check if a given object implements the DeviceChallenge interface.
|
@@ -22,6 +22,7 @@ function instanceOfDeviceChallenge(value) {
|
|
22
22
|
isInstance = isInstance && "deviceClass" in value;
|
23
23
|
isInstance = isInstance && "deviceUid" in value;
|
24
24
|
isInstance = isInstance && "challenge" in value;
|
25
|
+
isInstance = isInstance && "lastUsed" in value;
|
25
26
|
return isInstance;
|
26
27
|
}
|
27
28
|
exports.instanceOfDeviceChallenge = instanceOfDeviceChallenge;
|
@@ -37,6 +38,7 @@ function DeviceChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
38
|
'deviceClass': json['device_class'],
|
38
39
|
'deviceUid': json['device_uid'],
|
39
40
|
'challenge': json['challenge'],
|
41
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
40
42
|
};
|
41
43
|
}
|
42
44
|
exports.DeviceChallengeFromJSONTyped = DeviceChallengeFromJSONTyped;
|
@@ -51,6 +53,7 @@ function DeviceChallengeToJSON(value) {
|
|
51
53
|
'device_class': value.deviceClass,
|
52
54
|
'device_uid': value.deviceUid,
|
53
55
|
'challenge': value.challenge,
|
56
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
54
57
|
};
|
55
58
|
}
|
56
59
|
exports.DeviceChallengeToJSON = DeviceChallengeToJSON;
|
@@ -35,6 +35,12 @@ export interface DeviceChallengeRequest {
|
|
35
35
|
challenge: {
|
36
36
|
[key: string]: any;
|
37
37
|
};
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {Date}
|
41
|
+
* @memberof DeviceChallengeRequest
|
42
|
+
*/
|
43
|
+
lastUsed: Date | null;
|
38
44
|
}
|
39
45
|
/**
|
40
46
|
* Check if a given object implements the DeviceChallengeRequest interface.
|
@@ -22,6 +22,7 @@ function instanceOfDeviceChallengeRequest(value) {
|
|
22
22
|
isInstance = isInstance && "deviceClass" in value;
|
23
23
|
isInstance = isInstance && "deviceUid" in value;
|
24
24
|
isInstance = isInstance && "challenge" in value;
|
25
|
+
isInstance = isInstance && "lastUsed" in value;
|
25
26
|
return isInstance;
|
26
27
|
}
|
27
28
|
exports.instanceOfDeviceChallengeRequest = instanceOfDeviceChallengeRequest;
|
@@ -37,6 +38,7 @@ function DeviceChallengeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
38
|
'deviceClass': json['device_class'],
|
38
39
|
'deviceUid': json['device_uid'],
|
39
40
|
'challenge': json['challenge'],
|
41
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
40
42
|
};
|
41
43
|
}
|
42
44
|
exports.DeviceChallengeRequestFromJSONTyped = DeviceChallengeRequestFromJSONTyped;
|
@@ -51,6 +53,7 @@ function DeviceChallengeRequestToJSON(value) {
|
|
51
53
|
'device_class': value.deviceClass,
|
52
54
|
'device_uid': value.deviceUid,
|
53
55
|
'challenge': value.challenge,
|
56
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
54
57
|
};
|
55
58
|
}
|
56
59
|
exports.DeviceChallengeRequestToJSON = DeviceChallengeRequestToJSON;
|
@@ -9,6 +9,7 @@
|
|
9
9
|
* https://openapi-generator.tech
|
10
10
|
* Do not edit the class manually.
|
11
11
|
*/
|
12
|
+
import type { CaptchaChallenge } from './CaptchaChallenge';
|
12
13
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
13
14
|
import type { ErrorDetail } from './ErrorDetail';
|
14
15
|
import type { FlowDesignationEnum } from './FlowDesignationEnum';
|
@@ -69,6 +70,12 @@ export interface IdentificationChallenge {
|
|
69
70
|
* @memberof IdentificationChallenge
|
70
71
|
*/
|
71
72
|
flowDesignation: FlowDesignationEnum;
|
73
|
+
/**
|
74
|
+
*
|
75
|
+
* @type {CaptchaChallenge}
|
76
|
+
* @memberof IdentificationChallenge
|
77
|
+
*/
|
78
|
+
captchaStage?: CaptchaChallenge;
|
72
79
|
/**
|
73
80
|
*
|
74
81
|
* @type {string}
|
@@ -15,6 +15,7 @@
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
16
|
exports.IdentificationChallengeToJSON = exports.IdentificationChallengeFromJSONTyped = exports.IdentificationChallengeFromJSON = exports.instanceOfIdentificationChallenge = void 0;
|
17
17
|
const runtime_1 = require("../runtime");
|
18
|
+
const CaptchaChallenge_1 = require("./CaptchaChallenge");
|
18
19
|
const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
|
19
20
|
const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
|
20
21
|
const LoginSource_1 = require("./LoginSource");
|
@@ -48,6 +49,7 @@ function IdentificationChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
49
|
'allowShowPassword': !(0, runtime_1.exists)(json, 'allow_show_password') ? undefined : json['allow_show_password'],
|
49
50
|
'applicationPre': !(0, runtime_1.exists)(json, 'application_pre') ? undefined : json['application_pre'],
|
50
51
|
'flowDesignation': (0, FlowDesignationEnum_1.FlowDesignationEnumFromJSON)(json['flow_designation']),
|
52
|
+
'captchaStage': !(0, runtime_1.exists)(json, 'captcha_stage') ? undefined : (0, CaptchaChallenge_1.CaptchaChallengeFromJSON)(json['captcha_stage']),
|
51
53
|
'enrollUrl': !(0, runtime_1.exists)(json, 'enroll_url') ? undefined : json['enroll_url'],
|
52
54
|
'recoveryUrl': !(0, runtime_1.exists)(json, 'recovery_url') ? undefined : json['recovery_url'],
|
53
55
|
'passwordlessUrl': !(0, runtime_1.exists)(json, 'passwordless_url') ? undefined : json['passwordless_url'],
|
@@ -73,6 +75,7 @@ function IdentificationChallengeToJSON(value) {
|
|
73
75
|
'allow_show_password': value.allowShowPassword,
|
74
76
|
'application_pre': value.applicationPre,
|
75
77
|
'flow_designation': (0, FlowDesignationEnum_1.FlowDesignationEnumToJSON)(value.flowDesignation),
|
78
|
+
'captcha_stage': (0, CaptchaChallenge_1.CaptchaChallengeToJSON)(value.captchaStage),
|
76
79
|
'enroll_url': value.enrollUrl,
|
77
80
|
'recovery_url': value.recoveryUrl,
|
78
81
|
'passwordless_url': value.passwordlessUrl,
|
@@ -33,6 +33,12 @@ export interface IdentificationChallengeResponseRequest {
|
|
33
33
|
* @memberof IdentificationChallengeResponseRequest
|
34
34
|
*/
|
35
35
|
password?: string | null;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @type {string}
|
39
|
+
* @memberof IdentificationChallengeResponseRequest
|
40
|
+
*/
|
41
|
+
captchaToken?: string | null;
|
36
42
|
}
|
37
43
|
/**
|
38
44
|
* Check if a given object implements the IdentificationChallengeResponseRequest interface.
|
@@ -36,6 +36,7 @@ function IdentificationChallengeResponseRequestFromJSONTyped(json, ignoreDiscrim
|
|
36
36
|
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
37
37
|
'uidField': json['uid_field'],
|
38
38
|
'password': !(0, runtime_1.exists)(json, 'password') ? undefined : json['password'],
|
39
|
+
'captchaToken': !(0, runtime_1.exists)(json, 'captcha_token') ? undefined : json['captcha_token'],
|
39
40
|
};
|
40
41
|
}
|
41
42
|
exports.IdentificationChallengeResponseRequestFromJSONTyped = IdentificationChallengeResponseRequestFromJSONTyped;
|
@@ -50,6 +51,7 @@ function IdentificationChallengeResponseRequestToJSON(value) {
|
|
50
51
|
'component': value.component,
|
51
52
|
'uid_field': value.uidField,
|
52
53
|
'password': value.password,
|
54
|
+
'captcha_token': value.captchaToken,
|
53
55
|
};
|
54
56
|
}
|
55
57
|
exports.IdentificationChallengeResponseRequestToJSON = IdentificationChallengeResponseRequestToJSON;
|
@@ -71,6 +71,12 @@ export interface IdentificationStage {
|
|
71
71
|
* @memberof IdentificationStage
|
72
72
|
*/
|
73
73
|
passwordStage?: string | null;
|
74
|
+
/**
|
75
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
76
|
+
* @type {string}
|
77
|
+
* @memberof IdentificationStage
|
78
|
+
*/
|
79
|
+
captchaStage?: string | null;
|
74
80
|
/**
|
75
81
|
* When enabled, user fields are matched regardless of their casing.
|
76
82
|
* @type {boolean}
|
@@ -49,6 +49,7 @@ function IdentificationStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
49
|
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
|
50
50
|
'userFields': !(0, runtime_1.exists)(json, 'user_fields') ? undefined : (json['user_fields'].map(UserFieldsEnum_1.UserFieldsEnumFromJSON)),
|
51
51
|
'passwordStage': !(0, runtime_1.exists)(json, 'password_stage') ? undefined : json['password_stage'],
|
52
|
+
'captchaStage': !(0, runtime_1.exists)(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
52
53
|
'caseInsensitiveMatching': !(0, runtime_1.exists)(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
53
54
|
'showMatchedUser': !(0, runtime_1.exists)(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
54
55
|
'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -72,6 +73,7 @@ function IdentificationStageToJSON(value) {
|
|
72
73
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSet_1.FlowSetToJSON)),
|
73
74
|
'user_fields': value.userFields === undefined ? undefined : (value.userFields.map(UserFieldsEnum_1.UserFieldsEnumToJSON)),
|
74
75
|
'password_stage': value.passwordStage,
|
76
|
+
'captcha_stage': value.captchaStage,
|
75
77
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
76
78
|
'show_matched_user': value.showMatchedUser,
|
77
79
|
'enrollment_flow': value.enrollmentFlow,
|
@@ -41,6 +41,12 @@ export interface IdentificationStageRequest {
|
|
41
41
|
* @memberof IdentificationStageRequest
|
42
42
|
*/
|
43
43
|
passwordStage?: string | null;
|
44
|
+
/**
|
45
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
46
|
+
* @type {string}
|
47
|
+
* @memberof IdentificationStageRequest
|
48
|
+
*/
|
49
|
+
captchaStage?: string | null;
|
44
50
|
/**
|
45
51
|
* When enabled, user fields are matched regardless of their casing.
|
46
52
|
* @type {boolean}
|
@@ -39,6 +39,7 @@ function IdentificationStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
40
40
|
'userFields': !(0, runtime_1.exists)(json, 'user_fields') ? undefined : (json['user_fields'].map(UserFieldsEnum_1.UserFieldsEnumFromJSON)),
|
41
41
|
'passwordStage': !(0, runtime_1.exists)(json, 'password_stage') ? undefined : json['password_stage'],
|
42
|
+
'captchaStage': !(0, runtime_1.exists)(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
42
43
|
'caseInsensitiveMatching': !(0, runtime_1.exists)(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
43
44
|
'showMatchedUser': !(0, runtime_1.exists)(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
44
45
|
'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -62,6 +63,7 @@ function IdentificationStageRequestToJSON(value) {
|
|
62
63
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
63
64
|
'user_fields': value.userFields === undefined ? undefined : (value.userFields.map(UserFieldsEnum_1.UserFieldsEnumToJSON)),
|
64
65
|
'password_stage': value.passwordStage,
|
66
|
+
'captcha_stage': value.captchaStage,
|
65
67
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
66
68
|
'show_matched_user': value.showMatchedUser,
|
67
69
|
'enrollment_flow': value.enrollmentFlow,
|
@@ -41,6 +41,12 @@ export interface PatchedIdentificationStageRequest {
|
|
41
41
|
* @memberof PatchedIdentificationStageRequest
|
42
42
|
*/
|
43
43
|
passwordStage?: string | null;
|
44
|
+
/**
|
45
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
46
|
+
* @type {string}
|
47
|
+
* @memberof PatchedIdentificationStageRequest
|
48
|
+
*/
|
49
|
+
captchaStage?: string | null;
|
44
50
|
/**
|
45
51
|
* When enabled, user fields are matched regardless of their casing.
|
46
52
|
* @type {boolean}
|
@@ -38,6 +38,7 @@ function PatchedIdentificationStageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
38
38
|
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
39
39
|
'userFields': !(0, runtime_1.exists)(json, 'user_fields') ? undefined : (json['user_fields'].map(UserFieldsEnum_1.UserFieldsEnumFromJSON)),
|
40
40
|
'passwordStage': !(0, runtime_1.exists)(json, 'password_stage') ? undefined : json['password_stage'],
|
41
|
+
'captchaStage': !(0, runtime_1.exists)(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
41
42
|
'caseInsensitiveMatching': !(0, runtime_1.exists)(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
42
43
|
'showMatchedUser': !(0, runtime_1.exists)(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
43
44
|
'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -61,6 +62,7 @@ function PatchedIdentificationStageRequestToJSON(value) {
|
|
61
62
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
62
63
|
'user_fields': value.userFields === undefined ? undefined : (value.userFields.map(UserFieldsEnum_1.UserFieldsEnumToJSON)),
|
63
64
|
'password_stage': value.passwordStage,
|
65
|
+
'captcha_stage': value.captchaStage,
|
64
66
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
65
67
|
'show_matched_user': value.showMatchedUser,
|
66
68
|
'enrollment_flow': value.enrollmentFlow,
|
package/package.json
CHANGED
package/src/apis/StagesApi.ts
CHANGED
@@ -851,6 +851,7 @@ export interface StagesIdentificationDestroyRequest {
|
|
851
851
|
}
|
852
852
|
|
853
853
|
export interface StagesIdentificationListRequest {
|
854
|
+
captchaStage?: string;
|
854
855
|
caseInsensitiveMatching?: boolean;
|
855
856
|
enrollmentFlow?: string;
|
856
857
|
name?: string;
|
@@ -5578,6 +5579,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
5578
5579
|
async stagesIdentificationListRaw(requestParameters: StagesIdentificationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIdentificationStageList>> {
|
5579
5580
|
const queryParameters: any = {};
|
5580
5581
|
|
5582
|
+
if (requestParameters.captchaStage !== undefined) {
|
5583
|
+
queryParameters['captcha_stage'] = requestParameters.captchaStage;
|
5584
|
+
}
|
5585
|
+
|
5581
5586
|
if (requestParameters.caseInsensitiveMatching !== undefined) {
|
5582
5587
|
queryParameters['case_insensitive_matching'] = requestParameters.caseInsensitiveMatching;
|
5583
5588
|
}
|
@@ -37,6 +37,12 @@ export interface DeviceChallenge {
|
|
37
37
|
* @memberof DeviceChallenge
|
38
38
|
*/
|
39
39
|
challenge: { [key: string]: any; };
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {Date}
|
43
|
+
* @memberof DeviceChallenge
|
44
|
+
*/
|
45
|
+
lastUsed: Date | null;
|
40
46
|
}
|
41
47
|
|
42
48
|
/**
|
@@ -47,6 +53,7 @@ export function instanceOfDeviceChallenge(value: object): boolean {
|
|
47
53
|
isInstance = isInstance && "deviceClass" in value;
|
48
54
|
isInstance = isInstance && "deviceUid" in value;
|
49
55
|
isInstance = isInstance && "challenge" in value;
|
56
|
+
isInstance = isInstance && "lastUsed" in value;
|
50
57
|
|
51
58
|
return isInstance;
|
52
59
|
}
|
@@ -64,6 +71,7 @@ export function DeviceChallengeFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
64
71
|
'deviceClass': json['device_class'],
|
65
72
|
'deviceUid': json['device_uid'],
|
66
73
|
'challenge': json['challenge'],
|
74
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
67
75
|
};
|
68
76
|
}
|
69
77
|
|
@@ -79,6 +87,7 @@ export function DeviceChallengeToJSON(value?: DeviceChallenge | null): any {
|
|
79
87
|
'device_class': value.deviceClass,
|
80
88
|
'device_uid': value.deviceUid,
|
81
89
|
'challenge': value.challenge,
|
90
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
82
91
|
};
|
83
92
|
}
|
84
93
|
|
@@ -37,6 +37,12 @@ export interface DeviceChallengeRequest {
|
|
37
37
|
* @memberof DeviceChallengeRequest
|
38
38
|
*/
|
39
39
|
challenge: { [key: string]: any; };
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {Date}
|
43
|
+
* @memberof DeviceChallengeRequest
|
44
|
+
*/
|
45
|
+
lastUsed: Date | null;
|
40
46
|
}
|
41
47
|
|
42
48
|
/**
|
@@ -47,6 +53,7 @@ export function instanceOfDeviceChallengeRequest(value: object): boolean {
|
|
47
53
|
isInstance = isInstance && "deviceClass" in value;
|
48
54
|
isInstance = isInstance && "deviceUid" in value;
|
49
55
|
isInstance = isInstance && "challenge" in value;
|
56
|
+
isInstance = isInstance && "lastUsed" in value;
|
50
57
|
|
51
58
|
return isInstance;
|
52
59
|
}
|
@@ -64,6 +71,7 @@ export function DeviceChallengeRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
64
71
|
'deviceClass': json['device_class'],
|
65
72
|
'deviceUid': json['device_uid'],
|
66
73
|
'challenge': json['challenge'],
|
74
|
+
'lastUsed': (json['last_used'] === null ? null : new Date(json['last_used'])),
|
67
75
|
};
|
68
76
|
}
|
69
77
|
|
@@ -79,6 +87,7 @@ export function DeviceChallengeRequestToJSON(value?: DeviceChallengeRequest | nu
|
|
79
87
|
'device_class': value.deviceClass,
|
80
88
|
'device_uid': value.deviceUid,
|
81
89
|
'challenge': value.challenge,
|
90
|
+
'last_used': (value.lastUsed === null ? null : value.lastUsed.toISOString()),
|
82
91
|
};
|
83
92
|
}
|
84
93
|
|
@@ -13,6 +13,12 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { CaptchaChallenge } from './CaptchaChallenge';
|
17
|
+
import {
|
18
|
+
CaptchaChallengeFromJSON,
|
19
|
+
CaptchaChallengeFromJSONTyped,
|
20
|
+
CaptchaChallengeToJSON,
|
21
|
+
} from './CaptchaChallenge';
|
16
22
|
import type { ContextualFlowInfo } from './ContextualFlowInfo';
|
17
23
|
import {
|
18
24
|
ContextualFlowInfoFromJSON,
|
@@ -92,6 +98,12 @@ export interface IdentificationChallenge {
|
|
92
98
|
* @memberof IdentificationChallenge
|
93
99
|
*/
|
94
100
|
flowDesignation: FlowDesignationEnum;
|
101
|
+
/**
|
102
|
+
*
|
103
|
+
* @type {CaptchaChallenge}
|
104
|
+
* @memberof IdentificationChallenge
|
105
|
+
*/
|
106
|
+
captchaStage?: CaptchaChallenge;
|
95
107
|
/**
|
96
108
|
*
|
97
109
|
* @type {string}
|
@@ -162,6 +174,7 @@ export function IdentificationChallengeFromJSONTyped(json: any, ignoreDiscrimina
|
|
162
174
|
'allowShowPassword': !exists(json, 'allow_show_password') ? undefined : json['allow_show_password'],
|
163
175
|
'applicationPre': !exists(json, 'application_pre') ? undefined : json['application_pre'],
|
164
176
|
'flowDesignation': FlowDesignationEnumFromJSON(json['flow_designation']),
|
177
|
+
'captchaStage': !exists(json, 'captcha_stage') ? undefined : CaptchaChallengeFromJSON(json['captcha_stage']),
|
165
178
|
'enrollUrl': !exists(json, 'enroll_url') ? undefined : json['enroll_url'],
|
166
179
|
'recoveryUrl': !exists(json, 'recovery_url') ? undefined : json['recovery_url'],
|
167
180
|
'passwordlessUrl': !exists(json, 'passwordless_url') ? undefined : json['passwordless_url'],
|
@@ -188,6 +201,7 @@ export function IdentificationChallengeToJSON(value?: IdentificationChallenge |
|
|
188
201
|
'allow_show_password': value.allowShowPassword,
|
189
202
|
'application_pre': value.applicationPre,
|
190
203
|
'flow_designation': FlowDesignationEnumToJSON(value.flowDesignation),
|
204
|
+
'captcha_stage': CaptchaChallengeToJSON(value.captchaStage),
|
191
205
|
'enroll_url': value.enrollUrl,
|
192
206
|
'recovery_url': value.recoveryUrl,
|
193
207
|
'passwordless_url': value.passwordlessUrl,
|
@@ -37,6 +37,12 @@ export interface IdentificationChallengeResponseRequest {
|
|
37
37
|
* @memberof IdentificationChallengeResponseRequest
|
38
38
|
*/
|
39
39
|
password?: string | null;
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {string}
|
43
|
+
* @memberof IdentificationChallengeResponseRequest
|
44
|
+
*/
|
45
|
+
captchaToken?: string | null;
|
40
46
|
}
|
41
47
|
|
42
48
|
/**
|
@@ -62,6 +68,7 @@ export function IdentificationChallengeResponseRequestFromJSONTyped(json: any, i
|
|
62
68
|
'component': !exists(json, 'component') ? undefined : json['component'],
|
63
69
|
'uidField': json['uid_field'],
|
64
70
|
'password': !exists(json, 'password') ? undefined : json['password'],
|
71
|
+
'captchaToken': !exists(json, 'captcha_token') ? undefined : json['captcha_token'],
|
65
72
|
};
|
66
73
|
}
|
67
74
|
|
@@ -77,6 +84,7 @@ export function IdentificationChallengeResponseRequestToJSON(value?: Identificat
|
|
77
84
|
'component': value.component,
|
78
85
|
'uid_field': value.uidField,
|
79
86
|
'password': value.password,
|
87
|
+
'captcha_token': value.captchaToken,
|
80
88
|
};
|
81
89
|
}
|
82
90
|
|
@@ -86,6 +86,12 @@ export interface IdentificationStage {
|
|
86
86
|
* @memberof IdentificationStage
|
87
87
|
*/
|
88
88
|
passwordStage?: string | null;
|
89
|
+
/**
|
90
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
91
|
+
* @type {string}
|
92
|
+
* @memberof IdentificationStage
|
93
|
+
*/
|
94
|
+
captchaStage?: string | null;
|
89
95
|
/**
|
90
96
|
* When enabled, user fields are matched regardless of their casing.
|
91
97
|
* @type {boolean}
|
@@ -170,6 +176,7 @@ export function IdentificationStageFromJSONTyped(json: any, ignoreDiscriminator:
|
|
170
176
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
|
171
177
|
'userFields': !exists(json, 'user_fields') ? undefined : ((json['user_fields'] as Array<any>).map(UserFieldsEnumFromJSON)),
|
172
178
|
'passwordStage': !exists(json, 'password_stage') ? undefined : json['password_stage'],
|
179
|
+
'captchaStage': !exists(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
173
180
|
'caseInsensitiveMatching': !exists(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
174
181
|
'showMatchedUser': !exists(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
175
182
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -194,6 +201,7 @@ export function IdentificationStageToJSON(value?: IdentificationStage | null): a
|
|
194
201
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetToJSON)),
|
195
202
|
'user_fields': value.userFields === undefined ? undefined : ((value.userFields as Array<any>).map(UserFieldsEnumToJSON)),
|
196
203
|
'password_stage': value.passwordStage,
|
204
|
+
'captcha_stage': value.captchaStage,
|
197
205
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
198
206
|
'show_matched_user': value.showMatchedUser,
|
199
207
|
'enrollment_flow': value.enrollmentFlow,
|
@@ -56,6 +56,12 @@ export interface IdentificationStageRequest {
|
|
56
56
|
* @memberof IdentificationStageRequest
|
57
57
|
*/
|
58
58
|
passwordStage?: string | null;
|
59
|
+
/**
|
60
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
61
|
+
* @type {string}
|
62
|
+
* @memberof IdentificationStageRequest
|
63
|
+
*/
|
64
|
+
captchaStage?: string | null;
|
59
65
|
/**
|
60
66
|
* When enabled, user fields are matched regardless of their casing.
|
61
67
|
* @type {boolean}
|
@@ -130,6 +136,7 @@ export function IdentificationStageRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
130
136
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
131
137
|
'userFields': !exists(json, 'user_fields') ? undefined : ((json['user_fields'] as Array<any>).map(UserFieldsEnumFromJSON)),
|
132
138
|
'passwordStage': !exists(json, 'password_stage') ? undefined : json['password_stage'],
|
139
|
+
'captchaStage': !exists(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
133
140
|
'caseInsensitiveMatching': !exists(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
134
141
|
'showMatchedUser': !exists(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
135
142
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -154,6 +161,7 @@ export function IdentificationStageRequestToJSON(value?: IdentificationStageRequ
|
|
154
161
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
|
155
162
|
'user_fields': value.userFields === undefined ? undefined : ((value.userFields as Array<any>).map(UserFieldsEnumToJSON)),
|
156
163
|
'password_stage': value.passwordStage,
|
164
|
+
'captcha_stage': value.captchaStage,
|
157
165
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
158
166
|
'show_matched_user': value.showMatchedUser,
|
159
167
|
'enrollment_flow': value.enrollmentFlow,
|
@@ -56,6 +56,12 @@ export interface PatchedIdentificationStageRequest {
|
|
56
56
|
* @memberof PatchedIdentificationStageRequest
|
57
57
|
*/
|
58
58
|
passwordStage?: string | null;
|
59
|
+
/**
|
60
|
+
* When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.
|
61
|
+
* @type {string}
|
62
|
+
* @memberof PatchedIdentificationStageRequest
|
63
|
+
*/
|
64
|
+
captchaStage?: string | null;
|
59
65
|
/**
|
60
66
|
* When enabled, user fields are matched regardless of their casing.
|
61
67
|
* @type {boolean}
|
@@ -129,6 +135,7 @@ export function PatchedIdentificationStageRequestFromJSONTyped(json: any, ignore
|
|
129
135
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
130
136
|
'userFields': !exists(json, 'user_fields') ? undefined : ((json['user_fields'] as Array<any>).map(UserFieldsEnumFromJSON)),
|
131
137
|
'passwordStage': !exists(json, 'password_stage') ? undefined : json['password_stage'],
|
138
|
+
'captchaStage': !exists(json, 'captcha_stage') ? undefined : json['captcha_stage'],
|
132
139
|
'caseInsensitiveMatching': !exists(json, 'case_insensitive_matching') ? undefined : json['case_insensitive_matching'],
|
133
140
|
'showMatchedUser': !exists(json, 'show_matched_user') ? undefined : json['show_matched_user'],
|
134
141
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
@@ -153,6 +160,7 @@ export function PatchedIdentificationStageRequestToJSON(value?: PatchedIdentific
|
|
153
160
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
|
154
161
|
'user_fields': value.userFields === undefined ? undefined : ((value.userFields as Array<any>).map(UserFieldsEnumToJSON)),
|
155
162
|
'password_stage': value.passwordStage,
|
163
|
+
'captcha_stage': value.captchaStage,
|
156
164
|
'case_insensitive_matching': value.caseInsensitiveMatching,
|
157
165
|
'show_matched_user': value.showMatchedUser,
|
158
166
|
'enrollment_flow': value.enrollmentFlow,
|