captcha-core-0.1.0.1: A package for integrating a variety of captcha solving services.
Copyright(c) 2022 Edward Yang
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Captcha.Internal.Types

Description

This module is for internal-use and does not follow pvp versioning policies.

Synopsis

Documentation

data ProxyProtocol Source #

Proxy protocol.

Constructors

Http 
Https 
Socks4 
Socks5 

Instances

Instances details
Show ProxyProtocol Source # 
Instance details

Defined in Captcha.Internal.Types

Default ProxyProtocol Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: ProxyProtocol #

HasProtocol Proxy ProxyProtocol Source # 
Instance details

Defined in Captcha.Internal.Types

data ProxyAuth Source #

Proxy authentication.

Constructors

ProxyAuth 

Fields

Instances

Instances details
Show ProxyAuth Source # 
Instance details

Defined in Captcha.Internal.Types

Generic ProxyAuth Source # 
Instance details

Defined in Captcha.Internal.Types

Associated Types

type Rep ProxyAuth :: Type -> Type #

Default ProxyAuth Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: ProxyAuth #

HasUsername ProxyAuth Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasPassword ProxyAuth Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasAuth Proxy (Maybe ProxyAuth) Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep ProxyAuth Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep ProxyAuth = D1 ('MetaData "ProxyAuth" "Captcha.Internal.Types" "captcha-core-0.1.0.1-FX9y8zPZYJm3cX5fI505eW" 'False) (C1 ('MetaCons "ProxyAuth" 'PrefixI 'True) (S1 ('MetaSel ('Just "_username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

class HasPassword s a | s -> a where Source #

Methods

password :: Lens' s a Source #

Instances

Instances details
HasPassword ProxyAuth Text Source # 
Instance details

Defined in Captcha.Internal.Types

class HasUsername s a | s -> a where Source #

Methods

username :: Lens' s a Source #

Instances

Instances details
HasUsername ProxyAuth Text Source # 
Instance details

Defined in Captcha.Internal.Types

data Proxy Source #

Proxy to be used when solving a captcha.

Constructors

Proxy 

Fields

Instances

Instances details
Show Proxy Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

showsPrec :: Int -> Proxy -> ShowS #

show :: Proxy -> String #

showList :: [Proxy] -> ShowS #

Generic Proxy Source # 
Instance details

Defined in Captcha.Internal.Types

Associated Types

type Rep Proxy :: Type -> Type #

Methods

from :: Proxy -> Rep Proxy x #

to :: Rep Proxy x -> Proxy #

Default Proxy Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: Proxy #

HasProtocol Proxy ProxyProtocol Source # 
Instance details

Defined in Captcha.Internal.Types

HasPort Proxy Int Source # 
Instance details

Defined in Captcha.Internal.Types

HasAddress Proxy Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasAuth Proxy (Maybe ProxyAuth) Source # 
Instance details

Defined in Captcha.Internal.Types

HasProxy FunCaptcha (Maybe Proxy) Source # 
Instance details

Defined in Captcha.Internal.Types

HasProxy ReCaptchaV2 (Maybe Proxy) Source # 
Instance details

Defined in Captcha.Internal.Types

HasProxy ReCaptchaV3 (Maybe Proxy) Source # 
Instance details

Defined in Captcha.Internal.Types

HasProxy HCaptcha (Maybe Proxy) Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep Proxy Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep Proxy = D1 ('MetaData "Proxy" "Captcha.Internal.Types" "captcha-core-0.1.0.1-FX9y8zPZYJm3cX5fI505eW" 'False) (C1 ('MetaCons "Proxy" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ProxyProtocol)) :*: (S1 ('MetaSel ('Just "_port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_auth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProxyAuth)))))

class HasAddress s a | s -> a where Source #

Methods

address :: Lens' s a Source #

Instances

Instances details
HasAddress Proxy Text Source # 
Instance details

Defined in Captcha.Internal.Types

class HasAuth s a | s -> a where Source #

Methods

auth :: Lens' s a Source #

Instances

Instances details
HasAuth Proxy (Maybe ProxyAuth) Source # 
Instance details

Defined in Captcha.Internal.Types

class HasPort s a | s -> a where Source #

Methods

port :: Lens' s a Source #

Instances

Instances details
HasPort Proxy Int Source # 
Instance details

Defined in Captcha.Internal.Types

class HasProtocol s a | s -> a where Source #

Methods

protocol :: Lens' s a Source #

Instances

Instances details
HasProtocol Proxy ProxyProtocol Source # 
Instance details

Defined in Captcha.Internal.Types

data ImageCaptcha Source #

Parameters for solving a captcha with text within an image.

Constructors

ImageCaptcha 

Fields

Instances

Instances details
Show ImageCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Generic ImageCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Associated Types

type Rep ImageCaptcha :: Type -> Type #

Default ImageCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: ImageCaptcha #

a ~ Maybe (Time Millisecond) => HasTimeoutDuration ImageCaptcha a Source # 
Instance details

Defined in Captcha.Internal.Types

a ~ Maybe (Time Millisecond) => HasPollingInterval ImageCaptcha a Source # 
Instance details

Defined in Captcha.Internal.Types

HasBody ImageCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasApiKey ImageCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep ImageCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep ImageCaptcha = D1 ('MetaData "ImageCaptcha" "Captcha.Internal.Types" "captcha-core-0.1.0.1-FX9y8zPZYJm3cX5fI505eW" 'False) (C1 ('MetaCons "ImageCaptcha" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_pollingInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Time Millisecond)))) :*: (S1 ('MetaSel ('Just "_timeoutDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Time Millisecond))) :*: S1 ('MetaSel ('Just "_body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

class HasApiKey s a | s -> a where Source #

Methods

apiKey :: Lens' s a Source #

class HasBody s a | s -> a where Source #

Methods

body :: Lens' s a Source #

Instances

Instances details
HasBody ImageCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasBody TextCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

data TextCaptcha Source #

Parameters for solving a text captcha.

Constructors

TextCaptcha 

Fields

Instances

Instances details
Show TextCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Generic TextCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Associated Types

type Rep TextCaptcha :: Type -> Type #

Default TextCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: TextCaptcha #

a ~ Maybe (Time Millisecond) => HasTimeoutDuration TextCaptcha a Source # 
Instance details

Defined in Captcha.Internal.Types

a ~ Maybe (Time Millisecond) => HasPollingInterval TextCaptcha a Source # 
Instance details

Defined in Captcha.Internal.Types

HasBody TextCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasApiKey TextCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep TextCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep TextCaptcha = D1 ('MetaData "TextCaptcha" "Captcha.Internal.Types" "captcha-core-0.1.0.1-FX9y8zPZYJm3cX5fI505eW" 'False) (C1 ('MetaCons "TextCaptcha" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_pollingInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Time Millisecond)))) :*: (S1 ('MetaSel ('Just "_timeoutDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Time Millisecond))) :*: S1 ('MetaSel ('Just "_body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

data FunCaptcha Source #

Parameters for solving Arkose Lab's FunCaptcha.

Constructors

FunCaptcha 

Fields

Instances

Instances details
Show FunCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Generic FunCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Associated Types

type Rep FunCaptcha :: Type -> Type #

Default FunCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: FunCaptcha #

a ~ Maybe (Time Millisecond) => HasTimeoutDuration FunCaptcha a Source # 
Instance details

Defined in Captcha.Internal.Types

a ~ Maybe (Time Millisecond) => HasPollingInterval FunCaptcha a Source # 
Instance details

Defined in Captcha.Internal.Types

HasApiKey FunCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasCookies FunCaptcha Cookies Source # 
Instance details

Defined in Captcha.Internal.Types

HasCaptchaUrl FunCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasCaptchaKey FunCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasUserAgent FunCaptcha (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

HasServiceUrl FunCaptcha (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

HasProxy FunCaptcha (Maybe Proxy) Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep FunCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

class HasCookies s a | s -> a where Source #

Methods

cookies :: Lens' s a Source #

class HasProxy s a | s -> a where Source #

Methods

proxy :: Lens' s a Source #

class HasServiceUrl s a | s -> a where Source #

Methods

serviceUrl :: Lens' s a Source #

Instances

Instances details
HasServiceUrl FunCaptcha (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

class HasUserAgent s a | s -> a where Source #

Methods

userAgent :: Lens' s a Source #

data ReCaptchaV2 Source #

Parameters for solving Google's reCAPTCHA v2.

Constructors

ReCaptchaV2 

Fields

Instances

Instances details
Show ReCaptchaV2 Source # 
Instance details

Defined in Captcha.Internal.Types

Generic ReCaptchaV2 Source # 
Instance details

Defined in Captcha.Internal.Types

Associated Types

type Rep ReCaptchaV2 :: Type -> Type #

Default ReCaptchaV2 Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: ReCaptchaV2 #

a ~ Maybe (Time Millisecond) => HasTimeoutDuration ReCaptchaV2 a Source # 
Instance details

Defined in Captcha.Internal.Types

a ~ Maybe (Time Millisecond) => HasPollingInterval ReCaptchaV2 a Source # 
Instance details

Defined in Captcha.Internal.Types

HasApiKey ReCaptchaV2 Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasCookies ReCaptchaV2 Cookies Source # 
Instance details

Defined in Captcha.Internal.Types

HasCaptchaUrl ReCaptchaV2 Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasCaptchaKey ReCaptchaV2 Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasInvisible ReCaptchaV2 Bool Source # 
Instance details

Defined in Captcha.Internal.Types

HasUserAgent ReCaptchaV2 (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

HasProxy ReCaptchaV2 (Maybe Proxy) Source # 
Instance details

Defined in Captcha.Internal.Types

HasDataS ReCaptchaV2 (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep ReCaptchaV2 Source # 
Instance details

Defined in Captcha.Internal.Types

class HasDataS s a | s -> a where Source #

Methods

dataS :: Lens' s a Source #

Instances

Instances details
HasDataS ReCaptchaV2 (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

class HasInvisible s a | s -> a where Source #

Methods

invisible :: Lens' s a Source #

Instances

Instances details
HasInvisible ReCaptchaV2 Bool Source # 
Instance details

Defined in Captcha.Internal.Types

HasInvisible HCaptcha Bool Source # 
Instance details

Defined in Captcha.Internal.Types

data ReCaptchaV3 Source #

Parameters for solving Google's reCAPTCHA v3.

Constructors

ReCaptchaV3 

Fields

Instances

Instances details
Show ReCaptchaV3 Source # 
Instance details

Defined in Captcha.Internal.Types

Generic ReCaptchaV3 Source # 
Instance details

Defined in Captcha.Internal.Types

Associated Types

type Rep ReCaptchaV3 :: Type -> Type #

Default ReCaptchaV3 Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: ReCaptchaV3 #

a ~ Maybe (Time Millisecond) => HasTimeoutDuration ReCaptchaV3 a Source # 
Instance details

Defined in Captcha.Internal.Types

a ~ Maybe (Time Millisecond) => HasPollingInterval ReCaptchaV3 a Source # 
Instance details

Defined in Captcha.Internal.Types

HasApiKey ReCaptchaV3 Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasCookies ReCaptchaV3 Cookies Source # 
Instance details

Defined in Captcha.Internal.Types

HasCaptchaUrl ReCaptchaV3 Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasCaptchaKey ReCaptchaV3 Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasMinScore ReCaptchaV3 Double Source # 
Instance details

Defined in Captcha.Internal.Types

HasUserAgent ReCaptchaV3 (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

HasProxy ReCaptchaV3 (Maybe Proxy) Source # 
Instance details

Defined in Captcha.Internal.Types

HasAction ReCaptchaV3 (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep ReCaptchaV3 Source # 
Instance details

Defined in Captcha.Internal.Types

class HasAction s a | s -> a where Source #

Methods

action :: Lens' s a Source #

Instances

Instances details
HasAction ReCaptchaV3 (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

class HasMinScore s a | s -> a where Source #

Methods

minScore :: Lens' s a Source #

Instances

Instances details
HasMinScore ReCaptchaV3 Double Source # 
Instance details

Defined in Captcha.Internal.Types

data HCaptcha Source #

Parameters for solving hCaptcha.

Constructors

HCaptcha 

Fields

Instances

Instances details
Show HCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Generic HCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Associated Types

type Rep HCaptcha :: Type -> Type #

Methods

from :: HCaptcha -> Rep HCaptcha x #

to :: Rep HCaptcha x -> HCaptcha #

Default HCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

Methods

def :: HCaptcha #

a ~ Maybe (Time Millisecond) => HasTimeoutDuration HCaptcha a Source # 
Instance details

Defined in Captcha.Internal.Types

a ~ Maybe (Time Millisecond) => HasPollingInterval HCaptcha a Source # 
Instance details

Defined in Captcha.Internal.Types

HasApiKey HCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasCookies HCaptcha Cookies Source # 
Instance details

Defined in Captcha.Internal.Types

HasCaptchaUrl HCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasCaptchaKey HCaptcha Text Source # 
Instance details

Defined in Captcha.Internal.Types

HasInvisible HCaptcha Bool Source # 
Instance details

Defined in Captcha.Internal.Types

HasUserAgent HCaptcha (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

HasProxy HCaptcha (Maybe Proxy) Source # 
Instance details

Defined in Captcha.Internal.Types

HasRqData HCaptcha (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

type Rep HCaptcha Source # 
Instance details

Defined in Captcha.Internal.Types

class HasRqData s a | s -> a where Source #

Methods

rqData :: Lens' s a Source #

Instances

Instances details
HasRqData HCaptcha (Maybe Text) Source # 
Instance details

Defined in Captcha.Internal.Types

Orphan instances

Default Bool Source #

Default instance for Bool is not defined by default.

Instance details

Methods

def :: Bool #