{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://git.eeqj.de/sneak/chat/schema/s2c/mode.json", "title": "S2C Mode", "description": "A channel or user mode was changed.", "type": "object", "properties": { "id": { "type": "integer" }, "type": { "const": "mode" }, "ts": { "type": "string", "format": "date-time" }, "nick": { "type": "string", "description": "The nick that set the mode." }, "channel": { "type": "string", "pattern": "^#[a-zA-Z0-9_-]+$" }, "mode": { "type": "string", "description": "Mode string applied (e.g. +o, -m).", "pattern": "^[+-][a-zA-Z]+$" }, "target": { "type": "string", "description": "Target nick for user modes. Absent for channel modes." } }, "required": ["id", "type", "ts", "nick", "channel", "mode"] }