mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-08-05 07:27:52 +02:00
Compare commits
1 commit
1420a341f7
...
04e8e67d08
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04e8e67d08 |
|
|
@ -1 +0,0 @@
|
||||||
Clarify that clients must avoid producing ambiguous matrix.to URIs. Contributed by @HarHarLinks.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Use the User ID type in OlmPayload and DeviceKeys.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Rename OlmPayload to OlmPlaintext to avoid confusion with Olm message Payload Bytes.
|
|
||||||
|
|
@ -887,22 +887,20 @@ https://matrix.to/#/<identifier>/<extra parameter>?<additional arguments>
|
||||||
|
|
||||||
The identifier may be a room ID, room alias, or user ID. The
|
The identifier may be a room ID, room alias, or user ID. The
|
||||||
extra parameter is only used in the case of permalinks where an event ID
|
extra parameter is only used in the case of permalinks where an event ID
|
||||||
is referenced. The matrix.to URI, when referenced, MUST always start
|
is referenced. The matrix.to URI, when referenced, must always start
|
||||||
with `https://matrix.to/#/` followed by the identifier.
|
with `https://matrix.to/#/` followed by the identifier.
|
||||||
|
|
||||||
The `<additional arguments>` and the preceding question mark are
|
The `<additional arguments>` and the preceding question mark are
|
||||||
OPTIONAL and only apply in certain circumstances, documented below.
|
optional and only apply in certain circumstances, documented below.
|
||||||
|
|
||||||
Clients SHOULD NOT rely on matrix.to URIs falling back to a web server
|
Clients should not rely on matrix.to URIs falling back to a web server
|
||||||
if accessed and instead SHOULD perform some sort of action within the
|
if accessed and instead should perform some sort of action within the
|
||||||
client. For example, if the user were to click on a matrix.to URI for a
|
client. For example, if the user were to click on a matrix.to URI for a
|
||||||
room alias, the client MAY open a view for the user to participate in
|
room alias, the client may open a view for the user to participate in
|
||||||
the room.
|
the room.
|
||||||
|
|
||||||
The components of the matrix.to URI (`<identifier>` and
|
The components of the matrix.to URI (`<identifier>` and
|
||||||
`<extra parameter>`) MUST be percent-encoded as per RFC 3986.
|
`<extra parameter>`) MUST be percent-encoded as per RFC 3986.
|
||||||
Failure to do so will result in downstream software misinterpreting
|
|
||||||
the links as invalid/not turning them into clickable links in UI.
|
|
||||||
|
|
||||||
Examples of matrix.to URIs are:
|
Examples of matrix.to URIs are:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1762,9 +1762,12 @@ Messages with type 1 can only be decrypted with an existing session. If
|
||||||
there is no matching session, the client must treat this as an invalid
|
there is no matching session, the client must treat this as an invalid
|
||||||
message.
|
message.
|
||||||
|
|
||||||
The plaintext corresponding to the "Cipher-Text" in an an [Olm message](/olm-megolm/olm/#normal-messages) is of the form:
|
The plaintext payload is of the form:
|
||||||
|
|
||||||
{{% definition path="api/client-server/definitions/olm_plaintext" %}}
|
{{% definition path="api/client-server/definitions/olm_payload" %}}
|
||||||
|
|
||||||
|
The type and content of the plaintext message event are given in the
|
||||||
|
payload.
|
||||||
|
|
||||||
If a client has multiple sessions established with another device, it
|
If a client has multiple sessions established with another device, it
|
||||||
should use the session from which it last received and successfully
|
should use the session from which it last received and successfully
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,6 @@ properties:
|
||||||
description: |-
|
description: |-
|
||||||
The ID of the user the device belongs to. Must match the user ID used
|
The ID of the user the device belongs to. Must match the user ID used
|
||||||
when logging in.
|
when logging in.
|
||||||
format: mx-user-id
|
|
||||||
pattern: "^@"
|
|
||||||
example: "@alice:example.com"
|
example: "@alice:example.com"
|
||||||
device_id:
|
device_id:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
|
|
||||||
type: object
|
type: object
|
||||||
title: OlmPlaintext
|
title: OlmPayload
|
||||||
description: |-
|
description: |-
|
||||||
The plaintext of an event encrypted using Olm.
|
The plaintext payload of an event encrypted using Olm.
|
||||||
properties:
|
properties:
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -27,13 +27,9 @@ properties:
|
||||||
sender:
|
sender:
|
||||||
type: string
|
type: string
|
||||||
description: The user ID of the event sender.
|
description: The user ID of the event sender.
|
||||||
format: mx-user-id
|
|
||||||
pattern: "^@"
|
|
||||||
recipient:
|
recipient:
|
||||||
type: string
|
type: string
|
||||||
description: The user ID of the intended event recipient.
|
description: The user ID of the intended event recipient.
|
||||||
format: mx-user-id
|
|
||||||
pattern: "^@"
|
|
||||||
recipient_keys:
|
recipient_keys:
|
||||||
description: The recipient's signing keys of the encrypted event.
|
description: The recipient's signing keys of the encrypted event.
|
||||||
$ref: "#/components/schemas/SigningKeys"
|
$ref: "#/components/schemas/SigningKeys"
|
||||||
|
|
@ -18,10 +18,14 @@ accessTokenBearer:
|
||||||
or [login](/client-server-api/#login), using the `Authorization: Bearer` header.
|
or [login](/client-server-api/#login), using the `Authorization: Bearer` header.
|
||||||
|
|
||||||
It can also be the `as_token` of an application service.
|
It can also be the `as_token` of an application service.
|
||||||
|
|
||||||
|
This is the preferred method.
|
||||||
scheme: bearer
|
scheme: bearer
|
||||||
appserviceAccessTokenBearer:
|
appserviceAccessTokenBearer:
|
||||||
type: http
|
type: http
|
||||||
description: |-
|
description: |-
|
||||||
The `as_token` of an application service, using the `Authorization: Bearer`
|
The `as_token` of an application service, using the `Authorization: Bearer`
|
||||||
header.
|
header.
|
||||||
|
|
||||||
|
This is the preferred method.
|
||||||
scheme: bearer
|
scheme: bearer
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,6 @@ accessTokenBearer:
|
||||||
description: |-
|
description: |-
|
||||||
The `access_token` returned by a call to `/register`, using the
|
The `access_token` returned by a call to `/register`, using the
|
||||||
`Authorization: Bearer` header.
|
`Authorization: Bearer` header.
|
||||||
|
|
||||||
|
This is the preferred method.
|
||||||
scheme: bearer
|
scheme: bearer
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ description: |-
|
||||||
[Olm](/client-server-api/#molmv1curve25519-aes-sha2).
|
[Olm](/client-server-api/#molmv1curve25519-aes-sha2).
|
||||||
|
|
||||||
The `sender_device_keys` property in the [Olm
|
The `sender_device_keys` property in the [Olm
|
||||||
plaintext](/client-server-api/#definition-olmplaintext) MUST be
|
plaintext](/client-server-api/#definition-olmpayload) MUST be
|
||||||
populated. Recipients SHOULD ignore `m.room_key_bundle` messages which omit
|
populated. Recipients SHOULD ignore `m.room_key_bundle` messages which omit
|
||||||
them.
|
them.
|
||||||
properties:
|
properties:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue