{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://git.eeqj.de/sneak/chat/schema/c2s/mode.json", "title": "C2S Mode", "description": "Set channel or user mode flags.", "type": "object", "properties": { "channel": { "type": "string", "description": "Target channel.", "pattern": "^#[a-zA-Z0-9_-]+$" }, "mode": { "type": "string", "description": "Mode string (e.g. +o, -m, +v).", "pattern": "^[+-][a-zA-Z]+$", "examples": ["+o", "-m", "+v", "+i"] }, "target": { "type": "string", "description": "Target nick for user modes (e.g. +o alice). Omit for channel modes." } }, "required": ["channel", "mode"], "additionalProperties": false }