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.
16 lines
524 B
Python
16 lines
524 B
Python
from datetime import datetime
|
|
from typing import Literal
|
|
from pydantic import BaseModel, ConfigDict, Field
|
|
|
|
|
|
class Submit(BaseModel):
|
|
model_config = ConfigDict(extra="forbid")
|
|
execution_mode: Literal["interactive", "batch"] = "interactive"
|
|
task_type: str
|
|
input: dict = Field(default_factory=dict)
|
|
parameters: dict = Field(default_factory=dict)
|
|
count: int = Field(default=1, ge=1, le=4)
|
|
scheduled_at: datetime | None = None
|
|
folder_id: str | None = None
|
|
output_folder_id: str | None = None
|