You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
10 years ago
|
{
|
||
|
"type": "object",
|
||
10 years ago
|
"title": "Presence Event",
|
||
|
"description": "Informs the client of a user's presence state change.",
|
||
9 years ago
|
"allOf": [{
|
||
|
"$ref": "core-event-schema/event.yaml"
|
||
|
}],
|
||
10 years ago
|
"properties": {
|
||
|
"content": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"avatar_url": {
|
||
10 years ago
|
"type": "string",
|
||
|
"description": "The current avatar URL for this user, if any."
|
||
10 years ago
|
},
|
||
|
"displayname": {
|
||
10 years ago
|
"type": "string",
|
||
|
"description": "The current display name for this user, if any."
|
||
10 years ago
|
},
|
||
|
"last_active_ago": {
|
||
10 years ago
|
"type": "number",
|
||
|
"description": "The last time since this used performed some action, in milliseconds."
|
||
10 years ago
|
},
|
||
|
"presence": {
|
||
|
"type": "string",
|
||
10 years ago
|
"description": "The presence state for this user.",
|
||
8 years ago
|
"enum": ["online", "offline", "unavailable"]
|
||
|
},
|
||
|
"currently_active": {
|
||
|
"type": boolean,
|
||
|
"description": "Whether the user is currently active"
|
||
6 years ago
|
},
|
||
|
"status_msg": {
|
||
|
"type": "string",
|
||
|
"description": "An optional description to accompany the presence."
|
||
10 years ago
|
}
|
||
|
},
|
||
7 years ago
|
"required": ["presence"]
|
||
10 years ago
|
},
|
||
|
"type": {
|
||
|
"type": "string",
|
||
|
"enum": ["m.presence"]
|
||
|
},
|
||
7 years ago
|
"sender": {
|
||
10 years ago
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
7 years ago
|
"required": ["sender", "type", "content"]
|
||
10 years ago
|
}
|