EventDefinition
Describes one Event declared on an App, Template or Union, with its payload contract, Listeners and schedules.
- Event stream
- EventBuilder for declaring an Event
- EventInstance for the Event a Listener receives
Properties
Section titled “Properties”childEventPrns
Section titled “childEventPrns”
readonlychildEventPrns: readonlystring[]
PRNs of the child Events a Listener of this Event may publish; the Builder uses them to reject Event cycles.
description?
Section titled “description?”
readonlyoptionaldescription?:string
Description set with setDescription, or undefined.
readonlyinput:InputDefinition
Contract for the payload, or null when the Event declares no payload members.
readonlykey:string
Key of the Event, unique within its App, Template or Union.
listeners
Section titled “listeners”
readonlylisteners:Record<string,EventListenerDefinition>
Listeners registered on this Event, keyed by Listener key.
readonlyprn:string
PRN of the Event: <ownerPrn>/event/<key> for Templates and Unions, prn::<app>:app/event/<key> for Apps.
schedules
Section titled “schedules”
readonlyschedules:Record<string,EventScheduleDefinition>
Cron schedules that publish this Event, keyed by schedule key.

