add level 3

This commit is contained in:
Матвей
2026-10-26 10:19:05 +03:00
parent 3b67201e5e
commit df15ab0967
16 changed files with 438 additions and 25 deletions
+13 -2
View File
@@ -133,8 +133,19 @@ class Attachment(BaseModel):
content_type: str
size_bytes: int
sha256: str
status: str = "ready"
variants: list = Field(default_factory=list)
status: str
variants: list["Variant"] = Field(default_factory=list)
error_code: str | None = None
created_at: datetime
updated_at: datetime
class Variant(BaseModel):
model_config = ConfigDict(extra="forbid")
name: str
content_type: str
size_bytes: int
width: int
height: int
sha256: str