plugin configuration schemas

This commit is contained in:
Evert Prants 2021-10-02 15:10:13 +03:00
parent 08cce57ab6
commit d421913104
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
9 changed files with 222 additions and 0 deletions

43
calendar/schema.json Normal file
View File

@ -0,0 +1,43 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/calendar.schema.json",
"title": "calendar",
"description": "calendar plugin configuration",
"type": "object",
"properties": {
"calendars": {
"type": "array",
"description": "List of all registered protocols",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Calendar name"
},
"url": {
"type": "string",
"description": "iCal URL"
},
"rooms": {
"type": "array",
"description": "Rooms this calendar is accessible from",
"items": {
"type": "string"
}
},
"timeFrame": {
"type": "integer",
"description": "Time frame in seconds to display events from"
}
},
"required": ["name", "url", "rooms", "timeFrame"]
}
},
"updateInterval": {
"type": "string",
"description": "CRON expression for update task"
}
},
"required": ["calendars", "updateInterval"]
}

12
debug/schema.json Normal file
View File

@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/debug.schema.json",
"title": "debug",
"description": "debug plugin configuration",
"type": "object",
"properties": {
"allowShell": {
"type": "boolean"
}
}
}

22
diction/schema.json Normal file
View File

@ -0,0 +1,22 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/diction.schema.json",
"title": "diction",
"description": "diction plugin configuration",
"type": "object",
"properties": {
"wordnik": {
"type": "string",
"description": "Wordnik API token"
},
"cooldown": {
"type": "integer",
"description": "Allowed time in seconds between requests"
},
"limit": {
"type": "integer",
"description": "Number of results to fetch"
}
},
"required": ["wordnik"]
}

24
fun/schema.json Normal file
View File

@ -0,0 +1,24 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/fun.schema.json",
"title": "fun",
"description": "fun plugin configuration",
"type": "object",
"properties": {
"simpleReplies": {
"type": "array",
"items": {
"type": "object",
"patternProperties": {
".*": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
"required": ["simpleReplies"]
}

39
gamedig/schema.json Normal file
View File

@ -0,0 +1,39 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/gamedig.schema.json",
"title": "gamedig",
"description": "gamedig plugin configuration",
"type": "object",
"properties": {
"games": {
"type": "array",
"description": "List of games",
"items": {
"type": "object",
"properties": {
"game": {
"type": "string",
"description": "gamedig game name"
},
"host": {
"type": "string",
"description": "Game server host"
},
"port": {
"type": "integer",
"description": "Game server port"
},
"rooms": {
"type": "array",
"description": "Rooms to register command in",
"items": {
"type": "string"
}
}
},
"required": ["game", "host", "rooms"]
}
}
},
"required": ["games"]
}

14
timezone/schema.json Normal file
View File

@ -0,0 +1,14 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/timezone.schema.json",
"title": "timezone",
"description": "timezone plugin configuration",
"type": "object",
"properties": {
"timezone": {
"description": "Default time zone",
"type": "string"
}
},
"required": ["timezone"]
}

26
url-twitter/schema.json Normal file
View File

@ -0,0 +1,26 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/url-twitter.schema.json",
"title": "url-twitter",
"description": "url-twitter plugin configuration",
"type": "object",
"properties": {
"consumer_key": {
"type": "string",
"description": "Twitter Consumer Key"
},
"consumer_secret": {
"type": "string",
"description": "Twitter Consumer Secret"
},
"access_token_key": {
"type": "string",
"description": "Twitter Access Token Key"
},
"access_token_secret": {
"type": "string",
"description": "Twitter Access Token Secret"
}
},
"required": ["consumer_key", "consumer_secret", "access_token_key", "access_token_secret"]
}

24
urlreply/schema.json Normal file
View File

@ -0,0 +1,24 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/urlreply.schema.json",
"title": "urlreply",
"description": "urlreply plugin configuration",
"type": "object",
"properties": {
"tokens": {
"type": "object",
"description": "Tokens for services",
"properties": {
"google": {
"type": "string",
"description": "Google API token"
},
"soundcloud": {
"type": "string",
"description": "Soundcloud API token"
}
}
}
},
"required": ["tokens"]
}

18
utility/schema.json Normal file
View File

@ -0,0 +1,18 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://squeebot.lunasqu.ee/pkg/plugins-evert/utility.schema.json",
"title": "utility",
"description": "utility plugin configuration",
"type": "object",
"properties": {
"ipfsGateway": {
"type": "string",
"description": "IPFS gateway"
},
"randomMax": {
"type": "integer",
"description": "Max number of allowed random numbers"
}
},
"required": ["ipfsGateway", "randomMax"]
}