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.
26 lines
673 B
Python
26 lines
673 B
Python
from pydantic import BaseModel, Field
|
|
|
|
|
|
class Login(BaseModel):
|
|
username: str = Field(min_length=1, max_length=64)
|
|
password: str = Field(min_length=1, max_length=256)
|
|
|
|
|
|
class CreateUser(Login):
|
|
display_name: str = Field(default="", max_length=80)
|
|
|
|
|
|
class UserPatch(BaseModel):
|
|
display_name: str | None = Field(default=None, min_length=1, max_length=80)
|
|
disabled: bool | None = None
|
|
|
|
|
|
class PasswordChange(BaseModel):
|
|
current_password: str = Field(max_length=256)
|
|
new_password: str = Field(max_length=256)
|
|
|
|
|
|
class UsernameChange(BaseModel):
|
|
username: str = Field(min_length=1, max_length=64)
|
|
current_password: str = Field(max_length=256)
|