mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-02 07:04:09 +02:00
Compare commits
8 commits
0f84add695
...
9ac91f6e21
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ac91f6e21 | ||
|
|
205fa06076 | ||
|
|
2a8a6d7833 | ||
|
|
b6a127b5cb | ||
|
|
8cb0b3e7f6 | ||
|
|
bf08e68af7 | ||
|
|
82e7b625e0 | ||
|
|
e7abc7cf41 |
|
|
@ -0,0 +1 @@
|
||||||
|
Add example to each endpoint when the capability is not available.
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
In room versions 8 through 12, clarify that "sufficient permission to invite users" on restricted joins also includes being a joined member of the room.
|
||||||
|
|
@ -74,7 +74,7 @@ The rules are as follows:
|
||||||
1. If membership state is `join` or `invite`, allow.
|
1. If membership state is `join` or `invite`, allow.
|
||||||
2. If the `join_authorised_via_users_server` key in `content`
|
2. If the `join_authorised_via_users_server` key in `content`
|
||||||
is not a user with sufficient permission to invite other
|
is not a user with sufficient permission to invite other
|
||||||
users, reject.
|
users or is not a joined member of the room, reject.
|
||||||
3. Otherwise, allow.
|
3. Otherwise, allow.
|
||||||
6. If the `join_rule` is `public`, allow.
|
6. If the `join_rule` is `public`, allow.
|
||||||
7. Otherwise, reject.
|
7. Otherwise, reject.
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ The rules are as follows:
|
||||||
1. If membership state is `join` or `invite`, allow.
|
1. If membership state is `join` or `invite`, allow.
|
||||||
2. If the `join_authorised_via_users_server` key in `content`
|
2. If the `join_authorised_via_users_server` key in `content`
|
||||||
is not a user with sufficient permission to invite other
|
is not a user with sufficient permission to invite other
|
||||||
users, reject.
|
users or is not a joined member of the room, reject.
|
||||||
3. Otherwise, allow.
|
3. Otherwise, allow.
|
||||||
6. If the `join_rule` is `public`, allow.
|
6. If the `join_rule` is `public`, allow.
|
||||||
7. Otherwise, reject.
|
7. Otherwise, reject.
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ The rules are as follows:
|
||||||
1. If membership state is `join` or `invite`, allow.
|
1. If membership state is `join` or `invite`, allow.
|
||||||
2. If the `join_authorised_via_users_server` key in `content`
|
2. If the `join_authorised_via_users_server` key in `content`
|
||||||
is not a user with sufficient permission to invite other
|
is not a user with sufficient permission to invite other
|
||||||
users, reject.
|
users or is not a joined member of the room, reject.
|
||||||
3. Otherwise, allow.
|
3. Otherwise, allow.
|
||||||
6. If the `join_rule` is `public`, allow.
|
6. If the `join_rule` is `public`, allow.
|
||||||
7. Otherwise, reject.
|
7. Otherwise, reject.
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ The rules are as follows:
|
||||||
1. If membership state is `join` or `invite`, allow.
|
1. If membership state is `join` or `invite`, allow.
|
||||||
2. If the `join_authorised_via_users_server` key in `content`
|
2. If the `join_authorised_via_users_server` key in `content`
|
||||||
is not a user with sufficient permission to invite other
|
is not a user with sufficient permission to invite other
|
||||||
users, reject.
|
users or is not a joined member of the room, reject.
|
||||||
3. Otherwise, allow.
|
3. Otherwise, allow.
|
||||||
6. If the `join_rule` is `public`, allow.
|
6. If the `join_rule` is `public`, allow.
|
||||||
7. Otherwise, reject.
|
7. Otherwise, reject.
|
||||||
|
|
|
||||||
|
|
@ -176,6 +176,18 @@ paths:
|
||||||
value: {
|
value: {
|
||||||
"submit_url": "https://example.org/path/to/submitToken"
|
"submit_url": "https://example.org/path/to/submitToken"
|
||||||
}
|
}
|
||||||
|
"400":
|
||||||
|
description: The 3PID changes capability is not available.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
response:
|
||||||
|
value: {
|
||||||
|
"errcode": "M_FORBIDDEN",
|
||||||
|
"error": "3PID changes are disabled on this server."
|
||||||
|
}
|
||||||
"403":
|
"403":
|
||||||
description: The credentials could not be verified with the identity server.
|
description: The credentials could not be verified with the identity server.
|
||||||
content:
|
content:
|
||||||
|
|
@ -244,6 +256,18 @@ paths:
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {}
|
value: {}
|
||||||
|
"400":
|
||||||
|
description: The 3PID changes capability is not available.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
response:
|
||||||
|
value: {
|
||||||
|
"errcode": "M_FORBIDDEN",
|
||||||
|
"error": "3PID changes are disabled on this server."
|
||||||
|
}
|
||||||
"401":
|
"401":
|
||||||
description: The homeserver requires additional authentication information.
|
description: The homeserver requires additional authentication information.
|
||||||
content:
|
content:
|
||||||
|
|
@ -389,6 +413,18 @@ paths:
|
||||||
example: success
|
example: success
|
||||||
required:
|
required:
|
||||||
- id_server_unbind_result
|
- id_server_unbind_result
|
||||||
|
"400":
|
||||||
|
description: The 3PID changes capability is not available.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
response:
|
||||||
|
value: {
|
||||||
|
"errcode": "M_FORBIDDEN",
|
||||||
|
"error": "3PID changes are disabled on this server."
|
||||||
|
}
|
||||||
tags:
|
tags:
|
||||||
- Account management
|
- Account management
|
||||||
/account/3pid/unbind:
|
/account/3pid/unbind:
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,18 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/auth_response.yaml
|
$ref: definitions/auth_response.yaml
|
||||||
|
"404":
|
||||||
|
description: The get login token capability is not available.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
response:
|
||||||
|
value: {
|
||||||
|
"errcode": "M_UNRECOGNIZED",
|
||||||
|
"error": "The get login token capability is not available."
|
||||||
|
}
|
||||||
"429":
|
"429":
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
content:
|
content:
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,18 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: definitions/auth_response.yaml
|
$ref: definitions/auth_response.yaml
|
||||||
|
"403":
|
||||||
|
description: The password change capability is not available.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
response:
|
||||||
|
value: {
|
||||||
|
"errcode": "M_FORBIDDEN",
|
||||||
|
"error": "Password change is disabled."
|
||||||
|
}
|
||||||
"429":
|
"429":
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
content:
|
content:
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,12 @@ paths:
|
||||||
"errcode": "M_INVALID_PARAM",
|
"errcode": "M_INVALID_PARAM",
|
||||||
"error": "Invalid profile key.",
|
"error": "Invalid profile key.",
|
||||||
}
|
}
|
||||||
|
capability_disabled:
|
||||||
|
value:
|
||||||
|
{
|
||||||
|
"errcode": "M_FORBIDDEN",
|
||||||
|
"error": "Profile modification is disabled on this homeserver.",
|
||||||
|
}
|
||||||
"403":
|
"403":
|
||||||
description: The server is unwilling to perform the operation, either
|
description: The server is unwilling to perform the operation, either
|
||||||
due to insufficient permissions or because profile modifications
|
due to insufficient permissions or because profile modifications
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue