Files
xiaoxia-saas/apps/api/app/schemas/generation_task.py
T
Xiaoxia AI 530b31dc10
Deploy / Build Production Runtime Images (push) Successful in 9m19s
Deploy / Deploy Production (push) Failing after 18s
Deploy / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been skipped
feat(plans): add edit plan preview workflow
2026-06-24 10:10:25 +08:00

26 lines
625 B
Python

from pydantic import BaseModel, Field
class CreateGenerationTaskRequest(BaseModel):
workspace_id: str = Field(..., min_length=1)
project_id: str = Field(..., min_length=1)
asset_library_id: str = Field(..., min_length=1)
strategy_id: str = ""
voice_library_id: str = ""
edit_plan_id: str = ""
created_by_user_id: str = ""
class GenerationTaskResponse(BaseModel):
id: str
workspace_id: str
project_id: str
asset_library_id: str
strategy_id: str
voice_library_id: str
edit_plan_id: str
status: str
progress: float
result_count: int
error_message: str