mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
17 lines
498 B
Python
17 lines
498 B
Python
"""Built-in ``manual`` trigger. Self-registers at import time."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.automations.schemas.triggers import ManualTriggerParams
|
|
|
|
from .store import register_trigger
|
|
from .types import TriggerDefinition
|
|
|
|
MANUAL_TRIGGER = TriggerDefinition(
|
|
type="manual",
|
|
description="Fire on a user-initiated 'Run now' invocation.",
|
|
params_schema=ManualTriggerParams.model_json_schema(),
|
|
payload_schema={"type": "object"},
|
|
)
|
|
|
|
register_trigger(MANUAL_TRIGGER)
|