mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-01 17:24:10 +01:00
Add optional profile info and state in search response
This commit is contained in:
parent
373c6c8270
commit
46870da57d
|
|
@ -100,6 +100,19 @@ paths:
|
||||||
description: |-
|
description: |-
|
||||||
How many events after the result are
|
How many events after the result are
|
||||||
returned.
|
returned.
|
||||||
|
include_profile:
|
||||||
|
type: boolean
|
||||||
|
title: "Return profile information"
|
||||||
|
description: |-
|
||||||
|
Requests that the server returns the
|
||||||
|
historic profile information for the users
|
||||||
|
that sent the events that were returned.
|
||||||
|
include_state:
|
||||||
|
type: boolean
|
||||||
|
title: Include current state
|
||||||
|
description: |-
|
||||||
|
Requests the server return the current state for
|
||||||
|
each room returned.
|
||||||
groupings:
|
groupings:
|
||||||
type: object
|
type: object
|
||||||
title: Groupings
|
title: Groupings
|
||||||
|
|
@ -181,6 +194,22 @@ paths:
|
||||||
title: End Token
|
title: End Token
|
||||||
description: |-
|
description: |-
|
||||||
Pagination token for the end of the chunk
|
Pagination token for the end of the chunk
|
||||||
|
profile_info:
|
||||||
|
type: object
|
||||||
|
title: Profile Information
|
||||||
|
description: |-
|
||||||
|
The historic profile information of the
|
||||||
|
users that sent the events returned.
|
||||||
|
additionalProperties:
|
||||||
|
type: object
|
||||||
|
title: User Profile
|
||||||
|
properties:
|
||||||
|
displayname:
|
||||||
|
type: string
|
||||||
|
title: Display name
|
||||||
|
avatar_url:
|
||||||
|
type: string
|
||||||
|
title: Avatar Url
|
||||||
events_before:
|
events_before:
|
||||||
type: array
|
type: array
|
||||||
title: Events Before
|
title: Events Before
|
||||||
|
|
@ -199,6 +228,17 @@ paths:
|
||||||
title: Event
|
title: Event
|
||||||
allOf:
|
allOf:
|
||||||
- "$ref": "core-event-schema/room_event.json"
|
- "$ref": "core-event-schema/room_event.json"
|
||||||
|
state:
|
||||||
|
type: object
|
||||||
|
title: Current state
|
||||||
|
additionalProperties:
|
||||||
|
type: array
|
||||||
|
title: Room State
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
title: Event
|
||||||
|
allOf:
|
||||||
|
- "$ref": "core-event-schema/room_event.json"
|
||||||
groups:
|
groups:
|
||||||
type: object
|
type: object
|
||||||
title: Groups
|
title: Groups
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue