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.
31 lines
749 B
JSON
31 lines
749 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://git.eeqj.de/sneak/chat/schema/s2s/unlink.json",
|
|
"title": "S2S Unlink",
|
|
"description": "Server link teardown notification.",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"type": {
|
|
"const": "unlink"
|
|
},
|
|
"ts": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"origin": {
|
|
"type": "string",
|
|
"description": "Server initiating the unlink."
|
|
},
|
|
"reason": {
|
|
"type": "string",
|
|
"description": "Optional reason for the unlink.",
|
|
"examples": ["shutdown", "configuration change", "timeout"]
|
|
}
|
|
},
|
|
"required": ["id", "type", "ts", "origin"]
|
|
}
|