26 lines
492 B
Python
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]
|