CreateTriggerBody

Request body for creating a Trigger.

Definition

TypeScript
interface CreateTriggerBody {
  workspaceId: string;
  eventType: string;
  targetId: string;
  subjectId?: string | undefined;
  filter?:
    | {
        version: 1;
        root: import("/home/runner/work/aeontel/aeontel/packages/shared/src/conditions/schema").ConditionNode;
      }
    | null
    | undefined;
}

Fields

FieldTypeNotes
workspaceIdstringrequired — Workspace that will own the new listener.
eventTypestringrequired — Event type to listen for
targetIdstringrequired — Target entity ID
subjectIdstring | undefinedoptional — Optional subject scope. When set, only fires for events whose subjectId matches.
filter{ version: 1; root: import("/home/runner/work/aeontel/aeontel/packages/shared/src/conditions/schema").ConditionNode; } | null | undefinedoptional — Optional filter condition evaluated against the event.