15 lines
394 B
Python
15 lines
394 B
Python
"""对白模式命令单独版本化,旧编辑请求的幂等指纹不变。"""
|
|
|
|
from pydantic import Field
|
|
from app.domain.timeline import Strict
|
|
|
|
|
|
class EnableDialogue(Strict):
|
|
expected_version: int = Field(ge=1)
|
|
|
|
|
|
class ForkPrepared(Strict):
|
|
expected_version: int = Field(ge=1)
|
|
run_id: str = Field(pattern=r"^[0-9a-f]{32}$")
|
|
name: str = Field(min_length=1, max_length=255)
|