2016-06-22 12:03:02 +02:00
|
|
|
---
|
|
|
|
|
allOf:
|
|
|
|
|
- $ref: core-event-schema/state_event.yaml
|
|
|
|
|
description: This is the first event in a room and cannot be changed. It acts as the root of all other events.
|
|
|
|
|
properties:
|
|
|
|
|
content:
|
|
|
|
|
properties:
|
|
|
|
|
creator:
|
2023-08-15 08:18:45 +02:00
|
|
|
description: |-
|
|
|
|
|
The `user_id` of the room creator. **Required** for, and only present in, room versions 1 - 10. Starting with
|
|
|
|
|
room version 11 the event `sender` should be used instead.
|
2016-06-22 12:03:02 +02:00
|
|
|
type: string
|
|
|
|
|
m.federate:
|
2021-01-27 21:14:31 +01:00
|
|
|
description: Whether users on other servers can join this room. Defaults to `true` if key does not exist.
|
2016-06-22 12:03:02 +02:00
|
|
|
type: boolean
|
2018-08-15 23:12:36 +02:00
|
|
|
room_version:
|
2021-01-27 21:14:31 +01:00
|
|
|
description: The version of the room. Defaults to `"1"` if the key does not exist.
|
2018-08-15 23:12:36 +02:00
|
|
|
type: string
|
2022-01-17 18:03:14 +01:00
|
|
|
type:
|
|
|
|
|
description: |-
|
|
|
|
|
Optional [room type](#types) to denote a room's intended function outside of traditional conversation.
|
|
|
|
|
|
|
|
|
|
Unspecified room types are possible using [Namespaced Identifiers](/appendices/#common-namespaced-identifier-grammar).
|
|
|
|
|
type: string
|
2019-01-10 01:02:09 +01:00
|
|
|
predecessor:
|
|
|
|
|
description: A reference to the room this room replaces, if the previous room was upgraded.
|
|
|
|
|
type: object
|
|
|
|
|
title: Previous Room
|
|
|
|
|
properties:
|
|
|
|
|
room_id:
|
|
|
|
|
type: string
|
|
|
|
|
description: The ID of the old room.
|
|
|
|
|
event_id:
|
|
|
|
|
type: string
|
|
|
|
|
description: The event ID of the last known event in the old room.
|
|
|
|
|
required: [room_id, event_id]
|
2016-06-22 12:03:02 +02:00
|
|
|
type: object
|
|
|
|
|
state_key:
|
|
|
|
|
description: A zero-length string.
|
|
|
|
|
pattern: '^$'
|
|
|
|
|
type: string
|
|
|
|
|
type:
|
|
|
|
|
enum:
|
|
|
|
|
- m.room.create
|
|
|
|
|
type: string
|
|
|
|
|
title: The first event in the room.
|
|
|
|
|
type: object
|