Skip to content

Artifact Models# Artifact Models

artifact

Classes:

  • Artifact –

    Represents a single artifact piece within a set.

  • ArtifactAffix –

    Represents an artifact set's bonus effect (2-piece or 4-piece).

  • ArtifactSet –

    Represents an artifact set summary.

  • ArtifactSetDetail –

    Represents detailed information about an artifact set.

Artifact pydantic-model

Represents a single artifact piece within a set.

Attributes:

  • pos (str) –

    The position or slot of the artifact (e.g., "flower", "plume", "sands", "goblet", "circlet").

  • name (str) –

    The name of the specific artifact piece.

  • description (str) –

    The flavor text or description of the artifact piece.

  • max_rarity (int) –

    The maximum rarity level this artifact piece can have.

  • icon (str) –

    The icon URL for the artifact piece.

  • story (str | None) –

    The lore of this artifact piece, None if fetch_story=False.

Fields:

description pydantic-field

description: str

icon property

icon: str

The icon URL for the artifact piece.

icon_path pydantic-field

icon_path: str

max_rarity pydantic-field

max_rarity: int

name pydantic-field

name: str

pos pydantic-field

pos: str

story pydantic-field

story: str | None = None

ArtifactAffix pydantic-model

Represents an artifact set's bonus effect (2-piece or 4-piece).

Attributes:

  • id (str) –

    The identifier for the set effect (e.g., "2" or "4").

  • effect (str) –

    The description of the set effect.

Fields:

effect pydantic-field

effect: str

id pydantic-field

id: str

ArtifactSet pydantic-model

Represents an artifact set summary.

Attributes:

  • id (int) –

    The unique ID of the artifact set.

  • name (str) –

    The name of the artifact set.

  • rarity_list (list[int]) –

    A list of possible rarity levels for artifacts in this set.

  • affix_list (list[ArtifactAffix]) –

    A list of the set bonus effects (2-piece and 4-piece).

  • icon (str) –

    The icon URL representing the artifact set (usually the flower piece).

  • route (str) –

    The route identifier for the artifact set.

  • sort_order (int) –

    The sorting order value for the artifact set.

Fields:

Validators:

affix_list pydantic-field

affix_list: list[ArtifactAffix]

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

rarity_list pydantic-field

rarity_list: list[int]

route pydantic-field

route: str

sort_order pydantic-field

sort_order: int

ArtifactSetDetail pydantic-model

Represents detailed information about an artifact set.

Attributes:

  • id (int) –

    The unique ID of the artifact set.

  • name (str) –

    The name of the artifact set.

  • rarity_list (list[int]) –

    A list of possible rarity levels for artifacts in this set.

  • affix_list (list[ArtifactAffix]) –

    A list of the set bonus effects (2-piece and 4-piece).

  • icon (str) –

    The icon URL representing the artifact set (usually the flower piece).

  • route (str) –

    The route identifier for the artifact set.

  • artifacts (list[Artifact]) –

    A list of the individual artifact pieces belonging to this set.

Fields:

Validators:

affix_list pydantic-field

affix_list: list[ArtifactAffix]

artifacts pydantic-field

artifacts: list[Artifact]

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

rarity_list pydantic-field

rarity_list: list[int]

route pydantic-field

route: str