926d0fa272
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
Tests / lint (push) Failing after 1926h42m54s
Tests / test (push) Failing after 1926h42m56s
24 lines
561 B
Python
24 lines
561 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class CreateGenerationTaskRequest(BaseModel):
|
|
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
|
|
project_id: str
|
|
asset_library_id: str
|
|
strategy_id: str
|
|
voice_library_id: str
|
|
edit_plan_id: str | None
|
|
status: str
|
|
progress: float
|
|
result_count: int
|
|
error_message: str
|