from uuid import UUID from pydantic import BaseModel, Field from itd.enums import AttachType class File(BaseModel): id: UUID url: str filename: str mime_type: str = Field('image/png', alias='mimeType') size: int class Attach(BaseModel): id: UUID type: AttachType = AttachType.IMAGE url: str thumbnail_url: str | None = Field(None, alias='thumbnailUrl') filename: str mime_type: str = Field(alias='mimeType') size: int width: int | None = None height: int | None = None duration: int | None = None order: int = 0