Skip to content

Commit

Permalink
chore: update config schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-designer committed Feb 16, 2024
1 parent be925da commit 0baa70f
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 1 deletion.
149 changes: 149 additions & 0 deletions config/schema/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."
}
]
},
Expand Down
12 changes: 11 additions & 1 deletion config/schema/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@
"mention_prefix": {
"type": "boolean",
"default": true
},
"groups": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"default": {}
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -150,7 +160,7 @@
"format": "date-time"
}
],
"default": "2024-01-19T11:29:34.886Z"
"default": "2024-02-16T12:22:21.626Z"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit 0baa70f

Please sign in to comment.