plugins-core/permissions/schema.json

45 lines
1.0 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-core/permissions.schema.json",
"title": "permissions",
"description": "Plugin permissions configuration",
"type": "object",
"properties": {
"users": {
"type": "object",
"description": "User's global permissions",
"patternProperties": {
".*": {
"anyOf": [
{ "type": "string" },
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
},
"rooms": {
"type": "object",
"description": "Room specific user permissions",
"patternProperties": {
".*": {
"type": "object",
"patternProperties": {
".*": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"required": ["users", "rooms"]
}