C2S (7): send, join, part, nick, topic, mode, ping
S2C (12): message, dm, notice, join, part, quit, nick, topic, mode, system, error, pong
S2S (6): relay, link, unlink, sync, ping, pong
Each message type has its own schema file under schema/{c2s,s2c,s2s}/.
schema/README.md provides an index of all types with descriptions.
22 lines
572 B
JSON
22 lines
572 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://git.eeqj.de/sneak/chat/schema/c2s/topic.json",
|
|
"title": "C2S Topic",
|
|
"description": "Set a channel's topic.",
|
|
"type": "object",
|
|
"properties": {
|
|
"channel": {
|
|
"type": "string",
|
|
"description": "Target channel.",
|
|
"pattern": "^#[a-zA-Z0-9_-]+$"
|
|
},
|
|
"topic": {
|
|
"type": "string",
|
|
"description": "New topic text. Empty string clears the topic.",
|
|
"maxLength": 512
|
|
}
|
|
},
|
|
"required": ["channel", "topic"],
|
|
"additionalProperties": false
|
|
}
|