matrix-doc/event-schemas/schema/core-event-schema/room_event.yaml

46 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2015-12-07 13:53:48 +00:00
allOf:
- $ref: event.yaml
description: In addition to the Event fields, Room Events have the following additional
2015-12-07 13:53:48 +00:00
fields.
properties:
event_id:
description: The globally unique event identifier.
2015-12-07 13:53:48 +00:00
type: string
room_id:
description: The ID of the room associated with this event.
2015-12-07 13:53:48 +00:00
type: string
sender:
description: Contains the fully-qualified ID of the user who *sent*
2015-12-07 13:53:48 +00:00
this event.
type: string
origin_server_ts:
description: Timestamp in milliseconds on originating homeserver
when this event was sent.
type: number
2015-12-07 13:53:48 +00:00
unsigned:
description: Contains optional extra information about the event.
properties:
age:
description: The time in milliseconds that has elapsed since the event was
sent. This field is generated by the local homeserver, and may be incorrect
if the local time on at least one of the two servers is out of sync, which can
cause the age to either be negative or greater than it actually is.
2015-12-07 13:53:48 +00:00
type: integer
redacted_because:
description: Optional. The event that redacted this event, if any.
title: Event
type: object
2015-12-07 13:53:48 +00:00
transaction_id:
description: The client-supplied transaction ID, if the client being given
the event is the same one which sent it.
type: string
title: UnsignedData
type: object
required:
- event_id
- room_id
- sender
- origin_server_ts
2015-12-07 13:53:48 +00:00
title: Room Event
type: object