|
|
@ -16,16 +16,20 @@ title: PushCondition
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
properties:
|
|
|
|
kind:
|
|
|
|
kind:
|
|
|
|
enum:
|
|
|
|
|
|
|
|
- event_match
|
|
|
|
|
|
|
|
- contains_display_name
|
|
|
|
|
|
|
|
- room_member_count
|
|
|
|
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The kind of condition to apply. See `conditions <#conditions>`_ for
|
|
|
|
|
|
|
|
more information on the allowed kinds and how they work.
|
|
|
|
key:
|
|
|
|
key:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
Required for ``event_match`` conditions. The dot-separated field of the
|
|
|
|
Required for ``event_match`` conditions. The dot-separated field of the
|
|
|
|
event to match.
|
|
|
|
event to match.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Required for ``sender_notification_permission`` conditions. The field in
|
|
|
|
|
|
|
|
the power level event the user needs a minimum power level for. Fields
|
|
|
|
|
|
|
|
must be specified under the ``notifications`` property in the power level
|
|
|
|
|
|
|
|
event's ``content``.
|
|
|
|
x-example: content.body
|
|
|
|
x-example: content.body
|
|
|
|
pattern:
|
|
|
|
pattern:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|