mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-16 16:34:09 +01:00
Clarify string formats and base64 encoding of /store-invite endpoint
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
0f8508dbf7
commit
295b94ad37
|
|
@ -42,7 +42,7 @@ paths:
|
||||||
(if present) from the request here.
|
(if present) from the request here.
|
||||||
|
|
||||||
Also, the generated ephemeral public key will be listed as valid on
|
Also, the generated ephemeral public key will be listed as valid on
|
||||||
requests to `/_matrix/identity/v2/pubkey/ephemeral/isvalid`.
|
requests to [`/_matrix/identity/v2/pubkey/ephemeral/isvalid`](/identity-service-api/#get_matrixidentityv2pubkeyephemeralisvalid).
|
||||||
|
|
||||||
Currently, invites may only be issued for 3pids of the `email` medium.
|
Currently, invites may only be issued for 3pids of the `email` medium.
|
||||||
|
|
||||||
|
|
@ -70,10 +70,14 @@ paths:
|
||||||
room_id:
|
room_id:
|
||||||
type: string
|
type: string
|
||||||
description: The Matrix room ID to which the user is invited
|
description: The Matrix room ID to which the user is invited
|
||||||
|
format: mx-room-id
|
||||||
|
pattern: "^!"
|
||||||
example: "!something:example.org"
|
example: "!something:example.org"
|
||||||
sender:
|
sender:
|
||||||
type: string
|
type: string
|
||||||
description: The Matrix user ID of the inviting user
|
description: The Matrix user ID of the inviting user
|
||||||
|
format: mx-user-id
|
||||||
|
pattern: "^@"
|
||||||
example: "@bob:example.com"
|
example: "@bob:example.com"
|
||||||
room_alias:
|
room_alias:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -81,12 +85,16 @@ paths:
|
||||||
The Matrix room alias for the room to which the user is
|
The Matrix room alias for the room to which the user is
|
||||||
invited. This should be retrieved from the `m.room.canonical_alias`
|
invited. This should be retrieved from the `m.room.canonical_alias`
|
||||||
state event.
|
state event.
|
||||||
|
format: mx-room-alias
|
||||||
|
pattern: "^#"
|
||||||
example: "#somewhere:example.org"
|
example: "#somewhere:example.org"
|
||||||
room_avatar_url:
|
room_avatar_url:
|
||||||
type: string
|
type: string
|
||||||
description: |-
|
description: |-
|
||||||
The Content URI for the room to which the user is invited. This should
|
The Content URI for the room to which the user is invited. This should
|
||||||
be retrieved from the `m.room.avatar` state event.
|
be retrieved from the `m.room.avatar` state event.
|
||||||
|
format: mx-mxc-uri
|
||||||
|
pattern: "^mxc:\\/\\/"
|
||||||
example: mxc://example.org/s0meM3dia
|
example: mxc://example.org/s0meM3dia
|
||||||
room_join_rules:
|
room_join_rules:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -108,6 +116,8 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
description: The Content URI for the avatar of the user ID initiating the
|
description: The Content URI for the avatar of the user ID initiating the
|
||||||
invite.
|
invite.
|
||||||
|
format: mx-mxc-uri
|
||||||
|
pattern: "^mxc:\\/\\/"
|
||||||
example: mxc://example.org/an0th3rM3dia
|
example: mxc://example.org/an0th3rM3dia
|
||||||
room_type:
|
room_type:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -146,7 +156,7 @@ paths:
|
||||||
public_key:
|
public_key:
|
||||||
type: string
|
type: string
|
||||||
description: |
|
description: |
|
||||||
The public key, encoded using [unpadded Base64](/appendices/#unpadded-base64).
|
The public key, encoded using standard or URL-safe [unpadded Base64](/appendices/#unpadded-base64).
|
||||||
key_validity_url:
|
key_validity_url:
|
||||||
type: string
|
type: string
|
||||||
description: |
|
description: |
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,11 @@ mx-room-id:
|
||||||
url: appendices#room-ids
|
url: appendices#room-ids
|
||||||
# regex: "^!"
|
# regex: "^!"
|
||||||
|
|
||||||
|
mx-room-alias:
|
||||||
|
title: Room Alias
|
||||||
|
url: appendices#room-aliases
|
||||||
|
# regex: "^#"
|
||||||
|
|
||||||
mx-server-name:
|
mx-server-name:
|
||||||
title: Server Name
|
title: Server Name
|
||||||
url: appendices#server-name
|
url: appendices#server-name
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue