Skip to content

EventDefinition

Describes one Event declared on an App, Template or Union, with its payload contract, Listeners and schedules.

readonly childEventPrns: readonly string[]

PRNs of the child Events a Listener of this Event may publish; the Builder uses them to reject Event cycles.


readonly optional description?: string

Description set with setDescription, or undefined.


readonly input: InputDefinition

Contract for the payload, or null when the Event declares no payload members.


readonly key: string

Key of the Event, unique within its App, Template or Union.


readonly listeners: Record<string, EventListenerDefinition>

Listeners registered on this Event, keyed by Listener key.


readonly prn: string

PRN of the Event: <ownerPrn>/event/<key> for Templates and Unions, prn::<app>:app/event/<key> for Apps.


readonly schedules: Record<string, EventScheduleDefinition>

Cron schedules that publish this Event, keyed by schedule key.