0
0
Fork 0
matrix-doc/specification/appendices/threepids.rst

49 lines
2.1 KiB
ReStructuredText
Raw Permalink Normal View History

.. Copyright 2017 Kamax.io
..
.. Licensed under the Apache License, Version 2.0 (the "License");
.. you may not use this file except in compliance with the License.
.. You may obtain a copy of the License at
..
.. http://www.apache.org/licenses/LICENSE-2.0
..
.. Unless required by applicable law or agreed to in writing, software
.. distributed under the License is distributed on an "AS IS" BASIS,
.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
.. See the License for the specific language governing permissions and
.. limitations under the License.
3PID Types
----------
Third Party Identifiers (3PIDs) represent identifiers on other namespaces that
2017-11-14 15:11:30 +00:00
might be associated with a particular person. They comprise a tuple of ``medium``
2017-11-14 15:12:30 +00:00
which is a string that identifies the namespace in which the identifier exists,
2017-11-14 15:11:30 +00:00
and an ``address``: a string representing the identifier in that namespace. This
2017-11-14 15:31:02 +00:00
must be a canonical form of the identifier, *i.e.* if multiple strings could
represent the same identifier, only one of these strings must be used in a 3PID
address, in a well-defined manner.
2017-11-14 15:11:30 +00:00
For example, for e-mail, the ``medium`` is 'email' and the ``address`` would be the
2017-11-14 15:31:02 +00:00
email address, *e.g.* the string ``bob@example.com``. Since domain resolution is
2017-11-14 15:39:25 +00:00
case-insensitive, the email address ``bob@Example.com`` is also has the 3PID address
of ``bob@example.com`` (without the capital 'e') rather than ``bob@Example.com``.
The namespaces defined by this specification are listed below. More namespaces
may be defined in future versions of this specification.
E-Mail
~~~~~~
2017-11-14 15:11:30 +00:00
Medium: ``email``
2017-11-14 15:11:30 +00:00
Represents E-Mail addresses. The ``address`` is the raw email address in
2017-11-14 15:31:02 +00:00
``user@domain`` form with the domain in lowercase. It must not contain other text
such as real name, angle brackets or a mailto: prefix.
PSTN Phone numbers
~~~~~~~~~~~~~~~~~~
2017-11-14 15:11:30 +00:00
Medium: ``msisdn``
Represents telephone numbers on the public switched telephone network. The
2017-11-14 15:11:30 +00:00
``address`` is the telephone number represented as a MSISDN (Mobile Station
International Subscriber Directory Number) as defined by the E.164 numbering
plan. Note that MSISDNs do not include a leading '+'.