EventChatUpdated
{
"allOf": [
{
"$ref": "#/components/schemas/OrkesioEnvelope"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "chat.updated"
},
"data": {
"type": "object",
"properties": {
"chat": {
"$ref": "#/components/schemas/OrkesioChat"
},
"changes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"name",
"archived",
"pinned",
"muted_until",
"labels",
"unread_count",
"awaiting_reply",
"ephemeral_seconds",
"blocked",
"assigned_to",
"ticket_open",
"picture_url",
"notes",
"group",
"last_message"
],
"description": "Campo da conversa que mudou."
},
"description": "Campos que mudaram, com o nome do campo em `chat`, onde vem o valor novo. `group` cobre o objeto `group` inteiro (admin, membro, anúncio); `last_message` cobre os campos `last_message_*` (a reação, a edição e a ligação trocam a prévia sem `message.received`; o voto não). A lista pode crescer."
}
},
"required": [
"chat",
"changes"
],
"additionalProperties": false
}
},
"required": [
"data",
"type"
]
}
]
}