from uuid import UUID

from pydantic import BaseModel, ConfigDict


class SubtaskTriggerBody(BaseModel):
    """The minimum the subtask_handler needs to dispatch lifecycle calls.

    `extra="allow"` so the rest of the work payload passes through to the
    decorated function untouched — handlers do their own model_validate on
    the full body for fields specific to their use case.
    """

    model_config = ConfigDict(extra="allow")

    task_id: UUID
    sub_task_id: UUID
