Now that we don't expect there to be duplication betwen the 'timeline' and
'state' results, there's no point in having the state map. (That does mean the
events themselves need event_id fields though).
Also:
- move the contents of the 'unsigned' dictionary into the events themselves
- replace the state list with two layers of dictionary keyed on type and
state_key
- rename the children of the 'rooms' dict from "joined/invited/archived" to
"join/invite/leave" to match the membership states
"description":"Time in milliseconds since the event was sent."
},
"content":{
"content":{
"type":"object",
"type":"object",
"title":"EventContent",
"title":"EventContent",
"description":"The content of this event. The fields in this object will vary depending on the type of event."
"description":"The content of this event. The fields in this object will vary depending on the type of event."
},
},
"event_id":{
"type":"string",
"description":"Globally unique identifier for this event."
},
"origin_server_ts":{
"origin_server_ts":{
"type":"integer",
"type":"integer",
"format":"int64",
"format":"int64",
"description":"Timestamp in milliseconds on originating homeserver when this event was sent."
"description":"Timestamp in milliseconds on originating homeserver when this event was sent."
},
},
"prev_content":{
"title":"EventContent",
"type":"object",
"description":"Optional. The previous ``content`` for this state. This will be present only for state events appearing in the ``timeline``. If this is not a state event, or there is no previous content, this key will be missing."
},
"prev_sender":{
"type":"string",
"description":"Optional. The ``sender`` of the previous event for this state. This will be present only for state events appearing in the ``timeline``. If this is not a state event, or there was no previous event for this state, this key will be missing."
},
"sender":{
"sender":{
"type":"string",
"type":"string",
"description":"The MXID of the user who sent this event."
"description":"The MXID of the user who sent this event."
@ -24,30 +42,9 @@
"type":"string",
"type":"string",
"description":"The type of event."
"description":"The type of event."
},
},
"unsigned":{
"type":"object",
"title":"Unsigned",
"description":"Information about this event which was not sent by the originating homeserver",
"properties":{
"age":{
"type":"integer",
"format":"int64",
"description":"Time in milliseconds since the event was sent."
},
"prev_content":{
"title":"EventContent",
"type":"object",
"description":"Optional. The previous ``content`` for this state. This will be present only for state events appearing in the ``timeline``. If this is not a state event, or there is no previous content, this key will be missing."
},
"replaces_state":{
"type":"string",
"description":"Optional. The event_id of the previous event for this state. This will be present only for state events appearing in the ``timeline``. If this is not a state event, or there is no previous content, this key will be missing."
},
"txn_id":{
"txn_id":{
"type":"string",
"type":"string",
"description":"Optional. The transaction ID set when this message was sent. This key will only be present for message events sent by the device calling this API."
"description":"Optional. The transaction ID set when this message was sent. This key will only be present for message events sent by the device calling this API."