cmvr-visual/backend/app/schemas/workflows.py
zhanghao 88cf14d794 feat: consolidate story studio and editable automatic production
Restructure backend and frontend modules; add story, library, and editor schema migrations.

Support editable automatic production, manual confirmation modes, account and user lifecycle management, compact container scrolling, consistent forms, and per-task result previews.

Update inference and TTS scheduling, deployment guidance, and regression coverage; remove obsolete standalone pages and temporary acceptance artifacts.
2026-11-14 14:07:26 +08:00

34 lines
931 B
Python

from typing import Literal
from pydantic import Field
from app.domain.timeline import Strict, WorkflowSpec
class DraftCreate(Strict):
folder_id: str | None = None
name: str = Field(default="多镜头工作流", min_length=1, max_length=255)
kind: Literal["three_shot", "multi_shot"] = "multi_shot"
spec: WorkflowSpec
class DraftPatch(Strict):
folder_id: str | None = None
name: str | None = Field(default=None, min_length=1, max_length=255)
spec: WorkflowSpec | None = None
class RunCreate(Strict):
output_folder_id: str | None = None
draft_revision: int = Field(ge=1)
expected_version: int = Field(ge=1)
execution_mode: Literal["interactive", "batch"] = "interactive"
reuse_run_id: str | None = None
class Control(Strict):
expected_version: int | None = Field(default=None, ge=1)
class Retry(Strict):
expected_run_version: int = Field(ge=1)
target_job_id: str