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 Aug 22, 2023
1 parent 348b338 commit e7bd112
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 0 deletions.
174 changes: 174 additions & 0 deletions config/schema/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,180 @@
}
},
"additionalProperties": false
},
"file_filter": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"disabled_channels": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role"
},
"default": []
},
"blocked_hashes": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": {}
}
},
"additionalProperties": false
},
"message_rules": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"rules": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "blocked_domain"
},
"scan_links_only": {
"type": "boolean",
"default": false
},
"actions": {
"type": "array",
"items": {
"type": "string",
"enum": [
"delete",
"verbal_warn",
"warn",
"mute",
"clear"
]
},
"default": []
},
"verbal_warning_reason": {
"type": "string"
},
"warning_reason": {
"type": "string"
},
"mute_reason": {
"type": "string"
},
"common_reason": {
"type": "string"
},
"mute_duration": {
"type": "integer",
"default": -1
},
"data": {
"type": "array",
"items": {
"type": "string"
},
"default": []
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "blocked_mime_type"
},
"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"
},
"data": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/data"
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "blocked_file_extension"
},
"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"
},
"data": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/data"
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
},
"default": []
},
"global_disabled_channels": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/permissions/properties/mod_role"
},
"default": []
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
5 changes: 5 additions & 0 deletions config/schema/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"Streaming",
"Listening",
"Watching",
"Custom",
"Competing"
]
}
Expand All @@ -96,6 +97,10 @@
},
"additionalProperties": false,
"default": {}
},
"enable_file_filter": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false,
Expand Down

0 comments on commit e7bd112

Please sign in to comment.