Optional
__extensions?: TExtensionCustom extensions for the CloudEvent. Allows for additional metadata to be attached to the event.
Optional
accesscontrol?: stringDefines access controls for the event. Can be a UserID, encrypted string, or key-value pairs.
The event payload. This payload must be JSON serializable.
Optional
dataschema?: stringIdentifies the schema that the data
adheres to.
Must be a valid URI if present.
Optional
domain?: (string | null)[]The domain configuration for multi-domain event broadcasting.
When an event is emitted with a domain
array, Arvo generates a separate ArvoEvent
for each resolved domain value. This enables parallel routing to multiple contexts
such as analytics, auditing, human-in-the-loop systems, or external integrations.
Accepted Values:
'audit.orders'
)null
for standard internal routing (no domain)Broadcasting Rules:
[null]
Examples:
['analytics.orders', 'audit.orders']
→ Creates two routed events[ArvoDomain.FROM_TRIGGERING_EVENT, 'human.review', null]
→ Mirrors source domain, routes to review, and standard consumer[null]
→ Emits a single event with no domain routing[null]
Optional
executionunits?: numberRepresents the cost associated with generating the cloudevent.
Optional
redirectto?: stringIndicates alternative recipients or destinations for events. Must be a valid URI if present.
Optional
to?: stringDefines the consumer machine of the event. Used for event routing.
Must be a valid URI if present. If not available, the type
field
is used as a default.
Describes the type of event. Should be prefixed with a reverse-DNS name.
Represents the parameters for the emitArvoEvent action in ArvoXState. This type defines a subset of properties from the CreateArvoEvent type, specifically tailored for emitting an ArvoEvent within the state machine context.