Fix typos in the spec related to account data (#1243)
This commit is contained in:
parent
58e6900891
commit
e7e376142e
5 changed files with 38 additions and 36 deletions
|
@ -0,0 +1 @@
|
||||||
|
Fix various typos throughout the specification.
|
|
@ -17,10 +17,10 @@ data with the same `type`.
|
||||||
#### Events
|
#### Events
|
||||||
|
|
||||||
The client receives the account data as events in the `account_data`
|
The client receives the account data as events in the `account_data`
|
||||||
sections of a `/sync`.
|
sections of a [`/sync`](#get_matrixclientv3sync) response.
|
||||||
|
|
||||||
These events can also be received in a `/events` response or in the
|
These events can also be received in a `/events` response or in the
|
||||||
`account_data` section of a room in `/sync`. `m.tag` events appearing in
|
`account_data` section of a room in a `/sync` response. `m.tag` events appearing in
|
||||||
`/events` will have a `room_id` with the room the tags are for.
|
`/events` will have a `room_id` with the room the tags are for.
|
||||||
|
|
||||||
#### Client Behaviour
|
#### Client Behaviour
|
||||||
|
|
|
@ -780,7 +780,7 @@ per-device using the APIs below.
|
||||||
##### Push Rules: Events
|
##### Push Rules: Events
|
||||||
|
|
||||||
When a user changes their push rules a `m.push_rules` event is sent to
|
When a user changes their push rules a `m.push_rules` event is sent to
|
||||||
all clients in the `account_data` section of their next `/sync` request.
|
all clients in the `account_data` section of their next [`/sync`](#get_matrixclientv3sync) request.
|
||||||
The content of the event is the current push rules for the user.
|
The content of the event is the current push rules for the user.
|
||||||
|
|
||||||
{{% event event="m.push_rules" %}}
|
{{% event event="m.push_rules" %}}
|
||||||
|
|
|
@ -30,7 +30,7 @@ clients can access, depending on what keys are given to them.
|
||||||
##### Key storage
|
##### Key storage
|
||||||
|
|
||||||
Each key has an ID, and the description of the key is stored in the
|
Each key has an ID, and the description of the key is stored in the
|
||||||
user's account\_data using the event type
|
user's account data using the event type
|
||||||
`m.secret_storage.key.[key ID]`. The contents of the account data for
|
`m.secret_storage.key.[key ID]`. The contents of the account data for
|
||||||
the key will include an `algorithm` property, which indicates the
|
the key will include an `algorithm` property, which indicates the
|
||||||
encryption algorithm used, as well as a `name` property, which is a
|
encryption algorithm used, as well as a `name` property, which is a
|
||||||
|
@ -51,7 +51,7 @@ Other properties depend on the encryption algorithm, and are described
|
||||||
below.
|
below.
|
||||||
|
|
||||||
A key can be marked as the "default" key by setting the user's
|
A key can be marked as the "default" key by setting the user's
|
||||||
account\_data with event type `m.secret_storage.default_key` to an
|
account data with event type `m.secret_storage.default_key` to an
|
||||||
object that has the ID of the key as its `key` property. The default key
|
object that has the ID of the key as its `key` property. The default key
|
||||||
will be used to encrypt all secrets that the user would expect to be
|
will be used to encrypt all secrets that the user would expect to be
|
||||||
available on all their clients. Unless the user specifies otherwise,
|
available on all their clients. Unless the user specifies otherwise,
|
||||||
|
@ -71,8 +71,8 @@ default key.
|
||||||
|
|
||||||
##### Secret storage
|
##### Secret storage
|
||||||
|
|
||||||
Encrypted data is stored in the user's account\_data using the event
|
Encrypted data is stored in the user's account data using the event
|
||||||
type defined by the feature that uses the data. The account\_data will
|
type defined by the feature that uses the data. The account data will
|
||||||
have an `encrypted` property that is a map from key ID to an object. The
|
have an `encrypted` property that is a map from key ID to an object. The
|
||||||
algorithm from the `m.secret_storage.key.[key ID]` data for the given
|
algorithm from the `m.secret_storage.key.[key ID]` data for the given
|
||||||
key defines how the other properties are interpreted, though it's
|
key defines how the other properties are interpreted, though it's
|
||||||
|
|
|
@ -29,11 +29,12 @@ securityDefinitions:
|
||||||
paths:
|
paths:
|
||||||
"/user/{userId}/account_data/{type}":
|
"/user/{userId}/account_data/{type}":
|
||||||
put:
|
put:
|
||||||
summary: Set some account_data for the user.
|
summary: Set some account data for the user.
|
||||||
description: |-
|
description: |-
|
||||||
Set some account_data for the client. This config is only visible to the user
|
Set some account data for the client. This config is only visible to the user
|
||||||
that set the account_data. The config will be synced to clients in the
|
that set the account data. The config will be available to clients through the
|
||||||
top-level `account_data`.
|
top-level `account_data` field in the homeserver response to
|
||||||
|
[/sync](#get_matrixclientv3sync).
|
||||||
operationId: setAccountData
|
operationId: setAccountData
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessToken: []
|
||||||
|
@ -43,7 +44,7 @@ paths:
|
||||||
name: userId
|
name: userId
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The ID of the user to set account_data for. The access token must be
|
The ID of the user to set account data for. The access token must be
|
||||||
authorized to make requests for this user ID.
|
authorized to make requests for this user ID.
|
||||||
x-example: "@alice:example.com"
|
x-example: "@alice:example.com"
|
||||||
- in: path
|
- in: path
|
||||||
|
@ -51,14 +52,14 @@ paths:
|
||||||
name: type
|
name: type
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The event type of the account_data to set. Custom types should be
|
The event type of the account data to set. Custom types should be
|
||||||
namespaced to avoid clashes.
|
namespaced to avoid clashes.
|
||||||
x-example: "org.example.custom.config"
|
x-example: "org.example.custom.config"
|
||||||
- in: body
|
- in: body
|
||||||
name: content
|
name: content
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The content of the account_data
|
The content of the account data.
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
example: {
|
example: {
|
||||||
|
@ -66,7 +67,7 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description:
|
description:
|
||||||
The account_data was successfully added.
|
The account data was successfully added.
|
||||||
examples:
|
examples:
|
||||||
application/json: {}
|
application/json: {}
|
||||||
schema:
|
schema:
|
||||||
|
@ -107,10 +108,10 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
get:
|
get:
|
||||||
summary: Get some account_data for the user.
|
summary: Get some account data for the user.
|
||||||
description: |-
|
description: |-
|
||||||
Get some account_data for the client. This config is only visible to the user
|
Get some account data for the client. This config is only visible to the user
|
||||||
that set the account_data.
|
that set the account data.
|
||||||
operationId: getAccountData
|
operationId: getAccountData
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessToken: []
|
||||||
|
@ -120,7 +121,7 @@ paths:
|
||||||
name: userId
|
name: userId
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The ID of the user to get account_data for. The access token must be
|
The ID of the user to get account data for. The access token must be
|
||||||
authorized to make requests for this user ID.
|
authorized to make requests for this user ID.
|
||||||
x-example: "@alice:example.com"
|
x-example: "@alice:example.com"
|
||||||
- in: path
|
- in: path
|
||||||
|
@ -128,7 +129,7 @@ paths:
|
||||||
name: type
|
name: type
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The event type of the account_data to get. Custom types should be
|
The event type of the account data to get. Custom types should be
|
||||||
namespaced to avoid clashes.
|
namespaced to avoid clashes.
|
||||||
x-example: "org.example.custom.config"
|
x-example: "org.example.custom.config"
|
||||||
responses:
|
responses:
|
||||||
|
@ -157,7 +158,7 @@ paths:
|
||||||
examples:
|
examples:
|
||||||
application/json: {
|
application/json: {
|
||||||
"errcode": "M_NOT_FOUND",
|
"errcode": "M_NOT_FOUND",
|
||||||
"error": "Room account data not found."
|
"error": "Account data not found."
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
$ref: "../client-server/definitions/errors/error.yaml"
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
|
@ -165,11 +166,11 @@ paths:
|
||||||
- User data
|
- User data
|
||||||
"/user/{userId}/rooms/{roomId}/account_data/{type}":
|
"/user/{userId}/rooms/{roomId}/account_data/{type}":
|
||||||
put:
|
put:
|
||||||
summary: Set some account_data for the user that is specific to a room.
|
summary: Set some account data for the user that is specific to a room.
|
||||||
description: |-
|
description: |-
|
||||||
Set some account_data for the client on a given room. This config is only
|
Set some account data for the client on a given room. This config is only
|
||||||
visible to the user that set the account_data. The config will be synced to
|
visible to the user that set the account data. The config will be delivered to
|
||||||
clients in the per-room `account_data`.
|
clients in the per-room entries via [/sync](#get_matrixclientv3sync).
|
||||||
operationId: setAccountDataPerRoom
|
operationId: setAccountDataPerRoom
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessToken: []
|
||||||
|
@ -179,7 +180,7 @@ paths:
|
||||||
name: userId
|
name: userId
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The ID of the user to set account_data for. The access token must be
|
The ID of the user to set account data for. The access token must be
|
||||||
authorized to make requests for this user ID.
|
authorized to make requests for this user ID.
|
||||||
x-example: "@alice:example.com"
|
x-example: "@alice:example.com"
|
||||||
- in: path
|
- in: path
|
||||||
|
@ -187,21 +188,21 @@ paths:
|
||||||
name: roomId
|
name: roomId
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The ID of the room to set account_data on.
|
The ID of the room to set account data on.
|
||||||
x-example: "!726s6s6q:example.com"
|
x-example: "!726s6s6q:example.com"
|
||||||
- in: path
|
- in: path
|
||||||
type: string
|
type: string
|
||||||
name: type
|
name: type
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The event type of the account_data to set. Custom types should be
|
The event type of the account data to set. Custom types should be
|
||||||
namespaced to avoid clashes.
|
namespaced to avoid clashes.
|
||||||
x-example: "org.example.custom.room.config"
|
x-example: "org.example.custom.room.config"
|
||||||
- in: body
|
- in: body
|
||||||
name: content
|
name: content
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The content of the account_data
|
The content of the account data.
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
example: {
|
example: {
|
||||||
|
@ -209,7 +210,7 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description:
|
description:
|
||||||
The account_data was successfully added.
|
The account data was successfully added.
|
||||||
examples:
|
examples:
|
||||||
application/json: {}
|
application/json: {}
|
||||||
schema:
|
schema:
|
||||||
|
@ -251,10 +252,10 @@ paths:
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
get:
|
get:
|
||||||
summary: Get some account_data for the user that is specific to a room.
|
summary: Get some account data for the user that is specific to a room.
|
||||||
description: |-
|
description: |-
|
||||||
Get some account_data for the client on a given room. This config is only
|
Get some account data for the client on a given room. This config is only
|
||||||
visible to the user that set the account_data.
|
visible to the user that set the account data.
|
||||||
operationId: getAccountDataPerRoom
|
operationId: getAccountDataPerRoom
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessToken: []
|
||||||
|
@ -264,7 +265,7 @@ paths:
|
||||||
name: userId
|
name: userId
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The ID of the user to set account_data for. The access token must be
|
The ID of the user to get account data for. The access token must be
|
||||||
authorized to make requests for this user ID.
|
authorized to make requests for this user ID.
|
||||||
x-example: "@alice:example.com"
|
x-example: "@alice:example.com"
|
||||||
- in: path
|
- in: path
|
||||||
|
@ -272,14 +273,14 @@ paths:
|
||||||
name: roomId
|
name: roomId
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The ID of the room to get account_data for.
|
The ID of the room to get account data for.
|
||||||
x-example: "!726s6s6q:example.com"
|
x-example: "!726s6s6q:example.com"
|
||||||
- in: path
|
- in: path
|
||||||
type: string
|
type: string
|
||||||
name: type
|
name: type
|
||||||
required: true
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The event type of the account_data to get. Custom types should be
|
The event type of the account data to get. Custom types should be
|
||||||
namespaced to avoid clashes.
|
namespaced to avoid clashes.
|
||||||
x-example: "org.example.custom.room.config"
|
x-example: "org.example.custom.room.config"
|
||||||
responses:
|
responses:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue