|
|
@ -262,7 +262,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: kind
|
|
|
|
name: kind
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: room
|
|
|
|
x-example: content
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The kind of rule
|
|
|
|
The kind of rule
|
|
|
@ -270,7 +270,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: ruleId
|
|
|
|
name: ruleId
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "#spam:example.com"
|
|
|
|
x-example: "nocake"
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The identifier for the rule.
|
|
|
|
The identifier for the rule.
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
@ -284,13 +284,13 @@ paths:
|
|
|
|
"actions": [
|
|
|
|
"actions": [
|
|
|
|
"dont_notify"
|
|
|
|
"dont_notify"
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"rule_id": "#spam:matrix.org",
|
|
|
|
"pattern": "cake*lie",
|
|
|
|
|
|
|
|
"rule_id": "nocake",
|
|
|
|
"enabled": true
|
|
|
|
"enabled": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
description: The push rule.
|
|
|
|
description: The push rule.
|
|
|
|
title: PushRule
|
|
|
|
|
|
|
|
allOf: [
|
|
|
|
allOf: [
|
|
|
|
"$ref": "definitions/push_rule.yaml"
|
|
|
|
"$ref": "definitions/push_rule.yaml"
|
|
|
|
]
|
|
|
|
]
|
|
|
@ -314,7 +314,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: kind
|
|
|
|
name: kind
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: room
|
|
|
|
x-example: content
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The kind of rule
|
|
|
|
The kind of rule
|
|
|
@ -322,7 +322,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: ruleId
|
|
|
|
name: ruleId
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "#spam:example.com"
|
|
|
|
x-example: "nocake"
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The identifier for the rule.
|
|
|
|
The identifier for the rule.
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
@ -355,7 +355,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: kind
|
|
|
|
name: kind
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: room
|
|
|
|
x-example: content
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The kind of rule
|
|
|
|
The kind of rule
|
|
|
@ -363,7 +363,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: ruleId
|
|
|
|
name: ruleId
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "#spam:example.com"
|
|
|
|
x-example: "nocake"
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The identifier for the rule.
|
|
|
|
The identifier for the rule.
|
|
|
|
- in: query
|
|
|
|
- in: query
|
|
|
@ -411,11 +411,14 @@ paths:
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
The conditions that must hold true for an event in order for a
|
|
|
|
The conditions that must hold true for an event in order for a
|
|
|
|
rule to be applied to an event. A rule with no conditions
|
|
|
|
rule to be applied to an event. A rule with no conditions
|
|
|
|
always matches.
|
|
|
|
always matches. Only applicable to ``underride`` and ``override`` rules.
|
|
|
|
items:
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
title: conditions
|
|
|
|
|
|
|
|
allOf: [ "$ref": "definitions/push_condition.yaml" ]
|
|
|
|
allOf: [ "$ref": "definitions/push_condition.yaml" ]
|
|
|
|
|
|
|
|
pattern:
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
Only applicable to ``content`` rules. The glob-style pattern to match against.
|
|
|
|
required: ["actions"]
|
|
|
|
required: ["actions"]
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
@ -461,7 +464,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: kind
|
|
|
|
name: kind
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: room
|
|
|
|
x-example: cake
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The kind of rule
|
|
|
|
The kind of rule
|
|
|
@ -469,7 +472,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: ruleId
|
|
|
|
name: ruleId
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "#spam:example.com"
|
|
|
|
x-example: nocake
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The identifier for the rule.
|
|
|
|
The identifier for the rule.
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
@ -505,7 +508,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: kind
|
|
|
|
name: kind
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: room
|
|
|
|
x-example: content
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The kind of rule
|
|
|
|
The kind of rule
|
|
|
@ -513,7 +516,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: ruleId
|
|
|
|
name: ruleId
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "#spam:example.com"
|
|
|
|
x-example: "nocake"
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The identifier for the rule.
|
|
|
|
The identifier for the rule.
|
|
|
|
- in: body
|
|
|
|
- in: body
|
|
|
@ -562,7 +565,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: kind
|
|
|
|
name: kind
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: room
|
|
|
|
x-example: content
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
enum: ["override", "underride", "sender", "room", "content"]
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The kind of rule
|
|
|
|
The kind of rule
|
|
|
@ -570,7 +573,7 @@ paths:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
name: ruleId
|
|
|
|
name: ruleId
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "#spam:example.com"
|
|
|
|
x-example: nocake
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
The identifier for the rule.
|
|
|
|
The identifier for the rule.
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|