Fix rendering of m.receipt event in Client-Server API (#1637)

... and other improvements

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
Kévin Commaille 2023-09-27 14:42:14 +02:00 committed by GitHub
parent 5672bdbab7
commit e40d9ca186
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 184 additions and 69 deletions

View file

@ -41,7 +41,6 @@ properties:
type: string
example: "mxc://example.org/aBcDeFgH"
field_types:
title: Field Types
description: |-
The type definitions for the fields defined in the `user_fields` and
`location_fields`. Each entry in those arrays MUST have an entry here. The

View file

@ -150,7 +150,6 @@ paths:
description: |-
Publishes cross-signing signatures for the user.
The request body is a map from user ID to key ID to signed JSON object.
The signed JSON object must match the key previously uploaded or
retrieved for the given key ID, with the exception of the `signatures`
property, which contains the new signature(s) to add.
@ -162,7 +161,8 @@ paths:
application/json:
schema:
type: object
title: Signatures
description: |-
A map of user ID to a map of key ID to signed JSON object.
additionalProperties:
type: object
additionalProperties:

View file

@ -11,10 +11,12 @@ properties:
content:
additionalProperties:
type: array
title: User ID
items:
type: string
type: object
description: |-
The mapping of user ID to a list of room IDs of the 'direct' rooms for
that user ID.
type:
enum:
- m.direct

View file

@ -10,12 +10,12 @@ properties:
properties:
ignored_users:
type: object
title: "Ignored users"
description: "The map of users to ignore"
description: |-
The map of users to ignore. This is a mapping of user ID to empty
object.
patternProperties:
"^@":
type: "object"
title: "Ignored User"
description: "An empty object for future enhancement"
x-pattern: "$USER_ID"
required:

View file

@ -9,22 +9,24 @@ allOf:
properties:
content:
type: object
description: |-
The mapping of event ID to a collection of receipts for this
event ID. The event ID is the ID of the event being acknowledged
and *not* an ID for the receipt itself.
patternProperties:
"^\\$":
type: object
x-pattern: "$EVENT_ID"
title: Receipts
title: Event Receipts
description: |-
The mapping of event ID to a collection of receipts for this
event ID. The event ID is the ID of the event being acknowledged
and *not* an ID for the receipt itself.
The collection of receipts for this event ID.
properties:
"m.read":
type: object
title: Users
description: |-
A collection of users who have sent `m.read` receipts for
this event.
this event. The string key is the user ID the receipt
belongs to.
patternProperties:
"^@": &receiptUserMap
type: object
@ -48,7 +50,6 @@ properties:
(default).
"m.read.private":
type: object
title: Own User
description: |-
Similar to `m.read`, the users who have sent `m.read.private`
receipts for this event. Due to the nature of private read