-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
49 lines (45 loc) · 1013 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { AxiosRequestConfig } from 'axios';
export const BASE_URL = 'https://api.superai.pro';
export const DEFAULT_TIMEOUT = 8000;
export type GeeTest = {
proxy: string;
proxytype: 'http' | 'https';
userAgent: string;
gt: string;
challenge: string;
url: string;
apiServer: string;
};
export type HCaptcha = {
proxy: string;
proxytype: 'http' | 'https';
userAgent: string;
siteKey: string;
pageUrl: string;
type: string;
timeout: number;
};
export type ReCaptcha = {
proxy: string;
proxytype: 'http' | 'https';
userAgent: string;
siteKey: string;
url: string;
invisible: boolean;
version: string;
action: string;
score: number;
};
export type AkamaiBMP = {
version: string;
};
export type Request = GeeTest | HCaptcha | ReCaptcha | AkamaiBMP;
export type GetCaptchaResultReq = {
id: string;
};
export type GetCaptchaResultRetryReq = {
id: string;
retries: number;
delay: number;
};
export type CaptchaOption = Partial<Omit<AxiosRequestConfig, 'data'>>;