mirror of
https://github.com/cadmium-im/cadmium-docs-legacy.git
synced 2024-11-25 03:42:21 +00:00
Add EntityID section
This commit is contained in:
parent
51bda3e90c
commit
ef0d37aebe
15
protocol-spec/base.md
Normal file
15
protocol-spec/base.md
Normal file
@ -0,0 +1,15 @@
|
||||
# Base
|
||||
|
||||
## Entity ID
|
||||
* Room alias: `#<roomAlias>:<serverpart>`
|
||||
* Username: `@<username>@<serverpart>`
|
||||
* User ID with MSISDN (Mobile Station International Subscriber Directory Number): `%<msisdn without +>:<serverpart>`
|
||||
* User ID with Email: `^<email username>_at_<email hostname>:<serverpart>`
|
||||
* Message ID: `&<uuid>:<serverpart (from which server the message was sent)>`
|
||||
* Room ID: `!<roomID>@<serverpart>`
|
||||
* Single server-part: `<serverpart>`
|
||||
|
||||
**Server-part (hostname)** - `IPv4 / [IPv6] / dns-domain:<port (1-65535)>`.
|
||||
**Username/Room alias/RoomID** - MUST NOT be empty, and MUST contain only the characters `a-z`, `0-9`, `.`, `_`, `=`, `-`, and `/`.
|
||||
|
||||
RoomID SHOULD be UUID identifier.
|
Loading…
Reference in New Issue
Block a user