{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://git.eeqj.de/sneak/chat/schema/s2s/relay.json", "title": "S2S Relay", "description": "A message relayed from a remote server in the federation.", "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Message UUID, globally unique across the federation." }, "type": { "const": "relay" }, "ts": { "type": "string", "format": "date-time" }, "origin": { "type": "string", "description": "Originating server name." }, "message": { "type": "object", "description": "The original S2C message being relayed. Preserves the original type, from, channel, content, etc.", "properties": { "type": { "type": "string" }, "from": { "type": "string" }, "channel": { "type": "string" }, "content": { "type": "string" }, "ts": { "type": "string", "format": "date-time" } }, "required": ["type", "from"] } }, "required": ["id", "type", "ts", "origin", "message"] }