{"version":3,"sources":["/home/runner/work/captcha-libs/captcha-libs/packages/capguru/dist/index.cjs","../../captcha-client/src/captcha-client.ts","../../captcha-client/src/utils.ts","../src/lib/capguru.ts","../src/lib/Request/_BaseTaskRequest.ts","../src/lib/Request/Recognition/_RecognitionBaseTask.ts","../src/lib/Request/Recognition/AmazonCarPathTask.ts","../src/lib/Request/Recognition/AmazonPuzzleTask.ts","../src/lib/Request/Recognition/BinanceGridTask.ts","../src/lib/Request/Recognition/BinancePuzzleTask.ts","../src/lib/Request/Recognition/BuxMoneyCoordinatesTask.ts","../src/lib/Request/Recognition/FunCaptchaGridTask.ts","../src/lib/Request/Recognition/GenericPuzzleTask.ts","../src/lib/Request/Recognition/GeeTestPuzzleTask.ts","../src/lib/Request/Recognition/HCaptchaCoordinatesTask.ts","../src/lib/Request/Recognition/HCaptchaGridTask.ts","../src/lib/Request/Recognition/ImageToTextTask.ts","../src/lib/Request/Recognition/LinkvertiseCoordinatesTask.ts","../src/lib/Request/Recognition/ReCaptchaGridTask.ts","../src/lib/Request/Recognition/SeoFastCoordinatesTask.ts","../src/lib/Request/Recognition/TikTokABCTask.ts","../src/lib/Request/Recognition/TikTokKolesoTask.ts","../src/lib/Request/Recognition/TikTokPuzzleTask.ts","../src/lib/Request/Recognition/WorldCashCoordinatesTask.ts","../src/lib/Request/Token/HCaptchaTask.ts","../src/lib/Request/Token/_ReCaptchaBaseTask.ts","../src/lib/Request/Token/ReCaptchaV2Task.ts","../src/lib/Request/Token/ReCaptchaV3Task.ts","../src/lib/Request/Token/TurnstileTask.ts"],"names":["CaptchaClient","baseUrl","delay","timeout","Promise","resolve","setTimeout","CapGuru","constructor","params","clientKey","pollingInterval","softguru","getBalance","query","URLSearchParams","body","response","request","status","stringCoordinatePairs","parsedCoordinatePairs","match","groups","coordinates","k","Number","JSON","responseDetail","balance","taskId","abortSignal","isAborted","data","error","Error","method","BaseTask","RecognitionBaseTask","click","textinstructions","AmazonCarPathTask","isSingleCoordinate","AmazonPuzzleTask","BinanceGridTask","isGrid","BinancePuzzleTask","BuxMoneyCoordinatesTask","FunCaptchaGridTask","GenericPuzzleTask","GeeTestPuzzleTask","HCaptchaCoordinatesTask","HCaptchaGridTask","ImageToTextVernet","ImageToTextTask","isString","vernet","LinkvertiseCoordinatesTask","ReCaptchaGridTask","SeoFastCoordinatesTask","TikTokABCTask","TikTokKolesoTask","body0","body1","TikTokPuzzleTask","WorldCashCoordinatesTask","HCaptchaTask","sitekey","pageurl","cookies","userAgent","proxy","proxyType","ReCaptchaBaseTask","googlekey","version","ReCaptchaV2Task","ReCaptchaV3Task","min_score","TurnstileTask"],"mappings":"AAAA,6KAAI,UAAU,EAAE,MAAM,CAAC,cAAc;AACrC,IAAI,WAAW,EAAE,MAAM,CAAC,gBAAgB;AACxC,IAAI,kBAAkB,EAAE,MAAM,CAAC,yBAAyB;AACxD,IAAI,oBAAoB,EAAE,MAAM,CAAC,qBAAqB;AACtD,IAAI,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,cAAc;AAClD,IAAI,aAAa,EAAE,MAAM,CAAC,SAAS,CAAC,oBAAoB;AACxD,IAAI,gBAAgB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,GAAG,IAAI,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK;AAC/J,IAAI,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG;AAC/B,EAAE,IAAI,CAAC,IAAI,KAAK,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAChC,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,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Bo0Bc;AACA;AACA;AACA,IAAA;A4Bl0BdZ;A5Bo0Bc;AACA;AACA,IAAA;A4B11BPY,IAAAA;AAEAC,IAAAA;AACP,EAAA;AAkBF;AAnCmC/B;AAAtB0C;A5B+2BG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/captcha-libs/captcha-libs/packages/capguru/dist/index.cjs","sourcesContent":[null,"export abstract class CaptchaClient<TCreateTaskResponse, TaskRequests, TGetBalanceResponse = number> {\n  protected static baseUrl: string;\n\n  protected abstract clientKey: string;\n\n  protected abstract timeout?: number;\n\n  protected abstract pollingInterval?: number;\n\n  protected abstract createTask (params: unknown): Promise<TCreateTaskResponse>;\n  public abstract solve (params: TaskRequests): Promise<unknown>;\n  public abstract getBalance (): Promise<TGetBalanceResponse>;\n}\n","export const delay =\nasync (timeout: number) => await new Promise((resolve) => setTimeout(resolve, timeout));\n","import { CaptchaClient, delay } from \"@captcha-libs/captcha-client\";\n\nimport type { CaptchaClientParams, CapGuruResponse } from \"./types\";\n\nimport type { CapGuruSolution } from \"./Solution/_BaseSolution\";\n\nimport type {\n  AmazonCarPathTask,\n  AmazonPuzzleTask,\n  BinanceGridTask, BinancePuzzleTask, BuxMoneyCoordinatesTask, FunCaptchaGridTask, GeeTestPuzzleTask, GenericPuzzleTask, HCaptchaCoordinatesTask, HCaptchaGridTask, ImageToTextTask, LinkvertiseCoordinatesTask, ReCaptchaGridTask, ReCaptchaV2Task, ReCaptchaV3Task, Requests, SeoFastCoordinatesTask, TikTokABCTask, TikTokKolesoTask, TikTokPuzzleTask, TurnstileTask, WorldCashCoordinatesTask\n} from \"./Request\";\n\nimport type { CoordinatesSolution } from \"./Solution/GenericPuzzleSolution\";\n\nimport type { HCaptchaTask } from \"./Request/Token/HCaptchaTask\";\n\nimport fetch, { AbortError } from \"node-fetch\";\n\n/**\n * @classdesc CapGuru client\n * @class\n * @see {@link https://docs.cap.guru/en/}\n */\nexport class CapGuru extends CaptchaClient<string, Requests> {\n\n  /**\n   * @type {string} clientKey - YOUR_API_KEY from dashboard\n   */\n  protected clientKey: string;\n\n  /**\n   * @type {number} pollingInterval - polling interval to getTaskResult in ms. Default to 5000\n   */\n  protected pollingInterval: number;\n\n  /**\n   * @type {number} timeout - max timeout to getTaskResult in ms. Default to 120_000\n   */\n  protected timeout: number;\n\n  /**\n   * @type {string} baseUrl - base api url\n   */\n  protected baseUrl: string;\n\n  private softguru = \"140559\";\n\n  /**\n   * @param {object} [params] - CaptchaClientParams\n   * @param {string} [params.clientKey] - YOUR_API_KEY from dashboard\n   * @param {number} [params.timeout] - max timeout to getTaskResult, default = 120000\n   * @param {number} [params.pollingInterval] - polling interval to getTaskResult, default = 5000\n   * @param {number} [params.baseUrl] - base url for capguru, default = \"https://api3.cap.guru/\"\n   */\n  constructor (params: CaptchaClientParams) {\n    const { clientKey, timeout = 120_000, pollingInterval = 5_000, baseUrl = \"https://api3.cap.guru/\" } = params;\n\n    super();\n\n    this.clientKey = clientKey;\n\n    this.pollingInterval = pollingInterval;\n\n    this.timeout = timeout;\n\n    this.baseUrl = baseUrl;\n  }\n\n  public async getBalance (): Promise<number> {\n    const query = new URLSearchParams({\n      \"action\": \"getbalance\",\n      \"json\": \"1\",\n      \"key\": `${this.clientKey}`\n    });\n\n    const body = await fetch(`${this.baseUrl}/res.php`, {\n      \"method\": \"GET\",\n      \"body\": query\n    });\n\n    const response = await body.json() as CapGuruResponse<number>;\n\n    const { request, status } = response;\n\n    if (!status) throw new Error(`CapGuru: ${request}`);\n\n    return request;\n  }\n\n  private parseSolution<TSolution>(response: string, request: Requests): TSolution | undefined {\n    if (response.startsWith(\"coordinate\")) {\n      const stringCoordinatePairs = response.split(\";\");\n\n      const parsedCoordinatePairs = stringCoordinatePairs.map((pair) => {\n        const match = pair.match(/x=(?<x>[-+]?\\d*\\.?\\d+),y=(?<y>[-+]?\\d*\\.?\\d+)(?:,w=(?<w>[-+]?\\d*\\.?\\d+))?/);\n\n        if (!match) return;\n\n        const { groups } = match;\n\n        if (!groups) return;\n\n        const coordinates = Object.fromEntries(Object.entries(groups).filter(([\n          , v\n        ]) => v).\n          map(([\n            k,\n            v\n          ]) => [\n            k,\n            Number(v)\n          ]));\n\n        return coordinates;\n      }) as Array<TSolution>;\n\n      if (!parsedCoordinatePairs || !parsedCoordinatePairs.length) return;\n\n      if (\"isMultipleCoordinates\" in request && request[\"isMultipleCoordinates\"]) return parsedCoordinatePairs as TSolution;\n      else return parsedCoordinatePairs[0];\n    }\n\n    if (response.split(\",\").length && response.split(\",\").every(Number)) return response.split(\",\").map(Number) as TSolution;\n\n    return response as TSolution;\n  }\n\n  /**\n   * @param {object} request - task payload to create task\n   * @return {Promise<CapGuruCreateTaskResponse<TSolution>>} - response of createTask\n   */\n  protected async createTask (request: Requests): Promise<string> {\n    const body = await fetch(`${this.baseUrl}/in.php`, {\n      \"body\": JSON.stringify({\n        \"json\": 1,\n        \"key\": this.clientKey,\n        \"softguru\": this.softguru,\n        ...request\n      }),\n      \"method\": \"POST\"\n    });\n\n    const response = await body.json() as CapGuruResponse<string>;\n\n    const { status, \"request\": responseDetail } = response;\n\n    if (!status) throw new Error(`CapGuru: ${responseDetail}`);\n\n    return responseDetail;\n  }\n\n  /**\n  * @param {BinanceGridTask | FunCaptchaGridTask | HCaptchaGridTask | ReCaptchaGridTask} request - task payload to create task\n  * @return {Promise<CapGuruSolution<Array<number>>>} - response of createTask\n  */\n  public async solve (request: BinanceGridTask | FunCaptchaGridTask | HCaptchaGridTask | ReCaptchaGridTask): Promise<CapGuruSolution<Array<number>>>;\n\n  /**\n  * @param {HCaptchaCoordinatesTask | SeoFastCoordinatesTask | TikTokABCTask | WorldCashCoordinatesTask} request - task payload to create task\n  * @return {Promise<CapGuruSolution<Array<CoordinatesSolution>>>} - response of createTask\n  */\n  public async solve (request: HCaptchaCoordinatesTask | SeoFastCoordinatesTask | TikTokABCTask |\n    WorldCashCoordinatesTask): Promise<CapGuruSolution<Array<CoordinatesSolution>>>;\n\n  /**\n  * @param {AmazonCarPathTask | AmazonPuzzleTask | BinancePuzzleTask | BuxMoneyCoordinatesTask | GeeTestPuzzleTask | GenericPuzzleTask | LinkvertiseCoordinatesTask | TikTokKolesoTask | TikTokPuzzleTask} request - task payload to create task\n  * @return {Promise<CapGuruSolution<Array<number>>>} - response of createTask\n  */\n  public async solve (request: AmazonCarPathTask | AmazonPuzzleTask | BinancePuzzleTask | BuxMoneyCoordinatesTask | GeeTestPuzzleTask | GenericPuzzleTask | LinkvertiseCoordinatesTask | TikTokKolesoTask | TikTokPuzzleTask): Promise<CapGuruSolution<CoordinatesSolution>>;\n\n  /**\n  * @param {ImageToTextTask} request - task payload to create ImageToTextTask\n  * @return {Promise<CapGuruSolution<string>>} - response of createTask\n  */\n  public async solve (request: ImageToTextTask): Promise<CapGuruSolution<string>>;\n\n  /**\n  * @param {HCaptchaTask} request - task payload to create HCaptchaTask\n  * @return {Promise<CapGuruSolution<string>>} - response of createTask\n  */\n  public async solve (request: HCaptchaTask): Promise<CapGuruSolution<string>>;\n\n  /**\n  * @param {ReCaptchaV2Task} request - task payload to create ReCaptchaV2Task\n  * @return {Promise<CapGuruSolution<string>>} - response of createTask\n  */\n  public async solve (request: ReCaptchaV2Task): Promise<CapGuruSolution<string>>;\n\n  /**\n  * @param {ReCaptchaV3Task} request - task payload to create ReCaptchaV3Task\n  * @return {Promise<CapGuruSolution<string>>} - response of createTask\n  */\n  public async solve (request: ReCaptchaV3Task): Promise<CapGuruSolution<string>>;\n\n  /**\n  * @param {TurnstileTask} request - task payload to create TurnstileTask\n  * @return {Promise<CapGuruSolution<string>>} - response of createTask\n  */\n  public async solve (request: TurnstileTask): Promise<CapGuruSolution<string>>;\n\n  /**\n  * @param {Requests} request - task payload to create task\n  * @return {Promise<CapGuruSolution<TSolution>>} - response of createTask\n  */\n  public async solve<TSolution>(request: Requests): Promise<CapGuruSolution<TSolution>> {\n    const balance = await this.getBalance();\n\n    if (!balance) throw new Error(\"CapGuru: ERROR_ZERO_BALANCE\");\n\n    const { \"isMultipleCoordinates\": _isMultipleCoordinates = false, \"isSingleCoordinate\": _isSingleCoordinate = false, \"isGrid\": _isGrid = false, \"isString\": _isString = false, ...payload } = { ...request };\n\n    const taskId = await this.createTask(payload as Requests);\n\n    const abortSignal = AbortSignal.timeout(this.timeout);\n\n    const isAborted = abortSignal.aborted;\n\n    try {\n      while (!isAborted) {\n        const body = await fetch(`${this.baseUrl}/res.php`, {\n          \"body\": JSON.stringify({\n            \"action\": \"get\",\n            \"id\": taskId,\n            \"json\": 1,\n            \"key\": this.clientKey\n          }),\n          \"method\": \"POST\",\n          \"signal\": abortSignal\n        });\n\n        const data = await body.json() as CapGuruResponse<string>;\n\n        if (!data.status && data.request !== \"CAPCHA_NOT_READY\") {\n          return Promise.reject(`CapGuru: ${data.request}`);\n        } else if (data.status) {\n          const parsedSolution = this.parseSolution<TSolution>(data.request, request);\n\n          const solutionResponse: CapGuruSolution<TSolution> = {\n            ...data,\n            \"solution\": parsedSolution\n          };\n\n          return Promise.resolve(solutionResponse);\n        }\n\n        await delay(this.pollingInterval);\n      }\n    } catch (error) {\n      if (error instanceof AbortError && error.name === \"AbortError\") throw new Error(`CapGuru timeout ${this.timeout} exceeded!`);\n      else throw new Error(\"CapGuru unknown error!\");\n    }\n\n    throw new Error(\"CapGuru finished with error\");\n  }\n}\n","const _TaskMethods = [\n  \"hcaptcha\",\n  \"base64\",\n  \"turnstile\",\n  \"hcaptcha\",\n  \"userrecaptcha\"\n] as const;\n\nexport type TaskMethods = typeof _TaskMethods[keyof typeof _TaskMethods];\n\nexport type ProxyTypes = \"HTTP\" | \"HTTPS\" | \"SOCKS4\" | \"SOCKS5\";\n\nexport interface BaseParams { \"method\": TaskMethods }\n\ntype SolutionTypes = \"isGrid\" | \"isMultipleCoordinates\" | \"isSingleCoordinate\" | \"isString\";\n\nexport type TaskSolutionTypes = {\n  [type in SolutionTypes]?: boolean\n};\n\n/**\n   * @classdesc BaseTask for CapGuru tasks\n   * @class\n   */\nexport abstract class BaseTask {\n\n  /**\n   * @type {TaskMethods} method - task type/method\n   */\n  protected method: TaskMethods;\n\n  constructor ({ method }: BaseParams) {\n    this.method = method;\n  }\n}\n","import type { BaseParams } from \"../_BaseTaskRequest\";\n\nimport { BaseTask } from \"../_BaseTaskRequest\";\n\ntype TClick = \"funcap2\" | \"geetest\" | \"geetest2\" | \"hcap\" | \"hcap2\" | \"oth\" | \"recap\" | \"recap2\";\n\nexport interface RecognitionBaseParams extends Omit<BaseParams, \"method\"> {\n  \"body\": string;\n  \"click\": TClick;\n  \"textinstructions\": string;\n}\n\nexport class RecognitionBaseTask extends BaseTask implements RecognitionBaseParams {\n  click: TClick;\n\n  body: string;\n\n  textinstructions: string;\n\n  constructor ({ click, body, textinstructions }: RecognitionBaseParams) {\n    super({ \"method\": \"base64\" });\n\n    this.click = click;\n\n    this.body = body;\n\n    this.textinstructions = textinstructions;\n  }\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype AmazonCarPathParams = Omit<RecognitionBaseParams, \"click\" | \"textinstructions\">;\n\n/**\n * @classdesc Amazon Car path task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/binance.html}\n */\nexport class AmazonCarPathTask extends RecognitionBaseTask implements AmazonCarPathParams, TaskSolutionTypes {\n\n  /**\n   * Create Amazon car path task\n   * This task uses click='oth' and textinstructions='Amazon,Place a dot at the end of the car's path'\n   * @see {@link https://docs.cap.guru/en/apiclick/aws.html}\n   * @param {AmazonCarPathParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: AmazonCarPathParams) {\n    super({\n      ...params,\n      \"click\": \"oth\",\n      \"textinstructions\": \"Amazon,Place a dot at the end of the car's path\"\n    });\n  }\n\n  /**\n   * @type {boolean} isSingleCoordinate - only used for correctly working method overloading intellisense\n   */\n  isSingleCoordinate: TaskSolutionTypes[\"isSingleCoordinate\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype AmazonPuzzleParams = Omit<RecognitionBaseParams, \"click\">;\n\n/**\n * @classdesc Amazon Puzzle task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/aws.html}\n */\nexport class AmazonPuzzleTask extends RecognitionBaseTask implements AmazonPuzzleParams, TaskSolutionTypes {\n\n  /**\n   * Create Amazon puzzle task\n   * This task uses click='geetest' and textinstructions='slider'\n   * @see {@link https://docs.cap.guru/en/apiclick/aws.html}\n   * @param {AmazonPuzzleParams} params - params\n   * @param {string} [params.textinstructions] - \tFor example: Slide the image to complete the pyramid. Tasks are supported only in English!\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: AmazonPuzzleParams) {\n    super({\n      ...params,\n      \"click\": \"oth\"\n    });\n  }\n\n  /**\n   * @type {boolean} isSingleCoordinate - only used for correctly working method overloading intellisense\n   */\n  isSingleCoordinate: TaskSolutionTypes[\"isSingleCoordinate\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype BinanceGridParams = Omit<RecognitionBaseParams, \"click\"> & { \"textinstructions\": string };\n\n/**\n * @classdesc Binance Grid (3x3) task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/binance.html}\n */\nexport class BinanceGridTask extends RecognitionBaseTask implements BinanceGridParams, TaskSolutionTypes {\n\n  /**\n   * Create binance grid task\n   * This task uses click='geetest'\n   * @see {@link https://docs.cap.guru/en/apiclick/binance.html}\n   * @param {BinanceGridParams} params - params\n   * @param {string} [params.textinstructions] - For example: binance,bear. Only tasks in English are supported!\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: BinanceGridParams) {\n    super({\n      ...params,\n      \"click\": \"geetest2\"\n    });\n  }\n\n  /**\n   * @type {boolean} isGrid - only used for correctly working method overloading intellisense\n   */\n  /**\n   * @type {boolean} isGrid - only used for correctly working method overloading intellisense\n   */\n  isGrid: TaskSolutionTypes[\"isGrid\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype BinancePuzzleParams = Omit<RecognitionBaseParams, \"click\" | \"textinstructions\"> & { \"body\": string };\n\n/**\n * @classdesc Binance Puzzle task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/binance.html}\n */\nexport class BinancePuzzleTask extends RecognitionBaseTask implements BinancePuzzleParams, TaskSolutionTypes {\n\n  /**\n   * Create binance grid task\n   * This task uses click='geetest' and textinstructions='binance,slider'\n   * @see {@link https://docs.cap.guru/en/apiclick/binance.html}\n   * @param {BinanceGridParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: BinancePuzzleParams) {\n    super({\n      ...params,\n      \"click\": \"geetest\",\n      \"textinstructions\": \"binance,slider\"\n    });\n  }\n\n  /**\n   * @type {boolean} isSingleCoordinate - only used for correctly working method overloading intellisense\n   */\n  isSingleCoordinate: TaskSolutionTypes[\"isSingleCoordinate\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype BuxMoneyCoordinatesParams = Omit<RecognitionBaseParams, \"click\" | \"textinstructions\">;\n\n/**\n * @classdesc BuxMoney coordinates task\n * This method allows you to solve bux.money and payup.video, with image clicks. We detect objects on the captcha and send you the coordinates for clicking.\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/other/seofast.html}\n */\nexport class BuxMoneyCoordinatesTask extends RecognitionBaseTask implements BuxMoneyCoordinatesParams, TaskSolutionTypes {\n\n  /**\n   * Create  BuxMoney coordinates task. This method allows you to solve bux.money and payup.video, with image clicks. We detect objects on the captcha and send you the coordinates for clicking.\n   * This task uses click='oth' and textinstructions='custom1223'\n   * @see {@link https://docs.cap.guru/en/apiclick/other/seofast.html}\n   * @param {BuxMoneyCoordinatesParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: BuxMoneyCoordinatesParams) {\n    super({\n      ...params,\n      \"click\": \"oth\",\n      \"textinstructions\": \"custom1223\"\n    });\n  }\n\n  /**\n   * @type {boolean} isMultipleCoordinates - only used for correctly working method overloading intellisense\n   */\n  \"isMultipleCoordinates\": TaskSolutionTypes[\"isMultipleCoordinates\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype FunCaptchaGridParams = Omit<RecognitionBaseParams, \"click\"> & { \"textinstructions\": string };\n\n/**\n * @classdesc FunCaptcha Grid (3x3) task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/funcap.html}\n */\nexport class FunCaptchaGridTask extends RecognitionBaseTask implements FunCaptchaGridParams, TaskSolutionTypes {\n\n  /**\n   * Create FunCaptcha grid task\n   * This task uses click='funcap2'\n   * @see {@link https://docs.cap.guru/en/apiclick/funcap.html}\n   * @param {FunCaptchaGridParams} params - params\n   * @param {string} [params.textinstructions] - For example: Pick the spiral galaxy\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: FunCaptchaGridParams) {\n    super({\n      ...params,\n      \"click\": \"funcap2\"\n    });\n  }\n\n  /**\n   * @type {boolean} isGrid - only used for correctly working method overloading intellisense\n   */\n  isGrid: TaskSolutionTypes[\"isGrid\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\nexport type GenericPuzzleTaskParams = Omit<RecognitionBaseParams, \"click\" | \"textinstructions\">;\n\n/**\n * @classdesc Generic Puzzle task\n * This task uses click=geetest and textinstructions=slider\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/api/slider.html}\n */\nexport class GenericPuzzleTask extends RecognitionBaseTask implements GenericPuzzleTaskParams, TaskSolutionTypes {\n\n  /**\n   * Create Puzzle task\n   * This task uses click='geetest' and textinstructions='slider'\n   * @see {@link https://docs.cap.guru/en/api/slider.html}\n   * @param {GenericPuzzleTaskParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: GenericPuzzleTaskParams) {\n    super({\n      ...params,\n      \"click\": \"geetest\",\n      \"textinstructions\": \"slider\"\n    });\n  }\n\n  /**\n   * @type {boolean} isSingleCoordinate - only used for correctly working method overloading intellisense\n   */\n  isSingleCoordinate: TaskSolutionTypes[\"isSingleCoordinate\"] = true;\n}\n","import type { GenericPuzzleTaskParams } from \"./GenericPuzzleTask\";\n\nimport { GenericPuzzleTask } from \"./GenericPuzzleTask\";\n\ntype GeeTestPuzzleParams = GenericPuzzleTaskParams;\n\n/**\n * @classdesc GeeTest Puzzle task\n * @class\n * @extends {GenericPuzzleTask}\n * @see {@link https://docs.cap.guru/en/apiclick/geetest.html}\n */\nexport class GeeTestPuzzleTask extends GenericPuzzleTask implements GeeTestPuzzleParams {\n\n  /**\n   * Create GeeTest Puzzle task\n   * This task uses click='geetest' and textinstructions='slider'\n   * @see {@link https://docs.cap.guru/en/apiclick/geetest.html}\n   * @param {GeeTestGridParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: GeeTestPuzzleParams) {\n    super(params);\n  }\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype HCaptchaCoordinatesParams = Omit<RecognitionBaseParams, \"click\"> & { \"textinstructions\": string };\n\n/**\n * @classdesc HCaptcha Coordinates\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/hcap.html}\n */\nexport class HCaptchaCoordinatesTask extends RecognitionBaseTask implements HCaptchaCoordinatesParams, TaskSolutionTypes {\n\n  /**\n   * Create HCaptcha coordinates task\n   * This task uses click='hcap'\n   * @see {@link https://docs.cap.guru/en/apiclick/hcap.html}\n   * @param {HCaptchaCoordinatesParams} params - params\n   * @param {string} [params.textinstructions] - For example: bear. Tasks are supported only in English!\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: HCaptchaCoordinatesParams) {\n    super({\n      ...params,\n      \"click\": \"hcap\"\n    });\n  }\n\n  /**\n   * @type {boolean} isMultipleCoordinates - only used for correctly working method overloading intellisense\n   */\n  \"isMultipleCoordinates\": TaskSolutionTypes[\"isMultipleCoordinates\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype HCaptchaGridParams = Omit<RecognitionBaseParams, \"click\"> & { \"textinstructions\": string };\n\n/**\n * @classdesc HCaptcha Grid (3x3) task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/hcap.html}\n */\nexport class HCaptchaGridTask extends RecognitionBaseTask implements HCaptchaGridParams, TaskSolutionTypes {\n\n  /**\n   * Create HCaptcha grid task\n   * This task uses click='hcap2'\n   * @see {@link https://docs.cap.guru/en/apiclick/hcap.html}\n   * @param {HCaptchaGridParams} params - params\n   * @param {string} [params.textinstructions] - For example: Please click each image containing a ladybug\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: HCaptchaGridParams) {\n    super({\n      ...params,\n      \"click\": \"hcap2\"\n    });\n  }\n\n  /**\n   * @type {boolean} isGrid - only used for correctly working method overloading intellisense\n   */\n  isGrid: TaskSolutionTypes[\"isGrid\"] = true;\n}\n","import type { BaseParams, TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport { BaseTask } from \"../_BaseTaskRequest\";\n\nexport enum ImageToTextVernet {\n  \"GeneralV1\" = 1,\n  \"GeneralV2\" = 6,\n  \"Arithmetic\" = 22,\n  \"Rambler\" = 12,\n  \"GeneralYandex\" = 18,\n  \"Yandex6ch\" = 20,\n  \"VKontakte\" = 16,\n  \"SolveMedia\" = 14,\n  \"Gibdd\" = 13,\n  \"OkRu\" = 9,\n  \"WorldOfTanks\" = 17,\n  \"MicrosoftHotmail\" = 5,\n  \"GeneralCyrillic\" = 7\n}\n\ntype ImageToTextParams = Omit<BaseParams, \"method\"> & {\n  \"body\": string;\n  \"vernet\"?: ImageToTextVernet;\n};\n\n/**\n * @classdesc ImageToText task\n * @class\n * @extends {BaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/text.html}\n */\nexport class ImageToTextTask extends BaseTask implements ImageToTextParams, TaskSolutionTypes {\n\n  /**\n   * Create Image to text task\n   * @see {@link https://docs.cap.guru/en/apiclick/text.html}\n   * @param {ImageToTextParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   * @param {ImageToTextVernet} [params.vernet] - vernet for image recognition\n   */\n  constructor ({ body, vernet }: ImageToTextParams) {\n    super({ \"method\": \"base64\" });\n\n    this.body = body;\n\n    this.vernet = vernet;\n  }\n\n  /**\n   * @type {boolean} isString - only used for correctly working method overloading intellisense\n   */\n  isString: TaskSolutionTypes[\"isString\"] = true;\n\n  /**\n   * @param {ImageToTextVernet} vernet - vernet for image recognition\n   */\n  vernet?: ImageToTextVernet;\n\n  /**\n   * @type {string} body - Image encoded in Base64 format\n   */\n  body: string;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype LinkvertiseCoordinatesParams = Omit<RecognitionBaseParams, \"click\"> & { \"textinstructions\": string };\n\n/**\n * @classdesc Linkvertise coordinates task\n * This method solves Linkvertise, with image clicks. We detect objects on the captcha and send you the coordinates for clicking.\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/other/linkvertise.html}\n */\nexport class LinkvertiseCoordinatesTask extends RecognitionBaseTask implements LinkvertiseCoordinatesParams, TaskSolutionTypes {\n\n  /**\n   * Create Linkvertise coordinates task. This method solves Linkvertise, with image clicks. We detect objects on the captcha and send you the coordinates for clicking.\n   * This task uses click='oth'\n   * @see {@link https://docs.cap.guru/en/apiclick/other/linkvertise.html}\n   * @param {LinkvertiseCoordinatesParams} params - params\n   * @param {string} [params.textinstructions] - \tFor example: custom1221,Please click on the globe\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: LinkvertiseCoordinatesParams) {\n    super({\n      ...params,\n      \"click\": \"oth\"\n    });\n  }\n\n  /**\n   * @type {boolean} isMultipleCoordinates - only used for correctly working method overloading intellisense\n   */\n  \"isMultipleCoordinates\": TaskSolutionTypes[\"isMultipleCoordinates\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype ReCaptchaGridParams = Omit<RecognitionBaseParams, \"click\"> & { \"textinstructions\": string };\n\n/**\n * @classdesc ReCaptcha Grid (3x3) task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/recap.html}\n */\nexport class ReCaptchaGridTask extends RecognitionBaseTask implements ReCaptchaGridParams, TaskSolutionTypes {\n\n  /**\n   * Create ReCaptcha grid task\n   * This task uses click='recap2'\n   * @see {@link https://docs.cap.guru/en/apiclick/recap.html}\n   * @param {ReCaptchaGridParams} params - params\n   * @param {string} [params.textinstructions] - For example: Select all images with traffic light\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: ReCaptchaGridParams) {\n    super({\n      ...params,\n      \"click\": \"recap2\"\n    });\n  }\n\n  /**\n   * @type {boolean} isGrid - only used for correctly working method overloading intellisense\n   */\n  isGrid: TaskSolutionTypes[\"isGrid\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype SeoFastCoordinatesParams = Omit<RecognitionBaseParams, \"click\">;\n\n/**\n * @classdesc SeoFast coordinates task\n * This method solves Seo-fast/Profitcentr/Seotime, with image clicks. We detect objects on the captcha and send you the coordinates for clicking.\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/other/seofast.html}\n */\nexport class SeoFastCoordinatesTask extends RecognitionBaseTask implements SeoFastCoordinatesParams, TaskSolutionTypes {\n\n  /**\n   * Create  SeoFast coordinates task. This method solves Seo-fast/Profitcentr/Seotime, with image clicks. We detect objects on the captcha and send you the coordinates for clicking.\n   * This task uses click='oth'\n   * @see {@link https://docs.cap.guru/en/apiclick/other/seofast.html}\n   * @param {SeoFastCoordinatesParams} params - params\n   * @param {string} [params.textinstructions] - \tFor example: custom1222,Отметьте изображения со бантиками\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: SeoFastCoordinatesParams) {\n    super({\n      ...params,\n      \"click\": \"oth\"\n    });\n  }\n\n  /**\n   * @type {boolean} isMultipleCoordinates - only used for correctly working method overloading intellisense\n   */\n  \"isMultipleCoordinates\": TaskSolutionTypes[\"isMultipleCoordinates\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype TikTokABCParams = Omit<RecognitionBaseParams, \"click\" | \"textinstructions\">;\n\n/**\n * @classdesc TikTok ABC task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/tiktok.html}\n */\nexport class TikTokABCTask extends RecognitionBaseTask implements TikTokABCParams, TaskSolutionTypes {\n\n  /**\n   * Create TikTok ABC task\n   * This task uses click='geetest' and textinstructions='abc'\n   * @see {@link https://docs.cap.guru/en/apiclick/tiktok.html}\n   * @param {TikTokGridParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: TikTokABCParams) {\n    super({\n      ...params,\n      \"click\": \"geetest\",\n      \"textinstructions\": \"abc\"\n    });\n  }\n\n  /**\n   * @type {boolean} isMultipleCoordinates - only used for correctly working method overloading intellisense\n   */\n  \"isMultipleCoordinates\": TaskSolutionTypes[\"isMultipleCoordinates\"] = true;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype TikTokKolesoParams = Omit<RecognitionBaseParams, \"click\" | \"textinstructions\"> & {\n  \"body0\"?: string;\n  \"body1\"?: string;\n};\n\n/**\n * @classdesc TikTok Koleso task\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/tiktok.html}\n */\nexport class TikTokKolesoTask extends RecognitionBaseTask implements TikTokKolesoParams, TaskSolutionTypes {\n\n  /**\n   * Create TikTok Koleso task\n   * This task uses click='geetest' and textinstructions='koleso'\n   * You can use only one image (body), or body0 and body1 images for outer and inner pieces of TikTok puzzle\n   * @see {@link https://docs.cap.guru/en/apiclick/tiktok.html}\n   * @param {TikTokGridParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   * @param {string} [params.body0] - Image encoded in Base64 format\n   * @param {string} [params.body1] - Image encoded in Base64 format\n   */\n  constructor ({ body1, body0, ...params }: TikTokKolesoParams) {\n    super({\n      ...params,\n      \"click\": \"geetest\",\n      \"textinstructions\": \"koleso\"\n    });\n\n    this.body0 = body0;\n\n    this.body1 = body1;\n  }\n\n  /**\n   * @type {boolean} isSingleCoordinate - only used for correctly working method overloading intellisense\n   */\n  isSingleCoordinate: TaskSolutionTypes[\"isSingleCoordinate\"] = true;\n\n  /**\n   * @type {string} body0\n   */\n  body0?: string;\n\n  /**\n   * @type {string} body1\n   */\n  body1?: string;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { GenericPuzzleTaskParams } from \"./GenericPuzzleTask\";\n\nimport { GenericPuzzleTask } from \"./GenericPuzzleTask\";\n\ntype TikTokPuzzleParams = GenericPuzzleTaskParams;\n\n/**\n * @classdesc TikTok Puzzle task\n * @class\n * @extends {GenericPuzzleTask}\n * @see {@link https://docs.cap.guru/en/apiclick/tiktok.html}\n */\nexport class TikTokPuzzleTask extends GenericPuzzleTask implements TikTokPuzzleParams, TaskSolutionTypes {\n\n  /**\n   * Create TikTok Puzzle task\n   * This task uses click='geetest' and textinstructions='slider'\n   * @see {@link https://docs.cap.guru/en/apiclick/tiktok.html}\n   * @param {TikTokGridParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: TikTokPuzzleParams) {\n    super(params);\n  }\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport type { RecognitionBaseParams } from \"./_RecognitionBaseTask\";\n\nimport { RecognitionBaseTask } from \"./_RecognitionBaseTask\";\n\ntype WorldCashCoordinatesParams = Omit<RecognitionBaseParams, \"click\" | \"textinstructions\">;\n\n/**\n * @classdesc WorldCash coordinates task\n * This method solves World.cash, with image clicks. We detect objects on the captcha and send you the coordinates for clicking.\n * @class\n * @extends {RecognitionBaseTask}\n * @see {@link https://docs.cap.guru/en/apiclick/other/worldcash.html}\n */\nexport class WorldCashCoordinatesTask extends RecognitionBaseTask implements WorldCashCoordinatesParams, TaskSolutionTypes {\n\n  /**\n   * Create  WorldCash coordinates task. This method solves World.cash, with image clicks. We detect objects on the captcha and send you the coordinates for clicking.\n   * This task uses click='oth' and textinstructions='custom1224'\n   * @see {@link https://docs.cap.guru/en/apiclick/other/worldcash.html}\n   * @param {WorldCashCoordinatesParams} params - params\n   * @param {string} [params.body] - Image encoded in Base64 format\n   */\n  constructor (params: WorldCashCoordinatesParams) {\n    super({\n      ...params,\n      \"click\": \"oth\",\n      \"textinstructions\": \"custom1224\"\n    });\n  }\n\n  /**\n   * @type {boolean} isMultipleCoordinates - only used for correctly working method overloading intellisense\n   */\n  \"isMultipleCoordinates\": TaskSolutionTypes[\"isMultipleCoordinates\"] = true;\n}\n","import type { BaseParams, ProxyTypes, TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport { BaseTask } from \"../_BaseTaskRequest\";\n\nexport type HCaptchaParams = Omit<BaseParams, \"method\"> & {\n  \"cookies\"?: string;\n  \"pageurl\": string;\n  \"proxy\"?: string;\n  \"proxyType\"?: ProxyTypes;\n  \"sitekey\": string;\n  \"userAgent\"?: string;\n};\n\n/**\n * @classdesc HCaptcha Task\n * @class\n * @extends {Task}\n * @see {@link https://docs.cap.guru/en/apitoken/hcap.html}\n */\nexport class HCaptchaTask extends BaseTask implements HCaptchaParams, TaskSolutionTypes {\n\n  //\n  // Create HCaptchaTask\n  // {@link https://docs.cap.guru/en/apitoken/hcap.html}\n  // @param {HCaptchaParams} params - params\n  // @param {string} [params.sitekey] - The value of the parameter k or data-sitekey that you found in the page code. For example 93d2dffa-6cad-4031-9c00-4741a03c569d\n  // @param {string} [params.pageurl] - Full URL of the page where you are solving hCaptcha\n  // For example http://learn.captcha.guru/ln/hcaptcha /\n  // @param {string} [params.cookies] - Your cookies that will be used by the employee to solve the captcha.\n  // @param {string} [params.userAgent] - We substitute your userAgent for the employee.\n  // @param {string} [params.proxy] - Format: login:password@151.142.23.32:3128\n  // @param {string} [params.proxyType] - Your proxy type: : HTTP, HTTPS, SOCKS4, SOCKS5.\n  //\n  constructor ({ sitekey, pageurl, proxy, proxyType, userAgent, cookies }: HCaptchaParams) {\n    super({ \"method\": \"hcaptcha\" });\n\n    this.sitekey = sitekey;\n\n    this.pageurl = pageurl;\n\n    this.proxy = proxy;\n\n    this.proxyType = proxyType;\n\n    this.userAgent = userAgent;\n\n    this.cookies = cookies;\n  }\n\n  //\n  // @type {string} sitekey - The value of the parameter k or data-sitekey that you found in the page code\n  // For example 93d2dffa-6cad-4031-9c00-4741a03c569d\n  //\n  sitekey: string;\n\n  //\n  // @type {string} pageurl - Full URL of the page where you are solving hCaptcha\n  // For example http://learn.captcha.guru/ln/hcaptcha/\n  //\n  pageurl: string;\n\n  /**\n   * @type {string} cookies - Your cookies that will be used by the employee to solve the captcha.\n   */\n  cookies?: string;\n\n  /**\n   * @type {string} userAgent - We substitute your userAgent for the employee.\n   */\n  userAgent?: string;\n\n  //\n  // @type {string} proxy - Format: login:password@151.142.23.32:3128\n  // More information about the proxy [here] (/en/api/proxy).\n  //\n  proxy?: string;\n\n  /**\n   * @type {string} proxyType - Your proxy type: : HTTP, HTTPS, SOCKS4, SOCKS5.\n   */\n  proxyType?: ProxyTypes;\n\n  /**\n   * @type {boolean} isString - only used for correctly working method overloading intellisense\n   */\n  isString: TaskSolutionTypes[\"isString\"] = true;\n}\n","import type { BaseParams, ProxyTypes, TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport { BaseTask } from \"../_BaseTaskRequest\";\n\ntype ReCaptchaVersions = \"v2\" | \"v3\";\n\nexport type ReCaptchaBaseParams = Omit<BaseParams, \"method\"> & {\n  \"cookies\"?: string;\n  \"data-s\"?: string;\n  \"googlekey\": string;\n  \"pageurl\": string;\n  \"proxy\"?: string;\n  \"proxyType\"?: ProxyTypes;\n  \"userAgent\"?: string;\n  \"version\"?: ReCaptchaVersions;\n};\n\n/**\n * @classdesc ReCaptchaBase task\n * @class\n * @extends {BaseTask}\n */\nexport abstract class ReCaptchaBaseTask extends BaseTask implements ReCaptchaBaseParams, TaskSolutionTypes {\n\n  /**\n   * Create ReCaptchaBaseTask\n   * @param {ReCaptchaBaseParams} params - params\n   * @param {string} [params.googlekey] - The value of the parameter k or data-sitekey that you found in the page code. For example 6le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-\n   * @param {string} [params.pageurl] - Full URL of the page where you are solving reCAPTCHA\n   * @param {string} [params.data-s] - The value of the data-s parameter found on the page. Relevant for Google search\n   * @param {string} [params.cookies] - \tYour cookies that will be used by the employee to solve the captcha.\n   * @param {string} [params.userAgent] - We substitute your userAgent for the employee.\n   * @param {string} [params.proxy] - Format: login:password@151.142.23.32:3128\n   * @param {string} [params.proxyType] - Your proxy type: : HTTP, HTTPS, SOCKS4, SOCKS5.\n   */\n  constructor ({ googlekey, pageurl, proxy, proxyType, userAgent, cookies, \"data-s\": dataS, version }: ReCaptchaBaseParams) {\n    super({ \"method\": \"userrecaptcha\" });\n\n    this.googlekey = googlekey;\n\n    this.pageurl = pageurl;\n\n    this[\"data-s\"] = dataS;\n\n    this.proxy = proxy;\n\n    this.proxyType = proxyType;\n\n    this.userAgent = userAgent;\n\n    this.cookies = cookies;\n\n    this.version = version;\n  }\n\n  //\n  // @type {string} googlekey - The value of the parameter k or data-sitekey that you found in the page code\n  // For example 6le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-\n  //\n  googlekey: string;\n\n  //\n  // @type {string} pageurl - Full URL of the page where you are solving reCAPTCHA Base\n  // For example https://www.google.com/recaptcha/api2/demo\n  //\n  pageurl: string;\n\n  /**\n   * @type {string} data-s - The value of the data-s parameter found on the page. Relevant for Google search and other Google services.\n   */\n  \"data-s\"?: string;\n\n  /**\n   * @type {string} cookies - \tYour cookies that will be used by the employee to solve the captcha.\n   */\n  cookies?: string;\n\n  /**\n   * @type {string} userAgent - We substitute your userAgent for the employee.\n   */\n  userAgent?: string;\n\n  //\n  // @type {string} proxy - Format: login:password@151.142.23.32:3128\n  // More information about the proxy [here] (/en/api/proxy).\n  //\n  proxy?: string;\n\n  /**\n   * @type {string} proxyType - Your proxy type: : HTTP, HTTPS, SOCKS4, SOCKS5.\n   */\n  proxyType?: ProxyTypes;\n\n  /**\n   * @type {number} version - Recaptcha version\n   */\n  version?: ReCaptchaVersions;\n\n  /**\n   * @type {boolean} isString - only used for correctly working method overloading intellisense\n   */\n  isString: TaskSolutionTypes[\"isString\"] = true;\n}\n","import type { ReCaptchaBaseParams } from \"./_ReCaptchaBaseTask\";\n\nimport { ReCaptchaBaseTask } from \"./_ReCaptchaBaseTask\";\n\nexport type ReCaptchaV2Params = Omit<ReCaptchaBaseParams, \"version\">;\n\n/**\n * @classdesc ReCaptchaV2 & ReCaptchaV2 Invisible Solution\n * @class\n * @extends {ReCaptchaBaseTask}\n * @see {@link https://docs.cap.guru/en/apitoken/recap2.html}\n */\nexport class ReCaptchaV2Task extends ReCaptchaBaseTask implements ReCaptchaV2Params {\n\n  /**\n   * Create ReCaptchaV2Task\n   * @see {@link https://docs.cap.guru/en/apitoken/recap2.html}\n   * @param {ReCaptchaV2Params} params - params\n   * @param {string} [params.googlekey] - The value of the parameter k or data-sitekey that you found in the page code. For example 6le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-\n   * @param {string} [params.pageurl] - Full URL of the page where you are solving reCAPTCHA V2\n   * @param {string} [params.data-s] - The value of the data-s parameter found on the page. Relevant for Google search\n   * @param {string} [params.cookies] - \tYour cookies that will be used by the employee to solve the captcha.\n   * @param {string} [params.userAgent] - We substitute your userAgent for the employee.\n   * @param {string} [params.proxy] - Format: login:password@151.142.23.32:3128\n   * @param {string} [params.proxyType] - Your proxy type: : HTTP, HTTPS, SOCKS4, SOCKS5.\n   */\n  constructor (params: ReCaptchaV2Params) {\n    super({\n      ...params,\n      \"version\": \"v2\"\n    });\n  }\n}\n","import type { ReCaptchaBaseParams } from \"./_ReCaptchaBaseTask\";\n\nimport { ReCaptchaBaseTask } from \"./_ReCaptchaBaseTask\";\n\nexport type ReCaptchaV3Params = Omit<ReCaptchaBaseParams, \"version\"> & { \"min_score\"?: number };\n\n/**\n * @classdesc ReCaptchaV3 Solution\n * @class\n * @extends {ReCaptchaBaseTask}\n * @see {@link https://docs.cap.guru/en/apitoken/recap3.html}\n */\nexport class ReCaptchaV3Task extends ReCaptchaBaseTask implements ReCaptchaV3Params {\n\n  /**\n   * Create ReCaptchaV3Task\n   * @see {@link https://docs.cap.guru/en/apitoken/recap3.html}\n   * @param {ReCaptchaV3Params} params - params\n   * @param {string} [params.googlekey] - The value of the parameter k or data-sitekey that you found in the page code. For example 6le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-\n   * @param {string} [params.pageurl] - Full URL of the page where you are solving reCAPTCHA V3\n   * @param {string} [params.min_score] - Required rating value (score). At the moment, it is difficult to get a token with a score higher than 0.1\n   * @param {string} [params.cookies] - \tYour cookies that will be used by the employee to solve the captcha.\n   * @param {string} [params.userAgent] - We substitute your userAgent for the employee.\n   * @param {string} [params.proxy] - Format: login:password@151.142.23.32:3128\n   * @param {string} [params.proxyType] - Your proxy type: : HTTP, HTTPS, SOCKS4, SOCKS5.\n   */\n  constructor (params: ReCaptchaV3Params) {\n    const { min_score, ..._params } = params;\n\n    super({\n      ..._params,\n      \"version\": \"v3\"\n    });\n\n    this.min_score = min_score;\n  }\n\n  /**\n   * @type {number} min_score - Required rating value (score). At the moment, it is difficult to get a token with a score higher than 0.1\n   */\n  min_score?: number;\n}\n","import type { TaskSolutionTypes } from \"../_BaseTaskRequest\";\n\nimport { BaseTask } from \"../_BaseTaskRequest\";\n\nexport type TurnstileTaskParams = {\n  \"pageurl\": string;\n  \"sitekey\": string;\n};\n\n/**\n * @classdesc TurnstileTask Solution\n * @class\n * @extends {BaseTask}\n * @see {@link https://docs.cap.guru/en/apitoken/turnstile.html}\n */\nexport class TurnstileTask extends BaseTask implements TurnstileTaskParams, TaskSolutionTypes {\n\n  //\n  // Create TurnstileTaskTask\n  // {@link https://docs.cap.guru/en/apitoken/turnstile.html}\n  // @param {TurnstileTaskParams} params - params\n  // @param {string} [params.sitekey] - The value of the data-sitekey parameter you found in the page code\n  // For example 1x00000000000000000000AA\n  // @param {string} [params.pageurl] - URL of the page you are solving Cloudflare Turnstile\n  // For example https://react-turnstile.vercel.app/basic\n  //\n  constructor ({ pageurl, sitekey }: TurnstileTaskParams) {\n    super({ \"method\": \"turnstile\" });\n\n    this.sitekey = sitekey;\n\n    this.pageurl = pageurl;\n  }\n\n  //\n  // @type {string} pageurl - URL of the page you are solving Cloudflare Turnstile\n  // For example https://react-turnstile.vercel.app/basic\n  //\n  pageurl: string;\n\n  //\n  // @type {string} sitekey - The value of the data-sitekey parameter you found in the page code\n  // For example 1x00000000000000000000AA\n  //\n  sitekey: string;\n\n  /**\n   * @type {boolean} isString - only used for correctly working method overloading intellisense\n   */\n  isString: TaskSolutionTypes[\"isString\"] = true;\n}\n"]}