"""Mirrors upstream src/2014/schemas/5e-SRD-Magic-Items.ts."""

from dnd5e_db.models.base import SRDModel
from dnd5e_db.models.common import APIReference


class Rarity(SRDModel):
    name: str


class MagicItem(SRDModel):
    index: str
    name: str
    equipment_category: APIReference
    rarity: Rarity
    variants: list[APIReference]
    variant: bool
    desc: list[str] | None = None
    image: str | None = None
    url: str
