Open-source, local-first AI agent for real work.
TypeScript agent-toolsai-agentbyokcoding-agentcross-platformdesktop-appdeveloper-toolselectronharnessknowledge-basellmwikilocal-firstmcpplugin-systemprivacy-firstskillstypescriptvettaworkflow-automation
{
"generatedFrom": "@vetta-org/capability-sdk Capability Tokens",
"foundation": [
{
"id": "cap.foundation.vetta.artifact.persist",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"ownerId",
"artifactId",
"destination"
],
"properties": {
"ownerId": {
"minLength": 1,
"type": "string"
},
"artifactId": {
"minLength": 1,
"type": "string"
},
"destination": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"namespace"
],
"properties": {
"type": {
"const": "storage-blob",
"type": "string"
},
"namespace": {
"minLength": 1,
"type": "string"
},
"id": {
"minLength": 1,
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"path"
],
"properties": {
"type": {
"const": "filesystem",
"type": "string"
},
"path": {
"minLength": 1,
"type": "string"
}
}
}
]
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"id",
"url",
"mimeType",
"sizeBytes"
],
"properties": {
"type": {
"const": "storage-blob",
"type": "string"
},
"id": {
"minLength": 1,
"type": "string"
},
"url": {
"minLength": 1,
"type": "string"
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"sizeBytes": {
"minimum": 0,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"path",
"mimeType",
"sizeBytes"
],
"properties": {
"type": {
"const": "filesystem",
"type": "string"
},
"path": {
"minLength": 1,
"type": "string"
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"sizeBytes": {
"minimum": 0,
"type": "integer"
}
}
}
]
},
"version": 1
},
{
"id": "cap.foundation.vetta.artifact.release",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"ownerId",
"artifactId"
],
"properties": {
"ownerId": {
"minLength": 1,
"type": "string"
},
"artifactId": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": false,
"version": 1
},
{
"id": "cap.foundation.vetta.browser.runtime-status",
"inputSchema": {
"type": "object",
"required": [
"namespace"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"phase"
],
"properties": {
"phase": {
"anyOf": [
{
"const": "checking",
"type": "string"
},
{
"const": "missing",
"type": "string"
},
{
"const": "outdated",
"type": "string"
},
{
"const": "browser-missing",
"type": "string"
},
{
"const": "ready",
"type": "string"
},
{
"const": "installing-runtime",
"type": "string"
},
{
"const": "installing-browser",
"type": "string"
},
{
"const": "error",
"type": "string"
}
]
},
"version": {
"type": "string"
},
"message": {
"type": "string"
},
"recentOutput": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.browser.runtime-install",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"step"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"step": {
"anyOf": [
{
"const": "runtime",
"type": "string"
},
{
"const": "browser",
"type": "string"
}
]
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"phase"
],
"properties": {
"phase": {
"anyOf": [
{
"const": "checking",
"type": "string"
},
{
"const": "missing",
"type": "string"
},
{
"const": "outdated",
"type": "string"
},
{
"const": "browser-missing",
"type": "string"
},
{
"const": "ready",
"type": "string"
},
{
"const": "installing-runtime",
"type": "string"
},
{
"const": "installing-browser",
"type": "string"
},
{
"const": "error",
"type": "string"
}
]
},
"version": {
"type": "string"
},
"message": {
"type": "string"
},
"recentOutput": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.browser.session-create",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"allowedHosts"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"source": {
"anyOf": [
{
"const": "managed",
"type": "string"
},
{
"const": "attach",
"type": "string"
}
]
},
"profile": {
"anyOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "ephemeral",
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"const": "persistent",
"type": "string"
},
"id": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
}
}
}
]
},
"headed": {
"type": "boolean"
},
"allowedHosts": {
"minItems": 1,
"maxItems": 128,
"type": "array",
"items": {
"minLength": 1,
"maxLength": 253,
"pattern": "\\S",
"type": "string"
}
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"id",
"source",
"profile",
"headed",
"status",
"createdAt"
],
"properties": {
"id": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"source": {
"anyOf": [
{
"const": "managed",
"type": "string"
},
{
"const": "attach",
"type": "string"
}
]
},
"profile": {
"anyOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "ephemeral",
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"const": "persistent",
"type": "string"
},
"id": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
}
}
}
]
},
"headed": {
"type": "boolean"
},
"status": {
"anyOf": [
{
"const": "starting",
"type": "string"
},
{
"const": "ready",
"type": "string"
},
{
"const": "closed",
"type": "string"
},
{
"const": "error",
"type": "string"
}
]
},
"createdAt": {
"type": "number"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.browser.session-get",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"sessionId"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"id",
"source",
"profile",
"headed",
"status",
"createdAt"
],
"properties": {
"id": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"source": {
"anyOf": [
{
"const": "managed",
"type": "string"
},
{
"const": "attach",
"type": "string"
}
]
},
"profile": {
"anyOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "ephemeral",
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"const": "persistent",
"type": "string"
},
"id": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
}
}
}
]
},
"headed": {
"type": "boolean"
},
"status": {
"anyOf": [
{
"const": "starting",
"type": "string"
},
{
"const": "ready",
"type": "string"
},
{
"const": "closed",
"type": "string"
},
{
"const": "error",
"type": "string"
}
]
},
"createdAt": {
"type": "number"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.browser.session-close",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"sessionId"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": false,
"version": 1
},
{
"id": "cap.foundation.vetta.browser.navigate",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"sessionId",
"url"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"url": {
"minLength": 1,
"maxLength": 8192,
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"sessionId",
"revision",
"url"
],
"properties": {
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"revision": {
"minimum": 0,
"type": "integer"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.browser.snapshot",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"sessionId"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"interactiveOnly": {
"type": "boolean"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"sessionId",
"revision",
"url",
"content"
],
"properties": {
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"revision": {
"minimum": 0,
"type": "integer"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"content": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.browser.read-text",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"sessionId"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"maxChars": {
"minimum": 1,
"maximum": 1000000,
"type": "integer"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"sessionId",
"url",
"text",
"truncated"
],
"properties": {
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"text": {
"type": "string"
},
"truncated": {
"type": "boolean"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.browser.screenshot",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"sessionId"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"fullPage": {
"type": "boolean"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"sessionId",
"revision",
"dataUrl"
],
"properties": {
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"revision": {
"minimum": 0,
"type": "integer"
},
"dataUrl": {
"pattern": "^data:image/(png|jpeg);base64,",
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.browser.act",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"sessionId",
"action"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"snapshotRevision": {
"minimum": 0,
"type": "integer"
},
"action": {
"anyOf": [
{
"type": "object",
"required": [
"type",
"target"
],
"properties": {
"type": {
"const": "click",
"type": "string"
},
"target": {
"minLength": 1,
"maxLength": 512,
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type",
"target",
"value"
],
"properties": {
"type": {
"const": "fill",
"type": "string"
},
"target": {
"minLength": 1,
"maxLength": 512,
"type": "string"
},
"value": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type",
"target",
"value"
],
"properties": {
"type": {
"const": "type",
"type": "string"
},
"target": {
"minLength": 1,
"maxLength": 512,
"type": "string"
},
"value": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type",
"target",
"value"
],
"properties": {
"type": {
"const": "select",
"type": "string"
},
"target": {
"minLength": 1,
"maxLength": 512,
"type": "string"
},
"value": {
"minLength": 1,
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type",
"target",
"checked"
],
"properties": {
"type": {
"const": "check",
"type": "string"
},
"target": {
"minLength": 1,
"maxLength": 512,
"type": "string"
},
"checked": {
"type": "boolean"
}
}
},
{
"type": "object",
"required": [
"type",
"key"
],
"properties": {
"type": {
"const": "press",
"type": "string"
},
"key": {
"minLength": 1,
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type",
"direction"
],
"properties": {
"type": {
"const": "scroll",
"type": "string"
},
"direction": {
"anyOf": [
{
"const": "up",
"type": "string"
},
{
"const": "down",
"type": "string"
},
{
"const": "left",
"type": "string"
},
{
"const": "right",
"type": "string"
}
]
},
"amount": {
"minimum": 1,
"maximum": 100000,
"type": "integer"
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "wait",
"type": "string"
},
"milliseconds": {
"minimum": 0,
"maximum": 120000,
"type": "integer"
},
"target": {
"minLength": 1,
"maxLength": 512,
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "back",
"type": "string"
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "reload",
"type": "string"
}
}
}
]
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"sessionId",
"revision",
"url"
],
"properties": {
"sessionId": {
"minLength": 1,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"revision": {
"minimum": 0,
"type": "integer"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"output": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.fs.read-directory",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"path",
"isDirectory",
"size",
"modifiedAt"
],
"properties": {
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"isDirectory": {
"type": "boolean"
},
"size": {
"type": "number"
},
"modifiedAt": {
"type": "number"
}
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.fs.read-file",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"content",
"encoding"
],
"properties": {
"content": {
"type": "string"
},
"encoding": {
"anyOf": [
{
"const": "utf8",
"type": "string"
},
{
"const": "base64",
"type": "string"
}
]
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.fs.read-binary-file",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"data",
"mimeType",
"size"
],
"properties": {
"data": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"size": {
"type": "number"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.fs.write-file",
"inputSchema": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
},
"content": {
"type": "string"
},
"encoding": {
"anyOf": [
{
"const": "utf8",
"type": "string"
},
{
"const": "base64",
"type": "string"
}
]
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": false,
"version": 1
},
{
"id": "cap.foundation.vetta.fs.stat",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"anyOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"size",
"modifiedAt",
"createdAt"
],
"properties": {
"size": {
"type": "number"
},
"modifiedAt": {
"type": "number"
},
"createdAt": {
"type": "number"
}
}
}
]
},
"version": 1
},
{
"id": "cap.foundation.vetta.fs.rename",
"inputSchema": {
"type": "object",
"required": [
"oldPath",
"newPath"
],
"properties": {
"oldPath": {
"pattern": "\\S",
"type": "string"
},
"newPath": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": false,
"version": 1
},
{
"id": "cap.foundation.vetta.fs.delete",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": false,
"version": 1
},
{
"id": "cap.foundation.vetta.fs.move",
"inputSchema": {
"type": "object",
"required": [
"sourcePath",
"destinationDirectory"
],
"properties": {
"sourcePath": {
"pattern": "\\S",
"type": "string"
},
"destinationDirectory": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": false,
"version": 1
},
{
"id": "cap.foundation.vetta.fs.create-directory",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": false,
"version": 1
},
{
"id": "cap.foundation.vetta.fs.list-files-recursive",
"inputSchema": {
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
},
"names": {
"maxItems": 64,
"type": "array",
"items": {
"pattern": "^(?!\\.{1,2}$)[^/\\\\]+$",
"maxLength": 255,
"type": "string"
}
},
"ignoredDirectories": {
"maxItems": 64,
"type": "array",
"items": {
"pattern": "^(?!\\.{1,2}$)[^/\\\\]+$",
"maxLength": 255,
"type": "string"
}
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"path",
"relPath"
],
"properties": {
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"relPath": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.job.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"ownerId",
"id"
],
"properties": {
"ownerId": {
"minLength": 1,
"type": "string"
},
"id": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"domain",
"operation",
"status",
"artifacts"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"domain": {
"minLength": 1,
"type": "string"
},
"operation": {
"minLength": 1,
"type": "string"
},
"status": {
"anyOf": [
{
"const": "queued",
"type": "string"
},
{
"const": "running",
"type": "string"
},
{
"const": "succeeded",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "cancelled",
"type": "string"
}
]
},
"progress": {
"additionalProperties": false,
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"phase": {
"minLength": 1,
"type": "string"
}
}
},
"artifacts": {
"type": "array",
"items": {
"additionalProperties": true,
"type": "object",
"required": [
"id",
"mimeType",
"sizeBytes",
"lifetime"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"sizeBytes": {
"minimum": 0,
"type": "integer"
},
"lifetime": {
"const": "temporary",
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
}
]
},
"width": {
"minimum": 1,
"type": "integer"
},
"height": {
"minimum": 1,
"type": "integer"
},
"durationSeconds": {
"exclusiveMinimum": 0,
"type": "number"
}
}
}
},
"metadata": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"error": {
"additionalProperties": false,
"type": "object",
"required": [
"code",
"message",
"retryable"
],
"properties": {
"code": {
"minLength": 1,
"type": "string"
},
"message": {
"minLength": 1,
"type": "string"
},
"retryable": {
"type": "boolean"
}
}
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.job.cancel",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"ownerId",
"id"
],
"properties": {
"ownerId": {
"minLength": 1,
"type": "string"
},
"id": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"domain",
"operation",
"status",
"artifacts"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"domain": {
"minLength": 1,
"type": "string"
},
"operation": {
"minLength": 1,
"type": "string"
},
"status": {
"anyOf": [
{
"const": "queued",
"type": "string"
},
{
"const": "running",
"type": "string"
},
{
"const": "succeeded",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "cancelled",
"type": "string"
}
]
},
"progress": {
"additionalProperties": false,
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"phase": {
"minLength": 1,
"type": "string"
}
}
},
"artifacts": {
"type": "array",
"items": {
"additionalProperties": true,
"type": "object",
"required": [
"id",
"mimeType",
"sizeBytes",
"lifetime"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"sizeBytes": {
"minimum": 0,
"type": "integer"
},
"lifetime": {
"const": "temporary",
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
}
]
},
"width": {
"minimum": 1,
"type": "integer"
},
"height": {
"minimum": 1,
"type": "integer"
},
"durationSeconds": {
"exclusiveMinimum": 0,
"type": "number"
}
}
}
},
"metadata": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"error": {
"additionalProperties": false,
"type": "object",
"required": [
"code",
"message",
"retryable"
],
"properties": {
"code": {
"minLength": 1,
"type": "string"
},
"message": {
"minLength": 1,
"type": "string"
},
"retryable": {
"type": "boolean"
}
}
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.get-all",
"inputSchema": {
"type": "object",
"required": [
"namespace"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.set",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"key",
"value"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"key": {
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"value": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.remove",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"key"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"key": {
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.clear",
"inputSchema": {
"type": "object",
"required": [
"namespace"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.list",
"inputSchema": {
"type": "object",
"required": [
"namespace"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"prefix": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "array",
"items": {
"type": "string"
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.read-file",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"path",
"encoding"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"path": {
"pattern": "\\S",
"type": "string"
},
"encoding": {
"anyOf": [
{
"const": "utf8",
"type": "string"
},
{
"const": "base64",
"type": "string"
}
]
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"anyOf": [
{
"type": "null"
},
{
"type": "string"
}
]
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.read-snapshot",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"paths",
"encoding"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"paths": {
"minItems": 1,
"maxItems": 128,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"encoding": {
"anyOf": [
{
"const": "utf8",
"type": "string"
},
{
"const": "base64",
"type": "string"
}
]
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"revision",
"files"
],
"properties": {
"revision": {
"type": "string"
},
"files": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"anyOf": [
{
"type": "null"
},
{
"type": "string"
}
]
}
}
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.commit",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"changes"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"changes": {
"minItems": 1,
"maxItems": 128,
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"type",
"path",
"data",
"encoding"
],
"properties": {
"type": {
"const": "write",
"type": "string"
},
"path": {
"pattern": "\\S",
"type": "string"
},
"data": {
"type": "string"
},
"encoding": {
"anyOf": [
{
"const": "utf8",
"type": "string"
},
{
"const": "base64",
"type": "string"
}
]
}
}
},
{
"type": "object",
"required": [
"type",
"path"
],
"properties": {
"type": {
"const": "remove",
"type": "string"
},
"path": {
"pattern": "\\S",
"type": "string"
}
}
}
]
}
},
"expectedRevision": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"revision",
"changedPaths"
],
"properties": {
"revision": {
"type": "string"
},
"changedPaths": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.put-blob",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"blob"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"blob": {
"type": "object",
"required": [
"data",
"mimeType"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"data": {
"pattern": "\\S",
"type": "string"
},
"mimeType": {
"pattern": "\\S",
"type": "string"
}
}
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"id",
"url",
"mimeType"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"mimeType": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.put-blob-from-file",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"blob"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"blob": {
"type": "object",
"required": [
"path",
"mimeType"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"path": {
"pattern": "\\S",
"type": "string"
},
"mimeType": {
"pattern": "\\S",
"type": "string"
}
}
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "object",
"required": [
"id",
"url",
"mimeType"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"mimeType": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.read-blob",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"id"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"id": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"anyOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"data",
"mimeType"
],
"properties": {
"data": {
"type": "string"
},
"mimeType": {
"type": "string"
}
}
}
]
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.get-blob-ref",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"id"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"id": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "foundation",
"outputSchema": {
"anyOf": [
{
"type": "null"
},
{
"type": "object",
"required": [
"id",
"url",
"mimeType"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"mimeType": {
"type": "string"
}
}
}
]
},
"version": 1
},
{
"id": "cap.foundation.vetta.storage.delete-blob",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"id"
],
"properties": {
"namespace": {
"pattern": "^(?!.*\\.\\.)[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$",
"type": "string"
},
"id": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"type": "undefined"
},
"version": 1
},
{
"id": "cap.foundation.vetta.network.request",
"inputSchema": {
"type": "object",
"required": [
"namespace",
"request"
],
"properties": {
"namespace": {
"minLength": 1,
"type": "string"
},
"request": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
},
"version": 2
},
{
"id": "cap.foundation.vetta.gateway.request",
"inputSchema": {
"type": "object",
"required": [
"request"
],
"properties": {
"request": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"kind": "command",
"layer": "foundation",
"outputSchema": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
},
"version": 1
}
],
"domain": [
{
"id": "cap.domain.vetta.agent-settings.experimental.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"vettaCli",
"promptPrediction",
"agentSkills"
],
"properties": {
"vettaCli": {
"type": "boolean"
},
"promptPrediction": {
"type": "boolean"
},
"agentSkills": {
"type": "boolean"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.agent-settings.experimental.set",
"inputSchema": {
"additionalProperties": false,
"minProperties": 1,
"type": "object",
"properties": {
"vettaCli": {
"type": "boolean"
},
"promptPrediction": {
"type": "boolean"
},
"agentSkills": {
"type": "boolean"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"vettaCli",
"promptPrediction",
"agentSkills"
],
"properties": {
"vettaCli": {
"type": "boolean"
},
"promptPrediction": {
"type": "boolean"
},
"agentSkills": {
"type": "boolean"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.agent-settings.image-generation.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {
"textToImageProviderId": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"textToImageModelId": {
"minLength": 1,
"maxLength": 256,
"type": "string"
},
"imageToImageProviderId": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"imageToImageModelId": {
"minLength": 1,
"maxLength": 256,
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.agent-settings.image-generation.set",
"inputSchema": {
"additionalProperties": false,
"minProperties": 1,
"type": "object",
"properties": {
"textToImageProviderId": {
"anyOf": [
{
"minLength": 1,
"maxLength": 129,
"type": "string"
},
{
"type": "null"
}
]
},
"textToImageModelId": {
"anyOf": [
{
"minLength": 1,
"maxLength": 256,
"type": "string"
},
{
"type": "null"
}
]
},
"imageToImageProviderId": {
"anyOf": [
{
"minLength": 1,
"maxLength": 129,
"type": "string"
},
{
"type": "null"
}
]
},
"imageToImageModelId": {
"anyOf": [
{
"minLength": 1,
"maxLength": 256,
"type": "string"
},
{
"type": "null"
}
]
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {
"textToImageProviderId": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"textToImageModelId": {
"minLength": 1,
"maxLength": 256,
"type": "string"
},
"imageToImageProviderId": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"imageToImageModelId": {
"minLength": 1,
"maxLength": 256,
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.ai.models.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"defaultModel",
"models"
],
"properties": {
"defaultModel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"models": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"modelKey",
"provider",
"id",
"name",
"api",
"reasoning",
"input",
"contextWindow"
],
"properties": {
"modelKey": {
"type": "string"
},
"provider": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"api": {
"type": "string"
},
"reasoning": {
"type": "boolean"
},
"input": {
"type": "array",
"items": {
"anyOf": [
{
"const": "text",
"type": "string"
},
{
"const": "image",
"type": "string"
}
]
}
},
"contextWindow": {
"type": "number"
},
"maxTokens": {
"type": "number"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.ai.complete",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"prompt"
],
"properties": {
"modelKey": {
"pattern": "\\S",
"type": "string"
},
"systemPrompt": {
"maxLength": 200000,
"type": "string"
},
"prompt": {
"minLength": 1,
"maxLength": 200000,
"type": "string"
},
"temperature": {
"minimum": 0,
"maximum": 2,
"type": "number"
},
"maxTokens": {
"minimum": 1,
"type": "integer"
},
"reasoning": {
"pattern": "\\S",
"maxLength": 64,
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"modelKey",
"text",
"stopReason",
"usage"
],
"properties": {
"modelKey": {
"type": "string"
},
"text": {
"type": "string"
},
"stopReason": {
"anyOf": [
{
"const": "stop",
"type": "string"
},
{
"const": "length",
"type": "string"
}
]
},
"usage": {
"additionalProperties": false,
"type": "object",
"required": [
"inputTokens",
"outputTokens",
"totalTokens"
],
"properties": {
"inputTokens": {
"type": "number"
},
"outputTokens": {
"type": "number"
},
"totalTokens": {
"type": "number"
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.ai.chat",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"messages"
],
"properties": {
"modelKey": {
"pattern": "\\S",
"type": "string"
},
"systemPrompt": {
"maxLength": 200000,
"type": "string"
},
"messages": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"role",
"content"
],
"properties": {
"role": {
"const": "user",
"type": "string"
},
"content": {
"minLength": 1,
"maxLength": 200000,
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"role",
"content"
],
"properties": {
"role": {
"const": "assistant",
"type": "string"
},
"content": {
"maxLength": 200000,
"type": "string"
},
"toolCalls": {
"maxItems": 32,
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"arguments"
],
"properties": {
"id": {
"minLength": 1,
"maxLength": 256,
"type": "string"
},
"name": {
"minLength": 1,
"maxLength": 256,
"type": "string"
},
"arguments": {
"type": "object",
"patternProperties": {
"^(.*)$": {}
}
}
}
}
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"role",
"toolCallId",
"toolName",
"content"
],
"properties": {
"role": {
"const": "toolResult",
"type": "string"
},
"toolCallId": {
"minLength": 1,
"maxLength": 256,
"type": "string"
},
"toolName": {
"minLength": 1,
"maxLength": 256,
"type": "string"
},
"content": {
"maxLength": 200000,
"type": "string"
},
"isError": {
"type": "boolean"
}
}
}
]
}
},
"tools": {
"maxItems": 64,
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"description",
"parameters"
],
"properties": {
"name": {
"minLength": 1,
"maxLength": 256,
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$",
"type": "string"
},
"description": {
"maxLength": 20000,
"type": "string"
},
"parameters": {
"type": "object",
"patternProperties": {
"^(.*)$": {}
}
}
}
}
},
"temperature": {
"minimum": 0,
"maximum": 2,
"type": "number"
},
"maxTokens": {
"minimum": 1,
"type": "integer"
},
"reasoning": {
"pattern": "\\S",
"maxLength": 64,
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"modelKey",
"text",
"toolCalls",
"stopReason",
"usage"
],
"properties": {
"modelKey": {
"type": "string"
},
"text": {
"type": "string"
},
"toolCalls": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"arguments"
],
"properties": {
"id": {
"minLength": 1,
"maxLength": 256,
"type": "string"
},
"name": {
"minLength": 1,
"maxLength": 256,
"type": "string"
},
"arguments": {
"type": "object",
"patternProperties": {
"^(.*)$": {}
}
}
}
}
},
"stopReason": {
"anyOf": [
{
"const": "stop",
"type": "string"
},
{
"const": "length",
"type": "string"
},
{
"const": "toolUse",
"type": "string"
}
]
},
"usage": {
"additionalProperties": false,
"type": "object",
"required": [
"inputTokens",
"outputTokens",
"totalTokens"
],
"properties": {
"inputTokens": {
"type": "number"
},
"outputTokens": {
"type": "number"
},
"totalTokens": {
"type": "number"
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"concurrency",
"tasks",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"modelKey": {
"type": "string"
},
"executionMode": {
"anyOf": [
{
"const": "inherit",
"type": "string"
},
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"concurrency": {
"minimum": 1,
"type": "integer"
},
"artifactPatterns": {
"type": "array",
"items": {
"type": "string"
}
},
"notifyEnabled": {
"type": "boolean"
},
"timeoutMinutes": {
"type": "number"
},
"skill": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"alias": {
"type": "string"
},
"type": {
"const": "skill",
"type": "string"
}
}
},
"tasks": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"cwd",
"sourcePath",
"status",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"cwd": {
"type": "string"
},
"sourcePath": {
"type": "string"
},
"status": {
"anyOf": [
{
"const": "pending",
"type": "string"
},
{
"const": "running",
"type": "string"
},
{
"const": "completed",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "paused",
"type": "string"
}
]
},
"sessionId": {
"type": "string"
},
"sessionPath": {
"type": "string"
},
"executionMode": {
"anyOf": [
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"error": {
"type": "string"
},
"createdAt": {
"minimum": 0,
"type": "number"
},
"updatedAt": {
"minimum": 0,
"type": "number"
}
}
}
},
"createdAt": {
"minimum": 0,
"type": "number"
},
"updatedAt": {
"minimum": 0,
"type": "number"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"concurrency",
"tasks",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"modelKey": {
"type": "string"
},
"executionMode": {
"anyOf": [
{
"const": "inherit",
"type": "string"
},
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"concurrency": {
"minimum": 1,
"type": "integer"
},
"artifactPatterns": {
"type": "array",
"items": {
"type": "string"
}
},
"notifyEnabled": {
"type": "boolean"
},
"timeoutMinutes": {
"type": "number"
},
"skill": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"alias": {
"type": "string"
},
"type": {
"const": "skill",
"type": "string"
}
}
},
"tasks": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"cwd",
"sourcePath",
"status",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"cwd": {
"type": "string"
},
"sourcePath": {
"type": "string"
},
"status": {
"anyOf": [
{
"const": "pending",
"type": "string"
},
{
"const": "running",
"type": "string"
},
{
"const": "completed",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "paused",
"type": "string"
}
]
},
"sessionId": {
"type": "string"
},
"sessionPath": {
"type": "string"
},
"executionMode": {
"anyOf": [
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"error": {
"type": "string"
},
"createdAt": {
"minimum": 0,
"type": "number"
},
"updatedAt": {
"minimum": 0,
"type": "number"
}
}
}
},
"createdAt": {
"minimum": 0,
"type": "number"
},
"updatedAt": {
"minimum": 0,
"type": "number"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.create",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"prompt",
"folders",
"concurrency"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"prompt": {
"type": "string"
},
"modelKey": {
"pattern": "\\S",
"type": "string"
},
"folders": {
"minItems": 1,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"concurrency": {
"minimum": 1,
"maximum": 64,
"type": "integer"
},
"executionMode": {
"anyOf": [
{
"const": "inherit",
"type": "string"
},
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"artifactPatterns": {
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"notifyEnabled": {
"type": "boolean"
},
"timeoutMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"skill": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"alias": {
"pattern": "\\S",
"type": "string"
},
"type": {
"const": "skill",
"type": "string"
}
}
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"concurrency",
"tasks",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"modelKey": {
"type": "string"
},
"executionMode": {
"anyOf": [
{
"const": "inherit",
"type": "string"
},
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"concurrency": {
"minimum": 1,
"type": "integer"
},
"artifactPatterns": {
"type": "array",
"items": {
"type": "string"
}
},
"notifyEnabled": {
"type": "boolean"
},
"timeoutMinutes": {
"type": "number"
},
"skill": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"alias": {
"type": "string"
},
"type": {
"const": "skill",
"type": "string"
}
}
},
"tasks": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"cwd",
"sourcePath",
"status",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"cwd": {
"type": "string"
},
"sourcePath": {
"type": "string"
},
"status": {
"anyOf": [
{
"const": "pending",
"type": "string"
},
{
"const": "running",
"type": "string"
},
{
"const": "completed",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "paused",
"type": "string"
}
]
},
"sessionId": {
"type": "string"
},
"sessionPath": {
"type": "string"
},
"executionMode": {
"anyOf": [
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"error": {
"type": "string"
},
"createdAt": {
"minimum": 0,
"type": "number"
},
"updatedAt": {
"minimum": 0,
"type": "number"
}
}
}
},
"createdAt": {
"minimum": 0,
"type": "number"
},
"updatedAt": {
"minimum": 0,
"type": "number"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.update",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"data"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"data": {
"additionalProperties": false,
"minProperties": 1,
"type": "object",
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"prompt": {
"type": "string"
},
"modelKey": {
"pattern": "\\S",
"type": "string"
},
"concurrency": {
"minimum": 1,
"maximum": 64,
"type": "integer"
},
"executionMode": {
"anyOf": [
{
"const": "inherit",
"type": "string"
},
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"artifactPatterns": {
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"notifyEnabled": {
"type": "boolean"
},
"timeoutMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"newFolders": {
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"skill": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"alias": {
"pattern": "\\S",
"type": "string"
},
"type": {
"const": "skill",
"type": "string"
}
}
},
{
"type": "null"
}
]
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"concurrency",
"tasks",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"modelKey": {
"type": "string"
},
"executionMode": {
"anyOf": [
{
"const": "inherit",
"type": "string"
},
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"concurrency": {
"minimum": 1,
"type": "integer"
},
"artifactPatterns": {
"type": "array",
"items": {
"type": "string"
}
},
"notifyEnabled": {
"type": "boolean"
},
"timeoutMinutes": {
"type": "number"
},
"skill": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"alias": {
"type": "string"
},
"type": {
"const": "skill",
"type": "string"
}
}
},
"tasks": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"cwd",
"sourcePath",
"status",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"cwd": {
"type": "string"
},
"sourcePath": {
"type": "string"
},
"status": {
"anyOf": [
{
"const": "pending",
"type": "string"
},
{
"const": "running",
"type": "string"
},
{
"const": "completed",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "paused",
"type": "string"
}
]
},
"sessionId": {
"type": "string"
},
"sessionPath": {
"type": "string"
},
"executionMode": {
"anyOf": [
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"error": {
"type": "string"
},
"createdAt": {
"minimum": 0,
"type": "number"
},
"updatedAt": {
"minimum": 0,
"type": "number"
}
}
}
},
"createdAt": {
"minimum": 0,
"type": "number"
},
"updatedAt": {
"minimum": 0,
"type": "number"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.delete",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.task.run",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"taskId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.task.retry",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"taskId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.task.stop",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"taskId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.task.delete",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"taskId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.task.resume",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"taskId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.task.resume-with-text",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"taskId",
"text"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"taskId": {
"pattern": "\\S",
"type": "string"
},
"text": {
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.task.session.delete",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"taskId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.task.delete-all",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.start",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.stop",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.reset",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.batch-task.project.failed-task.reset",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"projectId",
"taskIds"
],
"properties": {
"projectId": {
"pattern": "\\S",
"type": "string"
},
"taskIds": {
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"projectId",
"affectedTaskIds",
"queuedTaskIds"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"projectId": {
"type": "string"
},
"affectedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"queuedTaskIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.download.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"url",
"filename",
"path",
"totalBytes",
"receivedBytes",
"status",
"createdAt"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"filename": {
"type": "string"
},
"path": {
"type": "string"
},
"totalBytes": {
"type": "number"
},
"receivedBytes": {
"type": "number"
},
"status": {
"anyOf": [
{
"const": "queued",
"type": "string"
},
{
"const": "downloading",
"type": "string"
},
{
"const": "paused",
"type": "string"
},
{
"const": "completed",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "canceled",
"type": "string"
}
]
},
"error": {
"type": "string"
},
"createdAt": {
"type": "number"
},
"completedAt": {
"type": "number"
},
"speedBytesPerSec": {
"type": "number"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.download.cancel",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.general-settings.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"workspacePath",
"defaultExecutionMode",
"notificationsEnabled",
"debugMode",
"sandbox"
],
"properties": {
"workspacePath": {
"type": "string"
},
"defaultExecutionMode": {
"anyOf": [
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
},
"notificationsEnabled": {
"type": "boolean"
},
"debugMode": {
"type": "boolean"
},
"sandbox": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"backend",
"platform"
],
"properties": {
"status": {
"anyOf": [
{
"const": "unknown",
"type": "string"
},
{
"const": "available",
"type": "string"
},
{
"const": "unavailable",
"type": "string"
}
]
},
"backend": {
"anyOf": [
{
"const": "bundled-bwrap",
"type": "string"
},
{
"const": "system-bwrap",
"type": "string"
},
{
"const": "macos-seatbelt",
"type": "string"
},
{
"const": "windows-host",
"type": "string"
},
{
"type": "null"
}
]
},
"platform": {
"type": "string"
},
"binaryPath": {
"type": "string"
},
"reason": {
"type": "string"
},
"details": {
"type": "string"
},
"checkedAt": {
"type": "number"
},
"features": {
"additionalProperties": false,
"type": "object",
"required": [
"readRoots",
"writeRoots",
"denyRead",
"denyWrite",
"tempRootIsolation",
"networkIsolation",
"processTreeKill",
"passiveProbe",
"activeProbe"
],
"properties": {
"readRoots": {
"type": "boolean"
},
"writeRoots": {
"type": "boolean"
},
"denyRead": {
"type": "boolean"
},
"denyWrite": {
"type": "boolean"
},
"tempRootIsolation": {
"type": "boolean"
},
"networkIsolation": {
"type": "boolean"
},
"processTreeKill": {
"type": "boolean"
},
"passiveProbe": {
"type": "boolean"
},
"activeProbe": {
"type": "boolean"
}
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.general-settings.notifications.set",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.general-settings.default-execution-mode.set",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"anyOf": [
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"anyOf": [
{
"const": "sandbox",
"type": "string"
},
{
"const": "full-access",
"type": "string"
}
]
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.general-settings.workspace.set",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.im.status.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"enabled",
"transport",
"agentModel",
"wechatBound",
"feishuAppId",
"runtime"
],
"properties": {
"enabled": {
"type": "boolean"
},
"transport": {
"anyOf": [
{
"const": "feishu",
"type": "string"
},
{
"const": "wechat",
"type": "string"
}
]
},
"agentModel": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"provider",
"model"
],
"properties": {
"provider": {
"type": "string"
},
"model": {
"type": "string"
},
"reasoningLevel": {
"type": "string"
}
}
},
{
"type": "null"
}
]
},
"wechatBound": {
"type": "boolean"
},
"feishuAppId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"runtime": {
"additionalProperties": false,
"type": "object",
"required": [
"transport",
"activeSessions",
"consecutiveStartFailures"
],
"properties": {
"transport": {
"anyOf": [
{
"const": "offline",
"type": "string"
},
{
"const": "connecting",
"type": "string"
},
{
"const": "online",
"type": "string"
},
{
"const": "error",
"type": "string"
},
{
"const": "awaiting_bind",
"type": "string"
}
]
},
"lastError": {
"type": "string"
},
"lastErrorAt": {
"type": "string"
},
"activeSessions": {
"type": "number"
},
"sidecarPid": {
"type": "number"
},
"sidecarStartedAt": {
"type": "string"
},
"consecutiveStartFailures": {
"type": "number"
},
"binaryPath": {
"type": "string"
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.im.log.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"limit"
],
"properties": {
"limit": {
"minimum": 0,
"type": "integer"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"level",
"msg",
"time"
],
"properties": {
"level": {
"anyOf": [
{
"const": "debug",
"type": "string"
},
{
"const": "info",
"type": "string"
},
{
"const": "warn",
"type": "string"
},
{
"const": "error",
"type": "string"
}
]
},
"msg": {
"type": "string"
},
"time": {
"type": "string"
},
"fields": {
"type": "object",
"patternProperties": {
"^(.*)$": {}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.im.enabled.set",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"transport",
"activeSessions",
"consecutiveStartFailures"
],
"properties": {
"transport": {
"anyOf": [
{
"const": "offline",
"type": "string"
},
{
"const": "connecting",
"type": "string"
},
{
"const": "online",
"type": "string"
},
{
"const": "error",
"type": "string"
},
{
"const": "awaiting_bind",
"type": "string"
}
]
},
"lastError": {
"type": "string"
},
"lastErrorAt": {
"type": "string"
},
"activeSessions": {
"type": "number"
},
"sidecarPid": {
"type": "number"
},
"sidecarStartedAt": {
"type": "string"
},
"consecutiveStartFailures": {
"type": "number"
},
"binaryPath": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.im.restart",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"transport",
"activeSessions",
"consecutiveStartFailures"
],
"properties": {
"transport": {
"anyOf": [
{
"const": "offline",
"type": "string"
},
{
"const": "connecting",
"type": "string"
},
{
"const": "online",
"type": "string"
},
{
"const": "error",
"type": "string"
},
{
"const": "awaiting_bind",
"type": "string"
}
]
},
"lastError": {
"type": "string"
},
"lastErrorAt": {
"type": "string"
},
"activeSessions": {
"type": "number"
},
"sidecarPid": {
"type": "number"
},
"sidecarStartedAt": {
"type": "string"
},
"consecutiveStartFailures": {
"type": "number"
},
"binaryPath": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.im.agent-model.set",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"agentModel"
],
"properties": {
"agentModel": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"provider",
"model"
],
"properties": {
"provider": {
"pattern": "\\S",
"type": "string"
},
"model": {
"pattern": "\\S",
"type": "string"
},
"reasoningLevel": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"type": "null"
}
]
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"transport",
"activeSessions",
"consecutiveStartFailures"
],
"properties": {
"transport": {
"anyOf": [
{
"const": "offline",
"type": "string"
},
{
"const": "connecting",
"type": "string"
},
{
"const": "online",
"type": "string"
},
{
"const": "error",
"type": "string"
},
{
"const": "awaiting_bind",
"type": "string"
}
]
},
"lastError": {
"type": "string"
},
"lastErrorAt": {
"type": "string"
},
"activeSessions": {
"type": "number"
},
"sidecarPid": {
"type": "number"
},
"sidecarStartedAt": {
"type": "string"
},
"consecutiveStartFailures": {
"type": "number"
},
"binaryPath": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.base.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"updatedAt",
"isDefault",
"nodes"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"updatedAt": {
"minimum": 0,
"type": "number"
},
"isDefault": {
"type": "boolean"
},
"nodes": {
"type": "array",
"items": {
"$id": "T0",
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"type"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"anyOf": [
{
"const": "file",
"type": "string"
},
{
"const": "directory",
"type": "string"
}
]
},
"children": {
"type": "array",
"items": {
"$ref": "T0"
}
},
"childCount": {
"minimum": 0,
"type": "number"
},
"size": {
"minimum": 0,
"type": "number"
},
"sourcePath": {
"type": "string"
}
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.file-status.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"additionalProperties": false,
"type": "object",
"required": [
"status"
],
"properties": {
"status": {
"anyOf": [
{
"const": "processed",
"type": "string"
},
{
"const": "stale",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "unprocessed",
"type": "string"
}
]
},
"wikiPath": {
"type": "string"
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.processing.status.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "boolean"
},
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.processing.settings.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"pollIntervalMinutes": {
"minimum": 0,
"type": "integer"
},
"processingModelKey": {
"type": "string"
},
"processingModelReasoningLevel": {
"type": "string"
},
"agentConcurrency": {
"minimum": 0,
"type": "integer"
},
"ocrConcurrency": {
"minimum": 0,
"type": "integer"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.base.create",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.base.rename",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"newName"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"newName": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.base.delete",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.entry.add-files",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"kbId",
"paths",
"move"
],
"properties": {
"kbId": {
"pattern": "\\S",
"type": "string"
},
"paths": {
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"move": {
"type": "boolean"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.entry.delete",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"kbId",
"relPath"
],
"properties": {
"kbId": {
"pattern": "\\S",
"type": "string"
},
"relPath": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.processing.scan",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"skipped"
],
"properties": {
"skipped": {
"type": "boolean"
},
"reason": {
"const": "no-model",
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.processing.retry-failed",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"skipped"
],
"properties": {
"skipped": {
"type": "boolean"
},
"reason": {
"const": "no-model",
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.knowledge.processing.settings.set",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"additionalProperties": false,
"minProperties": 1,
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"pollIntervalMinutes": {
"anyOf": [
{
"const": 0,
"type": "number"
},
{
"const": 3,
"type": "number"
},
{
"const": 5,
"type": "number"
},
{
"const": 10,
"type": "number"
},
{
"const": 30,
"type": "number"
}
]
},
"processingModelKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"processingModelReasoningLevel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"agentConcurrency": {
"minimum": 1,
"type": "integer"
},
"ocrConcurrency": {
"minimum": 1,
"type": "integer"
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"pollIntervalMinutes": {
"minimum": 0,
"type": "integer"
},
"processingModelKey": {
"type": "string"
},
"processingModelReasoningLevel": {
"type": "string"
},
"agentConcurrency": {
"minimum": 0,
"type": "integer"
},
"ocrConcurrency": {
"minimum": 0,
"type": "integer"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.mcp.server.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {
"scope": {
"anyOf": [
{
"const": "global",
"type": "string"
},
{
"const": "project",
"type": "string"
}
]
},
"cwd": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type",
"disabled"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"anyOf": [
{
"const": "stdio",
"type": "string"
},
{
"const": "http",
"type": "string"
},
{
"const": "sse",
"type": "string"
}
]
},
"disabled": {
"type": "boolean"
},
"command": {
"type": "string"
},
"url": {
"type": "string"
},
"scope": {
"anyOf": [
{
"const": "global",
"type": "string"
},
{
"const": "project",
"type": "string"
}
]
},
"readOnly": {
"type": "boolean"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.mcp.server.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"scope": {
"anyOf": [
{
"const": "global",
"type": "string"
},
{
"const": "project",
"type": "string"
}
]
},
"cwd": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type",
"disabled"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"anyOf": [
{
"const": "stdio",
"type": "string"
},
{
"const": "http",
"type": "string"
},
{
"const": "sse",
"type": "string"
}
]
},
"command": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"cwd": {
"type": "string"
},
"url": {
"type": "string"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"disabled": {
"type": "boolean"
},
"autoApprove": {
"type": "array",
"items": {
"type": "string"
}
},
"startupTimeout": {
"type": "number"
},
"debug": {
"type": "boolean"
},
"scope": {
"anyOf": [
{
"const": "global",
"type": "string"
},
{
"const": "project",
"type": "string"
}
]
},
"readOnly": {
"type": "boolean"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.mcp.server.upsert",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"data"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"data": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"anyOf": [
{
"const": "http",
"type": "string"
},
{
"const": "sse",
"type": "string"
}
]
},
"url": {
"type": "string"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"disabled": {
"type": "boolean"
},
"autoApprove": {
"type": "array",
"items": {
"type": "string"
}
},
"startupTimeout": {
"minimum": 1,
"type": "integer"
},
"debug": {
"type": "boolean"
}
}
},
{
"additionalProperties": false,
"type": "object",
"properties": {
"type": {
"const": "stdio",
"type": "string"
},
"command": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"cwd": {
"type": "string"
},
"disabled": {
"type": "boolean"
},
"autoApprove": {
"type": "array",
"items": {
"type": "string"
}
},
"startupTimeout": {
"minimum": 1,
"type": "integer"
},
"debug": {
"type": "boolean"
}
}
}
]
},
"scope": {
"anyOf": [
{
"const": "global",
"type": "string"
},
{
"const": "project",
"type": "string"
}
]
},
"cwd": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"type",
"disabled"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"anyOf": [
{
"const": "stdio",
"type": "string"
},
{
"const": "http",
"type": "string"
},
{
"const": "sse",
"type": "string"
}
]
},
"command": {
"type": "string"
},
"args": {
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"cwd": {
"type": "string"
},
"url": {
"type": "string"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"disabled": {
"type": "boolean"
},
"autoApprove": {
"type": "array",
"items": {
"type": "string"
}
},
"startupTimeout": {
"type": "number"
},
"debug": {
"type": "boolean"
},
"scope": {
"anyOf": [
{
"const": "global",
"type": "string"
},
{
"const": "project",
"type": "string"
}
]
},
"readOnly": {
"type": "boolean"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.mcp.server.set-enabled",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"enabled"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"enabled": {
"type": "boolean"
},
"scope": {
"anyOf": [
{
"const": "global",
"type": "string"
},
{
"const": "project",
"type": "string"
}
]
},
"cwd": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.mcp.server.remove",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"scope": {
"anyOf": [
{
"const": "global",
"type": "string"
},
{
"const": "project",
"type": "string"
}
]
},
"cwd": {
"minLength": 1,
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.media.provider.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"ownerId",
"protocolVersion",
"capabilities"
],
"properties": {
"id": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"displayName": {
"minLength": 1,
"maxLength": 128,
"type": "string"
},
"ownerId": {
"minLength": 1,
"maxLength": 128,
"type": "string"
},
"protocolVersion": {
"const": 5,
"type": "number"
},
"capabilities": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"operation",
"kind",
"modes"
],
"properties": {
"operation": {
"const": "generate",
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
}
]
},
"modes": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"const": "text-to-image",
"type": "string"
},
{
"const": "image-to-image",
"type": "string"
},
{
"const": "text-to-video",
"type": "string"
},
{
"const": "image-to-video",
"type": "string"
},
{
"const": "video-to-video",
"type": "string"
},
{
"const": "reference-to-video",
"type": "string"
}
]
}
},
"aspectRatios": {
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"resolutions": {
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"defaultResolution": {
"minLength": 1,
"type": "string"
},
"models": {
"minItems": 1,
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"modes"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"displayName": {
"minLength": 1,
"maxLength": 128,
"type": "string"
},
"sourceId": {
"minLength": 1,
"type": "string"
},
"sourceDisplayName": {
"minLength": 1,
"maxLength": 128,
"type": "string"
},
"modes": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"const": "text-to-image",
"type": "string"
},
{
"const": "image-to-image",
"type": "string"
},
{
"const": "text-to-video",
"type": "string"
},
{
"const": "image-to-video",
"type": "string"
},
{
"const": "video-to-video",
"type": "string"
},
{
"const": "reference-to-video",
"type": "string"
}
]
}
},
"aspectRatios": {
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"resolutions": {
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"defaultResolution": {
"minLength": 1,
"type": "string"
}
}
}
},
"defaultModelId": {
"minLength": 1,
"type": "string"
},
"durationsSeconds": {
"type": "array",
"items": {
"exclusiveMinimum": 0,
"type": "number"
}
},
"modeCapabilities": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"inputs"
],
"properties": {
"mode": {
"anyOf": [
{
"const": "text-to-image",
"type": "string"
},
{
"const": "image-to-image",
"type": "string"
},
{
"const": "text-to-video",
"type": "string"
},
{
"const": "image-to-video",
"type": "string"
},
{
"const": "video-to-video",
"type": "string"
},
{
"const": "reference-to-video",
"type": "string"
}
]
},
"inputs": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"role",
"kinds",
"minItems",
"maxItems"
],
"properties": {
"role": {
"minLength": 1,
"type": "string"
},
"kinds": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
},
{
"const": "document",
"type": "string"
}
]
}
},
"minItems": {
"minimum": 0,
"type": "integer"
},
"maxItems": {
"minimum": 1,
"type": "integer"
}
}
}
},
"minTotalItems": {
"minimum": 0,
"type": "integer"
},
"maxTotalItems": {
"minimum": 1,
"type": "integer"
},
"aspectRatioPolicy": {
"anyOf": [
{
"const": "configurable",
"type": "string"
},
{
"const": "input-derived",
"type": "string"
}
]
},
"audioGeneration": {
"anyOf": [
{
"const": "none",
"type": "string"
},
{
"const": "always",
"type": "string"
},
{
"const": "optional",
"type": "string"
}
]
}
}
}
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"operation",
"documentMimeTypes",
"outputMimeTypes"
],
"properties": {
"operation": {
"const": "compose",
"type": "string"
},
"documentMimeTypes": {
"minItems": 1,
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"outputMimeTypes": {
"minItems": 1,
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"operation",
"inputMimeTypes",
"outputMimeTypes"
],
"properties": {
"operation": {
"const": "transcode",
"type": "string"
},
"inputMimeTypes": {
"minItems": 1,
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"outputMimeTypes": {
"minItems": 1,
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
}
}
}
]
}
}
}
}
},
"version": 3
},
{
"id": "cap.domain.vetta.media.job.submit",
"inputSchema": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"ownerId",
"providerId",
"inputs",
"operation",
"kind",
"mode",
"prompt"
],
"properties": {
"ownerId": {
"minLength": 1,
"type": "string"
},
"providerId": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"source"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"role": {
"minLength": 1,
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
},
{
"const": "document",
"type": "string"
}
]
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"source": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"namespace",
"id"
],
"properties": {
"type": {
"const": "storage-blob",
"type": "string"
},
"namespace": {
"minLength": 1,
"type": "string"
},
"id": {
"minLength": 1,
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"path"
],
"properties": {
"type": {
"const": "workspace-file",
"type": "string"
},
"path": {
"minLength": 1,
"type": "string"
}
}
}
]
}
}
}
},
"operation": {
"const": "generate",
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
}
]
},
"mode": {
"anyOf": [
{
"const": "text-to-image",
"type": "string"
},
{
"const": "image-to-image",
"type": "string"
},
{
"const": "text-to-video",
"type": "string"
},
{
"const": "image-to-video",
"type": "string"
},
{
"const": "video-to-video",
"type": "string"
},
{
"const": "reference-to-video",
"type": "string"
}
]
},
"prompt": {
"minLength": 1,
"maxLength": 65536,
"type": "string"
},
"modelId": {
"minLength": 1,
"type": "string"
},
"dimensions": {
"additionalProperties": false,
"type": "object",
"required": [
"width",
"height"
],
"properties": {
"width": {
"minimum": 1,
"type": "integer"
},
"height": {
"minimum": 1,
"type": "integer"
}
}
},
"aspectRatio": {
"minLength": 1,
"type": "string"
},
"resolution": {
"minLength": 1,
"type": "string"
},
"durationSeconds": {
"exclusiveMinimum": 0,
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"ownerId",
"providerId",
"inputs",
"operation",
"output"
],
"properties": {
"ownerId": {
"minLength": 1,
"type": "string"
},
"providerId": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"source"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"role": {
"minLength": 1,
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
},
{
"const": "document",
"type": "string"
}
]
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"source": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"namespace",
"id"
],
"properties": {
"type": {
"const": "storage-blob",
"type": "string"
},
"namespace": {
"minLength": 1,
"type": "string"
},
"id": {
"minLength": 1,
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"path"
],
"properties": {
"type": {
"const": "workspace-file",
"type": "string"
},
"path": {
"minLength": 1,
"type": "string"
}
}
}
]
}
}
}
},
"operation": {
"const": "compose",
"type": "string"
},
"output": {
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"mimeType"
],
"properties": {
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
}
]
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"dimensions": {
"additionalProperties": false,
"type": "object",
"required": [
"width",
"height"
],
"properties": {
"width": {
"minimum": 1,
"type": "integer"
},
"height": {
"minimum": 1,
"type": "integer"
}
}
},
"fps": {
"exclusiveMinimum": 0,
"type": "number"
},
"durationSeconds": {
"exclusiveMinimum": 0,
"type": "number"
},
"videoCodec": {
"minLength": 1,
"type": "string"
},
"audioCodec": {
"minLength": 1,
"type": "string"
}
}
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"ownerId",
"providerId",
"inputs",
"operation",
"output"
],
"properties": {
"ownerId": {
"minLength": 1,
"type": "string"
},
"providerId": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"inputs": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"source"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"role": {
"minLength": 1,
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
},
{
"const": "document",
"type": "string"
}
]
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"source": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"namespace",
"id"
],
"properties": {
"type": {
"const": "storage-blob",
"type": "string"
},
"namespace": {
"minLength": 1,
"type": "string"
},
"id": {
"minLength": 1,
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"path"
],
"properties": {
"type": {
"const": "workspace-file",
"type": "string"
},
"path": {
"minLength": 1,
"type": "string"
}
}
}
]
}
}
}
},
"operation": {
"const": "transcode",
"type": "string"
},
"output": {
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"mimeType"
],
"properties": {
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
}
]
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"dimensions": {
"additionalProperties": false,
"type": "object",
"required": [
"width",
"height"
],
"properties": {
"width": {
"minimum": 1,
"type": "integer"
},
"height": {
"minimum": 1,
"type": "integer"
}
}
},
"fps": {
"exclusiveMinimum": 0,
"type": "number"
},
"durationSeconds": {
"exclusiveMinimum": 0,
"type": "number"
},
"videoCodec": {
"minLength": 1,
"type": "string"
},
"audioCodec": {
"minLength": 1,
"type": "string"
}
}
}
}
}
]
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"domain",
"operation",
"status",
"artifacts"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"domain": {
"minLength": 1,
"type": "string"
},
"operation": {
"minLength": 1,
"type": "string"
},
"status": {
"anyOf": [
{
"const": "queued",
"type": "string"
},
{
"const": "running",
"type": "string"
},
{
"const": "succeeded",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "cancelled",
"type": "string"
}
]
},
"progress": {
"additionalProperties": false,
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"phase": {
"minLength": 1,
"type": "string"
}
}
},
"artifacts": {
"type": "array",
"items": {
"additionalProperties": true,
"type": "object",
"required": [
"id",
"mimeType",
"sizeBytes",
"lifetime"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"sizeBytes": {
"minimum": 0,
"type": "integer"
},
"lifetime": {
"const": "temporary",
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "video",
"type": "string"
},
{
"const": "audio",
"type": "string"
}
]
},
"width": {
"minimum": 1,
"type": "integer"
},
"height": {
"minimum": 1,
"type": "integer"
},
"durationSeconds": {
"exclusiveMinimum": 0,
"type": "number"
}
}
}
},
"metadata": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"$id": "CapabilityJsonValue",
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "CapabilityJsonValue"
}
},
{
"type": "object",
"patternProperties": {
"^(.*)$": {
"$ref": "CapabilityJsonValue"
}
}
}
]
}
}
},
"error": {
"additionalProperties": false,
"type": "object",
"required": [
"code",
"message",
"retryable"
],
"properties": {
"code": {
"minLength": 1,
"type": "string"
},
"message": {
"minLength": 1,
"type": "string"
},
"retryable": {
"type": "boolean"
}
}
}
}
},
"version": 2
},
{
"id": "cap.domain.vetta.ocr.provider.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"displayName",
"ownerId",
"protocolVersion",
"processing",
"execution",
"status",
"input",
"output"
],
"properties": {
"id": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"displayName": {
"minLength": 1,
"type": "string"
},
"ownerId": {
"minLength": 1,
"type": "string"
},
"protocolVersion": {
"const": 1,
"type": "number"
},
"processing": {
"anyOf": [
{
"const": "local",
"type": "string"
},
{
"const": "remote",
"type": "string"
}
]
},
"execution": {
"anyOf": [
{
"const": "sync",
"type": "string"
},
{
"const": "async",
"type": "string"
},
{
"const": "both",
"type": "string"
}
]
},
"status": {
"anyOf": [
{
"const": "ready",
"type": "string"
},
{
"const": "needs-configuration",
"type": "string"
},
{
"const": "unavailable",
"type": "string"
}
]
},
"input": {
"additionalProperties": false,
"type": "object",
"required": [
"kinds",
"mimeTypes",
"acceptsInlineBytes",
"acceptsUrl"
],
"properties": {
"kinds": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"const": "image",
"type": "string"
},
{
"const": "document-reference",
"type": "string"
}
]
}
},
"mimeTypes": {
"minItems": 1,
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"acceptsInlineBytes": {
"type": "boolean"
},
"acceptsUrl": {
"type": "boolean"
},
"maxItemsPerRequest": {
"minimum": 1,
"type": "integer"
},
"maxBytesPerItem": {
"minimum": 1,
"type": "integer"
},
"maxPixelsPerImage": {
"minimum": 1,
"type": "integer"
}
}
},
"output": {
"additionalProperties": false,
"type": "object",
"required": [
"granularities",
"supportsConfidence",
"supportsPolygon",
"supportsLanguageDetection"
],
"properties": {
"granularities": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"const": "text",
"type": "string"
},
{
"const": "line",
"type": "string"
},
{
"const": "word",
"type": "string"
},
{
"const": "symbol",
"type": "string"
},
{
"const": "document-tree",
"type": "string"
}
]
}
},
"supportsConfidence": {
"type": "boolean"
},
"supportsPolygon": {
"type": "boolean"
},
"supportsLanguageDetection": {
"type": "boolean"
}
}
},
"network": {
"additionalProperties": false,
"type": "object",
"required": [
"allowedHosts"
],
"properties": {
"allowedHosts": {
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
}
}
},
"configuration": {
"additionalProperties": false,
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"anyOf": [
{
"const": "ready",
"type": "string"
},
{
"const": "needs-configuration",
"type": "string"
},
{
"const": "unavailable",
"type": "string"
}
]
},
"settingsViewId": {
"minLength": 1,
"type": "string"
},
"reasonCode": {
"minLength": 1,
"type": "string"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.ocr.recognize",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"ownerId",
"inputs"
],
"properties": {
"ownerId": {
"minLength": 1,
"type": "string"
},
"providerId": {
"minLength": 1,
"maxLength": 129,
"type": "string"
},
"inputs": {
"minItems": 1,
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"source"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"mimeType": {
"minLength": 1,
"type": "string"
},
"source": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"namespace",
"id"
],
"properties": {
"type": {
"const": "storage-blob",
"type": "string"
},
"namespace": {
"minLength": 1,
"type": "string"
},
"id": {
"minLength": 1,
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"type",
"path"
],
"properties": {
"type": {
"const": "workspace-file",
"type": "string"
},
"path": {
"minLength": 1,
"type": "string"
}
}
}
]
}
}
}
},
"languages": {
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"granularity": {
"anyOf": [
{
"const": "text",
"type": "string"
},
{
"const": "line",
"type": "string"
},
{
"const": "word",
"type": "string"
},
{
"const": "symbol",
"type": "string"
},
{
"const": "document-tree",
"type": "string"
}
]
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"protocolVersion",
"providerId",
"items"
],
"properties": {
"protocolVersion": {
"const": 1,
"type": "number"
},
"providerId": {
"minLength": 1,
"type": "string"
},
"model": {
"minLength": 1,
"type": "string"
},
"items": {
"minItems": 1,
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"status"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"status": {
"anyOf": [
{
"const": "ok",
"type": "string"
},
{
"const": "error",
"type": "string"
},
{
"const": "cancelled",
"type": "string"
}
]
},
"text": {
"type": "string"
},
"width": {
"minimum": 1,
"type": "integer"
},
"height": {
"minimum": 1,
"type": "integer"
},
"confidence": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"document": {
"additionalProperties": false,
"type": "object",
"required": [
"pages"
],
"properties": {
"pages": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"pageNumber",
"blocks"
],
"properties": {
"pageNumber": {
"minimum": 1,
"type": "integer"
},
"width": {
"minimum": 1,
"type": "integer"
},
"height": {
"minimum": 1,
"type": "integer"
},
"blocks": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"level",
"text"
],
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"level": {
"anyOf": [
{
"const": "page",
"type": "string"
},
{
"const": "block",
"type": "string"
},
{
"const": "paragraph",
"type": "string"
},
{
"const": "line",
"type": "string"
},
{
"const": "word",
"type": "string"
},
{
"const": "symbol",
"type": "string"
},
{
"const": "other",
"type": "string"
}
]
},
"text": {
"minLength": 1,
"type": "string"
},
"confidence": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"polygon": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"x",
"y"
],
"properties": {
"x": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"y": {
"minimum": 0,
"maximum": 1,
"type": "number"
}
}
}
},
"children": {
"type": "array",
"items": {
"minLength": 1,
"type": "string"
}
},
"attributes": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
}
}
}
}
}
}
}
}
}
},
"error": {
"additionalProperties": false,
"type": "object",
"required": [
"code",
"message",
"retryable"
],
"properties": {
"code": {
"anyOf": [
{
"const": "invalid-request",
"type": "string"
},
{
"const": "unsupported-input",
"type": "string"
},
{
"const": "input-too-large",
"type": "string"
},
{
"const": "rate-limited",
"type": "string"
},
{
"const": "unauthorized",
"type": "string"
},
{
"const": "provider-unavailable",
"type": "string"
},
{
"const": "provider-timeout",
"type": "string"
},
{
"const": "provider-failed",
"type": "string"
},
{
"const": "cancelled",
"type": "string"
}
]
},
"message": {
"minLength": 1,
"type": "string"
},
"retryable": {
"type": "boolean"
},
"providerCode": {
"minLength": 1,
"type": "string"
}
}
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.model.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"defaultModel",
"providers"
],
"properties": {
"defaultModel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"providers": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"displayName",
"hasApiKey",
"modelCount",
"models"
],
"properties": {
"id": {
"type": "string"
},
"displayName": {
"type": "string"
},
"baseUrl": {
"type": "string"
},
"api": {
"type": "string"
},
"hasApiKey": {
"type": "boolean"
},
"icon": {
"type": "string"
},
"modelCount": {
"type": "number"
},
"models": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"api": {
"type": "string"
},
"reasoning": {
"type": "boolean"
}
}
}
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.model.config.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"providers"
],
"properties": {
"defaultModel": {
"type": "string"
},
"providers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"additionalProperties": false,
"type": "object",
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"api": {
"type": "string"
},
"displayName": {
"type": "string"
},
"authHeader": {
"type": "boolean"
},
"useProxy": {
"type": "boolean"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"models": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"modelId": {
"type": "string"
},
"name": {
"type": "string"
},
"api": {
"type": "string"
},
"reasoning": {
"type": "boolean"
},
"reasoningLevels": {
"type": "array",
"items": {
"type": "string"
}
},
"defaultReasoningLevel": {
"type": "string"
},
"input": {
"type": "array",
"items": {
"type": "string"
}
},
"contextWindow": {
"type": "number"
},
"maxTokens": {
"type": "number"
},
"cost": {
"additionalProperties": false,
"type": "object",
"required": [
"input",
"output",
"cacheRead",
"cacheWrite"
],
"properties": {
"input": {
"type": "number"
},
"output": {
"type": "number"
},
"cacheRead": {
"type": "number"
},
"cacheWrite": {
"type": "number"
}
}
}
}
}
}
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.model.provider.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"provider"
],
"properties": {
"provider": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"provider"
],
"properties": {
"provider": {
"type": "string"
},
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"api": {
"type": "string"
},
"displayName": {
"type": "string"
},
"authHeader": {
"type": "boolean"
},
"useProxy": {
"type": "boolean"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"models": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"modelId": {
"type": "string"
},
"name": {
"type": "string"
},
"api": {
"type": "string"
},
"reasoning": {
"type": "boolean"
},
"reasoningLevels": {
"type": "array",
"items": {
"type": "string"
}
},
"defaultReasoningLevel": {
"type": "string"
},
"input": {
"type": "array",
"items": {
"type": "string"
}
},
"contextWindow": {
"type": "number"
},
"maxTokens": {
"type": "number"
},
"cost": {
"additionalProperties": false,
"type": "object",
"required": [
"input",
"output",
"cacheRead",
"cacheWrite"
],
"properties": {
"input": {
"type": "number"
},
"output": {
"type": "number"
},
"cacheRead": {
"type": "number"
},
"cacheWrite": {
"type": "number"
}
}
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.model.probe",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"provider",
"model"
],
"properties": {
"provider": {
"pattern": "\\S",
"type": "string"
},
"model": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean"
},
"message": {
"type": "string"
},
"error": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.model.key.validate",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"modelKey"
],
"properties": {
"modelKey": {
"pattern": "\\S",
"type": "string"
},
"operation": {
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.model.default.set",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"modelKey"
],
"properties": {
"modelKey": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"defaultModel"
],
"properties": {
"defaultModel": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.model.provider.upsert",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"provider",
"data"
],
"properties": {
"provider": {
"pattern": "\\S",
"type": "string"
},
"data": {
"additionalProperties": false,
"type": "object",
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"api": {
"type": "string"
},
"displayName": {
"type": "string"
},
"authHeader": {
"type": "boolean"
},
"useProxy": {
"type": "boolean"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"models": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
},
"name": {
"type": "string"
},
"api": {
"type": "string"
},
"reasoning": {
"type": "boolean"
},
"reasoningLevels": {
"type": "array",
"items": {
"type": "string"
}
},
"defaultReasoningLevel": {
"type": "string"
},
"input": {
"minItems": 1,
"uniqueItems": true,
"type": "array",
"items": {
"anyOf": [
{
"const": "text",
"type": "string"
},
{
"const": "image",
"type": "string"
}
]
}
},
"contextWindow": {
"type": "number"
},
"maxTokens": {
"type": "number"
}
}
}
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"api": {
"type": "string"
},
"displayName": {
"type": "string"
},
"authHeader": {
"type": "boolean"
},
"useProxy": {
"type": "boolean"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"models": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"modelId": {
"type": "string"
},
"name": {
"type": "string"
},
"api": {
"type": "string"
},
"reasoning": {
"type": "boolean"
},
"reasoningLevels": {
"type": "array",
"items": {
"type": "string"
}
},
"defaultReasoningLevel": {
"type": "string"
},
"input": {
"type": "array",
"items": {
"type": "string"
}
},
"contextWindow": {
"type": "number"
},
"maxTokens": {
"type": "number"
},
"cost": {
"additionalProperties": false,
"type": "object",
"required": [
"input",
"output",
"cacheRead",
"cacheWrite"
],
"properties": {
"input": {
"type": "number"
},
"output": {
"type": "number"
},
"cacheRead": {
"type": "number"
},
"cacheWrite": {
"type": "number"
}
}
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.model.provider.remove",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"provider"
],
"properties": {
"provider": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.model.owned-providers.replace",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"owner",
"providers"
],
"properties": {
"owner": {
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$",
"type": "string"
},
"providers": {
"type": "object",
"patternProperties": {
"^[a-z0-9][a-z0-9_-]{0,31}$": {
"additionalProperties": false,
"type": "object",
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"api": {
"type": "string"
},
"displayName": {
"type": "string"
},
"authHeader": {
"type": "boolean"
},
"useProxy": {
"type": "boolean"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"models": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
},
"name": {
"type": "string"
},
"api": {
"type": "string"
},
"reasoning": {
"type": "boolean"
},
"reasoningLevels": {
"type": "array",
"items": {
"type": "string"
}
},
"defaultReasoningLevel": {
"type": "string"
},
"input": {
"minItems": 1,
"uniqueItems": true,
"type": "array",
"items": {
"anyOf": [
{
"const": "text",
"type": "string"
},
{
"const": "image",
"type": "string"
}
]
}
},
"contextWindow": {
"type": "number"
},
"maxTokens": {
"type": "number"
}
}
}
}
}
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.model.owned-providers.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"owner"
],
"properties": {
"owner": {
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$",
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"providers"
],
"properties": {
"providers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"additionalProperties": false,
"type": "object",
"properties": {
"baseUrl": {
"type": "string"
},
"apiKey": {
"type": "string"
},
"api": {
"type": "string"
},
"displayName": {
"type": "string"
},
"authHeader": {
"type": "boolean"
},
"useProxy": {
"type": "boolean"
},
"headers": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"type": "string"
}
}
},
"models": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"modelId": {
"type": "string"
},
"name": {
"type": "string"
},
"api": {
"type": "string"
},
"reasoning": {
"type": "boolean"
},
"reasoningLevels": {
"type": "array",
"items": {
"type": "string"
}
},
"defaultReasoningLevel": {
"type": "string"
},
"input": {
"type": "array",
"items": {
"type": "string"
}
},
"contextWindow": {
"type": "number"
},
"maxTokens": {
"type": "number"
},
"cost": {
"additionalProperties": false,
"type": "object",
"required": [
"input",
"output",
"cacheRead",
"cacheWrite"
],
"properties": {
"input": {
"type": "number"
},
"output": {
"type": "number"
},
"cacheRead": {
"type": "number"
},
"cacheWrite": {
"type": "number"
}
}
}
}
}
}
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.navigation.open-hosted-route",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"namespace",
"ownerId",
"pageId"
],
"properties": {
"namespace": {
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$",
"type": "string"
},
"ownerId": {
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$",
"type": "string"
},
"pageId": {
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.project.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"workspacePath",
"projects",
"archivedProjects"
],
"properties": {
"workspacePath": {
"type": "string"
},
"projects": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
},
"archivedProjects": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.project.create",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.project.open",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
},
"name": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.project.rename",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path",
"name"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
},
"name": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.project.archive",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.project.unarchive",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.project.remove",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.scheduler.task.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"schedule",
"runTarget",
"enabled",
"createdAt",
"updatedAt",
"lastRunAt",
"lastRunStatus"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"schedule": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"at"
],
"properties": {
"kind": {
"const": "once",
"type": "string"
},
"at": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"minute"
],
"properties": {
"kind": {
"const": "hourly",
"type": "string"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "daily",
"type": "string"
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"weekdays",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "weekly",
"type": "string"
},
"weekdays": {
"minItems": 1,
"type": "array",
"items": {
"minimum": 0,
"maximum": 6,
"type": "integer"
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"days",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "monthly",
"type": "string"
},
"days": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"minimum": 1,
"maximum": 31,
"type": "integer"
},
{
"const": "last",
"type": "string"
}
]
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"everyMinutes",
"startAt"
],
"properties": {
"kind": {
"const": "interval",
"type": "string"
},
"everyMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"startAt": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"cron"
],
"properties": {
"kind": {
"const": "custom",
"type": "string"
},
"cron": {
"pattern": "\\S",
"type": "string"
}
}
}
]
},
"runTarget": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd"
],
"properties": {
"mode": {
"const": "new-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd",
"sessionPath"
],
"properties": {
"mode": {
"const": "same-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
},
"sessionPath": {
"anyOf": [
{
"pattern": "\\S",
"type": "string"
},
{
"type": "null"
}
]
}
}
}
]
},
"model": {
"additionalProperties": false,
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"pattern": "\\S",
"type": "string"
},
"reasoning": {
"pattern": "\\S",
"type": "string"
}
}
},
"notification": {
"additionalProperties": false,
"type": "object",
"required": [
"webhookIds",
"when",
"template"
],
"properties": {
"webhookIds": {
"minItems": 1,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"when": {
"anyOf": [
{
"const": "always",
"type": "string"
},
{
"const": "success",
"type": "string"
},
{
"const": "failure",
"type": "string"
}
]
},
"template": {
"pattern": "\\S",
"type": "string"
}
}
},
"enabled": {
"type": "boolean"
},
"suspendedReason": {
"anyOf": [
{
"const": "session-deleted",
"type": "string"
},
{
"const": "project-removed",
"type": "string"
}
]
},
"createdAt": {
"type": "number"
},
"updatedAt": {
"type": "number"
},
"lastRunAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"lastRunStatus": {
"anyOf": [
{
"anyOf": [
{
"const": "success",
"type": "string"
},
{
"const": "failed",
"type": "string"
}
]
},
{
"type": "null"
}
]
}
}
}
},
"version": 2
},
{
"id": "cap.domain.vetta.scheduler.task.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"taskId"
],
"properties": {
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"schedule",
"runTarget",
"enabled",
"createdAt",
"updatedAt",
"lastRunAt",
"lastRunStatus"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"schedule": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"at"
],
"properties": {
"kind": {
"const": "once",
"type": "string"
},
"at": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"minute"
],
"properties": {
"kind": {
"const": "hourly",
"type": "string"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "daily",
"type": "string"
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"weekdays",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "weekly",
"type": "string"
},
"weekdays": {
"minItems": 1,
"type": "array",
"items": {
"minimum": 0,
"maximum": 6,
"type": "integer"
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"days",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "monthly",
"type": "string"
},
"days": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"minimum": 1,
"maximum": 31,
"type": "integer"
},
{
"const": "last",
"type": "string"
}
]
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"everyMinutes",
"startAt"
],
"properties": {
"kind": {
"const": "interval",
"type": "string"
},
"everyMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"startAt": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"cron"
],
"properties": {
"kind": {
"const": "custom",
"type": "string"
},
"cron": {
"pattern": "\\S",
"type": "string"
}
}
}
]
},
"runTarget": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd"
],
"properties": {
"mode": {
"const": "new-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd",
"sessionPath"
],
"properties": {
"mode": {
"const": "same-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
},
"sessionPath": {
"anyOf": [
{
"pattern": "\\S",
"type": "string"
},
{
"type": "null"
}
]
}
}
}
]
},
"model": {
"additionalProperties": false,
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"pattern": "\\S",
"type": "string"
},
"reasoning": {
"pattern": "\\S",
"type": "string"
}
}
},
"notification": {
"additionalProperties": false,
"type": "object",
"required": [
"webhookIds",
"when",
"template"
],
"properties": {
"webhookIds": {
"minItems": 1,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"when": {
"anyOf": [
{
"const": "always",
"type": "string"
},
{
"const": "success",
"type": "string"
},
{
"const": "failure",
"type": "string"
}
]
},
"template": {
"pattern": "\\S",
"type": "string"
}
}
},
"enabled": {
"type": "boolean"
},
"suspendedReason": {
"anyOf": [
{
"const": "session-deleted",
"type": "string"
},
{
"const": "project-removed",
"type": "string"
}
]
},
"createdAt": {
"type": "number"
},
"updatedAt": {
"type": "number"
},
"lastRunAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"lastRunStatus": {
"anyOf": [
{
"anyOf": [
{
"const": "success",
"type": "string"
},
{
"const": "failed",
"type": "string"
}
]
},
{
"type": "null"
}
]
}
}
},
"version": 2
},
{
"id": "cap.domain.vetta.scheduler.task.history.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"taskId"
],
"properties": {
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"taskId",
"startedAt",
"completedAt",
"status",
"prompt",
"responsePreview"
],
"properties": {
"id": {
"type": "string"
},
"taskId": {
"type": "string"
},
"sessionId": {
"type": "string"
},
"sessionPath": {
"type": "string"
},
"cwd": {
"type": "string"
},
"mode": {
"anyOf": [
{
"const": "new-session",
"type": "string"
},
{
"const": "same-session",
"type": "string"
}
]
},
"startedAt": {
"type": "number"
},
"completedAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"status": {
"anyOf": [
{
"const": "running",
"type": "string"
},
{
"const": "success",
"type": "string"
},
{
"const": "failed",
"type": "string"
},
{
"const": "aborted",
"type": "string"
},
{
"const": "skipped",
"type": "string"
},
{
"const": "missed",
"type": "string"
}
]
},
"prompt": {
"type": "string"
},
"responsePreview": {
"type": "string"
},
"error": {
"type": "string"
},
"durationMs": {
"type": "number"
},
"reason": {
"anyOf": [
{
"const": "previous-running",
"type": "string"
},
{
"const": "app-not-running",
"type": "string"
},
{
"const": "system-sleep",
"type": "string"
}
]
},
"missedCount": {
"type": "number"
},
"missedUntil": {
"type": "number"
},
"notifyError": {
"type": "string"
}
}
}
},
"version": 2
},
{
"id": "cap.domain.vetta.scheduler.task.create",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"prompt",
"schedule",
"runTarget",
"enabled"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"prompt": {
"pattern": "\\S",
"type": "string"
},
"schedule": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"at"
],
"properties": {
"kind": {
"const": "once",
"type": "string"
},
"at": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"minute"
],
"properties": {
"kind": {
"const": "hourly",
"type": "string"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "daily",
"type": "string"
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"weekdays",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "weekly",
"type": "string"
},
"weekdays": {
"minItems": 1,
"type": "array",
"items": {
"minimum": 0,
"maximum": 6,
"type": "integer"
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"days",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "monthly",
"type": "string"
},
"days": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"minimum": 1,
"maximum": 31,
"type": "integer"
},
{
"const": "last",
"type": "string"
}
]
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"everyMinutes",
"startAt"
],
"properties": {
"kind": {
"const": "interval",
"type": "string"
},
"everyMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"startAt": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"cron"
],
"properties": {
"kind": {
"const": "custom",
"type": "string"
},
"cron": {
"pattern": "\\S",
"type": "string"
}
}
}
]
},
"runTarget": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"const": "new-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"sessionPath"
],
"properties": {
"mode": {
"const": "same-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
},
"sessionPath": {
"anyOf": [
{
"pattern": "\\S",
"type": "string"
},
{
"type": "null"
}
]
}
}
}
]
},
"model": {
"additionalProperties": false,
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"pattern": "\\S",
"type": "string"
},
"reasoning": {
"pattern": "\\S",
"type": "string"
}
}
},
"notification": {
"additionalProperties": false,
"type": "object",
"required": [
"webhookIds",
"when",
"template"
],
"properties": {
"webhookIds": {
"minItems": 1,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"when": {
"anyOf": [
{
"const": "always",
"type": "string"
},
{
"const": "success",
"type": "string"
},
{
"const": "failure",
"type": "string"
}
]
},
"template": {
"pattern": "\\S",
"type": "string"
}
}
},
"enabled": {
"type": "boolean"
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"schedule",
"runTarget",
"enabled",
"createdAt",
"updatedAt",
"lastRunAt",
"lastRunStatus"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"schedule": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"at"
],
"properties": {
"kind": {
"const": "once",
"type": "string"
},
"at": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"minute"
],
"properties": {
"kind": {
"const": "hourly",
"type": "string"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "daily",
"type": "string"
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"weekdays",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "weekly",
"type": "string"
},
"weekdays": {
"minItems": 1,
"type": "array",
"items": {
"minimum": 0,
"maximum": 6,
"type": "integer"
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"days",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "monthly",
"type": "string"
},
"days": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"minimum": 1,
"maximum": 31,
"type": "integer"
},
{
"const": "last",
"type": "string"
}
]
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"everyMinutes",
"startAt"
],
"properties": {
"kind": {
"const": "interval",
"type": "string"
},
"everyMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"startAt": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"cron"
],
"properties": {
"kind": {
"const": "custom",
"type": "string"
},
"cron": {
"pattern": "\\S",
"type": "string"
}
}
}
]
},
"runTarget": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd"
],
"properties": {
"mode": {
"const": "new-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd",
"sessionPath"
],
"properties": {
"mode": {
"const": "same-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
},
"sessionPath": {
"anyOf": [
{
"pattern": "\\S",
"type": "string"
},
{
"type": "null"
}
]
}
}
}
]
},
"model": {
"additionalProperties": false,
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"pattern": "\\S",
"type": "string"
},
"reasoning": {
"pattern": "\\S",
"type": "string"
}
}
},
"notification": {
"additionalProperties": false,
"type": "object",
"required": [
"webhookIds",
"when",
"template"
],
"properties": {
"webhookIds": {
"minItems": 1,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"when": {
"anyOf": [
{
"const": "always",
"type": "string"
},
{
"const": "success",
"type": "string"
},
{
"const": "failure",
"type": "string"
}
]
},
"template": {
"pattern": "\\S",
"type": "string"
}
}
},
"enabled": {
"type": "boolean"
},
"suspendedReason": {
"anyOf": [
{
"const": "session-deleted",
"type": "string"
},
{
"const": "project-removed",
"type": "string"
}
]
},
"createdAt": {
"type": "number"
},
"updatedAt": {
"type": "number"
},
"lastRunAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"lastRunStatus": {
"anyOf": [
{
"anyOf": [
{
"const": "success",
"type": "string"
},
{
"const": "failed",
"type": "string"
}
]
},
{
"type": "null"
}
]
}
}
},
"version": 2
},
{
"id": "cap.domain.vetta.scheduler.task.update",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"taskId",
"data"
],
"properties": {
"taskId": {
"pattern": "\\S",
"type": "string"
},
"data": {
"additionalProperties": false,
"minProperties": 1,
"type": "object",
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"prompt": {
"pattern": "\\S",
"type": "string"
},
"schedule": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"at"
],
"properties": {
"kind": {
"const": "once",
"type": "string"
},
"at": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"minute"
],
"properties": {
"kind": {
"const": "hourly",
"type": "string"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "daily",
"type": "string"
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"weekdays",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "weekly",
"type": "string"
},
"weekdays": {
"minItems": 1,
"type": "array",
"items": {
"minimum": 0,
"maximum": 6,
"type": "integer"
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"days",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "monthly",
"type": "string"
},
"days": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"minimum": 1,
"maximum": 31,
"type": "integer"
},
{
"const": "last",
"type": "string"
}
]
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"everyMinutes",
"startAt"
],
"properties": {
"kind": {
"const": "interval",
"type": "string"
},
"everyMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"startAt": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"cron"
],
"properties": {
"kind": {
"const": "custom",
"type": "string"
},
"cron": {
"pattern": "\\S",
"type": "string"
}
}
}
]
},
"runTarget": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"const": "new-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"sessionPath"
],
"properties": {
"mode": {
"const": "same-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
},
"sessionPath": {
"anyOf": [
{
"pattern": "\\S",
"type": "string"
},
{
"type": "null"
}
]
}
}
}
]
},
"model": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"pattern": "\\S",
"type": "string"
},
"reasoning": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"type": "null"
}
]
},
"notification": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"webhookIds",
"when",
"template"
],
"properties": {
"webhookIds": {
"minItems": 1,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"when": {
"anyOf": [
{
"const": "always",
"type": "string"
},
{
"const": "success",
"type": "string"
},
{
"const": "failure",
"type": "string"
}
]
},
"template": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"type": "null"
}
]
},
"enabled": {
"type": "boolean"
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"schedule",
"runTarget",
"enabled",
"createdAt",
"updatedAt",
"lastRunAt",
"lastRunStatus"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"schedule": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"at"
],
"properties": {
"kind": {
"const": "once",
"type": "string"
},
"at": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"minute"
],
"properties": {
"kind": {
"const": "hourly",
"type": "string"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "daily",
"type": "string"
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"weekdays",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "weekly",
"type": "string"
},
"weekdays": {
"minItems": 1,
"type": "array",
"items": {
"minimum": 0,
"maximum": 6,
"type": "integer"
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"days",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "monthly",
"type": "string"
},
"days": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"minimum": 1,
"maximum": 31,
"type": "integer"
},
{
"const": "last",
"type": "string"
}
]
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"everyMinutes",
"startAt"
],
"properties": {
"kind": {
"const": "interval",
"type": "string"
},
"everyMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"startAt": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"cron"
],
"properties": {
"kind": {
"const": "custom",
"type": "string"
},
"cron": {
"pattern": "\\S",
"type": "string"
}
}
}
]
},
"runTarget": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd"
],
"properties": {
"mode": {
"const": "new-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd",
"sessionPath"
],
"properties": {
"mode": {
"const": "same-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
},
"sessionPath": {
"anyOf": [
{
"pattern": "\\S",
"type": "string"
},
{
"type": "null"
}
]
}
}
}
]
},
"model": {
"additionalProperties": false,
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"pattern": "\\S",
"type": "string"
},
"reasoning": {
"pattern": "\\S",
"type": "string"
}
}
},
"notification": {
"additionalProperties": false,
"type": "object",
"required": [
"webhookIds",
"when",
"template"
],
"properties": {
"webhookIds": {
"minItems": 1,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"when": {
"anyOf": [
{
"const": "always",
"type": "string"
},
{
"const": "success",
"type": "string"
},
{
"const": "failure",
"type": "string"
}
]
},
"template": {
"pattern": "\\S",
"type": "string"
}
}
},
"enabled": {
"type": "boolean"
},
"suspendedReason": {
"anyOf": [
{
"const": "session-deleted",
"type": "string"
},
{
"const": "project-removed",
"type": "string"
}
]
},
"createdAt": {
"type": "number"
},
"updatedAt": {
"type": "number"
},
"lastRunAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"lastRunStatus": {
"anyOf": [
{
"anyOf": [
{
"const": "success",
"type": "string"
},
{
"const": "failed",
"type": "string"
}
]
},
{
"type": "null"
}
]
}
}
},
"version": 2
},
{
"id": "cap.domain.vetta.scheduler.task.delete",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"taskId"
],
"properties": {
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"taskId"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"taskId": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.scheduler.task.set-enabled",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"taskId",
"enabled"
],
"properties": {
"taskId": {
"pattern": "\\S",
"type": "string"
},
"enabled": {
"type": "boolean"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"name",
"prompt",
"schedule",
"runTarget",
"enabled",
"createdAt",
"updatedAt",
"lastRunAt",
"lastRunStatus"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"prompt": {
"type": "string"
},
"schedule": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"at"
],
"properties": {
"kind": {
"const": "once",
"type": "string"
},
"at": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"minute"
],
"properties": {
"kind": {
"const": "hourly",
"type": "string"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "daily",
"type": "string"
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"weekdays",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "weekly",
"type": "string"
},
"weekdays": {
"minItems": 1,
"type": "array",
"items": {
"minimum": 0,
"maximum": 6,
"type": "integer"
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"days",
"hour",
"minute"
],
"properties": {
"kind": {
"const": "monthly",
"type": "string"
},
"days": {
"minItems": 1,
"type": "array",
"items": {
"anyOf": [
{
"minimum": 1,
"maximum": 31,
"type": "integer"
},
{
"const": "last",
"type": "string"
}
]
}
},
"hour": {
"minimum": 0,
"maximum": 23,
"type": "integer"
},
"minute": {
"minimum": 0,
"maximum": 59,
"type": "integer"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"everyMinutes",
"startAt"
],
"properties": {
"kind": {
"const": "interval",
"type": "string"
},
"everyMinutes": {
"minimum": 1,
"maximum": 10080,
"type": "integer"
},
"startAt": {
"type": "number"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"cron"
],
"properties": {
"kind": {
"const": "custom",
"type": "string"
},
"cron": {
"pattern": "\\S",
"type": "string"
}
}
}
]
},
"runTarget": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd"
],
"properties": {
"mode": {
"const": "new-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"mode",
"projectCwd",
"sessionPath"
],
"properties": {
"mode": {
"const": "same-session",
"type": "string"
},
"projectCwd": {
"pattern": "\\S",
"type": "string"
},
"sessionPath": {
"anyOf": [
{
"pattern": "\\S",
"type": "string"
},
{
"type": "null"
}
]
}
}
}
]
},
"model": {
"additionalProperties": false,
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"pattern": "\\S",
"type": "string"
},
"reasoning": {
"pattern": "\\S",
"type": "string"
}
}
},
"notification": {
"additionalProperties": false,
"type": "object",
"required": [
"webhookIds",
"when",
"template"
],
"properties": {
"webhookIds": {
"minItems": 1,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
},
"when": {
"anyOf": [
{
"const": "always",
"type": "string"
},
{
"const": "success",
"type": "string"
},
{
"const": "failure",
"type": "string"
}
]
},
"template": {
"pattern": "\\S",
"type": "string"
}
}
},
"enabled": {
"type": "boolean"
},
"suspendedReason": {
"anyOf": [
{
"const": "session-deleted",
"type": "string"
},
{
"const": "project-removed",
"type": "string"
}
]
},
"createdAt": {
"type": "number"
},
"updatedAt": {
"type": "number"
},
"lastRunAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"lastRunStatus": {
"anyOf": [
{
"anyOf": [
{
"const": "success",
"type": "string"
},
{
"const": "failed",
"type": "string"
}
]
},
{
"type": "null"
}
]
}
}
},
"version": 2
},
{
"id": "cap.domain.vetta.scheduler.task.run",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"taskId"
],
"properties": {
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"taskId"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"taskId": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.scheduler.task.abort",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"taskId"
],
"properties": {
"taskId": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"status",
"taskId"
],
"properties": {
"status": {
"anyOf": [
{
"const": "accepted",
"type": "string"
},
{
"const": "noop",
"type": "string"
}
]
},
"taskId": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.session.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"cwd"
],
"properties": {
"cwd": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"path",
"cwd",
"firstMessage",
"modifiedAt"
],
"properties": {
"id": {
"type": "string"
},
"path": {
"type": "string"
},
"cwd": {
"type": "string"
},
"name": {
"type": "string"
},
"firstMessage": {
"type": "string"
},
"modifiedAt": {
"type": "number"
},
"lastMessagePreview": {
"type": "string"
},
"parentSessionPath": {
"type": "string"
},
"parentEntryId": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.session.runtime-project.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"cwd",
"sessionCount"
],
"properties": {
"cwd": {
"type": "string"
},
"sessionCount": {
"minimum": 0,
"type": "integer"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.shortcut.settings.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"bindings"
],
"properties": {
"bindings": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"defaultShortcut",
"shortcut",
"isDefault"
],
"properties": {
"id": {
"type": "string"
},
"defaultShortcut": {
"type": "string"
},
"shortcut": {
"type": "string"
},
"isDefault": {
"type": "boolean"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.shortcut.binding.set",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"shortcut"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
},
"shortcut": {
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"bindings"
],
"properties": {
"bindings": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"defaultShortcut",
"shortcut",
"isDefault"
],
"properties": {
"id": {
"type": "string"
},
"defaultShortcut": {
"type": "string"
},
"shortcut": {
"type": "string"
},
"isDefault": {
"type": "boolean"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.shortcut.binding.reset",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"bindings",
"shortcut"
],
"properties": {
"bindings": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"defaultShortcut",
"shortcut",
"isDefault"
],
"properties": {
"id": {
"type": "string"
},
"defaultShortcut": {
"type": "string"
},
"shortcut": {
"type": "string"
},
"isDefault": {
"type": "boolean"
}
}
}
},
"shortcut": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.shortcut.binding.reset-all",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"bindings"
],
"properties": {
"bindings": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"defaultShortcut",
"shortcut",
"isDefault"
],
"properties": {
"id": {
"type": "string"
},
"defaultShortcut": {
"type": "string"
},
"shortcut": {
"type": "string"
},
"isDefault": {
"type": "boolean"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.skill.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {
"cwd": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"description",
"source",
"type"
],
"properties": {
"name": {
"type": "string"
},
"alias": {
"type": "string"
},
"description": {
"type": "string"
},
"source": {
"type": "string"
},
"type": {
"const": "skill",
"type": "string"
},
"provenance": {
"anyOf": [
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"scope"
],
"properties": {
"kind": {
"const": "native",
"type": "string"
},
"scope": {
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"providerType",
"providerId"
],
"properties": {
"kind": {
"const": "provided",
"type": "string"
},
"providerType": {
"anyOf": [
{
"const": "plugin",
"type": "string"
},
{
"const": "sdk",
"type": "string"
},
{
"const": "runtime",
"type": "string"
}
]
},
"providerId": {
"type": "string"
}
}
},
{
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"providerId"
],
"properties": {
"kind": {
"const": "builtin",
"type": "string"
},
"providerId": {
"type": "string"
}
}
}
]
},
"presentation": {
"additionalProperties": false,
"type": "object",
"properties": {
"defaultVisibility": {
"anyOf": [
{
"const": "visible",
"type": "string"
},
{
"const": "hidden",
"type": "string"
}
]
},
"surfaces": {
"additionalProperties": false,
"type": "object",
"properties": {
"abilityCatalog": {
"anyOf": [
{
"const": "visible",
"type": "string"
},
{
"const": "hidden",
"type": "string"
}
]
},
"agentConfiguration": {
"anyOf": [
{
"const": "visible",
"type": "string"
},
{
"const": "hidden",
"type": "string"
}
]
},
"commandPalette": {
"anyOf": [
{
"const": "visible",
"type": "string"
},
{
"const": "hidden",
"type": "string"
}
]
},
"skillPicker": {
"anyOf": [
{
"const": "visible",
"type": "string"
},
{
"const": "hidden",
"type": "string"
}
]
},
"pluginDetail": {
"anyOf": [
{
"const": "visible",
"type": "string"
},
{
"const": "hidden",
"type": "string"
}
]
}
}
},
"displayName": {
"type": "string"
},
"displayDescription": {
"type": "string"
}
}
},
"sourcePluginId": {
"type": "string"
},
"icon": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.skill.installed.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "object",
"patternProperties": {
"^(.*)$": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"version",
"installedAt",
"source",
"enabled"
],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"installedAt": {
"type": "string"
},
"source": {
"anyOf": [
{
"const": "market",
"type": "string"
},
{
"const": "custom",
"type": "string"
}
]
},
"enabled": {
"type": "boolean"
},
"type": {
"const": "skill",
"type": "string"
},
"alias": {
"type": "string"
},
"marketDescription": {
"type": "string"
},
"description": {
"type": "string"
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.skill.installed.set-enabled",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"enabled"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"enabled": {
"type": "boolean"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name",
"enabled"
],
"properties": {
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.skill.installed.uninstall",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"type": {
"const": "skill",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.storage-usage.scan",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "object",
"required": [
"scannedAt",
"home",
"totalBytes",
"groups",
"candidates",
"largest"
],
"properties": {
"scannedAt": {
"type": "number"
},
"home": {
"type": "string"
},
"totalBytes": {
"type": "number"
},
"groups": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"bytes"
],
"properties": {
"id": {
"type": "string"
},
"bytes": {
"type": "number"
}
}
}
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"kind",
"group",
"path",
"bytes",
"lastActiveAt",
"tier",
"disposal",
"restoreCommand",
"evidence"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"group": {
"type": "string"
},
"path": {
"type": "string"
},
"owner": {
"type": "string"
},
"bytes": {
"type": "number"
},
"lastActiveAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"tier": {
"anyOf": [
{
"const": "manual",
"type": "string"
},
{
"const": "review",
"type": "string"
}
]
},
"disposal": {
"anyOf": [
{
"const": "delete",
"type": "string"
},
{
"const": "trash",
"type": "string"
}
]
},
"restoreCommand": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"evidence": {
"type": "array",
"items": {
"type": "string"
}
},
"blocked": {
"type": "string"
}
}
}
},
"largest": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"group",
"bytes",
"lastActiveAt"
],
"properties": {
"path": {
"type": "string"
},
"group": {
"type": "string"
},
"bytes": {
"type": "number"
},
"lastActiveAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"sessionPath": {
"type": "string"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.storage-usage.last-scan.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"anyOf": [
{
"type": "object",
"required": [
"scannedAt",
"home",
"totalBytes",
"groups",
"candidates",
"largest"
],
"properties": {
"scannedAt": {
"type": "number"
},
"home": {
"type": "string"
},
"totalBytes": {
"type": "number"
},
"groups": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"bytes"
],
"properties": {
"id": {
"type": "string"
},
"bytes": {
"type": "number"
}
}
}
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"kind",
"group",
"path",
"bytes",
"lastActiveAt",
"tier",
"disposal",
"restoreCommand",
"evidence"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"group": {
"type": "string"
},
"path": {
"type": "string"
},
"owner": {
"type": "string"
},
"bytes": {
"type": "number"
},
"lastActiveAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"tier": {
"anyOf": [
{
"const": "manual",
"type": "string"
},
{
"const": "review",
"type": "string"
}
]
},
"disposal": {
"anyOf": [
{
"const": "delete",
"type": "string"
},
{
"const": "trash",
"type": "string"
}
]
},
"restoreCommand": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"evidence": {
"type": "array",
"items": {
"type": "string"
}
},
"blocked": {
"type": "string"
}
}
}
},
"largest": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"group",
"bytes",
"lastActiveAt"
],
"properties": {
"path": {
"type": "string"
},
"group": {
"type": "string"
},
"bytes": {
"type": "number"
},
"lastActiveAt": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"sessionPath": {
"type": "string"
}
}
}
}
}
},
{
"type": "null"
}
]
},
"version": 1
},
{
"id": "cap.domain.vetta.storage-usage.clean",
"inputSchema": {
"type": "object",
"required": [
"ids"
],
"properties": {
"ids": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"pattern": "\\S",
"type": "string"
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"type": "object",
"required": [
"freedBytes",
"trashedBytes",
"items"
],
"properties": {
"freedBytes": {
"type": "number"
},
"trashedBytes": {
"type": "number"
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"path",
"bytes",
"disposal",
"ok"
],
"properties": {
"id": {
"type": "string"
},
"path": {
"type": "string"
},
"bytes": {
"type": "number"
},
"disposal": {
"anyOf": [
{
"const": "delete",
"type": "string"
},
{
"const": "trash",
"type": "string"
}
]
},
"ok": {
"type": "boolean"
},
"reason": {
"type": "string"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.updater.state.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"phase",
"currentVersion"
],
"properties": {
"phase": {
"anyOf": [
{
"const": "idle",
"type": "string"
},
{
"const": "checking",
"type": "string"
},
{
"const": "available",
"type": "string"
},
{
"const": "downloading",
"type": "string"
},
{
"const": "ready",
"type": "string"
},
{
"const": "installing",
"type": "string"
},
{
"const": "error",
"type": "string"
}
]
},
"currentVersion": {
"type": "string"
},
"latestVersion": {
"type": "string"
},
"releaseNote": {
"type": "string"
},
"progress": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"downloadedBytes": {
"minimum": 0,
"type": "number"
},
"totalBytes": {
"minimum": 0,
"type": "number"
},
"assetFileName": {
"type": "string"
},
"error": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.updater.current-version.get",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "string"
},
"version": 1
},
{
"id": "cap.domain.vetta.updater.check",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"phase",
"currentVersion"
],
"properties": {
"phase": {
"anyOf": [
{
"const": "idle",
"type": "string"
},
{
"const": "checking",
"type": "string"
},
{
"const": "available",
"type": "string"
},
{
"const": "downloading",
"type": "string"
},
{
"const": "ready",
"type": "string"
},
{
"const": "installing",
"type": "string"
},
{
"const": "error",
"type": "string"
}
]
},
"currentVersion": {
"type": "string"
},
"latestVersion": {
"type": "string"
},
"releaseNote": {
"type": "string"
},
"progress": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"downloadedBytes": {
"minimum": 0,
"type": "number"
},
"totalBytes": {
"minimum": 0,
"type": "number"
},
"assetFileName": {
"type": "string"
},
"error": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.updater.download",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"phase",
"currentVersion"
],
"properties": {
"phase": {
"anyOf": [
{
"const": "idle",
"type": "string"
},
{
"const": "checking",
"type": "string"
},
{
"const": "available",
"type": "string"
},
{
"const": "downloading",
"type": "string"
},
{
"const": "ready",
"type": "string"
},
{
"const": "installing",
"type": "string"
},
{
"const": "error",
"type": "string"
}
]
},
"currentVersion": {
"type": "string"
},
"latestVersion": {
"type": "string"
},
"releaseNote": {
"type": "string"
},
"progress": {
"minimum": 0,
"maximum": 1,
"type": "number"
},
"downloadedBytes": {
"minimum": 0,
"type": "number"
},
"totalBytes": {
"minimum": 0,
"type": "number"
},
"assetFileName": {
"type": "string"
},
"error": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.updater.install",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.updater.dismiss",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.updater.cancel",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.webhook.endpoint.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"kind",
"name",
"enabled",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "feishu",
"type": "string"
},
{
"const": "dingtalk",
"type": "string"
}
]
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"urlMask": {
"type": "string"
},
"hasSignSecret": {
"type": "boolean"
},
"feishu": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
}
}
},
"dingtalk": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
},
"atMobiles": {
"type": "array",
"items": {
"type": "string"
}
},
"keyword": {
"type": "string"
}
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.webhook.provider.list",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"properties": {}
},
"kind": "query",
"layer": "domain",
"outputSchema": {
"type": "array",
"items": {
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"displayName"
],
"properties": {
"kind": {
"anyOf": [
{
"const": "feishu",
"type": "string"
},
{
"const": "dingtalk",
"type": "string"
}
]
},
"displayName": {
"type": "string"
},
"iconClass": {
"type": "string"
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.webhook.endpoint.create",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"additionalProperties": false,
"type": "object",
"required": [
"kind",
"name",
"webhookUrl"
],
"properties": {
"kind": {
"anyOf": [
{
"const": "feishu",
"type": "string"
},
{
"const": "dingtalk",
"type": "string"
}
]
},
"name": {
"type": "string"
},
"webhookUrl": {
"pattern": "\\S",
"type": "string"
},
"signSecret": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"feishu": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
}
}
},
"dingtalk": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
},
"atMobiles": {
"type": "array",
"items": {
"type": "string"
}
},
"keyword": {
"type": "string"
}
}
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"kind",
"name",
"enabled",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "feishu",
"type": "string"
},
{
"const": "dingtalk",
"type": "string"
}
]
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"urlMask": {
"type": "string"
},
"hasSignSecret": {
"type": "boolean"
},
"feishu": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
}
}
},
"dingtalk": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
},
"atMobiles": {
"type": "array",
"items": {
"type": "string"
}
},
"keyword": {
"type": "string"
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.webhook.endpoint.update",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"data"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
},
"data": {
"additionalProperties": false,
"minProperties": 1,
"type": "object",
"properties": {
"name": {
"pattern": "\\S",
"type": "string"
},
"enabled": {
"type": "boolean"
},
"webhookUrl": {
"pattern": "\\S",
"type": "string"
},
"signSecret": {
"type": "string"
},
"feishu": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
}
}
},
"dingtalk": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
},
"atMobiles": {
"type": "array",
"items": {
"type": "string"
}
},
"keyword": {
"type": "string"
}
}
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"kind",
"name",
"enabled",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "feishu",
"type": "string"
},
{
"const": "dingtalk",
"type": "string"
}
]
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"urlMask": {
"type": "string"
},
"hasSignSecret": {
"type": "boolean"
},
"feishu": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
}
}
},
"dingtalk": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
},
"atMobiles": {
"type": "array",
"items": {
"type": "string"
}
},
"keyword": {
"type": "string"
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.webhook.endpoint.delete",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": false,
"version": 1
},
{
"id": "cap.domain.vetta.webhook.endpoint.set-enabled",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"enabled"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
},
"enabled": {
"type": "boolean"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"kind",
"name",
"enabled",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"anyOf": [
{
"const": "feishu",
"type": "string"
},
{
"const": "dingtalk",
"type": "string"
}
]
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"urlMask": {
"type": "string"
},
"hasSignSecret": {
"type": "boolean"
},
"feishu": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
}
}
},
"dingtalk": {
"additionalProperties": false,
"type": "object",
"properties": {
"mentionAll": {
"type": "boolean"
},
"atMobiles": {
"type": "array",
"items": {
"type": "string"
}
},
"keyword": {
"type": "string"
}
}
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.webhook.endpoint.test",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean"
},
"error": {
"type": "string"
}
}
},
"version": 1
},
{
"id": "cap.domain.vetta.webhook.endpoint.send",
"inputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"id",
"message"
],
"properties": {
"id": {
"pattern": "\\S",
"type": "string"
},
"message": {
"additionalProperties": false,
"type": "object",
"required": [
"text"
],
"properties": {
"title": {
"type": "string"
},
"text": {
"type": "string"
},
"level": {
"anyOf": [
{
"const": "info",
"type": "string"
},
{
"const": "warn",
"type": "string"
},
{
"const": "error",
"type": "string"
},
{
"const": "success",
"type": "string"
}
]
}
}
}
}
},
"kind": "command",
"layer": "domain",
"outputSchema": {
"additionalProperties": false,
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean"
},
"error": {
"type": "string"
}
}
},
"version": 1
}
]
}