from pydantic import BaseModel, Field class CompressResponse(BaseModel): html: str class CompileResponse(BaseModel): html: str amp_html: str | None = Field(default=None, alias="ampHtml") amp_errors: list[str] = Field(default_factory=list, alias="ampErrors") # API also returns syncModules and conditions, not modeled yet class HtmlCssResponse(BaseModel): html: str css: str # API also returns emailId, syncModules and utm, not modeled yet class AuthResponse(BaseModel): token: str class ErrorResponse(BaseModel): message: str | None = None