refactor progress

This commit is contained in:
Hampus Kraft
2026-02-17 12:22:36 +00:00
parent cb31608523
commit d5abd1a7e4
8257 changed files with 1190207 additions and 761040 deletions

View File

@@ -0,0 +1,34 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "SESSIONS_REPLACE",
"description": "User sessions have been replaced. Sent when sessions are updated across devices.",
"scope": "presence",
"dispatchedBy": ["gateway"],
"payload": {
"type": "array",
"items": {
"type": "object",
"properties": {
"session_id": {
"type": "string",
"description": "Session identifier ('all' for aggregated status, or specific session ID)"
},
"status": {
"type": "string",
"enum": ["online", "offline", "idle", "dnd", "invisible"],
"description": "Current status of the session"
},
"mobile": {
"type": "boolean",
"description": "Whether this session is from a mobile device"
},
"afk": {
"type": "boolean",
"description": "Whether this session is AFK"
}
},
"required": ["session_id", "status", "mobile", "afk"]
},
"description": "Array of session status entries. Includes an 'all' entry with aggregated status plus individual session entries."
}
}