feat(automations): add EVENT to TriggerType enum

This commit is contained in:
CREDO23 2026-05-29 17:48:39 +02:00
parent d6dfe53d62
commit 9247a2337f
2 changed files with 8 additions and 7 deletions

View file

@ -1,8 +1,8 @@
"""Trigger-kind discriminator.
v1 only registers ``schedule``. ``manual`` is reserved in the enum (mirrors the
postgres enum) but is intentionally unregistered pending a redesign of the
"Run now" UX.
``schedule`` and ``event`` are registered. ``manual`` is reserved in the enum
(mirrors the postgres enum) but is intentionally unregistered pending a redesign
of the "Run now" UX.
"""
from __future__ import annotations
@ -12,4 +12,5 @@ from enum import StrEnum
class TriggerType(StrEnum):
SCHEDULE = "schedule"
EVENT = "event"
MANUAL = "manual"