from __future__ import annotations

from pydantic import BaseModel, Field


class CreatePipelineRunBody(BaseModel):
    biz_dt: str | None = Field(default=None, pattern=r"^\d{8}$")
    reason: str | None = Field(default=None, max_length=2000)


class PipelineRunActionResponse(BaseModel):
    accepted: bool
    run_id: str
    status: str
