Files
xiaoxia-saas/apps/api/app/schemas/generated_video.py
T
Xiaoxia AI 91df06b84d
Deploy / Build Production Runtime Images (push) Successful in 9m0s
Deploy / Deploy Production (push) Successful in 44s
Deploy / Production Browser E2E (push) Failing after 33s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been skipped
feat(results): add generated video management
2026-06-24 06:28:06 +08:00

37 lines
837 B
Python

from typing import Literal
from pydantic import BaseModel, Field
GeneratedVideoReviewStatus = Literal["pending_review", "approved", "rejected"]
class UpdateGeneratedVideoReviewRequest(BaseModel):
review_status: GeneratedVideoReviewStatus
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
status: str = "completed"
review_status: str = "pending_review"
generation_params: dict = Field(default_factory=dict)
class GeneratedVideoDownloadUrlResponse(BaseModel):
video_id: str
download_url: str
class ListGeneratedVideosResponse(BaseModel):
items: list[GeneratedVideoResponse]