Skip to content

Interface: TopicPublishInput\<TBody\>

What a caller supplies to PostgresTopicBus.broadcast.

TBody extends SerializableValue = SerializableValue

body: TBody

The payload. Must satisfy object.isSerializableValue.


optional metadata?: TopicMetadata

Context to attach. Wins over any automatic key of the same name, so a caller can override a machine default (project) or add its own (traceId).


optional scope?: TopicPersistenceScope


optional ttl?: false | DurationInput


type: string

Event name, e.g. chat.message. Must be non-blank.