diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-11-18 12:24:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-18 12:24:39 +0100 |
commit | 2fcb3f949bbde7f5380acc68dc6b1f938dec12bc (patch) | |
tree | 035bd400b4057a744b29a0ebee96579bfbf429f6 /g4f/Provider/npm/node_modules/funcaptcha/lib/challenge.d.ts | |
parent | ~ | g4f `v-0.1.8.5` (diff) | |
parent | Add AiChatOnline, ChatgptDemoAi, ChatgptNext Providers (diff) | |
download | gpt4free-2fcb3f949bbde7f5380acc68dc6b1f938dec12bc.tar gpt4free-2fcb3f949bbde7f5380acc68dc6b1f938dec12bc.tar.gz gpt4free-2fcb3f949bbde7f5380acc68dc6b1f938dec12bc.tar.bz2 gpt4free-2fcb3f949bbde7f5380acc68dc6b1f938dec12bc.tar.lz gpt4free-2fcb3f949bbde7f5380acc68dc6b1f938dec12bc.tar.xz gpt4free-2fcb3f949bbde7f5380acc68dc6b1f938dec12bc.tar.zst gpt4free-2fcb3f949bbde7f5380acc68dc6b1f938dec12bc.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/npm/node_modules/funcaptcha/lib/challenge.d.ts | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/g4f/Provider/npm/node_modules/funcaptcha/lib/challenge.d.ts b/g4f/Provider/npm/node_modules/funcaptcha/lib/challenge.d.ts deleted file mode 100644 index 07b6c754..00000000 --- a/g4f/Provider/npm/node_modules/funcaptcha/lib/challenge.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -/// <reference types="node" /> -import { TokenInfo } from "./session"; -interface ChallengeOptions { - userAgent?: string; - proxy?: string; -} -interface ChallengeData { - token: string; - tokenInfo: TokenInfo; - session_token: string; - challengeID: string; - challengeURL: string; - game_data: { - gameType: number; - customGUI: { - is_using_api_breaker_v2: boolean; - _guiFontColr: string; - _challenge_imgs: string[]; - api_breaker: string; - encrypted_mode: number; - example_images: { - correct: string; - incorrect: string; - }; - }; - waves: number; - game_variant?: string; - game_difficulty?: number; - puzzle_name?: string; - instruction_string?: string; - }; - game_sid: string; - lang: string; - string_table: { - [key: string]: string; - }; - string_table_prefixes: string[]; -} -interface AnswerResponse { - response: "not answered" | "answered"; - solved?: boolean; - incorrect_guess?: number; - score?: number; - decryption_key?: string; - time_end?: number; - time_end_seconds?: number; -} -export declare abstract class Challenge { - data: ChallengeData; - imgs: Promise<Buffer>[]; - wave: number; - protected key: Promise<string>; - protected userAgent: string; - protected proxy: string; - constructor(data: ChallengeData, challengeOptions: ChallengeOptions); - getImage(): Promise<Buffer>; - protected getKey(): Promise<string>; - abstract answer(answer: number): Promise<AnswerResponse>; - get gameType(): number; - get variant(): string; - get instruction(): string; - get waves(): number; -} -export declare class Challenge1 extends Challenge { - private answerHistory; - increment: any; - constructor(data: ChallengeData, challengeOptions: ChallengeOptions); - private round; - answer(answer: number): Promise<AnswerResponse>; -} -export declare class Challenge3 extends Challenge { - private answerHistory; - constructor(data: ChallengeData, challengeOptions: ChallengeOptions); - answer(tile: number): Promise<AnswerResponse>; -} -export declare class Challenge4 extends Challenge { - private answerHistory; - constructor(data: ChallengeData, challengeOptions: ChallengeOptions); - answer(index: number): Promise<AnswerResponse>; - get difficulty(): number; -} -export {}; |