EventChatPresence
{
"allOf": [
{
"$ref": "#/components/schemas/OrkesioEnvelope"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "chat.presence"
},
"data": {
"type": "object",
"properties": {
"chat": {
"$ref": "#/components/schemas/OrkesioChat"
},
"participant": {
"$ref": "#/components/schemas/OrkesioParticipant"
},
"state": {
"type": "string",
"enum": [
"online",
"offline",
"typing",
"recording",
"paused"
],
"description": "Estado. `online`/`offline` é do contato; `typing`, `recording` e `paused` são na conversa."
},
"last_seen_at": {
"type": "string",
"format": "date-time",
"description": "Visto por último (só em `offline`, quando o contato mostra). ISO 8601 em UTC com milissegundos."
}
},
"required": [
"chat",
"state"
],
"additionalProperties": false
}
},
"required": [
"data",
"type"
]
}
]
}