mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-20 18:34:11 +01:00
Add the fields required by the templating system to v2 sync
This commit is contained in:
parent
5a5a6565ff
commit
4f606cf3a7
|
|
@ -72,36 +72,49 @@ paths:
|
||||||
The batch token to supply in the ``since`` param of the next
|
The batch token to supply in the ``since`` param of the next
|
||||||
``/sync`` request.
|
``/sync`` request.
|
||||||
rooms:
|
rooms:
|
||||||
|
title: Rooms
|
||||||
type: object
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
Updates to rooms.
|
Updates to rooms.
|
||||||
properties:
|
properties:
|
||||||
joined:
|
joined:
|
||||||
|
title: Joined
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
title: Joined Room
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
event_map:
|
event_map:
|
||||||
|
title: EventMap
|
||||||
type: object
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
A map from event ID to events for this room. The
|
A map from event ID to events for this room. The
|
||||||
events are referenced from the ``timeline`` and
|
events are referenced from the ``timeline`` and
|
||||||
``state`` keys for this room.
|
``state`` keys for this room.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
title: Event
|
||||||
description: An event object.
|
description: An event object.
|
||||||
type: object
|
type: object
|
||||||
|
allOf:
|
||||||
|
- $ref: "core-event-schema/event.json"
|
||||||
state:
|
state:
|
||||||
|
title: State
|
||||||
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The state updates for the room.
|
The state updates for the room.
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/room_event_batch.json"
|
- $ref: "definitions/room_event_batch.json"
|
||||||
timeline:
|
timeline:
|
||||||
|
title: Timeline
|
||||||
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The timeline of messages and state changes in the
|
The timeline of messages and state changes in the
|
||||||
room.
|
room.
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/timeline_batch.json"
|
- $ref: "definitions/timeline_batch.json"
|
||||||
ephemeral:
|
ephemeral:
|
||||||
|
title: Ephemeral
|
||||||
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The ephemeral events in the room that aren't
|
The ephemeral events in the room that aren't
|
||||||
recorded in the timeline or state of the room.
|
recorded in the timeline or state of the room.
|
||||||
|
|
@ -109,13 +122,17 @@ paths:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/event_batch.json"
|
- $ref: "definitions/event_batch.json"
|
||||||
invited:
|
invited:
|
||||||
|
title: Invited
|
||||||
type: object
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The rooms that the user has been invited to.
|
The rooms that the user has been invited to.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
title: Invited Room
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
invite_state:
|
invite_state:
|
||||||
|
title: InviteState
|
||||||
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The state of a room that the user has been invited
|
The state of a room that the user has been invited
|
||||||
to. These state events may only have the `sender``,
|
to. These state events may only have the `sender``,
|
||||||
|
|
@ -132,35 +149,47 @@ paths:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/event_batch.json"
|
- $ref: "definitions/event_batch.json"
|
||||||
archived:
|
archived:
|
||||||
|
title: Archived
|
||||||
type: object
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The rooms that the user has left or been banned from. The
|
The rooms that the user has left or been banned from. The
|
||||||
entries in the room_map will lack an ``ephemeral`` key.
|
entries in the room_map will lack an ``ephemeral`` key.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
title: Archived Room
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
event_map:
|
event_map:
|
||||||
|
title: EventMap
|
||||||
type: object
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
A map from event ID to events for this room. The
|
A map from event ID to events for this room. The
|
||||||
events are referenced from the ``timeline`` and
|
events are referenced from the ``timeline`` and
|
||||||
``state`` keys for this room.
|
``state`` keys for this room.
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
title: Event
|
||||||
description: An event object.
|
description: An event object.
|
||||||
type: object
|
type: object
|
||||||
|
allOf:
|
||||||
|
- $ref: "core-event-schema/event.json"
|
||||||
state:
|
state:
|
||||||
|
title: State
|
||||||
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The state updates for the room up to the point when
|
The state updates for the room up to the point when
|
||||||
the user left.
|
the user left.
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/room_event_batch.json"
|
- $ref: "definitions/room_event_batch.json"
|
||||||
timeline:
|
timeline:
|
||||||
|
title: Timeline
|
||||||
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The timeline of messages and state changes in the
|
The timeline of messages and state changes in the
|
||||||
room up to the point when the user left.
|
room up to the point when the user left.
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/timeline_batch.json"
|
- $ref: "definitions/timeline_batch.json"
|
||||||
presence:
|
presence:
|
||||||
|
title: Presence
|
||||||
|
type: object
|
||||||
description: |-
|
description: |-
|
||||||
The updates to the presence status of other users.
|
The updates to the presence status of other users.
|
||||||
allOf:
|
allOf:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue