feat(automations): add event trigger params

This commit is contained in:
CREDO23 2026-05-29 17:48:48 +02:00
parent 6fa2e52361
commit f09e302d4f
4 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,23 @@
"""``EventTriggerParams`` — params for the ``event`` trigger type."""
from __future__ import annotations
from typing import Any
from pydantic import BaseModel, ConfigDict, Field
class EventTriggerParams(BaseModel):
model_config = ConfigDict(extra="forbid")
event_type: str = Field(
...,
min_length=1,
description="Event type to listen for.",
examples=["document.indexed"],
)
filter: dict[str, Any] = Field(
default_factory=dict,
description="JSON filter matched against the event payload.",
examples=[{"document_type": "FILE"}],
)