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.
10 lines
293 B
Python
10 lines
293 B
Python
from datetime import datetime
|
|
from pydantic import BaseModel, ConfigDict, Field
|
|
|
|
|
|
class TokenInput(BaseModel):
|
|
model_config = ConfigDict(extra="forbid")
|
|
name: str = Field(min_length=1, max_length=128)
|
|
scopes: list[str] = Field(max_length=20)
|
|
expires_at: datetime | None = None
|