|
|
@ -141,223 +141,233 @@ paths:
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
The rooms that the user has joined, mapped as room ID to
|
|
|
|
The rooms that the user has joined, mapped as room ID to
|
|
|
|
room information.
|
|
|
|
room information.
|
|
|
|
additionalProperties:
|
|
|
|
patternProperties:
|
|
|
|
title: Joined Room
|
|
|
|
"^!":
|
|
|
|
type: object
|
|
|
|
x-pattern-format: mx-room-id
|
|
|
|
properties:
|
|
|
|
title: Joined Room
|
|
|
|
summary:
|
|
|
|
type: object
|
|
|
|
title: RoomSummary
|
|
|
|
properties:
|
|
|
|
type: object
|
|
|
|
summary:
|
|
|
|
description: |-
|
|
|
|
title: RoomSummary
|
|
|
|
Information about the room which clients may need to
|
|
|
|
type: object
|
|
|
|
correctly render it to users.
|
|
|
|
description: |-
|
|
|
|
properties:
|
|
|
|
Information about the room which clients may need to
|
|
|
|
m.heroes:
|
|
|
|
correctly render it to users.
|
|
|
|
type: array
|
|
|
|
properties:
|
|
|
|
description: |-
|
|
|
|
m.heroes:
|
|
|
|
The users which can be used to generate a room name
|
|
|
|
type: array
|
|
|
|
if the room does not have one. Required if the room's
|
|
|
|
description: |-
|
|
|
|
`m.room.name` or `m.room.canonical_alias` state events
|
|
|
|
The users which can be used to generate a room name
|
|
|
|
are unset or empty.
|
|
|
|
if the room does not have one. Required if the room's
|
|
|
|
|
|
|
|
`m.room.name` or `m.room.canonical_alias` state events
|
|
|
|
This should be the first 5 members of the room, ordered
|
|
|
|
are unset or empty.
|
|
|
|
by stream ordering, which are joined or invited. The
|
|
|
|
|
|
|
|
list must never include the client's own user ID. When
|
|
|
|
|
|
|
|
no joined or invited members are available, this should
|
|
|
|
|
|
|
|
consist of the banned and left users. More than 5 members
|
|
|
|
|
|
|
|
may be provided, however less than 5 should only be provided
|
|
|
|
|
|
|
|
when there are less than 5 members to represent.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When lazy-loading room members is enabled, the membership
|
|
|
|
|
|
|
|
events for the heroes MUST be included in the `state`,
|
|
|
|
|
|
|
|
unless they are redundant. When the list of users changes,
|
|
|
|
|
|
|
|
the server notifies the client by sending a fresh list of
|
|
|
|
|
|
|
|
heroes. If there are no changes since the last sync, this
|
|
|
|
|
|
|
|
field may be omitted.
|
|
|
|
|
|
|
|
items:
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
m.joined_member_count:
|
|
|
|
|
|
|
|
type: integer
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The number of users with `membership` of `join`,
|
|
|
|
|
|
|
|
including the client's own user ID. If this field has
|
|
|
|
|
|
|
|
not changed since the last sync, it may be omitted.
|
|
|
|
|
|
|
|
Required otherwise.
|
|
|
|
|
|
|
|
m.invited_member_count:
|
|
|
|
|
|
|
|
type: integer
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The number of users with `membership` of `invite`.
|
|
|
|
|
|
|
|
If this field has not changed since the last sync, it
|
|
|
|
|
|
|
|
may be omitted. Required otherwise.
|
|
|
|
|
|
|
|
state:
|
|
|
|
|
|
|
|
title: State
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
Updates to the state, between the time indicated by
|
|
|
|
|
|
|
|
the `since` parameter, and the start of the
|
|
|
|
|
|
|
|
`timeline` (or all state up to the start of the
|
|
|
|
|
|
|
|
`timeline`, if `since` is not given, or
|
|
|
|
|
|
|
|
`full_state` is true).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N.B. state updates for `m.room.member` events will
|
|
|
|
This should be the first 5 members of the room, ordered
|
|
|
|
be incomplete if `lazy_load_members` is enabled in
|
|
|
|
by stream ordering, which are joined or invited. The
|
|
|
|
the `/sync` filter, and only return the member events
|
|
|
|
list must never include the client's own user ID. When
|
|
|
|
required to display the senders of the timeline events
|
|
|
|
no joined or invited members are available, this should
|
|
|
|
in this response.
|
|
|
|
consist of the banned and left users. More than 5 members
|
|
|
|
allOf:
|
|
|
|
may be provided, however less than 5 should only be provided
|
|
|
|
- $ref: definitions/state_event_batch.yaml
|
|
|
|
when there are less than 5 members to represent.
|
|
|
|
timeline:
|
|
|
|
|
|
|
|
title: Timeline
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The timeline of messages and state changes in the
|
|
|
|
|
|
|
|
room.
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: definitions/timeline_batch.yaml
|
|
|
|
|
|
|
|
ephemeral:
|
|
|
|
|
|
|
|
title: Ephemeral
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The new ephemeral events in the room (events that
|
|
|
|
|
|
|
|
aren't recorded in the timeline or state of the
|
|
|
|
|
|
|
|
room). In this version of the spec, these are
|
|
|
|
|
|
|
|
[typing notification](#typing-notifications) and
|
|
|
|
|
|
|
|
[read receipt](#receipts) events.
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: definitions/event_batch.yaml
|
|
|
|
|
|
|
|
account_data:
|
|
|
|
|
|
|
|
title: Account Data
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The private data that this user has attached to
|
|
|
|
|
|
|
|
this room.
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: definitions/event_batch.yaml
|
|
|
|
|
|
|
|
unread_notifications:
|
|
|
|
|
|
|
|
title: Unread Notification Counts
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
Counts of unread notifications for this room. See the
|
|
|
|
|
|
|
|
[Receiving notifications](/client-server-api/#receiving-notifications) section
|
|
|
|
|
|
|
|
for more information on how these are calculated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If `unread_thread_notifications` was specified as `true` on the `RoomEventFilter`,
|
|
|
|
When lazy-loading room members is enabled, the membership
|
|
|
|
these counts will only be for the main timeline rather than all events in the room.
|
|
|
|
events for the heroes MUST be included in the `state`,
|
|
|
|
See the [threading module](#threading) for more information.
|
|
|
|
unless they are redundant. When the list of users changes,
|
|
|
|
x-changedInMatrixVersion:
|
|
|
|
the server notifies the client by sending a fresh list of
|
|
|
|
"1.4": |
|
|
|
|
heroes. If there are no changes since the last sync, this
|
|
|
|
Updated to reflect behaviour of having `unread_thread_notifications` as `true` in
|
|
|
|
field may be omitted.
|
|
|
|
the `RoomEventFilter` for `/sync`.
|
|
|
|
items:
|
|
|
|
properties:
|
|
|
|
type: string
|
|
|
|
highlight_count:
|
|
|
|
m.joined_member_count:
|
|
|
|
title: Highlighted notification count
|
|
|
|
type: integer
|
|
|
|
type: integer
|
|
|
|
description: |-
|
|
|
|
description: The number of unread notifications for this room with the highlight
|
|
|
|
The number of users with `membership` of `join`,
|
|
|
|
flag set.
|
|
|
|
including the client's own user ID. If this field has
|
|
|
|
notification_count:
|
|
|
|
not changed since the last sync, it may be omitted.
|
|
|
|
title: Total notification count
|
|
|
|
Required otherwise.
|
|
|
|
type: integer
|
|
|
|
m.invited_member_count:
|
|
|
|
description: The total number of unread notifications for this room.
|
|
|
|
type: integer
|
|
|
|
unread_thread_notifications:
|
|
|
|
description: |-
|
|
|
|
title: Unread Thread Notification Counts
|
|
|
|
The number of users with `membership` of `invite`.
|
|
|
|
type: object
|
|
|
|
If this field has not changed since the last sync, it
|
|
|
|
description: |-
|
|
|
|
may be omitted. Required otherwise.
|
|
|
|
If `unread_thread_notifications` was specified as `true` on the `RoomEventFilter`,
|
|
|
|
state:
|
|
|
|
the notification counts for each [thread](#threading) in this room. The object is
|
|
|
|
title: State
|
|
|
|
keyed by thread root ID, with values matching `unread_notifications`.
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
Updates to the state, between the time indicated by
|
|
|
|
|
|
|
|
the `since` parameter, and the start of the
|
|
|
|
|
|
|
|
`timeline` (or all state up to the start of the
|
|
|
|
|
|
|
|
`timeline`, if `since` is not given, or
|
|
|
|
|
|
|
|
`full_state` is true).
|
|
|
|
|
|
|
|
|
|
|
|
If a thread does not have any notifications it can be omitted from this object. If
|
|
|
|
N.B. state updates for `m.room.member` events will
|
|
|
|
no threads have notification counts, this whole object can be omitted.
|
|
|
|
be incomplete if `lazy_load_members` is enabled in
|
|
|
|
x-addedInMatrixVersion: "1.4"
|
|
|
|
the `/sync` filter, and only return the member events
|
|
|
|
additionalProperties:
|
|
|
|
required to display the senders of the timeline events
|
|
|
|
title: ThreadNotificationCounts
|
|
|
|
in this response.
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: definitions/state_event_batch.yaml
|
|
|
|
|
|
|
|
timeline:
|
|
|
|
|
|
|
|
title: Timeline
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The timeline of messages and state changes in the
|
|
|
|
|
|
|
|
room.
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: definitions/timeline_batch.yaml
|
|
|
|
|
|
|
|
ephemeral:
|
|
|
|
|
|
|
|
title: Ephemeral
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The new ephemeral events in the room (events that
|
|
|
|
|
|
|
|
aren't recorded in the timeline or state of the
|
|
|
|
|
|
|
|
room). In this version of the spec, these are
|
|
|
|
|
|
|
|
[typing notification](#typing-notifications) and
|
|
|
|
|
|
|
|
[read receipt](#receipts) events.
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: definitions/event_batch.yaml
|
|
|
|
|
|
|
|
account_data:
|
|
|
|
|
|
|
|
title: Account Data
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The private data that this user has attached to
|
|
|
|
|
|
|
|
this room.
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: definitions/event_batch.yaml
|
|
|
|
|
|
|
|
unread_notifications:
|
|
|
|
|
|
|
|
title: Unread Notification Counts
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
Counts of unread notifications for this room. See the
|
|
|
|
|
|
|
|
[Receiving notifications](/client-server-api/#receiving-notifications) section
|
|
|
|
|
|
|
|
for more information on how these are calculated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If `unread_thread_notifications` was specified as `true` on the `RoomEventFilter`,
|
|
|
|
|
|
|
|
these counts will only be for the main timeline rather than all events in the room.
|
|
|
|
|
|
|
|
See the [threading module](#threading) for more information.
|
|
|
|
|
|
|
|
x-changedInMatrixVersion:
|
|
|
|
|
|
|
|
"1.4": |
|
|
|
|
|
|
|
|
Updated to reflect behaviour of having `unread_thread_notifications` as `true` in
|
|
|
|
|
|
|
|
the `RoomEventFilter` for `/sync`.
|
|
|
|
properties:
|
|
|
|
properties:
|
|
|
|
highlight_count:
|
|
|
|
highlight_count:
|
|
|
|
title: ThreadedHighlightNotificationCount
|
|
|
|
title: Highlighted notification count
|
|
|
|
type: integer
|
|
|
|
type: integer
|
|
|
|
description: The number of unread notifications for this *thread* with the
|
|
|
|
description: The number of unread notifications for this room with the highlight
|
|
|
|
highlight flag set.
|
|
|
|
flag set.
|
|
|
|
notification_count:
|
|
|
|
notification_count:
|
|
|
|
title: ThreadedTotalNotificationCount
|
|
|
|
title: Total notification count
|
|
|
|
type: integer
|
|
|
|
type: integer
|
|
|
|
description: The total number of unread notifications for this *thread*.
|
|
|
|
description: The total number of unread notifications for this room.
|
|
|
|
|
|
|
|
unread_thread_notifications:
|
|
|
|
|
|
|
|
title: Unread Thread Notification Counts
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
If `unread_thread_notifications` was specified as `true` on the `RoomEventFilter`,
|
|
|
|
|
|
|
|
the notification counts for each [thread](#threading) in this room. The object is
|
|
|
|
|
|
|
|
keyed by thread root ID, with values matching `unread_notifications`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If a thread does not have any notifications it can be omitted from this object. If
|
|
|
|
|
|
|
|
no threads have notification counts, this whole object can be omitted.
|
|
|
|
|
|
|
|
x-addedInMatrixVersion: "1.4"
|
|
|
|
|
|
|
|
patternProperties:
|
|
|
|
|
|
|
|
"^\\$":
|
|
|
|
|
|
|
|
x-pattern-format: mx-event-id
|
|
|
|
|
|
|
|
title: ThreadNotificationCounts
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
|
|
|
|
highlight_count:
|
|
|
|
|
|
|
|
title: ThreadedHighlightNotificationCount
|
|
|
|
|
|
|
|
type: integer
|
|
|
|
|
|
|
|
description: The number of unread notifications for this *thread* with the
|
|
|
|
|
|
|
|
highlight flag set.
|
|
|
|
|
|
|
|
notification_count:
|
|
|
|
|
|
|
|
title: ThreadedTotalNotificationCount
|
|
|
|
|
|
|
|
type: integer
|
|
|
|
|
|
|
|
description: The total number of unread notifications for this *thread*.
|
|
|
|
invite:
|
|
|
|
invite:
|
|
|
|
title: Invited Rooms
|
|
|
|
title: Invited Rooms
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
The rooms that the user has been invited to, mapped as room ID to
|
|
|
|
The rooms that the user has been invited to, mapped as room ID to
|
|
|
|
room information.
|
|
|
|
room information.
|
|
|
|
additionalProperties:
|
|
|
|
patternProperties:
|
|
|
|
title: Invited Room
|
|
|
|
"^!":
|
|
|
|
type: object
|
|
|
|
x-pattern-format: mx-room-id
|
|
|
|
properties:
|
|
|
|
title: Invited Room
|
|
|
|
invite_state:
|
|
|
|
type: object
|
|
|
|
title: InviteState
|
|
|
|
properties:
|
|
|
|
type: object
|
|
|
|
invite_state:
|
|
|
|
description: |-
|
|
|
|
title: InviteState
|
|
|
|
The [stripped state](#stripped-state) of a room that the user has been invited
|
|
|
|
type: object
|
|
|
|
to.
|
|
|
|
description: |-
|
|
|
|
properties:
|
|
|
|
The [stripped state](#stripped-state) of a room that the user has been invited
|
|
|
|
events:
|
|
|
|
to.
|
|
|
|
description: The [stripped state events](#stripped-state) that form the invite
|
|
|
|
properties:
|
|
|
|
state.
|
|
|
|
events:
|
|
|
|
items:
|
|
|
|
description: The [stripped state events](#stripped-state) that form the invite
|
|
|
|
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml
|
|
|
|
state.
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
|
|
|
|
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml
|
|
|
|
|
|
|
|
type: array
|
|
|
|
knock:
|
|
|
|
knock:
|
|
|
|
title: Knocked rooms
|
|
|
|
title: Knocked rooms
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
description: The rooms that the user has knocked upon, mapped as room ID to room
|
|
|
|
description: The rooms that the user has knocked upon, mapped as room ID to room
|
|
|
|
information.
|
|
|
|
information.
|
|
|
|
additionalProperties:
|
|
|
|
patternProperties:
|
|
|
|
title: Knocked Room
|
|
|
|
"^!":
|
|
|
|
type: object
|
|
|
|
x-pattern-format: mx-room-id
|
|
|
|
properties:
|
|
|
|
title: Knocked Room
|
|
|
|
knock_state:
|
|
|
|
type: object
|
|
|
|
title: KnockState
|
|
|
|
properties:
|
|
|
|
type: object
|
|
|
|
knock_state:
|
|
|
|
description: The [stripped state](#stripped-state) of a room that the user has
|
|
|
|
title: KnockState
|
|
|
|
knocked upon.
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
description: The [stripped state](#stripped-state) of a room that the user has
|
|
|
|
events:
|
|
|
|
knocked upon.
|
|
|
|
description: The [stripped state events](#stripped-state) that form the knock
|
|
|
|
properties:
|
|
|
|
state.
|
|
|
|
events:
|
|
|
|
items:
|
|
|
|
description: The [stripped state events](#stripped-state) that form the knock
|
|
|
|
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml
|
|
|
|
state.
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
|
|
|
|
$ref: ../../event-schemas/schema/core-event-schema/stripped_state.yaml
|
|
|
|
|
|
|
|
type: array
|
|
|
|
leave:
|
|
|
|
leave:
|
|
|
|
title: Left rooms
|
|
|
|
title: Left rooms
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
The rooms that the user has left or been banned from, mapped as room ID to
|
|
|
|
The rooms that the user has left or been banned from, mapped as room ID to
|
|
|
|
room information.
|
|
|
|
room information.
|
|
|
|
additionalProperties:
|
|
|
|
patternProperties:
|
|
|
|
title: Left Room
|
|
|
|
"^!":
|
|
|
|
type: object
|
|
|
|
x-pattern-format: mx-room-id
|
|
|
|
properties:
|
|
|
|
title: Left Room
|
|
|
|
state:
|
|
|
|
type: object
|
|
|
|
title: State
|
|
|
|
properties:
|
|
|
|
type: object
|
|
|
|
state:
|
|
|
|
description: The state updates for the room up to the start of the timeline.
|
|
|
|
title: State
|
|
|
|
allOf:
|
|
|
|
type: object
|
|
|
|
- $ref: definitions/state_event_batch.yaml
|
|
|
|
description: The state updates for the room up to the start of the timeline.
|
|
|
|
timeline:
|
|
|
|
allOf:
|
|
|
|
title: Timeline
|
|
|
|
- $ref: definitions/state_event_batch.yaml
|
|
|
|
type: object
|
|
|
|
timeline:
|
|
|
|
description: |-
|
|
|
|
title: Timeline
|
|
|
|
The timeline of messages and state changes in the
|
|
|
|
type: object
|
|
|
|
room up to the point when the user left.
|
|
|
|
description: |-
|
|
|
|
allOf:
|
|
|
|
The timeline of messages and state changes in the
|
|
|
|
- $ref: definitions/timeline_batch.yaml
|
|
|
|
room up to the point when the user left.
|
|
|
|
account_data:
|
|
|
|
allOf:
|
|
|
|
title: Account Data
|
|
|
|
- $ref: definitions/timeline_batch.yaml
|
|
|
|
type: object
|
|
|
|
account_data:
|
|
|
|
description: |-
|
|
|
|
title: Account Data
|
|
|
|
The private data that this user has attached to
|
|
|
|
type: object
|
|
|
|
this room.
|
|
|
|
description: |-
|
|
|
|
allOf:
|
|
|
|
The private data that this user has attached to
|
|
|
|
- $ref: definitions/event_batch.yaml
|
|
|
|
this room.
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: definitions/event_batch.yaml
|
|
|
|
presence:
|
|
|
|
presence:
|
|
|
|
title: Presence
|
|
|
|
title: Presence
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|