The event payload type
Runtime services supplying uuid() and now()
The broker to publish through
The contract being published
The event payload, carried verbatim
Optionalmetadata: IntegrationEventMetadata
Optional causal metadata
Optionaloptions: PublishOptions
Optional publish options (M106 §3.7); orderingKey beats
the definition's selector, and deduplicationId defaults to the envelope id
Publishes one integration event: builds the envelope from the caller's already-typed payload and hands it to
broker.publishon the definition's topic.The definition's
parsefunction is deliberately NOT run here.parseis a narrowing functionunknown → T, and a realistic one (a schema with defaults, coercion, or stripping) returns a different object than it was given — running it on publish would silently change what the producer asked to send. It also would not buy the guarantee it appears to: what the consumer parses is the value after a JSON round trip, which this call has not seen. The consequence is honest and documented: a producer CAN publish a payload its own consumers reject, and that surfaces at the consumer as areason: 'parse'rejection.