Skip to content

Geetest Models

geetest

Geetest-related models

Classes:

__all__ module-attribute

__all__ = ['MMT', 'BaseMMT', 'BaseMMTResult', 'BaseSessionMMTResult', 'MMTResult', 'MMTv4', 'MMTv4Result', 'RiskyCheckMMT', 'RiskyCheckMMTResult', 'SessionMMT', 'SessionMMTResult', 'SessionMMTv4', 'SessionMMTv4Result']

BaseMMT pydantic-model

Base Geetest verification data model.

Fields:

Validators:

new_captcha pydantic-field

new_captcha: int

success pydantic-field

success: int

__parse_data pydantic-validator

__parse_data(data: dict[str, Any]) -> dict[str, Any]

Parse the data if it was provided in a raw format.

BaseMMTResult pydantic-model

Base Geetest verification result model.

get_data

get_data() -> dict[str, Any]

Get the base MMT result data.

This method acts as dict but excludes the session_id field.

BaseSessionMMTResult pydantic-model

Base session-based Geetest verification result model.

Fields:

session_id pydantic-field

session_id: str

to_aigis_header

to_aigis_header() -> str

Convert the result to x-rpc-aigis header.

MMT pydantic-model

Geetest verification data.

Fields:

Validators:

challenge pydantic-field

challenge: str

gt pydantic-field

gt: str

MMTResult pydantic-model

Geetest verification result.

Fields:

geetest_challenge pydantic-field

geetest_challenge: str

geetest_seccode pydantic-field

geetest_seccode: str

geetest_validate pydantic-field

geetest_validate: str

MMTv4 pydantic-model

Geetest verification data (V4).

Fields:

Validators:

captcha_id pydantic-field

captcha_id: str

risk_type pydantic-field

risk_type: str

MMTv4Result pydantic-model

Geetest verification result (V4).

Fields:

captcha_id pydantic-field

captcha_id: str

captcha_output pydantic-field

captcha_output: str

gen_time pydantic-field

gen_time: str

lot_number pydantic-field

lot_number: str

pass_token pydantic-field

pass_token: str

RiskyCheckAction

Risky check action returned by the API.

Attributes:

ACTION_GEETEST class-attribute instance-attribute

ACTION_GEETEST = 'ACTION_GEETEST'

Geetest verification required.

ACTION_NONE class-attribute instance-attribute

ACTION_NONE = 'ACTION_NONE'

No action required.

RiskyCheckMMT pydantic-model

MMT returned by the risky check endpoint.

Fields:

Validators:

check_id pydantic-field

check_id: str

RiskyCheckMMTResult pydantic-model

Risky check MMT result.

Fields:

check_id pydantic-field

check_id: str

to_rpc_risky

to_rpc_risky() -> str

Convert the MMT result to a RPC risky header.

RiskyCheckResult pydantic-model

Model for the risky check result.

Fields:

action pydantic-field

id pydantic-field

id: str

mmt pydantic-field

mmt: Optional[MMT]

to_mmt

to_mmt() -> RiskyCheckMMT

Convert the check result to a RiskyCheckMMT object.

SessionMMT pydantic-model

Session-based geetest verification data.

Fields:

Validators:

session_id pydantic-field

session_id: str

get_mmt

get_mmt() -> MMT

Get the base MMT data.

SessionMMTResult pydantic-model

Session-based geetest verification result.

Fields:

SessionMMTv4 pydantic-model

Session-based geetest verification data (V4).

Fields:

Validators:

session_id pydantic-field

session_id: str

get_mmt

get_mmt() -> MMTv4

Get the base MMTv4 data.

SessionMMTv4Result pydantic-model

Session-based geetest verification result (V4).

Fields: