2015-12-07 13:53:48 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: event.yaml
|
2016-08-12 08:48:27 +00:00
|
|
|
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:
|
2017-11-03 17:17:59 +00:00
|
|
|
description: The globally unique event identifier.
|
2015-12-07 13:53:48 +00:00
|
|
|
type: string
|
|
|
|
room_id:
|
2017-11-03 17:17:59 +00:00
|
|
|
description: The ID of the room associated with this event.
|
2015-12-07 13:53:48 +00:00
|
|
|
type: string
|
|
|
|
sender:
|
2017-11-03 17:17:59 +00:00
|
|
|
description: Contains the fully-qualified ID of the user who *sent*
|
2015-12-07 13:53:48 +00:00
|
|
|
this event.
|
|
|
|
type: string
|
2016-08-12 08:48:27 +00:00
|
|
|
origin_server_ts:
|
2017-11-03 17:17:59 +00:00
|
|
|
description: Timestamp in milliseconds on originating homeserver
|
2016-08-12 08:48:27 +00:00
|
|
|
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
|
2016-11-30 22:12:47 +00:00
|
|
|
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:
|
2016-08-27 05:59:23 +00:00
|
|
|
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
|
2016-08-12 08:48:27 +00:00
|
|
|
- origin_server_ts
|
2015-12-07 13:53:48 +00:00
|
|
|
title: Room Event
|
|
|
|
type: object
|