Module genshin.models.auth.responses

Auth endpoints responses models.

Classes

class Account (**data: Any)

Account data returned by the shield login endpoint.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Expand source code
class Account(pydantic.BaseModel):
    """Account data returned by the shield login endpoint."""

    uid: str
    name: str
    email: str
    mobile: str
    is_email_verify: str
    realname: str
    identity_card: str
    token: str
    safe_mobile: str
    facebook_name: str
    google_name: str
    twitter_name: str
    game_center_name: str
    apple_name: str
    sony_name: str
    tap_name: str
    country: str
    reactivate_ticket: str
    area_code: str
    device_grant_ticket: str
    steam_name: str
    unmasked_email: str
    unmasked_email_type: int
    cx_name: typing.Optional[str] = None

Ancestors

  • pydantic.main.BaseModel

Class variables

var apple_name : str
var area_code : str
var country : str
var cx_name : Optional[str]
var device_grant_ticket : str
var email : str
var facebook_name : str
var game_center_name : str
var google_name : str
var identity_card : str
var is_email_verify : str
var mobile : str
var model_computed_fields
var model_config
var model_fields
var name : str
var reactivate_ticket : str
var realname : str
var safe_mobile : str
var sony_name : str
var steam_name : str
var tap_name : str
var token : str
var twitter_name : str
var uid : str
var unmasked_email : str
var unmasked_email_type : int
class ShieldLoginResponse (**data: Any)

Response model for the shield login endpoint.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Expand source code
class ShieldLoginResponse(pydantic.BaseModel):
    """Response model for the shield login endpoint."""

    account: Account
    device_grant_required: bool
    safe_moblie_required: bool
    realperson_required: bool
    reactivate_required: bool
    realname_operation: str

Ancestors

  • pydantic.main.BaseModel

Class variables

var accountAccount
var device_grant_required : bool
var model_computed_fields
var model_config
var model_fields
var reactivate_required : bool
var realname_operation : str
var realperson_required : bool
var safe_moblie_required : bool