2015-09-08 17:49:14 +02:00
{
"type": "object" ,
"title": "Receipt Event" ,
"description": "Informs the client of new receipts." ,
2016-03-08 15:51:09 +01:00
"allOf": [ {
"$ref": "core-event-schema/event.yaml"
}] ,
2015-09-08 17:49:14 +02:00
"properties": {
"content": {
"type": "object" ,
"patternProperties": {
2015-09-08 17:51:08 +02:00
"^\\$": {
2015-09-08 17:49:14 +02:00
"type": "object" ,
2015-10-01 13:11:26 +02:00
"x-pattern": "$EVENT_ID" ,
2015-10-01 16:41:54 +02:00
"title": "Receipts" ,
"description": "The mapping of event ID to a collection of receipts for this event ID. The event ID is the ID of the event being acknowledged and *not* an ID for the receipt itself." ,
"properties": {
"m.read": {
"type": "object" ,
"title": "Users" ,
2021-01-27 21:14:31 +01:00
"description": "A collection of users who have sent `m.read` receipts for this event." ,
2015-10-01 16:41:54 +02:00
"patternProperties": {
"^@": {
"type": "object" ,
"title": "Receipt" ,
"description": "The mapping of user ID to receipt. The user ID is the entity who sent this receipt." ,
"x-pattern": "$USER_ID" ,
"properties": {
"ts": {
"type": "number" ,
"description": "The timestamp the receipt was sent at."
}
2015-09-08 17:49:14 +02:00
}
}
}
2015-10-01 16:41:54 +02:00
}
2015-09-08 17:49:14 +02:00
}
}
},
"additionalProperties": false
},
"type": {
"type": "string" ,
2015-09-08 17:54:14 +02:00
"enum": [ "m.receipt" ]
2015-09-08 17:49:14 +02:00
},
"room_id": {
"type": "string"
}
},
"required": [ "room_id" , "type" , "content" ]
}