From 936d437a21a5ddb720d4692e9436ae64aaaa152a Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 9 Jan 2015 14:16:15 +0000 Subject: [PATCH] Add definitions and validation rules of some of the event fields --- drafts/erikj_federation.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drafts/erikj_federation.rst b/drafts/erikj_federation.rst index ffd76924..0050109b 100644 --- a/drafts/erikj_federation.rst +++ b/drafts/erikj_federation.rst @@ -17,6 +17,27 @@ Validation **TODO** +Domain specific string + A string of the form ``:``, where is a + single character, ```` is an arbitrary string that does not + include a colon, and `` is a valid server name. + +``room_id`` + A domain specific string with prefix ``!`` that is static across all events + in a graph and uniquely identifies it. The ``domain`` should be that of the + home server that created the room (i.e., the server that generated the + first ``m.room.create`` event). + +``sender`` + The entity that logically sent the event. This is usually a user id, but + can also be a server name. + +User Id + A domain specific string with prefix ``@`` representing a user account. The + ``domain`` is the home server of the user and is the server used to contact + the user. + + Authorization -------------