{
"type": "object",
"title": "MessageStream",
"required": [
"command",
"payloadType",
"payload"
],
"properties": {
"command": {
"type": "string",
"description": "The type of message stream being sent or received, check the table below for more details of the command types",
"enum": [
"CLIENT_TO_SERVER_SYNC",
"SERVER_TO_CLIENT_SYNC",
"END_OF_TURN",
"STOP",
"ABORT_AUDIO",
"UPDATE_MESSAGE_STATUS"
]
},
"payloadType": {
"type": "string",
"description": "The type of payload being sent or received. Either Audio in bytes or text string, below table contains more details on the audio encoding format requirements",
"enum": [
"AUDIO",
"TEXT"
]
},
"payload": {
"type": "object",
"description": "content of the payload, either audio bytes or text string"
},
"user_dialog_id": {
"type": "string",
"nullable": true,
"description": "unique identifier for each dialog in the conversation. This dialog id is generated by the server and client can send a status update to server on whether the dialog is completely played or not at the client side"
}
}
}