{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://git.eeqj.de/sneak/chat/schema/s2c/dm.json", "title": "S2C Direct Message", "description": "A direct message delivered via the unified message stream.", "type": "object", "properties": { "id": { "type": "integer", "description": "Server-assigned message ID." }, "type": { "const": "dm" }, "ts": { "type": "string", "format": "date-time" }, "from": { "type": "string", "description": "Sender nick." }, "to": { "type": "string", "description": "Recipient nick." }, "content": { "type": "string", "description": "Message body." }, "meta": { "type": "object", "additionalProperties": true } }, "required": ["id", "type", "ts", "from", "to", "content"] }