Skip to content

Achievement Models

achievement

Classes:

Achievement pydantic-model

Represents an achievement, potentially with multiple stages or levels.

Attributes:

  • id (int) –

    The base ID for the achievement (stages might share this).

  • order (int) –

    The display order of the achievement within its category.

  • details (list[AchievementDetail]) –

    A list containing details for each stage or level of the achievement.

Fields:

details pydantic-field

id pydantic-field

id: int

order pydantic-field

order: int

AchievementCategory pydantic-model

Represents a category of achievements.

Attributes:

  • id (int) –

    The unique ID of the achievement category.

  • name (str) –

    The name of the category (e.g., "Wonders of the World").

  • order (int) –

    The display order of the category.

  • icon (str) –

    The icon URL for the category.

  • achievements (list[Achievement]) –

    A list of achievements belonging to this category.

Fields:

Validators:

achievements pydantic-field

achievements: list[Achievement]

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

order pydantic-field

order: int

AchievementDetail pydantic-model

Represents the details of a specific achievement.

Attributes:

Fields:

Validators:

description pydantic-field

description: str

id pydantic-field

id: int

rewards pydantic-field

title pydantic-field

title: str

AchievementReward pydantic-model

Represents a reward granted for completing an achievement.

Attributes:

  • rarity (int) –

    The rarity rank of the reward item (often Primogems).

  • amount (int) –

    The quantity of the reward item granted.

  • icon (str) –

    The icon URL for the reward item.

Fields:

Validators:

  • _convert_icon_url → icon

amount pydantic-field

amount: int

icon pydantic-field

icon: str

rarity pydantic-field

rarity: int