diff --git a/config/schema/config.json b/config/schema/config.json index f0eacf3da..5cb580957 100644 --- a/config/schema/config.json +++ b/config/schema/config.json @@ -1402,6 +1402,71 @@ }, "default": [] }, + "inherit_from_word_filter": { + "type": "boolean", + "default": false + }, + "scan_embeds": { + "type": "boolean", + "default": false + } + }, + "required": [ + "type" + ], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "disabled_channels": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" + }, + "immune_roles": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" + }, + "immune_users": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" + }, + "actions": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" + }, + "verbal_warning_reason": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" + }, + "warning_reason": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" + }, + "mute_reason": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" + }, + "common_reason": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" + }, + "mute_duration": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" + }, + "mode": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode" + }, + "type": { + "type": "string", + "const": "embed" + }, + "tokens": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "words": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, "inherit_from_word_filter": { "type": "boolean", "default": false @@ -1411,6 +1476,90 @@ "type" ], "additionalProperties": false + }, + { + "type": "object", + "properties": { + "disabled_channels": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/disabled_channels" + }, + "immune_roles": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_roles" + }, + "immune_users": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/immune_users" + }, + "actions": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/actions" + }, + "verbal_warning_reason": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/verbal_warning_reason" + }, + "warning_reason": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/warning_reason" + }, + "mute_reason": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_reason" + }, + "common_reason": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/common_reason" + }, + "mute_duration": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration" + }, + "mode": { + "$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode" + }, + "type": { + "type": "string", + "const": "EXPERIMENTAL_url_crawl" + }, + "excluded_domains_regex": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "excluded_links": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "default": [] + }, + "excluded_link_regex": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "tokens": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "words": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "inherit_from_word_filter": { + "type": "boolean", + "default": false + } + }, + "required": [ + "type" + ], + "additionalProperties": false, + "description": "Experimental. Use at your own risk." } ] }, diff --git a/config/schema/system.json b/config/schema/system.json index abccb6460..e44413af1 100644 --- a/config/schema/system.json +++ b/config/schema/system.json @@ -92,6 +92,16 @@ "mention_prefix": { "type": "boolean", "default": true + }, + "groups": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": {} } }, "additionalProperties": false, @@ -150,7 +160,7 @@ "format": "date-time" } ], - "default": "2024-01-19T11:29:34.886Z" + "default": "2024-02-16T12:22:21.626Z" } }, "additionalProperties": false,