As seen in the 2Captcha documentation for Amazon WAF CAPTCHAs, challengeScript and captchaScript are missing in the type definition paramsAmazonWAF entirely:
|
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!!!):
|
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.
As seen in the 2Captcha documentation for Amazon WAF CAPTCHAs,
challengeScriptandcaptchaScriptare missing in the type definitionparamsAmazonWAFentirely:2captcha-javascript/src/structs/2captcha.ts
Lines 142 to 152 in 40bc217
Also the response typing is incorrect. For Amazon WAF it's actually structured like this:
But it's implemented like this (data is NOT a string!!!):
2captcha-javascript/src/structs/2captcha.ts
Lines 232 to 237 in 40bc217
I suspect many more typings will be incorrect as well.