Skip to content

Quest Models

quest

Classes:

  • Quest –

    Represents a quest summary.

  • QuestDetail –

    Represents detailed information about a quest chapter and the quests within it.

  • QuestReward –

    Represents a reward granted for completing a quest.

  • QuestStep –

    Represents a single step (objective) within a quest.

  • QuestStory –

    Represents a single quest within a quest chapter.

Quest pydantic-model

Represents a quest summary.

Attributes:

  • id (int) –

    The quest's unique ID.

  • type (str | None) –

    The type or category of the quest (optional).

  • chapter_num (str | None) –

    The chapter number associated with the quest (optional).

  • chapter_title (str) –

    The title of the quest chapter.

  • chapter_icon (str | None) –

    The icon URL for the quest chapter (optional).

  • chapter_image_title (str | None) –

    The title associated with the chapter image (optional).

  • route (str) –

    The route identifier for the quest.

  • chapter_count (int) –

    The count related to the quest chapter.

Fields:

Validators:

chapter_count pydantic-field

chapter_count: int

chapter_icon pydantic-field

chapter_icon: str | None

chapter_image_title pydantic-field

chapter_image_title: str | None

chapter_num pydantic-field

chapter_num: str | None

chapter_title pydantic-field

chapter_title: str

id pydantic-field

id: int

route pydantic-field

route: str

type pydantic-field

type: str | None

QuestDetail pydantic-model

Represents detailed information about a quest chapter and the quests within it.

Attributes:

Fields:

Validators:

info pydantic-field

info: Quest

stories pydantic-field

stories: list[QuestStory]

QuestReward pydantic-model

Represents a reward granted for completing a quest.

Attributes:

  • id (int) –

    The ID of the reward item.

  • icon (str | None) –

    The icon URL of the reward item (None if the API has no data for the item).

  • type (str) –

    The type of the reward (empty if the API has no data for the item).

  • rarity (int | None) –

    The rarity rank of the reward item (None if the API has no data for the item).

  • count (int) –

    The amount rewarded.

Fields:

Validators:

  • _convert_icon_url → icon
  • _convert_empty_rarity → rarity

count pydantic-field

count: int

icon pydantic-field

icon: str | None

id pydantic-field

id: int

rarity pydantic-field

rarity: int | None

type pydantic-field

type: str

QuestStep pydantic-model

Represents a single step (objective) within a quest.

Attributes:

  • id (int) –

    The step's unique ID.

  • is_hidden (bool) –

    Whether the step is hidden from the player.

  • title (str | None) –

    The objective text shown to the player (optional).

  • step_description (str | None) –

    Additional description for the step (optional).

  • task_data (list[dict[str, Any]] | None) –

    Raw task data, including dialogue trees, as returned by the API (optional).

Fields:

id pydantic-field

id: int

is_hidden pydantic-field

is_hidden: bool

step_description pydantic-field

step_description: str | None

task_data pydantic-field

task_data: list[dict[str, Any]] | None

title pydantic-field

title: str | None

QuestStory pydantic-model

Represents a single quest within a quest chapter.

Attributes:

Fields:

Validators:

description pydantic-field

description: str

id pydantic-field

id: int

rewards pydantic-field

rewards: list[QuestReward]

steps pydantic-field

steps: list[QuestStep]

suggested_quests pydantic-field

suggested_quests: dict[int, str]

title pydantic-field

title: str