ApiSchemas
UserMessageEvent
One shape from the contract, as it appears on the wire.
Used by sessions.annotate, sessions.events, sessions.send
JSON Schema
{
"type": "object",
"properties": {
"seq": {
"$ref": "#/components/schemas/EventSeq"
},
"sessionId": {
"$ref": "#/components/schemas/SessionId"
},
"at": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"user.message"
]
},
"text": {
"type": "string"
},
"mode": {
"$ref": "#/components/schemas/MessageMode"
},
"metadata": {
"$ref": "#/components/schemas/MessageMetadata"
},
"attachments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BlobRef"
}
}
},
"required": [
"seq",
"sessionId",
"at",
"type",
"text"
],
"additionalProperties": false
}