add initial protocol docs and schemas

This commit is contained in:
姚章浩
2026-06-18 16:55:47 +08:00
parent 1c80224a96
commit 40e184cc6c
6 changed files with 58 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
{
"title": "AI Ball Call Script Schema",
"type": "object",
"required": ["content_id", "title", "duration_ms", "actions"],
"properties": {
"content_id": { "type": "string" },
"title": { "type": "string" },
"duration_ms": { "type": "integer" },
"actions": {
"type": "array",
"items": {
"type": "object",
"required": ["time_ms", "type", "value"],
"properties": {
"time_ms": { "type": "integer" },
"type": { "type": "string" },
"value": { "type": "string" },
"duration_ms": { "type": "integer" },
"intensity": { "type": "number" },
"silent_alt": { "type": "string" }
}
}
}
}
}
+21
View File
@@ -0,0 +1,21 @@
{
"title": "AI Ball Resource Pack Schema",
"type": "object",
"required": ["pack_id", "version", "resources"],
"properties": {
"pack_id": { "type": "string" },
"version": { "type": "string" },
"resources": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "type", "path"],
"properties": {
"id": { "type": "string" },
"type": { "type": "string" },
"path": { "type": "string" }
}
}
}
}
}