forked from dzmitry-duboyski/2captcha-ts
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
As seen in the 2Captcha documentation for Amazon WAF CAPTCHAs, challengeScript
and captchaScript
are missing in the type definition paramsAmazonWAF
entirely:
2captcha-javascript/src/structs/2captcha.ts
Lines 142 to 152 in 40bc217
export interface paramsAmazonWAF { | |
pageurl: string, | |
sitekey: string, | |
iv: string | |
context: string, | |
header_acao?: boolean, | |
pingback?: string, | |
soft_id?: number, | |
proxy?: string, | |
proxytype?: string, | |
} |
Also the response typing is incorrect. For Amazon WAF it's actually structured like this:
interface CaptchaAnswerAmazonWAF {
data: {
captcha_voucher: string,
existing_token: string
},
id: string
};
But it's implemented like this (data is NOT a string!!!):
2captcha-javascript/src/structs/2captcha.ts
Lines 232 to 237 in 40bc217
interface CaptchaAnswer { | |
/** The solution to the captcha */ | |
data: string, | |
/** The ID of the captcha solve */ | |
id: string | |
} |
I suspect many more typings will be incorrect as well.
Metadata
Metadata
Assignees
Labels
No labels