Creates an ArvoEventFactory instance for a specific version of a contract.
The versioned contract to use for event creation and validation
Creates and validates an event matching the contract's accept specification.
The event configuration object
Optional
extensions: TExtensionOptional additional properties for the event
A validated ArvoEvent matching the contract's accept specification
Creates and validates an event matching one of the contract's emit specifications.
The event configuration object
Optional
extensions: TExtensionOptional additional properties for the event
A validated ArvoEvent matching the specified emit type
Creates a system error event for error reporting and handling.
The error event configuration
Optional
extensions: TExtensionOptional additional properties for the event
A system error ArvoEvent
Factory class for creating and validating events based on a versioned Arvo contract. Handles event creation, validation, and OpenTelemetry integration for a specific contract version.
Example