@goauthentik/api 2024.4.2-1717033226 → 2024.4.2-1717493155
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/models/CaptchaStage.d.ts +18 -0
- package/dist/esm/models/CaptchaStage.js +6 -0
- package/dist/esm/models/CaptchaStageRequest.d.ts +18 -0
- package/dist/esm/models/CaptchaStageRequest.js +6 -0
- package/dist/esm/models/PatchedCaptchaStageRequest.d.ts +18 -0
- package/dist/esm/models/PatchedCaptchaStageRequest.js +6 -0
- package/dist/models/CaptchaStage.d.ts +18 -0
- package/dist/models/CaptchaStage.js +6 -0
- package/dist/models/CaptchaStageRequest.d.ts +18 -0
- package/dist/models/CaptchaStageRequest.js +6 -0
- package/dist/models/PatchedCaptchaStageRequest.d.ts +18 -0
- package/dist/models/PatchedCaptchaStageRequest.js +6 -0
- package/package.json +1 -1
- package/src/models/CaptchaStage.ts +24 -0
- package/src/models/CaptchaStageRequest.ts +24 -0
- package/src/models/PatchedCaptchaStageRequest.ts +24 -0
@@ -76,6 +76,24 @@ export interface CaptchaStage {
|
|
76
76
|
* @memberof CaptchaStage
|
77
77
|
*/
|
78
78
|
apiUrl?: string;
|
79
|
+
/**
|
80
|
+
*
|
81
|
+
* @type {number}
|
82
|
+
* @memberof CaptchaStage
|
83
|
+
*/
|
84
|
+
scoreMinThreshold?: number;
|
85
|
+
/**
|
86
|
+
*
|
87
|
+
* @type {number}
|
88
|
+
* @memberof CaptchaStage
|
89
|
+
*/
|
90
|
+
scoreMaxThreshold?: number;
|
91
|
+
/**
|
92
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
93
|
+
* @type {boolean}
|
94
|
+
* @memberof CaptchaStage
|
95
|
+
*/
|
96
|
+
errorOnInvalidScore?: boolean;
|
79
97
|
}
|
80
98
|
/**
|
81
99
|
* Check if a given object implements the CaptchaStage interface.
|
@@ -45,6 +45,9 @@ export function CaptchaStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
45
|
'publicKey': json['public_key'],
|
46
46
|
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
47
47
|
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
48
|
+
'scoreMinThreshold': !exists(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
49
|
+
'scoreMaxThreshold': !exists(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
50
|
+
'errorOnInvalidScore': !exists(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
48
51
|
};
|
49
52
|
}
|
50
53
|
export function CaptchaStageToJSON(value) {
|
@@ -60,5 +63,8 @@ export function CaptchaStageToJSON(value) {
|
|
60
63
|
'public_key': value.publicKey,
|
61
64
|
'js_url': value.jsUrl,
|
62
65
|
'api_url': value.apiUrl,
|
66
|
+
'score_min_threshold': value.scoreMinThreshold,
|
67
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
68
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
63
69
|
};
|
64
70
|
}
|
@@ -52,6 +52,24 @@ export interface CaptchaStageRequest {
|
|
52
52
|
* @memberof CaptchaStageRequest
|
53
53
|
*/
|
54
54
|
apiUrl?: string;
|
55
|
+
/**
|
56
|
+
*
|
57
|
+
* @type {number}
|
58
|
+
* @memberof CaptchaStageRequest
|
59
|
+
*/
|
60
|
+
scoreMinThreshold?: number;
|
61
|
+
/**
|
62
|
+
*
|
63
|
+
* @type {number}
|
64
|
+
* @memberof CaptchaStageRequest
|
65
|
+
*/
|
66
|
+
scoreMaxThreshold?: number;
|
67
|
+
/**
|
68
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
69
|
+
* @type {boolean}
|
70
|
+
* @memberof CaptchaStageRequest
|
71
|
+
*/
|
72
|
+
errorOnInvalidScore?: boolean;
|
55
73
|
}
|
56
74
|
/**
|
57
75
|
* Check if a given object implements the CaptchaStageRequest interface.
|
@@ -37,6 +37,9 @@ export function CaptchaStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
37
|
'privateKey': json['private_key'],
|
38
38
|
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
39
39
|
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
40
|
+
'scoreMinThreshold': !exists(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
41
|
+
'scoreMaxThreshold': !exists(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
42
|
+
'errorOnInvalidScore': !exists(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
40
43
|
};
|
41
44
|
}
|
42
45
|
export function CaptchaStageRequestToJSON(value) {
|
@@ -53,5 +56,8 @@ export function CaptchaStageRequestToJSON(value) {
|
|
53
56
|
'private_key': value.privateKey,
|
54
57
|
'js_url': value.jsUrl,
|
55
58
|
'api_url': value.apiUrl,
|
59
|
+
'score_min_threshold': value.scoreMinThreshold,
|
60
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
61
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
56
62
|
};
|
57
63
|
}
|
@@ -52,6 +52,24 @@ export interface PatchedCaptchaStageRequest {
|
|
52
52
|
* @memberof PatchedCaptchaStageRequest
|
53
53
|
*/
|
54
54
|
apiUrl?: string;
|
55
|
+
/**
|
56
|
+
*
|
57
|
+
* @type {number}
|
58
|
+
* @memberof PatchedCaptchaStageRequest
|
59
|
+
*/
|
60
|
+
scoreMinThreshold?: number;
|
61
|
+
/**
|
62
|
+
*
|
63
|
+
* @type {number}
|
64
|
+
* @memberof PatchedCaptchaStageRequest
|
65
|
+
*/
|
66
|
+
scoreMaxThreshold?: number;
|
67
|
+
/**
|
68
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
69
|
+
* @type {boolean}
|
70
|
+
* @memberof PatchedCaptchaStageRequest
|
71
|
+
*/
|
72
|
+
errorOnInvalidScore?: boolean;
|
55
73
|
}
|
56
74
|
/**
|
57
75
|
* Check if a given object implements the PatchedCaptchaStageRequest interface.
|
@@ -34,6 +34,9 @@ export function PatchedCaptchaStageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
34
34
|
'privateKey': !exists(json, 'private_key') ? undefined : json['private_key'],
|
35
35
|
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
36
36
|
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
37
|
+
'scoreMinThreshold': !exists(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
38
|
+
'scoreMaxThreshold': !exists(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
39
|
+
'errorOnInvalidScore': !exists(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
37
40
|
};
|
38
41
|
}
|
39
42
|
export function PatchedCaptchaStageRequestToJSON(value) {
|
@@ -50,5 +53,8 @@ export function PatchedCaptchaStageRequestToJSON(value) {
|
|
50
53
|
'private_key': value.privateKey,
|
51
54
|
'js_url': value.jsUrl,
|
52
55
|
'api_url': value.apiUrl,
|
56
|
+
'score_min_threshold': value.scoreMinThreshold,
|
57
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
58
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
53
59
|
};
|
54
60
|
}
|
@@ -76,6 +76,24 @@ export interface CaptchaStage {
|
|
76
76
|
* @memberof CaptchaStage
|
77
77
|
*/
|
78
78
|
apiUrl?: string;
|
79
|
+
/**
|
80
|
+
*
|
81
|
+
* @type {number}
|
82
|
+
* @memberof CaptchaStage
|
83
|
+
*/
|
84
|
+
scoreMinThreshold?: number;
|
85
|
+
/**
|
86
|
+
*
|
87
|
+
* @type {number}
|
88
|
+
* @memberof CaptchaStage
|
89
|
+
*/
|
90
|
+
scoreMaxThreshold?: number;
|
91
|
+
/**
|
92
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
93
|
+
* @type {boolean}
|
94
|
+
* @memberof CaptchaStage
|
95
|
+
*/
|
96
|
+
errorOnInvalidScore?: boolean;
|
79
97
|
}
|
80
98
|
/**
|
81
99
|
* Check if a given object implements the CaptchaStage interface.
|
@@ -50,6 +50,9 @@ function CaptchaStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
50
|
'publicKey': json['public_key'],
|
51
51
|
'jsUrl': !(0, runtime_1.exists)(json, 'js_url') ? undefined : json['js_url'],
|
52
52
|
'apiUrl': !(0, runtime_1.exists)(json, 'api_url') ? undefined : json['api_url'],
|
53
|
+
'scoreMinThreshold': !(0, runtime_1.exists)(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
54
|
+
'scoreMaxThreshold': !(0, runtime_1.exists)(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
55
|
+
'errorOnInvalidScore': !(0, runtime_1.exists)(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
53
56
|
};
|
54
57
|
}
|
55
58
|
exports.CaptchaStageFromJSONTyped = CaptchaStageFromJSONTyped;
|
@@ -66,6 +69,9 @@ function CaptchaStageToJSON(value) {
|
|
66
69
|
'public_key': value.publicKey,
|
67
70
|
'js_url': value.jsUrl,
|
68
71
|
'api_url': value.apiUrl,
|
72
|
+
'score_min_threshold': value.scoreMinThreshold,
|
73
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
74
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
69
75
|
};
|
70
76
|
}
|
71
77
|
exports.CaptchaStageToJSON = CaptchaStageToJSON;
|
@@ -52,6 +52,24 @@ export interface CaptchaStageRequest {
|
|
52
52
|
* @memberof CaptchaStageRequest
|
53
53
|
*/
|
54
54
|
apiUrl?: string;
|
55
|
+
/**
|
56
|
+
*
|
57
|
+
* @type {number}
|
58
|
+
* @memberof CaptchaStageRequest
|
59
|
+
*/
|
60
|
+
scoreMinThreshold?: number;
|
61
|
+
/**
|
62
|
+
*
|
63
|
+
* @type {number}
|
64
|
+
* @memberof CaptchaStageRequest
|
65
|
+
*/
|
66
|
+
scoreMaxThreshold?: number;
|
67
|
+
/**
|
68
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
69
|
+
* @type {boolean}
|
70
|
+
* @memberof CaptchaStageRequest
|
71
|
+
*/
|
72
|
+
errorOnInvalidScore?: boolean;
|
55
73
|
}
|
56
74
|
/**
|
57
75
|
* Check if a given object implements the CaptchaStageRequest interface.
|
@@ -42,6 +42,9 @@ function CaptchaStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
42
|
'privateKey': json['private_key'],
|
43
43
|
'jsUrl': !(0, runtime_1.exists)(json, 'js_url') ? undefined : json['js_url'],
|
44
44
|
'apiUrl': !(0, runtime_1.exists)(json, 'api_url') ? undefined : json['api_url'],
|
45
|
+
'scoreMinThreshold': !(0, runtime_1.exists)(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
46
|
+
'scoreMaxThreshold': !(0, runtime_1.exists)(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
47
|
+
'errorOnInvalidScore': !(0, runtime_1.exists)(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
45
48
|
};
|
46
49
|
}
|
47
50
|
exports.CaptchaStageRequestFromJSONTyped = CaptchaStageRequestFromJSONTyped;
|
@@ -59,6 +62,9 @@ function CaptchaStageRequestToJSON(value) {
|
|
59
62
|
'private_key': value.privateKey,
|
60
63
|
'js_url': value.jsUrl,
|
61
64
|
'api_url': value.apiUrl,
|
65
|
+
'score_min_threshold': value.scoreMinThreshold,
|
66
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
67
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
62
68
|
};
|
63
69
|
}
|
64
70
|
exports.CaptchaStageRequestToJSON = CaptchaStageRequestToJSON;
|
@@ -52,6 +52,24 @@ export interface PatchedCaptchaStageRequest {
|
|
52
52
|
* @memberof PatchedCaptchaStageRequest
|
53
53
|
*/
|
54
54
|
apiUrl?: string;
|
55
|
+
/**
|
56
|
+
*
|
57
|
+
* @type {number}
|
58
|
+
* @memberof PatchedCaptchaStageRequest
|
59
|
+
*/
|
60
|
+
scoreMinThreshold?: number;
|
61
|
+
/**
|
62
|
+
*
|
63
|
+
* @type {number}
|
64
|
+
* @memberof PatchedCaptchaStageRequest
|
65
|
+
*/
|
66
|
+
scoreMaxThreshold?: number;
|
67
|
+
/**
|
68
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
69
|
+
* @type {boolean}
|
70
|
+
* @memberof PatchedCaptchaStageRequest
|
71
|
+
*/
|
72
|
+
errorOnInvalidScore?: boolean;
|
55
73
|
}
|
56
74
|
/**
|
57
75
|
* Check if a given object implements the PatchedCaptchaStageRequest interface.
|
@@ -39,6 +39,9 @@ function PatchedCaptchaStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
'privateKey': !(0, runtime_1.exists)(json, 'private_key') ? undefined : json['private_key'],
|
40
40
|
'jsUrl': !(0, runtime_1.exists)(json, 'js_url') ? undefined : json['js_url'],
|
41
41
|
'apiUrl': !(0, runtime_1.exists)(json, 'api_url') ? undefined : json['api_url'],
|
42
|
+
'scoreMinThreshold': !(0, runtime_1.exists)(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
43
|
+
'scoreMaxThreshold': !(0, runtime_1.exists)(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
44
|
+
'errorOnInvalidScore': !(0, runtime_1.exists)(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
42
45
|
};
|
43
46
|
}
|
44
47
|
exports.PatchedCaptchaStageRequestFromJSONTyped = PatchedCaptchaStageRequestFromJSONTyped;
|
@@ -56,6 +59,9 @@ function PatchedCaptchaStageRequestToJSON(value) {
|
|
56
59
|
'private_key': value.privateKey,
|
57
60
|
'js_url': value.jsUrl,
|
58
61
|
'api_url': value.apiUrl,
|
62
|
+
'score_min_threshold': value.scoreMinThreshold,
|
63
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
64
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
59
65
|
};
|
60
66
|
}
|
61
67
|
exports.PatchedCaptchaStageRequestToJSON = PatchedCaptchaStageRequestToJSON;
|
package/package.json
CHANGED
@@ -86,6 +86,24 @@ export interface CaptchaStage {
|
|
86
86
|
* @memberof CaptchaStage
|
87
87
|
*/
|
88
88
|
apiUrl?: string;
|
89
|
+
/**
|
90
|
+
*
|
91
|
+
* @type {number}
|
92
|
+
* @memberof CaptchaStage
|
93
|
+
*/
|
94
|
+
scoreMinThreshold?: number;
|
95
|
+
/**
|
96
|
+
*
|
97
|
+
* @type {number}
|
98
|
+
* @memberof CaptchaStage
|
99
|
+
*/
|
100
|
+
scoreMaxThreshold?: number;
|
101
|
+
/**
|
102
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
103
|
+
* @type {boolean}
|
104
|
+
* @memberof CaptchaStage
|
105
|
+
*/
|
106
|
+
errorOnInvalidScore?: boolean;
|
89
107
|
}
|
90
108
|
|
91
109
|
/**
|
@@ -124,6 +142,9 @@ export function CaptchaStageFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
124
142
|
'publicKey': json['public_key'],
|
125
143
|
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
126
144
|
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
145
|
+
'scoreMinThreshold': !exists(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
146
|
+
'scoreMaxThreshold': !exists(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
147
|
+
'errorOnInvalidScore': !exists(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
127
148
|
};
|
128
149
|
}
|
129
150
|
|
@@ -141,6 +162,9 @@ export function CaptchaStageToJSON(value?: CaptchaStage | null): any {
|
|
141
162
|
'public_key': value.publicKey,
|
142
163
|
'js_url': value.jsUrl,
|
143
164
|
'api_url': value.apiUrl,
|
165
|
+
'score_min_threshold': value.scoreMinThreshold,
|
166
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
167
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
144
168
|
};
|
145
169
|
}
|
146
170
|
|
@@ -62,6 +62,24 @@ export interface CaptchaStageRequest {
|
|
62
62
|
* @memberof CaptchaStageRequest
|
63
63
|
*/
|
64
64
|
apiUrl?: string;
|
65
|
+
/**
|
66
|
+
*
|
67
|
+
* @type {number}
|
68
|
+
* @memberof CaptchaStageRequest
|
69
|
+
*/
|
70
|
+
scoreMinThreshold?: number;
|
71
|
+
/**
|
72
|
+
*
|
73
|
+
* @type {number}
|
74
|
+
* @memberof CaptchaStageRequest
|
75
|
+
*/
|
76
|
+
scoreMaxThreshold?: number;
|
77
|
+
/**
|
78
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
79
|
+
* @type {boolean}
|
80
|
+
* @memberof CaptchaStageRequest
|
81
|
+
*/
|
82
|
+
errorOnInvalidScore?: boolean;
|
65
83
|
}
|
66
84
|
|
67
85
|
/**
|
@@ -92,6 +110,9 @@ export function CaptchaStageRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
92
110
|
'privateKey': json['private_key'],
|
93
111
|
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
94
112
|
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
113
|
+
'scoreMinThreshold': !exists(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
114
|
+
'scoreMaxThreshold': !exists(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
115
|
+
'errorOnInvalidScore': !exists(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
95
116
|
};
|
96
117
|
}
|
97
118
|
|
@@ -110,6 +131,9 @@ export function CaptchaStageRequestToJSON(value?: CaptchaStageRequest | null): a
|
|
110
131
|
'private_key': value.privateKey,
|
111
132
|
'js_url': value.jsUrl,
|
112
133
|
'api_url': value.apiUrl,
|
134
|
+
'score_min_threshold': value.scoreMinThreshold,
|
135
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
136
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
113
137
|
};
|
114
138
|
}
|
115
139
|
|
@@ -62,6 +62,24 @@ export interface PatchedCaptchaStageRequest {
|
|
62
62
|
* @memberof PatchedCaptchaStageRequest
|
63
63
|
*/
|
64
64
|
apiUrl?: string;
|
65
|
+
/**
|
66
|
+
*
|
67
|
+
* @type {number}
|
68
|
+
* @memberof PatchedCaptchaStageRequest
|
69
|
+
*/
|
70
|
+
scoreMinThreshold?: number;
|
71
|
+
/**
|
72
|
+
*
|
73
|
+
* @type {number}
|
74
|
+
* @memberof PatchedCaptchaStageRequest
|
75
|
+
*/
|
76
|
+
scoreMaxThreshold?: number;
|
77
|
+
/**
|
78
|
+
* When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
|
79
|
+
* @type {boolean}
|
80
|
+
* @memberof PatchedCaptchaStageRequest
|
81
|
+
*/
|
82
|
+
errorOnInvalidScore?: boolean;
|
65
83
|
}
|
66
84
|
|
67
85
|
/**
|
@@ -89,6 +107,9 @@ export function PatchedCaptchaStageRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
89
107
|
'privateKey': !exists(json, 'private_key') ? undefined : json['private_key'],
|
90
108
|
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
91
109
|
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
110
|
+
'scoreMinThreshold': !exists(json, 'score_min_threshold') ? undefined : json['score_min_threshold'],
|
111
|
+
'scoreMaxThreshold': !exists(json, 'score_max_threshold') ? undefined : json['score_max_threshold'],
|
112
|
+
'errorOnInvalidScore': !exists(json, 'error_on_invalid_score') ? undefined : json['error_on_invalid_score'],
|
92
113
|
};
|
93
114
|
}
|
94
115
|
|
@@ -107,6 +128,9 @@ export function PatchedCaptchaStageRequestToJSON(value?: PatchedCaptchaStageRequ
|
|
107
128
|
'private_key': value.privateKey,
|
108
129
|
'js_url': value.jsUrl,
|
109
130
|
'api_url': value.apiUrl,
|
131
|
+
'score_min_threshold': value.scoreMinThreshold,
|
132
|
+
'score_max_threshold': value.scoreMaxThreshold,
|
133
|
+
'error_on_invalid_score': value.errorOnInvalidScore,
|
110
134
|
};
|
111
135
|
}
|
112
136
|
|