Replace c2s/s2c/s2s taxonomy with IRC-native structure: - schema/commands/ — IRC command schemas (PRIVMSG, NOTICE, JOIN, PART, QUIT, NICK, TOPIC, MODE, KICK, PING, PONG) - schema/numerics/ — IRC numeric reply codes (001-004, 322-323, 332, 353, 366, 372-376, 401, 403, 433, 442, 482) - schema/message.json — base envelope mapping IRC wire format to JSON Messages use 'command' field with IRC command names or 3-digit numeric codes. 'body' is a string (IRC trailing parameter), not object/array. 'from'/'to' map to IRC prefix and first parameter. Federation uses the same IRC commands (no custom RELAY/LINK/SYNC). Update README message format, command tables, and examples to match.
49 lines
1.0 KiB
JSON
49 lines
1.0 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://git.eeqj.de/sneak/chat/schema/numerics/353.json",
|
|
"title": "353 RPL_NAMREPLY",
|
|
"description": "Channel member list. Sent on JOIN or NAMES query. RFC 1459 \u00a76.2.",
|
|
"$ref": "../message.json",
|
|
"properties": {
|
|
"command": {
|
|
"const": "353"
|
|
},
|
|
"to": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "[channel_type, channel]. channel_type: = (public), * (private), @ (secret)."
|
|
},
|
|
"body": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "Space-separated list of nicks. Prefixed with @ for ops, + for voiced."
|
|
}
|
|
},
|
|
"required": [
|
|
"command",
|
|
"to",
|
|
"params",
|
|
"body"
|
|
],
|
|
"examples": [
|
|
{
|
|
"command": "353",
|
|
"to": "alice",
|
|
"params": [
|
|
"=",
|
|
"#general"
|
|
],
|
|
"body": [
|
|
"@op1 alice bob +voiced1"
|
|
]
|
|
}
|
|
]
|
|
}
|