{ "openapi": "3.0.3", "info": { "title": "AI Team API", "version": "0.1.0", "description": "HTTP REST API for the AI Team web UI and CLI." }, "tags": [ { "name": "system", "description": "Server health and workspace info" }, { "name": "agents", "description": "Agent directory and management" }, { "name": "team", "description": "Organisational structure" }, { "name": "chat", "description": "Chat session operations" }, { "name": "sessions", "description": "Session management" }, { "name": "artifacts", "description": "Session artifacts" }, { "name": "tasks", "description": "Agent task management" }, { "name": "developer", "description": "Developer / debug utilities" }, { "name": "files", "description": "Workspace file operations" }, { "name": "ide", "description": "IDE integration endpoints" }, { "name": "skills", "description": "Agent skill directory" }, { "name": "tools", "description": "Tool registry" }, { "name": "config", "description": "Configuration management" }, { "name": "meta", "description": "Agent metadata" }, { "name": "commands", "description": "Command execution" }, { "name": "access", "description": "Access control and permissions" } ], "servers": [ { "url": "http://localhost:3002" } ], "paths": { "/api/config": { "get": { "operationId": "getConfig", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamConfig" } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "updateConfig", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "version": { "type": "string", "nullable": true }, "projectName": { "type": "string", "nullable": true }, "llm": { "$ref": "#/components/schemas/LlmConfig", "nullable": true }, "providers": { "type": "object", "properties": {}, "nullable": true }, "defaultModel": { "type": "object", "properties": { "provider": { "type": "string" }, "model": { "type": "string" }, "contextWindow": { "type": "number", "nullable": true } }, "required": [ "provider", "model" ], "nullable": true }, "skillSources": { "type": "array", "items": { "type": "string" }, "nullable": true }, "allowedCliTools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "avatarStyle": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "randomAvatarUrls": { "type": "array", "items": { "type": "string" }, "nullable": true }, "fileTree": { "type": "object", "properties": { "readPaths": { "type": "array", "items": { "type": "string" }, "nullable": true }, "writePaths": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "nullable": true }, "fileTypeGroups": { "type": "object", "properties": {}, "nullable": true }, "modelKeys": { "type": "object", "properties": {}, "nullable": true }, "systemModels": { "type": "object", "properties": {}, "nullable": true }, "mcpConfigFiles": { "type": "array", "items": { "type": "string" }, "nullable": true } } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamConfig" } } } }, "default": { "description": "Error" } } } }, "/api/config/agent-model-keys": { "get": { "operationId": "getAgentModelKeys", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "usedKeys": { "type": "array", "items": { "type": "string" } }, "keysByAgent": { "type": "object", "properties": {} } }, "required": [ "usedKeys", "keysByAgent" ] } } } }, "default": { "description": "Error" } } } }, "/api/config/user-config": { "get": { "operationId": "getUserConfig", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserConfig" } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "saveUserConfig", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "version": { "type": "string", "nullable": true }, "llm": { "$ref": "#/components/schemas/LlmConfig", "nullable": true }, "providers": { "type": "object", "properties": {}, "nullable": true }, "defaultModel": { "type": "object", "properties": { "provider": { "type": "string" }, "model": { "type": "string" }, "contextWindow": { "type": "number", "nullable": true } }, "required": [ "provider", "model" ], "nullable": true }, "skillSources": { "type": "array", "items": { "type": "string" }, "nullable": true }, "allowedCliTools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "avatarStyle": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "randomAvatarUrls": { "type": "array", "items": { "type": "string" }, "nullable": true }, "fileTree": { "type": "object", "properties": { "readPaths": { "type": "array", "items": { "type": "string" }, "nullable": true }, "writePaths": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "nullable": true }, "fileTypeGroups": { "type": "object", "properties": {}, "nullable": true }, "modelKeys": { "type": "object", "properties": {}, "nullable": true }, "systemModels": { "type": "object", "properties": {}, "nullable": true }, "developer": { "$ref": "#/components/schemas/UserProfile", "nullable": true } } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserConfig" } } } }, "default": { "description": "Error" } } } }, "/api/config/user-config/providers/{providerRef}/test": { "post": { "operationId": "testProviderConnection", "parameters": [ { "name": "providerRef", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" }, "latencyMs": { "type": "number", "nullable": true }, "error": { "type": "string", "nullable": true }, "message": { "type": "string", "nullable": true } }, "required": [ "ok" ] } } } }, "default": { "description": "Error" } } } }, "/api/config/user-config/providers/{providerRef}/models/refresh": { "post": { "operationId": "refreshUserProviderModels", "parameters": [ { "name": "providerRef", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/config/providers/{providerRef}/models/refresh": { "post": { "operationId": "refreshProviderModels", "parameters": [ { "name": "providerRef", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/config/env-status": { "get": { "operationId": "getEnvStatus", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": {} } } } }, "default": { "description": "Error" } } } }, "/api/config/env-key": { "put": { "operationId": "setEnvVar", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "type": "string" } }, "required": [ "key", "value" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" } }, "required": [ "ok" ] } } } }, "default": { "description": "Error" } } } }, "/api/config/mcp-servers": { "get": { "operationId": "getMcpServers", "parameters": [ { "name": "agent", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetMcpServersResponse" } } } }, "default": { "description": "Error" } } } }, "/api/config/mcp-servers/allow": { "post": { "operationId": "allowMcpServer", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "server": { "type": "string" } }, "required": [ "agent", "server" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateMcpServerResponse" } } } }, "default": { "description": "Error" } } } }, "/api/config/mcp-servers/disallow": { "post": { "operationId": "disallowMcpServer", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "server": { "type": "string" } }, "required": [ "agent", "server" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateMcpServerResponse" } } } }, "default": { "description": "Error" } } } }, "/api/commands": { "get": { "operationId": "list", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "llm": { "$ref": "#/components/schemas/CommandLlmMetadata", "nullable": true }, "key": { "type": "string" }, "usage": { "type": "string", "nullable": true }, "description": { "type": "string" }, "aliases": { "type": "array", "items": { "type": "string" }, "nullable": true }, "availableIn": { "$ref": "#/components/schemas/CommandAvailability" }, "path": { "type": "array", "items": { "type": "string" }, "nullable": true }, "help": { "$ref": "#/components/schemas/CommandHelpMetadata", "nullable": true }, "intents": { "type": "array", "items": { "type": "string" }, "nullable": true }, "intentExamples": { "type": "array", "items": { "type": "string" }, "nullable": true }, "input": { "$ref": "#/components/schemas/CommandInputMetadata", "nullable": true } }, "required": [ "key", "description", "availableIn" ] } } } } }, "default": { "description": "Error" } } } }, "/api/agents": { "get": { "operationId": "list", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Agent" } } } } }, "default": { "description": "Error" } } } }, "/api/agents/search": { "get": { "operationId": "search", "parameters": [ { "name": "q", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "role", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "type", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "status", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "feature", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "specialization", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "tool", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "reportsTo", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "contextLevel", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SearchAgentsResponse" } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}": { "get": { "operationId": "resolve", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/frontmatter": { "get": { "operationId": "getFrontmatter", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentConfig" } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "updateFrontmatter", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": {} } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/avatar": { "post": { "operationId": "uploadAvatar", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "string" }, "ext": { "type": "string" } }, "required": [ "data", "ext" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/sections": { "get": { "operationId": "getSections", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MarkdownSection" } } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/sections/{heading}": { "put": { "operationId": "updateSection", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "heading", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "content": { "type": "string" } }, "required": [ "content" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/bio": { "get": { "operationId": "getBio", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "bio": { "type": "string", "nullable": true } }, "required": [ "bio" ] } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "updateBio", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "bio": { "type": "string" } }, "required": [ "bio" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/markdown": { "get": { "operationId": "getMarkdown", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "markdown": { "type": "string" } }, "required": [ "markdown" ] } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "updateMarkdown", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "markdown": { "type": "string" } }, "required": [ "markdown" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/files": { "get": { "operationId": "getFiles", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "files": { "type": "array", "items": { "$ref": "#/components/schemas/AnnotatedFile" } } }, "required": [ "files" ] } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/handoff-prompt": { "post": { "operationId": "generateHandoffPrompt", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "targetAgentId": { "type": "string" }, "context": { "type": "string", "nullable": true } }, "required": [ "targetAgentId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "prompt": { "type": "string" } }, "required": [ "prompt" ] } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/slash-commands": { "get": { "operationId": "getSlashCommands", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "llm": { "$ref": "#/components/schemas/CommandLlmMetadata", "nullable": true }, "key": { "type": "string" }, "usage": { "type": "string", "nullable": true }, "description": { "type": "string" }, "aliases": { "type": "array", "items": { "type": "string" }, "nullable": true }, "availableIn": { "$ref": "#/components/schemas/CommandAvailability" }, "path": { "type": "array", "items": { "type": "string" }, "nullable": true }, "help": { "$ref": "#/components/schemas/CommandHelpMetadata", "nullable": true }, "intents": { "type": "array", "items": { "type": "string" }, "nullable": true }, "intentExamples": { "type": "array", "items": { "type": "string" }, "nullable": true }, "input": { "$ref": "#/components/schemas/CommandInputMetadata", "nullable": true } }, "required": [ "key", "description", "availableIn" ] } } } } }, "default": { "description": "Error" } } } }, "/api/agents/{id}/introduction": { "get": { "operationId": "introduction", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "developerName", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "agentId": { "type": "string" }, "content": { "type": "string" }, "timestamp": { "type": "string" } }, "required": [ "agentId", "content", "timestamp" ] } } } }, "default": { "description": "Error" } } } }, "/api/access/who": { "get": { "operationId": "whoHasPermission", "parameters": [ { "name": "path", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "right", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WhoHasPermissionResponse" } } } }, "default": { "description": "Error" } } } }, "/api/access/can": { "get": { "operationId": "doIHavePermission", "parameters": [ { "name": "path", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "right", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "agent", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DoIHavePermissionResponse" } } } }, "default": { "description": "Error" } } } }, "/api/access/overlap": { "get": { "operationId": "analyzeOverlap", "parameters": [ { "name": "mode", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "agent", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "maxDepth", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/FilePermissionOverlapReport" }, { "$ref": "#/components/schemas/PatternOverlapReport" } ] } } } }, "default": { "description": "Error" } } } }, "/api/permission/patterns": { "get": { "operationId": "getPatterns", "parameters": [ { "name": "agent", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetFilePatternsResponse" } } } }, "default": { "description": "Error" } } } }, "/api/permission/tree": { "get": { "operationId": "getTree", "parameters": [ { "name": "maxDepth", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } }, { "name": "includeHidden", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, { "name": "rootSubPath", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/permission/allow": { "post": { "operationId": "allowAll", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "path": { "type": "string" }, "mode": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] } }, "required": [ "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateGlobalPathResponse" } } } }, "default": { "description": "Error" } } }, "delete": { "operationId": "disallowAll", "parameters": [ { "name": "path", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "mode", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateGlobalPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/permission/agent-allow": { "post": { "operationId": "allow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "path": { "type": "string" }, "mode": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "requestedBy": { "type": "string", "nullable": true }, "approvedByUser": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "agent", "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/permission/agent-disallow": { "post": { "operationId": "disallow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "path": { "type": "string" }, "mode": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "requestedBy": { "type": "string", "nullable": true }, "approvedByUser": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "agent", "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/permission/permission-allow": { "post": { "operationId": "permissionAllow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "path": { "type": "string" }, "requestedBy": { "type": "string", "nullable": true }, "approvedByUser": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "agent", "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/permission/permission-deny": { "post": { "operationId": "permissionDeny", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "path": { "type": "string" }, "requestedBy": { "type": "string", "nullable": true }, "approvedByUser": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "agent", "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/files/patterns": { "get": { "operationId": "getPatterns", "parameters": [ { "name": "agent", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetFilePatternsResponse" } } } }, "default": { "description": "Error" } } } }, "/api/files/tree": { "get": { "operationId": "getTree", "parameters": [ { "name": "maxDepth", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } }, { "name": "includeHidden", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, { "name": "rootSubPath", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/files/allow": { "post": { "operationId": "allowAll", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "path": { "type": "string" }, "mode": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] } }, "required": [ "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateGlobalPathResponse" } } } }, "default": { "description": "Error" } } }, "delete": { "operationId": "disallowAll", "parameters": [ { "name": "path", "in": "query", "required": true, "schema": { "type": "string" } }, { "name": "mode", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateGlobalPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/files/agent-allow": { "post": { "operationId": "allow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "path": { "type": "string" }, "mode": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "requestedBy": { "type": "string", "nullable": true }, "approvedByUser": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "agent", "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/files/agent-disallow": { "post": { "operationId": "disallow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "path": { "type": "string" }, "mode": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "requestedBy": { "type": "string", "nullable": true }, "approvedByUser": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "agent", "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/files/permission-allow": { "post": { "operationId": "permissionAllow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "path": { "type": "string" }, "requestedBy": { "type": "string", "nullable": true }, "approvedByUser": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "agent", "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/files/permission-deny": { "post": { "operationId": "permissionDeny", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "path": { "type": "string" }, "requestedBy": { "type": "string", "nullable": true }, "approvedByUser": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "agent", "path" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentPathResponse" } } } }, "default": { "description": "Error" } } } }, "/api/ide/open-file": { "post": { "operationId": "openFile", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "filePath": { "type": "string" }, "line": { "type": "number", "nullable": true } }, "required": [ "filePath" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" }, "ideConnected": { "type": "boolean" } }, "required": [ "ok", "ideConnected" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/status": { "get": { "operationId": "getStatus", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "ideConnected": { "type": "boolean" } }, "required": [ "ideConnected" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/v1/edit/open-diff": { "post": { "operationId": "openDiff", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "operationId": { "type": "string" }, "traceId": { "type": "string", "nullable": true }, "filePath": { "type": "string" }, "newContent": { "type": "string", "nullable": true }, "agentName": { "type": "string" }, "description": { "type": "string" } }, "required": [ "operationId", "filePath", "agentName", "description" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" }, "state": { "type": "string" } }, "required": [ "sessionId", "state" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/v1/edit/update": { "post": { "operationId": "updateEdit", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" }, "newContent": { "type": "string" } }, "required": [ "sessionId", "newContent" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" }, "state": { "type": "string" } }, "required": [ "sessionId", "state" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/v1/edit/commit": { "post": { "operationId": "commitEdit", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" } }, "required": [ "sessionId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" }, "finalContent": { "type": "string" }, "terminalState": { "type": "string" } }, "required": [ "sessionId", "finalContent", "terminalState" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/v1/edit/keep": { "post": { "operationId": "keepEdit", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" } }, "required": [ "sessionId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" }, "state": { "type": "string" }, "finalContent": { "type": "string" }, "terminalState": { "type": "string" } }, "required": [ "sessionId", "state", "finalContent", "terminalState" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/v1/edit/revert": { "post": { "operationId": "revertEdit", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" } }, "required": [ "sessionId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" }, "state": { "type": "string" }, "terminalState": { "type": "string" } }, "required": [ "sessionId", "state", "terminalState" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/v1/edit/undo": { "post": { "operationId": "undoEdit", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" } }, "required": [ "sessionId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" }, "state": { "type": "string" } }, "required": [ "sessionId", "state" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/v1/edit/reset": { "post": { "operationId": "resetEdit", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" } }, "required": [ "sessionId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "sessionId": { "type": "string" }, "state": { "type": "string" } }, "required": [ "sessionId", "state" ] } } } }, "default": { "description": "Error" } } } }, "/api/ide/v1/edit/status": { "get": { "operationId": "getEditStatus", "parameters": [ { "name": "sessionId", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "operationId", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/IdeEditSession" }, { "type": "object", "properties": { "active": { "type": "array", "items": { "$ref": "#/components/schemas/IdeEditSession" } } }, "required": [ "active" ] } ] } } } }, "default": { "description": "Error" } } } }, "/api/sessions/recent": { "get": { "operationId": "recent", "parameters": [ { "name": "limit", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ChatSession" } } } } }, "default": { "description": "Error" } } } }, "/api/sessions": { "get": { "operationId": "list", "parameters": [ { "name": "agentId", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } }, { "name": "offset", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ChatSession" } } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "create", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agentId": { "type": "string" }, "developerId": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true } }, "required": [ "agentId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatSession" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{agentId}/latest": { "get": { "operationId": "latestByAgent", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatSession" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/handoff": { "post": { "operationId": "handoff", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "toAgentId": { "type": "string" }, "developerId": { "type": "string", "nullable": true }, "previousSessionId": { "type": "string" }, "transferArtifacts": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "transferAllowedFiles": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "toAgentId", "previousSessionId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatSession" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}": { "get": { "operationId": "getById", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatSession" } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "update", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": {} } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatSession" } } } }, "default": { "description": "Error" } } }, "delete": { "operationId": "delete", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No content" }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/messages": { "get": { "operationId": "getMessages", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ChatMessage" } } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/messages/{timestamp}": { "delete": { "operationId": "deleteMessage", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "timestamp", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No content" }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/thread": { "get": { "operationId": "getThread", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionThread" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/delete-impact": { "get": { "operationId": "getDeleteImpact", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionDeleteImpact" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/dashboard-notes": { "get": { "operationId": "listDashboardNotes", "parameters": [ { "name": "limit", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Note" } } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/notes": { "get": { "operationId": "listNotes", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Note" } } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "createNote", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agentId": { "type": "string" }, "sharedSessionIds": { "type": "array", "items": { "type": "string" }, "nullable": true }, "title": { "type": "string", "nullable": true }, "content": { "type": "string", "nullable": true }, "hiddenFromLlm": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "showOnDashboard": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "tags": { "type": "array", "items": { "type": "string" }, "nullable": true }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/NoteAttachmentInput" }, "nullable": true }, "attachment": { "$ref": "#/components/schemas/NoteAttachmentInput", "nullable": true } }, "required": [ "agentId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Note" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/notes/{noteId}": { "get": { "operationId": "getNote", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "noteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Note" } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "updateNote", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "noteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "title": { "type": "string", "nullable": true }, "content": { "type": "string", "nullable": true }, "compactedContent": { "type": "string", "nullable": true }, "tags": { "type": "array", "items": { "type": "string" }, "nullable": true }, "sharedSessionIds": { "type": "array", "items": { "type": "string" }, "nullable": true }, "hiddenFromLlm": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "showOnDashboard": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "attachments": { "type": "array", "items": { "oneOf": [ { "$ref": "#/components/schemas/NoteAttachmentInput" }, { "$ref": "#/components/schemas/RetainedNoteAttachmentInput" } ] }, "nullable": true }, "attachment": { "$ref": "#/components/schemas/NoteAttachmentInput", "nullable": true } } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Note" } } } }, "default": { "description": "Error" } } }, "delete": { "operationId": "deleteNote", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "noteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No content" }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/notes/{noteId}/compact": { "post": { "operationId": "compactNote", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "noteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": false, "content": { "application/json": { "schema": { "type": "object", "properties": { "maxWords": { "type": "number", "nullable": true }, "focusInstruction": { "type": "string", "nullable": true } }, "nullable": true } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Note" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/notes/{noteId}/crawl-summarize": { "post": { "operationId": "crawlSummarizeWebsiteNote", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "noteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "websiteUrl": { "type": "string" }, "maxPages": { "type": "number", "nullable": true }, "maxWords": { "type": "number", "nullable": true }, "focusInstruction": { "type": "string", "nullable": true } }, "required": [ "websiteUrl" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Note" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/notes/{noteId}/export-markdown": { "post": { "operationId": "exportNoteMarkdown", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "noteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteMarkdownExportResult" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/note-shares": { "get": { "operationId": "listNoteShares", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NoteSessionShare" } } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/notes/{noteId}/link": { "post": { "operationId": "linkNote", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "noteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "anchorMessageId": { "type": "number" } }, "required": [ "anchorMessageId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteSessionShare" } } } }, "default": { "description": "Error" } } }, "delete": { "operationId": "unlinkNote", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "noteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No content" }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/compress-context": { "post": { "operationId": "compressContext", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "toIndex": { "type": "number" }, "mode": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" } ] }, "selectedMarkdown": { "type": "string", "nullable": true }, "compactPercent": { "type": "number", "nullable": true }, "focusInstruction": { "type": "string", "nullable": true } }, "required": [ "toIndex" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "note": { "$ref": "#/components/schemas/Note" }, "share": { "$ref": "#/components/schemas/NoteSessionShare" } }, "required": [ "note", "share" ] } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/message-links": { "get": { "operationId": "listMessageLinks", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MessageSessionLink" } } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "createMessageLink", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "messageId": { "type": "number" } }, "required": [ "messageId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageSessionLink" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/message-links/{messageId}": { "delete": { "operationId": "deleteMessageLink", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "messageId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No content" }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/summarize": { "post": { "operationId": "summarize", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "fromIndex": { "type": "number" }, "toIndex": { "type": "number" }, "title": { "type": "string" }, "summary": { "type": "string" }, "developerId": { "type": "string", "nullable": true } }, "required": [ "fromIndex", "toIndex", "title", "summary" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/split": { "post": { "operationId": "split", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "fromTimestamp": { "type": "string" }, "newAgentId": { "type": "string", "nullable": true } }, "required": [ "fromTimestamp" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatSession" } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/generate-title": { "post": { "operationId": "generateTitle", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "title": { "type": "string" } }, "required": [ "title" ] } } } }, "default": { "description": "Error" } } } }, "/api/sessions/{sessionId}/delete": { "post": { "operationId": "deleteWithOptions", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": false, "content": { "application/json": { "schema": { "type": "object", "properties": { "deleteUnsharedOwnedNotes": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "nullable": true } } } }, "responses": { "204": { "description": "No content" }, "default": { "description": "Error" } } } }, "/api/skills": { "get": { "operationId": "search", "parameters": [ { "name": "q", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "agent", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SearchSkillsResponse" } } } }, "default": { "description": "Error" } } } }, "/api/skills/add": { "post": { "operationId": "add", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "skill": { "type": "string" } }, "required": [ "agent", "skill" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentSkillResponse" } } } }, "default": { "description": "Error" } } } }, "/api/skills/remove": { "post": { "operationId": "remove", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "skill": { "type": "string" } }, "required": [ "agent", "skill" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentSkillResponse" } } } }, "default": { "description": "Error" } } } }, "/api/health": { "get": { "operationId": "health", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string" } }, "required": [ "status" ] } } } }, "default": { "description": "Error" } } } }, "/api/info": { "get": { "operationId": "info", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SystemInfo" } } } }, "default": { "description": "Error" } } } }, "/api/team/graph": { "get": { "operationId": "getTeamGraph", "parameters": [ { "name": "mode", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GraphData" } } } }, "default": { "description": "Error" } } } }, "/api/team/organization-graph": { "get": { "operationId": "getOrganizationGraph", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GraphData" } } } }, "default": { "description": "Error" } } } }, "/api/tasks/dashboard": { "get": { "operationId": "dashboard", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/tasks/templates": { "get": { "operationId": "templates", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": {} } } } }, "default": { "description": "Error" } } } }, "/api/tasks/from-template": { "post": { "operationId": "createFromTemplate", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "templateId": { "type": "string" }, "overrides": { "type": "object", "properties": {}, "nullable": true } }, "required": [ "templateId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/tasks": { "get": { "operationId": "list", "parameters": [ { "name": "status", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "priority", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "assignedTo", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "createdBy", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "type", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "tags", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "parentTaskId", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": {} } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "create", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": {} } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/tasks/{taskId}": { "get": { "operationId": "getById", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } }, "put": { "operationId": "update", "description": "PUT (was PATCH)", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": {} } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/tasks/{taskId}/hierarchy": { "get": { "operationId": "getHierarchy", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/planning/intake": { "get": { "operationId": "listIntake", "parameters": [ { "name": "status", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "sourceType", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "type", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } }, { "name": "offset", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlanningIntakeItem" } } } } }, "default": { "description": "Error" } } } }, "/api/planning/intake/{intakeId}": { "put": { "operationId": "upsertIntake", "parameters": [ { "name": "intakeId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": {} } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningIntakeItem" } } } }, "default": { "description": "Error" } } } }, "/api/planning/plans": { "get": { "operationId": "listPlans", "parameters": [ { "name": "status", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "assignedTo", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "createdBy", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } }, { "name": "offset", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlanningPlan" } } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "createPlan", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "title": { "type": "string" }, "goal": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "priority": { "type": "string", "nullable": true }, "createdBy": { "type": "string", "nullable": true }, "createdByType": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" } ] }, "assignedTo": { "type": "string", "nullable": true }, "originType": { "type": "string", "nullable": true }, "originSessionId": { "type": "string", "nullable": true }, "originNoteId": { "type": "string", "nullable": true }, "markdownSnapshot": { "type": "string", "nullable": true }, "metadata": { "type": "object", "properties": {}, "nullable": true } }, "required": [ "title" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningPlan" } } } }, "default": { "description": "Error" } } } }, "/api/planning/plans/{planId}": { "get": { "operationId": "getPlan", "parameters": [ { "name": "planId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningPlan" } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "updatePlan", "parameters": [ { "name": "planId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "title": { "type": "string", "nullable": true }, "goal": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "priority": { "type": "string", "nullable": true }, "assignedTo": { "type": "string", "nullable": true }, "markdownSnapshot": { "type": "string", "nullable": true }, "metadata": { "type": "object", "properties": {}, "nullable": true } } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningPlan" } } } }, "default": { "description": "Error" } } } }, "/api/planning/plans/{planId}/sessions": { "get": { "operationId": "getPlanSessions", "parameters": [ { "name": "planId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningPlanSessionVisibility" } } } }, "default": { "description": "Error" } } } }, "/api/planning/tasks": { "get": { "operationId": "listTasks", "parameters": [ { "name": "planId", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "sessionId", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "assignedTo", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } }, { "name": "status", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } }, { "name": "offset", "in": "query", "required": false, "schema": { "type": "number", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlanningTask" } } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "createTask", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "planId": { "type": "string" }, "sessionId": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "type": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "priority": { "type": "string", "nullable": true }, "createdBy": { "type": "string", "nullable": true }, "createdByType": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" } ] }, "assignedTo": { "type": "string", "nullable": true }, "sourceActionItem": { "type": "string", "nullable": true }, "metadata": { "type": "object", "properties": {}, "nullable": true } }, "required": [ "planId", "sessionId", "title" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningTask" } } } }, "default": { "description": "Error" } } } }, "/api/planning/tasks/{taskId}": { "get": { "operationId": "getTask", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningTask" } } } }, "default": { "description": "Error" } } }, "put": { "operationId": "updateTask", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "title": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "priority": { "type": "string", "nullable": true }, "assignedTo": { "type": "string", "nullable": true }, "sourceActionItem": { "type": "string", "nullable": true }, "metadata": { "type": "object", "properties": {}, "nullable": true } } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningTask" } } } }, "default": { "description": "Error" } } } }, "/api/planning/tasks/{taskId}/todos": { "get": { "operationId": "listTodos", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlanningTodo" } } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "createTodo", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "content": { "type": "string" }, "orderIndex": { "type": "number", "nullable": true }, "done": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "completedBy": { "type": "string", "nullable": true } }, "required": [ "content" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningTodo" } } } }, "default": { "description": "Error" } } } }, "/api/planning/todos/{todoId}": { "put": { "operationId": "updateTodo", "parameters": [ { "name": "todoId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "content": { "type": "string", "nullable": true }, "orderIndex": { "type": "number", "nullable": true }, "done": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "completedBy": { "type": "string", "nullable": true } } } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" } }, "required": [ "ok" ] } } } }, "default": { "description": "Error" } } } }, "/api/planning/tasks/{taskId}/delegations": { "get": { "operationId": "listDelegations", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlanningTaskDelegation" } } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "createDelegation", "parameters": [ { "name": "taskId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "fromAgentId": { "type": "string" }, "toAgentId": { "type": "string" }, "reason": { "type": "string", "nullable": true }, "accepted": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "fromAgentId", "toAgentId" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanningTaskDelegation" } } } }, "default": { "description": "Error" } } } }, "/api/tools": { "get": { "operationId": "list", "parameters": [ { "name": "agent", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListToolsResponse" } } } }, "default": { "description": "Error" } } } }, "/api/tools/allow": { "post": { "operationId": "allow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "tool": { "type": "string" } }, "required": [ "agent", "tool" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentToolResponse" } } } }, "default": { "description": "Error" } } } }, "/api/tools/disallow": { "post": { "operationId": "disallow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "tool": { "type": "string" } }, "required": [ "agent", "tool" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentToolResponse" } } } }, "default": { "description": "Error" } } } }, "/api/tools/tool-allow": { "post": { "operationId": "toolAllow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "tool": { "type": "string" }, "requestedBy": { "type": "string" }, "approvedByUser": { "type": "boolean" } }, "required": [ "agent", "tool", "requestedBy", "approvedByUser" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentToolResponse" } } } }, "default": { "description": "Error" } } } }, "/api/tools/tool-deny": { "post": { "operationId": "toolDeny", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "agent": { "type": "string" }, "tool": { "type": "string" }, "requestedBy": { "type": "string" }, "approvedByUser": { "type": "boolean" } }, "required": [ "agent", "tool", "requestedBy", "approvedByUser" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAgentToolResponse" } } } }, "default": { "description": "Error" } } } }, "/api/developer/me": { "get": { "operationId": "getMe", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "email": { "type": "string", "nullable": true } }, "required": [ "id", "name" ] } } } }, "default": { "description": "Error" } } } }, "/api/chat/summaries": { "get": { "operationId": "getSummaries", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ChatSummary" } } } } }, "default": { "description": "Error" } } } }, "/api/chat/{agentId}": { "get": { "operationId": "getMessages", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "includeArchived", "in": "query", "required": false, "schema": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ChatMessage" } } } } }, "default": { "description": "Error" } } }, "post": { "operationId": "post", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "content": { "type": "string" }, "pendingIntroduction": { "type": "string", "nullable": true } }, "required": [ "content" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "content": { "type": "string" }, "handoff": {} }, "required": [ "content" ] } } } }, "default": { "description": "Error" } } }, "delete": { "operationId": "clearHistory", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No content" }, "default": { "description": "Error" } } } }, "/api/chat/{agentId}/messages/{index}": { "put": { "operationId": "editMessage", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "index", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "content": { "type": "string" } }, "required": [ "content" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatMessage" } } } }, "default": { "description": "Error" } } }, "delete": { "operationId": "archiveMessage", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "index", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No content" }, "default": { "description": "Error" } } } }, "/api/chat/{agentId}/messages/{index}/unarchive": { "put": { "operationId": "unarchiveMessage", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "index", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" } }, "required": [ "ok" ] } } } }, "default": { "description": "Error" } } } }, "/api/chat/{agentId}/messages/{index}/tool-result/hidden": { "put": { "operationId": "setToolResultHidden", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "index", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "hidden": { "type": "boolean" }, "toolCallId": { "type": "number", "nullable": true } }, "required": [ "hidden" ] } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" }, "hidden": { "type": "boolean" }, "toolCallId": { "type": "number" } }, "required": [ "ok", "hidden", "toolCallId" ] } } } }, "default": { "description": "Error" } } } }, "/api/chat/{agentId}/messages/{index}/tool-result/summarize": { "post": { "operationId": "summarizeToolResult", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "index", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": false, "content": { "application/json": { "schema": { "type": "object", "properties": { "toolCallId": { "type": "number", "nullable": true }, "maxWords": { "type": "number", "nullable": true }, "focusInstruction": { "type": "string", "nullable": true } }, "nullable": true } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "object", "properties": { "ok": { "type": "boolean" }, "toolCallId": { "type": "number" }, "summary": { "type": "string" } }, "required": [ "ok", "toolCallId", "summary" ] } } } }, "default": { "description": "Error" } } } }, "/api/chat/{agentId}/stats": { "get": { "operationId": "getStats", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageStats" } } } }, "default": { "description": "Error" } } } }, "/api/artifacts": { "get": { "operationId": "list", "parameters": [ { "name": "sessionId", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "type": "array", "items": {} } } } }, "default": { "description": "Error" } } } }, "/api/artifacts/{artifactId}": { "get": { "operationId": "get", "parameters": [ { "name": "artifactId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/context/context-estimate/{agentId}": { "get": { "operationId": "getContextEstimate", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "sessionId", "in": "query", "required": false, "schema": { "type": "string", "nullable": true } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/context/context-estimate/{agentId}/session/{sessionId}": { "get": { "operationId": "getContextEstimateForSession", "parameters": [ { "name": "agentId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": {} } } }, "default": { "description": "Error" } } } }, "/api/context/workflows/{workflowId}/definition": { "get": { "operationId": "getWorkflowDefinition", "parameters": [ { "name": "workflowId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkflowDefinitionApiResponse" } } } }, "default": { "description": "Error" } } } } }, "components": { "schemas": { "LlmGenerationParams": { "type": "object", "properties": { "temperature": { "type": "number", "nullable": true }, "maxTokens": { "type": "number", "nullable": true }, "topP": { "type": "number", "nullable": true }, "presencePenalty": { "type": "number", "nullable": true }, "frequencyPenalty": { "type": "number", "nullable": true }, "stop": { "type": "array", "items": { "type": "string" }, "nullable": true } } }, "LlmConfig": { "type": "object", "properties": { "provider": { "type": "string" }, "model": { "type": "string", "nullable": true }, "baseUrl": { "type": "string", "nullable": true }, "params": { "$ref": "#/components/schemas/LlmGenerationParams", "nullable": true } }, "required": [ "provider" ] }, "TeamConfig": { "type": "object", "properties": { "version": { "type": "string" }, "projectName": { "type": "string", "nullable": true }, "llm": { "$ref": "#/components/schemas/LlmConfig", "nullable": true }, "providers": { "type": "object", "properties": {}, "nullable": true }, "defaultModel": { "type": "object", "properties": { "provider": { "type": "string" }, "model": { "type": "string" }, "contextWindow": { "type": "number", "nullable": true } }, "required": [ "provider", "model" ], "nullable": true }, "skillSources": { "type": "array", "items": { "type": "string" }, "nullable": true }, "allowedCliTools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "avatarStyle": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "randomAvatarUrls": { "type": "array", "items": { "type": "string" }, "nullable": true }, "fileTree": { "type": "object", "properties": { "readPaths": { "type": "array", "items": { "type": "string" }, "nullable": true }, "writePaths": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "nullable": true }, "fileTypeGroups": { "type": "object", "properties": {}, "nullable": true }, "modelKeys": { "type": "object", "properties": {}, "nullable": true }, "systemModels": { "type": "object", "properties": {}, "nullable": true }, "mcpConfigFiles": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "required": [ "version" ] }, "UserProfile": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "avatar": { "type": "string", "nullable": true }, "portfolioUrl": { "type": "string", "nullable": true } } }, "UserConfig": { "type": "object", "properties": { "version": { "type": "string", "nullable": true }, "llm": { "$ref": "#/components/schemas/LlmConfig", "nullable": true }, "providers": { "type": "object", "properties": {}, "nullable": true }, "defaultModel": { "type": "object", "properties": { "provider": { "type": "string" }, "model": { "type": "string" }, "contextWindow": { "type": "number", "nullable": true } }, "required": [ "provider", "model" ], "nullable": true }, "skillSources": { "type": "array", "items": { "type": "string" }, "nullable": true }, "allowedCliTools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "avatarStyle": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "randomAvatarUrls": { "type": "array", "items": { "type": "string" }, "nullable": true }, "fileTree": { "type": "object", "properties": { "readPaths": { "type": "array", "items": { "type": "string" }, "nullable": true }, "writePaths": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "nullable": true }, "fileTypeGroups": { "type": "object", "properties": {}, "nullable": true }, "modelKeys": { "type": "object", "properties": {}, "nullable": true }, "systemModels": { "type": "object", "properties": {}, "nullable": true }, "developer": { "$ref": "#/components/schemas/UserProfile", "nullable": true } } }, "McpServerEntry": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string" }, "url": { "type": "string", "nullable": true }, "command": { "type": "string", "nullable": true }, "args": { "type": "array", "items": { "type": "string" }, "nullable": true }, "sourceFile": { "type": "string" }, "allowedForAgent": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "id", "type", "sourceFile" ] }, "GetMcpServersResponse": { "type": "object", "properties": { "servers": { "type": "array", "items": { "$ref": "#/components/schemas/McpServerEntry" } } }, "required": [ "servers" ] }, "UpdateMcpServerResponse": { "type": "object", "properties": { "agent": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "role": { "type": "string" } }, "required": [ "id", "name", "role" ] }, "server": { "type": "string" }, "mcpServers": { "type": "array", "items": { "type": "string" } }, "changed": { "type": "boolean" } }, "required": [ "agent", "server", "mcpServers", "changed" ] }, "CommandLlmMetadata": { "type": "object", "properties": { "description": { "type": "string", "nullable": true }, "hints": { "type": "array", "items": { "type": "string" }, "nullable": true }, "examples": { "type": "array", "items": { "type": "string" }, "nullable": true }, "hiddenParameters": { "type": "array", "items": { "type": "string" }, "nullable": true } } }, "CommandAvailability": { "type": "object", "properties": { "cli": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "chat": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "cliChat": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "tool": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } } }, "CommandExample": { "type": "object", "properties": { "value": { "type": "string" }, "surfaces": { "type": "array", "items": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "nullable": true }, "description": { "type": "string", "nullable": true } }, "required": [ "value" ] }, "CommandHelpMetadata": { "type": "object", "properties": { "description": { "type": "string", "nullable": true }, "hints": { "type": "array", "items": { "type": "string" }, "nullable": true }, "examples": { "type": "array", "items": { "$ref": "#/components/schemas/CommandExample" }, "nullable": true } } }, "CommandInputMetadata": { "type": "object", "properties": { "mode": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "jsonSignature": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "contextParameters": { "type": "array", "items": { "type": "string" }, "nullable": true }, "contextOverrideAllowlist": { "type": "array", "items": { "type": "string" }, "nullable": true }, "requiredAtRuntime": { "type": "array", "items": { "type": "string" }, "nullable": true } } }, "PermissionConfig": { "type": "object", "properties": { "list": { "type": "array", "items": { "type": "string" }, "nullable": true }, "read": { "type": "array", "items": { "type": "string" } }, "write": { "type": "array", "items": { "type": "string" } }, "approve": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "manage_agents": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "read", "write" ] }, "AvatarConfig": { "type": "object", "properties": { "type": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "seed": { "type": "string", "nullable": true }, "url": { "type": "string", "nullable": true }, "style": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "color": { "type": "string", "nullable": true } }, "required": [ "type" ] }, "PersonalityConfig": { "type": "object", "properties": { "communication_style": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "expertise_level": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "mentoring": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } } }, "LlmProfile": { "type": "object", "properties": { "provider": { "type": "string", "nullable": true }, "modelKey": { "type": "string", "nullable": true }, "model": { "type": "string", "nullable": true }, "baseUrl": { "type": "string", "nullable": true }, "params": { "$ref": "#/components/schemas/LlmGenerationParams", "nullable": true } } }, "AgentHandoff": { "type": "object", "properties": { "label": { "type": "string" }, "agent": { "type": "string" }, "prompt": { "type": "string", "nullable": true }, "send": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "model": { "type": "string", "nullable": true } }, "required": [ "label", "agent" ] }, "Agent": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "filePath": { "type": "string" }, "skillPath": { "type": "string" }, "markdown": { "type": "string", "nullable": true }, "createdAt": { "type": "string" }, "lastInteraction": { "type": "string", "nullable": true }, "conversationCount": { "type": "number", "nullable": true }, "status": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "permissions": { "$ref": "#/components/schemas/PermissionConfig", "nullable": true }, "resolvedLlm": { "type": "object", "properties": { "providerRef": { "type": "string", "nullable": true }, "model": { "type": "string", "nullable": true }, "contextWindow": { "type": "number", "nullable": true }, "isDefault": { "type": "boolean" } }, "required": [ "isDefault" ], "nullable": true }, "aiTeamName": { "type": "string", "nullable": true }, "aiTeamId": { "type": "string", "nullable": true }, "role": { "type": "string" }, "type": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "contextLevel": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "reportsTo": { "type": "string", "nullable": true }, "features": { "type": "array", "items": { "type": "string" }, "nullable": true }, "specializations": { "type": "array", "items": { "type": "string" }, "nullable": true }, "avatar": { "$ref": "#/components/schemas/AvatarConfig", "nullable": true }, "personality": { "$ref": "#/components/schemas/PersonalityConfig", "nullable": true }, "pronouns": { "type": "string", "nullable": true }, "workHours": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "version": { "type": "string", "nullable": true }, "goal": { "type": "string", "nullable": true }, "backstory": { "type": "string", "nullable": true }, "skills": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string", "nullable": true }, "tags": { "type": "array", "items": { "type": "string" }, "nullable": true }, "examples": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "required": [ "id", "name" ] }, "nullable": true }, "applyTo": { "type": "string", "nullable": true }, "paths": { "type": "array", "items": { "type": "string" }, "nullable": true }, "memory": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "maxIterations": { "type": "number", "nullable": true }, "tools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "disallowedTools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "cliTools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "mcpServers": { "type": "array", "items": { "type": "string" }, "nullable": true }, "disallowedMcpServers": { "type": "array", "items": { "type": "string" }, "nullable": true }, "canDelegate": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "delegatesTo": { "type": "array", "items": { "type": "string" }, "nullable": true }, "availableFor": { "type": "array", "items": { "type": "string" }, "nullable": true }, "llm": { "$ref": "#/components/schemas/LlmProfile", "nullable": true }, "agents": { "type": "array", "items": { "type": "string" }, "nullable": true }, "model": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "handoffs": { "type": "array", "items": { "$ref": "#/components/schemas/AgentHandoff" }, "nullable": true }, "readTheseFilesFirst": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "required": [ "id", "name", "filePath", "skillPath", "createdAt", "role", "contextLevel" ] }, "AgentSearchResult": { "type": "object", "properties": { "agent": { "$ref": "#/components/schemas/Agent" }, "score": { "type": "number" }, "matches": { "type": "array", "items": { "type": "string" } } }, "required": [ "agent", "score", "matches" ] }, "SearchAgentsResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/components/schemas/AgentSearchResult" } }, "totalCount": { "type": "number" } }, "required": [ "results", "totalCount" ] }, "AgentConfig": { "type": "object", "properties": { "aiTeamName": { "type": "string", "nullable": true }, "aiTeamId": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "id": { "type": "string", "nullable": true }, "role": { "type": "string" }, "type": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "contextLevel": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "reportsTo": { "type": "string", "nullable": true }, "features": { "type": "array", "items": { "type": "string" }, "nullable": true }, "specializations": { "type": "array", "items": { "type": "string" }, "nullable": true }, "avatar": { "$ref": "#/components/schemas/AvatarConfig", "nullable": true }, "personality": { "$ref": "#/components/schemas/PersonalityConfig", "nullable": true }, "pronouns": { "type": "string", "nullable": true }, "workHours": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "version": { "type": "string", "nullable": true }, "goal": { "type": "string", "nullable": true }, "backstory": { "type": "string", "nullable": true }, "skills": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string", "nullable": true }, "tags": { "type": "array", "items": { "type": "string" }, "nullable": true }, "examples": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "required": [ "id", "name" ] }, "nullable": true }, "applyTo": { "type": "string", "nullable": true }, "paths": { "type": "array", "items": { "type": "string" }, "nullable": true }, "memory": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "maxIterations": { "type": "number", "nullable": true }, "tools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "disallowedTools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "cliTools": { "type": "array", "items": { "type": "string" }, "nullable": true }, "mcpServers": { "type": "array", "items": { "type": "string" }, "nullable": true }, "disallowedMcpServers": { "type": "array", "items": { "type": "string" }, "nullable": true }, "canDelegate": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "delegatesTo": { "type": "array", "items": { "type": "string" }, "nullable": true }, "availableFor": { "type": "array", "items": { "type": "string" }, "nullable": true }, "llm": { "$ref": "#/components/schemas/LlmProfile", "nullable": true }, "agents": { "type": "array", "items": { "type": "string" }, "nullable": true }, "model": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "array", "items": { "type": "string" } } ] }, "handoffs": { "type": "array", "items": { "$ref": "#/components/schemas/AgentHandoff" }, "nullable": true }, "readTheseFilesFirst": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "required": [ "role", "contextLevel" ] }, "MarkdownSection": { "type": "object", "properties": { "heading": { "type": "string" }, "content": { "type": "string" } }, "required": [ "heading", "content" ] }, "AnnotatedFile": { "type": "object", "properties": { "path": { "type": "string" }, "readable": { "type": "boolean" }, "listable": { "type": "boolean" }, "writable": { "type": "boolean" } }, "required": [ "path", "readable", "listable", "writable" ] }, "PermissionContextCandidate": { "type": "object", "properties": { "contextId": { "type": "string" }, "label": { "type": "string", "nullable": true } }, "required": [ "contextId" ] }, "WhoHasPermissionResponse": { "type": "object", "properties": { "path": { "type": "object", "properties": { "input": { "type": "string" }, "absolute": { "type": "string" }, "relative": { "type": "string" } }, "required": [ "input", "absolute", "relative" ] }, "right": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "contextIds": { "type": "array", "items": { "type": "string" } }, "contexts": { "type": "array", "items": { "$ref": "#/components/schemas/PermissionContextCandidate" } }, "explanation": { "type": "string" } }, "required": [ "path", "right", "contextIds", "contexts", "explanation" ] }, "DoIHavePermissionResponse": { "type": "object", "properties": { "path": { "type": "object", "properties": { "input": { "type": "string" }, "absolute": { "type": "string" }, "relative": { "type": "string" } }, "required": [ "input", "absolute", "relative" ] }, "right": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "contextId": { "type": "string" }, "contextLabel": { "type": "string", "nullable": true }, "selectedBy": { "oneOf": [ { "type": "string" }, { "type": "string" } ] }, "allowed": { "type": "boolean" }, "allRights": { "type": "array", "items": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" } ] } }, "explanation": { "type": "string" }, "alternativeContexts": { "type": "array", "items": { "type": "object", "properties": { "contextId": { "type": "string" }, "allowedPaths": { "type": "array", "items": { "type": "string" } } }, "required": [ "contextId", "allowedPaths" ] } }, "deniedByIgnore": { "type": "boolean" }, "blockedByPatterns": { "type": "array", "items": { "type": "string" } } }, "required": [ "path", "right", "contextId", "selectedBy", "allowed", "allRights", "explanation", "alternativeContexts", "deniedByIgnore", "blockedByPatterns" ] }, "AgentFocusedOverlapSummary": { "type": "object", "properties": { "agentId": { "type": "string" }, "rights": { "type": "object", "properties": {} } }, "required": [ "agentId", "rights" ] }, "FilePermissionOverlapReport": { "type": "object", "properties": { "kind": { "type": "string" }, "generatedAt": { "type": "string" }, "agentIds": { "type": "array", "items": { "type": "string" } }, "workspaceFileCount": { "type": "number" }, "fileTypeGroups": { "type": "object", "properties": {} }, "rights": { "type": "object", "properties": {} }, "outsideDefaultContextByAgent": { "type": "array", "items": { "type": "object", "properties": { "agentId": { "type": "string" }, "rights": { "type": "object", "properties": {} } }, "required": [ "agentId", "rights" ] } }, "agentFocus": { "$ref": "#/components/schemas/AgentFocusedOverlapSummary", "nullable": true } }, "required": [ "kind", "generatedAt", "agentIds", "workspaceFileCount", "fileTypeGroups", "rights", "outsideDefaultContextByAgent" ] }, "PatternOverlapReport": { "type": "object", "properties": { "kind": { "type": "string" }, "generatedAt": { "type": "string" }, "agentIds": { "type": "array", "items": { "type": "string" } }, "rights": { "type": "object", "properties": {} } }, "required": [ "kind", "generatedAt", "agentIds", "rights" ] }, "GetFilePatternsResponse": { "type": "object", "properties": { "global": {}, "agent": { "nullable": true } }, "required": [ "global" ] }, "UpdateGlobalPathResponse": { "type": "object", "properties": { "mode": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "paths": { "type": "array", "items": { "type": "string" } } }, "required": [ "mode", "paths" ] }, "UpdateAgentPathResponse": { "type": "object", "properties": { "agent": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "role": { "type": "string" } }, "required": [ "id", "name", "role" ] }, "mode": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "paths": { "type": "array", "items": { "type": "string" } } }, "required": [ "agent", "mode", "paths" ] }, "IdeEditSession": { "type": "object", "properties": { "sessionId": { "type": "string" }, "operationId": { "type": "string" }, "traceId": { "type": "string", "nullable": true }, "filePath": { "type": "string" }, "originalContent": { "type": "string" }, "currentContent": { "type": "string" }, "state": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "agentName": { "type": "string" }, "description": { "type": "string" }, "createdAt": { "type": "string" }, "lastUpdatedAt": { "type": "string" } }, "required": [ "sessionId", "operationId", "filePath", "originalContent", "currentContent", "state", "agentName", "description", "createdAt", "lastUpdatedAt" ] }, "CommandResponseError": { "type": "object", "properties": { "code": { "type": "string", "nullable": true }, "details": {} } }, "CommandResponse": { "type": "object", "properties": { "status": { "oneOf": [ { "type": "string" }, { "type": "string" } ] }, "message": { "type": "string" }, "data": {}, "saveable": {}, "error": { "$ref": "#/components/schemas/CommandResponseError", "nullable": true } }, "required": [ "status", "message" ] }, "SessionToolDenial": { "type": "object", "properties": { "kind": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "reasonCode": { "type": "string" }, "message": { "type": "string" }, "blockedPaths": { "type": "array", "items": { "type": "string" }, "nullable": true }, "alternativeContexts": { "type": "array", "items": { "type": "object", "properties": { "contextId": { "type": "string" }, "allowedPaths": { "type": "array", "items": { "type": "string" } } }, "required": [ "contextId", "allowedPaths" ] }, "nullable": true }, "handoffRecommendation": { "type": "object", "properties": { "possible": { "type": "boolean" }, "requiresUserApproval": { "type": "boolean" }, "contexts": { "type": "array", "items": { "type": "object", "properties": { "contextId": { "type": "string" }, "allowedPaths": { "type": "array", "items": { "type": "string" } } }, "required": [ "contextId", "allowedPaths" ] } } }, "required": [ "possible", "requiresUserApproval", "contexts" ], "nullable": true } }, "required": [ "kind", "reasonCode", "message" ] }, "SessionToolResult": { "type": "object", "properties": { "id": { "type": "number", "nullable": true }, "toolName": { "type": "string" }, "outcome": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "request": {}, "commandResponse": { "$ref": "#/components/schemas/CommandResponse", "nullable": true }, "resultLlm": {}, "denial": { "$ref": "#/components/schemas/SessionToolDenial", "nullable": true } }, "required": [ "toolName", "outcome" ] }, "SessionActivatedTool": { "type": "object", "properties": { "toolName": { "type": "string" }, "toolCallId": { "type": "string", "nullable": true }, "toolPhase": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "message": { "type": "string", "nullable": true }, "toolResult": { "$ref": "#/components/schemas/SessionToolResult", "nullable": true }, "toolDenial": { "$ref": "#/components/schemas/SessionToolDenial", "nullable": true }, "timestamp": { "type": "string" }, "toolEventSeq": { "type": "number", "nullable": true } }, "required": [ "toolName", "timestamp" ] }, "ChatMessage": { "type": "object", "properties": { "id": { "type": "number", "nullable": true }, "from": { "type": "string" }, "to": { "type": "string", "nullable": true }, "isHuman": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "content": { "type": "string" }, "timestamp": { "type": "string" }, "archived": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "hiddenFromLlm": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "handoffType": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" } ] }, "targetAgentId": { "type": "string", "nullable": true }, "handoffId": { "type": "string", "nullable": true }, "handoffFromSessionId": { "type": "string", "nullable": true }, "handoffToSessionId": { "type": "string", "nullable": true } }, "required": [ "from", "content", "timestamp" ] }, "ChatSession": { "type": "object", "properties": { "id": { "type": "string" }, "agentId": { "type": "string" }, "agentIds": { "type": "array", "items": { "type": "string" }, "nullable": true }, "developerId": { "type": "string" }, "title": { "type": "string", "nullable": true }, "startedAt": { "type": "string" }, "lastActivityAt": { "type": "string" }, "messageCount": { "type": "number" }, "artifacts": { "type": "array", "items": { "type": "string" } }, "allowedFiles": { "type": "array", "items": { "type": "string" } }, "notes": { "type": "string", "nullable": true }, "activatedTools": { "type": "array", "items": { "$ref": "#/components/schemas/SessionActivatedTool" }, "nullable": true }, "previousSessionId": { "type": "string", "nullable": true }, "mergedFromSessionIds": { "type": "array", "items": { "type": "string" }, "nullable": true }, "messages": { "type": "array", "items": { "$ref": "#/components/schemas/ChatMessage" }, "nullable": true } }, "required": [ "id", "agentId", "developerId", "startedAt", "lastActivityAt", "messageCount", "artifacts", "allowedFiles" ] }, "HandoffEdge": { "type": "object", "properties": { "handoffId": { "type": "string" }, "fromSessionId": { "type": "string", "nullable": true }, "toSessionId": { "type": "string", "nullable": true }, "fromAgentIds": { "type": "array", "items": { "type": "string" } }, "toAgentIds": { "type": "array", "items": { "type": "string" } } }, "required": [ "handoffId", "fromSessionId", "toSessionId", "fromAgentIds", "toAgentIds" ] }, "SessionNode": { "type": "object", "properties": { "sessionId": { "type": "string" }, "agentIds": { "type": "array", "items": { "type": "string" } }, "agentNames": { "type": "array", "items": { "type": "string" } }, "developerId": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "startedAt": { "type": "string" }, "lastActivityAt": { "type": "string" }, "previousSessionId": { "type": "string", "nullable": true }, "mergedFromSessionIds": { "type": "array", "items": { "type": "string" }, "nullable": true }, "messageCount": { "type": "number" }, "messages": { "type": "array", "items": { "$ref": "#/components/schemas/ChatMessage" } } }, "required": [ "sessionId", "agentIds", "agentNames", "developerId", "title", "startedAt", "lastActivityAt", "previousSessionId", "mergedFromSessionIds", "messageCount", "messages" ] }, "SessionThread": { "type": "object", "properties": { "rootSessionId": { "type": "string" }, "currentSessionId": { "type": "string" }, "depth": { "type": "number" }, "handoffs": { "type": "array", "items": { "$ref": "#/components/schemas/HandoffEdge" } }, "sessions": { "type": "array", "items": { "$ref": "#/components/schemas/SessionNode" } } }, "required": [ "rootSessionId", "currentSessionId", "depth", "handoffs", "sessions" ] }, "SessionDeleteImpactTransfer": { "type": "object", "properties": { "noteId": { "type": "string" }, "title": { "type": "string", "nullable": true }, "targetSessionId": { "type": "string" }, "remainingSharedSessionIds": { "type": "array", "items": { "type": "string" } } }, "required": [ "noteId", "targetSessionId", "remainingSharedSessionIds" ] }, "SessionDeleteImpactBlockingNote": { "type": "object", "properties": { "noteId": { "type": "string" }, "title": { "type": "string", "nullable": true } }, "required": [ "noteId" ] }, "SessionDeleteImpact": { "type": "object", "properties": { "sessionId": { "type": "string" }, "transferableNotes": { "type": "array", "items": { "$ref": "#/components/schemas/SessionDeleteImpactTransfer" } }, "unsharedOwnedNotes": { "type": "array", "items": { "$ref": "#/components/schemas/SessionDeleteImpactBlockingNote" } } }, "required": [ "sessionId", "transferableNotes", "unsharedOwnedNotes" ] }, "NoteAttachment": { "type": "object", "properties": { "id": { "type": "string" }, "fileName": { "type": "string" }, "filePath": { "type": "string" }, "contentType": { "type": "string", "nullable": true }, "sizeBytes": { "type": "number" }, "description": { "type": "string", "nullable": true } }, "required": [ "id", "fileName", "filePath", "sizeBytes" ] }, "Note": { "type": "object", "properties": { "id": { "type": "string" }, "agentId": { "type": "string" }, "sessionId": { "type": "string", "nullable": true }, "sharedSessionIds": { "type": "array", "items": { "type": "string" }, "nullable": true }, "title": { "type": "string", "nullable": true }, "content": { "type": "string" }, "compactedContent": { "type": "string", "nullable": true }, "hiddenFromLlm": { "type": "boolean" }, "showOnDashboard": { "type": "boolean" }, "tags": { "type": "array", "items": { "type": "string" }, "nullable": true }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/NoteAttachment" }, "nullable": true }, "attachment": { "$ref": "#/components/schemas/NoteAttachment", "nullable": true }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "agentId", "content", "hiddenFromLlm", "showOnDashboard", "createdAt", "updatedAt" ] }, "NoteAttachmentInput": { "type": "object", "properties": { "fileName": { "type": "string" }, "contentBase64": { "type": "string" }, "contentType": { "type": "string", "nullable": true }, "sizeBytes": { "type": "number", "nullable": true }, "description": { "type": "string", "nullable": true } }, "required": [ "fileName", "contentBase64" ] }, "RetainedNoteAttachmentInput": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "NoteMarkdownExportResult": { "type": "object", "properties": { "markdownPath": { "type": "string" }, "attachmentPath": { "type": "string", "nullable": true }, "attachmentPaths": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "required": [ "markdownPath" ] }, "NoteSessionShare": { "type": "object", "properties": { "noteId": { "type": "string" }, "sessionId": { "type": "string" }, "anchorMessageId": { "type": "number", "nullable": true }, "kind": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" } ] }, "active": { "type": "boolean" }, "fromMessageId": { "type": "number", "nullable": true }, "toMessageId": { "type": "number", "nullable": true }, "createdAt": { "type": "string" } }, "required": [ "noteId", "sessionId", "active", "createdAt" ] }, "MessageSessionLink": { "type": "object", "properties": { "messageId": { "type": "number" }, "sessionId": { "type": "string" }, "createdAt": { "type": "string" } }, "required": [ "messageId", "sessionId", "createdAt" ] }, "AgentSkillAssignmentEntry": { "type": "object", "properties": { "assignedToAgent": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "name": { "type": "string" }, "description": { "type": "string" }, "type": { "type": "string", "nullable": true }, "contextLevel": { "type": "string", "nullable": true }, "tools": { "type": "array", "items": { "type": "string" } } }, "required": [ "name", "description", "tools" ] }, "SearchSkillsResponse": { "type": "object", "properties": { "entries": { "type": "array", "items": { "$ref": "#/components/schemas/AgentSkillAssignmentEntry" } }, "timestamp": { "type": "string" }, "agent": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "role": { "type": "string" } }, "required": [ "id", "name", "role" ], "nullable": true } }, "required": [ "entries", "timestamp" ] }, "UpdateAgentSkillResponse": { "type": "object", "properties": { "agent": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "role": { "type": "string" } }, "required": [ "id", "name", "role" ] }, "skill": { "type": "string" }, "skills": { "type": "array", "items": { "type": "string" } }, "changed": { "type": "boolean" } }, "required": [ "agent", "skill", "skills", "changed" ] }, "SystemInfo": { "type": "object", "properties": { "workspace": { "type": "string" }, "branch": { "type": "string", "nullable": true }, "apiUrl": { "type": "string" }, "package": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "version": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true } }, "required": [ "name", "version", "description" ], "nullable": true } }, "required": [ "workspace", "branch", "apiUrl", "package" ] }, "GraphNode": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "oneOf": [ { "type": "string" }, { "type": "string" } ] }, "data": { "type": "object", "properties": { "label": { "type": "string" }, "agent": { "$ref": "#/components/schemas/Agent", "nullable": true }, "feature": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "owner": { "type": "string" }, "team": { "type": "array", "items": { "type": "string" } }, "contextPaths": { "type": "array", "items": { "type": "string" } }, "status": { "type": "string" } }, "required": [ "id", "name", "description", "owner", "team", "contextPaths", "status" ], "nullable": true }, "role": { "type": "string", "nullable": true }, "status": { "oneOf": [ { "type": "null" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] } }, "required": [ "label" ] }, "position": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" } }, "required": [ "x", "y" ], "nullable": true } }, "required": [ "id", "type", "data" ] }, "GraphEdge": { "type": "object", "properties": { "id": { "type": "string" }, "source": { "type": "string" }, "target": { "type": "string" }, "type": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "label": { "type": "string", "nullable": true }, "error": { "type": "string", "nullable": true } }, "required": [ "id", "source", "target", "type" ] }, "GraphData": { "type": "object", "properties": { "nodes": { "type": "array", "items": { "$ref": "#/components/schemas/GraphNode" } }, "edges": { "type": "array", "items": { "$ref": "#/components/schemas/GraphEdge" } } }, "required": [ "nodes", "edges" ] }, "PlanningIntakeItem": { "type": "object", "properties": { "id": { "type": "string" }, "sourceType": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "sourceRef": { "type": "string" }, "sourceUrl": { "type": "string", "nullable": true }, "type": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "status": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "metadata": { "type": "object", "properties": {}, "nullable": true } }, "required": [ "id", "sourceType", "sourceRef", "type", "title", "status", "createdAt", "updatedAt" ] }, "PlanningPlan": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "goal": { "type": "string", "nullable": true }, "status": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "priority": { "type": "string" }, "createdBy": { "type": "string" }, "createdByType": { "oneOf": [ { "type": "string" }, { "type": "string" } ] }, "assignedTo": { "type": "string", "nullable": true }, "originType": { "oneOf": [ { "type": "string" }, { "type": "string" }, { "type": "string" }, { "type": "string" } ] }, "originSessionId": { "type": "string", "nullable": true }, "originNoteId": { "type": "string", "nullable": true }, "markdownSnapshot": { "type": "string", "nullable": true }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "metadata": { "type": "object", "properties": {}, "nullable": true } }, "required": [ "id", "title", "status", "priority", "createdBy", "createdByType", "originType", "createdAt", "updatedAt" ] }, "PlanningPlanSessionVisibility": { "type": "object", "properties": { "planId": { "type": "string" }, "sessionIds": { "type": "array", "items": { "type": "string" } } }, "required": [ "planId", "sessionIds" ] }, "PlanningTask": { "type": "object", "properties": { "id": { "type": "string" }, "planId": { "type": "string" }, "sessionId": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "type": { "type": "string" }, "status": { "type": "string" }, "priority": { "type": "string" }, "createdBy": { "type": "string" }, "createdByType": { "oneOf": [ { "type": "string" }, { "type": "string" } ] }, "assignedTo": { "type": "string", "nullable": true }, "sourceActionItem": { "type": "string", "nullable": true }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "metadata": { "type": "object", "properties": {}, "nullable": true } }, "required": [ "id", "planId", "sessionId", "title", "type", "status", "priority", "createdBy", "createdByType", "createdAt", "updatedAt" ] }, "PlanningTodo": { "type": "object", "properties": { "id": { "type": "string" }, "taskId": { "type": "string" }, "content": { "type": "string" }, "orderIndex": { "type": "number" }, "done": { "type": "boolean" }, "completedAt": { "type": "string", "nullable": true }, "completedBy": { "type": "string", "nullable": true }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "taskId", "content", "orderIndex", "done", "createdAt", "updatedAt" ] }, "PlanningTaskDelegation": { "type": "object", "properties": { "id": { "type": "string" }, "taskId": { "type": "string" }, "fromAgentId": { "type": "string" }, "toAgentId": { "type": "string" }, "reason": { "type": "string", "nullable": true }, "delegatedAt": { "type": "string" }, "accepted": { "type": "boolean" }, "acceptedAt": { "type": "string", "nullable": true } }, "required": [ "id", "taskId", "fromAgentId", "toAgentId", "delegatedAt", "accepted" ] }, "AgentToolPermissionEntry": { "type": "object", "properties": { "allowedForAgent": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] }, "deniedReason": { "type": "string", "nullable": true }, "name": { "type": "string" }, "description": { "type": "string" }, "group": { "type": "string", "nullable": true }, "schema": { "type": "object", "properties": {} }, "tags": { "type": "array", "items": { "type": "string" }, "nullable": true }, "examples": { "type": "array", "items": { "type": "string" }, "nullable": true }, "fileRightsDependent": { "oneOf": [ { "type": "null" }, { "type": "boolean" }, { "type": "boolean" } ] } }, "required": [ "name", "description", "schema" ] }, "ListToolsResponse": { "type": "object", "properties": { "entries": { "type": "array", "items": { "$ref": "#/components/schemas/AgentToolPermissionEntry" } }, "timestamp": { "type": "string" }, "agent": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "role": { "type": "string" } }, "required": [ "id", "name", "role" ], "nullable": true } }, "required": [ "entries", "timestamp" ] }, "UpdateAgentToolResponse": { "type": "object", "properties": { "agent": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "role": { "type": "string" } }, "required": [ "id", "name", "role" ] }, "tool": { "type": "string" }, "tools": { "type": "array", "items": { "type": "string" } }, "changed": { "type": "boolean" } }, "required": [ "agent", "tool", "tools", "changed" ] }, "ChatSummary": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "content": { "type": "string" }, "sourceMessages": { "type": "object", "properties": { "agentId": { "type": "string" }, "messageIndices": { "type": "array", "items": { "type": "number" } } }, "required": [ "agentId", "messageIndices" ] }, "timestamp": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "required": [ "id", "title", "content", "sourceMessages", "timestamp" ] }, "MessageStats": { "type": "object", "properties": { "total": { "type": "number" }, "archived": { "type": "number" }, "active": { "type": "number" }, "byAgent": { "type": "object", "properties": {} } }, "required": [ "total", "archived", "active", "byAgent" ] }, "WorkflowDefinitionDocument": { "type": "object", "properties": { "format": { "type": "string" }, "id": { "type": "string" }, "initial": { "type": "string" }, "states": { "type": "object", "properties": {} } }, "required": [ "format", "id", "initial", "states" ] }, "WorkflowDefinitionApiResponse": { "type": "object", "properties": { "workflowId": { "type": "string" }, "format": { "type": "string" }, "definitionJson": { "$ref": "#/components/schemas/WorkflowDefinitionDocument" }, "definitionYaml": { "type": "string" } }, "required": [ "workflowId", "format", "definitionJson", "definitionYaml" ] } } } }