github-actions[bot]
Automated Deploy: a36ad9fbaf2a4b4a2efb7feea50aa69986cf59d3
e980186
Raw History Blame Contribute Delete
544 Bytes
from datetime import datetime
from typing import Literal
from uuid import UUID
from pydantic import Field
from app.common.schemas import RequestModel, ResponseModel
class UploadIn(RequestModel):
kind: Literal["video", "thumbnail", "audio", "drill_video", "image"]
content_type: str = Field(min_length=1, max_length=40)
size_bytes: int = Field(gt=0)
duration_sec: float | None = Field(default=None, gt=0)
class UploadOut(ResponseModel):
upload_id: UUID
url: str
headers: dict[str, str]
expires_at: datetime