refactor progress
This commit is contained in:
36
fluxer_docs/schemas/events/CALL_UPDATE.json
Normal file
36
fluxer_docs/schemas/events/CALL_UPDATE.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"name": "CALL_UPDATE",
|
||||
"description": "Sent when a DM or group DM call is updated (participants join/leave, ringing state changes).",
|
||||
"scope": "presence",
|
||||
"dispatchedBy": ["gateway"],
|
||||
"note": "Dispatched to all recipients when call state changes",
|
||||
"payload": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"channel_id": {
|
||||
"type": "string",
|
||||
"description": "Channel ID of the call"
|
||||
},
|
||||
"message_id": {
|
||||
"type": "string",
|
||||
"description": "ID of the call message"
|
||||
},
|
||||
"region": {
|
||||
"type": ["string", "null"],
|
||||
"description": "Voice region for the call"
|
||||
},
|
||||
"ringing": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "Array of user IDs currently being rung"
|
||||
},
|
||||
"voice_states": {
|
||||
"type": "array",
|
||||
"items": {"$ref": "VoiceStateResponse"},
|
||||
"description": "Voice states of current participants in the call"
|
||||
}
|
||||
},
|
||||
"required": ["channel_id", "message_id", "ringing", "voice_states"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user