UnifiedMessage is the canonical message envelope used by Hiro Server, channel plugins, Hiro Gate device traffic, and device apps.
Use this page as the detailed field reference for the UnifiedMessage part of the Protocol contract.
Top-level envelope
Message types
MessageRouting
Direction is server-relative:
ContentItem
Content item order is meaningful. Consumers preserve the order emitted by the sender.
Content types
The repo-level JSON schema constrains
content_type to these values.
EventPayload
Event types
The repo-level JSON schema constrains
event.type to these values.
Request body
Request messages usemessage_type: "request" and carry a JSON content item.
Response body
Successful responses usestatus: "ok".
status: "error".
Metadata keys
Metadata may contain channel-specific extras, but these keys are protocol-significant because server or client behavior depends on them.
Wire examples
Text message
Event
Request
Response
Implementation references
See also
Protocol contract
The wider protocol boundary across messages, gateway envelopes, auth frames, and pairing frames.
Communication Manager
How Hiro Server routes and validates UnifiedMessage payloads.
Channel Plugins
How channel plugins exchange UnifiedMessages with Hiro Server.
