Files
xiaoxia-saas/apps/api/app/schemas/generated_video.py
T
2026-06-18 20:33:14 +08:00

26 lines
492 B
Python

from pydantic import BaseModel
class GeneratedVideoResponse(BaseModel):
id: str
workspace_id: str
project_id: str
generation_task_id: str
name: str
file_url: str
file_size: int
duration: float
thumbnail_url: str | None = None
width: int
height: int
fps: float
class GeneratedVideoDownloadUrlResponse(BaseModel):
video_id: str
download_url: str
class ListGeneratedVideosResponse(BaseModel):
items: list[GeneratedVideoResponse]