matrix-spec/data/event-schemas/schema/m.key_backup.yaml
Andy Balaam 867c96c22b Specify m.key_backup account data (MSC4287)
Signed-off-by: Andy Balaam <andy.balaam@matrix.org>
2026-04-14 12:57:06 +01:00

27 lines
679 B
YAML

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Key Backup Event",
"description": "Allows clients to track user preferences about key backup.",
"allOf": [{
"$ref": "core-event-schema/event.yaml"
}],
"properties": {
"type": {
"type": "string",
"enum": ["m.key_backup"]
},
"content": {
"type": "object",
"properties": {
"enabled": {
"description": "True if the user chose to enable key backup. False if the user chose to disable key backup.",
"type": "boolean",
}
},
"required": ["enabled"]
}
},
"required": ["type", "content"]
}