Add plugin lifecycle contracts
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"$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"] } },
|
||||
"entrypoint": { "type": "string", "minLength": 1, "maxLength": 64 }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user