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:
-
id(int) -
type(str | None) -
chapter_num(str | None) -
chapter_title(str) -
chapter_icon(str | None) -
chapter_image_title(str | None) -
route(str) -
chapter_count(int)
Validators:
-
_convert_icon_url→chapter_icon
QuestDetail
pydantic-model
Represents detailed information about a quest chapter and the quests within it.
Attributes:
-
info(Quest) –Summary information about the quest chapter.
-
stories(list[QuestStory]) –The quests that make up this chapter.
Fields:
-
info(Quest) -
stories(list[QuestStory])
Validators:
-
_convert_stories→stories
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:
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:
QuestStory
pydantic-model
Represents a single quest within a quest chapter.
Attributes:
-
id(int) –The quest's unique ID.
-
title(str) –The title of the quest.
-
description(str) –The description of the quest.
-
rewards(list[QuestReward]) –A list of rewards for completing the quest.
-
suggested_quests(dict[int, str]) –A mapping of quest ID to title for quests suggested to track next.
-
steps(list[QuestStep]) –The ordered steps (objectives) of the quest.
Fields:
-
id(int) -
title(str) -
description(str) -
rewards(list[QuestReward]) -
suggested_quests(dict[int, str]) -
steps(list[QuestStep])
Validators:
-
_flatten_info -
_convert_rewards→rewards -
_convert_suggested_quests→suggested_quests -
_convert_steps→steps