{ "openapi": "3.1.0", "info": { "title": "NTM REST API", "version": "0.1.0-draft", "description": "Generated from docs/parity_matrix.json. Draft OpenAPI 3.1 spec covering CLI/TUI/robot parity." }, "servers": [ { "url": "http://localhost:8080" } ], "paths": { "/health": { "get": { "tags": [ "core" ], "summary": "Health check", "description": "Returns server health status.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HealthResponse" }, "examples": { "example": { "value": { "success": true, "status": "ok", "version": "0.1.0-draft", "uptime_sec": 1834, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/version": { "get": { "tags": [ "core" ], "summary": "Version info", "description": "Returns NTM version and build info.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VersionResponse" }, "examples": { "example": { "value": { "success": true, "version": "0.1.0-draft", "commit": "8f4c2d1", "build_date": "2026-01-07T00:00:00Z", "go_version": "go1.25.0" } } } } } } } } }, "/deps": { "get": { "tags": [ "core" ], "summary": "Dependencies", "description": "Returns dependency check results (tmux, go, etc.).", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/doctor": { "get": { "tags": [ "core", "tools" ], "summary": "Doctor report", "description": "Validates ecosystem tool health and configuration.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DoctorResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/upgrade": { "post": { "tags": [ "core" ], "summary": "Upgrade", "description": "Runs the NTM upgrade flow.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpgradeRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/setup": { "post": { "tags": [ "core" ], "summary": "Setup", "description": "Runs NTM setup.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/validate": { "post": { "tags": [ "core" ], "summary": "Validate", "description": "Runs validation checks.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/server/serve": { "post": { "tags": [ "core" ], "summary": "Start server", "description": "Starts the NTM HTTP server (no-op if already running).", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/config": { "get": { "tags": [ "core" ], "summary": "Show config", "description": "Returns effective config.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/config/init": { "post": { "tags": [ "core" ], "summary": "Init config", "description": "Creates default config file.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/config/path": { "get": { "tags": [ "core" ], "summary": "Config path", "description": "Returns config path.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/config/projects-base": { "put": { "tags": [ "core" ], "summary": "Set projects base", "description": "Sets projects base directory.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectsBaseRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/config/diff": { "get": { "tags": [ "core" ], "summary": "Config diff", "description": "Shows config differences from defaults.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/config/validate": { "post": { "tags": [ "core" ], "summary": "Validate config", "description": "Validates config file.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConfigValidateRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/config/{key}": { "get": { "tags": [ "core" ], "summary": "Get config value", "description": "Get config by key.", "parameters": [ { "name": "key", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/config/edit": { "post": { "tags": [ "core" ], "summary": "Edit config", "description": "Opens config in editor (server-side).", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/config/reset": { "post": { "tags": [ "core" ], "summary": "Reset config", "description": "Resets config to defaults.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConfigResetRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/config/project/init": { "post": { "tags": [ "core" ], "summary": "Init project config", "description": "Initializes .ntm config in project.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectInitRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/shell/init": { "post": { "tags": [ "core" ], "summary": "Shell init", "description": "Returns shell init snippet.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ShellInitResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ShellInitRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/shell/completion": { "get": { "tags": [ "core" ], "summary": "Shell completion", "description": "Returns completion script.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/tmux/bind": { "post": { "tags": [ "core" ], "summary": "Bind palette key", "description": "Sets tmux keybinding for palette.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BindRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions": { "get": { "tags": [ "sessions" ], "summary": "List sessions", "description": "Lists sessions from state store.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionListResponse" }, "examples": { "active": { "value": { "success": true, "count": 2, "sessions": [ { "id": "sess_proj", "name": "ntm", "project_path": "/data/projects/ntm", "created_at": "2026-01-06T18:10:12Z", "status": "active", "pane_count": 4, "active_pane": 2, "layout": "tiled" }, { "id": "sess_docs", "name": "docs", "project_path": "/data/projects/ntm-docs", "created_at": "2026-01-06T20:44:05Z", "status": "idle", "pane_count": 2, "active_pane": 0, "layout": "even-horizontal" } ] } } } } } } } }, "post": { "tags": [ "sessions" ], "summary": "Create session", "description": "Creates a tmux session.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSessionResponse" }, "examples": { "example": { "value": { "success": true, "session": { "id": "sess_proj", "name": "ntm", "project_path": "/data/projects/ntm", "created_at": "2026-01-07T00:00:00Z", "status": "active", "pane_count": 4, "active_pane": 1, "layout": "tiled" }, "pane_count": 4 } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSessionRequest" }, "examples": { "with_agents": { "value": { "name": "ntm", "project_dir": "/data/projects/ntm", "panes": 4, "layout": "tiled", "agents": [ { "type": "claude", "model": "opus-4.1", "pane": 1 }, { "type": "codex", "model": "gpt-5-codex", "pane": 2 } ], "env": { "AGENT_MAIL_GUARD_MODE": "warn" } } } } } } } } }, "/sessions/{sessionId}": { "get": { "tags": [ "sessions" ], "summary": "Get session", "description": "Returns session details.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionResponse" }, "examples": { "example": { "value": { "success": true, "session": { "id": "sess_proj", "name": "ntm", "project_path": "/data/projects/ntm", "created_at": "2026-01-07T00:00:00Z", "status": "active", "pane_count": 4, "active_pane": 1, "layout": "tiled" } } } } } } } } }, "delete": { "tags": [ "sessions" ], "summary": "Kill session", "description": "Kills session and updates state.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/status": { "get": { "tags": [ "sessions" ], "summary": "Session status", "description": "Detailed status for session.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/attach": { "post": { "tags": [ "sessions" ], "summary": "Attach session", "description": "Attach/switch to a session.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/view": { "post": { "tags": [ "sessions" ], "summary": "View session", "description": "Tile panes for session.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/zoom": { "post": { "tags": [ "sessions" ], "summary": "Zoom pane", "description": "Zoom to a pane.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ZoomRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions/{sessionId}/spawn": { "post": { "tags": [ "sessions", "agents" ], "summary": "Spawn agents", "description": "Creates session and spawns agents.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpawnResponse" }, "examples": { "example": { "value": { "success": true, "spawned": 2, "agents": [ { "name": "BlueLake", "pane": 1, "type": "claude", "model": "opus-4.1" }, { "name": "GreenCastle", "pane": 2, "type": "claude", "model": "opus-4.1" } ] } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpawnRequest" }, "examples": { "example": { "value": { "agent_type": "claude", "model": "opus-4.1", "count": 2, "panes": [ 1, 2 ], "prompt": "Investigate the robot-mode pipeline.", "env": { "AGENT_NAME": "BlueLake" } } } } } } } } }, "/sessions/{sessionId}/add": { "post": { "tags": [ "sessions", "agents" ], "summary": "Add agents", "description": "Adds agents to session.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddAgentsResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddAgentsRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/projects/quick": { "post": { "tags": [ "sessions" ], "summary": "Quick project", "description": "Creates project scaffold and spawns agents.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QuickProjectRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/dashboard/{sessionId}": { "get": { "tags": [ "sessions" ], "summary": "Dashboard data", "description": "Returns dashboard panel data.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/watch": { "get": { "tags": [ "sessions" ], "summary": "Watch session", "description": "Long-poll watch (WS preferred).", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/send": { "post": { "tags": [ "agents" ], "summary": "Send prompt", "description": "Sends prompt to agents/panes.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SendResponse" }, "examples": { "example": { "value": { "success": true, "pane": 1, "bytes": 21, "echoed": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SendRequest" }, "examples": { "command": { "value": { "pane": 1, "text": "rg --files internal", "enter": true } }, "multiline": { "value": { "pane": 2, "text": "go test ./...", "enter": true, "raw": false } } } } } } } }, "/sessions/{sessionId}/interrupt": { "post": { "tags": [ "agents" ], "summary": "Interrupt", "description": "Sends Ctrl+C to agents.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InterruptResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InterruptRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions/{sessionId}/wait": { "post": { "tags": [ "agents" ], "summary": "Wait state", "description": "Waits for agent state.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WaitResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WaitRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions/{sessionId}/replay": { "post": { "tags": [ "agents" ], "summary": "Replay", "description": "Replays a prompt from history.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReplayRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions/{sessionId}/activity": { "get": { "tags": [ "agents" ], "summary": "Activity", "description": "Agent activity state.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/summary": { "get": { "tags": [ "agents" ], "summary": "Summary", "description": "Session activity summary.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/health": { "get": { "tags": [ "agents" ], "summary": "Health", "description": "Health status for session.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/quota": { "get": { "tags": [ "agents" ], "summary": "Quota", "description": "Quota usage for session.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/rotate": { "post": { "tags": [ "agents" ], "summary": "Rotate", "description": "Rotate agents/accounts.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RotateRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/rotate/context/history": { "get": { "tags": [ "agents" ], "summary": "Rotation history", "description": "Context rotation history.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } }, "delete": { "tags": [ "agents" ], "summary": "Clear rotation history", "description": "Clears rotation history.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/rotate/context/stats": { "get": { "tags": [ "agents" ], "summary": "Rotation stats", "description": "Context rotation statistics.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/copy": { "get": { "tags": [ "output" ], "summary": "Copy output", "description": "Returns recent output.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CopyResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/save": { "get": { "tags": [ "output" ], "summary": "Save output", "description": "Saves output to files.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/grep": { "post": { "tags": [ "output" ], "summary": "Grep output", "description": "Filter output by regex.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GrepResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GrepRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions/{sessionId}/extract": { "post": { "tags": [ "output" ], "summary": "Extract code blocks", "description": "Extract code blocks.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExtractResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExtractRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions/{sessionId}/diff": { "get": { "tags": [ "output" ], "summary": "Diff panes", "description": "Diff outputs between panes.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/changes": { "get": { "tags": [ "output" ], "summary": "File changes", "description": "Recent changes with attribution.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/{sessionId}/conflicts": { "get": { "tags": [ "output" ], "summary": "Conflicts", "description": "Conflict detection.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/history/{id}": { "get": { "tags": [ "output" ], "summary": "History entry", "description": "Get history entry.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/history/clear": { "post": { "tags": [ "output" ], "summary": "Clear history", "description": "Clears history.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/history/stats": { "get": { "tags": [ "output" ], "summary": "History stats", "description": "History stats.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/history/export": { "post": { "tags": [ "output" ], "summary": "History export", "description": "Exports history.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/history/prune": { "post": { "tags": [ "output" ], "summary": "Prune history", "description": "Prunes history.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/analytics": { "get": { "tags": [ "output" ], "summary": "Analytics", "description": "Analytics summary.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/metrics": { "get": { "tags": [ "output" ], "summary": "Metrics", "description": "Metrics summary.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/metrics/compare": { "get": { "tags": [ "output" ], "summary": "Metrics compare", "description": "Compare metrics snapshots.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/metrics/export": { "get": { "tags": [ "output" ], "summary": "Metrics export", "description": "Export metrics.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/metrics/snapshot": { "post": { "tags": [ "output" ], "summary": "Metrics snapshot", "description": "Create metrics snapshot.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/metrics/save": { "post": { "tags": [ "output" ], "summary": "Metrics save", "description": "Save metrics snapshot.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NameRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/metrics/list": { "get": { "tags": [ "output" ], "summary": "Metrics list", "description": "List metrics snapshots.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/checkpoints": { "post": { "tags": [ "output" ], "summary": "Create checkpoint", "description": "Create checkpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CheckpointCreateRequest" }, "examples": { "example": { "value": {} } } } } } }, "get": { "tags": [ "output" ], "summary": "List checkpoints", "description": "List checkpoints.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/checkpoints/{id}": { "get": { "tags": [ "output" ], "summary": "Get checkpoint", "description": "Get checkpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } }, "delete": { "tags": [ "output" ], "summary": "Delete checkpoint", "description": "Delete checkpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/checkpoints/{id}/verify": { "post": { "tags": [ "output" ], "summary": "Verify checkpoint", "description": "Verify checkpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/checkpoints/{id}/export": { "post": { "tags": [ "output" ], "summary": "Export checkpoint", "description": "Export checkpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/checkpoints/import": { "post": { "tags": [ "output" ], "summary": "Import checkpoint", "description": "Import checkpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImportRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions/{sessionId}/rollback": { "post": { "tags": [ "output" ], "summary": "Rollback", "description": "Rollback session.", "parameters": [ { "name": "sessionId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RollbackRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/sessions/saved": { "post": { "tags": [ "sessions" ], "summary": "Save session state", "description": "Save session state.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } }, "get": { "tags": [ "sessions" ], "summary": "List saved", "description": "List saved session states.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/saved/{name}": { "get": { "tags": [ "sessions" ], "summary": "Get saved", "description": "Get saved state.", "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } }, "delete": { "tags": [ "sessions" ], "summary": "Delete saved", "description": "Delete saved state.", "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/sessions/saved/{name}/restore": { "post": { "tags": [ "sessions" ], "summary": "Restore saved", "description": "Restore saved session.", "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/tools": { "get": { "tags": [ "tools" ], "summary": "Tools", "description": "List tool health.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ToolsResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/tools/{tool}": { "get": { "tags": [ "tools" ], "summary": "Tool details", "description": "Tool health details.", "parameters": [ { "name": "tool", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/work/triage": { "get": { "tags": [ "beads" ], "summary": "Triage", "description": "BV triage.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/work/alerts": { "get": { "tags": [ "beads" ], "summary": "Work alerts", "description": "Work alerts.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/work/search": { "get": { "tags": [ "beads" ], "summary": "Work search", "description": "Search work items.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/work/impact": { "post": { "tags": [ "beads" ], "summary": "Impact analysis", "description": "Impact analysis.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImpactRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/work/next": { "get": { "tags": [ "beads" ], "summary": "Next work", "description": "Next recommended work.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/beads/daemon/start": { "post": { "tags": [ "beads" ], "summary": "Start beads daemon", "description": "Start BD daemon.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BeadsDaemonControlResponse" }, "examples": { "example": { "value": { "success": true, "action": "start", "status": "running", "pid": 41291 } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BeadsDaemonRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/beads/daemon/stop": { "post": { "tags": [ "beads" ], "summary": "Stop beads daemon", "description": "Stop BD daemon.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BeadsDaemonControlResponse" }, "examples": { "example": { "value": { "success": true, "action": "stop", "status": "stopped" } } } } } } } } }, "/beads/daemon/status": { "get": { "tags": [ "beads" ], "summary": "Beads status", "description": "BD daemon status.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DaemonStatusResponse" }, "examples": { "example": { "value": { "success": true, "running": true, "pid": 41291, "uptime_sec": 4200, "socket": "/tmp/beads.sock", "version": "0.5.1" } } } } } } } } }, "/beads/daemon/health": { "get": { "tags": [ "beads" ], "summary": "Beads health", "description": "BD daemon health.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BeadsDaemonHealthResponse" }, "examples": { "example": { "value": { "success": true, "status": "ok", "message": "beads daemon healthy" } } } } } } } } }, "/beads/daemon/metrics": { "get": { "tags": [ "beads" ], "summary": "Beads metrics", "description": "BD daemon metrics.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BeadsDaemonMetricsResponse" }, "examples": { "example": { "value": { "success": true, "metrics": { "queue_depth": 0, "events_processed": 184, "last_sync_ms": 22 } } } } } } } } } }, "/cass/status": { "get": { "tags": [ "cass" ], "summary": "CASS status", "description": "CASS health.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CassStatusResponse" }, "examples": { "example": { "value": { "success": true, "status": "ready", "index_path": "/data/projects/ntm/.cass/index", "entries": 1824, "last_indexed_at": "2026-01-07T00:00:00Z", "version": "0.9.2" } } } } } } } } }, "/cass/search": { "get": { "tags": [ "cass" ], "summary": "CASS search", "description": "Semantic search.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CassSearchResponse" }, "examples": { "example": { "value": { "success": true, "count": 2, "results": [ { "session_path": "/data/cass/sessions/2026-01-04-ntm.jsonl", "agent": "claude", "snippet": "robot snapshot output includes sessions, panes, agents", "score": 0.82, "created_at": "2026-01-04T18:44:05Z" }, { "session_path": "/data/cass/sessions/2026-01-02-ntm.jsonl", "agent": "codex", "snippet": "openapi generator writes docs/openapi.json", "score": 0.75, "created_at": "2026-01-02T21:09:33Z" } ] } } } } } } } } }, "/cass/insights": { "get": { "tags": [ "cass" ], "summary": "CASS insights", "description": "CASS insights.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CassInsightsResponse" }, "examples": { "example": { "value": { "success": true, "summary": "Recent sessions focus on robot-mode automation.", "top_terms": [ "robot", "openapi", "parity", "agents" ], "top_agents": [ { "type": "claude", "count": 12 }, { "type": "codex", "count": 6 } ] } } } } } } } } }, "/cass/timeline": { "get": { "tags": [ "cass" ], "summary": "CASS timeline", "description": "CASS timeline.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CassTimelineResponse" }, "examples": { "example": { "value": { "success": true, "events": [ { "timestamp": "2026-01-05T12:10:00Z", "kind": "index", "detail": "Indexed 124 sessions." }, { "timestamp": "2026-01-06T08:30:00Z", "kind": "prune", "detail": "Removed 2 expired sessions." } ] } } } } } } } } }, "/cass/preview": { "post": { "tags": [ "cass" ], "summary": "CASS preview", "description": "Preview prompt context.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CassPreviewResponse" }, "examples": { "example": { "value": { "success": true, "session_path": "/data/cass/sessions/2026-01-04-ntm.jsonl", "offset": 42, "lines": [ "{\"role\":\"assistant\",\"content\":\"Generated openapi.json\"}", "{\"role\":\"user\",\"content\":\"Ship it\"}" ] } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CassPreviewRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/context/build": { "post": { "tags": [ "context" ], "summary": "Build context", "description": "Build context pack.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContextBuildResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContextBuildRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/context/{id}": { "get": { "tags": [ "context" ], "summary": "Show context pack", "description": "Get context pack.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/context/stats": { "get": { "tags": [ "context" ], "summary": "Context stats", "description": "Context stats.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/context/cache": { "delete": { "tags": [ "context" ], "summary": "Clear context cache", "description": "Clear context cache.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/memory/daemon/start": { "post": { "tags": [ "context" ], "summary": "Start CM daemon", "description": "Starts CM server.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DaemonStartRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/memory/context": { "post": { "tags": [ "context" ], "summary": "Get memory context", "description": "CM context for task.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemoryContextResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemoryContextRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/memory/outcome": { "post": { "tags": [ "context" ], "summary": "Record outcome", "description": "Record CM outcome.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemoryOutcomeRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/memory/privacy": { "post": { "tags": [ "context" ], "summary": "Memory privacy", "description": "Update privacy settings.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemoryPrivacyRequest" }, "examples": { "example": { "value": {} } } } } } }, "get": { "tags": [ "context" ], "summary": "Memory privacy status", "description": "Get privacy status.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/scan": { "post": { "tags": [ "scanner" ], "summary": "Run scan", "description": "Run UBS scan.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScanResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScanRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/scan/bridge": { "post": { "tags": [ "scanner" ], "summary": "Scan bridge", "description": "Create beads from findings.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScanBridgeRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/scan/watch": { "post": { "tags": [ "scanner" ], "summary": "Scan watch", "description": "Watch mode scan.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScanRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/bugs": { "get": { "tags": [ "scanner" ], "summary": "Bugs list", "description": "List bugs.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/bugs/notify": { "post": { "tags": [ "scanner" ], "summary": "Bugs notify", "description": "Notify agents about findings.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BugsNotifyRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/bugs/summary": { "get": { "tags": [ "scanner" ], "summary": "Bugs summary", "description": "Summary report.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/mail/send": { "post": { "tags": [ "agentmail" ], "summary": "Mail send", "description": "Send mail to agents.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MailSendResponse" }, "examples": { "example": { "value": { "success": true, "count": 1, "deliveries": [ { "project": "/data/projects/ntm", "payload": { "id": 4021, "subject": "OpenAPI generator updates", "thread_id": "FEAT-OPENAPI" } } ] } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MailSendRequest" }, "examples": { "example": { "value": { "project_key": "/data/projects/ntm", "sender_name": "BlueLake", "to": [ "GreenCastle" ], "subject": "OpenAPI generator updates", "body_md": "Generated docs/openapi.json from parity matrix.", "importance": "normal", "ack_required": true } } } } } } } }, "/mail/inbox": { "get": { "tags": [ "agentmail" ], "summary": "Mail inbox", "description": "Inbox.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MailInboxResponse" }, "examples": { "example": { "value": { "success": true, "messages": [ { "id": 4021, "subject": "OpenAPI generator updates", "from": "BlueLake", "created_ts": "2026-01-07T00:00:00Z", "importance": "normal", "ack_required": true } ] } } } } } } } } }, "/message/inbox": { "get": { "tags": [ "agentmail" ], "summary": "Message inbox", "description": "Message inbox.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InboxResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/message/send": { "post": { "tags": [ "agentmail" ], "summary": "Message send", "description": "Send message.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageSendRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/message/{id}": { "get": { "tags": [ "agentmail" ], "summary": "Message read", "description": "Read message.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/message/{id}/ack": { "post": { "tags": [ "agentmail" ], "summary": "Message ack", "description": "Ack message.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/locks": { "post": { "tags": [ "agentmail" ], "summary": "Create lock", "description": "Create file reservation.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LockRequest" }, "examples": { "example": { "value": {} } } } } } }, "get": { "tags": [ "agentmail" ], "summary": "List locks", "description": "List reservations.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/locks/release": { "post": { "tags": [ "agentmail" ], "summary": "Release locks", "description": "Release reservations.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LockReleaseRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/locks/{id}/force-release": { "post": { "tags": [ "agentmail" ], "summary": "Force release", "description": "Force release reservation (may require SLB).", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/locks/renew": { "post": { "tags": [ "agentmail" ], "summary": "Renew locks", "description": "Renew reservations.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LockRenewRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/approvals": { "get": { "tags": [ "approvals" ], "summary": "Approvals", "description": "List approvals.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApprovalListResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/approvals/{id}": { "get": { "tags": [ "approvals" ], "summary": "Approval show", "description": "Approval details.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/approvals/{id}/deny": { "post": { "tags": [ "approvals" ], "summary": "Deny approval", "description": "Deny approval.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApprovalDecisionRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/approvals/history": { "get": { "tags": [ "approvals" ], "summary": "Approval history", "description": "Approval history.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/personas": { "get": { "tags": [ "agents" ], "summary": "Personas", "description": "List personas.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/personas/{name}": { "get": { "tags": [ "agents" ], "summary": "Persona details", "description": "Show persona.", "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/profiles": { "get": { "tags": [ "agents" ], "summary": "Profiles", "description": "List profiles.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/profiles/{name}": { "get": { "tags": [ "agents" ], "summary": "Profile details", "description": "Show profile.", "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/profiles/switch": { "post": { "tags": [ "agents" ], "summary": "Switch profile", "description": "Switch agent profile.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProfileSwitchRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/recipes": { "get": { "tags": [ "agents" ], "summary": "Recipes", "description": "List recipes.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/recipes/{name}": { "get": { "tags": [ "agents" ], "summary": "Recipe details", "description": "Show recipe.", "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/templates": { "get": { "tags": [ "agents" ], "summary": "Templates", "description": "List templates.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/templates/{name}": { "get": { "tags": [ "agents" ], "summary": "Template details", "description": "Show template.", "parameters": [ { "name": "name", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/plugins": { "get": { "tags": [ "agents" ], "summary": "Plugins", "description": "List plugins.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/agents": { "get": { "tags": [ "agents" ], "summary": "Agents list", "description": "List agent types.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentsListResponse" }, "examples": { "example": { "value": { "success": true, "agents": [ { "type": "claude", "display_name": "Claude", "models": [ "opus-4.1", "sonnet-4.1" ], "capabilities": [ "code", "analysis", "tools" ] }, { "type": "codex", "display_name": "OpenAI Codex", "models": [ "gpt-5-codex" ], "capabilities": [ "code", "review", "tools" ] }, { "type": "gemini", "display_name": "Gemini CLI", "models": [ "gemini-2.0" ], "capabilities": [ "code", "analysis" ] } ] } } } } } } } } }, "/agents/{agentType}": { "get": { "tags": [ "agents" ], "summary": "Agent info", "description": "Show agent type.", "parameters": [ { "name": "agentType", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentDetailResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/agents/stats": { "get": { "tags": [ "agents" ], "summary": "Agent stats", "description": "Agent stats.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentStatsResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/agents/recommend": { "get": { "tags": [ "agents" ], "summary": "Recommend agents", "description": "Recommend agent mix.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRecommendResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/palette": { "get": { "tags": [ "agents" ], "summary": "Palette", "description": "List palette commands.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/palette/run": { "post": { "tags": [ "agents" ], "summary": "Palette run", "description": "Run palette command.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaletteRunRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/git/sync": { "post": { "tags": [ "core" ], "summary": "Git sync", "description": "Git sync.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GitSyncRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/git/status": { "get": { "tags": [ "core" ], "summary": "Git status", "description": "Git status.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/safety/status": { "get": { "tags": [ "core" ], "summary": "Safety status", "description": "Safety status.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/safety/blocked": { "get": { "tags": [ "core" ], "summary": "Safety blocked", "description": "Blocked commands.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/safety/check": { "post": { "tags": [ "core" ], "summary": "Safety check", "description": "Check command against policy.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SafetyCheckRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/safety/install": { "post": { "tags": [ "core" ], "summary": "Safety install", "description": "Install safety hooks.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/safety/uninstall": { "post": { "tags": [ "core" ], "summary": "Safety uninstall", "description": "Uninstall safety hooks.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/policy": { "get": { "tags": [ "core" ], "summary": "Policy", "description": "Show policy.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/policy/validate": { "post": { "tags": [ "core" ], "summary": "Policy validate", "description": "Validate policy.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PolicyValidateRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/policy/reset": { "post": { "tags": [ "core" ], "summary": "Policy reset", "description": "Reset policy.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/policy/edit": { "post": { "tags": [ "core" ], "summary": "Policy edit", "description": "Edit policy.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/policy/automation": { "post": { "tags": [ "core" ], "summary": "Policy automation", "description": "Update automation config.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PolicyAutomationRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/hooks/install": { "post": { "tags": [ "core" ], "summary": "Hooks install", "description": "Install hooks.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HookRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/hooks/uninstall": { "post": { "tags": [ "core" ], "summary": "Hooks uninstall", "description": "Uninstall hooks.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HookRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/hooks/status": { "get": { "tags": [ "core" ], "summary": "Hooks status", "description": "Hooks status.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/hooks/run": { "post": { "tags": [ "core" ], "summary": "Hooks run", "description": "Run hooks.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HookRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/hooks/guard/install": { "post": { "tags": [ "core" ], "summary": "Hook guard install", "description": "Install guard hook.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/hooks/guard/uninstall": { "post": { "tags": [ "core" ], "summary": "Hook guard uninstall", "description": "Uninstall guard hook.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/guards/install": { "post": { "tags": [ "core" ], "summary": "Guards install", "description": "Install guards.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/guards/uninstall": { "post": { "tags": [ "core" ], "summary": "Guards uninstall", "description": "Uninstall guards.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/guards/status": { "get": { "tags": [ "core" ], "summary": "Guards status", "description": "Guards status.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/pipelines/run": { "post": { "tags": [ "pipelines" ], "summary": "Run pipeline", "description": "Run workflow.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PipelineRunResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PipelineRunRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/pipelines/{id}": { "get": { "tags": [ "pipelines" ], "summary": "Pipeline status", "description": "Get pipeline status.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PipelineStatusResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/pipelines": { "get": { "tags": [ "pipelines" ], "summary": "Pipeline list", "description": "List pipelines.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PipelineListResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/pipelines/{id}/cancel": { "post": { "tags": [ "pipelines" ], "summary": "Pipeline cancel", "description": "Cancel pipeline.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PipelineCancelResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/pipelines/{id}/resume": { "post": { "tags": [ "pipelines" ], "summary": "Pipeline resume", "description": "Resume pipeline.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/pipelines/cleanup": { "post": { "tags": [ "pipelines" ], "summary": "Pipeline cleanup", "description": "Cleanup pipelines.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/pipelines/exec": { "post": { "tags": [ "pipelines" ], "summary": "Pipeline exec", "description": "Execute pipeline in session.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PipelineExecRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/tutorial": { "get": { "tags": [ "core" ], "summary": "Tutorial", "description": "Tutorial metadata.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/help": { "get": { "tags": [ "robot" ], "summary": "Robot help", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/status": { "get": { "tags": [ "robot" ], "summary": "Robot status", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z", "sessions": [ { "id": "sess_proj", "name": "ntm", "panes": 4, "status": "active" } ], "panes": [ { "session_id": "sess_proj", "pane": 0, "title": "shell", "busy": false }, { "session_id": "sess_proj", "pane": 1, "title": "claude", "busy": true } ], "agents": [ { "name": "BlueLake", "type": "claude", "pane": 1, "status": "running", "last_active_at": "2026-01-07T00:00:00Z" } ], "alerts": [], "notes": [ "Robot mode enabled" ] } } } } } } } } }, "/robot/version": { "get": { "tags": [ "robot" ], "summary": "Robot version", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/plan": { "get": { "tags": [ "robot" ], "summary": "Robot plan", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/snapshot": { "get": { "tags": [ "robot" ], "summary": "Robot snapshot", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z", "sessions": [ { "id": "sess_proj", "name": "ntm", "panes": 4, "status": "active" } ], "panes": [ { "session_id": "sess_proj", "pane": 0, "title": "shell", "cwd": "/data/projects/ntm", "busy": false }, { "session_id": "sess_proj", "pane": 1, "title": "claude", "cwd": "/data/projects/ntm", "busy": true } ], "agents": [ { "name": "BlueLake", "type": "claude", "model": "opus-4.1", "pane": 1, "status": "running" } ], "alerts": [] } } } } } } } } }, "/robot/graph": { "get": { "tags": [ "robot" ], "summary": "Robot graph", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/dashboard": { "get": { "tags": [ "robot" ], "summary": "Robot dashboard", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/context": { "get": { "tags": [ "robot" ], "summary": "Robot context", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/terse": { "get": { "tags": [ "robot" ], "summary": "Robot terse", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/markdown": { "get": { "tags": [ "robot" ], "summary": "Robot markdown", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/tail": { "get": { "tags": [ "robot" ], "summary": "Robot tail", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z", "panes": [ { "session": "ntm", "pane": 1, "lines": [ "[INFO] Starting openapi generation...", "Wrote 223 endpoints to docs/parity_matrix.json", "Wrote OpenAPI spec to docs/openapi.json" ] } ] } } } } } } } } }, "/robot/send": { "post": { "tags": [ "robot" ], "summary": "Robot send", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z", "targets": [ "1" ] } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": { "session": "ntm", "panes": [ 1 ], "msg": "Summarize the open API changes.", "type": "claude", "track": true } } } } } } } }, "/robot/ack": { "post": { "tags": [ "robot" ], "summary": "Robot ack", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:30Z", "responses": [ { "pane": 1, "received_at": "2026-01-07T00:00:30Z", "text": "Done." } ] } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": { "session": "ntm", "panes": [ 1 ], "msg": "ACK", "ack_timeout": "30s" } } } } } } } }, "/robot/send-and-ack": { "post": { "tags": [ "robot" ], "summary": "Robot send+ack", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/spawn": { "post": { "tags": [ "robot" ], "summary": "Robot spawn", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/interrupt": { "post": { "tags": [ "robot" ], "summary": "Robot interrupt", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/save": { "post": { "tags": [ "robot" ], "summary": "Robot save", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/restore": { "post": { "tags": [ "robot" ], "summary": "Robot restore", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/wait": { "post": { "tags": [ "robot" ], "summary": "Robot wait", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/route": { "get": { "tags": [ "robot" ], "summary": "Robot route", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/health": { "get": { "tags": [ "robot" ], "summary": "Robot health", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/activity": { "get": { "tags": [ "robot" ], "summary": "Robot activity", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/history": { "get": { "tags": [ "robot" ], "summary": "Robot history", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/summary": { "get": { "tags": [ "robot" ], "summary": "Robot summary", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/diff": { "get": { "tags": [ "robot" ], "summary": "Robot diff", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/recipes": { "get": { "tags": [ "robot" ], "summary": "Robot recipes", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/schema/{type}": { "get": { "tags": [ "robot" ], "summary": "Robot schema", "description": "Robot parity endpoint.", "parameters": [ { "name": "type", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/cass/status": { "get": { "tags": [ "robot" ], "summary": "Robot CASS status", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/cass/search": { "get": { "tags": [ "robot" ], "summary": "Robot CASS search", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/cass/insights": { "get": { "tags": [ "robot" ], "summary": "Robot CASS insights", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/cass/context": { "get": { "tags": [ "robot" ], "summary": "Robot CASS context", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/tokens": { "get": { "tags": [ "robot" ], "summary": "Robot tokens", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/assign": { "get": { "tags": [ "robot" ], "summary": "Robot assign", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/pipeline/run": { "post": { "tags": [ "robot" ], "summary": "Robot pipeline run", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/pipeline/{id}": { "get": { "tags": [ "robot" ], "summary": "Robot pipeline status", "description": "Robot parity endpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/pipeline": { "get": { "tags": [ "robot" ], "summary": "Robot pipeline list", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/pipeline/{id}/cancel": { "post": { "tags": [ "robot" ], "summary": "Robot pipeline cancel", "description": "Robot parity endpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/files": { "get": { "tags": [ "robot" ], "summary": "Robot files", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/inspect-pane": { "get": { "tags": [ "robot" ], "summary": "Robot inspect pane", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/metrics": { "get": { "tags": [ "robot" ], "summary": "Robot metrics", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/replay": { "post": { "tags": [ "robot" ], "summary": "Robot replay", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/palette": { "get": { "tags": [ "robot" ], "summary": "Robot palette", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/alerts": { "get": { "tags": [ "robot" ], "summary": "Robot alerts", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/alerts/dismiss": { "post": { "tags": [ "robot" ], "summary": "Robot dismiss alert", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/beads": { "get": { "tags": [ "robot" ], "summary": "Robot beads list", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z", "beads": [ { "id": "bd-101", "title": "Add OpenAPI generator", "status": "done", "priority": 2 }, { "id": "bd-104", "title": "Wire OpenAPI lint into CI", "status": "in_progress", "priority": 1 } ] } } } } } } } } }, "/robot/beads/{id}": { "get": { "tags": [ "robot" ], "summary": "Robot bead show", "description": "Robot parity endpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } } } }, "/robot/beads/{id}/claim": { "post": { "tags": [ "robot" ], "summary": "Robot bead claim", "description": "Robot parity endpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/beads/{id}/close": { "post": { "tags": [ "robot" ], "summary": "Robot bead close", "description": "Robot parity endpoint.", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotRequest" }, "examples": { "example": { "value": {} } } } } } } }, "/robot/mail": { "get": { "tags": [ "robot" ], "summary": "Robot mail", "description": "Robot parity endpoint.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RobotResponse" }, "examples": { "example": { "value": { "success": true, "timestamp": "2026-01-07T00:00:00Z", "inbox": [ { "id": 4021, "subject": "OpenAPI generator updates", "from": "BlueLake", "created_ts": "2026-01-07T00:00:00Z", "ack_required": true } ] } } } } } } } } }, "/auth/login": { "post": { "tags": [ "auth" ], "summary": "Login", "description": "Exchange credentials for access and refresh tokens.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthLoginResponse" }, "examples": { "success": { "value": { "success": true, "token_type": "bearer", "access_token": "ntm_at_01HZZV8R4WJY9W9Y2M6J1T8M0N", "refresh_token": "ntm_rt_01HZZV8S52S4H7B4J0QH7A7F2M", "expires_in": 3600, "user": { "id": "user_01", "name": "Jordan Lee", "email": "jordan@ntm.dev", "roles": [ "admin" ], "org_id": "org_01" } } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthLoginRequest" }, "examples": { "password": { "value": { "provider": "local", "username": "jordan", "password": "correct-horse-battery-staple", "otp": "123456", "device_name": "macbook-pro-16" } } } } } } } }, "/auth/refresh": { "post": { "tags": [ "auth" ], "summary": "Refresh access token", "description": "Issue a new access token using a refresh token.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthRefreshResponse" }, "examples": { "example": { "value": { "success": true, "token_type": "bearer", "access_token": "ntm_at_01HZZV9A6Q0DXJ4C2N7KJ6B5M7", "expires_in": 3600 } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthRefreshRequest" }, "examples": { "example": { "value": { "refresh_token": "ntm_rt_01HZZV8S52S4H7B4J0QH7A7F2M" } } } } } } } }, "/auth/logout": { "post": { "tags": [ "auth" ], "summary": "Logout", "description": "Invalidate the current refresh token.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" }, "examples": { "example": { "value": { "success": true, "message": "Logged out.", "timestamp": "2026-01-07T00:00:00Z" } } } } } } }, "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthLogoutRequest" }, "examples": { "example": { "value": { "refresh_token": "ntm_rt_01HZZV8S52S4H7B4J0QH7A7F2M" } } } } } } } }, "/auth/whoami": { "get": { "tags": [ "auth" ], "summary": "Current user", "description": "Return the authenticated user and org context.", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthWhoamiResponse" }, "examples": { "example": { "value": { "success": true, "user": { "id": "user_01", "name": "Jordan Lee", "email": "jordan@ntm.dev", "roles": [ "admin" ], "org_id": "org_01" }, "org": { "id": "org_01", "name": "NTM Labs", "plan": "enterprise" } } } } } } } } } } }, "components": { "schemas": { "SuccessResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "message": { "type": "string" }, "timestamp": { "type": "string", "format": "date-time" } }, "required": [ "success" ] }, "GenericResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "message": { "type": "string" }, "warnings": { "type": "array", "items": { "type": "string" } }, "timestamp": { "type": "string", "format": "date-time" } }, "required": [ "success" ], "additionalProperties": true }, "HealthResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "status": { "type": "string" }, "version": { "type": "string" }, "uptime_sec": { "type": "number" }, "timestamp": { "type": "string", "format": "date-time" } }, "required": [ "success", "status" ] }, "VersionResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "version": { "type": "string" }, "commit": { "type": "string" }, "build_date": { "type": "string" }, "go_version": { "type": "string" } }, "required": [ "success", "version" ] }, "DoctorResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "summary": { "type": "string" }, "checks": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "status": { "type": "string" }, "message": { "type": "string" } }, "required": [ "name", "status" ] } } }, "required": [ "success" ] }, "Session": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "project_path": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, "status": { "type": "string" }, "pane_count": { "type": "number" }, "active_pane": { "type": "number" }, "layout": { "type": "string" }, "tmux_session": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } } }, "required": [ "id", "name", "project_path", "status" ] }, "SessionResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "session": { "$ref": "#/components/schemas/Session" } }, "required": [ "success", "session" ] }, "SessionListResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "count": { "type": "number" }, "sessions": { "type": "array", "items": { "$ref": "#/components/schemas/Session" } } }, "required": [ "success", "sessions" ] }, "CreateSessionRequest": { "type": "object", "properties": { "name": { "type": "string" }, "project_dir": { "type": "string" }, "panes": { "type": "number" }, "layout": { "type": "string" }, "agents": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "model": { "type": "string" }, "pane": { "type": "number" } } } }, "env": { "type": "object", "additionalProperties": { "type": "string" } } }, "required": [ "name", "project_dir" ] }, "CreateSessionResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "session": { "$ref": "#/components/schemas/Session" }, "pane_count": { "type": "number" } }, "required": [ "success", "session" ] }, "SpawnRequest": { "type": "object", "properties": { "agent_type": { "type": "string" }, "model": { "type": "string" }, "count": { "type": "number" }, "panes": { "type": "array", "items": { "type": "number" } }, "prompt": { "type": "string" }, "env": { "type": "object", "additionalProperties": { "type": "string" } } } }, "SpawnResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "spawned": { "type": "number" }, "agents": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" }, "model": { "type": "string" }, "pane": { "type": "number" } } } } }, "required": [ "success" ] }, "SendRequest": { "type": "object", "properties": { "pane": { "type": "number" }, "text": { "type": "string" }, "enter": { "type": "boolean" }, "raw": { "type": "boolean" } }, "required": [ "pane", "text" ] }, "SendResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "pane": { "type": "number" }, "bytes": { "type": "number" }, "echoed": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "required": [ "success" ] }, "InterruptRequest": { "type": "object", "properties": { "pane": { "type": "number" }, "signal": { "type": "string" }, "reason": { "type": "string" } } }, "InterruptResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "pane": { "type": "number" }, "signal": { "type": "string" } } }, "RobotRequest": { "type": "object", "properties": { "session": { "type": "string" }, "panes": { "type": "array", "items": { "type": "number" } }, "msg": { "type": "string" }, "type": { "type": "string" }, "lines": { "type": "number" }, "since": { "type": "string" }, "track": { "type": "boolean" }, "ack_timeout": { "type": "string" } }, "additionalProperties": true }, "RobotResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" }, "sessions": { "type": "array", "items": { "type": "object" } }, "panes": { "type": "array", "items": { "type": "object" } }, "agents": { "type": "array", "items": { "type": "object" } }, "alerts": { "type": "array", "items": { "type": "object" } }, "notes": { "type": "array", "items": { "type": "string" } }, "warnings": { "type": "array", "items": { "type": "string" } } }, "required": [ "success" ], "additionalProperties": true }, "AgentsListResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "agents": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "display_name": { "type": "string" }, "models": { "type": "array", "items": { "type": "string" } }, "capabilities": { "type": "array", "items": { "type": "string" } } } } } }, "required": [ "success", "agents" ] }, "AgentDetailResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "agent": { "type": "object" } } }, "AgentStatsResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "stats": { "type": "object" } } }, "AgentRecommendResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "recommendations": { "type": "array", "items": { "type": "object" } } } }, "CassStatusResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "status": { "type": "string" }, "index_path": { "type": "string" }, "entries": { "type": "number" }, "last_indexed_at": { "type": "string", "format": "date-time" }, "version": { "type": "string" } }, "required": [ "success", "status" ] }, "CassSearchResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "count": { "type": "number" }, "results": { "type": "array", "items": { "type": "object", "properties": { "session_path": { "type": "string" }, "agent": { "type": "string" }, "snippet": { "type": "string" }, "score": { "type": "number" }, "created_at": { "type": "string", "format": "date-time" } } } } }, "required": [ "success", "results" ] }, "CassInsightsResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "summary": { "type": "string" }, "top_terms": { "type": "array", "items": { "type": "string" } }, "top_agents": { "type": "array", "items": { "type": "object" } } }, "required": [ "success" ] }, "CassTimelineResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "events": { "type": "array", "items": { "type": "object" } } }, "required": [ "success", "events" ] }, "CassPreviewResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "session_path": { "type": "string" }, "offset": { "type": "number" }, "lines": { "type": "array", "items": { "type": "string" } } }, "required": [ "success", "lines" ] }, "DaemonStatusResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "running": { "type": "boolean" }, "pid": { "type": "number" }, "uptime_sec": { "type": "number" }, "socket": { "type": "string" }, "version": { "type": "string" }, "last_error": { "type": "string" } }, "required": [ "success", "running" ] }, "BeadsDaemonControlResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "action": { "type": "string" }, "status": { "type": "string" }, "pid": { "type": "number" } }, "required": [ "success", "action", "status" ] }, "BeadsDaemonHealthResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "status": { "type": "string" }, "message": { "type": "string" } }, "required": [ "success", "status" ] }, "BeadsDaemonMetricsResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "metrics": { "type": "object", "additionalProperties": { "type": "number" } } }, "required": [ "success", "metrics" ] }, "MailSendRequest": { "type": "object", "properties": { "project_key": { "type": "string" }, "sender_name": { "type": "string" }, "to": { "type": "array", "items": { "type": "string" } }, "subject": { "type": "string" }, "body_md": { "type": "string" }, "importance": { "type": "string" }, "ack_required": { "type": "boolean" }, "cc": { "type": "array", "items": { "type": "string" } }, "bcc": { "type": "array", "items": { "type": "string" } }, "attachment_paths": { "type": "array", "items": { "type": "string" } } }, "required": [ "project_key", "sender_name", "to", "subject", "body_md" ] }, "MailSendResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "count": { "type": "number" }, "deliveries": { "type": "array", "items": { "type": "object" } } } }, "MailInboxResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "messages": { "type": "array", "items": { "type": "object" } } } }, "AuthLoginRequest": { "type": "object", "properties": { "provider": { "type": "string" }, "username": { "type": "string" }, "password": { "type": "string" }, "otp": { "type": "string" }, "device_name": { "type": "string" } }, "required": [ "provider", "username", "password" ] }, "AuthLoginResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "token_type": { "type": "string" }, "access_token": { "type": "string" }, "refresh_token": { "type": "string" }, "expires_in": { "type": "number" }, "user": { "type": "object" } }, "required": [ "success", "access_token", "refresh_token" ] }, "AuthRefreshRequest": { "type": "object", "properties": { "refresh_token": { "type": "string" } }, "required": [ "refresh_token" ] }, "AuthRefreshResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "token_type": { "type": "string" }, "access_token": { "type": "string" }, "expires_in": { "type": "number" } }, "required": [ "success", "access_token" ] }, "AuthLogoutRequest": { "type": "object", "properties": { "refresh_token": { "type": "string" } }, "required": [ "refresh_token" ] }, "AuthWhoamiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "user": { "type": "object" }, "org": { "type": "object" } } }, "UpgradeRequest": { "type": "object", "description": "Request payload for UpgradeRequest.", "additionalProperties": true }, "ProjectsBaseRequest": { "type": "object", "description": "Request payload for ProjectsBaseRequest.", "additionalProperties": true }, "ConfigValidateRequest": { "type": "object", "description": "Request payload for ConfigValidateRequest.", "additionalProperties": true }, "ConfigResetRequest": { "type": "object", "description": "Request payload for ConfigResetRequest.", "additionalProperties": true }, "ProjectInitRequest": { "type": "object", "description": "Request payload for ProjectInitRequest.", "additionalProperties": true }, "ShellInitRequest": { "type": "object", "description": "Request payload for ShellInitRequest.", "additionalProperties": true }, "ShellInitResponse": { "type": "object", "description": "Response payload for ShellInitResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "BindRequest": { "type": "object", "description": "Request payload for BindRequest.", "additionalProperties": true }, "ZoomRequest": { "type": "object", "description": "Request payload for ZoomRequest.", "additionalProperties": true }, "AddAgentsRequest": { "type": "object", "description": "Request payload for AddAgentsRequest.", "additionalProperties": true }, "AddAgentsResponse": { "type": "object", "description": "Response payload for AddAgentsResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "QuickProjectRequest": { "type": "object", "description": "Request payload for QuickProjectRequest.", "additionalProperties": true }, "WaitRequest": { "type": "object", "description": "Request payload for WaitRequest.", "additionalProperties": true }, "WaitResponse": { "type": "object", "description": "Response payload for WaitResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "ReplayRequest": { "type": "object", "description": "Request payload for ReplayRequest.", "additionalProperties": true }, "RotateRequest": { "type": "object", "description": "Request payload for RotateRequest.", "additionalProperties": true }, "CopyResponse": { "type": "object", "description": "Response payload for CopyResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "GrepRequest": { "type": "object", "description": "Request payload for GrepRequest.", "additionalProperties": true }, "GrepResponse": { "type": "object", "description": "Response payload for GrepResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "ExtractRequest": { "type": "object", "description": "Request payload for ExtractRequest.", "additionalProperties": true }, "ExtractResponse": { "type": "object", "description": "Response payload for ExtractResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "ExportRequest": { "type": "object", "description": "Request payload for ExportRequest.", "additionalProperties": true }, "NameRequest": { "type": "object", "description": "Request payload for NameRequest.", "additionalProperties": true }, "CheckpointCreateRequest": { "type": "object", "description": "Request payload for CheckpointCreateRequest.", "additionalProperties": true }, "ImportRequest": { "type": "object", "description": "Request payload for ImportRequest.", "additionalProperties": true }, "RollbackRequest": { "type": "object", "description": "Request payload for RollbackRequest.", "additionalProperties": true }, "ToolsResponse": { "type": "object", "description": "Response payload for ToolsResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "ImpactRequest": { "type": "object", "description": "Request payload for ImpactRequest.", "additionalProperties": true }, "BeadsDaemonRequest": { "type": "object", "description": "Request payload for BeadsDaemonRequest.", "additionalProperties": true }, "CassPreviewRequest": { "type": "object", "description": "Request payload for CassPreviewRequest.", "additionalProperties": true }, "ContextBuildRequest": { "type": "object", "description": "Request payload for ContextBuildRequest.", "additionalProperties": true }, "ContextBuildResponse": { "type": "object", "description": "Response payload for ContextBuildResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "DaemonStartRequest": { "type": "object", "description": "Request payload for DaemonStartRequest.", "additionalProperties": true }, "MemoryContextRequest": { "type": "object", "description": "Request payload for MemoryContextRequest.", "additionalProperties": true }, "MemoryContextResponse": { "type": "object", "description": "Response payload for MemoryContextResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "MemoryOutcomeRequest": { "type": "object", "description": "Request payload for MemoryOutcomeRequest.", "additionalProperties": true }, "MemoryPrivacyRequest": { "type": "object", "description": "Request payload for MemoryPrivacyRequest.", "additionalProperties": true }, "ScanRequest": { "type": "object", "description": "Request payload for ScanRequest.", "additionalProperties": true }, "ScanResponse": { "type": "object", "description": "Response payload for ScanResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "ScanBridgeRequest": { "type": "object", "description": "Request payload for ScanBridgeRequest.", "additionalProperties": true }, "BugsNotifyRequest": { "type": "object", "description": "Request payload for BugsNotifyRequest.", "additionalProperties": true }, "InboxResponse": { "type": "object", "description": "Response payload for InboxResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "MessageSendRequest": { "type": "object", "description": "Request payload for MessageSendRequest.", "additionalProperties": true }, "LockRequest": { "type": "object", "description": "Request payload for LockRequest.", "additionalProperties": true }, "LockReleaseRequest": { "type": "object", "description": "Request payload for LockReleaseRequest.", "additionalProperties": true }, "LockRenewRequest": { "type": "object", "description": "Request payload for LockRenewRequest.", "additionalProperties": true }, "ApprovalListResponse": { "type": "object", "description": "Response payload for ApprovalListResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "ApprovalDecisionRequest": { "type": "object", "description": "Request payload for ApprovalDecisionRequest.", "additionalProperties": true }, "ProfileSwitchRequest": { "type": "object", "description": "Request payload for ProfileSwitchRequest.", "additionalProperties": true }, "PaletteRunRequest": { "type": "object", "description": "Request payload for PaletteRunRequest.", "additionalProperties": true }, "GitSyncRequest": { "type": "object", "description": "Request payload for GitSyncRequest.", "additionalProperties": true }, "SafetyCheckRequest": { "type": "object", "description": "Request payload for SafetyCheckRequest.", "additionalProperties": true }, "PolicyValidateRequest": { "type": "object", "description": "Request payload for PolicyValidateRequest.", "additionalProperties": true }, "PolicyAutomationRequest": { "type": "object", "description": "Request payload for PolicyAutomationRequest.", "additionalProperties": true }, "HookRequest": { "type": "object", "description": "Request payload for HookRequest.", "additionalProperties": true }, "PipelineRunRequest": { "type": "object", "description": "Request payload for PipelineRunRequest.", "additionalProperties": true }, "PipelineRunResponse": { "type": "object", "description": "Response payload for PipelineRunResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "PipelineStatusResponse": { "type": "object", "description": "Response payload for PipelineStatusResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "PipelineListResponse": { "type": "object", "description": "Response payload for PipelineListResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "PipelineCancelResponse": { "type": "object", "description": "Response payload for PipelineCancelResponse.", "properties": { "success": { "type": "boolean" }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": true }, "PipelineExecRequest": { "type": "object", "description": "Request payload for PipelineExecRequest.", "additionalProperties": true } } } }