Skip to content

Book Models

book

Classes:

  • Book –

    Represents a book summary.

  • BookDetail –

    Represents detailed information about a book, including its volumes.

  • BookVolume –

    Represents a single volume or chapter within a book.

Book pydantic-model

Represents a book summary.

Attributes:

  • id (int) –

    The unique ID of the book.

  • name (str) –

    The name or title of the book.

  • rarity (int) –

    The rarity rank of the book item.

  • icon (str) –

    The icon URL for the book item.

  • route (str) –

    The route identifier for the book.

Fields:

Validators:

  • _convert_icon_url → icon

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

rarity pydantic-field

rarity: int

route pydantic-field

route: str

BookDetail pydantic-model

Represents detailed information about a book, including its volumes.

Attributes:

  • id (int) –

    The unique ID of the book.

  • name (str) –

    The name or title of the book.

  • rarity (int) –

    The rarity rank of the book item.

  • icon (str) –

    The icon URL for the book item.

  • volumes (list[BookVolume]) –

    A list of volumes contained within the book.

Fields:

Validators:

  • _convert_icon_url → icon

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

rarity pydantic-field

rarity: int

volumes pydantic-field

volumes: list[BookVolume]

BookVolume pydantic-model

Represents a single volume or chapter within a book.

Attributes:

  • id (int) –

    The unique ID of this volume.

  • name (str) –

    The name or title of the volume.

  • description (str) –

    The text content of the volume.

  • story_id (int) –

    An associated story ID.

Fields:

description pydantic-field

description: str

id pydantic-field

id: int

name pydantic-field

name: str

story_id pydantic-field

story_id: int