mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-01 14:44:09 +02:00
Compare commits
5 commits
46a0f40e36
...
bdb0a5e6f3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bdb0a5e6f3 | ||
|
|
8ebf4a4789 | ||
|
|
935c23485b | ||
|
|
70f6749c92 | ||
|
|
1583a12cec |
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify how to use `state_after` ahead of declaring full support for its spec version.
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
`device_one_time_keys_count` is only optional if no unclaimed one-time keys exist.
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify what the minimum_valid_until_ts field means when it is set in key queries.
|
||||||
|
|
@ -1775,17 +1775,16 @@ property is required for inclusion, though previous versions of the
|
||||||
specification did not have it. In addition to `/versions`, this can be
|
specification did not have it. In addition to `/versions`, this can be
|
||||||
a way to identify the server's support for fallback keys.
|
a way to identify the server's support for fallback keys.
|
||||||
|
|
||||||
|
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
|----------------------------------|--------------------|------------------------------------------------------------------------------------------------------------------------|
|
|----------------------------------|-------------------|------------------------------------------------------------------------------------------------------------------------|
|
||||||
| device_lists | DeviceLists | Optional. Information on e2e device updates. Note: only present on an incremental sync. |
|
| device_lists | DeviceLists | Optional. Information on e2e device updates. Note: only present on an incremental sync. |
|
||||||
| device_one_time_keys_count | {string: integer} | Optional. For each key algorithm, the number of unclaimed one-time keys currently held on the server for this device. If an algorithm is unlisted, the count for that algorithm is assumed to be zero. If this entire parameter is missing, the count for all algorithms is assumed to be zero. |
|
| device_one_time_keys_count | {string: integer} | **Required if any unclaimed one-time keys exist.** For each key algorithm, the number of unclaimed one-time keys currently held on the server for this device. If the count for an algorithm is zero, servers MAY omit that algorithm. If the count for all algorithms is zero, servers MAY omit this parameter entirely. |
|
||||||
| device_unused_fallback_key_types | [string] | **Required.** The unused fallback key algorithms. |
|
| device_unused_fallback_key_types | [string] | **Required.** The unused fallback key algorithms. |
|
||||||
|
|
||||||
`DeviceLists`
|
`DeviceLists`
|
||||||
|
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
|------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|-----------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| changed | [string] | List of users who have updated their device identity or cross-signing keys, or who now share an encrypted room with the client since the previous sync response. |
|
| changed | [string] | List of users who have updated their device identity or cross-signing keys, or who now share an encrypted room with the client since the previous sync response. |
|
||||||
| left | [string] | List of users with whom we do not share any encrypted rooms anymore since the previous sync response. |
|
| left | [string] | List of users with whom we do not share any encrypted rooms anymore since the previous sync response. |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,10 +133,15 @@ paths:
|
||||||
sync and the **start** of the timeline in `state` and MUST omit
|
sync and the **start** of the timeline in `state` and MUST omit
|
||||||
`state_after`.
|
`state_after`.
|
||||||
|
|
||||||
Even if this is set to `true`, clients MUST update their local state
|
Servers MAY implement this parameter ahead of declaring support for
|
||||||
with events in `state` and `timeline` if `state_after` is missing in
|
the version of the spec in which it was introduced. Consequently,
|
||||||
the response, for compatibility with servers that don't support this
|
clients MAY set this parameter to `true` regardless of the
|
||||||
parameter.
|
[`/versions`](/client-server-api/#get_matrixclientversions) response.
|
||||||
|
If they do, they can infer whether the server actually supports this
|
||||||
|
parameter from the presence of `state_after` in the response. If
|
||||||
|
`state_after` is missing, clients MUST behave as if they had not
|
||||||
|
specified the parameter and update their local state with events
|
||||||
|
in `state` and `timeline`.
|
||||||
|
|
||||||
By default, this is `false`.
|
By default, this is `false`.
|
||||||
example: false
|
example: false
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ paths:
|
||||||
- in: query
|
- in: query
|
||||||
name: minimum_valid_until_ts
|
name: minimum_valid_until_ts
|
||||||
description: |-
|
description: |-
|
||||||
A millisecond POSIX timestamp in milliseconds indicating when the returned
|
A millisecond POSIX timestamp. The returned keys MUST be valid
|
||||||
certificates will need to be valid until to be useful to the requesting server.
|
until at least this timestamp.
|
||||||
|
|
||||||
If not supplied, the current time as determined by the notary server is used.
|
If not supplied, the current time as determined by the notary server is used.
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -98,9 +98,8 @@ paths:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
description: |-
|
description: |-
|
||||||
A millisecond POSIX timestamp in milliseconds indicating when
|
A millisecond POSIX timestamp. The returned keys
|
||||||
the returned certificates will need to be valid until to be
|
MUST be valid until at least this timestamp.
|
||||||
useful to the requesting server.
|
|
||||||
|
|
||||||
If not supplied, the current time as determined by the notary
|
If not supplied, the current time as determined by the notary
|
||||||
server is used.
|
server is used.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue