mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-26 16:03:46 +01:00
Merge pull request #246 from matrix-org/markjh/room_filter
Add top level filters for filtering by room id.
This commit is contained in:
commit
f648360f5d
|
|
@ -5,14 +5,14 @@ properties:
|
||||||
not_senders:
|
not_senders:
|
||||||
description: A list of sender IDs to exclude. If this list is absent then no senders
|
description: A list of sender IDs to exclude. If this list is absent then no senders
|
||||||
are excluded. A matching sender will be excluded even if it is listed in the
|
are excluded. A matching sender will be excluded even if it is listed in the
|
||||||
'senders' filter.
|
``'senders'`` filter.
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
type: array
|
type: array
|
||||||
not_types:
|
not_types:
|
||||||
description: A list of event types to exclude. If this list is absent then no
|
description: A list of event types to exclude. If this list is absent then no
|
||||||
event types are excluded. A matching type will be excluded even if it is listed
|
event types are excluded. A matching type will be excluded even if it is listed
|
||||||
in the 'types' filter. A '*' can be used as a wildcard to match any sequence
|
in the ``'types'`` filter. A '*' can be used as a wildcard to match any sequence
|
||||||
of characters.
|
of characters.
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -25,7 +25,7 @@ properties:
|
||||||
type: array
|
type: array
|
||||||
types:
|
types:
|
||||||
description: A list of event types to include. If this list is absent then all
|
description: A list of event types to include. If this list is absent then all
|
||||||
event types are included. A '*' can be used as a wildcard to match any sequence
|
event types are included. A ``'*'`` can be used as a wildcard to match any sequence
|
||||||
of characters.
|
of characters.
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ allOf:
|
||||||
properties:
|
properties:
|
||||||
not_rooms:
|
not_rooms:
|
||||||
description: A list of room IDs to exclude. If this list is absent then no rooms
|
description: A list of room IDs to exclude. If this list is absent then no rooms
|
||||||
are excluded. A matching room will be excluded even if it is listed in the 'rooms'
|
are excluded. A matching room will be excluded even if it is listed in the ``'rooms'``
|
||||||
filter.
|
filter.
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,21 @@ properties:
|
||||||
description: The user account data that isn't associated with rooms to include.
|
description: The user account data that isn't associated with rooms to include.
|
||||||
room:
|
room:
|
||||||
properties:
|
properties:
|
||||||
|
not_rooms:
|
||||||
|
description: A list of room IDs to exclude. If this list is absent then no rooms
|
||||||
|
are excluded. A matching room will be excluded even if it is listed in the ``'rooms'``
|
||||||
|
filter. This filter is applied before the filters in ``ephemeral``,
|
||||||
|
``state``, ``timeline`` or ``account_data``
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
rooms:
|
||||||
|
description: A list of room IDs to include. If this list is absent then all rooms
|
||||||
|
are included. This filter is applied before the filters in ``ephemeral``,
|
||||||
|
``state``, ``timeline`` or ``account_data``
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
ephemeral:
|
ephemeral:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: room_event_filter.yaml
|
- $ref: room_event_filter.yaml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue