1 | export declare type Lang = ('en' | 'ru' | 'es' | 'pt' | 'uk' | 'vi' | 'fr' | 'id' | 'ar' | 'ja' | 'tr' | 'de' | 'zh' | 'fil' | 'pl' | 'th' | 'it' | 'nl' | 'sk' | 'bg' | 'ro' | 'hu' | 'ko' | 'cs' | 'az' | 'fa' | 'bn' | 'el' | 'lt' | 'lv' | 'sv' | 'sr' | 'hr' | 'he' | 'hi' | 'nb' | 'sl' | 'da' | 'uz' | 'fi' | 'ca' | 'ka' | 'ms' | 'te' | 'et' | 'ml' | 'be' | 'kk' | 'mr' | 'ne' | 'my' | 'bs' | 'hy' | 'mk' | 'pa');
|
2 | declare type Number0_1 = 0 | 1;
|
3 | declare type Number0_2 = Number0_1 | 2;
|
4 | declare type Number0_4 = Number0_2 | 3 | 4;
|
5 | declare type Number0_20 = Number0_4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
|
6 | interface ISendNormalByUrl {
|
7 | url: string;
|
8 | method?: undefined;
|
9 | file?: undefined;
|
10 | body?: undefined;
|
11 | textcaptcha?: undefined;
|
12 | version?: undefined;
|
13 | googlekey?: undefined;
|
14 | pageurl?: undefined;
|
15 | cookies?: undefined;
|
16 | recaptcha?: undefined;
|
17 | coordinatescaptcha?: undefined;
|
18 | publickey?: undefined;
|
19 | s_s_c_user_id?: undefined;
|
20 | s_s_c_session_id?: undefined;
|
21 | s_s_c_web_server_sign?: undefined;
|
22 | s_s_c_web_server_sign2?: undefined;
|
23 | gt?: undefined;
|
24 | challenge?: undefined;
|
25 | sitekey?: undefined;
|
26 | captchakey?: undefined;
|
27 | aid?: undefined;
|
28 | host?: undefined;
|
29 | }
|
30 | interface ISendNormalWithFile {
|
31 | url?: undefined;
|
32 | method: 'post';
|
33 | file: string;
|
34 | body?: undefined;
|
35 | textcaptcha?: undefined;
|
36 | version?: undefined;
|
37 | googlekey?: undefined;
|
38 | pageurl?: undefined;
|
39 | cookies?: undefined;
|
40 | recaptcha?: undefined;
|
41 | coordinatescaptcha?: undefined;
|
42 | publickey?: undefined;
|
43 | s_s_c_user_id?: undefined;
|
44 | s_s_c_session_id?: undefined;
|
45 | s_s_c_web_server_sign?: undefined;
|
46 | s_s_c_web_server_sign2?: undefined;
|
47 | gt?: undefined;
|
48 | challenge?: undefined;
|
49 | sitekey?: undefined;
|
50 | captchakey?: undefined;
|
51 | aid?: undefined;
|
52 | host?: undefined;
|
53 | }
|
54 | interface ISendNormalWithBody {
|
55 | url?: undefined;
|
56 | method: 'base64';
|
57 | file?: undefined;
|
58 | body: string;
|
59 | textcaptcha?: undefined;
|
60 | version?: undefined;
|
61 | googlekey?: undefined;
|
62 | pageurl?: undefined;
|
63 | cookies?: undefined;
|
64 | recaptcha?: undefined;
|
65 | coordinatescaptcha?: undefined;
|
66 | publickey?: undefined;
|
67 | s_s_c_user_id?: undefined;
|
68 | s_s_c_session_id?: undefined;
|
69 | s_s_c_web_server_sign?: undefined;
|
70 | s_s_c_web_server_sign2?: undefined;
|
71 | gt?: undefined;
|
72 | challenge?: undefined;
|
73 | sitekey?: undefined;
|
74 | captchakey?: undefined;
|
75 | aid?: undefined;
|
76 | host?: undefined;
|
77 | }
|
78 | interface ISendText {
|
79 | url?: undefined;
|
80 | method?: undefined;
|
81 | file?: undefined;
|
82 | body?: undefined;
|
83 | textcaptcha: string;
|
84 | version?: undefined;
|
85 | googlekey?: undefined;
|
86 | pageurl?: undefined;
|
87 | cookies?: undefined;
|
88 | recaptcha?: undefined;
|
89 | coordinatescaptcha?: undefined;
|
90 | publickey?: undefined;
|
91 | s_s_c_user_id?: undefined;
|
92 | s_s_c_session_id?: undefined;
|
93 | s_s_c_web_server_sign?: undefined;
|
94 | s_s_c_web_server_sign2?: undefined;
|
95 | gt?: undefined;
|
96 | challenge?: undefined;
|
97 | sitekey?: undefined;
|
98 | captchakey?: undefined;
|
99 | aid?: undefined;
|
100 | host?: undefined;
|
101 | }
|
102 | interface ISendReV2 {
|
103 | url?: undefined;
|
104 | method: 'userrecaptcha';
|
105 | file?: undefined;
|
106 | body?: undefined;
|
107 | textcaptcha?: undefined;
|
108 | version?: undefined;
|
109 | googlekey: string;
|
110 | pageurl: string;
|
111 | cookies?: string;
|
112 | recaptcha?: undefined;
|
113 | coordinatescaptcha?: undefined;
|
114 | publickey?: undefined;
|
115 | s_s_c_user_id?: undefined;
|
116 | s_s_c_session_id?: undefined;
|
117 | s_s_c_web_server_sign?: undefined;
|
118 | s_s_c_web_server_sign2?: undefined;
|
119 | gt?: undefined;
|
120 | challenge?: undefined;
|
121 | sitekey?: undefined;
|
122 | captchakey?: undefined;
|
123 | aid?: undefined;
|
124 | host?: undefined;
|
125 | }
|
126 | interface ISendReV3 {
|
127 | url?: undefined;
|
128 | method: 'userrecaptcha';
|
129 | file?: undefined;
|
130 | body?: undefined;
|
131 | textcaptcha?: undefined;
|
132 | version: 'v3';
|
133 | googlekey: string;
|
134 | pageurl: string;
|
135 | cookies?: undefined;
|
136 | recaptcha?: undefined;
|
137 | coordinatescaptcha?: undefined;
|
138 | publickey?: undefined;
|
139 | s_s_c_user_id?: undefined;
|
140 | s_s_c_session_id?: undefined;
|
141 | s_s_c_web_server_sign?: undefined;
|
142 | s_s_c_web_server_sign2?: undefined;
|
143 | gt?: undefined;
|
144 | challenge?: undefined;
|
145 | sitekey?: undefined;
|
146 | captchakey?: undefined;
|
147 | aid?: undefined;
|
148 | host?: undefined;
|
149 | }
|
150 | interface ISendReV3Enterprise {
|
151 | url?: undefined;
|
152 | method: 'userrecaptcha';
|
153 | file?: undefined;
|
154 | body?: undefined;
|
155 | textcaptcha?: undefined;
|
156 | version: 'enterprise';
|
157 | googlekey: string;
|
158 | pageurl: string;
|
159 | cookies?: undefined;
|
160 | recaptcha?: undefined;
|
161 | coordinatescaptcha?: undefined;
|
162 | publickey?: undefined;
|
163 | s_s_c_user_id?: undefined;
|
164 | s_s_c_session_id?: undefined;
|
165 | s_s_c_web_server_sign?: undefined;
|
166 | s_s_c_web_server_sign2?: undefined;
|
167 | gt?: undefined;
|
168 | challenge?: undefined;
|
169 | sitekey?: undefined;
|
170 | captchakey?: undefined;
|
171 | aid?: undefined;
|
172 | host?: undefined;
|
173 | }
|
174 | interface ISendReV2OldMethodWithFile {
|
175 | url?: undefined;
|
176 | method: 'post';
|
177 | file: string;
|
178 | body?: undefined;
|
179 | textcaptcha?: undefined;
|
180 | version?: undefined;
|
181 | googlekey?: undefined;
|
182 | pageurl?: undefined;
|
183 | cookies?: undefined;
|
184 | recaptcha: 1;
|
185 | coordinatescaptcha?: undefined;
|
186 | publickey?: undefined;
|
187 | s_s_c_user_id?: undefined;
|
188 | s_s_c_session_id?: undefined;
|
189 | s_s_c_web_server_sign?: undefined;
|
190 | s_s_c_web_server_sign2?: undefined;
|
191 | gt?: undefined;
|
192 | challenge?: undefined;
|
193 | sitekey?: undefined;
|
194 | captchakey?: undefined;
|
195 | aid?: undefined;
|
196 | host?: undefined;
|
197 | }
|
198 | interface ISendReV2OldMethodWithBody {
|
199 | url?: undefined;
|
200 | method: 'base64';
|
201 | file?: undefined;
|
202 | body: string;
|
203 | textcaptcha?: undefined;
|
204 | version?: undefined;
|
205 | googlekey?: undefined;
|
206 | pageurl?: undefined;
|
207 | cookies?: undefined;
|
208 | recaptcha: 1;
|
209 | coordinatescaptcha?: undefined;
|
210 | publickey?: undefined;
|
211 | s_s_c_user_id?: undefined;
|
212 | s_s_c_session_id?: undefined;
|
213 | s_s_c_web_server_sign?: undefined;
|
214 | s_s_c_web_server_sign2?: undefined;
|
215 | gt?: undefined;
|
216 | challenge?: undefined;
|
217 | sitekey?: undefined;
|
218 | captchakey?: undefined;
|
219 | aid?: undefined;
|
220 | host?: undefined;
|
221 | }
|
222 | interface ISendClickWithFile {
|
223 | url?: undefined;
|
224 | method: 'post';
|
225 | file: string;
|
226 | body?: undefined;
|
227 | textcaptcha?: undefined;
|
228 | version?: undefined;
|
229 | googlekey?: undefined;
|
230 | pageurl?: undefined;
|
231 | cookies?: undefined;
|
232 | recaptcha?: undefined;
|
233 | coordinatescaptcha: 1;
|
234 | publickey?: undefined;
|
235 | s_s_c_user_id?: undefined;
|
236 | s_s_c_session_id?: undefined;
|
237 | s_s_c_web_server_sign?: undefined;
|
238 | s_s_c_web_server_sign2?: undefined;
|
239 | gt?: undefined;
|
240 | challenge?: undefined;
|
241 | sitekey?: undefined;
|
242 | captchakey?: undefined;
|
243 | aid?: undefined;
|
244 | host?: undefined;
|
245 | }
|
246 | interface ISendClickWithBody {
|
247 | url?: undefined;
|
248 | method: 'base64';
|
249 | file?: undefined;
|
250 | body: string;
|
251 | textcaptcha?: undefined;
|
252 | version?: undefined;
|
253 | googlekey?: undefined;
|
254 | pageurl?: undefined;
|
255 | cookies?: undefined;
|
256 | recaptcha?: undefined;
|
257 | coordinatescaptcha: 1;
|
258 | publickey?: undefined;
|
259 | s_s_c_user_id?: undefined;
|
260 | s_s_c_session_id?: undefined;
|
261 | s_s_c_web_server_sign?: undefined;
|
262 | s_s_c_web_server_sign2?: undefined;
|
263 | gt?: undefined;
|
264 | challenge?: undefined;
|
265 | sitekey?: undefined;
|
266 | captchakey?: undefined;
|
267 | aid?: undefined;
|
268 | host?: undefined;
|
269 | }
|
270 | interface ISendRotate {
|
271 | url?: undefined;
|
272 | method: 'rotatecaptcha';
|
273 | file?: string;
|
274 | body?: string;
|
275 | textcaptcha?: undefined;
|
276 | version?: undefined;
|
277 | googlekey?: undefined;
|
278 | pageurl?: undefined;
|
279 | cookies?: undefined;
|
280 | recaptcha?: undefined;
|
281 | coordinatescaptcha?: undefined;
|
282 | publickey?: undefined;
|
283 | s_s_c_user_id?: undefined;
|
284 | s_s_c_session_id?: undefined;
|
285 | s_s_c_web_server_sign?: undefined;
|
286 | s_s_c_web_server_sign2?: undefined;
|
287 | gt?: undefined;
|
288 | challenge?: undefined;
|
289 | sitekey?: undefined;
|
290 | captchakey?: undefined;
|
291 | aid?: undefined;
|
292 | host?: undefined;
|
293 | }
|
294 | interface ISendFun {
|
295 | url?: undefined;
|
296 | method: 'funcaptcha';
|
297 | file?: undefined;
|
298 | body?: undefined;
|
299 | textcaptcha?: undefined;
|
300 | version?: undefined;
|
301 | googlekey?: undefined;
|
302 | pageurl: string;
|
303 | cookies?: undefined;
|
304 | recaptcha?: undefined;
|
305 | coordinatescaptcha?: undefined;
|
306 | publickey: string;
|
307 | s_s_c_user_id?: undefined;
|
308 | s_s_c_session_id?: undefined;
|
309 | s_s_c_web_server_sign?: undefined;
|
310 | s_s_c_web_server_sign2?: undefined;
|
311 | gt?: undefined;
|
312 | challenge?: undefined;
|
313 | sitekey?: undefined;
|
314 | captchakey?: undefined;
|
315 | aid?: undefined;
|
316 | host?: undefined;
|
317 | }
|
318 | interface ISendKey {
|
319 | url?: undefined;
|
320 | method: 'keycaptcha';
|
321 | file?: undefined;
|
322 | body?: undefined;
|
323 | textcaptcha?: undefined;
|
324 | version?: undefined;
|
325 | googlekey?: undefined;
|
326 | pageurl: string;
|
327 | cookies?: undefined;
|
328 | recaptcha?: undefined;
|
329 | coordinatescaptcha?: undefined;
|
330 | publickey?: undefined;
|
331 | s_s_c_user_id: string;
|
332 | s_s_c_session_id: string;
|
333 | s_s_c_web_server_sign: string;
|
334 | s_s_c_web_server_sign2: string;
|
335 | gt?: undefined;
|
336 | challenge?: undefined;
|
337 | sitekey?: undefined;
|
338 | captchakey?: undefined;
|
339 | aid?: undefined;
|
340 | host?: undefined;
|
341 | }
|
342 | interface ISendGee {
|
343 | url?: undefined;
|
344 | method: 'geetest';
|
345 | file?: undefined;
|
346 | body?: undefined;
|
347 | textcaptcha?: undefined;
|
348 | version?: undefined;
|
349 | googlekey?: undefined;
|
350 | pageurl: string;
|
351 | cookies?: undefined;
|
352 | recaptcha?: undefined;
|
353 | coordinatescaptcha?: undefined;
|
354 | publickey?: undefined;
|
355 | s_s_c_user_id?: undefined;
|
356 | s_s_c_session_id?: undefined;
|
357 | s_s_c_web_server_sign?: undefined;
|
358 | s_s_c_web_server_sign2?: undefined;
|
359 | gt: string;
|
360 | challenge: string;
|
361 | sitekey?: undefined;
|
362 | captchakey?: undefined;
|
363 | aid?: undefined;
|
364 | host?: undefined;
|
365 | }
|
366 | interface ISendH {
|
367 | url?: undefined;
|
368 | method: 'hcaptcha';
|
369 | file?: undefined;
|
370 | body?: undefined;
|
371 | textcaptcha?: undefined;
|
372 | version?: undefined;
|
373 | googlekey?: undefined;
|
374 | pageurl: string;
|
375 | cookies?: undefined;
|
376 | recaptcha?: undefined;
|
377 | coordinatescaptcha?: undefined;
|
378 | publickey?: undefined;
|
379 | s_s_c_user_id?: undefined;
|
380 | s_s_c_session_id?: undefined;
|
381 | s_s_c_web_server_sign?: undefined;
|
382 | s_s_c_web_server_sign2?: undefined;
|
383 | gt?: undefined;
|
384 | challenge?: undefined;
|
385 | sitekey: string;
|
386 | captchakey?: undefined;
|
387 | aid?: undefined;
|
388 | host?: undefined;
|
389 | }
|
390 | interface ISendCapy {
|
391 | url?: undefined;
|
392 | method: 'capy';
|
393 | file?: undefined;
|
394 | body?: undefined;
|
395 | textcaptcha?: undefined;
|
396 | version?: undefined;
|
397 | googlekey?: undefined;
|
398 | pageurl: string;
|
399 | cookies?: undefined;
|
400 | recaptcha?: undefined;
|
401 | coordinatescaptcha?: undefined;
|
402 | publickey?: undefined;
|
403 | s_s_c_user_id?: undefined;
|
404 | s_s_c_session_id?: undefined;
|
405 | s_s_c_web_server_sign?: undefined;
|
406 | s_s_c_web_server_sign2?: undefined;
|
407 | gt?: undefined;
|
408 | challenge?: undefined;
|
409 | sitekey?: undefined;
|
410 | captchakey: string;
|
411 | aid?: undefined;
|
412 | host?: undefined;
|
413 | }
|
414 | interface ISendTikTok {
|
415 | url?: undefined;
|
416 | method: 'tiktok';
|
417 | file?: undefined;
|
418 | body?: undefined;
|
419 | textcaptcha?: undefined;
|
420 | version?: undefined;
|
421 | googlekey?: undefined;
|
422 | pageurl: string;
|
423 | cookies: string;
|
424 | recaptcha?: undefined;
|
425 | coordinatescaptcha?: undefined;
|
426 | publickey?: undefined;
|
427 | s_s_c_user_id?: undefined;
|
428 | s_s_c_session_id?: undefined;
|
429 | s_s_c_web_server_sign?: undefined;
|
430 | s_s_c_web_server_sign2?: undefined;
|
431 | gt?: undefined;
|
432 | challenge?: undefined;
|
433 | sitekey?: undefined;
|
434 | captchakey?: undefined;
|
435 | aid: number;
|
436 | host: string;
|
437 | }
|
438 | interface ISendCommonParams {
|
439 | phrase?: Number0_1;
|
440 | regsense?: Number0_1;
|
441 | numeric?: Number0_4;
|
442 | calc?: Number0_1;
|
443 | min_len?: Number0_20;
|
444 | max_len?: Number0_20;
|
445 | language?: Number0_2;
|
446 | lang?: Lang;
|
447 | textinstructions?: string;
|
448 | imginstructions?: any;
|
449 | header_acao?: Number0_1;
|
450 | pingback?: string;
|
451 | invisible?: Number0_1;
|
452 | 'data-s'?: string;
|
453 | userAgent?: string;
|
454 | proxy?: string;
|
455 | proxytype?: string;
|
456 | action?: string;
|
457 | min_score?: number;
|
458 | canvas?: Number0_1;
|
459 | recaptcharows?: number;
|
460 | recaptchacols?: number;
|
461 | previousID?: string;
|
462 | can_no_answer?: Number0_1;
|
463 | angle?: number;
|
464 | surl?: string;
|
465 | data?: Record<string, any>;
|
466 | api_server?: string;
|
467 | }
|
468 | interface ISendNormalCaptchaByUrl extends ISendNormalByUrl, ISendCommonParams {
|
469 | }
|
470 | interface ISendNormalCaptchaWithFile extends ISendNormalWithFile, ISendCommonParams {
|
471 | }
|
472 | interface ISendNormalCaptchaWithBody extends ISendNormalWithBody, ISendCommonParams {
|
473 | }
|
474 | interface ISendTextCaptcha extends ISendText, ISendCommonParams {
|
475 | }
|
476 | interface ISendReCaptchaV2 extends ISendReV2, ISendCommonParams {
|
477 | }
|
478 | interface ISendReCaptchaV3 extends ISendReV3, ISendCommonParams {
|
479 | }
|
480 | interface ISendReCaptchaV3Enterprise extends ISendReV3Enterprise, ISendCommonParams {
|
481 | }
|
482 | interface ISendReV2CaptchaOldMethodWithFile extends ISendReV2OldMethodWithFile, ISendCommonParams {
|
483 | }
|
484 | interface ISendReV2CaptchaOldMethodWithBody extends ISendReV2OldMethodWithBody, ISendCommonParams {
|
485 | }
|
486 | interface ISendClickCaptchaWithFile extends ISendClickWithFile, ISendCommonParams {
|
487 | }
|
488 | interface ISendClickCaptchaWithBody extends ISendClickWithBody, ISendCommonParams {
|
489 | }
|
490 | interface ISendRotateCaptcha extends ISendRotate, ISendCommonParams {
|
491 | }
|
492 | interface ISendFunCaptcha extends ISendFun, ISendCommonParams {
|
493 | }
|
494 | interface ISendKeyCaptcha extends ISendKey, ISendCommonParams {
|
495 | }
|
496 | interface ISendGeeTest extends ISendGee, ISendCommonParams {
|
497 | }
|
498 | interface ISendHCaptcha extends ISendH, ISendCommonParams {
|
499 | }
|
500 | interface ISendCapyPuzzle extends ISendCapy, ISendCommonParams {
|
501 | }
|
502 | interface ISendISendTikTokCaptcha extends ISendTikTok, ISendCommonParams {
|
503 | }
|
504 | export declare type ServiceGetResponse = {
|
505 | data: {
|
506 | status: number;
|
507 | request: string;
|
508 | [k: string]: any;
|
509 | };
|
510 | };
|
511 | export declare type ServiceGet2Response = {
|
512 | data: {
|
513 | status: number;
|
514 | price: string;
|
515 | request: string;
|
516 | [k: string]: any;
|
517 | };
|
518 | };
|
519 | export declare type ArrayLikeString = string & {
|
520 | badge: 'ArrayLikeString';
|
521 | };
|
522 | export declare function isArrayLikeString(e: string): e is ArrayLikeString;
|
523 | export interface ICaptchaSolver {
|
524 | send(params: (ISendNormalCaptchaByUrl | ISendNormalCaptchaWithFile | ISendNormalCaptchaWithBody | ISendTextCaptcha | ISendReCaptchaV2 | ISendReCaptchaV3 | ISendReCaptchaV3Enterprise | ISendReV2CaptchaOldMethodWithFile | ISendReV2CaptchaOldMethodWithBody | ISendClickCaptchaWithFile | ISendClickCaptchaWithBody | ISendRotateCaptcha | ISendFunCaptcha | ISendKeyCaptcha | ISendGeeTest | ISendHCaptcha | ISendCapyPuzzle | ISendISendTikTokCaptcha)): never | Promise<string>;
|
525 | get(captchaId: ArrayLikeString): never | Promise<string[]>;
|
526 | get(captchaId: string): never | Promise<string>;
|
527 | get(captchaId: string[]): never | Promise<string[]>;
|
528 | getWithPrice(captchaId: string): Promise<{
|
529 | token: ServiceGetResponse['data']['request'];
|
530 | price: string;
|
531 | [k: string]: any;
|
532 | }>;
|
533 | reportGood: (id: string) => never | Promise<ServiceGetResponse['data']>;
|
534 | reportBad: (id: string) => never | Promise<ServiceGetResponse['data']>;
|
535 | getBalance(): Promise<number>;
|
536 | getPrices(): Promise<Record<string, number>>;
|
537 | solve(...params: Parameters<ICaptchaSolver['send']>): Promise<{
|
538 | token: string;
|
539 | tokenIsGood(): ReturnType<ICaptchaSolver['reportGood']>;
|
540 | tokenIsBad(): ReturnType<ICaptchaSolver['reportBad']>;
|
541 | }>;
|
542 | }
|
543 | export {};
|