You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.0 KiB
Plaintext
49 lines
2.0 KiB
Plaintext
9 years ago
|
{
|
||
|
"type": "object",
|
||
|
"title": "Receipt Event",
|
||
|
"description": "Informs the client of new receipts.",
|
||
|
"properties": {
|
||
|
"content": {
|
||
|
"type": "object",
|
||
|
"patternProperties": {
|
||
9 years ago
|
"^\\$": {
|
||
9 years ago
|
"type": "object",
|
||
9 years ago
|
"x-pattern": "$EVENT_ID",
|
||
9 years ago
|
"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",
|
||
|
"description": "A collection of users who have sent ``m.read`` receipts for this event.",
|
||
|
"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."
|
||
|
}
|
||
9 years ago
|
}
|
||
|
}
|
||
|
}
|
||
9 years ago
|
}
|
||
9 years ago
|
}
|
||
|
}
|
||
|
},
|
||
|
"additionalProperties": false
|
||
|
},
|
||
|
"type": {
|
||
|
"type": "string",
|
||
9 years ago
|
"enum": ["m.receipt"]
|
||
9 years ago
|
},
|
||
|
"room_id": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"required": ["room_id", "type", "content"]
|
||
|
}
|