matrix-spec/data/event-schemas/schema/m.image_pack.rooms.yaml
Artem abb3d63928
Some checks failed
Spec / 🔎 Validate OpenAPI specifications (push) Has been cancelled
Spec / 🔎 Check Event schema examples (push) Has been cancelled
Spec / 🔎 Check OpenAPI definitions examples (push) Has been cancelled
Spec / 🔎 Check JSON Schemas inline examples (push) Has been cancelled
Spec / ⚙️ Calculate baseURL for later jobs (push) Has been cancelled
Spec / 📢 Run towncrier for changelog (push) Has been cancelled
Spell Check / Spell Check with Typos (push) Has been cancelled
Spec / 🐍 Build OpenAPI definitions (push) Has been cancelled
Spec / 📖 Build the spec (push) Has been cancelled
Spec / 🔎 Validate generated HTML (push) Has been cancelled
Spec / 📖 Build the historical backup spec (push) Has been cancelled
Spec / Create release (push) Has been cancelled
Specify MSC2545 image packs (#2397)
Co-authored-by: Johannes Marbach <n0-0ne+github@mailbox.org>
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Signed-off-by: jpcshka <189279532+jpcshka@users.noreply.github.com>
2026-07-01 09:32:37 +00:00

46 lines
1.5 KiB
YAML

---
$schema: https://json-schema.org/draft/2020-12/schema
allOf:
- $ref: core-event-schema/event.yaml
description: |-
Stores which room image packs the user has enabled globally, so that the
images in those packs are available in all rooms.
properties:
type:
type: string
enum:
- m.image_pack.rooms
content:
type: object
properties:
rooms:
description: |-
A map of room ID to a map of `state_key` to an empty object.
Each entry references a specific `m.room.image_pack` state event
that the user has enabled globally.
A room ID present as a key but with no `state_key` entries (i.e. an
empty inner object) currently has no defined meaning.
Clients SHOULD be aware that the user may not be a member of a room
referenced here, thus the client will not be able to access any images from the
pack. Clients MAY present appropriate UI to handle this case.
type: object
additionalProperties:
description: |
Map from image pack `state_key` to an empty object.
The bottom-level object is reserved for future use. Clients SHOULD treat it
as opaque and preserve any unrecognised properties when modifying this event.
type: object
additionalProperties:
type: object
required:
- rooms
required:
- type
- content
title: ImagePackRooms
type: object