-
Notifications
You must be signed in to change notification settings - Fork 4
/
configs.d.ts
39 lines (35 loc) · 1.02 KB
/
configs.d.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
export type ServiceConfig = {
PORT: number;
CUSTOM_IMG_VIEWER_SERVICE: string;
/** Set to `null` to connect directly */
PROXY_HOSTNAME?: string;
/** Set to `null` to connect directly */
PROXY_PORT?: number;
};
export type TokensConfig = {
TWITTER_SCAPPER: {
/** Path to executable file */
binary_file_path: string;
/** Path to JSON file with cookies (generated by that executable prior to running Node.js) */
cookies_file_path: string;
};
/** Cookies from browser */
INSTAGRAM_COOKIE_ONE_LINE_FOR_POSTS: string;
/** Netscape cookies file location for Reels/yt-dlp */
INSTAGRAM_COOKIE_FILE_LOCATION_FOR_REELS: string;
TUMBLR_OAUTH: {
consumer_key: string;
consumer_secret: string;
token: string;
token_secret: string;
};
KEMONO_COOKIE: string;
REDDIT_COOKIE: string;
JOYREACTOR_COOKIE: string;
};
export type Configs = {
service: ServiceConfig;
tokens: TokensConfig;
};
export type ConfigName = keyof Configs;
export type GenericConfig<T extends ConfigName> = Configs[T];