18 lines
967 B
JSON
18 lines
967 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://trixie.local/contracts/v1/plugin-manifest.json",
|
|
"title": "Trixie WebAssembly plugin manifest",
|
|
"type": "object",
|
|
"required": ["id", "name", "version", "api_version", "permissions", "entrypoint"],
|
|
"properties": {
|
|
"id": { "type": "string", "pattern": "^[a-z0-9.-]+$", "maxLength": 64 },
|
|
"name": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
"version": { "type": "string", "minLength": 1, "maxLength": 64 },
|
|
"api_version": { "type": "string", "maxLength": 32 },
|
|
"permissions": { "type": "array", "maxItems": 16, "items": { "enum": ["chat.read", "chat.send", "overlay.emit", "twitch.read", "twitch.manage"] } },
|
|
"required_secrets": { "type": "array", "maxItems": 16, "items": { "type": "string", "pattern": "^[A-Za-z0-9_]{1,100}$" } },
|
|
"entrypoint": { "type": "string", "minLength": 1, "maxLength": 64 }
|
|
},
|
|
"additionalProperties": false
|
|
}
|