{"openapi":"3.1.0","info":{"title":"Runtype API","version":"1.0.0"},"paths":{"/v1/agent-versions/{agentId}":{"get":{"operationId":"list-versions-for-an-agent","summary":"List versions for an agent","tags":["subpackage_agentVersions"],"parameters":[{"name":"agentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/V1AgentVersionsAgentIdGetParametersType"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent versions list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent Versions_listVersionsForAnAgent_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVersionsForAnAgentRequestInternalServerError"}}}}}}},"/v1/agent-versions/{agentId}/publish":{"post":{"operationId":"publish-a-specific-agent-version","summary":"Publish a specific agent version","tags":["subpackage_agentVersions"],"parameters":[{"name":"agentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Version published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent Versions_publishASpecificAgentVersion_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishASpecificAgentVersionRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishASpecificAgentVersionRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string"}},"required":["versionId"]}}}}}},"/v1/agent-versions/{agentId}/published":{"get":{"operationId":"get-the-published-version-for-an-agent","summary":"Get the published version for an agent","tags":["subpackage_agentVersions"],"parameters":[{"name":"agentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Published agent version","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent Versions_getThePublishedVersionForAnAgent_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetThePublishedVersionForAnAgentRequestInternalServerError"}}}}}}},"/v1/agent-versions/{agentId}/{versionId}":{"get":{"operationId":"get-a-specific-agent-version","summary":"Get a specific agent version","tags":["subpackage_agentVersions"],"parameters":[{"name":"agentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent version detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent Versions_getASpecificAgentVersion_Response_200"}}}},"400":{"description":"Version does not belong to this agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetASpecificAgentVersionRequestInternalServerError"}}}}}}},"/v1/agents":{"get":{"operationId":"list-agents","summary":"List agents","description":"Get all agents for the authenticated user with filtering and cursor pagination.","tags":["subpackage_agents"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeCount","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of agents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_listAgents_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-agent","summary":"Create agent","description":"Create a new agent with optional capabilities and configuration. Supports runtype, external, and claude_managed agent types.","tags":["subpackage_agents"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Agent created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_createAgent_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Feature not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Feature not available in production","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agentType":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaAgentType","default":"runtype"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaCapabilitiesItems"}},"claudeManagedConfig":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfig"},"config":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfig"},"description":{"type":"string"},"externalConfig":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfig"},"icon":{"type":"string"},"maxTurns":{"type":"integer"},"name":{"type":"string"},"primaryFlowId":{"type":["string","null"]}},"required":["name"]}}}}}},"/v1/agents/fetch-agent-card":{"post":{"operationId":"fetch-external-agent-card","summary":"Fetch external agent card","description":"Proxy-fetch an external agent card from a URL, avoiding CORS issues. The URL is validated against SSRF attacks.","tags":["subpackage_agents"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent card JSON","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_fetchExternalAgentCard_Response_200"}}}},"400":{"description":"Invalid URL or non-JSON response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Failed to fetch agent card from remote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]}}}}}},"/v1/agents/{id}":{"get":{"operationId":"get-agent-details","summary":"Get agent details","description":"Get an agent by ID including its capabilities and configuration.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent details with capabilities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_getAgentDetails_Response_200"}}}},"400":{"description":"Invalid agent ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-agent","summary":"Update agent","description":"Update an existing agent. Supports partial updates — only provided fields are changed. Config updates are deep-merged.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_updateAgent_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Feature not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agentType":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaAgentType"},"claudeManagedConfig":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfig"},"config":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfig"},"description":{"type":"string"},"externalConfig":{"oneOf":[{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfig"},{"type":"null"}]},"icon":{"type":"string"},"maxTurns":{"type":"integer"},"name":{"type":"string"},"primaryFlowId":{"type":["string","null"]}}}}}}},"delete":{"operationId":"delete-agent","summary":"Delete agent","description":"Delete an agent and cascade-delete its capabilities.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_deleteAgent_Response_200"}}}},"400":{"description":"Invalid agent ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/approve":{"post":{"operationId":"resolve-a-pending-agent-tool-approval","summary":"Resolve a pending agent tool approval","description":"Resolve a pending tool approval on a paused agent execution (approved/denied). Streams a Server-Sent Events response when streamResponse is true (default); otherwise returns a JSON result.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Server-Sent Events stream of agent execution events (or a JSON result when streamResponse is false)","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/AgentSSEEvent"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent or execution not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/agents/{id}/capabilities":{"post":{"operationId":"add-capability-to-agent","summary":"Add capability to agent","description":"Add a capability (flow, sub-agent, or tool binding) to an agent.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Capability added","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_addCapabilityToAgent_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Tool name already exists for this agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"flowId":{"type":"string"},"parametersSchema":{"description":"Any type"},"subAgentId":{"type":"string"},"toolDescription":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"}},"required":["toolName"]}}}}}},"/v1/agents/{id}/capabilities/{capabilityId}":{"delete":{"operationId":"remove-capability-from-agent","summary":"Remove capability from agent","description":"Remove a capability (flow, sub-agent, or tool binding) from an agent.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"capabilityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Capability removed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_removeCapabilityFromAgent_Response_200"}}}},"400":{"description":"Invalid agent or capability ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent or capability not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/execute":{"post":{"operationId":"execute-agent","summary":"Execute agent","description":"Execute an agent (Quick Agent mode) with a message array. Streams a Server-Sent Events response when streamResponse is true (default); otherwise returns a JSON result.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Server-Sent Events stream of agent execution events (or a JSON result when streamResponse is false)","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/AgentSSEEvent"}}}},"400":{"description":"Invalid agent ID or request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/agents/{id}/executions":{"get":{"operationId":"list-agent-executions","summary":"List agent executions","description":"List execution history for an agent with cursor pagination. Supports cross-agent subagent drill-down via parentExecutionId or executionId filters.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeCount","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"surfaceType","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"parentExecutionId","in":"query","required":false,"schema":{"type":"string"}},{"name":"executionId","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of agent executions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_listAgentExecutions_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/executions/{executionId}":{"get":{"operationId":"get-execution-detail","summary":"Get execution detail","description":"Get full details for a single agent execution including final output, iteration details, and loop configuration.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Execution detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_getExecutionDetail_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Execution not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/executions/{executionId}/tool-calls":{"get":{"operationId":"list-tool-calls","summary":"List tool calls","description":"List tool calls for a single agent execution. Returns a compact payload without input/output JSON — use the detail endpoint for full payloads.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool calls for the execution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_listToolCalls_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent or execution not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/executions/{executionId}/tool-calls/{toolCallId}":{"get":{"operationId":"get-tool-call-detail","summary":"Get tool call detail","description":"Get full payload for a single tool call including input parameters and output result.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"toolCallId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Full tool call detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_getToolCallDetail_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Tool call not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/export-runtime":{"get":{"operationId":"export-agent-for-runtime","summary":"Export agent for runtime","description":"Export a fully-resolved, self-contained agent definition that the @runtypelabs/runtime package can consume directly at boot. Capabilities, flows, and nested sub-agents are inlined recursively (up to 3 levels). MCP credential values are replaced with secret-name references.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Exported agent definition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_exportAgentForRuntime_Response_200"}}}},"400":{"description":"Invalid agent ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/publish":{"post":{"operationId":"publish-agent","summary":"Publish agent","description":"Snapshot the current live agent state and promote it to a published version.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent published successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_publishAgent_Response_200"}}}},"400":{"description":"Invalid agent ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/refresh-agent-card":{"post":{"operationId":"refresh-cached-agent-card","summary":"Refresh cached agent card","description":"Re-fetch the agent card from the configured agentCardUrl (or derived A2A well-known URL) and update the cached copy. Detects skill changes, auto-applies roles to new skills, and returns a change report.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated agent with change report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_refreshCachedAgentCard_Response_200"}}}},"400":{"description":"Invalid agent ID, not an external agent, or no agent card URL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Failed to fetch agent card from remote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/agents/{id}/resume":{"post":{"operationId":"resume-a-paused-agent-execution","summary":"Resume a paused agent execution","description":"Resume a paused agent execution by supplying local tool outputs. Streams a Server-Sent Events response when streamResponse is true (default); otherwise returns a JSON result.","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Server-Sent Events stream of agent execution events (or a JSON result when streamResponse is false)","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/AgentSSEEvent"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent or execution not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/agents/{id}/voice":{"post":{"operationId":"execute-agent-voice-text-to-speech","summary":"Execute agent voice (text-to-speech)","description":"Generate speech audio for the given text using the agent voice configuration (ElevenLabs TTS).","tags":["subpackage_agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Generated audio result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agents_executeAgentVoiceTextToSpeech_Response_200"}}}},"400":{"description":"Invalid agent ID or missing text parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions or agent does not support voice","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Agent not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/analytics/record-results":{"get":{"operationId":"get-record-results","summary":"Get record results","description":"Get all record results for the current user with filtering and pagination. When a `days` parameter is provided, returns aggregated daily execution analytics instead of paginated results.","tags":["subpackage_analytics"],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Record results or aggregated daily analytics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Analytics_getRecordResults_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/analytics/stats":{"get":{"operationId":"get-analytics-stats","summary":"Get analytics stats","description":"Get user analytics stats (records, prompts, flows, executions, evals, agents, products count). Supports optional `from` and `to` date filters.","tags":["subpackage_analytics"],"parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Analytics stats","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Analytics_getAnalyticsStats_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/assets/preview/{orgId}/{assetId}":{"get":{"operationId":"preview-asset","summary":"Preview asset","description":"Serve a preview-rendering HTML asset inline with locked-down CSP.","tags":["subpackage_assets"],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string"}},{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"HTML preview content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Must use storage domain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Asset not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"410":{"description":"Preview expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Asset storage not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/assets/{orgId}/{assetId}":{"get":{"operationId":"get-asset","summary":"Get asset","description":"Serve an asset from R2 storage with proper headers. Public assets served immediately; private assets require signed URL.","tags":["subpackage_assets"],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string"}},{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sig","in":"query","description":"HMAC-SHA256 signature for private assets","required":false,"schema":{"type":"string"}},{"name":"exp","in":"query","description":"Expiration timestamp for signed URL","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Asset content. The Content-Type reflects the stored asset (e.g. image/png, image/jpeg), defaulting to application/octet-stream.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"Access denied or must use storage domain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Asset not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Asset storage not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/auth/me":{"get":{"operationId":"get-current-user-info","summary":"Get current user info","description":"Get the current user and organization info from the Clerk session.","tags":["subpackage_authentication"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Current user and organization info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Authentication_getCurrentUserInfo_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/batch/cancel/{id}":{"post":{"operationId":"cancel-a-batch-execution","summary":"Cancel a batch execution","description":"Cancels a running or queued batch execution.","tags":["subpackage_batch"],"parameters":[{"name":"id","in":"path","description":"Batch execution ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch_cancelABatchExecution_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/batch/flow":{"post":{"operationId":"submit-a-batch-flow-execution","summary":"Submit a batch flow execution","description":"Submits a batch of records for flow execution. Checks daily execution limits and feature gating.","tags":["subpackage_batch"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch_submitABatchFlowExecution_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Feature not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"description":"Batch flow request body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/batch/status/{id}":{"get":{"operationId":"get-batch-execution-status","summary":"Get batch execution status","description":"Returns the current status and progress of a batch execution.","tags":["subpackage_batch"],"parameters":[{"name":"id","in":"path","description":"Batch execution ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch_getBatchExecutionStatus_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Batch not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/batch/summary":{"get":{"operationId":"get-batch-summary","summary":"Get batch summary","description":"Returns a summary of active and recently completed batch executions for the current user.","tags":["subpackage_batch"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch summary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch_getBatchSummary_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/batch/{batchId}/records/{recordId}/cost":{"get":{"operationId":"get-per-record-cost-for-a-batch","summary":"Get per-record cost for a batch","description":"Returns the total cost for a specific record within a batch execution.","tags":["subpackage_batch"],"parameters":[{"name":"batchId","in":"path","description":"Batch execution ID","required":true,"schema":{"type":"string"}},{"name":"recordId","in":"path","description":"Record ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Record cost","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch_getPerRecordCostForABatch_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Batch not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/batch/{batchId}/records/{recordId}/steps":{"get":{"operationId":"get-step-results-for-a-batch-record","summary":"Get step results for a batch record","description":"Returns per-record step results for a batch execution, ordered as a timeline.","tags":["subpackage_batch"],"parameters":[{"name":"batchId","in":"path","description":"Batch execution ID","required":true,"schema":{"type":"string"}},{"name":"recordId","in":"path","description":"Record ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Step results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch_getStepResultsForABatchRecord_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/batch/{id}/cost":{"get":{"operationId":"get-batch-execution-total-cost","summary":"Get batch execution total cost","description":"Returns the total cost across all records, flow steps, agent executions, and nested subagents.","tags":["subpackage_batch"],"parameters":[{"name":"id","in":"path","description":"Batch execution ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch cost","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch_getBatchExecutionTotalCost_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Batch not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/batch/{id}/ws":{"get":{"operationId":"web-socket-for-real-time-batch-updates","summary":"WebSocket for real-time batch updates","description":"Establishes a WebSocket connection for real-time progress updates on a batch execution.","tags":["subpackage_batch"],"parameters":[{"name":"id","in":"path","description":"Batch execution ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Batch not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/client-tokens":{"get":{"operationId":"list-client-tokens","summary":"List client tokens","description":"Get all client tokens for the authenticated user's tenant.","tags":["subpackage_clientTokens"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of client tokens","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client Tokens_listClientTokens_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-client-token","summary":"Create client token","description":"Create a new client token for browser-to-API communication. Returns the plain token value once.","tags":["subpackage_clientTokens"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created client token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client Tokens_createClientToken_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Referenced flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agentIds":{"type":"array","items":{"type":"string"},"default":[]},"allowedOrigins":{"type":"array","items":{"type":"string"}},"config":{"type":"object","additionalProperties":{"description":"Any type"},"default":{}},"defaultFlowId":{"type":"string"},"environment":{"$ref":"#/components/schemas/V1ClientTokensPostRequestBodyContentApplicationJsonSchemaEnvironment","default":"live"},"flowIds":{"type":"array","items":{"type":"string"},"default":[]},"maxMessagesPerSession":{"type":"number","format":"double","default":100},"name":{"type":"string"},"pinToVersion":{"type":"string","default":"latest"},"productSurfaceId":{"type":"string"},"rateLimitPerHour":{"type":"number","format":"double","default":100},"rateLimitPerMinute":{"type":"number","format":"double","default":10},"sessionIdleTimeoutMinutes":{"type":"number","format":"double","default":30}},"required":["allowedOrigins","name"]}}}}}},"/v1/client-tokens/{id}":{"get":{"operationId":"get-client-token","summary":"Get client token","description":"Get a client token by ID with conversation count.","tags":["subpackage_clientTokens"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client token details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client Tokens_getClientToken_Response_200"}}}},"400":{"description":"Invalid client token ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Client token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-client-token","summary":"Update client token","description":"Update fields on an existing client token.","tags":["subpackage_clientTokens"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated client token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client Tokens_updateClientToken_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Client token or referenced flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agentIds":{"type":"array","items":{"type":"string"}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"config":{"type":"object","additionalProperties":{"description":"Any type"}},"defaultFlowId":{"type":"string"},"flowIds":{"type":"array","items":{"type":"string"}},"isActive":{"type":"boolean"},"maxMessagesPerSession":{"type":"number","format":"double"},"name":{"type":"string"},"pinToVersion":{"type":"string"},"rateLimitPerHour":{"type":"number","format":"double"},"rateLimitPerMinute":{"type":"number","format":"double"},"sessionIdleTimeoutMinutes":{"type":"number","format":"double"}}}}}}},"delete":{"operationId":"delete-client-token","summary":"Delete client token","description":"Delete a client token by ID.","tags":["subpackage_clientTokens"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client token deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client Tokens_deleteClientToken_Response_200"}}}},"400":{"description":"Invalid client token ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Client token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/client-tokens/{id}/conversations":{"get":{"operationId":"list-conversations-for-client-token","summary":"List conversations for client token","description":"List conversations associated with a client token using offset pagination.","tags":["subpackage_clientTokens"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"string"}},{"name":"flow_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated conversations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client Tokens_listConversationsForClientToken_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Client token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/client-tokens/{id}/regenerate":{"post":{"operationId":"regenerate-client-token","summary":"Regenerate client token","description":"Generate a new token value for an existing client token. Invalidates the previous token.","tags":["subpackage_clientTokens"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Regenerated client token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client Tokens_regenerateClientToken_Response_200"}}}},"400":{"description":"Invalid client token ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Client token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/client-tokens/{id}/token":{"get":{"operationId":"get-client-token-value","summary":"Get client token value","description":"Get the plain token value. Returns 400 with a hint if the token was created before token values were stored — use POST /{id}/regenerate to create a fresh value.","tags":["subpackage_clientTokens"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Token value","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client Tokens_getClientTokenValue_Response_200"}}}},"400":{"description":"Invalid ID, or token value not stored (legacy token)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetClientTokenValueRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Client token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/context-templates":{"get":{"operationId":"list-context-templates","summary":"List context templates","description":"Get all context templates for the authenticated user with optional type/name filtering and cursor pagination.","tags":["subpackage_contextTemplates"],"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of context templates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Context Templates_listContextTemplates_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-context-template","summary":"Create context template","description":"Create a new context template. The config is validated based on the template type.","tags":["subpackage_contextTemplates"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created context template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Context Templates_createContextTemplate_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/context-templates/{id}":{"get":{"operationId":"get-context-template","summary":"Get context template","description":"Get a specific context template by ID.","tags":["subpackage_contextTemplates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Context template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Context Templates_getContextTemplate_Response_200"}}}},"400":{"description":"Invalid context template ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Context template not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-context-template","summary":"Update context template","description":"Update a context template. When config is provided it is validated based on the template type.","tags":["subpackage_contextTemplates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated context template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Context Templates_updateContextTemplate_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Context template not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}},"delete":{"operationId":"delete-context-template","summary":"Delete context template","description":"Delete a context template by ID.","tags":["subpackage_contextTemplates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Context template deleted","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Invalid context template ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Context template not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/conversations":{"get":{"operationId":"list-conversations","summary":"List conversations","tags":["subpackage_conversations"],"parameters":[{"name":"source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/V1ConversationsGetParametersSource"}},{"name":"surface_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"client_token_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"ownerId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Conversations list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversations_listConversations_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-a-conversation","summary":"Create a conversation","tags":["subpackage_conversations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Conversation created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversations_createAConversation_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAConversationRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"metadata":{"type":"object","additionalProperties":{"description":"Any type"},"default":{}},"modelId":{"type":"string"},"ownerId":{"type":"string"},"systemPrompt":{"type":"string"},"title":{"type":"string","default":"New Chat"}}}}}}}},"/v1/conversations/{id}":{"get":{"operationId":"get-conversation-with-messages","summary":"Get conversation with messages","tags":["subpackage_conversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Conversation detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversations_getConversationWithMessages_Response_200"}}}},"400":{"description":"Invalid conversation ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Conversation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-a-conversation","summary":"Update a conversation","tags":["subpackage_conversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Conversation updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversations_updateAConversation_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAConversationRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Conversation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/V1ConversationsIdPutRequestBodyContentApplicationJsonSchemaMessagesItems"}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"modelId":{"type":"string"},"ownerId":{"type":"string"},"systemPrompt":{"type":"string"},"title":{"type":"string"}}}}}}},"delete":{"operationId":"delete-a-conversation","summary":"Delete a conversation","tags":["subpackage_conversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Conversation deleted","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Invalid conversation ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Conversation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/data-connections":{"get":{"operationId":"list-data-connections","summary":"List data connections","description":"List all data connections for the authenticated user/org.","tags":["subpackage_dataConnections"],"parameters":[{"name":"category","in":"query","description":"Filter by integration category","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by connection status","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of connections","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data Connections_listDataConnections_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/data-connections/connect-session":{"post":{"operationId":"create-connect-session","summary":"Create connect session","description":"Create a connect session that opens the provider hosted connect UI.","tags":["subpackage_dataConnections"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Connect session details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data Connections_createConnectSession_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"string"}},"label":{"type":"string"}}}}}}}},"/v1/data-connections/sync":{"post":{"operationId":"sync-connections","summary":"Sync connections","description":"Sync connections from StackOne into the local DB. Called by the dashboard after the Connect popup closes.","tags":["subpackage_dataConnections"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sync result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data Connections_syncConnections_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/data-connections/{id}":{"get":{"operationId":"get-data-connection","summary":"Get data connection","description":"Get a single data connection by ID.","tags":["subpackage_dataConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Connection details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data Connections_getDataConnection_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete-data-connection","summary":"Delete data connection","description":"Delete a data connection by ID.","tags":["subpackage_dataConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Connection deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data Connections_deleteDataConnection_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"update-connection-status","summary":"Update connection status","description":"Update a data connection status.","tags":["subpackage_dataConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated connection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data Connections_updateConnectionStatus_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/V1DataConnectionsIdPatchRequestBodyContentApplicationJsonSchemaStatus"}},"required":["status"]}}}}}},"/v1/data-connections/{id}/tools":{"get":{"operationId":"list-connection-tools","summary":"List connection tools","description":"List available tools for a specific data connection.","tags":["subpackage_dataConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Connection tools","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Data Connections_listConnectionTools_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/dispatch":{"post":{"operationId":"execute-a-flow-or-agent","summary":"Execute a flow or agent","description":"Main dispatch endpoint for flow and agent execution with record resolution. Supports streaming via SSE or synchronous JSON responses.","tags":["subpackage_dispatch"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Execution result (SSE stream or JSON)","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/DispatchSSEEvent"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Flow definition required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"description":"Dispatch request body (see DispatchRequestSchema)","content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/dispatch/approve":{"post":{"operationId":"approve-or-deny-a-pending-approval","summary":"Approve or deny a pending approval","description":"Submits an approval decision for a paused execution awaiting human-in-the-loop approval.","tags":["subpackage_dispatch"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Approval processed (SSE stream or JSON)","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/DispatchSSEEvent"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"approvalId":{"type":"string"},"decision":{"$ref":"#/components/schemas/V1DispatchApprovePostRequestBodyContentApplicationJsonSchemaDecision"},"executionId":{"type":"string"},"reason":{"type":"string"},"streamResponse":{"type":"boolean"}},"required":["approvalId","decision","executionId"]}}}}}},"/v1/dispatch/continue":{"post":{"operationId":"continue-a-paused-execution","summary":"Continue a paused execution","description":"Unified continuation endpoint that handles both tool-output resumption and approval decisions.","tags":["subpackage_dispatch"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Execution continued (SSE stream or JSON)","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/DispatchSSEEvent"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"continuation":{"$ref":"#/components/schemas/V1DispatchContinuePostRequestBodyContentApplicationJsonSchemaContinuation","description":"Continuation payload (tool-output or approval)"},"executionId":{"type":"string"},"streamResponse":{"type":"boolean"}},"required":["continuation","executionId"]}}}}}},"/v1/dispatch/resume":{"post":{"operationId":"resume-a-paused-execution","summary":"Resume a paused execution","description":"Resumes a paused flow or agent execution by providing tool outputs. Does not count against execution limits.","tags":["subpackage_dispatch"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Execution resumed (SSE stream or JSON)","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/DispatchSSEEvent"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"executionId":{"type":"string","description":"The execution ID to resume"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/V1DispatchResumePostRequestBodyContentApplicationJsonSchemaMessagesItems"}},"streamResponse":{"type":"boolean","description":"Whether to stream the response via SSE"},"toolOutputs":{"type":"object","additionalProperties":{"description":"Any type"},"description":"Local tool outputs for the paused execution. Key each output by the per-call `toolCallId` from the `flow_await` / `agent_await` event (preferred, and required to disambiguate parallel calls to the same tool), or by tool name (legacy; collapses same-tool parallel calls onto one slot)."}},"required":["executionId"]}}}}}},"/v1/docs/search":{"post":{"operationId":"search-documentation","summary":"Search documentation","description":"Semantic search over the published Runtype documentation corpus. Returns a synthesized answer with citations. Use this for prose/how-to questions; for deterministic schemas and build guidance use the /v1/documentation endpoints.","tags":["subpackage_documentation"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Documentation search result (MCP content blocks)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Documentation_searchDocumentation_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Documentation search is not enabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Upstream documentation search failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Natural-language documentation question."}},"required":["query"]}}}}}},"/v1/documentation":{"get":{"operationId":"get-platform-documentation","summary":"Get platform documentation","description":"Retrieve platform documentation, schemas, and reference material by topic, template ID, or vendor slug.","tags":["subpackage_documentation"],"parameters":[{"name":"topic","in":"query","required":false,"schema":{"type":"string"}},{"name":"templateId","in":"query","required":false,"schema":{"type":"string"}},{"name":"vendor","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Platform documentation content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Documentation_getPlatformDocumentation_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/documentation/build-instructions":{"post":{"operationId":"get-build-instructions","summary":"Get build instructions","description":"Retrieve build instructions and platform guidance for a given task.","tags":["subpackage_documentation"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Build instructions content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Documentation_getBuildInstructions_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"},"task":{"type":"string","description":"One of: build-product, generate-flow, explain-capabilities"},"template":{"type":"string"}}}}}}}},"/v1/eval/analyze-steps":{"post":{"operationId":"analyze-step-results","summary":"Analyze step results","description":"Analyze step results for keyword/phrase occurrences across evals.","tags":["subpackage_evals"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Analysis returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evals_analyzeStepResults_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"caseSensitive":{"type":"boolean"},"evalGroupId":{"type":"string"},"searchTerms":{"type":"array","items":{"type":"string"}},"stepIds":{"type":"array","items":{"type":"string"}}},"required":["evalGroupId","searchTerms","stepIds"]}}}}}},"/v1/eval/batches":{"get":{"operationId":"list-eval-batches","summary":"List eval batches","description":"List all eval batches for the current user with optional filtering and pagination.","tags":["subpackage_evals"],"parameters":[{"name":"limit","in":"query","description":"Number of results (default 50, max 100)","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","description":"Pagination offset","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by status (queued|processing|completed|failed)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Eval batches returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evals_listEvalBatches_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/eval/compare":{"post":{"operationId":"compare-evals","summary":"Compare evals","description":"Compare aggregate metrics across eval batches in a group.","tags":["subpackage_evals"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Comparison returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evals_compareEvals_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"evalGroupId":{"type":"string"},"stepIds":{"type":"array","items":{"type":"string"}}},"required":["evalGroupId"]}}}}}},"/v1/eval/compare-record":{"post":{"operationId":"compare-record-across-evals","summary":"Compare record across evals","description":"Compare results for a specific record across eval batches in a group.","tags":["subpackage_evals"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Record comparison returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evals_compareRecordAcrossEvals_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"evalGroupId":{"type":"string"},"recordId":{"type":"string"},"stepIds":{"type":"array","items":{"type":"string"}}},"required":["evalGroupId","recordId"]}}}}}},"/v1/eval/group/{groupId}":{"get":{"operationId":"get-eval-group","summary":"Get eval group","description":"Get all eval batches in a group for comparison.","tags":["subpackage_evals"],"parameters":[{"name":"groupId","in":"path","description":"Eval group ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Eval group returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evals_getEvalGroup_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/eval/stream":{"post":{"operationId":"stream-eval-execution","summary":"Stream eval execution","description":"Execute virtual eval with record/messages input and stream results via multiplexed SSE. All eval configs execute simultaneously in parallel.","tags":["subpackage_evals"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"SSE stream of eval results","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/FlowSSEEvent"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/eval/submit":{"post":{"operationId":"submit-eval","summary":"Submit eval","description":"Submit a flow or agent for evaluation with model/parameter overrides. Supports both single eval and multi-model eval requests.","tags":["subpackage_evals"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Eval submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evals_submitEval_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/eval/{id}/results":{"get":{"operationId":"get-eval-results","summary":"Get eval results","description":"Get detailed results for a specific eval batch including step results and tool calls.","tags":["subpackage_evals"],"parameters":[{"name":"id","in":"path","description":"Batch execution ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Eval results returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evals_getEvalResults_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/feedback":{"get":{"operationId":"list-feedback-with-filters","summary":"List feedback with filters","tags":["subpackage_feedback"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"string"}},{"name":"record_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"flow_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"surfaceId","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Feedback list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback_listFeedbackWithFilters_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"submit-feedback-on-a-message","summary":"Submit feedback on a message","description":"Submit feedback (upvote/downvote/copy/csat/nps) on a message or conversation.","tags":["subpackage_feedback"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Feedback updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback_submitFeedbackOnAMessage_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitFeedbackOnAMessageRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/feedback/stats":{"get":{"operationId":"get-feedback-statistics","summary":"Get feedback statistics","tags":["subpackage_feedback"],"parameters":[{"name":"record_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"flow_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"surfaceId","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Feedback statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback_getFeedbackStatistics_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/feedback/{id}":{"get":{"operationId":"get-specific-feedback-record","summary":"Get specific feedback record","tags":["subpackage_feedback"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Feedback record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback_getSpecificFeedbackRecord_Response_200"}}}},"400":{"description":"Invalid feedback ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Feedback not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete-feedback-record","summary":"Delete feedback record","tags":["subpackage_feedback"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Feedback deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback_deleteFeedbackRecord_Response_200"}}}},"400":{"description":"Invalid feedback ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Feedback not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-steps/flow/{flowId}":{"get":{"operationId":"get-all-flow-steps-for-a-flow","summary":"Get all flow steps for a flow","description":"Returns all steps stored in the flow config JSONB column, sorted by order.","tags":["subpackage_flowSteps"],"parameters":[{"name":"flowId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Flow steps list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flow Steps_getAllFlowStepsForAFlow_Response_200"}}}},"400":{"description":"Invalid flow ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flow-versions/{flowId}":{"get":{"operationId":"list-versions-for-a-flow","summary":"List versions for a flow","tags":["subpackage_flowVersions"],"parameters":[{"name":"flowId","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/V1FlowVersionsFlowIdGetParametersType"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Flow versions list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flow Versions_listVersionsForAFlow_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVersionsForAFlowRequestInternalServerError"}}}}}}},"/v1/flow-versions/{flowId}/publish":{"post":{"operationId":"publish-a-specific-flow-version","summary":"Publish a specific flow version","tags":["subpackage_flowVersions"],"parameters":[{"name":"flowId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Version published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flow Versions_publishASpecificFlowVersion_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishASpecificFlowVersionRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishASpecificFlowVersionRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string"}},"required":["versionId"]}}}}}},"/v1/flow-versions/{flowId}/published":{"get":{"operationId":"get-the-published-version-for-a-flow","summary":"Get the published version for a flow","tags":["subpackage_flowVersions"],"parameters":[{"name":"flowId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Published flow version","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flow Versions_getThePublishedVersionForAFlow_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetThePublishedVersionForAFlowRequestInternalServerError"}}}}}}},"/v1/flow-versions/{flowId}/{versionId}":{"get":{"operationId":"get-a-specific-flow-version","summary":"Get a specific flow version","tags":["subpackage_flowVersions"],"parameters":[{"name":"flowId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Flow version detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flow Versions_getASpecificFlowVersion_Response_200"}}}},"400":{"description":"Version does not belong to this flow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetASpecificFlowVersionRequestInternalServerError"}}}}}}},"/v1/flows":{"get":{"operationId":"list-flows","summary":"List flows","description":"Get all flows for the authenticated user with filtering and cursor pagination.","tags":["subpackage_flows"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeCount","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of flows","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flows_listFlows_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-flow","summary":"Create flow","description":"Create a new flow with step definitions.","tags":["subpackage_flows"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created flow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flows_createFlow_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"flowSteps":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsPostRequestBodyContentApplicationJsonSchemaFlowStepsItems"}},"name":{"type":"string"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsPostRequestBodyContentApplicationJsonSchemaStepsItems"}}},"required":["name"]}}}}}},"/v1/flows/{id}":{"get":{"operationId":"get-flow-details","summary":"Get flow details","description":"Get a flow by ID including its step definitions.","tags":["subpackage_flows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Flow details with steps","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flows_getFlowDetails_Response_200"}}}},"400":{"description":"Invalid flow ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-flow","summary":"Update flow","description":"Update a flow and/or its step definitions.","tags":["subpackage_flows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated flow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flows_updateFlow_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"flowSteps":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsIdPutRequestBodyContentApplicationJsonSchemaFlowStepsItems"}},"name":{"type":"string"}}}}}}},"delete":{"operationId":"delete-flow","summary":"Delete flow","description":"Delete a flow by ID. Cascades to associated step results and prompts.","tags":["subpackage_flows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Flow deleted","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Invalid flow ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows/{id}/export-runtime":{"get":{"operationId":"export-flow-for-runtime-limited-preview","summary":"Export flow for runtime (limited preview)","description":"**Limited preview — not yet generally available.** This endpoint is dark-launched and returns `404 Not Found` in production until GA; it is only reachable in non-production environments today.\n\nExport a fully-resolved, self-contained flow definition that the @runtypelabs/runtime package can consume directly at boot. All step configs are inlined; no live DB queries are needed at execution time.","tags":["subpackage_flows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Exported flow definition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flows_exportFlowForRuntimeLimitedPreview_Response_200"}}}},"400":{"description":"Invalid flow ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows/{id}/publish":{"post":{"operationId":"publish-flow","summary":"Publish flow","description":"Promote a flow draft version to published.","tags":["subpackage_flows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Flow published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flows_publishFlow_Response_200"}}}},"400":{"description":"Invalid flow ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow or draft version not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/flows/{id}/run-on-record-type":{"post":{"operationId":"run-flow-on-records-of-a-type","summary":"Run flow on records of a type","description":"Execute a flow against every record of the given type. Small batches (≤10) execute immediately and return 200; larger batches return 202 with a scheduled batchId.","tags":["subpackage_flows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch executed immediately","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flows_runFlowOnRecordsOfAType_Response_200"}}}},"400":{"description":"Validation error or no matching records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Daily execution limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"recordType":{"type":"string"}},"required":["recordType"]}}}}}},"/v1/flows/{id}/step-results":{"get":{"operationId":"list-flow-step-results","summary":"List flow step results","description":"Get unified step execution results for a flow with filtering and offset pagination.","tags":["subpackage_flows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"recordId","in":"query","required":false,"schema":{"type":"string"}},{"name":"batchId","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"stepId","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","required":false,"schema":{"$ref":"#/components/schemas/V1FlowsIdStepResultsGetParametersSortOrder"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Step results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flows_listFlowStepResults_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integration-configs":{"get":{"operationId":"list-integration-configs","summary":"List integration configs","description":"Returns the configuration status of all integration providers for the authenticated user.","tags":["subpackage_integrationConfigs"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration Configs_listIntegrationConfigs_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integration-configs/{provider}":{"get":{"operationId":"get-integration-config-status","summary":"Get integration config status","description":"Returns whether a specific integration provider is configured for the authenticated user.","tags":["subpackage_integrationConfigs"],"parameters":[{"name":"provider","in":"path","description":"Integration provider name","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration Configs_getIntegrationConfigStatus_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-or-update-an-integration-config","summary":"Create or update an integration config","description":"Stores an API key for the specified integration provider. Storing a NEW integration key requires the BYOK (Bring Your Own Key) entitlement; rotating a key that already exists for the provider is always allowed.","tags":["subpackage_integrationConfigs"],"parameters":[{"name":"provider","in":"path","description":"Integration provider name","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Integration config saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration Configs_createOrUpdateAnIntegrationConfig_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"BYOK entitlement required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string","description":"API key for the provider"}},"required":["apiKey"]}}}}},"delete":{"operationId":"delete-an-integration-config","summary":"Delete an integration config","description":"Removes the API key and configuration for the specified integration provider.","tags":["subpackage_integrationConfigs"],"parameters":[{"name":"provider","in":"path","description":"Integration provider name","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Integration config deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration Configs_deleteAnIntegrationConfig_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations":{"get":{"operationId":"list-integrations","summary":"List integrations","description":"List all available integrations with the caller’s configuration status. Optionally filter credential status by environment.","tags":["subpackage_integrations"],"parameters":[{"name":"environment","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of integrations with configuration status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_listIntegrations_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"reserve-a-new-integration","summary":"Reserve a new integration","description":"Reserve a new integration row server-side. Returns a pending row scoped to the authenticated owner whose id may be embedded in provider manifests before credentials are supplied.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Pending integration reserved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_reserveANewIntegration_Response_201"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/V1IntegrationsPostRequestBodyContentApplicationJsonSchemaProvider"}},"required":["provider"]}}}}}},"/v1/integrations/category/{category}":{"get":{"operationId":"list-integrations-by-category","summary":"List integrations by category","description":"List integrations within a given category along with the caller’s configuration status for each.","tags":["subpackage_integrations"],"parameters":[{"name":"category","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of integrations in the category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_listIntegrationsByCategory_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/credentials-status":{"get":{"operationId":"get-integration-credential-status","summary":"Get integration credential status","description":"Return which environments have credentials configured for each integration for the authenticated caller.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Per-environment credential status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_getIntegrationCredentialStatus_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/slack/install":{"post":{"operationId":"install-slack-integration","summary":"Install Slack integration","description":"Install or upsert a Slack app integration for the authenticated owner, writing bot token and signing secret into the secret store.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Slack integration installed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_installSlackIntegration_Response_200"}}}},"400":{"description":"Invalid surface or integration ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string"},"botToken":{"type":"string"},"botUserId":{"type":"string"},"enterpriseId":{"type":"string"},"enterpriseName":{"type":"string"},"integrationId":{"type":"string"},"isEnterpriseInstall":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"signingSecret":{"type":"string"},"surfaceId":{"type":"string"},"teamId":{"type":"string"},"teamName":{"type":"string"}},"required":["botToken","signingSecret","teamId"]}}}}}},"/v1/integrations/slack/rotate-credentials":{"post":{"operationId":"rotate-slack-credentials","summary":"Rotate Slack credentials","description":"Rotate any subset of bot token, signing secret, or app ID on an existing Slack integration without re-supplying the others.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Slack credentials rotated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_rotateSlackCredentials_Response_200"}}}},"400":{"description":"Invalid integration ID format or bot token failed auth.test","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Slack workspace mismatch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string"},"botToken":{"type":"string"},"integrationId":{"type":"string"},"signingSecret":{"type":"string"}},"required":["integrationId"]}}}}}},"/v1/integrations/telegram/install":{"post":{"operationId":"install-telegram-integration","summary":"Install Telegram integration","description":"Install or upsert a Telegram bot integration for the authenticated owner, writing bot token and webhook secret into the secret store and registering the webhook with Telegram.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Telegram integration installed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_installTelegramIntegration_Response_200"}}}},"400":{"description":"Invalid surface or integration ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Failed to register webhook with Telegram","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"botId":{"type":"string"},"botName":{"type":"string"},"botToken":{"type":"string"},"botUsername":{"type":"string"},"integrationId":{"type":"string"},"surfaceId":{"type":"string"},"webhookSecret":{"type":"string"}},"required":["botId","botToken"]}}}}}},"/v1/integrations/telegram/managed/available":{"get":{"operationId":"check-managed-telegram-bot-availability","summary":"Check managed Telegram bot availability","description":"Returns whether managed Telegram bot creation is configured on this deployment.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Availability status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_checkManagedTelegramBotAvailability_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/telegram/managed/initiate":{"post":{"operationId":"initiate-managed-telegram-bot-creation","summary":"Initiate managed Telegram bot creation","description":"Initiate creation of a managed Telegram bot, returning a deep link to the manager bot and a pending request id.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Managed bot creation initiated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_initiateManagedTelegramBotCreation_Response_201"}}}},"400":{"description":"Invalid surface or integration ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Managed bot request limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Managed bot creation is not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"botCommands":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsTelegramManagedInitiatePostRequestBodyContentApplicationJsonSchemaBotCommandsItems"}},"botDescription":{"type":"string"},"integrationId":{"type":"string"},"suggestedBotName":{"type":"string"},"suggestedUsername":{"type":"string"},"surfaceId":{"type":"string"}},"required":["suggestedBotName"]}}}}}},"/v1/integrations/telegram/managed/{integrationId}/rotate-token":{"post":{"operationId":"rotate-managed-telegram-bot-token","summary":"Rotate managed Telegram bot token","description":"Rotate the bot token of a managed Telegram bot via the manager bot and persist the new token in the secret store.","tags":["subpackage_integrations"],"parameters":[{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Token rotated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_rotateManagedTelegramBotToken_Response_200"}}}},"400":{"description":"Invalid integration ID format or unsupported integration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Token rotation failed upstream","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Managed bot token rotation is not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/telegram/managed/{requestId}":{"delete":{"operationId":"cancel-managed-telegram-bot-request","summary":"Cancel managed Telegram bot request","description":"Cancels an in-progress managed Telegram bot creation request.","tags":["subpackage_integrations"],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Request cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_cancelManagedTelegramBotRequest_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request not found or already completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/telegram/managed/{requestId}/confirm-rename":{"post":{"operationId":"confirm-managed-telegram-bot-rename","summary":"Confirm managed Telegram bot rename","description":"Confirm that a renamed managed Telegram bot belongs to the caller, clearing the dashboard rename prompt.","tags":["subpackage_integrations"],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Rename confirmed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_confirmManagedTelegramBotRename_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rename decision is no longer applicable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/telegram/managed/{requestId}/reject-rename":{"post":{"operationId":"reject-managed-telegram-bot-rename","summary":"Reject managed Telegram bot rename","description":"Reject a renamed managed Telegram bot, tearing down its integration record and credentials so the user can retry.","tags":["subpackage_integrations"],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Rename rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_rejectManagedTelegramBotRename_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Rename decision is no longer applicable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/telegram/managed/{requestId}/status":{"get":{"operationId":"get-managed-telegram-bot-request-status","summary":"Get managed Telegram bot request status","description":"Returns the current status of a managed Telegram bot creation request.","tags":["subpackage_integrations"],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Managed bot request status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_getManagedTelegramBotRequestStatus_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/tools":{"get":{"operationId":"list-configured-integration-tools","summary":"List configured integration tools","description":"List all tools available from integrations that have valid credentials configured for the caller.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of configured integration tools","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_listConfiguredIntegrationTools_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/vectorize":{"get":{"operationId":"list-vectorize-configurations","summary":"List Vectorize configurations","description":"Get all Cloudflare Vectorize configurations for the authenticated user.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of Vectorize configurations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_listVectorizeConfigurations_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-vectorize-configuration","summary":"Create Vectorize configuration","description":"Create a new Cloudflare Vectorize configuration for the authenticated user.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created Vectorize configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_createVectorizeConfiguration_Response_201"}}}},"400":{"description":"Invalid configuration or connection error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"apiToken":{"type":"string"},"indexName":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"}},"required":["accountId","apiToken","indexName","name"]}}}}}},"/v1/integrations/vectorize/indexes/create":{"post":{"operationId":"create-vectorize-index","summary":"Create Vectorize index","description":"Create a new Vectorize index in a Cloudflare account using provided or stored credentials.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created Vectorize index","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_createVectorizeIndex_Response_201"}}}},"400":{"description":"Missing or invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"apiToken":{"type":"string"},"configId":{"type":"string"},"description":{"type":"string"},"dimensions":{"type":"number","format":"double"},"indexName":{"type":"string"},"metric":{"type":"string"}},"required":["dimensions","indexName","metric"]}}}}}},"/v1/integrations/vectorize/indexes/list":{"post":{"operationId":"list-vectorize-indexes","summary":"List Vectorize indexes","description":"List all Vectorize indexes in a Cloudflare account using provided or stored credentials.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of Vectorize indexes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_listVectorizeIndexes_Response_200"}}}},"400":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"apiToken":{"type":"string"},"configId":{"type":"string"}}}}}}}},"/v1/integrations/vectorize/test":{"post":{"operationId":"test-new-vectorize-configuration","summary":"Test new Vectorize configuration","description":"Test the connection to a Cloudflare Vectorize configuration before saving it.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Connection test result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_testNewVectorizeConfiguration_Response_200"}}}},"400":{"description":"Connection test failed or invalid configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized or authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"apiToken":{"type":"string"},"indexName":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"}},"required":["accountId","apiToken","indexName","name"]}}}}}},"/v1/integrations/vectorize/{id}":{"get":{"operationId":"get-vectorize-configuration","summary":"Get Vectorize configuration","description":"Get a specific Cloudflare Vectorize configuration by ID.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Vectorize configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_getVectorizeConfiguration_Response_200"}}}},"400":{"description":"Invalid configuration ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-vectorize-configuration","summary":"Update Vectorize configuration","description":"Update an existing Cloudflare Vectorize configuration by ID.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated Vectorize configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_updateVectorizeConfiguration_Response_200"}}}},"400":{"description":"Invalid configuration or connection error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string"},"apiToken":{"type":"string"},"indexName":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"}}}}}}},"delete":{"operationId":"delete-vectorize-configuration","summary":"Delete Vectorize configuration","description":"Delete a Cloudflare Vectorize configuration by ID.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Configuration deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_deleteVectorizeConfiguration_Response_200"}}}},"400":{"description":"Invalid configuration ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/vectorize/{id}/test":{"post":{"operationId":"test-saved-vectorize-configuration","summary":"Test saved Vectorize configuration","description":"Test the connection to a saved Cloudflare Vectorize configuration.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Connection test result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_testSavedVectorizeConfiguration_Response_200"}}}},"400":{"description":"Connection test failed or invalid ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized or authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/weaviate":{"get":{"operationId":"list-weaviate-configurations","summary":"List Weaviate configurations","description":"Get all Weaviate configurations for the authenticated user.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of Weaviate configurations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_listWeaviateConfigurations_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-weaviate-configuration","summary":"Create Weaviate configuration","description":"Create a new Weaviate configuration.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created Weaviate configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_createWeaviateConfiguration_Response_201"}}}},"400":{"description":"Validation or connection error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1IntegrationsWeaviatePostRequestBodyContentApplicationJsonSchemaSettings"},"url":{"type":"string","format":"uri"}},"required":["apiKey","name","url"]}}}}}},"/v1/integrations/weaviate/test":{"post":{"operationId":"test-new-weaviate-configuration","summary":"Test new Weaviate configuration","description":"Test the connection to a Weaviate instance before saving the configuration.","tags":["subpackage_integrations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Connection test result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_testNewWeaviateConfiguration_Response_200"}}}},"400":{"description":"Connection failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestNewWeaviateConfigurationRequestBadRequestError"}}}},"401":{"description":"Unauthorized or auth failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestNewWeaviateConfigurationRequestUnauthorizedError"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestNewWeaviateConfigurationRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1IntegrationsWeaviateTestPostRequestBodyContentApplicationJsonSchemaSettings"},"url":{"type":"string","format":"uri"}},"required":["apiKey","name","url"]}}}}}},"/v1/integrations/weaviate/{id}":{"get":{"operationId":"get-weaviate-configuration","summary":"Get Weaviate configuration","description":"Get a specific Weaviate configuration by ID.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Weaviate configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_getWeaviateConfiguration_Response_200"}}}},"400":{"description":"Invalid configuration ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Weaviate configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-weaviate-configuration","summary":"Update Weaviate configuration","description":"Update an existing Weaviate configuration.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated Weaviate configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_updateWeaviateConfiguration_Response_200"}}}},"400":{"description":"Validation or connection error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Weaviate configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdPutRequestBodyContentApplicationJsonSchemaSettings"},"url":{"type":"string","format":"uri"}}}}}}},"delete":{"operationId":"delete-weaviate-configuration","summary":"Delete Weaviate configuration","description":"Delete a Weaviate configuration by ID.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deletion result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_deleteWeaviateConfiguration_Response_200"}}}},"400":{"description":"Invalid configuration ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Weaviate configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/weaviate/{id}/classes":{"post":{"operationId":"list-weaviate-collections","summary":"List Weaviate collections","description":"List collections from a saved Weaviate configuration with vectorizer and dimension info.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of Weaviate collections","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_listWeaviateCollections_Response_200"}}}},"400":{"description":"Invalid configuration ID or connection failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWeaviateCollectionsRequestBadRequestError"}}}},"401":{"description":"Unauthorized or auth failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWeaviateCollectionsRequestUnauthorizedError"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Weaviate configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWeaviateCollectionsRequestInternalServerError"}}}}}}},"/v1/integrations/weaviate/{id}/test":{"post":{"operationId":"test-weaviate-connection","summary":"Test Weaviate connection","description":"Test the connection to a saved Weaviate instance.","tags":["subpackage_integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Connection test result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_testWeaviateConnection_Response_200"}}}},"400":{"description":"Invalid configuration ID or connection failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWeaviateConnectionRequestBadRequestError"}}}},"401":{"description":"Unauthorized or auth failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWeaviateConnectionRequestUnauthorizedError"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Weaviate configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWeaviateConnectionRequestInternalServerError"}}}}}}},"/v1/integrations/{integrationId}":{"get":{"operationId":"get-integration-details","summary":"Get integration details","description":"Get details for a specific integration including its tools and configuration status.","tags":["subpackage_integrations"],"parameters":[{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Integration details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_getIntegrationDetails_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/{integrationId}/credentials":{"post":{"operationId":"save-integration-credentials","summary":"Save integration credentials","description":"Save (insert or update) credentials for a specific integration, optionally scoped to a development or production environment.","tags":["subpackage_integrations"],"parameters":[{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Credentials saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_saveIntegrationCredentials_Response_200"}}}},"400":{"description":"Invalid environment, missing required field, or unsupported integration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"delete":{"operationId":"delete-integration-credentials","summary":"Delete integration credentials","description":"Delete stored credentials for an integration. Without an environment query param, deletes the \"all environments\" credentials.","tags":["subpackage_integrations"],"parameters":[{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"environment","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Credentials removed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_deleteIntegrationCredentials_Response_200"}}}},"400":{"description":"Unknown integration ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/{integrationId}/tools":{"get":{"operationId":"list-tools-for-an-integration","summary":"List tools for an integration","description":"List all tools defined by a specific integration along with their parameter schemas.","tags":["subpackage_integrations"],"parameters":[{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of integration tools","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_listToolsForAnIntegration_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/integrations/{integrationId}/tools/{toolName}":{"get":{"operationId":"get-an-integration-tool","summary":"Get an integration tool","description":"Get details for a specific tool within an integration, including its parameter schema.","tags":["subpackage_integrations"],"parameters":[{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}},{"name":"toolName","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Integration tool details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integrations_getAnIntegrationTool_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Tool not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/logs":{"get":{"operationId":"query-customer-logs","summary":"Query customer logs","description":"Query persisted customer logs via R2 SQL with filtering, pagination, and search.","tags":["subpackage_logs"],"parameters":[{"name":"from","in":"query","description":"Start timestamp (ISO 8601)","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","description":"End timestamp (ISO 8601)","required":false,"schema":{"type":"string"}},{"name":"level","in":"query","description":"Comma-separated log levels (debug,info,warn,error)","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","description":"Comma-separated categories","required":false,"schema":{"type":"string"}},{"name":"flowId","in":"query","description":"Filter by flow ID","required":false,"schema":{"type":"string"}},{"name":"agentId","in":"query","description":"Filter by agent ID","required":false,"schema":{"type":"string"}},{"name":"executionId","in":"query","description":"Filter by execution ID","required":false,"schema":{"type":"string"}},{"name":"surfaceId","in":"query","description":"Filter by surface ID","required":false,"schema":{"type":"string"}},{"name":"conversationId","in":"query","description":"Filter by conversation ID","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","description":"Full-text search in message","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per page (default 500, max 1000)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Pagination cursor","required":false,"schema":{"type":"string"}},{"name":"order","in":"query","description":"Sort order: asc or desc","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Log entries returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Logs_queryCustomerLogs_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/logs/debug":{"get":{"operationId":"debug-r-2-sql-diagnostics","summary":"Debug R2 SQL diagnostics","description":"R2 SQL diagnostic endpoint for troubleshooting log queries. Non-production only.","tags":["subpackage_logs"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Diagnostics returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Logs_debugR2SqlDiagnostics_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/logs/stats":{"get":{"operationId":"get-aggregated-log-stats","summary":"Get aggregated log stats","description":"Returns aggregated log statistics including histogram, counts by level, and counts by category.","tags":["subpackage_logs"],"parameters":[{"name":"from","in":"query","description":"Start timestamp (ISO 8601)","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","description":"End timestamp (ISO 8601)","required":false,"schema":{"type":"string"}},{"name":"level","in":"query","description":"Comma-separated log levels (debug,info,warn,error)","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","description":"Comma-separated categories","required":false,"schema":{"type":"string"}},{"name":"flowId","in":"query","description":"Filter by flow ID","required":false,"schema":{"type":"string"}},{"name":"agentId","in":"query","description":"Filter by agent ID","required":false,"schema":{"type":"string"}},{"name":"executionId","in":"query","description":"Filter by execution ID","required":false,"schema":{"type":"string"}},{"name":"surfaceId","in":"query","description":"Filter by surface ID","required":false,"schema":{"type":"string"}},{"name":"conversationId","in":"query","description":"Filter by conversation ID","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","description":"Full-text search in message","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per page (default 500, max 1000)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Pagination cursor","required":false,"schema":{"type":"string"}},{"name":"order","in":"query","description":"Sort order: asc or desc","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Log stats returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Logs_getAggregatedLogStats_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/logs/trace/conversation/{conversationId}":{"get":{"operationId":"trace-a-conversation","summary":"Trace a conversation","description":"Returns trace data for all executions within a conversation.","tags":["subpackage_logs"],"parameters":[{"name":"conversationId","in":"path","description":"Conversation ID to trace","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Conversation trace returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Logs_traceAConversation_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/logs/trace/execution/{executionId}":{"get":{"operationId":"trace-an-execution","summary":"Trace an execution","description":"Returns a structured trace tree for a single execution.","tags":["subpackage_logs"],"parameters":[{"name":"executionId","in":"path","description":"Execution ID to trace","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Trace tree returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Logs_traceAnExecution_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/messaging/conversations":{"get":{"operationId":"list-conversations","summary":"List conversations","description":"Get all messaging conversations for the authenticated user with filtering and pagination.","tags":["subpackage_messagingConversations"],"parameters":[{"name":"limit","in":"query","description":"Max results per page (default 50, max 100)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Pagination cursor","required":false,"schema":{"type":"string"}},{"name":"surfaceId","in":"query","description":"Filter by surface ID","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by status (open, closed, archived, all)","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","description":"Search by subject, participant name, or email","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of conversations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Conversations_listConversations_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-conversation","summary":"Create conversation","description":"Create a new messaging conversation linked to a surface.","tags":["subpackage_messagingConversations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created conversation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Conversations_createConversation_Response_201"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"context":{"$ref":"#/components/schemas/V1MessagingConversationsPostRequestBodyContentApplicationJsonSchemaContext"},"externalParticipantId":{"type":"string"},"externalThreadId":{"type":"string"},"participantEmail":{"type":"string","format":"email"},"participantMetadata":{"type":"object","additionalProperties":{"description":"Any type"}},"participantName":{"type":"string"},"status":{"$ref":"#/components/schemas/V1MessagingConversationsPostRequestBodyContentApplicationJsonSchemaStatus"},"subject":{"type":"string"},"surfaceId":{"type":"string"},"timezone":{"type":["string","null"]}},"required":["surfaceId"]}}}}}},"/v1/messaging/conversations/{id}":{"get":{"operationId":"get-conversation","summary":"Get conversation","description":"Get a messaging conversation by ID with full details.","tags":["subpackage_messagingConversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Conversation details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Conversations_getConversation_Response_200"}}}},"400":{"description":"Invalid conversation ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Conversation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-conversation","summary":"Update conversation","description":"Update a messaging conversation by ID.","tags":["subpackage_messagingConversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated conversation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Conversations_updateConversation_Response_200"}}}},"400":{"description":"Invalid conversation ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Conversation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"context":{"$ref":"#/components/schemas/V1MessagingConversationsIdPutRequestBodyContentApplicationJsonSchemaContext"},"participantEmail":{"type":"string","format":"email"},"participantMetadata":{"type":"object","additionalProperties":{"description":"Any type"}},"participantName":{"type":"string"},"status":{"$ref":"#/components/schemas/V1MessagingConversationsIdPutRequestBodyContentApplicationJsonSchemaStatus"},"subject":{"type":"string"},"timezone":{"type":["string","null"]}}}}}}},"delete":{"operationId":"delete-conversation","summary":"Delete conversation","description":"Delete a messaging conversation by ID.","tags":["subpackage_messagingConversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Conversation deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Conversations_deleteConversation_Response_200"}}}},"400":{"description":"Invalid conversation ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Conversation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/messaging/conversations/{id}/messages":{"get":{"operationId":"list-messages","summary":"List messages","description":"Get messages for a conversation.","tags":["subpackage_messagingConversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results (default 100, max 100)","required":false,"schema":{"type":"string"}},{"name":"order","in":"query","description":"Sort order: asc or desc (default asc)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of messages","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Conversations_listMessages_Response_200"}}}},"400":{"description":"Invalid conversation ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Conversation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-message","summary":"Create message","description":"Add a message to a conversation.","tags":["subpackage_messagingConversations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Conversations_createMessage_Response_201"}}}},"400":{"description":"Invalid conversation ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Conversation not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"content":{"type":"string"},"direction":{"$ref":"#/components/schemas/V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaDirection"},"externalMessageId":{"type":"string"},"flowStepResultId":{"type":"string"},"metadata":{"$ref":"#/components/schemas/V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadata"},"role":{"$ref":"#/components/schemas/V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaRole"}},"required":["content","role"]}}}}}},"/v1/messaging/imap/{surfaceId}/poll-now":{"post":{"operationId":"trigger-an-immediate-imap-poll","summary":"Trigger an immediate IMAP poll","description":"Forces the polling Durable Object to poll immediately. Requires polling to be active.","tags":["subpackage_emailImap"],"parameters":[{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Poll triggered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email / IMAP_triggerAnImmediateImapPoll_Response_200"}}}},"400":{"description":"Invalid surface ID format or polling not active","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerAnImmediateImapPollRequestForbiddenError"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/messaging/imap/{surfaceId}/start":{"post":{"operationId":"start-imap-polling","summary":"Start IMAP polling","description":"Persists IMAP/SMTP configuration on the surface and starts the polling Durable Object.","tags":["subpackage_emailImap"],"parameters":[{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Polling started","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email / IMAP_startImapPolling_Response_200"}}}},"400":{"description":"Invalid surface ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartImapPollingRequestForbiddenError"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fromAddress":{"type":"string","format":"email"},"fromName":{"type":"string"},"imapHost":{"type":"string"},"imapPassword":{"type":"string"},"imapPort":{"type":"integer"},"imapSecure":{"type":"boolean"},"imapUsername":{"type":"string"},"mailbox":{"type":"string"},"pollIntervalMinutes":{"type":"integer"},"smtpHost":{"type":"string"},"smtpPassword":{"type":"string"},"smtpPort":{"type":"integer"},"smtpSecure":{"type":"boolean"},"smtpUsername":{"type":"string"}},"required":["fromAddress","imapHost","imapPassword","imapPort","imapUsername","smtpHost","smtpPassword","smtpPort","smtpUsername"]}}}}}},"/v1/messaging/imap/{surfaceId}/status":{"get":{"operationId":"get-imap-polling-status","summary":"Get IMAP polling status","description":"Returns the current polling status and masked inbound configuration for an email surface.","tags":["subpackage_emailImap"],"parameters":[{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Polling status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email / IMAP_getImapPollingStatus_Response_200"}}}},"400":{"description":"Invalid surface ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetImapPollingStatusRequestForbiddenError"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/messaging/imap/{surfaceId}/stop":{"post":{"operationId":"stop-imap-polling","summary":"Stop IMAP polling","description":"Disables polling on the surface and stops the polling Durable Object.","tags":["subpackage_emailImap"],"parameters":[{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Polling stopped","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email / IMAP_stopImapPolling_Response_200"}}}},"400":{"description":"Invalid surface ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopImapPollingRequestForbiddenError"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/messaging/imap/{surfaceId}/test-send":{"post":{"operationId":"send-a-test-email-via-smtp","summary":"Send a test email via SMTP","description":"Sends a test email through the supplied SMTP configuration to confirm delivery works.","tags":["subpackage_emailImap"],"parameters":[{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Test email sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email / IMAP_sendATestEmailViaSmtp_Response_200"}}}},"400":{"description":"Invalid surface ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendATestEmailViaSmtpRequestForbiddenError"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fromAddress":{"type":"string","format":"email"},"fromName":{"type":"string"},"smtpHost":{"type":"string"},"smtpPassword":{"type":"string"},"smtpPort":{"type":"integer","default":587},"smtpSecure":{"type":"boolean"},"smtpUsername":{"type":"string"},"to":{"type":"string","format":"email"}},"required":["fromAddress","smtpHost","smtpPassword","smtpUsername","to"]}}}}}},"/v1/messaging/imap/{surfaceId}/verify":{"post":{"operationId":"verify-imap-smtp-connection","summary":"Verify IMAP + SMTP connection","description":"Tests IMAP and SMTP connectivity for an email surface using the supplied credentials.","tags":["subpackage_emailImap"],"parameters":[{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Verification results for IMAP and SMTP","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email / IMAP_verifyImapSmtpConnection_Response_200"}}}},"400":{"description":"Invalid surface ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyImapSmtpConnectionRequestForbiddenError"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"imapHost":{"type":"string"},"imapPassword":{"type":"string"},"imapPort":{"type":"integer"},"imapSecure":{"type":"boolean"},"imapUsername":{"type":"string"},"mailbox":{"type":"string"},"pollIntervalMinutes":{"type":"integer"},"smtpHost":{"type":"string"},"smtpPassword":{"type":"string"},"smtpPort":{"type":"integer"},"smtpSecure":{"type":"boolean"},"smtpUsername":{"type":"string"}},"required":["imapHost","imapPassword","imapPort","imapUsername","smtpHost","smtpPassword","smtpPort","smtpUsername"]}}}}}},"/v1/messaging/validations/slack/test-token":{"post":{"operationId":"validate-slack-bot-token-deprecated","summary":"Validate Slack bot token (deprecated)","description":"Back-compat shim. Use POST /{channelType}/credentials instead.","tags":["subpackage_messagingValidations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Validations_validateSlackBotTokenDeprecated_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"botToken":{"type":"string"}},"required":["botToken"]}}}}}},"/v1/messaging/validations/telegram/bot-token":{"post":{"operationId":"validate-telegram-bot-token-deprecated","summary":"Validate Telegram bot token (deprecated)","description":"Back-compat shim. Use POST /{channelType}/credentials instead.","tags":["subpackage_messagingValidations"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Validations_validateTelegramBotTokenDeprecated_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"botToken":{"type":"string"}},"required":["botToken"]}}}}}},"/v1/messaging/validations/{channelType}/credentials":{"post":{"operationId":"validate-channel-credentials","summary":"Validate channel credentials","description":"Validate credentials for a messaging channel type. Returns 404 when no validator is registered for the channel.","tags":["subpackage_messagingValidations"],"parameters":[{"name":"channelType","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Validations_validateChannelCredentials_Response_200"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateChannelCredentialsRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No validator for channel type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateChannelCredentialsRequestNotFoundError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/messaging/validations/{channelType}/echo":{"post":{"operationId":"send-echo-message","summary":"Send echo message","description":"Send a test \"Hello from Runtype\" message via the configured channel adapter.","tags":["subpackage_messagingValidations"],"parameters":[{"name":"channelType","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Echo result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messaging Validations_sendEchoMessage_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"501":{"description":"Echo not implemented for channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEchoMessageRequestNotImplementedError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"credentials":{"type":"object","additionalProperties":{"description":"Any type"}},"recipient":{"type":"string"}},"required":["recipient"]}}}}}},"/v1/model-configs":{"get":{"operationId":"list-model-configurations","summary":"List model configurations","description":"Get the authenticated user's model configurations with enriched catalog metadata. Auto-provisions a default if none exist.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of model configurations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_listModelConfigurations_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-model-configuration","summary":"Create model configuration","description":"Create a new model configuration for the authenticated user.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created model configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_createModelConfiguration_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Plan does not allow this provider","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"modelId":{"type":"string"},"provider":{"$ref":"#/components/schemas/V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaProvider"},"providerKeyId":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettings","default":{}}},"required":["modelId","provider"]}}}}}},"/v1/model-configs/available":{"get":{"operationId":"list-available-models","summary":"List available models","description":"Deprecated flat model catalog endpoint. Use /grouped for grouped provider options.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"showAll","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Available model catalog with user configuration status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_listAvailableModels_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/model-configs/grouped":{"get":{"operationId":"get-grouped-models","summary":"Get grouped models","description":"Get models grouped by base model with all provider options. Supports filtering to configured-only models.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"showAll","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"configured","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Grouped model catalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_getGroupedModels_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/model-configs/search-capable":{"get":{"operationId":"list-search-capable-models","summary":"List search-capable models","description":"Get catalog models that support AI model search for flow search steps.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Search-capable model catalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_listSearchCapableModels_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/model-configs/search-configured":{"get":{"operationId":"list-configured-search-providers","summary":"List configured search providers","description":"Get enabled user model configurations that support search, plus configured Exa search when available.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Configured search providers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_listConfiguredSearchProviders_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/model-configs/usage":{"get":{"operationId":"get-model-configuration-usage","summary":"Get model configuration usage","description":"Get usage counters and last-used timestamps for the authenticated user's model configurations.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Model configuration usage statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_getModelConfigurationUsage_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/model-configs/{id}":{"put":{"operationId":"update-model-configuration","summary":"Update model configuration","description":"Update fields on an existing model configuration.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated model configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_updateModelConfiguration_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Model configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"isDefault":{"type":"boolean"},"isEnabled":{"type":"boolean"},"providerKeyId":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettings"}}}}}}},"delete":{"operationId":"delete-model-configuration","summary":"Delete model configuration","description":"Delete a model configuration by ID.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Model configuration deleted","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Invalid config ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Model configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/model-configs/{id}/default":{"patch":{"operationId":"set-default-model-configuration","summary":"Set default model configuration","description":"Mark a model configuration as the default for the authenticated user.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Default model set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_setDefaultModelConfiguration_Response_200"}}}},"400":{"description":"Invalid config ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Model configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/model-configs/{id}/status":{"patch":{"operationId":"enable-or-disable-model-configuration","summary":"Enable or disable model configuration","description":"Toggle the enabled flag on a model configuration.","tags":["subpackage_modelConfigs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Status updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Configs_enableOrDisableModelConfiguration_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Model configuration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"isEnabled":{"type":"boolean"}},"required":["isEnabled"]}}}}}},"/v1/model-usage":{"get":{"operationId":"get-model-usage-statistics","summary":"Get model usage statistics","description":"Get aggregated model usage statistics with optional date range and time series.","tags":["subpackage_modelUsage"],"parameters":[{"name":"startDate","in":"query","description":"Start date (YYYY-MM-DD)","required":false,"schema":{"type":"string"}},{"name":"endDate","in":"query","description":"End date (YYYY-MM-DD)","required":false,"schema":{"type":"string"}},{"name":"period","in":"query","description":"Convenience preset (today, yesterday, last_7_days, last_30_days, current_month, last_month, current_year)","required":false,"schema":{"type":"string"}},{"name":"granularity","in":"query","description":"Time series granularity (hour, day, week, month)","required":false,"schema":{"type":"string"}},{"name":"modelConfigId","in":"query","description":"Filter by model config ID","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Model usage statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Usage_getModelUsageStatistics_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Analytics Engine not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/model-usage/{modelConfigId}":{"get":{"operationId":"get-model-usage-details","summary":"Get model usage details","description":"Get detailed usage statistics for a specific model configuration.","tags":["subpackage_modelUsage"],"parameters":[{"name":"modelConfigId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Model usage details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Model Usage_getModelUsageDetails_Response_200"}}}},"400":{"description":"Invalid model config ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Model config not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Analytics Engine not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products":{"get":{"operationId":"list-products","summary":"List products","description":"List all products for the authenticated user with search and cursor pagination.","tags":["subpackage_products"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_listProducts_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-product","summary":"Create product","description":"Create a new product with optional canvas and spec configuration.","tags":["subpackage_products"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Product created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_createProduct_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"canvas":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvas"},"description":{"type":"string"},"icon":{"type":"string"},"name":{"type":"string"},"spec":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaSpec"}},"required":["name"]}}}}}},"/v1/products/assemble":{"post":{"operationId":"assemble-product-from-fpo","summary":"Assemble product from FPO","description":"Assemble a product from a validated Full Product Object (FPO). Materializes secret bindings, so API keys must carry the SECRETS:WRITE permission.","tags":["subpackage_products"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Assembled product result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_assembleProductFromFpo_Response_201"}}}},"400":{"description":"Validation or invalid input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssembleProductFromFpoRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions (SECRETS:WRITE required)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssembleProductFromFpoRequestForbiddenError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssembleProductFromFpoRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/products/{id}":{"get":{"operationId":"get-product-details","summary":"Get product details","description":"Get a product by ID including its capabilities and surfaces.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Product details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_getProductDetails_Response_200"}}}},"400":{"description":"Invalid product ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-product","summary":"Update product","description":"Update an existing product. Supports partial updates with deep-merging for canvas and spec.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Product updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_updateProduct_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"canvas":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvas"},"description":{"type":"string"},"icon":{"type":"string"},"name":{"type":"string"},"spec":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpec"}}}}}}},"delete":{"operationId":"delete-product","summary":"Delete product","description":"Delete a product (cascades to capabilities, surfaces, items, keys). Optionally cleans up associated flows/agents via cleanupFlowIds/cleanupAgentIds in the request body.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Product deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_deleteProduct_Response_200"}}}},"400":{"description":"Invalid product ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/capabilities":{"post":{"operationId":"add-capability-to-product","summary":"Add capability to product","description":"Add a capability (flow or agent binding) to a product. Requires either flowId or agentId.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Capability added","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_addCapabilityToProduct_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or referenced resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Duplicate agent or capability name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string"},"capabilityDescription":{"type":"string"},"capabilityName":{"type":"string"},"enabled":{"type":"boolean"},"flowId":{"type":"string"},"parametersSchema":{"description":"Any type"}},"required":["capabilityName"]}}}}}},"/v1/products/{id}/capabilities/{capabilityId}":{"put":{"operationId":"update-capability","summary":"Update capability","description":"Update an existing product capability. Supports partial updates and schema refresh.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"capabilityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Capability updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_updateCapability_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or capability not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Capability name already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"capabilityDescription":{"type":"string"},"capabilityName":{"type":"string"},"enabled":{"type":"boolean"},"parametersSchema":{"description":"Any type"},"refreshSchema":{"type":"boolean"}}}}}}},"delete":{"operationId":"remove-capability","summary":"Remove capability","description":"Remove a capability from a product.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"capabilityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Capability removed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_removeCapability_Response_200"}}}},"400":{"description":"Invalid ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or capability not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/cleanup-preview":{"get":{"operationId":"preview-cleanup-resources","summary":"Preview cleanup resources","description":"Preview the flows and agents associated with a product that could be cleaned up on deletion, including whether each is referenced elsewhere.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cleanup preview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_previewCleanupResources_Response_200"}}}},"400":{"description":"Invalid product ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/configuration":{"get":{"operationId":"get-product-configuration-summary","summary":"Get product configuration summary","description":"Get the secret configuration summary for a product. Never returns secret values — used to decide whether to show a \"Configure secrets\" prompt.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Configuration summary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_getProductConfigurationSummary_Response_200"}}}},"400":{"description":"Invalid product ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces":{"get":{"operationId":"list-surfaces","summary":"List surfaces","description":"List the surfaces for a product with filtering and cursor pagination.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"environment","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of surfaces","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_listSurfaces_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-surface","summary":"Create surface","description":"Create a new surface for a product. Checks entitlement limits via Schematic.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Surface created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_createSurface_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Surface limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"behavior":{"description":"Any type"},"config":{"description":"Any type"},"environment":{"$ref":"#/components/schemas/V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaEnvironment","default":"development"},"inbound":{"type":"object","additionalProperties":{"description":"Any type"}},"name":{"type":"string"},"outbound":{"type":"object","additionalProperties":{"description":"Any type"}},"status":{"$ref":"#/components/schemas/V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaStatus"},"type":{"$ref":"#/components/schemas/V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaType"}},"required":["name","type"]}}}}}},"/v1/products/{id}/surfaces/{surfaceId}":{"get":{"operationId":"get-surface-details","summary":"Get surface details","description":"Get a surface by ID including its items and keys.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Surface details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_getSurfaceDetails_Response_200"}}}},"400":{"description":"Invalid ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-surface","summary":"Update surface","description":"Update an existing surface. Supports partial updates with shallow-merge for behavior.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Surface updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_updateSurface_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Surface limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"behavior":{"description":"Any type"},"config":{"description":"Any type"},"environment":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdPutRequestBodyContentApplicationJsonSchemaEnvironment"},"inbound":{"type":"object","additionalProperties":{"description":"Any type"}},"name":{"type":"string"},"outbound":{"type":"object","additionalProperties":{"description":"Any type"}},"status":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdPutRequestBodyContentApplicationJsonSchemaStatus"}}}}}}},"delete":{"operationId":"delete-surface","summary":"Delete surface","description":"Delete a surface (cascades to items, keys, and orthogonal endpoint registrations).","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Surface deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_deleteSurface_Response_200"}}}},"400":{"description":"Invalid ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/items":{"post":{"operationId":"add-item-to-surface","summary":"Add item to surface","description":"Add a capability item to a surface.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Surface item added","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_addItemToSurface_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product, surface, or capability not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Capability already added to this surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"capabilityId":{"type":"string"},"enabled":{"type":"boolean"},"endpointSlug":{"type":"string"},"exposedDescription":{"type":"string"},"exposedName":{"type":"string"},"isEntryPoint":{"type":"boolean"},"presentation":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentation"}},"required":["capabilityId"]}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/items/{itemId}":{"put":{"operationId":"update-surface-item","summary":"Update surface item","description":"Update an existing surface item. Config updates are deep-merged.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Surface item updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_updateSurfaceItem_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface item not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"enabled":{"type":"boolean"},"endpointSlug":{"type":["string","null"]},"exposedDescription":{"type":["string","null"]},"exposedName":{"type":["string","null"]},"isEntryPoint":{"type":"boolean"},"presentation":{"oneOf":[{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentation"},{"type":"null"}]}}}}}}},"delete":{"operationId":"remove-surface-item","summary":"Remove surface item","description":"Remove an item from a surface (cleans up any Orthogonal API registration).","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Surface item removed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_removeSurfaceItem_Response_200"}}}},"400":{"description":"Invalid ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface item not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/keys":{"post":{"operationId":"create-surface-api-key","summary":"Create surface API key","description":"Create a new API key for a surface. The plaintext key is only returned on creation.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Surface key created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_createSurfaceApiKey_Response_201"}}}},"400":{"description":"Validation error or chat surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdKeysPostRequestBodyContentApplicationJsonSchemaEnvironment","default":"test"},"expiresAt":{"type":"string","format":"date-time"},"name":{"type":"string"},"rateLimitPerDay":{"type":"integer"},"rateLimitPerMinute":{"type":"integer"},"scopes":{"type":"array","items":{"type":"string"}}}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/keys/{keyId}":{"delete":{"operationId":"delete-surface-api-key","summary":"Delete surface API key","description":"Delete an API key for a surface.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Surface key deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_deleteSurfaceApiKey_Response_200"}}}},"400":{"description":"Invalid ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface key not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/keys/{keyId}/reveal":{"get":{"operationId":"reveal-development-surface-key","summary":"Reveal development surface key","description":"Reveal the plaintext of a development (test) surface key. Session-only — API key authentication is rejected.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Revealed key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_revealDevelopmentSurfaceKey_Response_200"}}}},"400":{"description":"Invalid ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Cannot reveal this key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/schedules":{"get":{"operationId":"list-schedules-for-surface","summary":"List schedules for surface","description":"List the schedules attached to a schedule-type surface.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of schedules","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_listSchedulesForSurface_Response_200"}}}},"400":{"description":"Invalid ID or surface is not a schedule surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-schedule-for-surface","summary":"Create schedule for surface","description":"Create a new schedule (one-time or recurring) for a schedule-type surface.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Schedule created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_createScheduleForSurface_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product, surface, or flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"cron":{"type":"string"},"enabled":{"type":"boolean"},"executionOptions":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaExecutionOptions"},"flowId":{"type":"string"},"recordFilter":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilter"},"recordIds":{"type":"array","items":{"type":"string"}},"recordType":{"type":"string"},"runAt":{"type":"string","format":"date-time"},"timezone":{"type":"string"},"triggerType":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaTriggerType"}},"required":["flowId","triggerType"]}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/schedules/{scheduleId}":{"get":{"operationId":"get-schedule-details","summary":"Get schedule details","description":"Get a schedule by ID including recent runs.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_getScheduleDetails_Response_200"}}}},"400":{"description":"Invalid ID or surface is not a schedule surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product, surface, or schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-schedule","summary":"Update schedule","description":"Update an existing schedule. Recomputes next run time when trigger settings change.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_updateSchedule_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product, surface, or schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"cron":{"type":["string","null"]},"enabled":{"type":"boolean"},"executionOptions":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaExecutionOptions"},"flowId":{"type":"string"},"recordFilter":{"oneOf":[{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilter"},{"type":"null"}]},"recordIds":{"type":"array","items":{"type":"string"}},"recordType":{"type":["string","null"]},"runAt":{"type":["string","null"],"format":"date-time"},"timezone":{"type":["string","null"]},"triggerType":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaTriggerType"}}}}}}},"delete":{"operationId":"delete-schedule","summary":"Delete schedule","description":"Delete a schedule from a schedule-type surface.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_deleteSchedule_Response_200"}}}},"400":{"description":"Invalid ID or surface is not a schedule surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product, surface, or schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/schedules/{scheduleId}/pause":{"post":{"operationId":"pause-schedule","summary":"Pause schedule","description":"Pause a schedule (sets enabled to false).","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_pauseSchedule_Response_200"}}}},"400":{"description":"Invalid ID or surface is not a schedule surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product, surface, or schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/schedules/{scheduleId}/resume":{"post":{"operationId":"resume-schedule","summary":"Resume schedule","description":"Resume a schedule (sets enabled to true).","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule resumed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_resumeSchedule_Response_200"}}}},"400":{"description":"Invalid ID or surface is not a schedule surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product, surface, or schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/schedules/{scheduleId}/run-now":{"post":{"operationId":"run-schedule-immediately","summary":"Run schedule immediately","description":"Trigger an immediate batch run of a schedule, resolving its records and submitting a batch.","tags":["subpackage_products"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"scheduleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule run queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Products_runScheduleImmediately_Response_200"}}}},"400":{"description":"Invalid ID, no records, or surface is not a schedule surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product, surface, or schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/generation/sessions":{"get":{"operationId":"list-generation-sessions","summary":"List generation sessions","description":"Returns a paginated list of generation sessions for the authenticated user, optionally filtered by status.","tags":["subpackage_productGeneration"],"parameters":[{"name":"status","in":"query","description":"Filter by session status","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per page (default 20, max 100)","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","description":"Offset for pagination","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of sessions with pagination","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Generation_listGenerationSessions_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-a-generation-session","summary":"Create a generation session","description":"Creates a new product generation session with an optional PRD and catalog/schema version.","tags":["subpackage_productGeneration"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Session created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Generation_createAGenerationSession_Response_201"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"catalogVersion":{"type":"string"},"prd":{"type":"object","additionalProperties":{"description":"Any type"}},"schemaVersion":{"type":"string"}}}}}}}},"/v1/products/generation/sessions/{id}":{"get":{"operationId":"get-session-details","summary":"Get session details","description":"Returns a generation session with its associated events.","tags":["subpackage_productGeneration"],"parameters":[{"name":"id","in":"path","description":"Session ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Session with events","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Generation_getSessionDetails_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Session not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete-a-generation-session","summary":"Delete a generation session","description":"Permanently deletes a generation session and its associated events.","tags":["subpackage_productGeneration"],"parameters":[{"name":"id","in":"path","description":"Session ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Session deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Generation_deleteAGenerationSession_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Session not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"update-a-generation-session","summary":"Update a generation session","description":"Updates session fields including status, PRD, plan, product object, and assembly state.","tags":["subpackage_productGeneration"],"parameters":[{"name":"id","in":"path","description":"Session ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Generation_updateAGenerationSession_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Session not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"assemblyState":{"type":"object","additionalProperties":{"description":"Any type"}},"plan":{"type":"object","additionalProperties":{"description":"Any type"}},"prd":{"type":"object","additionalProperties":{"description":"Any type"}},"productObject":{"type":"object","additionalProperties":{"description":"Any type"}},"productObjectHash":{"type":"string"},"status":{"$ref":"#/components/schemas/V1ProductsGenerationSessionsIdPatchRequestBodyContentApplicationJsonSchemaStatus"}}}}}}}},"/v1/products/generation/sessions/{id}/events":{"post":{"operationId":"append-an-event-to-a-session","summary":"Append an event to a session","description":"Adds a new event to a generation session for tracking progress and state changes.","tags":["subpackage_productGeneration"],"parameters":[{"name":"id","in":"path","description":"Session ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Event created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Generation_appendAnEventToASession_Response_201"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Session not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"payload":{"type":"object","additionalProperties":{"description":"Any type"}},"stage":{"type":"string"},"type":{"type":"string"}},"required":["type"]}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/configure-from-docs":{"post":{"operationId":"configure-webhook-from-documentation","summary":"Configure webhook from documentation","description":"Trigger doc-crawling system flow to configure webhook schema from documentation URL. Not yet implemented.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response"},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"501":{"description":"Not yet implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureWebhookFromDocumentationRequestNotImplementedError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"eventHint":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["url"]}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/webhook-infer":{"post":{"operationId":"infer-schema-from-json-payload","summary":"Infer schema from JSON payload","description":"Infer a webhook schema from a pasted JSON payload.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schema inferred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_inferSchemaFromJsonPayload_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"payload":{"description":"Any type"}}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/webhook-learning":{"post":{"operationId":"toggle-webhook-learning-mode","summary":"Toggle webhook learning mode","description":"Enable or disable learning mode for a webhook surface.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Learning mode toggled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_toggleWebhookLearningMode_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/webhook-mappings":{"get":{"operationId":"get-webhook-field-mappings","summary":"Get webhook field mappings","description":"Get field mappings for all surface items on a webhook surface.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Mappings returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_getWebhookFieldMappings_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-webhook-field-mappings","summary":"Update webhook field mappings","description":"Update field mappings for a specific surface item.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Mappings updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_updateWebhookFieldMappings_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string"},"mappings":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdWebhookMappingsPutRequestBodyContentApplicationJsonSchemaMappingsItems"}}},"required":["itemId","mappings"]}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/webhook-observations":{"get":{"operationId":"list-webhook-observations","summary":"List webhook observations","description":"List observed webhook events with summary information.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Observations listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_listWebhookObservations_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"clear-webhook-observations","summary":"Clear webhook observations","description":"Clear all observed webhook events for a surface.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Observations cleared","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_clearWebhookObservations_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/webhook-routing":{"get":{"operationId":"get-event-routing-configuration","summary":"Get event routing configuration","description":"Get the event routing configuration for a webhook surface.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Routing configuration returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_getEventRoutingConfiguration_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-event-routing-configuration","summary":"Update event routing configuration","description":"Update event routing configuration for a webhook surface.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Routing updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_updateEventRoutingConfiguration_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"eventTypePath":{"type":"string"},"fallbackCapabilityId":{"type":"string"},"routes":{"type":"object","additionalProperties":{"type":"string"}}},"required":["eventTypePath","routes"]}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/webhook-schema":{"get":{"operationId":"get-webhook-schema","summary":"Get webhook schema","description":"Get the current proposed and/or confirmed schema for a webhook surface.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schema returned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_getWebhookSchema_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"upload-webhook-schema","summary":"Upload webhook schema","description":"Upload a schema (AsyncAPI, JSON Schema, or raw JSON example) for a webhook surface.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schema uploaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_uploadWebhookSchema_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"format":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdWebhookSchemaPostRequestBodyContentApplicationJsonSchemaFormat"},"schema":{"description":"Any type"}}}}}}}},"/v1/products/{id}/surfaces/{surfaceId}/webhook-schema/confirm":{"post":{"operationId":"confirm-proposed-schema","summary":"Confirm proposed schema","description":"Confirm the proposed schema, making the webhook surface active.","tags":["subpackage_webhookManagement"],"parameters":[{"name":"id","in":"path","description":"Product ID","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","description":"Surface ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schema confirmed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook Management_confirmProposedSchema_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/a2a":{"post":{"operationId":"a-2-a-json-rpc-endpoint","summary":"A2A JSON-RPC endpoint","description":"A2A Protocol v1.0 JSON-RPC 2.0 transport endpoint. The request body is a JSON-RPC 2.0 envelope `{ jsonrpc: \"2.0\", id?, method, params }` dispatched on `method`. Method names are the 1.0 PascalCase forms; the legacy 0.3 slash-strings are still accepted as tolerant aliases:\n- `SendMessage` (alias `message/send`) — params: `{ message, configuration?, metadata? }`; returns an envelope whose `result` is `{ task }`.\n- `SendStreamingMessage` (alias `message/stream`) — params: same; returns a `text/event-stream` of A2A 1.0 StreamResponse events.\n- `GetTask` (alias `tasks/get`) — params: `{ id | taskId, historyLength? }`; returns a Task envelope.\n- `ListTasks` — params: `{ pageSize?, pageToken?, status?, includeArtifacts? }`; returns `{ tasks, nextPageToken, pageSize, totalSize }` (cursor-paginated).\n- `CancelTask` (alias `tasks/cancel`) — params: `{ id | taskId }`; returns a Task envelope.\n- `SubscribeToTask` (alias `tasks/resubscribe`) — params: `{ id }`; returns a `text/event-stream` of A2A 1.0 StreamResponse events.\nEach streaming `data:` line is a JSON-RPC response carrying a `StreamResponse` oneof (`statusUpdate` / `artifactUpdate`); errors stream as a JSON-RPC error envelope (`google.rpc.Status` form). The body is validated by the handler (not by request-schema middleware) so JSON-RPC error envelopes (`-32700`, METHOD_NOT_FOUND, INVALID_PARAMS) are preserved. Authentication is an A2A surface key (Authorization: Bearer a2a_xxx or X-API-Key header) or a Clerk JWT (dashboard testing).","tags":["subpackage_a2A"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"A2A surface key sent as `Authorization: Bearer a2a_...` or `X-API-Key: a2a_...`.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JSON-RPC response envelope (unary methods) or an SSE event stream (SendStreamingMessage, SubscribeToTask).","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/A2AStreamEvent"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/a2a/.well-known/agent-card.json":{"get":{"operationId":"get-a-2-a-agent-card","summary":"Get A2A Agent Card","description":"Public A2A Protocol Agent Card discovery endpoint describing an A2A surface and its skills. No authentication required.","tags":["subpackage_a2A"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Agent Card","content":{"application/json":{"schema":{"$ref":"#/components/schemas/A2A_getA2AAgentCard_Response_200"}}}},"404":{"description":"Agent or A2A surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/a2a/info":{"get":{"operationId":"get-a-2-a-surface-info","summary":"Get A2A surface info","description":"Public A2A surface information including the protocol version, JSON-RPC endpoint, Agent Card URL, and authentication details. No authentication required.","tags":["subpackage_a2A"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A2A surface information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/A2A_getA2ASurfaceInfo_Response_200"}}}},"404":{"description":"Product or A2A surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/discovered-tools":{"get":{"operationId":"list-discovered-web-mcp-tools","summary":"List discovered WebMCP tools","description":"List the WebMCP page tools observed on this chat surface over the trailing 7 days, grouped by validated request origin. Each tool carries a live admit/reject status derived from the surface's current behavior.webmcp allowlist (never stored). Client-reported pageOrigin is returned as diagnostic metadata only.","tags":["subpackage_surfaces"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Discovered WebMCP tools grouped by request origin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Surfaces_listDiscoveredWebMcpTools_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDiscoveredWebMcpToolsRequestUnauthorizedError"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDiscoveredWebMcpToolsRequestForbiddenError"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListDiscoveredWebMcpToolsRequestNotFoundError"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/observed-origins":{"get":{"operationId":"list-observed-page-origins","summary":"List observed page origins","description":"List the page origins observed sending requests to this chat surface over the trailing 7 days. Each origin carries an allowed flag indicating whether any active client token linked to this surface would admit it via the same validateOrigin check used by chat dispatch.","tags":["subpackage_surfaces"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Observed origins with allowed flags","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Surfaces_listObservedPageOrigins_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListObservedPageOriginsRequestUnauthorizedError"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListObservedPageOriginsRequestForbiddenError"}}}},"404":{"description":"Surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListObservedPageOriginsRequestNotFoundError"}}}}}}},"/v1/surfaces":{"get":{"operationId":"list-surfaces","summary":"List surfaces","description":"List product surfaces across all of the authenticated user/org's products with cursor-based pagination. Supports filtering by type, status, and environment. Slack inbound config is returned only for Slack surfaces and only includes safe-to-expose keys.","tags":["subpackage_surfaces"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"environment","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of surfaces","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Surfaces_listSurfaces_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/mcp/.well-known/mcp.json":{"get":{"operationId":"mcp-manifest","summary":"MCP manifest","description":"MCP manifest describing the server capabilities. Public (no auth) for discovery. Protected surfaces omit tool details until authenticated.","tags":["subpackage_productMcp"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"MCP manifest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product MCP_mcpManifest_Response_200"}}}},"404":{"description":"Product or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/mcp/.well-known/oauth-protected-resource":{"get":{"operationId":"o-auth-protected-resource-metadata","summary":"OAuth protected resource metadata","description":"RFC 9728 Protected Resource Metadata for a surface-specific MCP endpoint. Public (no auth).","tags":["subpackage_productMcp"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"RFC 9728 protected resource metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product MCP_oAuthProtectedResourceMetadata_Response_200"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/mcp/info":{"get":{"operationId":"mcp-surface-info","summary":"MCP surface info","description":"Get MCP surface information. Public (no auth required).","tags":["subpackage_productMcp"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"MCP surface info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product MCP_mcpSurfaceInfo_Response_200"}}}},"404":{"description":"Product or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/mcp/tools/execute-test":{"post":{"operationId":"execute-an-mcp-surface-tool-dashboard-test","summary":"Execute an MCP surface tool (dashboard test)","description":"Dashboard test endpoint. Authenticates with a Clerk session JWT and executes a named tool via the same path as production tools/call.","tags":["subpackage_productMcp"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool execution result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product MCP_executeAnMcpSurfaceToolDashboardTest_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Tool or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"arguments":{"type":"object","additionalProperties":{"description":"Any type"}},"toolName":{"type":"string"}},"required":["toolName"]}}}}}},"/v1/products/{productId}/surfaces/{surfaceId}/mcp/tools/test":{"post":{"operationId":"list-mcp-surface-tools-dashboard-test","summary":"List MCP surface tools (dashboard test)","description":"Dashboard test endpoint. Authenticates with a Clerk session JWT (not MCP API keys) and returns the available tools for the surface.","tags":["subpackage_productMcp"],"parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"string"}},{"name":"surfaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Available tools for the surface","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product MCP_listMcpSurfaceToolsDashboardTest_Response_200"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product or surface not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/prompts":{"get":{"operationId":"list-prompts","summary":"List prompts","description":"Returns prompts for the authenticated user, optionally filtered by flow, search, or model.","tags":["subpackage_prompts"],"parameters":[{"name":"flowId","in":"query","description":"Filter prompts by flow ID","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max results per page (default 50, max 100)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Pagination cursor","required":false,"schema":{"type":"string"}},{"name":"direction","in":"query","description":"Pagination direction","required":false,"schema":{"$ref":"#/components/schemas/V1PromptsGetParametersDirection"}},{"name":"search","in":"query","description":"Search by name or text","required":false,"schema":{"type":"string"}},{"name":"model","in":"query","description":"Filter by model ID","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of prompts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prompts_listPrompts_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-a-prompt","summary":"Create a prompt","description":"Creates a new standalone prompt with token estimation.","tags":["subpackage_prompts"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Prompt created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prompts_createAPrompt_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","default":"qwen/qwen3.5-9b"},"name":{"type":"string"},"responseFormat":{"$ref":"#/components/schemas/V1PromptsPostRequestBodyContentApplicationJsonSchemaResponseFormat","default":"json"},"systemPrompt":{"type":"string"},"text":{"type":"string"},"userPrompt":{"type":"string"}},"required":["name","text"]}}}}}},"/v1/prompts/{id}":{"get":{"operationId":"get-prompt-details","summary":"Get prompt details","description":"Returns a prompt with its associated flow information.","tags":["subpackage_prompts"],"parameters":[{"name":"id","in":"path","description":"Prompt TypeID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Prompt details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prompts_getPromptDetails_Response_200"}}}},"400":{"description":"Invalid prompt ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-a-prompt","summary":"Update a prompt","description":"Updates an existing prompt. Only provided fields are updated.","tags":["subpackage_prompts"],"parameters":[{"name":"id","in":"path","description":"Prompt TypeID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated prompt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prompts_updateAPrompt_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","default":"qwen/qwen3.5-9b"},"name":{"type":"string"},"responseFormat":{"$ref":"#/components/schemas/V1PromptsIdPutRequestBodyContentApplicationJsonSchemaResponseFormat","default":"json"},"systemPrompt":{"type":"string"},"text":{"type":"string"},"userPrompt":{"type":"string"}}}}}}},"delete":{"operationId":"delete-a-prompt","summary":"Delete a prompt","description":"Deletes a prompt. Flow attachments are deleted by CASCADE.","tags":["subpackage_prompts"],"parameters":[{"name":"id","in":"path","description":"Prompt TypeID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Prompt deleted","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Invalid prompt ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Prompt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/provider-keys":{"get":{"operationId":"list-provider-keys","summary":"List provider keys","description":"Returns all provider API keys for the authenticated user.","tags":["subpackage_providerKeys"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Keys_listProviderKeys_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-a-provider-key","summary":"Create a provider key","description":"Creates a new provider API key for the authenticated user. Requires BYOK entitlement.","tags":["subpackage_providerKeys"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Provider key created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Keys_createAProviderKey_Response_201"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Feature not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string"},"isDefault":{"type":"boolean","default":false},"name":{"type":"string"},"provider":{"$ref":"#/components/schemas/V1ProviderKeysPostRequestBodyContentApplicationJsonSchemaProvider"},"settings":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["apiKey","name","provider"]}}}}}},"/v1/provider-keys/discover-models":{"post":{"operationId":"discover-models-from-endpoint","summary":"Discover models from endpoint","description":"Discover available models from an OpenAI-compatible endpoint using a provided API key and base URL.","tags":["subpackage_providerKeys"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Models discovered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Keys_discoverModelsFromEndpoint_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Feature not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string"},"baseUrl":{"type":"string"}},"required":["apiKey","baseUrl"]}}}}}},"/v1/provider-keys/provider/{provider}":{"get":{"operationId":"list-provider-keys-by-provider","summary":"List provider keys by provider","description":"Returns provider API keys filtered by a specific provider.","tags":["subpackage_providerKeys"],"parameters":[{"name":"provider","in":"path","description":"Provider name","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Keys_listProviderKeysByProvider_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/provider-keys/{id}":{"delete":{"operationId":"delete-a-provider-key","summary":"Delete a provider key","description":"Deletes a provider API key and cleans up associated model configs for generic-openai keys.","tags":["subpackage_providerKeys"],"parameters":[{"name":"id","in":"path","description":"Provider key ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Provider key deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Keys_deleteAProviderKey_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"update-a-provider-key","summary":"Update a provider key","description":"Updates an existing provider API key.","tags":["subpackage_providerKeys"],"parameters":[{"name":"id","in":"path","description":"Provider key ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Provider key updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Keys_updateAProviderKey_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string"},"isActive":{"type":"boolean"},"isDefault":{"type":"boolean"},"name":{"type":"string"},"settings":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}}}},"/v1/provider-keys/{id}/discover-models":{"post":{"operationId":"discover-models-from-existing-key","summary":"Discover models from existing key","description":"Discover available models from an existing generic-openai provider key.","tags":["subpackage_providerKeys"],"parameters":[{"name":"id","in":"path","description":"Provider key ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Models discovered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Keys_discoverModelsFromExistingKey_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Feature not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/provider-keys/{id}/sync-models":{"post":{"operationId":"sync-models-for-a-provider-key","summary":"Sync models for a provider key","description":"Sync and upsert model configurations for a generic-openai provider key.","tags":["subpackage_providerKeys"],"parameters":[{"name":"id","in":"path","description":"Provider key ID","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Models synced","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Keys_syncModelsForAProviderKey_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Feature not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/V1ProviderKeysIdSyncModelsPostRequestBodyContentApplicationJsonSchemaModelsItems"}}},"required":["models"]}}}}}},"/v1/provider-status":{"get":{"operationId":"get-provider-status","summary":"Get provider status","description":"Returns configuration status for all providers (AI models, integrations, vector databases).","tags":["subpackage_providerStatus"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Provider status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Status_getProviderStatus_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/provider-status/embedding-models":{"get":{"operationId":"get-available-embedding-models","summary":"Get available embedding models","description":"Get available embedding models based on configured providers.","tags":["subpackage_providerStatus"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of embedding models","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider Status_getAvailableEmbeddingModels_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/public/flows/validate":{"post":{"operationId":"validate-a-prospective-flow-payload","summary":"Validate a prospective flow payload","description":"Validates a flow definition without creating it. Authentication is optional — authenticated requests get additional account-scoped checks.","tags":["subpackage_flowValidation"],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationResult"}}}},"400":{"description":"Invalid JSON body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAProspectiveFlowPayloadRequestBadRequestError"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowValidationResult"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/public/products/validate":{"post":{"operationId":"validate-a-full-product-object-fpo","summary":"Validate a full product object (FPO)","description":"Validates a Full Product Object (FPO) against the platform schema and returns errors, warnings, and recommendations.","tags":["subpackage_productValidation"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Validation_validateAFullProductObjectFpo_Response_200"}}}},"400":{"description":"Invalid JSON body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Validation failed unexpectedly","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAFullProductObjectFpoRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/public/products/validate-template":{"post":{"operationId":"validate-a-product-template","summary":"Validate a product template","description":"Validates a product template against the platform schema.","tags":["subpackage_productValidation"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Validation_validateAProductTemplate_Response_200"}}}},"400":{"description":"Invalid JSON body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Validation failed unexpectedly","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAProductTemplateRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/public/products/validate/agent":{"post":{"operationId":"validate-a-standalone-agent-definition","summary":"Validate a standalone agent definition","description":"Validates an agent definition in isolation, without requiring a full product object.","tags":["subpackage_productValidation"],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Validation_validateAStandaloneAgentDefinition_Response_200"}}}},"400":{"description":"Invalid JSON body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Validation failed unexpectedly","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAStandaloneAgentDefinitionRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/public/products/validate/flow":{"post":{"operationId":"validate-a-standalone-flow-definition","summary":"Validate a standalone flow definition","description":"Validates a flow definition in isolation, without requiring a full product object.","tags":["subpackage_productValidation"],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Validation_validateAStandaloneFlowDefinition_Response_200"}}}},"400":{"description":"Invalid JSON body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Validation failed unexpectedly","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAStandaloneFlowDefinitionRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/public/products/validate/surface":{"post":{"operationId":"validate-a-standalone-surface-definition","summary":"Validate a standalone surface definition","description":"Validates a surface definition in isolation, without requiring a full product object.","tags":["subpackage_productValidation"],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Validation_validateAStandaloneSurfaceDefinition_Response_200"}}}},"400":{"description":"Invalid JSON body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Validation failed unexpectedly","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAStandaloneSurfaceDefinitionRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/public/products/validate/tool":{"post":{"operationId":"validate-a-standalone-tool-definition","summary":"Validate a standalone tool definition","description":"Validates a tool definition in isolation, without requiring a full product object.","tags":["subpackage_productValidation"],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product Validation_validateAStandaloneToolDefinition_Response_200"}}}},"400":{"description":"Invalid JSON body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Validation failed unexpectedly","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateAStandaloneToolDefinitionRequestInternalServerError"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/records":{"get":{"operationId":"list-records","summary":"List records","description":"Get all records for the authenticated user with advanced filtering and cursor pagination.","tags":["subpackage_records"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeCount","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"distinct","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeFields","in":"query","required":false,"schema":{"type":"string"}},{"name":"product_surface_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"metadata_keys","in":"query","required":false,"schema":{"type":"string"}},{"name":"metadata_keys_all","in":"query","required":false,"schema":{"type":"string"}},{"name":"min_fields","in":"query","required":false,"schema":{"type":"string"}},{"name":"max_fields","in":"query","required":false,"schema":{"type":"string"}},{"name":"metadata_types","in":"query","required":false,"schema":{"type":"string"}},{"name":"has_large_fields","in":"query","required":false,"schema":{"type":"string"}},{"name":"min_size_kb","in":"query","required":false,"schema":{"type":"string"}},{"name":"max_size_kb","in":"query","required":false,"schema":{"type":"string"}},{"name":"recordFilter","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_listRecords_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-record","summary":"Create record","description":"Create a new record with metadata. Returns 409 if a record with the same type and name already exists in the tenant.","tags":["subpackage_records"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_createRecord_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Duplicate record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":["array","null"],"items":{"$ref":"#/components/schemas/V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItems"}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"},"default":{}},"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"]}}}}}},"/v1/records/bulk-delete":{"post":{"operationId":"bulk-delete-records","summary":"Bulk delete records","description":"Delete multiple records by their IDs.","tags":["subpackage_records"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Bulk delete result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_bulkDeleteRecords_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"]}}}}}},"/v1/records/bulk-edit":{"post":{"operationId":"bulk-edit-records","summary":"Bulk edit records","description":"Bulk update or delete metadata fields on multiple records.","tags":["subpackage_records"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Bulk edit result with before/after diffs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_bulkEditRecords_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"applyToAll":{"type":"boolean","default":false},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItems"},"default":[]},"deleteFields":{"type":"array","items":{"type":"string"},"default":[]},"dryRun":{"type":"boolean","default":false},"recordFilter":{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilter"},"recordIds":{"type":"array","items":{"type":"string"}},"updates":{"type":"object","additionalProperties":{"description":"Any type"},"default":{}}}}}}}}},"/v1/records/export":{"get":{"operationId":"export-records-as-csv","summary":"Export records as CSV","description":"Export filtered records as a streamed CSV file. Returns 204 with no body when no records match.","tags":["subpackage_records"],"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"distinct","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeFields","in":"query","required":false,"schema":{"type":"string"}},{"name":"product_surface_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"metadata_keys","in":"query","required":false,"schema":{"type":"string"}},{"name":"metadata_keys_all","in":"query","required":false,"schema":{"type":"string"}},{"name":"min_fields","in":"query","required":false,"schema":{"type":"string"}},{"name":"max_fields","in":"query","required":false,"schema":{"type":"string"}},{"name":"metadata_types","in":"query","required":false,"schema":{"type":"string"}},{"name":"has_large_fields","in":"query","required":false,"schema":{"type":"string"}},{"name":"min_size_kb","in":"query","required":false,"schema":{"type":"string"}},{"name":"max_size_kb","in":"query","required":false,"schema":{"type":"string"}},{"name":"recordFilter","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"CSV export of the filtered records","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/records/field-values":{"get":{"operationId":"get-field-values","summary":"Get field values","description":"Get top distinct values for a metadata field, with per-value counts.","tags":["subpackage_records"],"parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string"}},{"name":"field","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Field values with counts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_getFieldValues_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/records/preview-filter":{"post":{"operationId":"preview-record-filter","summary":"Preview record filter","description":"Preview a filter — returns matching count and a small sample of records.","tags":["subpackage_records"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Filter preview result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_previewRecordFilter_Response_200"}}}},"400":{"description":"Invalid filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"where":{"$ref":"#/components/schemas/V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhere"}},"required":["type"]}}}}}},"/v1/records/schema":{"get":{"operationId":"discover-record-schema","summary":"Discover record schema","description":"Discover available metadata fields for a record type by sampling records.","tags":["subpackage_records"],"parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string"}},{"name":"sample","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schema field discovery result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_discoverRecordSchema_Response_200"}}}},"400":{"description":"Missing type parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/records/upload-csv":{"post":{"operationId":"upload-csv-records","summary":"Upload CSV records","description":"Upload and process a CSV file to create records in bulk. Either supply `typeColumn` to read the type from a column, or `typeValue` to assign the same constant type to every row (skipping the column lookup). `typeValue` takes precedence when both are provided.","tags":["subpackage_records"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"CSV upload result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_uploadCsvRecords_Response_201"}}}},"400":{"description":"Invalid CSV or missing file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"description":"Any type"},"nameColumn":{"type":"string"},"typeColumn":{"type":"string"},"typeValue":{"type":"string"}}}}}}}},"/v1/records/{id}":{"get":{"operationId":"get-record-details","summary":"Get record details","description":"Get a specific record by ID including its metadata.","tags":["subpackage_records"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Record details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_getRecordDetails_Response_200"}}}},"400":{"description":"Invalid record ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-record","summary":"Update record","description":"Update fields on an existing record.","tags":["subpackage_records"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_updateRecord_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Duplicate record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":["array","null"],"items":{"$ref":"#/components/schemas/V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItems"}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"},"default":{}},"name":{"type":"string"},"type":{"type":"string"}}}}}}},"delete":{"operationId":"delete-record","summary":"Delete record","description":"Delete a record by ID.","tags":["subpackage_records"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Record deleted","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Invalid record ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/records/{id}/costs":{"get":{"operationId":"get-record-costs","summary":"Get record costs","description":"Get aggregated cost breakdown for a specific record.","tags":["subpackage_records"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cost aggregation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_getRecordCosts_Response_200"}}}},"400":{"description":"Invalid record ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/records/{id}/results":{"get":{"operationId":"get-record-results","summary":"Get record results","description":"Get all execution results for a specific record with filtering and pagination.","tags":["subpackage_records"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"promptId","in":"query","required":false,"schema":{"type":"string"}},{"name":"flowId","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeCount","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated record results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_getRecordResults_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete-record-result","summary":"Delete record result","description":"Delete a specific execution result from a record.","tags":["subpackage_records"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Result deleted","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record or result not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"resultId":{"type":"string"}},"required":["resultId"]}}}}}},"/v1/records/{id}/step-results":{"get":{"operationId":"get-record-step-results","summary":"Get record step results","description":"Get unified step results for a specific record with filtering and pagination.","tags":["subpackage_records"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"flowId","in":"query","required":false,"schema":{"type":"string"}},{"name":"batchId","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated step results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Records_getRecordStepResults_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/resources":{"get":{"operationId":"get-available-resources","summary":"Get available resources","description":"Consolidated endpoint returning all available resources: enabled models, custom tools, built-in tools, integration tools, and MCP servers.","tags":["subpackage_resources"],"parameters":[{"name":"modelId","in":"query","description":"Model ID for built-in tool filtering","required":false,"schema":{"type":"string"}},{"name":"modelProvider","in":"query","description":"Model provider for built-in tool filtering (required with modelId)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Available resources","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resources_getAvailableResources_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules":{"get":{"operationId":"list-schedules","summary":"List schedules","description":"Returns a paginated list of schedules for the authenticated user.","tags":["subpackage_schedules"],"parameters":[{"name":"limit","in":"query","description":"Max results per page (default 50, max 100)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Pagination cursor","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","description":"Search by name","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by status","required":false,"schema":{"$ref":"#/components/schemas/V1SchedulesGetParametersStatus"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of schedules","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_listSchedules_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-a-schedule","summary":"Create a schedule","description":"Creates a new schedule for recurring or one-time flow/agent execution.","tags":["subpackage_schedules"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_createASchedule_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Target not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}},"/v1/schedules/batch/{batchId}/results":{"get":{"operationId":"get-results-for-a-batch-execution","summary":"Get results for a batch execution","description":"Returns the per-record results for a batch execution.","tags":["subpackage_schedules"],"parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_getResultsForABatchExecution_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Batch not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/runs/all":{"get":{"operationId":"list-all-schedule-runs","summary":"List all schedule runs","description":"Returns a paginated list of all runs across the user's schedules.","tags":["subpackage_schedules"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/V1SchedulesRunsAllGetParametersDirection"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"All runs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_listAllScheduleRuns_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/runs/{runId}/results":{"get":{"operationId":"get-results-for-a-scheduled-run","summary":"Get results for a scheduled run","description":"Returns the per-record results for a specific scheduled run.","tags":["subpackage_schedules"],"parameters":[{"name":"runId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Run results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_getResultsForAScheduledRun_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/sparklines":{"get":{"operationId":"get-schedule-sparklines","summary":"Get schedule sparklines","description":"Returns 7-day run sparkline data for all schedules, grouped by schedule ID and UTC calendar day.","tags":["subpackage_schedules"],"parameters":[{"name":"ids","in":"query","description":"Comma-separated schedule IDs (max 100)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sparkline data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_getScheduleSparklines_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/{id}":{"get":{"operationId":"get-a-schedule","summary":"Get a schedule","description":"Returns the details of a specific schedule.","tags":["subpackage_schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_getASchedule_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-a-schedule","summary":"Update a schedule","description":"Updates an existing schedule. Supports partial updates.","tags":["subpackage_schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_updateASchedule_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}},"delete":{"operationId":"delete-a-schedule","summary":"Delete a schedule","description":"Permanently deletes a schedule.","tags":["subpackage_schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_deleteASchedule_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/{id}/pause":{"post":{"operationId":"pause-a-schedule","summary":"Pause a schedule","description":"Pauses a schedule, preventing future executions until resumed.","tags":["subpackage_schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule paused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_pauseASchedule_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/{id}/resume":{"post":{"operationId":"resume-a-schedule","summary":"Resume a schedule","description":"Resumes a paused schedule, re-enabling future executions.","tags":["subpackage_schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule resumed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_resumeASchedule_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/{id}/run-now":{"post":{"operationId":"run-a-schedule-immediately","summary":"Run a schedule immediately","description":"Triggers an immediate execution of a schedule, bypassing its normal trigger timing.","tags":["subpackage_schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Run triggered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_runAScheduleImmediately_Response_200"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/{id}/runs":{"get":{"operationId":"list-runs-for-a-schedule","summary":"List runs for a schedule","description":"Returns the run history for a specific schedule, including batch execution summaries.","tags":["subpackage_schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule runs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_listRunsForASchedule_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/schedules/{id}/stats":{"get":{"operationId":"get-schedule-statistics","summary":"Get schedule statistics","description":"Returns statistics for a schedule including success rate, average duration, average cost, and 7-day run history.","tags":["subpackage_schedules"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Schedule statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedules_getScheduleStatistics_Response_200"}}}},"400":{"description":"Invalid ID format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/secrets":{"get":{"operationId":"list-secrets-metadata-only","summary":"List secrets (metadata only)","tags":["subpackage_secrets"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Secrets list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_listSecretsMetadataOnly_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-a-secret","summary":"Create a secret","tags":["subpackage_secrets"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Secret created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_createASecret_Response_201"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateASecretRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Duplicate key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"key":{"type":"string"},"value":{"type":"string"}},"required":["key"]}}}}}},"/v1/secrets/check":{"post":{"operationId":"check-which-secret-keys-exist-are-missing-or-revoked","summary":"Check which secret keys exist, are missing, or revoked","tags":["subpackage_secrets"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Check result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_checkWhichSecretKeysExistAreMissingOrRevoked_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckWhichSecretKeysExistAreMissingOrRevokedRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}}},"required":["keys"]}}}}}},"/v1/secrets/intake/manifest":{"post":{"operationId":"get-intake-manifest-for-secret-configuration","summary":"Get intake manifest for secret configuration","tags":["subpackage_secrets"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Intake manifest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_getIntakeManifestForSecretConfiguration_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIntakeManifestForSecretConfigurationRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Product not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"returnUrl":{"type":"string"},"source":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostRequestBodyContentApplicationJsonSchemaSource"}},"required":["source"]}}}}}},"/v1/secrets/intake/submit":{"post":{"operationId":"submit-secret-values-from-intake-screen","summary":"Submit secret values from intake screen","tags":["subpackage_secrets"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Submit result with refreshed manifest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_submitSecretValuesFromIntakeScreen_Response_200"}}}},"400":{"description":"Validation error or version required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitSecretValuesFromIntakeScreenRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Version mismatch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaItemsItems"}},"returnUrl":{"type":"string"},"source":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaSource"}},"required":["items","source"]}}}}}},"/v1/secrets/setup-url":{"post":{"operationId":"generate-dashboard-url-for-configuring-missing-secrets","summary":"Generate dashboard URL for configuring missing secrets","tags":["subpackage_secrets"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Setup URL result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_generateDashboardUrlForConfiguringMissingSecrets_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDashboardUrlForConfiguringMissingSecretsRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"context":{"$ref":"#/components/schemas/V1SecretsSetupUrlPostRequestBodyContentApplicationJsonSchemaContext"},"keys":{"type":"array","items":{"type":"string"}}},"required":["keys"]}}}}}},"/v1/secrets/{id}":{"get":{"operationId":"get-secret-metadata","summary":"Get secret metadata","tags":["subpackage_secrets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Secret detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_getSecretMetadata_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-or-rotate-a-secret","summary":"Update or rotate a secret","tags":["subpackage_secrets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Secret updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_updateOrRotateASecret_Response_200"}}}},"400":{"description":"Validation error or version required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrRotateASecretRequestBadRequestError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Version mismatch","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string"},"expectedVersion":{"type":"integer"},"value":{"type":"string"}}}}}}},"delete":{"operationId":"delete-a-secret","summary":"Delete a secret","tags":["subpackage_secrets"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Secret deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secrets_deleteASecret_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skill-proposals":{"get":{"operationId":"list-pending-skill-proposals","summary":"List pending skill proposals","tags":["subpackage_skillProposals"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Pending proposals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skill Proposals_listPendingSkillProposals_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skill-proposals/{id}/approve":{"post":{"operationId":"approve-a-skill-proposal","summary":"Approve a skill proposal","description":"Approve a pending proposal — publishes the proposed skill version.","tags":["subpackage_skillProposals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Approved","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already reviewed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skill-proposals/{id}/reject":{"post":{"operationId":"reject-a-skill-proposal","summary":"Reject a skill proposal","tags":["subpackage_skillProposals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Rejected","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string"}}}}}}}},"/v1/skills":{"get":{"operationId":"list-skills","summary":"List skills","description":"List skills for the authenticated owner, optionally filtered by status.","tags":["subpackage_skills"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/V1SkillsGetParametersStatus"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Skills","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skills_listSkills_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-a-skill","summary":"Create a skill","description":"Create a skill from a SKILL.md string (`markdown`) or a structured manifest (`frontmatter` + `body`). Admin plane — no review queue.","tags":["subpackage_skills"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"400":{"description":"Invalid manifest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Unsupported capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/skills/bind":{"post":{"operationId":"bind-a-skill-to-an-agent","summary":"Bind a skill to an agent","tags":["subpackage_skills"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Bound","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string"},"displayOrder":{"type":"number","format":"double"},"enabled":{"type":"boolean"},"skillId":{"type":"string"},"skillVersionId":{"type":["string","null"]}},"required":["agentId","skillId"]}}}}}},"/v1/skills/bindings":{"get":{"operationId":"list-an-agents-skill-bindings","summary":"List an agent's skill bindings","tags":["subpackage_skills"],"parameters":[{"name":"agentId","in":"query","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Bindings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skills_listAnAgentsSkillBindings_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/bindings/{bindingId}":{"delete":{"operationId":"unbind-a-skill-from-an-agent","summary":"Unbind a skill from an agent","tags":["subpackage_skills"],"parameters":[{"name":"bindingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Unbound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skills_unbindASkillFromAnAgent_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/import":{"post":{"operationId":"import-a-skill-md","summary":"Import a SKILL.md","description":"Import a single SKILL.md document. Lands with trustLevel=imported.","tags":["subpackage_skills"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Imported","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"400":{"description":"Invalid manifest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Unsupported capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"markdown":{"type":"string"}},"required":["markdown"]}}}}}},"/v1/skills/propose":{"post":{"operationId":"propose-a-skill-deployed-agent-data-plane","summary":"Propose a skill (deployed-agent data plane)","description":"Agent self-authoring endpoint hit by the `propose_skill` runtime tool. Review-by-default; auto-publishes only under the owner-set opt-out. NOT the admin create path.","tags":["subpackage_skills"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Proposal outcome","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"400":{"description":"Invalid manifest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Unsupported capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"capabilities":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":"string"},"name":{"type":"string"},"proposingAgentExecutionId":{"type":"string"},"proposingAgentId":{"type":"string"}},"required":["body","description","name","proposingAgentExecutionId","proposingAgentId"]}}}}}},"/v1/skills/{id}":{"get":{"operationId":"get-a-skill","summary":"Get a skill","tags":["subpackage_skills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Skill","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"400":{"description":"Invalid id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"append-a-new-skill-version","summary":"Append a new skill version","description":"Append a new draft version to a skill from an updated manifest.","tags":["subpackage_skills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"New version","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}},"400":{"description":"Invalid manifest","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Unsupported capability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}},"delete":{"operationId":"delete-a-skill","summary":"Delete a skill","tags":["subpackage_skills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skills_deleteASkill_Response_200"}}}},"400":{"description":"Invalid id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/{id}/versions":{"get":{"operationId":"list-a-skills-versions","summary":"List a skill's versions","description":"List all versions of a skill, newest first. (The same array is embedded in GET /{id}; this endpoint exposes it standalone for clients that only need the version history.)","tags":["subpackage_skills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Versions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skills_listASkillsVersions_Response_200"}}}},"400":{"description":"Invalid id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/{id}/versions/{versionId}/publish":{"post":{"operationId":"publish-a-skill-version","summary":"Publish a skill version","tags":["subpackage_skills"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Skills_publishASkillVersion_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools":{"get":{"operationId":"list-tools","summary":"List tools","description":"Get all tools for the authenticated user with filtering and cursor pagination.","tags":["subpackage_tools"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeCount","in":"query","required":false,"schema":{"type":"string"}},{"name":"distinct","in":"query","required":false,"schema":{"type":"string"}},{"name":"tool_type","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"isActive","in":"query","required":false,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string"}},{"name":"include","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated list of tools","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_listTools_Response_200"}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"create-tool","summary":"Create tool","description":"Create a new tool definition.","tags":["subpackage_tools"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Created tool","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_createTool_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":"string"},"name":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolType":{"$ref":"#/components/schemas/V1ToolsPostRequestBodyContentApplicationJsonSchemaToolType"}},"required":["config","description","name","parametersSchema","toolType"]}}}}}},"/v1/tools/builtin":{"get":{"operationId":"list-built-in-tools","summary":"List built-in tools","description":"List built-in tools available for prompt and agent tool configuration.","tags":["subpackage_tools"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Built-in tools","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_listBuiltInTools_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/builtin/compatible":{"get":{"operationId":"list-compatible-built-in-tools","summary":"List compatible built-in tools","description":"List built-in tools compatible with a specific model and provider.","tags":["subpackage_tools"],"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string"}},{"name":"provider","in":"query","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Compatible built-in tools","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_listCompatibleBuiltInTools_Response_200"}}}},"400":{"description":"Missing or invalid query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/builtin/{toolId}/schema":{"get":{"operationId":"get-built-in-tool-schema","summary":"Get built-in tool schema","description":"Get the parameter schema and default configuration for a specific built-in tool.","tags":["subpackage_tools"],"parameters":[{"name":"toolId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Built-in tool parameter schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_getBuiltInToolSchema_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Built-in tool not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/flows/{flowId}/convert-to-tool":{"post":{"operationId":"convert-flow-to-tool","summary":"Convert flow to tool","description":"Create a flow-type tool from an existing flow, generating its parameters schema from the flow steps.","tags":["subpackage_tools"],"parameters":[{"name":"flowId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Created tool","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_convertFlowToTool_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Flow not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/tools/sandbox/cf-sandbox/deploy":{"post":{"operationId":"deploy-runtype-sandbox","summary":"Deploy Runtype Sandbox","description":"Deploy code to a persistent Runtype Sandbox container and return a preview URL.","tags":["subpackage_tools"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sandbox deployment result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_deployRuntypeSandbox_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/tools/sandbox/cf-sandbox/{sandboxId}":{"delete":{"operationId":"cleanup-runtype-sandbox","summary":"Cleanup Runtype Sandbox","description":"Cleanup a deployed Runtype Sandbox container.","tags":["subpackage_tools"],"parameters":[{"name":"sandboxId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sandbox cleaned up","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_cleanupRuntypeSandbox_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/sandbox/deploy":{"post":{"operationId":"deploy-daytona-sandbox","summary":"Deploy Daytona sandbox","description":"Deploy code to a persistent Daytona sandbox and return a preview URL.","tags":["subpackage_tools"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sandbox deployment result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_deployDaytonaSandbox_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/tools/sandbox/{sandboxId}":{"delete":{"operationId":"cleanup-daytona-sandbox","summary":"Cleanup Daytona sandbox","description":"Cleanup a deployed Daytona sandbox.","tags":["subpackage_tools"],"parameters":[{"name":"sandboxId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Sandbox cleaned up","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_cleanupDaytonaSandbox_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Sandbox not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/schema":{"get":{"operationId":"get-tool-schemas","summary":"Get tool schemas","description":"Get active saved tool definitions in an AI SDK compatible discovery format.","tags":["subpackage_tools"],"parameters":[{"name":"toolIds","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool discovery payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_getToolSchemas_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/{id}":{"get":{"operationId":"get-tool-details","summary":"Get tool details","description":"Get a tool by ID including its full configuration.","tags":["subpackage_tools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_getToolDetails_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Tool not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-tool","summary":"Update tool","description":"Update fields on an existing tool.","tags":["subpackage_tools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated tool","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_updateTool_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Tool not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}}},"delete":{"operationId":"delete-tool","summary":"Delete tool","description":"Delete a tool by ID.","tags":["subpackage_tools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_deleteTool_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Tool not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/{id}/execute":{"post":{"operationId":"execute-tool","summary":"Execute tool","description":"Execute a tool by ID with the provided parameters. Flow tools stream an SSE response; non-flow tools return a JSON result.","tags":["subpackage_tools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool execution result (JSON for non-flow tools, SSE stream for flow tools)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_executeTool_Response_200"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Tool not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"context":{"$ref":"#/components/schemas/V1ToolsIdExecutePostRequestBodyContentApplicationJsonSchemaContext"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"toolId":{"type":"string"}},"required":["parameters"]}}}}}},"/v1/tools/{id}/test":{"post":{"operationId":"test-tool","summary":"Test tool","description":"Test a tool with sample parameters by forwarding to the execute endpoint.","tags":["subpackage_tools"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tool execution result (forwarded from the execute endpoint)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tools_testTool_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"description":"Any type"}}}}}}},"/v1/usage-limits":{"get":{"operationId":"get-usage-statistics","summary":"Get usage statistics","description":"Get usage statistics for the authenticated user. Returns V3 execution stats with backward-compatible token-style fields. Token usage is tracked via Analytics Engine.","tags":["subpackage_usageLimits"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Usage statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/usage-limits/daily":{"get":{"operationId":"get-daily-execution-usage","summary":"Get daily execution usage","description":"Get current daily execution statistics for the authenticated user/organization. Used by the dashboard to display daily execution usage and limits.","tags":["subpackage_usageLimits"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Daily (or monthly) execution usage statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyUsageResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/users/onboarding/complete":{"post":{"operationId":"complete-onboarding","summary":"Complete onboarding","description":"Mark onboarding as completed for the authenticated user (dashboard only).","tags":["subpackage_users"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Onboarding completion state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Users_completeOnboarding_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/users/onboarding/reset":{"post":{"operationId":"reset-onboarding","summary":"Reset onboarding","description":"Clear the onboarding completed status for the authenticated user (dashboard only).","tags":["subpackage_users"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Onboarding completion state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Users_resetOnboarding_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/users/profile":{"get":{"operationId":"get-user-profile","summary":"Get user profile","description":"Get the profile of the authenticated user.","tags":["subpackage_users"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Users_getUserProfile_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"update-user-profile","summary":"Update user profile","description":"Update the profile of the authenticated user (dashboard only).","tags":["subpackage_users"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Updated user profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserProfileResponse"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"firstName":{"type":"string"},"lastName":{"type":"string"},"preferences":{"$ref":"#/components/schemas/V1UsersProfilePutRequestBodyContentApplicationJsonSchemaPreferences"}}}}}}}},"/v1/users/stats":{"get":{"operationId":"get-user-statistics","summary":"Get user statistics","description":"Get usage statistics for the authenticated user.","tags":["subpackage_users"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Users_getUserStatistics_Response_200"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/validate/liquid-template":{"post":{"operationId":"validate-liquid-template","summary":"Validate Liquid template","description":"Lightweight per-keystroke Liquid template validator for the dashboard template step editor.","tags":["subpackage_validation"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Validation_validateLiquidTemplate_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Template too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"inputs":{"type":"object","additionalProperties":{"type":"string"},"description":"Template input variables"},"partials":{"type":"object","additionalProperties":{"type":"string"},"description":"Template partials"},"template":{"type":"string","description":"Liquid template string to validate"}},"required":["template"]}}}}}},"/v1/validate/transform-code":{"post":{"operationId":"validate-transform-code","summary":"Validate transform code","description":"Lightweight per-keystroke code validator for the dashboard transform-data step editor.","tags":["subpackage_validation"],"parameters":[{"name":"Authorization","in":"header","description":"API key or Clerk session token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Validation_validateTransformCode_Response_200"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Code too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"availableVariables":{"type":"array","items":{"type":"string"},"description":"List of available variable names"},"code":{"type":"string","description":"JavaScript code to validate"},"language":{"type":"string","description":"Code language (default: javascript)"},"sandboxProvider":{"type":"string","description":"Sandbox provider (default: cloudflare-worker)"}},"required":["code"]}}}}}}},"servers":[{"url":"https://api.runtype.com"},{"url":"https://api.runtype-staging.com"}],"components":{"schemas":{"V1AgentVersionsAgentIdGetParametersType":{"type":"string","enum":["published","draft","test","virtual"],"title":"V1AgentVersionsAgentIdGetParametersType"},"V1AgentVersionsAgentIdGetResponsesContentApplicationJsonSchemaVersionsItems":{"type":"object","properties":{"configSummary":{"type":["string","null"]},"createdAt":{"type":"string"},"id":{"type":"string"},"label":{"type":["string","null"]},"notes":{"type":["string","null"]},"versionNumber":{"type":"integer"},"versionType":{"type":"string"}},"required":["configSummary","createdAt","id","label","notes","versionNumber","versionType"],"title":"V1AgentVersionsAgentIdGetResponsesContentApplicationJsonSchemaVersionsItems"},"Agent Versions_listVersionsForAnAgent_Response_200":{"type":"object","properties":{"agentId":{"type":"string"},"draftVersionId":{"type":["string","null"]},"publishedVersionId":{"type":["string","null"]},"versions":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentVersionsAgentIdGetResponsesContentApplicationJsonSchemaVersionsItems"}}},"required":["agentId","draftVersionId","publishedVersionId","versions"],"title":"Agent Versions_listVersionsForAnAgent_Response_200"},"ErrorDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"ErrorDetailsItems"},"Error":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"Error"},"V1AgentVersionsAgentIdGetResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1AgentVersionsAgentIdGetResponsesContentApplicationJsonSchemaDetailsItems"},"ListVersionsForAnAgentRequestInternalServerError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentVersionsAgentIdGetResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"message":{"type":"string"}},"required":["error"],"title":"ListVersionsForAnAgentRequestInternalServerError"},"Agent Versions_publishASpecificAgentVersion_Response_200":{"type":"object","properties":{"agentId":{"type":"string"},"message":{"type":"string"},"success":{"type":"boolean"},"versionId":{"type":"string"}},"required":["agentId","message","success","versionId"],"title":"Agent Versions_publishASpecificAgentVersion_Response_200"},"V1AgentVersionsAgentIdPublishPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1AgentVersionsAgentIdPublishPostResponsesContentApplicationJsonSchemaDetailsItems"},"PublishASpecificAgentVersionRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentVersionsAgentIdPublishPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"PublishASpecificAgentVersionRequestBadRequestError"},"PublishASpecificAgentVersionRequestInternalServerError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentVersionsAgentIdPublishPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"message":{"type":"string"}},"required":["error"],"title":"PublishASpecificAgentVersionRequestInternalServerError"},"Agent Versions_getThePublishedVersionForAnAgent_Response_200":{"type":"object","properties":{"agentConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"agentId":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"label":{"type":["string","null"]},"notes":{"type":["string","null"]},"versionNumber":{"type":"integer"},"versionType":{"type":"string"}},"required":["agentConfig","agentId","createdAt","id","label","notes","versionNumber","versionType"],"title":"Agent Versions_getThePublishedVersionForAnAgent_Response_200"},"V1AgentVersionsAgentIdPublishedGetResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1AgentVersionsAgentIdPublishedGetResponsesContentApplicationJsonSchemaDetailsItems"},"GetThePublishedVersionForAnAgentRequestInternalServerError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentVersionsAgentIdPublishedGetResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"message":{"type":"string"}},"required":["error"],"title":"GetThePublishedVersionForAnAgentRequestInternalServerError"},"Agent Versions_getASpecificAgentVersion_Response_200":{"type":"object","properties":{"agentConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"agentId":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"label":{"type":["string","null"]},"notes":{"type":["string","null"]},"versionNumber":{"type":"integer"},"versionType":{"type":"string"}},"required":["agentConfig","agentId","createdAt","id","label","notes","versionNumber","versionType"],"title":"Agent Versions_getASpecificAgentVersion_Response_200"},"V1AgentVersionsAgentIdVersionIdGetResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1AgentVersionsAgentIdVersionIdGetResponsesContentApplicationJsonSchemaDetailsItems"},"GetASpecificAgentVersionRequestInternalServerError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentVersionsAgentIdVersionIdGetResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"message":{"type":"string"}},"required":["error"],"title":"GetASpecificAgentVersionRequestInternalServerError"},"V1AgentsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"capabilityCount":{"type":"integer"},"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"description":{"type":["string","null"]},"icon":{"type":["string","null"]},"id":{"type":"string"},"lastRunAt":{"type":["string","null"]},"name":{"type":"string"},"primaryFlowId":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"}},"required":["capabilityCount","config","createdAt","description","icon","id","name","primaryFlowId","status","updatedAt"],"title":"V1AgentsGetResponsesContentApplicationJsonSchemaDataItems"},"Pagination":{"type":"object","properties":{"currentOffset":{"type":"integer"},"currentPage":{"type":"integer"},"hasMore":{"type":"boolean"},"hasPrev":{"type":"boolean"},"limit":{"type":"integer"},"nextCursor":{"type":["string","null"]},"prevCursor":{"type":["string","null"]},"totalCount":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["currentOffset","hasMore","hasPrev","limit","nextCursor","prevCursor"],"title":"Pagination"},"Agents_listAgents_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Agents_listAgents_Response_200"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaAgentType":{"type":"string","enum":["runtype","external","claude_managed"],"default":"runtype","title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaAgentType"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaCapabilitiesItems":{"type":"object","properties":{"enabled":{"type":"boolean"},"flowId":{"type":"string"},"parametersSchema":{"description":"Any type"},"subAgentId":{"type":"string"},"toolDescription":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"}},"required":["toolName"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaCapabilitiesItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfoToolsItems":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfoToolsItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfo":{"type":"object","properties":{"description":{"type":"string"},"fetchedAt":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"},"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfoToolsItems"}},"version":{"type":"number","format":"double"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfo"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCustomToolsItems":{"type":"object","properties":{"capabilityId":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolDescription":{"type":"string"},"toolName":{"type":"string"}},"required":["capabilityId","toolDescription","toolName"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCustomToolsItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigMcpServersItems":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["url"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigMcpServersItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigSetupMode":{"type":"string","enum":["create","connect"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigSetupMode"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigToolPermissions":{"type":"object","properties":{"bash":{"type":"boolean"},"edit":{"type":"boolean"},"glob":{"type":"boolean"},"grep":{"type":"boolean"},"read":{"type":"boolean"},"webFetch":{"type":"boolean"},"webSearch":{"type":"boolean"},"write":{"type":"boolean"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigToolPermissions"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfig":{"type":"object","properties":{"anthropicAgentId":{"type":"string"},"anthropicAgentVersion":{"type":"integer"},"anthropicEnvironmentId":{"type":"string"},"cachedAgentInfo":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfo"},"customTools":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCustomToolsItems"}},"mcpServers":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigMcpServersItems"}},"model":{"type":"string"},"setupMode":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigSetupMode"},"systemPrompt":{"type":"string"},"timeoutMs":{"type":"integer"},"toolPermissions":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfigToolPermissions"}},"required":["setupMode"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaClaudeManagedConfig"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigAdvisor":{"type":"object","properties":{"model":{"type":"string"},"systemPrompt":{"type":"string"}},"required":["model"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigAdvisor"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigArtifactsTypesItems":{"type":"string","enum":["markdown","component"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigArtifactsTypesItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigArtifacts":{"type":"object","properties":{"enabled":{"type":"boolean"},"types":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigArtifactsTypesItems"}}},"required":["enabled","types"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigArtifacts"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf0Type":{"type":"string","enum":["retry"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf0Type"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems0":{"type":"object","properties":{"delay":{"type":"integer"},"type":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf0Type"}},"required":["type"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems0"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf1Type":{"type":"string","enum":["model"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf1Type"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems1":{"type":"object","properties":{"delay":{"type":"integer"},"maxTokens":{"type":"integer"},"model":{"type":"string"},"temperature":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf1Type"}},"required":["model","type"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems1"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf2Type":{"type":"string","enum":["message"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf2Type"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems2":{"type":"object","properties":{"delay":{"type":"integer"},"message":{"type":"string"},"type":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf2Type"}},"required":["message","type"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems2"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems":{"oneOf":[{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems0"},{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems1"},{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems2"}],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingOnError":{"type":"string","enum":["fail","continue","fallback"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingOnError"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItemsType":{"type":"string","enum":["error","empty-output"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItemsType"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItems":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItemsType"}},"required":["type"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandling":{"type":"object","properties":{"fallbacks":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems"}},"onError":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingOnError"},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItems"}}},"required":["onError"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandling"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigLoggingPolicy":{"type":"string","enum":["default","on","off"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigLoggingPolicy"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigLoopConfig":{"type":"object","properties":{"enableReflection":{"type":"boolean"},"maxCost":{"type":"number","format":"double"},"maxTurns":{"type":"integer"},"reflectionInterval":{"type":"integer"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigLoopConfig"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigMemory":{"type":"object","properties":{"enabled":{"type":"boolean"},"injectSummary":{"type":"boolean"},"profileTemplate":{"type":"string"}},"required":["enabled"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigMemory"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningEffort":{"type":"string","enum":["minimal","low","medium","high","xhigh"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningEffort"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningSummary":{"type":"string","enum":["auto","detailed"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningSummary"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoning1":{"type":"object","properties":{"budgetTokens":{"type":"integer"},"enabled":{"type":"boolean"},"includeThoughts":{"type":"boolean"},"reasoningEffort":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningEffort"},"reasoningSummary":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningSummary"},"thinkingBudget":{"type":"integer"}},"required":["enabled"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoning1"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoning":{"oneOf":[{"type":"boolean"},{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoning1"}],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoning"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigTemporal":{"type":"object","properties":{"elapsedThresholdSeconds":{"type":"integer"},"groundNow":{"type":"boolean"},"injectElapsed":{"type":"boolean"},"timezone":{"type":"string"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigTemporal"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsApprovalRequire":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"boolean"}],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsApprovalRequire"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsApproval":{"type":"object","properties":{"require":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsApprovalRequire"},"timeout":{"type":"number","format":"double"}},"required":["require"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsApproval"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsCodeModeConfig":{"type":"object","properties":{"description":{"type":"string"},"timeoutMs":{"type":"integer"},"toolPool":{"type":"array","items":{"type":"string"}}},"required":["toolPool"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsCodeModeConfig"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuthType":{"type":"string","enum":["api_key","bearer","basic","custom_header","none"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuthType"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuth":{"type":"object","properties":{"headerName":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"type":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuthType"},"username":{"type":"string"}},"required":["type"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuth"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsTransport":{"type":"string","enum":["streamable_http","rest"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsTransport"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItems":{"type":"object","properties":{"allowedTools":{"type":"array","items":{"type":"string"}},"auth":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuth"},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"},"transport":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsTransport"},"url":{"type":"string"}},"required":["id","url"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsPerToolLimits":{"type":"object","properties":{"maxCalls":{"type":"number","format":"double"},"required":{"type":"boolean"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsPerToolLimits"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItemsToolType":{"type":"string","enum":["flow","custom","external","local","advisor","subagent","search"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItemsToolType"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItems":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":"string"},"name":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolType":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItemsToolType"}},"required":["config","description","name","parametersSchema","toolType"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsSubagentConfig":{"type":"object","properties":{"allowNesting":{"type":"boolean"},"defaultMaxTurns":{"type":"integer"},"defaultModel":{"type":"string"},"defaultTimeoutMs":{"type":"integer"},"maxSpawnsPerRun":{"type":"integer"},"maxTurnsLimit":{"type":"integer"},"toolPool":{"type":"array","items":{"type":"string"}}},"required":["toolPool"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsSubagentConfig"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsToolCallStrategy":{"type":"string","enum":["auto","required","none"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsToolCallStrategy"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigTools":{"type":"object","properties":{"approval":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsApproval"},"codeModeConfig":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsCodeModeConfig"},"maxToolCalls":{"type":"integer"},"mcpServers":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItems"}},"perToolLimits":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsPerToolLimits"}},"runtimeTools":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItems"}},"subagentConfig":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsSubagentConfig"},"toolCallStrategy":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigToolsToolCallStrategy"},"toolConfigs":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"description":"Any type"}}},"toolIds":{"type":"array","items":{"type":"string"}}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigTools"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoiceElevenLabs":{"type":"object","properties":{"modelId":{"type":"string"},"similarity":{"type":"number","format":"double"},"stability":{"type":"number","format":"double"},"voiceId":{"type":"string"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoiceElevenLabs"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoiceInterruptionMode":{"type":"string","enum":["none","cancel","barge-in"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoiceInterruptionMode"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoice":{"type":"object","properties":{"elevenLabs":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoiceElevenLabs"},"enabled":{"type":"boolean"},"interruptionMode":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoiceInterruptionMode"},"provider":{"type":"string"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoice"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfig":{"type":"object","properties":{"advisor":{"oneOf":[{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigAdvisor"},{"type":"null"}]},"artifacts":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigArtifacts"},"errorHandling":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigErrorHandling"},"frequencyPenalty":{"type":"number","format":"double"},"loggingPolicy":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigLoggingPolicy"},"loopConfig":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigLoopConfig"},"memory":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigMemory"},"model":{"type":"string"},"presencePenalty":{"type":"number","format":"double"},"reasoning":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigReasoning"},"seed":{"type":"integer"},"systemPrompt":{"type":"string"},"temperature":{"type":"number","format":"double"},"temporal":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigTemporal"},"tools":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigTools"},"topK":{"type":"integer"},"topP":{"type":"number","format":"double"},"voice":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaConfigVoice"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaConfig"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigAuthType":{"type":"string","enum":["none","bearer","api_key","basic"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigAuthType"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigAuth":{"type":"object","properties":{"credentials":{"type":"string"},"headerName":{"type":"string"},"type":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigAuthType"}},"required":["type"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigAuth"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilitiesStatefulness":{"type":"string","enum":["none","task","session"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilitiesStatefulness"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilities":{"type":"object","properties":{"pushNotifications":{"type":"boolean"},"statefulness":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilitiesStatefulness"},"streaming":{"type":"boolean"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilities"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardSkillsItems":{"type":"object","properties":{"description":{"type":"string"},"id":{"type":"string"},"inputSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"name":{"type":"string"},"outputSchema":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["id","name"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardSkillsItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCard":{"type":"object","properties":{"capabilities":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilities"},"description":{"type":"string"},"fetchedAt":{"type":"string"},"name":{"type":"string"},"protocolVersion":{"type":"string"},"skills":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardSkillsItems"}},"version":{"type":"string"}},"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCard"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigFramework":{"type":"string","enum":["langchain","vercel_ai","crewai","cloudflare","autogen","custom"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigFramework"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration0":{"type":"string","enum":["delegate","managed"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration0"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration1":{"type":"string","enum":["agent_skill","runtype","none"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration1"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration":{"oneOf":[{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration0"},{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration1"}],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningEffort":{"type":"string","enum":["minimal","low","medium","high","xhigh"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningEffort"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningSummary":{"type":"string","enum":["auto","detailed"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningSummary"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning1":{"type":"object","properties":{"budgetTokens":{"type":"integer"},"enabled":{"type":"boolean"},"includeThoughts":{"type":"boolean"},"reasoningEffort":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningEffort"},"reasoningSummary":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningSummary"},"thinkingBudget":{"type":"integer"}},"required":["enabled"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning1"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning":{"oneOf":[{"type":"boolean"},{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning1"}],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestrator":{"type":"object","properties":{"frequencyPenalty":{"type":"number","format":"double"},"model":{"type":"string"},"presencePenalty":{"type":"number","format":"double"},"reasoning":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning"},"seed":{"type":"integer"},"systemPrompt":{"type":"string"},"temperature":{"type":"number","format":"double"},"topK":{"type":"integer"},"topP":{"type":"number","format":"double"}},"required":["model"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestrator"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItemsRole":{"type":"string","enum":["orchestrator","tool","standalone","hidden"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItemsRole"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItems":{"type":"object","properties":{"enabled":{"type":"boolean"},"exposedDescription":{"type":"string"},"exposedName":{"type":"string"},"id":{"type":"string"},"isNew":{"type":"boolean"},"role":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItemsRole"}},"required":["enabled","id"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItems"},"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfig":{"type":"object","properties":{"agentCardUrl":{"type":"string","format":"uri"},"auth":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigAuth"},"cachedAgentCard":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCard"},"endpoint":{"type":"string","format":"uri"},"framework":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigFramework"},"retryCount":{"type":"integer"},"skillOrchestration":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration"},"skillOrchestrator":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestrator"},"skillsOverride":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItems"}},"timeoutMs":{"type":"integer"}},"required":["endpoint"],"title":"V1AgentsPostRequestBodyContentApplicationJsonSchemaExternalConfig"},"V1AgentsPostResponsesContentApplicationJsonSchemaCapabilitiesItems":{"type":"object","properties":{"agentId":{"type":"string"},"createdAt":{"type":"string"},"displayOrder":{"type":["integer","null"]},"enabled":{"type":"boolean"},"flowId":{"type":["string","null"]},"id":{"type":"string"},"parametersSchema":{"description":"Any type"},"subAgentId":{"type":["string","null"]},"toolDescription":{"type":["string","null"]},"toolId":{"type":["string","null"]},"toolName":{"type":"string"}},"required":["displayOrder","enabled","flowId","id","subAgentId","toolDescription","toolId","toolName"],"title":"V1AgentsPostResponsesContentApplicationJsonSchemaCapabilitiesItems"},"Agents_createAgent_Response_201":{"type":"object","properties":{"_warnings":{"type":"array","items":{"type":"string"}},"agentType":{"type":"string"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsPostResponsesContentApplicationJsonSchemaCapabilitiesItems"}},"claudeManagedConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"description":{"type":["string","null"]},"draftVersionId":{"type":["string","null"]},"externalConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"healthStatus":{"type":["string","null"]},"icon":{"type":["string","null"]},"id":{"type":"string"},"lastHealthCheckAt":{"type":["string","null"]},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"primaryFlowId":{"type":["string","null"]},"publishedVersionId":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentType","capabilities","claudeManagedConfig","config","createdAt","description","draftVersionId","externalConfig","healthStatus","icon","id","lastHealthCheckAt","name","organizationId","primaryFlowId","publishedVersionId","status","updatedAt","userId"],"title":"Agents_createAgent_Response_201"},"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationApiKeyAuth":{"type":"object","properties":{"headerName":{"type":"string"}},"title":"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationApiKeyAuth"},"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationBearerAuth":{"type":"object","properties":{"scopes":{"type":"array","items":{"type":"string"}}},"title":"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationBearerAuth"},"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationType":{"type":"string","enum":["bearer","api_key","none"],"title":"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationType"},"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthentication":{"type":"object","properties":{"apiKeyAuth":{"$ref":"#/components/schemas/V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationApiKeyAuth"},"bearerAuth":{"$ref":"#/components/schemas/V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationBearerAuth"},"type":{"$ref":"#/components/schemas/V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthenticationType"}},"title":"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthentication"},"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaCapabilitiesStatefulness":{"type":"string","enum":["none","task","session"],"title":"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaCapabilitiesStatefulness"},"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaCapabilities":{"type":"object","properties":{"pushNotifications":{"type":"boolean"},"statefulness":{"$ref":"#/components/schemas/V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaCapabilitiesStatefulness"},"streaming":{"type":"boolean"}},"title":"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaCapabilities"},"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaProvider":{"type":"object","properties":{"organization":{"type":"string"},"url":{"type":"string"}},"title":"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaProvider"},"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaSkillsItems":{"type":"object","properties":{"description":{"type":"string"},"id":{"type":"string"},"inputModes":{"type":"array","items":{"type":"string"}},"inputSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"name":{"type":"string"},"outputModes":{"type":"array","items":{"type":"string"}}},"title":"V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaSkillsItems"},"Agents_fetchExternalAgentCard_Response_200":{"type":"object","properties":{"authentication":{"$ref":"#/components/schemas/V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaAuthentication"},"capabilities":{"$ref":"#/components/schemas/V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaCapabilities"},"description":{"type":"string"},"iconUrl":{"type":"string"},"name":{"type":"string"},"protocolVersion":{"type":"string"},"provider":{"$ref":"#/components/schemas/V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaProvider"},"skills":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsFetchAgentCardPostResponsesContentApplicationJsonSchemaSkillsItems"}},"url":{"type":"string"},"version":{"type":"string"}},"title":"Agents_fetchExternalAgentCard_Response_200"},"V1AgentsIdGetResponsesContentApplicationJsonSchemaCapabilitiesItems":{"type":"object","properties":{"agentId":{"type":"string"},"createdAt":{"type":"string"},"displayOrder":{"type":["integer","null"]},"enabled":{"type":"boolean"},"flowId":{"type":["string","null"]},"id":{"type":"string"},"parametersSchema":{"description":"Any type"},"subAgentId":{"type":["string","null"]},"toolDescription":{"type":["string","null"]},"toolId":{"type":["string","null"]},"toolName":{"type":"string"}},"required":["displayOrder","enabled","flowId","id","subAgentId","toolDescription","toolId","toolName"],"title":"V1AgentsIdGetResponsesContentApplicationJsonSchemaCapabilitiesItems"},"V1AgentsIdGetResponsesContentApplicationJsonSchemaPrimaryFlow":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"title":"V1AgentsIdGetResponsesContentApplicationJsonSchemaPrimaryFlow"},"Agents_getAgentDetails_Response_200":{"type":"object","properties":{"agentType":{"type":"string"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdGetResponsesContentApplicationJsonSchemaCapabilitiesItems"}},"claudeManagedConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"description":{"type":["string","null"]},"externalConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"healthStatus":{"type":["string","null"]},"icon":{"type":["string","null"]},"id":{"type":"string"},"lastHealthCheckAt":{"type":["string","null"]},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"primaryFlow":{"oneOf":[{"$ref":"#/components/schemas/V1AgentsIdGetResponsesContentApplicationJsonSchemaPrimaryFlow"},{"type":"null"}]},"primaryFlowId":{"type":["string","null"]},"publishedVersionId":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentType","capabilities","claudeManagedConfig","config","createdAt","description","externalConfig","healthStatus","icon","id","lastHealthCheckAt","name","organizationId","primaryFlow","primaryFlowId","publishedVersionId","status","updatedAt","userId"],"title":"Agents_getAgentDetails_Response_200"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaAgentType":{"type":"string","enum":["runtype","external","claude_managed"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaAgentType"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfoToolsItems":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["type"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfoToolsItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfo":{"type":"object","properties":{"description":{"type":"string"},"fetchedAt":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"},"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfoToolsItems"}},"version":{"type":"number","format":"double"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfo"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCustomToolsItems":{"type":"object","properties":{"capabilityId":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolDescription":{"type":"string"},"toolName":{"type":"string"}},"required":["capabilityId","toolDescription","toolName"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCustomToolsItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigMcpServersItems":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["url"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigMcpServersItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigSetupMode":{"type":"string","enum":["create","connect"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigSetupMode"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigToolPermissions":{"type":"object","properties":{"bash":{"type":"boolean"},"edit":{"type":"boolean"},"glob":{"type":"boolean"},"grep":{"type":"boolean"},"read":{"type":"boolean"},"webFetch":{"type":"boolean"},"webSearch":{"type":"boolean"},"write":{"type":"boolean"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigToolPermissions"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfig":{"type":"object","properties":{"anthropicAgentId":{"type":"string"},"anthropicAgentVersion":{"type":"integer"},"anthropicEnvironmentId":{"type":"string"},"cachedAgentInfo":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCachedAgentInfo"},"customTools":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigCustomToolsItems"}},"mcpServers":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigMcpServersItems"}},"model":{"type":"string"},"setupMode":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigSetupMode"},"systemPrompt":{"type":"string"},"timeoutMs":{"type":"integer"},"toolPermissions":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfigToolPermissions"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaClaudeManagedConfig"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigAdvisor":{"type":"object","properties":{"model":{"type":"string"},"systemPrompt":{"type":"string"}},"required":["model"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigAdvisor"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigArtifactsTypesItems":{"type":"string","enum":["markdown","component"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigArtifactsTypesItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigArtifacts":{"type":"object","properties":{"enabled":{"type":"boolean"},"types":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigArtifactsTypesItems"}}},"required":["enabled","types"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigArtifacts"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf0Type":{"type":"string","enum":["retry"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf0Type"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems0":{"type":"object","properties":{"delay":{"type":"integer"},"type":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf0Type"}},"required":["type"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems0"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf1Type":{"type":"string","enum":["model"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf1Type"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems1":{"type":"object","properties":{"delay":{"type":"integer"},"maxTokens":{"type":"integer"},"model":{"type":"string"},"temperature":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf1Type"}},"required":["model","type"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems1"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf2Type":{"type":"string","enum":["message"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf2Type"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems2":{"type":"object","properties":{"delay":{"type":"integer"},"message":{"type":"string"},"type":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItemsOneOf2Type"}},"required":["message","type"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems2"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems":{"oneOf":[{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems0"},{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems1"},{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems2"}],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingOnError":{"type":"string","enum":["fail","continue","fallback"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingOnError"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItemsType":{"type":"string","enum":["error","empty-output"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItemsType"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItems":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItemsType"}},"required":["type"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandling":{"type":"object","properties":{"fallbacks":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingFallbacksItems"}},"onError":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingOnError"},"triggers":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandlingTriggersItems"}}},"required":["onError"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandling"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigLoggingPolicy":{"type":"string","enum":["default","on","off"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigLoggingPolicy"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigLoopConfig":{"type":"object","properties":{"enableReflection":{"type":"boolean"},"maxCost":{"type":"number","format":"double"},"maxTurns":{"type":"integer"},"reflectionInterval":{"type":"integer"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigLoopConfig"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigMemory":{"type":"object","properties":{"enabled":{"type":"boolean"},"injectSummary":{"type":"boolean"},"profileTemplate":{"type":"string"}},"required":["enabled"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigMemory"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningEffort":{"type":"string","enum":["minimal","low","medium","high","xhigh"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningEffort"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningSummary":{"type":"string","enum":["auto","detailed"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningSummary"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoning1":{"type":"object","properties":{"budgetTokens":{"type":"integer"},"enabled":{"type":"boolean"},"includeThoughts":{"type":"boolean"},"reasoningEffort":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningEffort"},"reasoningSummary":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoningOneOf1ReasoningSummary"},"thinkingBudget":{"type":"integer"}},"required":["enabled"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoning1"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoning":{"oneOf":[{"type":"boolean"},{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoning1"}],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoning"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigTemporal":{"type":"object","properties":{"elapsedThresholdSeconds":{"type":"integer"},"groundNow":{"type":"boolean"},"injectElapsed":{"type":"boolean"},"timezone":{"type":"string"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigTemporal"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsApprovalRequire":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"boolean"}],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsApprovalRequire"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsApproval":{"type":"object","properties":{"require":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsApprovalRequire"},"timeout":{"type":"number","format":"double"}},"required":["require"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsApproval"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsCodeModeConfig":{"type":"object","properties":{"description":{"type":"string"},"timeoutMs":{"type":"integer"},"toolPool":{"type":"array","items":{"type":"string"}}},"required":["toolPool"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsCodeModeConfig"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuthType":{"type":"string","enum":["api_key","bearer","basic","custom_header","none"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuthType"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuth":{"type":"object","properties":{"headerName":{"type":"string"},"password":{"type":"string"},"token":{"type":"string"},"type":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuthType"},"username":{"type":"string"}},"required":["type"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuth"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsTransport":{"type":"string","enum":["streamable_http","rest"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsTransport"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItems":{"type":"object","properties":{"allowedTools":{"type":"array","items":{"type":"string"}},"auth":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsAuth"},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"},"transport":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItemsTransport"},"url":{"type":"string"}},"required":["id","url"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsPerToolLimits":{"type":"object","properties":{"maxCalls":{"type":"number","format":"double"},"required":{"type":"boolean"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsPerToolLimits"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItemsToolType":{"type":"string","enum":["flow","custom","external","local","advisor","subagent","search"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItemsToolType"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItems":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":"string"},"name":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolType":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItemsToolType"}},"required":["config","description","name","parametersSchema","toolType"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsSubagentConfig":{"type":"object","properties":{"allowNesting":{"type":"boolean"},"defaultMaxTurns":{"type":"integer"},"defaultModel":{"type":"string"},"defaultTimeoutMs":{"type":"integer"},"maxSpawnsPerRun":{"type":"integer"},"maxTurnsLimit":{"type":"integer"},"toolPool":{"type":"array","items":{"type":"string"}}},"required":["toolPool"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsSubagentConfig"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsToolCallStrategy":{"type":"string","enum":["auto","required","none"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsToolCallStrategy"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigTools":{"type":"object","properties":{"approval":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsApproval"},"codeModeConfig":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsCodeModeConfig"},"maxToolCalls":{"type":"integer"},"mcpServers":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsMcpServersItems"}},"perToolLimits":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsPerToolLimits"}},"runtimeTools":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsRuntimeToolsItems"}},"subagentConfig":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsSubagentConfig"},"toolCallStrategy":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigToolsToolCallStrategy"},"toolConfigs":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"description":"Any type"}}},"toolIds":{"type":"array","items":{"type":"string"}}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigTools"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoiceElevenLabs":{"type":"object","properties":{"modelId":{"type":"string"},"similarity":{"type":"number","format":"double"},"stability":{"type":"number","format":"double"},"voiceId":{"type":"string"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoiceElevenLabs"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoiceInterruptionMode":{"type":"string","enum":["none","cancel","barge-in"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoiceInterruptionMode"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoice":{"type":"object","properties":{"elevenLabs":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoiceElevenLabs"},"enabled":{"type":"boolean"},"interruptionMode":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoiceInterruptionMode"},"provider":{"type":"string"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoice"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfig":{"type":"object","properties":{"advisor":{"oneOf":[{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigAdvisor"},{"type":"null"}]},"artifacts":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigArtifacts"},"errorHandling":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigErrorHandling"},"frequencyPenalty":{"type":"number","format":"double"},"loggingPolicy":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigLoggingPolicy"},"loopConfig":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigLoopConfig"},"memory":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigMemory"},"model":{"type":"string"},"presencePenalty":{"type":"number","format":"double"},"reasoning":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigReasoning"},"seed":{"type":"integer"},"systemPrompt":{"type":"string"},"temperature":{"type":"number","format":"double"},"temporal":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigTemporal"},"tools":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigTools"},"topK":{"type":"integer"},"topP":{"type":"number","format":"double"},"voice":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfigVoice"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaConfig"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigAuthType":{"type":"string","enum":["none","bearer","api_key","basic"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigAuthType"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigAuth":{"type":"object","properties":{"credentials":{"type":"string"},"headerName":{"type":"string"},"type":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigAuthType"}},"required":["type"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigAuth"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilitiesStatefulness":{"type":"string","enum":["none","task","session"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilitiesStatefulness"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilities":{"type":"object","properties":{"pushNotifications":{"type":"boolean"},"statefulness":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilitiesStatefulness"},"streaming":{"type":"boolean"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilities"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardSkillsItems":{"type":"object","properties":{"description":{"type":"string"},"id":{"type":"string"},"inputSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"name":{"type":"string"},"outputSchema":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["id","name"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardSkillsItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCard":{"type":"object","properties":{"capabilities":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardCapabilities"},"description":{"type":"string"},"fetchedAt":{"type":"string"},"name":{"type":"string"},"protocolVersion":{"type":"string"},"skills":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCardSkillsItems"}},"version":{"type":"string"}},"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCard"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigFramework":{"type":"string","enum":["langchain","vercel_ai","crewai","cloudflare","autogen","custom"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigFramework"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration0":{"type":"string","enum":["delegate","managed"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration0"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration1":{"type":"string","enum":["agent_skill","runtype","none"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration1"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration":{"oneOf":[{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration0"},{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration1"}],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningEffort":{"type":"string","enum":["minimal","low","medium","high","xhigh"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningEffort"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningSummary":{"type":"string","enum":["auto","detailed"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningSummary"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning1":{"type":"object","properties":{"budgetTokens":{"type":"integer"},"enabled":{"type":"boolean"},"includeThoughts":{"type":"boolean"},"reasoningEffort":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningEffort"},"reasoningSummary":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoningOneOf1ReasoningSummary"},"thinkingBudget":{"type":"integer"}},"required":["enabled"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning1"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning":{"oneOf":[{"type":"boolean"},{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning1"}],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestrator":{"type":"object","properties":{"frequencyPenalty":{"type":"number","format":"double"},"model":{"type":"string"},"presencePenalty":{"type":"number","format":"double"},"reasoning":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestratorReasoning"},"seed":{"type":"integer"},"systemPrompt":{"type":"string"},"temperature":{"type":"number","format":"double"},"topK":{"type":"integer"},"topP":{"type":"number","format":"double"}},"required":["model"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestrator"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItemsRole":{"type":"string","enum":["orchestrator","tool","standalone","hidden"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItemsRole"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItems":{"type":"object","properties":{"enabled":{"type":"boolean"},"exposedDescription":{"type":"string"},"exposedName":{"type":"string"},"id":{"type":"string"},"isNew":{"type":"boolean"},"role":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItemsRole"}},"required":["enabled","id"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItems"},"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfig":{"type":"object","properties":{"agentCardUrl":{"type":"string","format":"uri"},"auth":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigAuth"},"cachedAgentCard":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigCachedAgentCard"},"endpoint":{"type":"string","format":"uri"},"framework":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigFramework"},"retryCount":{"type":"integer"},"skillOrchestration":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestration"},"skillOrchestrator":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillOrchestrator"},"skillsOverride":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfigSkillsOverrideItems"}},"timeoutMs":{"type":"integer"}},"required":["endpoint"],"title":"V1AgentsIdPutRequestBodyContentApplicationJsonSchemaExternalConfig"},"Agents_updateAgent_Response_200":{"type":"object","properties":{"_warnings":{"type":"array","items":{"type":"string"}},"agentType":{"type":"string"},"claudeManagedConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"description":{"type":["string","null"]},"draftVersionId":{"type":["string","null"]},"externalConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"healthStatus":{"type":["string","null"]},"icon":{"type":["string","null"]},"id":{"type":"string"},"lastHealthCheckAt":{"type":["string","null"]},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"primaryFlowId":{"type":["string","null"]},"publishedVersionId":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentType","claudeManagedConfig","config","createdAt","description","draftVersionId","externalConfig","healthStatus","icon","id","lastHealthCheckAt","name","organizationId","primaryFlowId","publishedVersionId","status","updatedAt","userId"],"title":"Agents_updateAgent_Response_200"},"Agents_deleteAgent_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Agents_deleteAgent_Response_200"},"AgentSseEventOneOf0Config":{"type":"object","properties":{"enableReflection":{"type":"boolean"},"model":{"type":"string"}},"title":"AgentSseEventOneOf0Config"},"AgentSseEventOneOf0Type":{"type":"string","enum":["agent_start"],"title":"AgentSseEventOneOf0Type"},"AgentSseEvent0":{"type":"object","properties":{"agentId":{"type":"string"},"agentName":{"type":"string"},"config":{"$ref":"#/components/schemas/AgentSseEventOneOf0Config"},"executionId":{"type":"string"},"maxTurns":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf0Type"}},"required":["agentId","agentName","executionId","maxTurns","seq","startedAt","type"],"title":"AgentSseEvent0"},"AgentSseEventOneOf1Type":{"type":"string","enum":["agent_iteration_start"],"title":"AgentSseEventOneOf1Type"},"AgentSseEvent1":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"maxTurns":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"totalCost":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf1Type"}},"required":["executionId","iteration","maxTurns","seq","startedAt","type"],"title":"AgentSseEvent1"},"AgentSseEventOneOf2Role":{"type":"string","enum":["user","assistant","system"],"title":"AgentSseEventOneOf2Role"},"AgentSseEventOneOf2Type":{"type":"string","enum":["agent_turn_start"],"title":"AgentSseEventOneOf2Type"},"AgentSseEvent2":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"role":{"$ref":"#/components/schemas/AgentSseEventOneOf2Role"},"seq":{"type":"number","format":"double"},"turnId":{"type":"string"},"turnIndex":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf2Type"}},"required":["executionId","iteration","role","seq","turnId","turnIndex","type"],"title":"AgentSseEvent2"},"AgentSseEventOneOf3ContentType":{"type":"string","enum":["text","thinking","tool_input"],"title":"AgentSseEventOneOf3ContentType"},"AgentSseEventOneOf3Type":{"type":"string","enum":["agent_turn_delta"],"title":"AgentSseEventOneOf3Type"},"AgentSseEvent3":{"type":"object","properties":{"contentType":{"$ref":"#/components/schemas/AgentSseEventOneOf3ContentType"},"delta":{"type":"string"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"turnId":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf3Type"}},"required":["contentType","delta","executionId","iteration","seq","turnId","type"],"title":"AgentSseEvent3"},"AgentSseEventOneOf4EstimatedContextBreakdownCategories":{"type":"object","properties":{"chars":{"type":"number","format":"double"},"estimatedTokens":{"type":"number","format":"double"}},"required":["chars","estimatedTokens"],"title":"AgentSseEventOneOf4EstimatedContextBreakdownCategories"},"AgentSseEventOneOf4EstimatedContextBreakdown":{"type":"object","properties":{"categories":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AgentSseEventOneOf4EstimatedContextBreakdownCategories"}},"contextWindowSize":{"type":"number","format":"double"},"estimatedTotalTokens":{"type":"number","format":"double"},"estimatedUtilizationPercent":{"type":"number","format":"double"}},"required":["categories","estimatedTotalTokens"],"title":"AgentSseEventOneOf4EstimatedContextBreakdown"},"AgentSseEventOneOf4Role":{"type":"string","enum":["user","assistant","system"],"title":"AgentSseEventOneOf4Role"},"AgentSseEventOneOf4StopReason":{"type":"string","enum":["end_turn","max_tool_calls","length","content_filter","error","unknown"],"title":"AgentSseEventOneOf4StopReason"},"AgentSseEventOneOf4Tokens":{"type":"object","properties":{"input":{"type":"number","format":"double"},"output":{"type":"number","format":"double"}},"required":["input","output"],"title":"AgentSseEventOneOf4Tokens"},"AgentSseEventOneOf4Type":{"type":"string","enum":["agent_turn_complete"],"title":"AgentSseEventOneOf4Type"},"AgentSseEvent4":{"type":"object","properties":{"completedAt":{"type":"string"},"content":{"type":"string"},"cost":{"type":"number","format":"double"},"estimatedContextBreakdown":{"$ref":"#/components/schemas/AgentSseEventOneOf4EstimatedContextBreakdown"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"role":{"$ref":"#/components/schemas/AgentSseEventOneOf4Role"},"seq":{"type":"number","format":"double"},"stopReason":{"$ref":"#/components/schemas/AgentSseEventOneOf4StopReason"},"tokens":{"$ref":"#/components/schemas/AgentSseEventOneOf4Tokens"},"turnId":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf4Type"}},"required":["completedAt","executionId","iteration","role","seq","turnId","type"],"title":"AgentSseEvent4"},"AgentSseEventOneOf5Origin":{"type":"string","enum":["webmcp","sdk"],"title":"AgentSseEventOneOf5Origin"},"AgentSseEventOneOf5ToolType":{"type":"string","enum":["flow","mcp","builtin","custom","external","advisor","subagent","local"],"title":"AgentSseEventOneOf5ToolType"},"AgentSseEventOneOf5Type":{"type":"string","enum":["agent_tool_start"],"title":"AgentSseEventOneOf5Type"},"AgentSseEvent5":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"origin":{"$ref":"#/components/schemas/AgentSseEventOneOf5Origin"},"pageOrigin":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"toolType":{"$ref":"#/components/schemas/AgentSseEventOneOf5ToolType"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf5Type"}},"required":["executionId","iteration","seq","toolCallId","toolName","toolType","type"],"title":"AgentSseEvent5"},"AgentSseEventOneOf6Type":{"type":"string","enum":["agent_tool_delta"],"title":"AgentSseEventOneOf6Type"},"AgentSseEvent6":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf6Type"}},"required":["delta","executionId","iteration","seq","toolCallId","type"],"title":"AgentSseEvent6"},"AgentSseEventOneOf7Type":{"type":"string","enum":["agent_tool_input_delta"],"title":"AgentSseEventOneOf7Type"},"AgentSseEvent7":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf7Type"}},"required":["delta","executionId","iteration","seq","toolCallId","type"],"title":"AgentSseEvent7"},"AgentSseEventOneOf8Type":{"type":"string","enum":["agent_tool_input_complete"],"title":"AgentSseEventOneOf8Type"},"AgentSseEvent8":{"type":"object","properties":{"executionId":{"type":"string"},"hiddenParameterNames":{"type":"array","items":{"type":"string"}},"iteration":{"type":"number","format":"double"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf8Type"}},"required":["executionId","iteration","parameters","seq","toolCallId","toolName","type"],"title":"AgentSseEvent8"},"AgentSseEventOneOf9Type":{"type":"string","enum":["agent_tool_complete"],"title":"AgentSseEventOneOf9Type"},"AgentSseEvent9":{"type":"object","properties":{"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"iteration":{"type":"number","format":"double"},"result":{"description":"Any type"},"seq":{"type":"number","format":"double"},"success":{"type":"boolean"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf9Type"}},"required":["executionId","iteration","seq","success","toolCallId","toolName","type"],"title":"AgentSseEvent9"},"AgentSseEventOneOf10MediaItemsOneOf0AnnotationsAudienceItems":{"type":"string","enum":["user","assistant"],"title":"AgentSseEventOneOf10MediaItemsOneOf0AnnotationsAudienceItems"},"AgentSseEventOneOf10MediaItemsOneOf0Annotations":{"type":"object","properties":{"audience":{"type":"array","items":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf0AnnotationsAudienceItems"}}},"title":"AgentSseEventOneOf10MediaItemsOneOf0Annotations"},"AgentSseEventOneOf10MediaItemsOneOf0Type":{"type":"string","enum":["media"],"title":"AgentSseEventOneOf10MediaItemsOneOf0Type"},"AgentSseEventOneOf10MediaItems0":{"type":"object","properties":{"annotations":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf0Annotations"},"data":{"type":"string"},"mediaType":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf0Type"}},"required":["data","mediaType","type"],"title":"AgentSseEventOneOf10MediaItems0"},"AgentSseEventOneOf10MediaItemsOneOf1AnnotationsAudienceItems":{"type":"string","enum":["user","assistant"],"title":"AgentSseEventOneOf10MediaItemsOneOf1AnnotationsAudienceItems"},"AgentSseEventOneOf10MediaItemsOneOf1Annotations":{"type":"object","properties":{"audience":{"type":"array","items":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf1AnnotationsAudienceItems"}}},"title":"AgentSseEventOneOf10MediaItemsOneOf1Annotations"},"AgentSseEventOneOf10MediaItemsOneOf1Type":{"type":"string","enum":["image-url"],"title":"AgentSseEventOneOf10MediaItemsOneOf1Type"},"AgentSseEventOneOf10MediaItems1":{"type":"object","properties":{"annotations":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf1Annotations"},"mediaType":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf1Type"},"url":{"type":"string"}},"required":["type","url"],"title":"AgentSseEventOneOf10MediaItems1"},"AgentSseEventOneOf10MediaItemsOneOf2AnnotationsAudienceItems":{"type":"string","enum":["user","assistant"],"title":"AgentSseEventOneOf10MediaItemsOneOf2AnnotationsAudienceItems"},"AgentSseEventOneOf10MediaItemsOneOf2Annotations":{"type":"object","properties":{"audience":{"type":"array","items":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf2AnnotationsAudienceItems"}}},"title":"AgentSseEventOneOf10MediaItemsOneOf2Annotations"},"AgentSseEventOneOf10MediaItemsOneOf2Type":{"type":"string","enum":["file-url"],"title":"AgentSseEventOneOf10MediaItemsOneOf2Type"},"AgentSseEventOneOf10MediaItems2":{"type":"object","properties":{"annotations":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf2Annotations"},"mediaType":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItemsOneOf2Type"},"url":{"type":"string"}},"required":["mediaType","type","url"],"title":"AgentSseEventOneOf10MediaItems2"},"AgentSseEventOneOf10MediaItems":{"oneOf":[{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItems0"},{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItems1"},{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItems2"}],"title":"AgentSseEventOneOf10MediaItems"},"AgentSseEventOneOf10Type":{"type":"string","enum":["agent_media"],"title":"AgentSseEventOneOf10Type"},"AgentSseEvent10":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"media":{"type":"array","items":{"$ref":"#/components/schemas/AgentSseEventOneOf10MediaItems"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf10Type"}},"required":["iteration","media","toolCallId","toolName","type"],"title":"AgentSseEvent10"},"AgentSseEventOneOf11ExternalAgent":{"type":"object","properties":{"contextId":{"type":"string"},"taskId":{"type":"string"}},"title":"AgentSseEventOneOf11ExternalAgent"},"AgentSseEventOneOf11Type":{"type":"string","enum":["agent_approval_start"],"title":"AgentSseEventOneOf11Type"},"AgentSseEvent11":{"type":"object","properties":{"approvalId":{"type":"string"},"description":{"type":"string"},"executionId":{"type":"string"},"externalAgent":{"$ref":"#/components/schemas/AgentSseEventOneOf11ExternalAgent"},"iteration":{"type":"number","format":"double"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"timeout":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"toolType":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf11Type"}},"required":["approvalId","description","executionId","seq","startedAt","timeout","toolCallId","toolName","toolType","type"],"title":"AgentSseEvent11"},"AgentSseEventOneOf12Decision":{"type":"string","enum":["approved","denied","timeout"],"title":"AgentSseEventOneOf12Decision"},"AgentSseEventOneOf12ResolvedBy":{"type":"string","enum":["user","system"],"title":"AgentSseEventOneOf12ResolvedBy"},"AgentSseEventOneOf12Type":{"type":"string","enum":["agent_approval_complete"],"title":"AgentSseEventOneOf12Type"},"AgentSseEvent12":{"type":"object","properties":{"approvalId":{"type":"string"},"completedAt":{"type":"string"},"decision":{"$ref":"#/components/schemas/AgentSseEventOneOf12Decision"},"executionId":{"type":"string"},"resolvedBy":{"$ref":"#/components/schemas/AgentSseEventOneOf12ResolvedBy"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf12Type"}},"required":["approvalId","completedAt","decision","executionId","resolvedBy","seq","type"],"title":"AgentSseEvent12"},"AgentSseEventOneOf13Origin":{"type":"string","enum":["webmcp","sdk"],"title":"AgentSseEventOneOf13Origin"},"AgentSseEventOneOf13Type":{"type":"string","enum":["agent_await"],"title":"AgentSseEventOneOf13Type"},"AgentSseEvent13":{"type":"object","properties":{"awaitedAt":{"type":"string"},"executionId":{"type":"string"},"origin":{"$ref":"#/components/schemas/AgentSseEventOneOf13Origin"},"pageOrigin":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf13Type"}},"required":["awaitedAt","executionId","seq","toolId","toolName","type"],"title":"AgentSseEvent13"},"AgentSseEventOneOf14EstimatedContextBreakdownCategories":{"type":"object","properties":{"chars":{"type":"number","format":"double"},"estimatedTokens":{"type":"number","format":"double"}},"required":["chars","estimatedTokens"],"title":"AgentSseEventOneOf14EstimatedContextBreakdownCategories"},"AgentSseEventOneOf14EstimatedContextBreakdown":{"type":"object","properties":{"categories":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AgentSseEventOneOf14EstimatedContextBreakdownCategories"}},"contextWindowSize":{"type":"number","format":"double"},"estimatedTotalTokens":{"type":"number","format":"double"},"estimatedUtilizationPercent":{"type":"number","format":"double"}},"required":["categories","estimatedTotalTokens"],"title":"AgentSseEventOneOf14EstimatedContextBreakdown"},"AgentSseEventOneOf14Tokens":{"type":"object","properties":{"input":{"type":"number","format":"double"},"output":{"type":"number","format":"double"}},"required":["input","output"],"title":"AgentSseEventOneOf14Tokens"},"AgentSseEventOneOf14Type":{"type":"string","enum":["agent_iteration_complete"],"title":"AgentSseEventOneOf14Type"},"AgentSseEvent14":{"type":"object","properties":{"completedAt":{"type":"string"},"cost":{"type":"number","format":"double"},"duration":{"type":"number","format":"double"},"estimatedContextBreakdown":{"$ref":"#/components/schemas/AgentSseEventOneOf14EstimatedContextBreakdown"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"output":{"type":"string"},"runningTotalCost":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"stopConditionMet":{"type":"boolean"},"tokens":{"$ref":"#/components/schemas/AgentSseEventOneOf14Tokens"},"toolCallsMade":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf14Type"}},"required":["completedAt","executionId","iteration","seq","stopConditionMet","toolCallsMade","type"],"title":"AgentSseEvent14"},"AgentSseEventOneOf15Type":{"type":"string","enum":["agent_reflection"],"title":"AgentSseEventOneOf15Type"},"AgentSseEvent15":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"reflection":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf15Type"}},"required":["executionId","iteration","seq","type"],"title":"AgentSseEvent15"},"AgentSseEventOneOf16Type":{"type":"string","enum":["agent_skill_loaded"],"title":"AgentSseEventOneOf16Type"},"AgentSseEvent16":{"type":"object","properties":{"activatedCapabilities":{"type":"array","items":{"type":"string"}},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"skill":{"type":"string"},"toolCallId":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf16Type"}},"required":["activatedCapabilities","executionId","iteration","seq","skill","toolCallId","type"],"title":"AgentSseEvent16"},"AgentSseEventOneOf17Outcome":{"type":"string","enum":["pending_approval","auto_published"],"title":"AgentSseEventOneOf17Outcome"},"AgentSseEventOneOf17Type":{"type":"string","enum":["agent_skill_proposed"],"title":"AgentSseEventOneOf17Type"},"AgentSseEvent17":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"outcome":{"$ref":"#/components/schemas/AgentSseEventOneOf17Outcome"},"proposalId":{"type":"string"},"seq":{"type":"number","format":"double"},"skill":{"type":"string"},"toolCallId":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf17Type"}},"required":["executionId","iteration","outcome","seq","skill","toolCallId","type"],"title":"AgentSseEvent17"},"AgentSseEventOneOf18ExternalAgent":{"type":"object","properties":{"contextId":{"type":"string"},"taskId":{"type":"string"}},"title":"AgentSseEventOneOf18ExternalAgent"},"AgentSseEventOneOf18StopReason":{"type":"string","enum":["complete","end_turn","max_turns","max_cost","timeout","error"],"title":"AgentSseEventOneOf18StopReason"},"AgentSseEventOneOf18TotalTokens":{"type":"object","properties":{"input":{"type":"number","format":"double"},"output":{"type":"number","format":"double"}},"required":["input","output"],"title":"AgentSseEventOneOf18TotalTokens"},"AgentSseEventOneOf18Type":{"type":"string","enum":["agent_complete"],"title":"AgentSseEventOneOf18Type"},"AgentSseEvent18":{"type":"object","properties":{"agentId":{"type":"string"},"completedAt":{"type":"string"},"duration":{"type":"number","format":"double"},"error":{"type":"string"},"executionId":{"type":"string"},"externalAgent":{"$ref":"#/components/schemas/AgentSseEventOneOf18ExternalAgent"},"finalOutput":{"type":"string"},"iterations":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"stopReason":{"$ref":"#/components/schemas/AgentSseEventOneOf18StopReason"},"success":{"type":"boolean"},"totalCost":{"type":"number","format":"double"},"totalTokens":{"$ref":"#/components/schemas/AgentSseEventOneOf18TotalTokens"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf18Type"}},"required":["agentId","completedAt","executionId","iterations","seq","stopReason","success","type"],"title":"AgentSseEvent18"},"AgentSseEventOneOf19Error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"object","additionalProperties":{"description":"Any type"}},"message":{"type":"string"}},"required":["code","message"],"title":"AgentSseEventOneOf19Error"},"AgentSseEventOneOf19Type":{"type":"string","enum":["agent_error"],"title":"AgentSseEventOneOf19Type"},"AgentSseEvent19":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/AgentSseEventOneOf19Error"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"recoverable":{"type":"boolean"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf19Type"}},"required":["error","executionId","recoverable","seq","type"],"title":"AgentSseEvent19"},"AgentSseEventOneOf20Type":{"type":"string","enum":["agent_ping"],"title":"AgentSseEventOneOf20Type"},"AgentSseEvent20":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"timestamp":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentSseEventOneOf20Type"}},"required":["executionId","seq","timestamp","type"],"title":"AgentSseEvent20"},"AgentSSEEvent":{"oneOf":[{"$ref":"#/components/schemas/AgentSseEvent0"},{"$ref":"#/components/schemas/AgentSseEvent1"},{"$ref":"#/components/schemas/AgentSseEvent2"},{"$ref":"#/components/schemas/AgentSseEvent3"},{"$ref":"#/components/schemas/AgentSseEvent4"},{"$ref":"#/components/schemas/AgentSseEvent5"},{"$ref":"#/components/schemas/AgentSseEvent6"},{"$ref":"#/components/schemas/AgentSseEvent7"},{"$ref":"#/components/schemas/AgentSseEvent8"},{"$ref":"#/components/schemas/AgentSseEvent9"},{"$ref":"#/components/schemas/AgentSseEvent10"},{"$ref":"#/components/schemas/AgentSseEvent11"},{"$ref":"#/components/schemas/AgentSseEvent12"},{"$ref":"#/components/schemas/AgentSseEvent13"},{"$ref":"#/components/schemas/AgentSseEvent14"},{"$ref":"#/components/schemas/AgentSseEvent15"},{"$ref":"#/components/schemas/AgentSseEvent16"},{"$ref":"#/components/schemas/AgentSseEvent17"},{"$ref":"#/components/schemas/AgentSseEvent18"},{"$ref":"#/components/schemas/AgentSseEvent19"},{"$ref":"#/components/schemas/AgentSseEvent20"}],"title":"AgentSSEEvent"},"Agents_addCapabilityToAgent_Response_201":{"type":"object","properties":{"agentId":{"type":"string"},"createdAt":{"type":"string"},"displayOrder":{"type":["integer","null"]},"enabled":{"type":"boolean"},"flowId":{"type":["string","null"]},"id":{"type":"string"},"parametersSchema":{"description":"Any type"},"subAgentId":{"type":["string","null"]},"toolDescription":{"type":["string","null"]},"toolId":{"type":["string","null"]},"toolName":{"type":"string"}},"required":["displayOrder","enabled","flowId","id","subAgentId","toolDescription","toolId","toolName"],"title":"Agents_addCapabilityToAgent_Response_201"},"Agents_removeCapabilityFromAgent_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Agents_removeCapabilityFromAgent_Response_200"},"V1AgentsIdExecutionsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"agentId":{"type":["string","null"]},"agentSource":{"type":["string","null"]},"agentSpec":{"description":"Any type"},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"executionId":{"type":"string"},"id":{"type":"string"},"inputMessages":{"description":"Any type"},"iterations":{"type":["integer","null"]},"parentExecutionId":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"status":{"type":"string"},"stopReason":{"type":["string","null"]},"surfaceType":{"type":["string","null"]},"totalCost":{"type":["string","null"]},"totalTokens":{"description":"Any type"}},"required":["agentId","agentSource","completedAt","createdAt","executionId","id","iterations","parentExecutionId","startedAt","status","stopReason","surfaceType","totalCost"],"title":"V1AgentsIdExecutionsGetResponsesContentApplicationJsonSchemaDataItems"},"Agents_listAgentExecutions_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdExecutionsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Agents_listAgentExecutions_Response_200"},"Agents_getExecutionDetail_Response_200":{"type":"object","properties":{"agentId":{"type":["string","null"]},"agentSource":{"type":["string","null"]},"agentSpec":{"description":"Any type"},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"executionId":{"type":"string"},"finalOutput":{"description":"Any type"},"id":{"type":"string"},"inputMessages":{"description":"Any type"},"iterationDetails":{"description":"Any type"},"iterations":{"type":["integer","null"]},"loopConfig":{"description":"Any type"},"parentExecutionId":{"type":["string","null"]},"startedAt":{"type":["string","null"]},"status":{"type":"string"},"stopReason":{"type":["string","null"]},"surfaceType":{"type":["string","null"]},"totalCost":{"type":["string","null"]},"totalTokens":{"description":"Any type"}},"required":["agentId","agentSource","completedAt","createdAt","executionId","id","iterations","parentExecutionId","startedAt","status","stopReason","surfaceType","totalCost"],"title":"Agents_getExecutionDetail_Response_200"},"V1AgentsIdExecutionsExecutionIdToolCallsGetResponsesContentApplicationJsonSchemaToolCallsItems":{"type":"object","properties":{"createdAt":{"type":"string"},"errorMessage":{"type":["string","null"]},"executionTimeMs":{"type":["integer","null"]},"id":{"type":"string"},"iteration":{"type":["integer","null"]},"model":{"type":["string","null"]},"status":{"type":"string"},"toolDescription":{"type":["string","null"]},"toolName":{"type":"string"}},"required":["createdAt","errorMessage","executionTimeMs","id","iteration","model","status","toolDescription","toolName"],"title":"V1AgentsIdExecutionsExecutionIdToolCallsGetResponsesContentApplicationJsonSchemaToolCallsItems"},"Agents_listToolCalls_Response_200":{"type":"object","properties":{"toolCalls":{"type":"array","items":{"$ref":"#/components/schemas/V1AgentsIdExecutionsExecutionIdToolCallsGetResponsesContentApplicationJsonSchemaToolCallsItems"}}},"required":["toolCalls"],"title":"Agents_listToolCalls_Response_200"},"Agents_getToolCallDetail_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"errorMessage":{"type":["string","null"]},"executionTimeMs":{"type":["integer","null"]},"id":{"type":"string"},"inputParameters":{"description":"Any type"},"model":{"type":["string","null"]},"outputResult":{"description":"Any type"},"status":{"type":"string"},"toolDescription":{"type":["string","null"]},"toolId":{"type":["string","null"]},"toolName":{"type":"string"}},"required":["createdAt","errorMessage","executionTimeMs","id","model","status","toolDescription","toolId","toolName"],"title":"Agents_getToolCallDetail_Response_200"},"V1AgentsIdExportRuntimeGetResponsesContentApplicationJsonSchemaAgentType":{"type":"string","enum":["runtype","external"],"title":"V1AgentsIdExportRuntimeGetResponsesContentApplicationJsonSchemaAgentType"},"Agents_exportAgentForRuntime_Response_200":{"type":"object","properties":{"agentType":{"$ref":"#/components/schemas/V1AgentsIdExportRuntimeGetResponsesContentApplicationJsonSchemaAgentType"},"capabilities":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}},"config":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":["string","null"]},"externalConfig":{"type":"object","additionalProperties":{"description":"Any type"}},"id":{"type":"string"},"name":{"type":"string"},"primaryFlow":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["agentType","config","description","id","name"],"title":"Agents_exportAgentForRuntime_Response_200"},"Agents_publishAgent_Response_200":{"type":"object","properties":{"message":{"type":"string"},"publishedVersionId":{"type":"string"},"success":{"type":"boolean"}},"required":["message","publishedVersionId","success"],"title":"Agents_publishAgent_Response_200"},"Agents_refreshCachedAgentCard_Response_200":{"type":"object","properties":{"agentType":{"type":"string"},"changeReport":{"type":"object","additionalProperties":{"description":"Any type"}},"claudeManagedConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"description":{"type":["string","null"]},"externalConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"icon":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"primaryFlowId":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentType","changeReport","claudeManagedConfig","config","createdAt","description","externalConfig","icon","id","name","organizationId","primaryFlowId","status","updatedAt","userId"],"title":"Agents_refreshCachedAgentCard_Response_200"},"Agents_executeAgentVoiceTextToSpeech_Response_200":{"type":"object","properties":{"audioBase64":{"type":"string"},"audioUrl":{"type":"string"},"duration":{"type":"number","format":"double"},"modelId":{"type":"string"},"success":{"type":"boolean"},"voiceId":{"type":"string"}},"required":["success"],"title":"Agents_executeAgentVoiceTextToSpeech_Response_200"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFailedExecutions":{"oneOf":[{"type":"number","format":"double"},{"type":"string"}],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFailedExecutions"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFlowsFailure":{"oneOf":[{"type":"number","format":"double"},{"type":"string"}],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFlowsFailure"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFlowsSuccess":{"oneOf":[{"type":"number","format":"double"},{"type":"string"}],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFlowsSuccess"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsPromptsFailure":{"oneOf":[{"type":"number","format":"double"},{"type":"string"}],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsPromptsFailure"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsPromptsSuccess":{"oneOf":[{"type":"number","format":"double"},{"type":"string"}],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsPromptsSuccess"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsSuccessfulExecutions":{"oneOf":[{"type":"number","format":"double"},{"type":"string"}],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsSuccessfulExecutions"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsTotalExecutions":{"oneOf":[{"type":"number","format":"double"},{"type":"string"}],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsTotalExecutions"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItems":{"type":"object","properties":{"date":{"type":"string"},"failedExecutions":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFailedExecutions"},"flowsFailure":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFlowsFailure"},"flowsSuccess":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsFlowsSuccess"},"promptsFailure":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsPromptsFailure"},"promptsSuccess":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsPromptsSuccess"},"successfulExecutions":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsSuccessfulExecutions"},"totalExecutions":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItemsTotalExecutions"}},"required":["date","failedExecutions","flowsFailure","flowsSuccess","promptsFailure","promptsSuccess","successfulExecutions","totalExecutions"],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItems"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0Period":{"type":"object","properties":{"days":{"type":"integer"},"endDate":{"type":"string"},"startDate":{"type":"string"}},"required":["days","endDate","startDate"],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0Period"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0Summary":{"type":"object","properties":{"failedExecutions":{"type":"integer"},"flowExecutions":{"type":"integer"},"promptExecutions":{"type":"integer"},"successRate":{"type":"number","format":"double"},"successfulExecutions":{"type":"integer"},"totalExecutions":{"type":"integer"}},"required":["failedExecutions","flowExecutions","promptExecutions","successRate","successfulExecutions","totalExecutions"],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0Summary"},"AnalyticsGetRecordResultsResponse2000":{"type":"object","properties":{"dailyExecutions":{"type":"array","items":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0DailyExecutionsItems"}},"period":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0Period"},"summary":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf0Summary"}},"required":["dailyExecutions","period","summary"],"title":"AnalyticsGetRecordResultsResponse2000"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1DataPagination":{"type":"object","properties":{"hasNextPage":{"type":"boolean"},"hasPrevPage":{"type":"boolean"},"limit":{"type":"integer"},"nextCursor":{"type":["string","null"]},"page":{"type":"integer"},"total":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["hasNextPage","hasPrevPage","limit","nextCursor","page","total","totalPages"],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1DataPagination"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1DataResultsItems":{"type":"object","properties":{"completionTokens":{"type":["integer","null"]},"createdAt":{"type":"string"},"estimatedCost":{"type":["string","null"]},"executionTimeMs":{"type":["integer","null"]},"flowId":{"type":["string","null"]},"flowName":{"type":["string","null"]},"id":{"type":"string"},"modelUsed":{"type":["string","null"]},"promptId":{"type":["string","null"]},"promptName":{"type":["string","null"]},"promptResponseFormat":{"type":["string","null"]},"promptText":{"type":["string","null"]},"promptTokens":{"type":["integer","null"]},"recordId":{"type":"string"},"recordName":{"type":"string"},"recordType":{"type":"string"},"result":{"type":["string","null"]},"status":{"type":"string"},"totalTokens":{"type":["integer","null"]}},"required":["completionTokens","createdAt","estimatedCost","executionTimeMs","flowId","flowName","id","modelUsed","promptId","promptName","promptResponseFormat","promptText","promptTokens","recordId","recordName","recordType","result","status","totalTokens"],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1DataResultsItems"},"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1Data":{"type":"object","properties":{"pagination":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1DataPagination"},"results":{"type":"array","items":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1DataResultsItems"}}},"required":["pagination","results"],"title":"V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1Data"},"AnalyticsGetRecordResultsResponse2001":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1AnalyticsRecordResultsGetResponsesContentApplicationJsonSchemaOneOf1Data"},"success":{"type":"boolean"}},"required":["data","success"],"title":"AnalyticsGetRecordResultsResponse2001"},"Analytics_getRecordResults_Response_200":{"oneOf":[{"$ref":"#/components/schemas/AnalyticsGetRecordResultsResponse2000"},{"$ref":"#/components/schemas/AnalyticsGetRecordResultsResponse2001"}],"title":"Analytics_getRecordResults_Response_200"},"V1AnalyticsStatsGetResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"totalAgents":{"type":"integer"},"totalEvals":{"type":"integer"},"totalExecutions":{"type":"integer"},"totalFlows":{"type":"integer"},"totalProducts":{"type":"integer"},"totalPrompts":{"type":"integer"},"totalRecords":{"type":"integer"}},"required":["totalAgents","totalEvals","totalExecutions","totalFlows","totalProducts","totalPrompts","totalRecords"],"title":"V1AnalyticsStatsGetResponsesContentApplicationJsonSchemaData"},"V1AnalyticsStatsGetResponsesContentApplicationJsonSchemaFilters":{"type":"object","properties":{"from":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["from","to"],"title":"V1AnalyticsStatsGetResponsesContentApplicationJsonSchemaFilters"},"Analytics_getAnalyticsStats_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1AnalyticsStatsGetResponsesContentApplicationJsonSchemaData"},"filters":{"$ref":"#/components/schemas/V1AnalyticsStatsGetResponsesContentApplicationJsonSchemaFilters"},"generatedAt":{"type":"string"}},"required":["data","filters","generatedAt"],"title":"Analytics_getAnalyticsStats_Response_200"},"Authentication_getCurrentUserInfo_Response_200":{"type":"object","properties":{"hasOrganization":{"type":"boolean"},"orgId":{"type":["string","null"]},"orgRole":{"type":["string","null"]},"orgSlug":{"type":["string","null"]},"sessionId":{"type":["string","null"]},"userId":{"type":"string"}},"required":["hasOrganization","userId"],"title":"Authentication_getCurrentUserInfo_Response_200"},"Batch_cancelABatchExecution_Response_200":{"type":"object","properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["message","success"],"title":"Batch_cancelABatchExecution_Response_200"},"Batch_submitABatchFlowExecution_Response_200":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"status":{"type":"string"}},"required":["batchExecutionId","status"],"title":"Batch_submitABatchFlowExecution_Response_200"},"Batch_getBatchExecutionStatus_Response_200":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"completedAt":{"type":"string"},"failedRecords":{"type":"integer"},"flowId":{"type":"string"},"processedRecords":{"type":"integer"},"progress":{"type":"integer"},"results":{"type":"array","items":{"description":"Any type"}},"startedAt":{"type":"string"},"status":{"type":"string"},"successCount":{"type":"integer"},"totalRecords":{"type":"integer"}},"required":["batchExecutionId","failedRecords","flowId","processedRecords","startedAt","status","totalRecords"],"title":"Batch_getBatchExecutionStatus_Response_200"},"V1BatchSummaryGetResponsesContentApplicationJsonSchemaBatchesItemsStartedAt":{"oneOf":[{"type":"string"},{"type":"string","format":"date-time"}],"title":"V1BatchSummaryGetResponsesContentApplicationJsonSchemaBatchesItemsStartedAt"},"V1BatchSummaryGetResponsesContentApplicationJsonSchemaBatchesItems":{"type":"object","properties":{"failedRecords":{"type":"integer"},"flowName":{"type":"string"},"id":{"type":"string"},"processedRecords":{"type":"integer"},"progress":{"type":"integer"},"startedAt":{"$ref":"#/components/schemas/V1BatchSummaryGetResponsesContentApplicationJsonSchemaBatchesItemsStartedAt"},"status":{"type":"string"},"totalRecords":{"type":"integer"}},"required":["failedRecords","flowName","id","processedRecords","progress","startedAt","status","totalRecords"],"title":"V1BatchSummaryGetResponsesContentApplicationJsonSchemaBatchesItems"},"V1BatchSummaryGetResponsesContentApplicationJsonSchemaRecentItemsStartedAt":{"oneOf":[{"type":"string"},{"type":"string","format":"date-time"}],"title":"V1BatchSummaryGetResponsesContentApplicationJsonSchemaRecentItemsStartedAt"},"V1BatchSummaryGetResponsesContentApplicationJsonSchemaRecentItems":{"type":"object","properties":{"failedRecords":{"type":"integer"},"flowName":{"type":"string"},"id":{"type":"string"},"processedRecords":{"type":"integer"},"progress":{"type":"integer"},"startedAt":{"$ref":"#/components/schemas/V1BatchSummaryGetResponsesContentApplicationJsonSchemaRecentItemsStartedAt"},"status":{"type":"string"},"totalRecords":{"type":"integer"}},"required":["failedRecords","flowName","id","processedRecords","progress","startedAt","status","totalRecords"],"title":"V1BatchSummaryGetResponsesContentApplicationJsonSchemaRecentItems"},"Batch_getBatchSummary_Response_200":{"type":"object","properties":{"activeBatches":{"type":"integer"},"batches":{"type":"array","items":{"$ref":"#/components/schemas/V1BatchSummaryGetResponsesContentApplicationJsonSchemaBatchesItems"}},"recent":{"type":"array","items":{"$ref":"#/components/schemas/V1BatchSummaryGetResponsesContentApplicationJsonSchemaRecentItems"}},"recentlyCompleted":{"type":"integer"}},"required":["activeBatches","batches","recent","recentlyCompleted"],"title":"Batch_getBatchSummary_Response_200"},"Batch_getPerRecordCostForABatch_Response_200":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"recordId":{"type":"string"},"totalCostUsd":{"type":"number","format":"double"}},"required":["batchExecutionId","recordId","totalCostUsd"],"title":"Batch_getPerRecordCostForABatch_Response_200"},"V1BatchBatchIdRecordsRecordIdStepsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"batchExecutionId":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"completionTokens":{"type":["integer","null"]},"createdAt":{"type":"string"},"durationMs":{"type":["integer","null"]},"errorMessage":{"type":["string","null"]},"estimatedCost":{"type":["string","null"]},"executionSessionId":{"type":["string","null"]},"flowId":{"type":["string","null"]},"flowVersionId":{"type":["string","null"]},"id":{"type":"string"},"inputVariables":{"description":"Any type"},"modelUsed":{"type":["string","null"]},"order":{"type":["integer","null"]},"organizationId":{"type":["string","null"]},"outputPreview":{"type":["string","null"]},"promptTokens":{"type":["integer","null"]},"recordId":{"type":["string","null"]},"recordMetadata":{"description":"Any type"},"recordName":{"type":["string","null"]},"resolvedPrompt":{"type":["string","null"]},"retryCount":{"type":["integer","null"]},"startedAt":{"type":["string","null"]},"status":{"type":"string"},"stepConfig":{"description":"Any type"},"stepId":{"type":["string","null"]},"stepName":{"type":"string"},"stepType":{"type":"string"},"totalTokens":{"type":["integer","null"]},"userId":{"type":"string"}},"required":["batchExecutionId","completedAt","createdAt","durationMs","executionSessionId","flowId","flowVersionId","id","order","organizationId","outputPreview","recordId","recordName","startedAt","status","stepId","stepName","stepType","userId"],"title":"V1BatchBatchIdRecordsRecordIdStepsGetResponsesContentApplicationJsonSchemaDataItems"},"Batch_getStepResultsForABatchRecord_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1BatchBatchIdRecordsRecordIdStepsGetResponsesContentApplicationJsonSchemaDataItems"}}},"required":["data"],"title":"Batch_getStepResultsForABatchRecord_Response_200"},"Batch_getBatchExecutionTotalCost_Response_200":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"totalCostUsd":{"type":"number","format":"double"}},"required":["batchExecutionId","totalCostUsd"],"title":"Batch_getBatchExecutionTotalCost_Response_200"},"V1ClientTokensGetResponsesContentApplicationJsonSchemaClientTokensItemsEnvironment":{"type":"string","enum":["test","live"],"title":"V1ClientTokensGetResponsesContentApplicationJsonSchemaClientTokensItemsEnvironment"},"V1ClientTokensGetResponsesContentApplicationJsonSchemaClientTokensItems":{"type":"object","properties":{"agentIds":{"type":"array","items":{"type":"string"}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"config":{"type":"object","additionalProperties":{"description":"Any type"}},"conversationCount":{"type":"integer"},"createdAt":{"type":"string"},"defaultFlowId":{"type":["string","null"]},"environment":{"$ref":"#/components/schemas/V1ClientTokensGetResponsesContentApplicationJsonSchemaClientTokensItemsEnvironment"},"flowIds":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"isActive":{"type":"boolean"},"lastUsedAt":{"type":["string","null"]},"maxMessagesPerSession":{"type":["integer","null"]},"name":{"type":["string","null"]},"pinToVersion":{"type":["string","null"]},"rateLimitPerHour":{"type":["integer","null"]},"rateLimitPerMinute":{"type":["integer","null"]},"sessionIdleTimeoutMinutes":{"type":["integer","null"]},"tokenHint":{"type":["string","null"]},"tokenPrefix":{"type":"string"},"tokenValue":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["agentIds","allowedOrigins","config","createdAt","defaultFlowId","environment","flowIds","id","isActive","lastUsedAt","maxMessagesPerSession","name","pinToVersion","rateLimitPerHour","rateLimitPerMinute","sessionIdleTimeoutMinutes","tokenHint","tokenPrefix","tokenValue","updatedAt"],"title":"V1ClientTokensGetResponsesContentApplicationJsonSchemaClientTokensItems"},"Client Tokens_listClientTokens_Response_200":{"type":"object","properties":{"clientTokens":{"type":"array","items":{"$ref":"#/components/schemas/V1ClientTokensGetResponsesContentApplicationJsonSchemaClientTokensItems"}}},"required":["clientTokens"],"title":"Client Tokens_listClientTokens_Response_200"},"V1ClientTokensPostRequestBodyContentApplicationJsonSchemaEnvironment":{"type":"string","enum":["test","live"],"default":"live","title":"V1ClientTokensPostRequestBodyContentApplicationJsonSchemaEnvironment"},"V1ClientTokensPostResponsesContentApplicationJsonSchemaClientTokenEnvironment":{"type":"string","enum":["test","live"],"title":"V1ClientTokensPostResponsesContentApplicationJsonSchemaClientTokenEnvironment"},"V1ClientTokensPostResponsesContentApplicationJsonSchemaClientToken":{"type":"object","properties":{"agentIds":{"type":"array","items":{"type":"string"}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"config":{"type":"object","additionalProperties":{"description":"Any type"}},"conversationCount":{"type":"integer"},"createdAt":{"type":"string"},"defaultFlowId":{"type":["string","null"]},"environment":{"$ref":"#/components/schemas/V1ClientTokensPostResponsesContentApplicationJsonSchemaClientTokenEnvironment"},"flowIds":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"isActive":{"type":"boolean"},"lastUsedAt":{"type":["string","null"]},"maxMessagesPerSession":{"type":["integer","null"]},"name":{"type":["string","null"]},"pinToVersion":{"type":["string","null"]},"rateLimitPerHour":{"type":["integer","null"]},"rateLimitPerMinute":{"type":["integer","null"]},"sessionIdleTimeoutMinutes":{"type":["integer","null"]},"tokenHint":{"type":["string","null"]},"tokenPrefix":{"type":"string"},"tokenValue":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["agentIds","allowedOrigins","config","createdAt","defaultFlowId","environment","flowIds","id","isActive","lastUsedAt","maxMessagesPerSession","name","pinToVersion","rateLimitPerHour","rateLimitPerMinute","sessionIdleTimeoutMinutes","tokenHint","tokenPrefix","tokenValue","updatedAt"],"title":"V1ClientTokensPostResponsesContentApplicationJsonSchemaClientToken"},"V1ClientTokensPostResponsesContentApplicationJsonSchemaWarningsItems":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"}},"required":["message","type"],"title":"V1ClientTokensPostResponsesContentApplicationJsonSchemaWarningsItems"},"Client Tokens_createClientToken_Response_201":{"type":"object","properties":{"clientToken":{"$ref":"#/components/schemas/V1ClientTokensPostResponsesContentApplicationJsonSchemaClientToken"},"token":{"type":"string"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1ClientTokensPostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["clientToken","token","warnings"],"title":"Client Tokens_createClientToken_Response_201"},"V1ClientTokensIdGetResponsesContentApplicationJsonSchemaClientTokenEnvironment":{"type":"string","enum":["test","live"],"title":"V1ClientTokensIdGetResponsesContentApplicationJsonSchemaClientTokenEnvironment"},"V1ClientTokensIdGetResponsesContentApplicationJsonSchemaClientToken":{"type":"object","properties":{"agentIds":{"type":"array","items":{"type":"string"}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"config":{"type":"object","additionalProperties":{"description":"Any type"}},"conversationCount":{"type":"integer"},"createdAt":{"type":"string"},"defaultFlowId":{"type":["string","null"]},"environment":{"$ref":"#/components/schemas/V1ClientTokensIdGetResponsesContentApplicationJsonSchemaClientTokenEnvironment"},"flowIds":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"isActive":{"type":"boolean"},"lastUsedAt":{"type":["string","null"]},"maxMessagesPerSession":{"type":["integer","null"]},"name":{"type":["string","null"]},"pinToVersion":{"type":["string","null"]},"rateLimitPerHour":{"type":["integer","null"]},"rateLimitPerMinute":{"type":["integer","null"]},"sessionIdleTimeoutMinutes":{"type":["integer","null"]},"tokenHint":{"type":["string","null"]},"tokenPrefix":{"type":"string"},"tokenValue":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["agentIds","allowedOrigins","config","createdAt","defaultFlowId","environment","flowIds","id","isActive","lastUsedAt","maxMessagesPerSession","name","pinToVersion","rateLimitPerHour","rateLimitPerMinute","sessionIdleTimeoutMinutes","tokenHint","tokenPrefix","tokenValue","updatedAt"],"title":"V1ClientTokensIdGetResponsesContentApplicationJsonSchemaClientToken"},"Client Tokens_getClientToken_Response_200":{"type":"object","properties":{"clientToken":{"$ref":"#/components/schemas/V1ClientTokensIdGetResponsesContentApplicationJsonSchemaClientToken"}},"required":["clientToken"],"title":"Client Tokens_getClientToken_Response_200"},"V1ClientTokensIdPutResponsesContentApplicationJsonSchemaClientTokenEnvironment":{"type":"string","enum":["test","live"],"title":"V1ClientTokensIdPutResponsesContentApplicationJsonSchemaClientTokenEnvironment"},"V1ClientTokensIdPutResponsesContentApplicationJsonSchemaClientToken":{"type":"object","properties":{"agentIds":{"type":"array","items":{"type":"string"}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"config":{"type":"object","additionalProperties":{"description":"Any type"}},"conversationCount":{"type":"integer"},"createdAt":{"type":"string"},"defaultFlowId":{"type":["string","null"]},"environment":{"$ref":"#/components/schemas/V1ClientTokensIdPutResponsesContentApplicationJsonSchemaClientTokenEnvironment"},"flowIds":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"isActive":{"type":"boolean"},"lastUsedAt":{"type":["string","null"]},"maxMessagesPerSession":{"type":["integer","null"]},"name":{"type":["string","null"]},"pinToVersion":{"type":["string","null"]},"rateLimitPerHour":{"type":["integer","null"]},"rateLimitPerMinute":{"type":["integer","null"]},"sessionIdleTimeoutMinutes":{"type":["integer","null"]},"tokenHint":{"type":["string","null"]},"tokenPrefix":{"type":"string"},"tokenValue":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["agentIds","allowedOrigins","config","createdAt","defaultFlowId","environment","flowIds","id","isActive","lastUsedAt","maxMessagesPerSession","name","pinToVersion","rateLimitPerHour","rateLimitPerMinute","sessionIdleTimeoutMinutes","tokenHint","tokenPrefix","tokenValue","updatedAt"],"title":"V1ClientTokensIdPutResponsesContentApplicationJsonSchemaClientToken"},"V1ClientTokensIdPutResponsesContentApplicationJsonSchemaWarningsItems":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"}},"required":["message","type"],"title":"V1ClientTokensIdPutResponsesContentApplicationJsonSchemaWarningsItems"},"Client Tokens_updateClientToken_Response_200":{"type":"object","properties":{"clientToken":{"$ref":"#/components/schemas/V1ClientTokensIdPutResponsesContentApplicationJsonSchemaClientToken"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1ClientTokensIdPutResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["clientToken","warnings"],"title":"Client Tokens_updateClientToken_Response_200"},"Client Tokens_deleteClientToken_Response_200":{"type":"object","properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["message","success"],"title":"Client Tokens_deleteClientToken_Response_200"},"V1ClientTokensIdConversationsGetResponsesContentApplicationJsonSchemaConversationsItems":{"type":"object","properties":{"createdAt":{"type":"string"},"firstMessage":{"type":["string","null"]},"flowId":{"description":"Any type"},"id":{"type":"string"},"messageCount":{"description":"Any type"},"name":{"type":["string","null"]},"origin":{"description":"Any type"},"updatedAt":{"type":"string"}},"required":["createdAt","firstMessage","id","name","updatedAt"],"title":"V1ClientTokensIdConversationsGetResponsesContentApplicationJsonSchemaConversationsItems"},"V1ClientTokensIdConversationsGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["hasMore","limit","offset"],"title":"V1ClientTokensIdConversationsGetResponsesContentApplicationJsonSchemaPagination"},"Client Tokens_listConversationsForClientToken_Response_200":{"type":"object","properties":{"conversations":{"type":"array","items":{"$ref":"#/components/schemas/V1ClientTokensIdConversationsGetResponsesContentApplicationJsonSchemaConversationsItems"}},"pagination":{"$ref":"#/components/schemas/V1ClientTokensIdConversationsGetResponsesContentApplicationJsonSchemaPagination"}},"required":["conversations","pagination"],"title":"Client Tokens_listConversationsForClientToken_Response_200"},"V1ClientTokensIdRegeneratePostResponsesContentApplicationJsonSchemaClientTokenEnvironment":{"type":"string","enum":["test","live"],"title":"V1ClientTokensIdRegeneratePostResponsesContentApplicationJsonSchemaClientTokenEnvironment"},"V1ClientTokensIdRegeneratePostResponsesContentApplicationJsonSchemaClientToken":{"type":"object","properties":{"agentIds":{"type":"array","items":{"type":"string"}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"defaultFlowId":{"type":["string","null"]},"environment":{"$ref":"#/components/schemas/V1ClientTokensIdRegeneratePostResponsesContentApplicationJsonSchemaClientTokenEnvironment"},"flowIds":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":["string","null"]},"pinToVersion":{"type":["string","null"]},"tokenHint":{"type":["string","null"]},"tokenPrefix":{"type":"string"},"tokenValue":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["agentIds","allowedOrigins","createdAt","defaultFlowId","environment","flowIds","id","isActive","name","pinToVersion","tokenHint","tokenPrefix","tokenValue","updatedAt"],"title":"V1ClientTokensIdRegeneratePostResponsesContentApplicationJsonSchemaClientToken"},"Client Tokens_regenerateClientToken_Response_200":{"type":"object","properties":{"clientToken":{"$ref":"#/components/schemas/V1ClientTokensIdRegeneratePostResponsesContentApplicationJsonSchemaClientToken"},"message":{"type":"string"},"token":{"type":"string"}},"required":["clientToken","message","token"],"title":"Client Tokens_regenerateClientToken_Response_200"},"Client Tokens_getClientTokenValue_Response_200":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"],"title":"Client Tokens_getClientTokenValue_Response_200"},"GetClientTokenValueRequestBadRequestError":{"type":"object","properties":{"error":{"type":"string"},"hint":{"type":"string"}},"required":["error"],"title":"GetClientTokenValueRequestBadRequestError"},"V1ContextTemplatesGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["config","createdAt","id","name","organizationId","type","updatedAt","userId"],"title":"V1ContextTemplatesGetResponsesContentApplicationJsonSchemaDataItems"},"Context Templates_listContextTemplates_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ContextTemplatesGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["data","pagination"],"title":"Context Templates_listContextTemplates_Response_200"},"Context Templates_createContextTemplate_Response_201":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["config","createdAt","id","name","organizationId","type","updatedAt","userId"],"title":"Context Templates_createContextTemplate_Response_201"},"Context Templates_getContextTemplate_Response_200":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["config","createdAt","id","name","organizationId","type","updatedAt","userId"],"title":"Context Templates_getContextTemplate_Response_200"},"Context Templates_updateContextTemplate_Response_200":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["config","createdAt","id","name","organizationId","type","updatedAt","userId"],"title":"Context Templates_updateContextTemplate_Response_200"},"V1ConversationsGetParametersSource":{"type":"string","enum":["all","app","client_token"],"title":"V1ConversationsGetParametersSource"},"V1ConversationsGetResponsesContentApplicationJsonSchemaConversationsItemsSource":{"type":"string","enum":["app","client_token"],"title":"V1ConversationsGetResponsesContentApplicationJsonSchemaConversationsItemsSource"},"V1ConversationsGetResponsesContentApplicationJsonSchemaConversationsItems":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"messageCount":{"type":"integer"},"modelId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/V1ConversationsGetResponsesContentApplicationJsonSchemaConversationsItemsSource"},"title":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","id","messageCount","modelId","ownerId","source","title","updatedAt"],"title":"V1ConversationsGetResponsesContentApplicationJsonSchemaConversationsItems"},"V1ConversationsGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"limit":{"type":"integer"},"nextCursor":{"type":["string","null"]}},"required":["hasMore","limit","nextCursor"],"title":"V1ConversationsGetResponsesContentApplicationJsonSchemaPagination"},"Conversations_listConversations_Response_200":{"type":"object","properties":{"conversations":{"type":"array","items":{"$ref":"#/components/schemas/V1ConversationsGetResponsesContentApplicationJsonSchemaConversationsItems"}},"pagination":{"$ref":"#/components/schemas/V1ConversationsGetResponsesContentApplicationJsonSchemaPagination"}},"required":["conversations","pagination"],"title":"Conversations_listConversations_Response_200"},"V1ConversationsPostResponsesContentApplicationJsonSchemaSource":{"type":"string","enum":["app","client_token"],"title":"V1ConversationsPostResponsesContentApplicationJsonSchemaSource"},"Conversations_createAConversation_Response_201":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"messages":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"modelId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/V1ConversationsPostResponsesContentApplicationJsonSchemaSource"},"systemPrompt":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","id","messages","metadata","modelId","ownerId","source","systemPrompt","title","updatedAt"],"title":"Conversations_createAConversation_Response_201"},"V1ConversationsPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1ConversationsPostResponsesContentApplicationJsonSchemaDetailsItems"},"CreateAConversationRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1ConversationsPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"CreateAConversationRequestBadRequestError"},"V1ConversationsIdGetResponsesContentApplicationJsonSchemaSource":{"type":"string","enum":["app","client_token"],"title":"V1ConversationsIdGetResponsesContentApplicationJsonSchemaSource"},"Conversations_getConversationWithMessages_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"messages":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"modelId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/V1ConversationsIdGetResponsesContentApplicationJsonSchemaSource"},"systemPrompt":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","id","messages","metadata","modelId","ownerId","source","systemPrompt","title","updatedAt"],"title":"Conversations_getConversationWithMessages_Response_200"},"V1ConversationsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsRole":{"type":"string","enum":["user","assistant","system"],"title":"V1ConversationsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsRole"},"V1ConversationsIdPutRequestBodyContentApplicationJsonSchemaMessagesItems":{"type":"object","properties":{"content":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"role":{"$ref":"#/components/schemas/V1ConversationsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsRole"}},"required":["content","id","role"],"title":"V1ConversationsIdPutRequestBodyContentApplicationJsonSchemaMessagesItems"},"V1ConversationsIdPutResponsesContentApplicationJsonSchemaSource":{"type":"string","enum":["app","client_token"],"title":"V1ConversationsIdPutResponsesContentApplicationJsonSchemaSource"},"Conversations_updateAConversation_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"messages":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"modelId":{"type":["string","null"]},"ownerId":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/V1ConversationsIdPutResponsesContentApplicationJsonSchemaSource"},"systemPrompt":{"type":["string","null"]},"title":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","id","messages","metadata","modelId","ownerId","source","systemPrompt","title","updatedAt"],"title":"Conversations_updateAConversation_Response_200"},"V1ConversationsIdPutResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1ConversationsIdPutResponsesContentApplicationJsonSchemaDetailsItems"},"UpdateAConversationRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1ConversationsIdPutResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"UpdateAConversationRequestBadRequestError"},"V1DataConnectionsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{},"title":"V1DataConnectionsGetResponsesContentApplicationJsonSchemaDataItems"},"Data Connections_listDataConnections_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1DataConnectionsGetResponsesContentApplicationJsonSchemaDataItems"}}},"required":["data"],"title":"Data Connections_listDataConnections_Response_200"},"V1DataConnectionsConnectSessionPostResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"connectLink":{"type":"string"},"sessionId":{"type":"string"},"token":{"type":"string"}},"required":["connectLink","sessionId","token"],"title":"V1DataConnectionsConnectSessionPostResponsesContentApplicationJsonSchemaData"},"Data Connections_createConnectSession_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1DataConnectionsConnectSessionPostResponsesContentApplicationJsonSchemaData"}},"required":["data"],"title":"Data Connections_createConnectSession_Response_200"},"V1DataConnectionsSyncPostResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{},"title":"V1DataConnectionsSyncPostResponsesContentApplicationJsonSchemaData"},"Data Connections_syncConnections_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1DataConnectionsSyncPostResponsesContentApplicationJsonSchemaData"}},"required":["data"],"title":"Data Connections_syncConnections_Response_200"},"V1DataConnectionsIdGetResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{},"title":"V1DataConnectionsIdGetResponsesContentApplicationJsonSchemaData"},"Data Connections_getDataConnection_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1DataConnectionsIdGetResponsesContentApplicationJsonSchemaData"}},"required":["data"],"title":"Data Connections_getDataConnection_Response_200"},"Data Connections_deleteDataConnection_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Data Connections_deleteDataConnection_Response_200"},"V1DataConnectionsIdPatchRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["active","disconnected","error"],"title":"V1DataConnectionsIdPatchRequestBodyContentApplicationJsonSchemaStatus"},"V1DataConnectionsIdPatchResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{},"title":"V1DataConnectionsIdPatchResponsesContentApplicationJsonSchemaData"},"Data Connections_updateConnectionStatus_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1DataConnectionsIdPatchResponsesContentApplicationJsonSchemaData"}},"required":["data"],"title":"Data Connections_updateConnectionStatus_Response_200"},"V1DataConnectionsIdToolsGetResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"category":{"type":"string"},"connectionId":{"type":"string"},"providerName":{"type":"string"},"tools":{"type":"array","items":{"description":"Any type"}}},"required":["category","connectionId","providerName","tools"],"title":"V1DataConnectionsIdToolsGetResponsesContentApplicationJsonSchemaData"},"Data Connections_listConnectionTools_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1DataConnectionsIdToolsGetResponsesContentApplicationJsonSchemaData"}},"required":["data"],"title":"Data Connections_listConnectionTools_Response_200"},"DispatchSseEventOneOf0Config":{"type":"object","properties":{"enableReflection":{"type":"boolean"},"model":{"type":"string"}},"title":"DispatchSseEventOneOf0Config"},"DispatchSseEventOneOf0Type":{"type":"string","enum":["agent_start"],"title":"DispatchSseEventOneOf0Type"},"DispatchSseEvent0":{"type":"object","properties":{"agentId":{"type":"string"},"agentName":{"type":"string"},"config":{"$ref":"#/components/schemas/DispatchSseEventOneOf0Config"},"executionId":{"type":"string"},"maxTurns":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf0Type"}},"required":["agentId","agentName","executionId","maxTurns","seq","startedAt","type"],"title":"DispatchSseEvent0"},"DispatchSseEventOneOf1Type":{"type":"string","enum":["agent_iteration_start"],"title":"DispatchSseEventOneOf1Type"},"DispatchSseEvent1":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"maxTurns":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"totalCost":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf1Type"}},"required":["executionId","iteration","maxTurns","seq","startedAt","type"],"title":"DispatchSseEvent1"},"DispatchSseEventOneOf2Role":{"type":"string","enum":["user","assistant","system"],"title":"DispatchSseEventOneOf2Role"},"DispatchSseEventOneOf2Type":{"type":"string","enum":["agent_turn_start"],"title":"DispatchSseEventOneOf2Type"},"DispatchSseEvent2":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"role":{"$ref":"#/components/schemas/DispatchSseEventOneOf2Role"},"seq":{"type":"number","format":"double"},"turnId":{"type":"string"},"turnIndex":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf2Type"}},"required":["executionId","iteration","role","seq","turnId","turnIndex","type"],"title":"DispatchSseEvent2"},"DispatchSseEventOneOf3ContentType":{"type":"string","enum":["text","thinking","tool_input"],"title":"DispatchSseEventOneOf3ContentType"},"DispatchSseEventOneOf3Type":{"type":"string","enum":["agent_turn_delta"],"title":"DispatchSseEventOneOf3Type"},"DispatchSseEvent3":{"type":"object","properties":{"contentType":{"$ref":"#/components/schemas/DispatchSseEventOneOf3ContentType"},"delta":{"type":"string"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"turnId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf3Type"}},"required":["contentType","delta","executionId","iteration","seq","turnId","type"],"title":"DispatchSseEvent3"},"DispatchSseEventOneOf4EstimatedContextBreakdownCategories":{"type":"object","properties":{"chars":{"type":"number","format":"double"},"estimatedTokens":{"type":"number","format":"double"}},"required":["chars","estimatedTokens"],"title":"DispatchSseEventOneOf4EstimatedContextBreakdownCategories"},"DispatchSseEventOneOf4EstimatedContextBreakdown":{"type":"object","properties":{"categories":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/DispatchSseEventOneOf4EstimatedContextBreakdownCategories"}},"contextWindowSize":{"type":"number","format":"double"},"estimatedTotalTokens":{"type":"number","format":"double"},"estimatedUtilizationPercent":{"type":"number","format":"double"}},"required":["categories","estimatedTotalTokens"],"title":"DispatchSseEventOneOf4EstimatedContextBreakdown"},"DispatchSseEventOneOf4Role":{"type":"string","enum":["user","assistant","system"],"title":"DispatchSseEventOneOf4Role"},"DispatchSseEventOneOf4StopReason":{"type":"string","enum":["end_turn","max_tool_calls","length","content_filter","error","unknown"],"title":"DispatchSseEventOneOf4StopReason"},"DispatchSseEventOneOf4Tokens":{"type":"object","properties":{"input":{"type":"number","format":"double"},"output":{"type":"number","format":"double"}},"required":["input","output"],"title":"DispatchSseEventOneOf4Tokens"},"DispatchSseEventOneOf4Type":{"type":"string","enum":["agent_turn_complete"],"title":"DispatchSseEventOneOf4Type"},"DispatchSseEvent4":{"type":"object","properties":{"completedAt":{"type":"string"},"content":{"type":"string"},"cost":{"type":"number","format":"double"},"estimatedContextBreakdown":{"$ref":"#/components/schemas/DispatchSseEventOneOf4EstimatedContextBreakdown"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"role":{"$ref":"#/components/schemas/DispatchSseEventOneOf4Role"},"seq":{"type":"number","format":"double"},"stopReason":{"$ref":"#/components/schemas/DispatchSseEventOneOf4StopReason"},"tokens":{"$ref":"#/components/schemas/DispatchSseEventOneOf4Tokens"},"turnId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf4Type"}},"required":["completedAt","executionId","iteration","role","seq","turnId","type"],"title":"DispatchSseEvent4"},"DispatchSseEventOneOf5Origin":{"type":"string","enum":["webmcp","sdk"],"title":"DispatchSseEventOneOf5Origin"},"DispatchSseEventOneOf5ToolType":{"type":"string","enum":["flow","mcp","builtin","custom","external","advisor","subagent","local"],"title":"DispatchSseEventOneOf5ToolType"},"DispatchSseEventOneOf5Type":{"type":"string","enum":["agent_tool_start"],"title":"DispatchSseEventOneOf5Type"},"DispatchSseEvent5":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"origin":{"$ref":"#/components/schemas/DispatchSseEventOneOf5Origin"},"pageOrigin":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"toolType":{"$ref":"#/components/schemas/DispatchSseEventOneOf5ToolType"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf5Type"}},"required":["executionId","iteration","seq","toolCallId","toolName","toolType","type"],"title":"DispatchSseEvent5"},"DispatchSseEventOneOf6Type":{"type":"string","enum":["agent_tool_delta"],"title":"DispatchSseEventOneOf6Type"},"DispatchSseEvent6":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf6Type"}},"required":["delta","executionId","iteration","seq","toolCallId","type"],"title":"DispatchSseEvent6"},"DispatchSseEventOneOf7Type":{"type":"string","enum":["agent_tool_input_delta"],"title":"DispatchSseEventOneOf7Type"},"DispatchSseEvent7":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf7Type"}},"required":["delta","executionId","iteration","seq","toolCallId","type"],"title":"DispatchSseEvent7"},"DispatchSseEventOneOf8Type":{"type":"string","enum":["agent_tool_input_complete"],"title":"DispatchSseEventOneOf8Type"},"DispatchSseEvent8":{"type":"object","properties":{"executionId":{"type":"string"},"hiddenParameterNames":{"type":"array","items":{"type":"string"}},"iteration":{"type":"number","format":"double"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf8Type"}},"required":["executionId","iteration","parameters","seq","toolCallId","toolName","type"],"title":"DispatchSseEvent8"},"DispatchSseEventOneOf9Type":{"type":"string","enum":["agent_tool_complete"],"title":"DispatchSseEventOneOf9Type"},"DispatchSseEvent9":{"type":"object","properties":{"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"iteration":{"type":"number","format":"double"},"result":{"description":"Any type"},"seq":{"type":"number","format":"double"},"success":{"type":"boolean"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf9Type"}},"required":["executionId","iteration","seq","success","toolCallId","toolName","type"],"title":"DispatchSseEvent9"},"DispatchSseEventOneOf10MediaItemsOneOf0AnnotationsAudienceItems":{"type":"string","enum":["user","assistant"],"title":"DispatchSseEventOneOf10MediaItemsOneOf0AnnotationsAudienceItems"},"DispatchSseEventOneOf10MediaItemsOneOf0Annotations":{"type":"object","properties":{"audience":{"type":"array","items":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf0AnnotationsAudienceItems"}}},"title":"DispatchSseEventOneOf10MediaItemsOneOf0Annotations"},"DispatchSseEventOneOf10MediaItemsOneOf0Type":{"type":"string","enum":["media"],"title":"DispatchSseEventOneOf10MediaItemsOneOf0Type"},"DispatchSseEventOneOf10MediaItems0":{"type":"object","properties":{"annotations":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf0Annotations"},"data":{"type":"string"},"mediaType":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf0Type"}},"required":["data","mediaType","type"],"title":"DispatchSseEventOneOf10MediaItems0"},"DispatchSseEventOneOf10MediaItemsOneOf1AnnotationsAudienceItems":{"type":"string","enum":["user","assistant"],"title":"DispatchSseEventOneOf10MediaItemsOneOf1AnnotationsAudienceItems"},"DispatchSseEventOneOf10MediaItemsOneOf1Annotations":{"type":"object","properties":{"audience":{"type":"array","items":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf1AnnotationsAudienceItems"}}},"title":"DispatchSseEventOneOf10MediaItemsOneOf1Annotations"},"DispatchSseEventOneOf10MediaItemsOneOf1Type":{"type":"string","enum":["image-url"],"title":"DispatchSseEventOneOf10MediaItemsOneOf1Type"},"DispatchSseEventOneOf10MediaItems1":{"type":"object","properties":{"annotations":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf1Annotations"},"mediaType":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf1Type"},"url":{"type":"string"}},"required":["type","url"],"title":"DispatchSseEventOneOf10MediaItems1"},"DispatchSseEventOneOf10MediaItemsOneOf2AnnotationsAudienceItems":{"type":"string","enum":["user","assistant"],"title":"DispatchSseEventOneOf10MediaItemsOneOf2AnnotationsAudienceItems"},"DispatchSseEventOneOf10MediaItemsOneOf2Annotations":{"type":"object","properties":{"audience":{"type":"array","items":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf2AnnotationsAudienceItems"}}},"title":"DispatchSseEventOneOf10MediaItemsOneOf2Annotations"},"DispatchSseEventOneOf10MediaItemsOneOf2Type":{"type":"string","enum":["file-url"],"title":"DispatchSseEventOneOf10MediaItemsOneOf2Type"},"DispatchSseEventOneOf10MediaItems2":{"type":"object","properties":{"annotations":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf2Annotations"},"mediaType":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItemsOneOf2Type"},"url":{"type":"string"}},"required":["mediaType","type","url"],"title":"DispatchSseEventOneOf10MediaItems2"},"DispatchSseEventOneOf10MediaItems":{"oneOf":[{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItems0"},{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItems1"},{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItems2"}],"title":"DispatchSseEventOneOf10MediaItems"},"DispatchSseEventOneOf10Type":{"type":"string","enum":["agent_media"],"title":"DispatchSseEventOneOf10Type"},"DispatchSseEvent10":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"media":{"type":"array","items":{"$ref":"#/components/schemas/DispatchSseEventOneOf10MediaItems"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf10Type"}},"required":["iteration","media","toolCallId","toolName","type"],"title":"DispatchSseEvent10"},"DispatchSseEventOneOf11ExternalAgent":{"type":"object","properties":{"contextId":{"type":"string"},"taskId":{"type":"string"}},"title":"DispatchSseEventOneOf11ExternalAgent"},"DispatchSseEventOneOf11Type":{"type":"string","enum":["agent_approval_start"],"title":"DispatchSseEventOneOf11Type"},"DispatchSseEvent11":{"type":"object","properties":{"approvalId":{"type":"string"},"description":{"type":"string"},"executionId":{"type":"string"},"externalAgent":{"$ref":"#/components/schemas/DispatchSseEventOneOf11ExternalAgent"},"iteration":{"type":"number","format":"double"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"timeout":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolName":{"type":"string"},"toolType":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf11Type"}},"required":["approvalId","description","executionId","seq","startedAt","timeout","toolCallId","toolName","toolType","type"],"title":"DispatchSseEvent11"},"DispatchSseEventOneOf12Decision":{"type":"string","enum":["approved","denied","timeout"],"title":"DispatchSseEventOneOf12Decision"},"DispatchSseEventOneOf12ResolvedBy":{"type":"string","enum":["user","system"],"title":"DispatchSseEventOneOf12ResolvedBy"},"DispatchSseEventOneOf12Type":{"type":"string","enum":["agent_approval_complete"],"title":"DispatchSseEventOneOf12Type"},"DispatchSseEvent12":{"type":"object","properties":{"approvalId":{"type":"string"},"completedAt":{"type":"string"},"decision":{"$ref":"#/components/schemas/DispatchSseEventOneOf12Decision"},"executionId":{"type":"string"},"resolvedBy":{"$ref":"#/components/schemas/DispatchSseEventOneOf12ResolvedBy"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf12Type"}},"required":["approvalId","completedAt","decision","executionId","resolvedBy","seq","type"],"title":"DispatchSseEvent12"},"DispatchSseEventOneOf13Origin":{"type":"string","enum":["webmcp","sdk"],"title":"DispatchSseEventOneOf13Origin"},"DispatchSseEventOneOf13Type":{"type":"string","enum":["agent_await"],"title":"DispatchSseEventOneOf13Type"},"DispatchSseEvent13":{"type":"object","properties":{"awaitedAt":{"type":"string"},"executionId":{"type":"string"},"origin":{"$ref":"#/components/schemas/DispatchSseEventOneOf13Origin"},"pageOrigin":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf13Type"}},"required":["awaitedAt","executionId","seq","toolId","toolName","type"],"title":"DispatchSseEvent13"},"DispatchSseEventOneOf14EstimatedContextBreakdownCategories":{"type":"object","properties":{"chars":{"type":"number","format":"double"},"estimatedTokens":{"type":"number","format":"double"}},"required":["chars","estimatedTokens"],"title":"DispatchSseEventOneOf14EstimatedContextBreakdownCategories"},"DispatchSseEventOneOf14EstimatedContextBreakdown":{"type":"object","properties":{"categories":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/DispatchSseEventOneOf14EstimatedContextBreakdownCategories"}},"contextWindowSize":{"type":"number","format":"double"},"estimatedTotalTokens":{"type":"number","format":"double"},"estimatedUtilizationPercent":{"type":"number","format":"double"}},"required":["categories","estimatedTotalTokens"],"title":"DispatchSseEventOneOf14EstimatedContextBreakdown"},"DispatchSseEventOneOf14Tokens":{"type":"object","properties":{"input":{"type":"number","format":"double"},"output":{"type":"number","format":"double"}},"required":["input","output"],"title":"DispatchSseEventOneOf14Tokens"},"DispatchSseEventOneOf14Type":{"type":"string","enum":["agent_iteration_complete"],"title":"DispatchSseEventOneOf14Type"},"DispatchSseEvent14":{"type":"object","properties":{"completedAt":{"type":"string"},"cost":{"type":"number","format":"double"},"duration":{"type":"number","format":"double"},"estimatedContextBreakdown":{"$ref":"#/components/schemas/DispatchSseEventOneOf14EstimatedContextBreakdown"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"output":{"type":"string"},"runningTotalCost":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"stopConditionMet":{"type":"boolean"},"tokens":{"$ref":"#/components/schemas/DispatchSseEventOneOf14Tokens"},"toolCallsMade":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf14Type"}},"required":["completedAt","executionId","iteration","seq","stopConditionMet","toolCallsMade","type"],"title":"DispatchSseEvent14"},"DispatchSseEventOneOf15Type":{"type":"string","enum":["agent_reflection"],"title":"DispatchSseEventOneOf15Type"},"DispatchSseEvent15":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"reflection":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf15Type"}},"required":["executionId","iteration","seq","type"],"title":"DispatchSseEvent15"},"DispatchSseEventOneOf16Type":{"type":"string","enum":["agent_skill_loaded"],"title":"DispatchSseEventOneOf16Type"},"DispatchSseEvent16":{"type":"object","properties":{"activatedCapabilities":{"type":"array","items":{"type":"string"}},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"skill":{"type":"string"},"toolCallId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf16Type"}},"required":["activatedCapabilities","executionId","iteration","seq","skill","toolCallId","type"],"title":"DispatchSseEvent16"},"DispatchSseEventOneOf17Outcome":{"type":"string","enum":["pending_approval","auto_published"],"title":"DispatchSseEventOneOf17Outcome"},"DispatchSseEventOneOf17Type":{"type":"string","enum":["agent_skill_proposed"],"title":"DispatchSseEventOneOf17Type"},"DispatchSseEvent17":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"outcome":{"$ref":"#/components/schemas/DispatchSseEventOneOf17Outcome"},"proposalId":{"type":"string"},"seq":{"type":"number","format":"double"},"skill":{"type":"string"},"toolCallId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf17Type"}},"required":["executionId","iteration","outcome","seq","skill","toolCallId","type"],"title":"DispatchSseEvent17"},"DispatchSseEventOneOf18ExternalAgent":{"type":"object","properties":{"contextId":{"type":"string"},"taskId":{"type":"string"}},"title":"DispatchSseEventOneOf18ExternalAgent"},"DispatchSseEventOneOf18StopReason":{"type":"string","enum":["complete","end_turn","max_turns","max_cost","timeout","error"],"title":"DispatchSseEventOneOf18StopReason"},"DispatchSseEventOneOf18TotalTokens":{"type":"object","properties":{"input":{"type":"number","format":"double"},"output":{"type":"number","format":"double"}},"required":["input","output"],"title":"DispatchSseEventOneOf18TotalTokens"},"DispatchSseEventOneOf18Type":{"type":"string","enum":["agent_complete"],"title":"DispatchSseEventOneOf18Type"},"DispatchSseEvent18":{"type":"object","properties":{"agentId":{"type":"string"},"completedAt":{"type":"string"},"duration":{"type":"number","format":"double"},"error":{"type":"string"},"executionId":{"type":"string"},"externalAgent":{"$ref":"#/components/schemas/DispatchSseEventOneOf18ExternalAgent"},"finalOutput":{"type":"string"},"iterations":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"},"stopReason":{"$ref":"#/components/schemas/DispatchSseEventOneOf18StopReason"},"success":{"type":"boolean"},"totalCost":{"type":"number","format":"double"},"totalTokens":{"$ref":"#/components/schemas/DispatchSseEventOneOf18TotalTokens"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf18Type"}},"required":["agentId","completedAt","executionId","iterations","seq","stopReason","success","type"],"title":"DispatchSseEvent18"},"DispatchSseEventOneOf19Error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"object","additionalProperties":{"description":"Any type"}},"message":{"type":"string"}},"required":["code","message"],"title":"DispatchSseEventOneOf19Error"},"DispatchSseEventOneOf19Type":{"type":"string","enum":["agent_error"],"title":"DispatchSseEventOneOf19Type"},"DispatchSseEvent19":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/DispatchSseEventOneOf19Error"},"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"recoverable":{"type":"boolean"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf19Type"}},"required":["error","executionId","recoverable","seq","type"],"title":"DispatchSseEvent19"},"DispatchSseEventOneOf20Type":{"type":"string","enum":["agent_ping"],"title":"DispatchSseEventOneOf20Type"},"DispatchSseEvent20":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"timestamp":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf20Type"}},"required":["executionId","seq","timestamp","type"],"title":"DispatchSseEvent20"},"DispatchSseEventOneOf21ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"DispatchSseEventOneOf21ToolContext"},"DispatchSseEventOneOf21Type":{"type":"string","enum":["flow_start"],"title":"DispatchSseEventOneOf21Type"},"DispatchSseEvent21":{"type":"object","properties":{"executionContext":{"type":"object","additionalProperties":{"description":"Any type"}},"executionId":{"type":"string"},"flowId":{"type":"string"},"flowName":{"type":"string"},"input":{"description":"Any type"},"seq":{"type":"number","format":"double"},"source":{"type":"string"},"startedAt":{"type":"string"},"toolContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf21ToolContext"},"totalSteps":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf21Type"}},"required":["flowId","startedAt","type"],"title":"DispatchSseEvent21"},"DispatchSseEventOneOf22ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"DispatchSseEventOneOf22ToolContext"},"DispatchSseEventOneOf22Type":{"type":"string","enum":["flow_complete"],"title":"DispatchSseEventOneOf22Type"},"DispatchSseEvent22":{"type":"object","properties":{"completedAt":{"type":"string"},"completedSteps":{"type":"number","format":"double"},"duration":{"type":"number","format":"double"},"executionContext":{"type":"object","additionalProperties":{"description":"Any type"}},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"failedSteps":{"type":"number","format":"double"},"finalOutput":{"type":"string"},"flowId":{"type":"string"},"output":{"description":"Any type"},"seq":{"type":"number","format":"double"},"source":{"type":"string"},"success":{"type":"boolean"},"successfulSteps":{"type":"number","format":"double"},"toolContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf22ToolContext"},"totalSteps":{"type":"number","format":"double"},"totalTokensUsed":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf22Type"}},"required":["type"],"title":"DispatchSseEvent22"},"DispatchSseEventOneOf23Error1":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"stepId":{"type":"string"},"stepType":{"type":"string"}},"required":["code","message"],"title":"DispatchSseEventOneOf23Error1"},"DispatchSseEventOneOf23Error":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/DispatchSseEventOneOf23Error1"}],"title":"DispatchSseEventOneOf23Error"},"DispatchSseEventOneOf23ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"DispatchSseEventOneOf23ToolContext"},"DispatchSseEventOneOf23Type":{"type":"string","enum":["flow_error"],"title":"DispatchSseEventOneOf23Type"},"DispatchSseEvent23":{"type":"object","properties":{"code":{"type":"string"},"error":{"$ref":"#/components/schemas/DispatchSseEventOneOf23Error"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"flowId":{"type":"string"},"seq":{"type":"number","format":"double"},"timestamp":{"type":"string"},"toolContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf23ToolContext"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf23Type"},"upgradeUrl":{"type":"string"}},"required":["error","type"],"title":"DispatchSseEvent23"},"DispatchSseEventOneOf24Origin":{"type":"string","enum":["webmcp","sdk"],"title":"DispatchSseEventOneOf24Origin"},"DispatchSseEventOneOf24Type":{"type":"string","enum":["flow_await"],"title":"DispatchSseEventOneOf24Type"},"DispatchSseEvent24":{"type":"object","properties":{"awaitedAt":{"type":"string"},"executionId":{"type":"string"},"flowId":{"type":"string"},"origin":{"$ref":"#/components/schemas/DispatchSseEventOneOf24Origin"},"pageOrigin":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf24Type"}},"required":["awaitedAt","flowId","type"],"title":"DispatchSseEvent24"},"DispatchSseEventOneOf25ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"DispatchSseEventOneOf25ToolContext"},"DispatchSseEventOneOf25Type":{"type":"string","enum":["step_start"],"title":"DispatchSseEventOneOf25Type"},"DispatchSseEvent25":{"type":"object","properties":{"estimatedTokens":{"type":"number","format":"double"},"executionId":{"type":"string"},"id":{"type":"string"},"index":{"type":"number","format":"double"},"name":{"type":"string"},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"stepId":{"type":"string"},"stepName":{"type":"string"},"stepType":{"type":"string"},"toolContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf25ToolContext"},"totalSteps":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf25Type"}},"required":["startedAt","type"],"title":"DispatchSseEvent25"},"DispatchSseEventOneOf26ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"DispatchSseEventOneOf26ToolContext"},"DispatchSseEventOneOf26Type":{"type":"string","enum":["step_delta"],"title":"DispatchSseEventOneOf26Type"},"DispatchSseEvent26":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"id":{"type":"string"},"messageId":{"type":"string"},"partId":{"type":"string"},"seq":{"type":"number","format":"double"},"text":{"type":"string"},"toolContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf26ToolContext"},"toolId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf26Type"}},"required":["type"],"title":"DispatchSseEvent26"},"DispatchSseEventOneOf27ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"DispatchSseEventOneOf27ToolContext"},"DispatchSseEventOneOf27Type":{"type":"string","enum":["step_complete"],"title":"DispatchSseEventOneOf27Type"},"DispatchSseEvent27":{"type":"object","properties":{"completedAt":{"type":"string"},"duration":{"type":"number","format":"double"},"durationMs":{"type":"number","format":"double"},"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"id":{"type":"string"},"index":{"type":"number","format":"double"},"name":{"type":"string"},"output":{"description":"Any type"},"result":{"description":"Any type"},"seq":{"type":"number","format":"double"},"stepId":{"type":"string"},"stepName":{"type":"string"},"stepType":{"type":"string"},"success":{"type":"boolean"},"tokensUsed":{"type":"number","format":"double"},"toolContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf27ToolContext"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf27Type"}},"required":["type"],"title":"DispatchSseEvent27"},"DispatchSseEventOneOf28Type":{"type":"string","enum":["step_error"],"title":"DispatchSseEventOneOf28Type"},"DispatchSseEvent28":{"type":"object","properties":{"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"id":{"type":"string"},"index":{"type":"number","format":"double"},"name":{"type":"string"},"seq":{"type":"number","format":"double"},"stepType":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf28Type"}},"required":["error","type"],"title":"DispatchSseEvent28"},"DispatchSseEventOneOf29Type":{"type":"string","enum":["step_skip"],"title":"DispatchSseEventOneOf29Type"},"DispatchSseEvent29":{"type":"object","properties":{"error":{"type":"string"},"executionId":{"type":"string"},"id":{"type":"string"},"index":{"type":"number","format":"double"},"name":{"type":"string"},"seq":{"type":"number","format":"double"},"skippedAt":{"type":"string"},"stepType":{"type":"string"},"totalSteps":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf29Type"},"when":{"type":"string"}},"required":["id","skippedAt","stepType","totalSteps","type","when"],"title":"DispatchSseEvent29"},"DispatchSseEventOneOf30Type":{"type":"string","enum":["step_await"],"title":"DispatchSseEventOneOf30Type"},"DispatchSseEvent30":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf30Type"}},"required":["type"],"title":"DispatchSseEvent30"},"DispatchSseEventOneOf31AgentContext":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"}},"required":["executionId","iteration","seq"],"title":"DispatchSseEventOneOf31AgentContext"},"DispatchSseEventOneOf31ToolType":{"type":"string","enum":["flow","mcp","builtin","custom","external","advisor","subagent","local"],"title":"DispatchSseEventOneOf31ToolType"},"DispatchSseEventOneOf31Type":{"type":"string","enum":["tool_start"],"title":"DispatchSseEventOneOf31Type"},"DispatchSseEvent31":{"type":"object","properties":{"agentContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf31AgentContext"},"executionId":{"type":"string"},"hiddenParameterNames":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"providerOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"stepId":{"type":"string"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"},"toolType":{"$ref":"#/components/schemas/DispatchSseEventOneOf31ToolType"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf31Type"}},"required":["toolType","type"],"title":"DispatchSseEvent31"},"DispatchSseEventOneOf32Type":{"type":"string","enum":["tool_delta"],"title":"DispatchSseEventOneOf32Type"},"DispatchSseEvent32":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"toolId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf32Type"}},"required":["type"],"title":"DispatchSseEvent32"},"DispatchSseEventOneOf33Type":{"type":"string","enum":["tool_input_delta"],"title":"DispatchSseEventOneOf33Type"},"DispatchSseEvent33":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"stepId":{"type":"string"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf33Type"}},"required":["delta","type"],"title":"DispatchSseEvent33"},"DispatchSseEventOneOf34Type":{"type":"string","enum":["tool_input_complete"],"title":"DispatchSseEventOneOf34Type"},"DispatchSseEvent34":{"type":"object","properties":{"executionId":{"type":"string"},"hiddenParameterNames":{"type":"array","items":{"type":"string"}},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"providerOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"stepId":{"type":"string"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf34Type"}},"required":["parameters","type"],"title":"DispatchSseEvent34"},"DispatchSseEventOneOf35AgentContext":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"}},"required":["executionId","iteration","seq"],"title":"DispatchSseEventOneOf35AgentContext"},"DispatchSseEventOneOf35Type":{"type":"string","enum":["tool_complete"],"title":"DispatchSseEventOneOf35Type"},"DispatchSseEvent35":{"type":"object","properties":{"agentContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf35AgentContext"},"completedAt":{"type":"string"},"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"name":{"type":"string"},"result":{"description":"Any type"},"seq":{"type":"number","format":"double"},"stepId":{"type":"string"},"success":{"type":"boolean"},"toolCallId":{"type":"string"},"toolCost":{"type":"number","format":"double"},"toolId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf35Type"}},"required":["success","type"],"title":"DispatchSseEvent35"},"DispatchSseEventOneOf36AgentContext":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"}},"required":["executionId","iteration","seq"],"title":"DispatchSseEventOneOf36AgentContext"},"DispatchSseEventOneOf36Type":{"type":"string","enum":["tool_error"],"title":"DispatchSseEventOneOf36Type"},"DispatchSseEvent36":{"type":"object","properties":{"agentContext":{"$ref":"#/components/schemas/DispatchSseEventOneOf36AgentContext"},"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"failedAt":{"type":"string"},"name":{"type":"string"},"seq":{"type":"number","format":"double"},"toolId":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf36Type"}},"required":["error","name","toolId","type"],"title":"DispatchSseEvent36"},"DispatchSseEventOneOf37Type":{"type":"string","enum":["chunk"],"title":"DispatchSseEventOneOf37Type"},"DispatchSseEvent37":{"type":"object","properties":{"executionId":{"type":"string"},"id":{"type":"string"},"seq":{"type":"number","format":"double"},"text":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf37Type"}},"required":["id","text","type"],"title":"DispatchSseEvent37"},"DispatchSseEventOneOf38Type":{"type":"string","enum":["text_start"],"title":"DispatchSseEventOneOf38Type"},"DispatchSseEvent38":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf38Type"}},"required":["type"],"title":"DispatchSseEvent38"},"DispatchSseEventOneOf39Type":{"type":"string","enum":["text_end"],"title":"DispatchSseEventOneOf39Type"},"DispatchSseEvent39":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf39Type"}},"required":["type"],"title":"DispatchSseEvent39"},"DispatchSseEventOneOf40Type":{"type":"string","enum":["reason_start"],"title":"DispatchSseEventOneOf40Type"},"DispatchSseEvent40":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf40Type"}},"required":["type"],"title":"DispatchSseEvent40"},"DispatchSseEventOneOf41Type":{"type":"string","enum":["reason_delta"],"title":"DispatchSseEventOneOf41Type"},"DispatchSseEvent41":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf41Type"}},"required":["type"],"title":"DispatchSseEvent41"},"DispatchSseEventOneOf42Type":{"type":"string","enum":["reason_complete"],"title":"DispatchSseEventOneOf42Type"},"DispatchSseEvent42":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf42Type"}},"required":["type"],"title":"DispatchSseEvent42"},"DispatchSseEventOneOf43Type":{"type":"string","enum":["source"],"title":"DispatchSseEventOneOf43Type"},"DispatchSseEvent43":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf43Type"}},"required":["type"],"title":"DispatchSseEvent43"},"DispatchSseEventOneOf44Type":{"type":"string","enum":["fallback_start"],"title":"DispatchSseEventOneOf44Type"},"DispatchSseEvent44":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf44Type"}},"required":["type"],"title":"DispatchSseEvent44"},"DispatchSseEventOneOf45Type":{"type":"string","enum":["fallback_complete"],"title":"DispatchSseEventOneOf45Type"},"DispatchSseEvent45":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf45Type"}},"required":["type"],"title":"DispatchSseEvent45"},"DispatchSseEventOneOf46Type":{"type":"string","enum":["fallback_exhausted"],"title":"DispatchSseEventOneOf46Type"},"DispatchSseEvent46":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf46Type"}},"required":["type"],"title":"DispatchSseEvent46"},"DispatchSseEventOneOf47ArtifactType":{"type":"string","enum":["markdown","component"],"title":"DispatchSseEventOneOf47ArtifactType"},"DispatchSseEventOneOf47Type":{"type":"string","enum":["artifact_start"],"title":"DispatchSseEventOneOf47Type"},"DispatchSseEvent47":{"type":"object","properties":{"artifactType":{"$ref":"#/components/schemas/DispatchSseEventOneOf47ArtifactType"},"component":{"type":"string"},"id":{"type":"string"},"title":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf47Type"}},"required":["artifactType","id","type"],"title":"DispatchSseEvent47"},"DispatchSseEventOneOf48Type":{"type":"string","enum":["artifact_delta"],"title":"DispatchSseEventOneOf48Type"},"DispatchSseEvent48":{"type":"object","properties":{"delta":{"type":"string"},"id":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf48Type"}},"required":["delta","id","type"],"title":"DispatchSseEvent48"},"DispatchSseEventOneOf49Type":{"type":"string","enum":["artifact_update"],"title":"DispatchSseEventOneOf49Type"},"DispatchSseEvent49":{"type":"object","properties":{"component":{"type":"string"},"id":{"type":"string"},"props":{"type":"object","additionalProperties":{"description":"Any type"}},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf49Type"}},"required":["component","id","props","type"],"title":"DispatchSseEvent49"},"DispatchSseEventOneOf50Type":{"type":"string","enum":["artifact_complete"],"title":"DispatchSseEventOneOf50Type"},"DispatchSseEvent50":{"type":"object","properties":{"id":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf50Type"}},"required":["id","type"],"title":"DispatchSseEvent50"},"DispatchSseEventOneOf51ArtifactType":{"type":"string","enum":["markdown","component"],"title":"DispatchSseEventOneOf51ArtifactType"},"DispatchSseEventOneOf51Type":{"type":"string","enum":["artifact"],"title":"DispatchSseEventOneOf51Type"},"DispatchSseEvent51":{"type":"object","properties":{"artifactType":{"$ref":"#/components/schemas/DispatchSseEventOneOf51ArtifactType"},"component":{"type":"string"},"content":{"type":"string"},"id":{"type":"string"},"props":{"type":"object","additionalProperties":{"description":"Any type"}},"title":{"type":"string"},"type":{"$ref":"#/components/schemas/DispatchSseEventOneOf51Type"}},"required":["type"],"title":"DispatchSseEvent51"},"DispatchSSEEvent":{"oneOf":[{"$ref":"#/components/schemas/DispatchSseEvent0"},{"$ref":"#/components/schemas/DispatchSseEvent1"},{"$ref":"#/components/schemas/DispatchSseEvent2"},{"$ref":"#/components/schemas/DispatchSseEvent3"},{"$ref":"#/components/schemas/DispatchSseEvent4"},{"$ref":"#/components/schemas/DispatchSseEvent5"},{"$ref":"#/components/schemas/DispatchSseEvent6"},{"$ref":"#/components/schemas/DispatchSseEvent7"},{"$ref":"#/components/schemas/DispatchSseEvent8"},{"$ref":"#/components/schemas/DispatchSseEvent9"},{"$ref":"#/components/schemas/DispatchSseEvent10"},{"$ref":"#/components/schemas/DispatchSseEvent11"},{"$ref":"#/components/schemas/DispatchSseEvent12"},{"$ref":"#/components/schemas/DispatchSseEvent13"},{"$ref":"#/components/schemas/DispatchSseEvent14"},{"$ref":"#/components/schemas/DispatchSseEvent15"},{"$ref":"#/components/schemas/DispatchSseEvent16"},{"$ref":"#/components/schemas/DispatchSseEvent17"},{"$ref":"#/components/schemas/DispatchSseEvent18"},{"$ref":"#/components/schemas/DispatchSseEvent19"},{"$ref":"#/components/schemas/DispatchSseEvent20"},{"$ref":"#/components/schemas/DispatchSseEvent21"},{"$ref":"#/components/schemas/DispatchSseEvent22"},{"$ref":"#/components/schemas/DispatchSseEvent23"},{"$ref":"#/components/schemas/DispatchSseEvent24"},{"$ref":"#/components/schemas/DispatchSseEvent25"},{"$ref":"#/components/schemas/DispatchSseEvent26"},{"$ref":"#/components/schemas/DispatchSseEvent27"},{"$ref":"#/components/schemas/DispatchSseEvent28"},{"$ref":"#/components/schemas/DispatchSseEvent29"},{"$ref":"#/components/schemas/DispatchSseEvent30"},{"$ref":"#/components/schemas/DispatchSseEvent31"},{"$ref":"#/components/schemas/DispatchSseEvent32"},{"$ref":"#/components/schemas/DispatchSseEvent33"},{"$ref":"#/components/schemas/DispatchSseEvent34"},{"$ref":"#/components/schemas/DispatchSseEvent35"},{"$ref":"#/components/schemas/DispatchSseEvent36"},{"$ref":"#/components/schemas/DispatchSseEvent37"},{"$ref":"#/components/schemas/DispatchSseEvent38"},{"$ref":"#/components/schemas/DispatchSseEvent39"},{"$ref":"#/components/schemas/DispatchSseEvent40"},{"$ref":"#/components/schemas/DispatchSseEvent41"},{"$ref":"#/components/schemas/DispatchSseEvent42"},{"$ref":"#/components/schemas/DispatchSseEvent43"},{"$ref":"#/components/schemas/DispatchSseEvent44"},{"$ref":"#/components/schemas/DispatchSseEvent45"},{"$ref":"#/components/schemas/DispatchSseEvent46"},{"$ref":"#/components/schemas/DispatchSseEvent47"},{"$ref":"#/components/schemas/DispatchSseEvent48"},{"$ref":"#/components/schemas/DispatchSseEvent49"},{"$ref":"#/components/schemas/DispatchSseEvent50"},{"$ref":"#/components/schemas/DispatchSseEvent51"}],"title":"DispatchSSEEvent"},"V1DispatchApprovePostRequestBodyContentApplicationJsonSchemaDecision":{"type":"string","enum":["approved","denied"],"title":"V1DispatchApprovePostRequestBodyContentApplicationJsonSchemaDecision"},"V1DispatchContinuePostRequestBodyContentApplicationJsonSchemaContinuation":{"type":"object","properties":{},"description":"Continuation payload (tool-output or approval)","title":"V1DispatchContinuePostRequestBodyContentApplicationJsonSchemaContinuation"},"V1DispatchResumePostRequestBodyContentApplicationJsonSchemaMessagesItemsRole":{"type":"string","enum":["system","user","assistant"],"title":"V1DispatchResumePostRequestBodyContentApplicationJsonSchemaMessagesItemsRole"},"V1DispatchResumePostRequestBodyContentApplicationJsonSchemaMessagesItems":{"type":"object","properties":{"content":{"description":"Any type"},"role":{"$ref":"#/components/schemas/V1DispatchResumePostRequestBodyContentApplicationJsonSchemaMessagesItemsRole"}},"required":["role"],"title":"V1DispatchResumePostRequestBodyContentApplicationJsonSchemaMessagesItems"},"V1DocsSearchPostResponsesContentApplicationJsonSchemaContentItems":{"type":"object","properties":{"text":{"type":"string"},"type":{"type":"string"}},"required":["type"],"title":"V1DocsSearchPostResponsesContentApplicationJsonSchemaContentItems"},"Documentation_searchDocumentation_Response_200":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/V1DocsSearchPostResponsesContentApplicationJsonSchemaContentItems"}}},"required":["content"],"title":"Documentation_searchDocumentation_Response_200"},"Documentation_getPlatformDocumentation_Response_200":{"type":"object","properties":{"content":{"type":"string"},"mimeType":{"type":"string"}},"required":["content"],"title":"Documentation_getPlatformDocumentation_Response_200"},"Documentation_getBuildInstructions_Response_200":{"type":"object","properties":{"content":{"type":"string"}},"required":["content"],"title":"Documentation_getBuildInstructions_Response_200"},"V1EvalAnalyzeStepsPostResponsesContentApplicationJsonSchemaResultsItemsTermAnalysisItems":{"type":"object","properties":{"occurrenceRate":{"type":"number","format":"double"},"stepsContainingTerm":{"type":"integer"},"term":{"type":"string"},"totalOccurrences":{"type":"integer"}},"required":["occurrenceRate","stepsContainingTerm","term","totalOccurrences"],"title":"V1EvalAnalyzeStepsPostResponsesContentApplicationJsonSchemaResultsItemsTermAnalysisItems"},"V1EvalAnalyzeStepsPostResponsesContentApplicationJsonSchemaResultsItems":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"evalConfig":{"description":"Any type"},"evalName":{"type":"string"},"termAnalysis":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalAnalyzeStepsPostResponsesContentApplicationJsonSchemaResultsItemsTermAnalysisItems"}},"totalStepsAnalyzed":{"type":"integer"}},"required":["batchExecutionId","termAnalysis","totalStepsAnalyzed"],"title":"V1EvalAnalyzeStepsPostResponsesContentApplicationJsonSchemaResultsItems"},"Evals_analyzeStepResults_Response_200":{"type":"object","properties":{"evalGroupId":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalAnalyzeStepsPostResponsesContentApplicationJsonSchemaResultsItems"}},"searchTerms":{"type":"array","items":{"type":"string"}},"stepIds":{"type":"array","items":{"type":"string"}}},"required":["evalGroupId","results","searchTerms","stepIds"],"title":"Evals_analyzeStepResults_Response_200"},"V1EvalBatchesGetResponsesContentApplicationJsonSchemaBatchesItems":{"type":"object","properties":{},"title":"V1EvalBatchesGetResponsesContentApplicationJsonSchemaBatchesItems"},"Evals_listEvalBatches_Response_200":{"type":"object","properties":{"batches":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalBatchesGetResponsesContentApplicationJsonSchemaBatchesItems"}},"count":{"type":"number","format":"double"},"limit":{"type":"number","format":"double"},"offset":{"type":"number","format":"double"}},"required":["batches","count","limit","offset"],"title":"Evals_listEvalBatches_Response_200"},"V1EvalComparePostResponsesContentApplicationJsonSchemaEvalsItemsMetrics":{"type":"object","properties":{"avgCostPerRecord":{"type":"number","format":"double"},"avgDurationPerRecord":{"type":"number","format":"double"},"failedSteps":{"type":"integer"},"successRate":{"type":"number","format":"double"},"successfulSteps":{"type":"integer"},"totalCompletionTokens":{"type":"integer"},"totalCost":{"type":"number","format":"double"},"totalDurationMs":{"type":"number","format":"double"},"totalPromptTokens":{"type":"integer"},"totalSteps":{"type":"integer"}},"required":["avgCostPerRecord","avgDurationPerRecord","failedSteps","successRate","successfulSteps","totalCompletionTokens","totalCost","totalDurationMs","totalPromptTokens","totalSteps"],"title":"V1EvalComparePostResponsesContentApplicationJsonSchemaEvalsItemsMetrics"},"V1EvalComparePostResponsesContentApplicationJsonSchemaEvalsItems":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"evalConfig":{"description":"Any type"},"evalName":{"type":"string"},"metrics":{"$ref":"#/components/schemas/V1EvalComparePostResponsesContentApplicationJsonSchemaEvalsItemsMetrics"}},"required":["batchExecutionId","metrics"],"title":"V1EvalComparePostResponsesContentApplicationJsonSchemaEvalsItems"},"Evals_compareEvals_Response_200":{"type":"object","properties":{"evalGroupId":{"type":"string"},"evals":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalComparePostResponsesContentApplicationJsonSchemaEvalsItems"}}},"required":["evalGroupId","evals"],"title":"Evals_compareEvals_Response_200"},"V1EvalCompareRecordPostResponsesContentApplicationJsonSchemaEvalsItemsStepResultsItems":{"type":"object","properties":{"completionTokens":{"type":["integer","null"]},"durationMs":{"type":["integer","null"]},"error":{"type":"string"},"executedAt":{"type":"string"},"modelUsed":{"type":["string","null"]},"output":{"type":["string","null"]},"promptTokens":{"type":["integer","null"]},"stepId":{"type":"string"},"stepName":{"type":["string","null"]},"stepResultId":{"type":"string"},"stepType":{"type":"string"},"toolCalls":{"type":"array","items":{"description":"Any type"}},"totalCost":{"type":["number","null"],"format":"double"}},"required":["completionTokens","durationMs","executedAt","modelUsed","output","promptTokens","stepId","stepName","stepResultId","stepType","toolCalls","totalCost"],"title":"V1EvalCompareRecordPostResponsesContentApplicationJsonSchemaEvalsItemsStepResultsItems"},"V1EvalCompareRecordPostResponsesContentApplicationJsonSchemaEvalsItems":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"evalConfig":{"description":"Any type"},"evalName":{"type":"string"},"stepResults":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalCompareRecordPostResponsesContentApplicationJsonSchemaEvalsItemsStepResultsItems"}}},"required":["batchExecutionId","stepResults"],"title":"V1EvalCompareRecordPostResponsesContentApplicationJsonSchemaEvalsItems"},"Evals_compareRecordAcrossEvals_Response_200":{"type":"object","properties":{"evalGroupId":{"type":"string"},"evals":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalCompareRecordPostResponsesContentApplicationJsonSchemaEvalsItems"}},"recordId":{"type":"string"}},"required":["evalGroupId","evals","recordId"],"title":"Evals_compareRecordAcrossEvals_Response_200"},"V1EvalGroupGroupIdGetResponsesContentApplicationJsonSchemaBatchesItems":{"type":"object","properties":{},"title":"V1EvalGroupGroupIdGetResponsesContentApplicationJsonSchemaBatchesItems"},"Evals_getEvalGroup_Response_200":{"type":"object","properties":{"batches":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalGroupGroupIdGetResponsesContentApplicationJsonSchemaBatchesItems"}},"evalGroupId":{"type":"string"},"totalEvals":{"type":"number","format":"double"}},"required":["batches","evalGroupId","totalEvals"],"title":"Evals_getEvalGroup_Response_200"},"FlowSseEventOneOf0ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"FlowSseEventOneOf0ToolContext"},"FlowSseEventOneOf0Type":{"type":"string","enum":["flow_start"],"title":"FlowSseEventOneOf0Type"},"FlowSseEvent0":{"type":"object","properties":{"executionContext":{"type":"object","additionalProperties":{"description":"Any type"}},"executionId":{"type":"string"},"flowId":{"type":"string"},"flowName":{"type":"string"},"input":{"description":"Any type"},"seq":{"type":"number","format":"double"},"source":{"type":"string"},"startedAt":{"type":"string"},"toolContext":{"$ref":"#/components/schemas/FlowSseEventOneOf0ToolContext"},"totalSteps":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf0Type"}},"required":["flowId","startedAt","type"],"title":"FlowSseEvent0"},"FlowSseEventOneOf1ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"FlowSseEventOneOf1ToolContext"},"FlowSseEventOneOf1Type":{"type":"string","enum":["flow_complete"],"title":"FlowSseEventOneOf1Type"},"FlowSseEvent1":{"type":"object","properties":{"completedAt":{"type":"string"},"completedSteps":{"type":"number","format":"double"},"duration":{"type":"number","format":"double"},"executionContext":{"type":"object","additionalProperties":{"description":"Any type"}},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"failedSteps":{"type":"number","format":"double"},"finalOutput":{"type":"string"},"flowId":{"type":"string"},"output":{"description":"Any type"},"seq":{"type":"number","format":"double"},"source":{"type":"string"},"success":{"type":"boolean"},"successfulSteps":{"type":"number","format":"double"},"toolContext":{"$ref":"#/components/schemas/FlowSseEventOneOf1ToolContext"},"totalSteps":{"type":"number","format":"double"},"totalTokensUsed":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf1Type"}},"required":["type"],"title":"FlowSseEvent1"},"FlowSseEventOneOf2Error1":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"stepId":{"type":"string"},"stepType":{"type":"string"}},"required":["code","message"],"title":"FlowSseEventOneOf2Error1"},"FlowSseEventOneOf2Error":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/FlowSseEventOneOf2Error1"}],"title":"FlowSseEventOneOf2Error"},"FlowSseEventOneOf2ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"FlowSseEventOneOf2ToolContext"},"FlowSseEventOneOf2Type":{"type":"string","enum":["flow_error"],"title":"FlowSseEventOneOf2Type"},"FlowSseEvent2":{"type":"object","properties":{"code":{"type":"string"},"error":{"$ref":"#/components/schemas/FlowSseEventOneOf2Error"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"flowId":{"type":"string"},"seq":{"type":"number","format":"double"},"timestamp":{"type":"string"},"toolContext":{"$ref":"#/components/schemas/FlowSseEventOneOf2ToolContext"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf2Type"},"upgradeUrl":{"type":"string"}},"required":["error","type"],"title":"FlowSseEvent2"},"FlowSseEventOneOf3Origin":{"type":"string","enum":["webmcp","sdk"],"title":"FlowSseEventOneOf3Origin"},"FlowSseEventOneOf3Type":{"type":"string","enum":["flow_await"],"title":"FlowSseEventOneOf3Type"},"FlowSseEvent3":{"type":"object","properties":{"awaitedAt":{"type":"string"},"executionId":{"type":"string"},"flowId":{"type":"string"},"origin":{"$ref":"#/components/schemas/FlowSseEventOneOf3Origin"},"pageOrigin":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf3Type"}},"required":["awaitedAt","flowId","type"],"title":"FlowSseEvent3"},"FlowSseEventOneOf4ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"FlowSseEventOneOf4ToolContext"},"FlowSseEventOneOf4Type":{"type":"string","enum":["step_start"],"title":"FlowSseEventOneOf4Type"},"FlowSseEvent4":{"type":"object","properties":{"estimatedTokens":{"type":"number","format":"double"},"executionId":{"type":"string"},"id":{"type":"string"},"index":{"type":"number","format":"double"},"name":{"type":"string"},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"stepId":{"type":"string"},"stepName":{"type":"string"},"stepType":{"type":"string"},"toolContext":{"$ref":"#/components/schemas/FlowSseEventOneOf4ToolContext"},"totalSteps":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf4Type"}},"required":["startedAt","type"],"title":"FlowSseEvent4"},"FlowSseEventOneOf5ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"FlowSseEventOneOf5ToolContext"},"FlowSseEventOneOf5Type":{"type":"string","enum":["step_delta"],"title":"FlowSseEventOneOf5Type"},"FlowSseEvent5":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"id":{"type":"string"},"messageId":{"type":"string"},"partId":{"type":"string"},"seq":{"type":"number","format":"double"},"text":{"type":"string"},"toolContext":{"$ref":"#/components/schemas/FlowSseEventOneOf5ToolContext"},"toolId":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf5Type"}},"required":["type"],"title":"FlowSseEvent5"},"FlowSseEventOneOf6ToolContext":{"type":"object","properties":{"executionId":{"type":"string"},"stepId":{"type":"string"},"toolId":{"type":"string"}},"required":["executionId","stepId","toolId"],"title":"FlowSseEventOneOf6ToolContext"},"FlowSseEventOneOf6Type":{"type":"string","enum":["step_complete"],"title":"FlowSseEventOneOf6Type"},"FlowSseEvent6":{"type":"object","properties":{"completedAt":{"type":"string"},"duration":{"type":"number","format":"double"},"durationMs":{"type":"number","format":"double"},"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"id":{"type":"string"},"index":{"type":"number","format":"double"},"name":{"type":"string"},"output":{"description":"Any type"},"result":{"description":"Any type"},"seq":{"type":"number","format":"double"},"stepId":{"type":"string"},"stepName":{"type":"string"},"stepType":{"type":"string"},"success":{"type":"boolean"},"tokensUsed":{"type":"number","format":"double"},"toolContext":{"$ref":"#/components/schemas/FlowSseEventOneOf6ToolContext"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf6Type"}},"required":["type"],"title":"FlowSseEvent6"},"FlowSseEventOneOf7Type":{"type":"string","enum":["step_error"],"title":"FlowSseEventOneOf7Type"},"FlowSseEvent7":{"type":"object","properties":{"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"id":{"type":"string"},"index":{"type":"number","format":"double"},"name":{"type":"string"},"seq":{"type":"number","format":"double"},"stepType":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf7Type"}},"required":["error","type"],"title":"FlowSseEvent7"},"FlowSseEventOneOf8Type":{"type":"string","enum":["step_skip"],"title":"FlowSseEventOneOf8Type"},"FlowSseEvent8":{"type":"object","properties":{"error":{"type":"string"},"executionId":{"type":"string"},"id":{"type":"string"},"index":{"type":"number","format":"double"},"name":{"type":"string"},"seq":{"type":"number","format":"double"},"skippedAt":{"type":"string"},"stepType":{"type":"string"},"totalSteps":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf8Type"},"when":{"type":"string"}},"required":["id","skippedAt","stepType","totalSteps","type","when"],"title":"FlowSseEvent8"},"FlowSseEventOneOf9Type":{"type":"string","enum":["step_await"],"title":"FlowSseEventOneOf9Type"},"FlowSseEvent9":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf9Type"}},"required":["type"],"title":"FlowSseEvent9"},"FlowSseEventOneOf10AgentContext":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"}},"required":["executionId","iteration","seq"],"title":"FlowSseEventOneOf10AgentContext"},"FlowSseEventOneOf10ToolType":{"type":"string","enum":["flow","mcp","builtin","custom","external","advisor","subagent","local"],"title":"FlowSseEventOneOf10ToolType"},"FlowSseEventOneOf10Type":{"type":"string","enum":["tool_start"],"title":"FlowSseEventOneOf10Type"},"FlowSseEvent10":{"type":"object","properties":{"agentContext":{"$ref":"#/components/schemas/FlowSseEventOneOf10AgentContext"},"executionId":{"type":"string"},"hiddenParameterNames":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"providerOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"startedAt":{"type":"string"},"stepId":{"type":"string"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"},"toolType":{"$ref":"#/components/schemas/FlowSseEventOneOf10ToolType"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf10Type"}},"required":["toolType","type"],"title":"FlowSseEvent10"},"FlowSseEventOneOf11Type":{"type":"string","enum":["tool_delta"],"title":"FlowSseEventOneOf11Type"},"FlowSseEvent11":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"toolId":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf11Type"}},"required":["type"],"title":"FlowSseEvent11"},"FlowSseEventOneOf12Type":{"type":"string","enum":["tool_input_delta"],"title":"FlowSseEventOneOf12Type"},"FlowSseEvent12":{"type":"object","properties":{"delta":{"type":"string"},"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"stepId":{"type":"string"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf12Type"}},"required":["delta","type"],"title":"FlowSseEvent12"},"FlowSseEventOneOf13Type":{"type":"string","enum":["tool_input_complete"],"title":"FlowSseEventOneOf13Type"},"FlowSseEvent13":{"type":"object","properties":{"executionId":{"type":"string"},"hiddenParameterNames":{"type":"array","items":{"type":"string"}},"parameters":{"type":"object","additionalProperties":{"description":"Any type"}},"providerOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"seq":{"type":"number","format":"double"},"stepId":{"type":"string"},"toolCallId":{"type":"string"},"toolId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf13Type"}},"required":["parameters","type"],"title":"FlowSseEvent13"},"FlowSseEventOneOf14AgentContext":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"}},"required":["executionId","iteration","seq"],"title":"FlowSseEventOneOf14AgentContext"},"FlowSseEventOneOf14Type":{"type":"string","enum":["tool_complete"],"title":"FlowSseEventOneOf14Type"},"FlowSseEvent14":{"type":"object","properties":{"agentContext":{"$ref":"#/components/schemas/FlowSseEventOneOf14AgentContext"},"completedAt":{"type":"string"},"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"name":{"type":"string"},"result":{"description":"Any type"},"seq":{"type":"number","format":"double"},"stepId":{"type":"string"},"success":{"type":"boolean"},"toolCallId":{"type":"string"},"toolCost":{"type":"number","format":"double"},"toolId":{"type":"string"},"toolName":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf14Type"}},"required":["success","type"],"title":"FlowSseEvent14"},"FlowSseEventOneOf15AgentContext":{"type":"object","properties":{"executionId":{"type":"string"},"iteration":{"type":"number","format":"double"},"seq":{"type":"number","format":"double"}},"required":["executionId","iteration","seq"],"title":"FlowSseEventOneOf15AgentContext"},"FlowSseEventOneOf15Type":{"type":"string","enum":["tool_error"],"title":"FlowSseEventOneOf15Type"},"FlowSseEvent15":{"type":"object","properties":{"agentContext":{"$ref":"#/components/schemas/FlowSseEventOneOf15AgentContext"},"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"failedAt":{"type":"string"},"name":{"type":"string"},"seq":{"type":"number","format":"double"},"toolId":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf15Type"}},"required":["error","name","toolId","type"],"title":"FlowSseEvent15"},"FlowSseEventOneOf16Type":{"type":"string","enum":["chunk"],"title":"FlowSseEventOneOf16Type"},"FlowSseEvent16":{"type":"object","properties":{"executionId":{"type":"string"},"id":{"type":"string"},"seq":{"type":"number","format":"double"},"text":{"type":"string"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf16Type"}},"required":["id","text","type"],"title":"FlowSseEvent16"},"FlowSseEventOneOf17Type":{"type":"string","enum":["text_start"],"title":"FlowSseEventOneOf17Type"},"FlowSseEvent17":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf17Type"}},"required":["type"],"title":"FlowSseEvent17"},"FlowSseEventOneOf18Type":{"type":"string","enum":["text_end"],"title":"FlowSseEventOneOf18Type"},"FlowSseEvent18":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf18Type"}},"required":["type"],"title":"FlowSseEvent18"},"FlowSseEventOneOf19Type":{"type":"string","enum":["reason_start"],"title":"FlowSseEventOneOf19Type"},"FlowSseEvent19":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf19Type"}},"required":["type"],"title":"FlowSseEvent19"},"FlowSseEventOneOf20Type":{"type":"string","enum":["reason_delta"],"title":"FlowSseEventOneOf20Type"},"FlowSseEvent20":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf20Type"}},"required":["type"],"title":"FlowSseEvent20"},"FlowSseEventOneOf21Type":{"type":"string","enum":["reason_complete"],"title":"FlowSseEventOneOf21Type"},"FlowSseEvent21":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf21Type"}},"required":["type"],"title":"FlowSseEvent21"},"FlowSseEventOneOf22Type":{"type":"string","enum":["source"],"title":"FlowSseEventOneOf22Type"},"FlowSseEvent22":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf22Type"}},"required":["type"],"title":"FlowSseEvent22"},"FlowSseEventOneOf23Type":{"type":"string","enum":["fallback_start"],"title":"FlowSseEventOneOf23Type"},"FlowSseEvent23":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf23Type"}},"required":["type"],"title":"FlowSseEvent23"},"FlowSseEventOneOf24Type":{"type":"string","enum":["fallback_complete"],"title":"FlowSseEventOneOf24Type"},"FlowSseEvent24":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf24Type"}},"required":["type"],"title":"FlowSseEvent24"},"FlowSseEventOneOf25Type":{"type":"string","enum":["fallback_exhausted"],"title":"FlowSseEventOneOf25Type"},"FlowSseEvent25":{"type":"object","properties":{"executionId":{"type":"string"},"seq":{"type":"number","format":"double"},"type":{"$ref":"#/components/schemas/FlowSseEventOneOf25Type"}},"required":["type"],"title":"FlowSseEvent25"},"FlowSSEEvent":{"oneOf":[{"$ref":"#/components/schemas/FlowSseEvent0"},{"$ref":"#/components/schemas/FlowSseEvent1"},{"$ref":"#/components/schemas/FlowSseEvent2"},{"$ref":"#/components/schemas/FlowSseEvent3"},{"$ref":"#/components/schemas/FlowSseEvent4"},{"$ref":"#/components/schemas/FlowSseEvent5"},{"$ref":"#/components/schemas/FlowSseEvent6"},{"$ref":"#/components/schemas/FlowSseEvent7"},{"$ref":"#/components/schemas/FlowSseEvent8"},{"$ref":"#/components/schemas/FlowSseEvent9"},{"$ref":"#/components/schemas/FlowSseEvent10"},{"$ref":"#/components/schemas/FlowSseEvent11"},{"$ref":"#/components/schemas/FlowSseEvent12"},{"$ref":"#/components/schemas/FlowSseEvent13"},{"$ref":"#/components/schemas/FlowSseEvent14"},{"$ref":"#/components/schemas/FlowSseEvent15"},{"$ref":"#/components/schemas/FlowSseEvent16"},{"$ref":"#/components/schemas/FlowSseEvent17"},{"$ref":"#/components/schemas/FlowSseEvent18"},{"$ref":"#/components/schemas/FlowSseEvent19"},{"$ref":"#/components/schemas/FlowSseEvent20"},{"$ref":"#/components/schemas/FlowSseEvent21"},{"$ref":"#/components/schemas/FlowSseEvent22"},{"$ref":"#/components/schemas/FlowSseEvent23"},{"$ref":"#/components/schemas/FlowSseEvent24"},{"$ref":"#/components/schemas/FlowSseEvent25"}],"title":"FlowSSEEvent"},"V1EvalSubmitPostResponsesContentApplicationJsonSchemaOneOf0SubmissionsItems":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"evalName":{"type":"string"},"status":{"type":"string"}},"required":["batchExecutionId","status"],"title":"V1EvalSubmitPostResponsesContentApplicationJsonSchemaOneOf0SubmissionsItems"},"EvalsSubmitEvalResponse2000":{"type":"object","properties":{"evalGroupId":{"type":"string"},"submissions":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalSubmitPostResponsesContentApplicationJsonSchemaOneOf0SubmissionsItems"}},"totalEvals":{"type":"integer"}},"required":["evalGroupId","submissions","totalEvals"],"title":"EvalsSubmitEvalResponse2000"},"EvalsSubmitEvalResponse2001":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"status":{"type":"string"}},"required":["batchExecutionId","status"],"title":"EvalsSubmitEvalResponse2001"},"Evals_submitEval_Response_200":{"oneOf":[{"$ref":"#/components/schemas/EvalsSubmitEvalResponse2000"},{"$ref":"#/components/schemas/EvalsSubmitEvalResponse2001"}],"description":"Eval-group submission (when evalConfigs[] supplied) or a single batch submission.","title":"Evals_submitEval_Response_200"},"V1EvalIdResultsGetResponsesContentApplicationJsonSchemaResultsByRecordItemsToolCallsItems":{"type":"object","properties":{"errorMessage":{"type":["string","null"]},"executedAt":{"type":"string"},"executionTimeMs":{"type":["integer","null"]},"inputParameters":{"description":"Any type"},"model":{"type":["string","null"]},"outputResult":{"description":"Any type"},"status":{"type":"string"},"toolDescription":{"type":["string","null"]},"toolExecutionId":{"type":"string"},"toolId":{"type":["string","null"]},"toolName":{"type":"string"}},"required":["errorMessage","executedAt","executionTimeMs","model","status","toolDescription","toolExecutionId","toolId","toolName"],"title":"V1EvalIdResultsGetResponsesContentApplicationJsonSchemaResultsByRecordItemsToolCallsItems"},"V1EvalIdResultsGetResponsesContentApplicationJsonSchemaResultsByRecordItems":{"type":"object","properties":{"completionTokens":{"type":["integer","null"]},"durationMs":{"type":["integer","null"]},"errorMessage":{"type":["string","null"]},"errorStack":{"type":["string","null"]},"executedAt":{"type":"string"},"executionSessionId":{"type":["string","null"]},"inputVariables":{"description":"Any type"},"messageHistory":{"type":["array","null"],"items":{"description":"Any type"}},"modelUsed":{"type":["string","null"]},"output":{"type":["string","null"]},"promptTokens":{"type":["integer","null"]},"reasoningContent":{"type":["string","null"]},"reasoningTokens":{"type":["integer","null"]},"recordMetadata":{"description":"Any type"},"recordName":{"type":["string","null"]},"resolvedPrompt":{"type":["string","null"]},"retryCount":{"type":["integer","null"]},"stepConfig":{"description":"Any type"},"stepId":{"type":["string","null"]},"stepName":{"type":["string","null"]},"stepResultId":{"type":"string"},"stepType":{"type":"string"},"toolCalls":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalIdResultsGetResponsesContentApplicationJsonSchemaResultsByRecordItemsToolCallsItems"}},"totalCost":{"type":["number","null"],"format":"double"}},"required":["completionTokens","durationMs","errorMessage","errorStack","executedAt","executionSessionId","messageHistory","modelUsed","output","promptTokens","reasoningContent","reasoningTokens","recordName","resolvedPrompt","retryCount","stepId","stepName","stepResultId","stepType","toolCalls","totalCost"],"title":"V1EvalIdResultsGetResponsesContentApplicationJsonSchemaResultsByRecordItems"},"Evals_getEvalResults_Response_200":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"completedAt":{"type":"string"},"evalConfig":{"description":"Any type"},"evalGroupId":{"type":"string"},"evalName":{"type":"string"},"failedRecords":{"type":"integer"},"flowId":{"type":["string","null"]},"processedRecords":{"type":"integer"},"resultsByRecord":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/V1EvalIdResultsGetResponsesContentApplicationJsonSchemaResultsByRecordItems"}}},"startedAt":{"type":"string"},"status":{"type":"string"},"totalRecords":{"type":"integer"}},"required":["batchExecutionId","failedRecords","flowId","processedRecords","resultsByRecord","startedAt","status","totalRecords"],"title":"Evals_getEvalResults_Response_200"},"V1FeedbackGetResponsesContentApplicationJsonSchemaFeedbackItems":{"type":"object","properties":{"comment":{"type":["string","null"]},"createdAt":{"type":"string"},"feedbackType":{"type":"string"},"flowId":{"type":["string","null"]},"id":{"type":"string"},"messageId":{"type":["string","null"]},"messageIndex":{"type":["number","null"],"format":"double"},"messageRole":{"type":["string","null"]},"rating":{"type":["number","null"],"format":"double"},"recordId":{"type":["string","null"]}},"required":["comment","createdAt","feedbackType","flowId","id","messageId","messageIndex","messageRole","rating","recordId"],"title":"V1FeedbackGetResponsesContentApplicationJsonSchemaFeedbackItems"},"V1FeedbackGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"limit":{"type":"integer"},"offset":{"type":"integer"}},"required":["hasMore","limit","offset"],"title":"V1FeedbackGetResponsesContentApplicationJsonSchemaPagination"},"Feedback_listFeedbackWithFilters_Response_200":{"type":"object","properties":{"feedback":{"type":"array","items":{"$ref":"#/components/schemas/V1FeedbackGetResponsesContentApplicationJsonSchemaFeedbackItems"}},"pagination":{"$ref":"#/components/schemas/V1FeedbackGetResponsesContentApplicationJsonSchemaPagination"}},"required":["feedback","pagination"],"title":"Feedback_listFeedbackWithFilters_Response_200"},"Feedback_submitFeedbackOnAMessage_Response_200":{"type":"object","properties":{"feedbackId":{"type":"string"},"message":{"type":"string"},"success":{"type":"boolean"}},"required":["feedbackId","message","success"],"title":"Feedback_submitFeedbackOnAMessage_Response_200"},"V1FeedbackPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1FeedbackPostResponsesContentApplicationJsonSchemaDetailsItems"},"SubmitFeedbackOnAMessageRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1FeedbackPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"SubmitFeedbackOnAMessageRequestBadRequestError"},"V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStatsCsat":{"type":"object","properties":{"average":{"type":"number","format":"double"},"count":{"type":"integer"},"distribution":{"type":"object","additionalProperties":{"type":"integer"}}},"required":["average","count","distribution"],"title":"V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStatsCsat"},"V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStatsNps":{"type":"object","properties":{"count":{"type":"integer"},"detractors":{"type":"integer"},"passives":{"type":"integer"},"promoters":{"type":"integer"},"score":{"type":"integer"}},"required":["count","detractors","passives","promoters","score"],"title":"V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStatsNps"},"V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStats":{"type":"object","properties":{"copies":{"type":"integer"},"csat":{"$ref":"#/components/schemas/V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStatsCsat"},"downvotes":{"type":"integer"},"netScore":{"type":"integer"},"nps":{"$ref":"#/components/schemas/V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStatsNps"},"total":{"type":"integer"},"upvotes":{"type":"integer"}},"required":["copies","downvotes","netScore","total","upvotes"],"title":"V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStats"},"Feedback_getFeedbackStatistics_Response_200":{"type":"object","properties":{"stats":{"$ref":"#/components/schemas/V1FeedbackStatsGetResponsesContentApplicationJsonSchemaStats"}},"required":["stats"],"title":"Feedback_getFeedbackStatistics_Response_200"},"V1FeedbackIdGetResponsesContentApplicationJsonSchemaFeedback":{"type":"object","properties":{"clientTokenId":{"type":["string","null"]},"comment":{"type":["string","null"]},"createdAt":{"type":"string"},"feedbackType":{"type":"string"},"flowId":{"type":["string","null"]},"id":{"type":"string"},"messageId":{"type":["string","null"]},"messageIndex":{"type":["number","null"],"format":"double"},"messageRole":{"type":["string","null"]},"metadata":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"rating":{"type":["number","null"],"format":"double"},"recordId":{"type":["string","null"]},"sessionId":{"type":["string","null"]}},"required":["clientTokenId","comment","createdAt","feedbackType","flowId","id","messageId","messageIndex","messageRole","metadata","rating","recordId","sessionId"],"title":"V1FeedbackIdGetResponsesContentApplicationJsonSchemaFeedback"},"Feedback_getSpecificFeedbackRecord_Response_200":{"type":"object","properties":{"feedback":{"$ref":"#/components/schemas/V1FeedbackIdGetResponsesContentApplicationJsonSchemaFeedback"}},"required":["feedback"],"title":"Feedback_getSpecificFeedbackRecord_Response_200"},"Feedback_deleteFeedbackRecord_Response_200":{"type":"object","properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["message","success"],"title":"Feedback_deleteFeedbackRecord_Response_200"},"V1FlowStepsFlowFlowIdGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"description":"Any type"},"enabled":{"type":"boolean"},"flowId":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"type":{"type":"string"},"updatedAt":{"description":"Any type"},"userId":{"type":"string"},"when":{"type":"string"}},"required":["config","createdAt","enabled","flowId","id","order","type","updatedAt","userId"],"title":"V1FlowStepsFlowFlowIdGetResponsesContentApplicationJsonSchemaDataItems"},"Flow Steps_getAllFlowStepsForAFlow_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowStepsFlowFlowIdGetResponsesContentApplicationJsonSchemaDataItems"}},"flowId":{"type":"string"},"flowName":{"type":"string"}},"required":["data","flowId","flowName"],"title":"Flow Steps_getAllFlowStepsForAFlow_Response_200"},"V1FlowVersionsFlowIdGetParametersType":{"type":"string","enum":["published","draft","test","virtual"],"title":"V1FlowVersionsFlowIdGetParametersType"},"V1FlowVersionsFlowIdGetResponsesContentApplicationJsonSchemaVersionsItems":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"label":{"type":["string","null"]},"notes":{"type":["string","null"]},"stepCount":{"type":"integer"},"stepSummary":{"type":["string","null"]},"versionNumber":{"type":"integer"},"versionType":{"type":"string"}},"required":["createdAt","id","label","notes","stepCount","stepSummary","versionNumber","versionType"],"title":"V1FlowVersionsFlowIdGetResponsesContentApplicationJsonSchemaVersionsItems"},"Flow Versions_listVersionsForAFlow_Response_200":{"type":"object","properties":{"flowId":{"type":"string"},"publishedVersionId":{"type":["string","null"]},"versions":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowVersionsFlowIdGetResponsesContentApplicationJsonSchemaVersionsItems"}}},"required":["flowId","publishedVersionId","versions"],"title":"Flow Versions_listVersionsForAFlow_Response_200"},"V1FlowVersionsFlowIdGetResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1FlowVersionsFlowIdGetResponsesContentApplicationJsonSchemaDetailsItems"},"ListVersionsForAFlowRequestInternalServerError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowVersionsFlowIdGetResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"message":{"type":"string"}},"required":["error"],"title":"ListVersionsForAFlowRequestInternalServerError"},"Flow Versions_publishASpecificFlowVersion_Response_200":{"type":"object","properties":{"flowId":{"type":"string"},"message":{"type":"string"},"success":{"type":"boolean"},"versionId":{"type":"string"}},"required":["flowId","message","success","versionId"],"title":"Flow Versions_publishASpecificFlowVersion_Response_200"},"V1FlowVersionsFlowIdPublishPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1FlowVersionsFlowIdPublishPostResponsesContentApplicationJsonSchemaDetailsItems"},"PublishASpecificFlowVersionRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowVersionsFlowIdPublishPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"PublishASpecificFlowVersionRequestBadRequestError"},"PublishASpecificFlowVersionRequestInternalServerError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowVersionsFlowIdPublishPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"message":{"type":"string"}},"required":["error"],"title":"PublishASpecificFlowVersionRequestInternalServerError"},"Flow Versions_getThePublishedVersionForAFlow_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"flowConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"flowId":{"type":"string"},"id":{"type":"string"},"label":{"type":["string","null"]},"notes":{"type":["string","null"]},"versionNumber":{"type":"integer"},"versionType":{"type":"string"}},"required":["createdAt","flowConfig","flowId","id","label","notes","versionNumber","versionType"],"title":"Flow Versions_getThePublishedVersionForAFlow_Response_200"},"V1FlowVersionsFlowIdPublishedGetResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1FlowVersionsFlowIdPublishedGetResponsesContentApplicationJsonSchemaDetailsItems"},"GetThePublishedVersionForAFlowRequestInternalServerError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowVersionsFlowIdPublishedGetResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"message":{"type":"string"}},"required":["error"],"title":"GetThePublishedVersionForAFlowRequestInternalServerError"},"Flow Versions_getASpecificFlowVersion_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"flowConfig":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"flowId":{"type":"string"},"id":{"type":"string"},"label":{"type":["string","null"]},"notes":{"type":["string","null"]},"versionNumber":{"type":"integer"},"versionType":{"type":"string"}},"required":["createdAt","flowConfig","flowId","id","label","notes","versionNumber","versionType"],"title":"Flow Versions_getASpecificFlowVersion_Response_200"},"V1FlowVersionsFlowIdVersionIdGetResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1FlowVersionsFlowIdVersionIdGetResponsesContentApplicationJsonSchemaDetailsItems"},"GetASpecificFlowVersionRequestInternalServerError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowVersionsFlowIdVersionIdGetResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"message":{"type":"string"}},"required":["error"],"title":"GetASpecificFlowVersionRequestInternalServerError"},"V1FlowsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"lastRunAt":{"type":["string","null"]},"name":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","id","lastRunAt","name","updatedAt"],"title":"V1FlowsGetResponsesContentApplicationJsonSchemaDataItems"},"Flows_listFlows_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Flows_listFlows_Response_200"},"V1FlowsPostRequestBodyContentApplicationJsonSchemaFlowStepsItemsType":{"type":"string","enum":["prompt","crawl","fetch-url","retrieve-record","fetch-github","api-call","transform-data","template","conditional","set-variable","upsert-record","send-email","send-text","send-event","send-stream","update-record","search","generate-embedding","vector-search","tool-call","wait-until","paginate-api","store-vector","execute-agent","store-asset","generate-pdf","save-memory","recall-memory","memory-summary"],"title":"V1FlowsPostRequestBodyContentApplicationJsonSchemaFlowStepsItemsType"},"V1FlowsPostRequestBodyContentApplicationJsonSchemaFlowStepsItems":{"type":"object","properties":{"config":{"description":"Any type"},"enabled":{"type":"boolean","default":true},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"type":{"$ref":"#/components/schemas/V1FlowsPostRequestBodyContentApplicationJsonSchemaFlowStepsItemsType"},"when":{"type":"string"}},"required":["name","type"],"title":"V1FlowsPostRequestBodyContentApplicationJsonSchemaFlowStepsItems"},"V1FlowsPostRequestBodyContentApplicationJsonSchemaStepsItemsType":{"type":"string","enum":["prompt","crawl","fetch-url","retrieve-record","fetch-github","api-call","transform-data","template","conditional","set-variable","upsert-record","send-email","send-text","send-event","send-stream","update-record","search","generate-embedding","vector-search","tool-call","wait-until","paginate-api","store-vector","execute-agent","store-asset","generate-pdf","save-memory","recall-memory","memory-summary"],"title":"V1FlowsPostRequestBodyContentApplicationJsonSchemaStepsItemsType"},"V1FlowsPostRequestBodyContentApplicationJsonSchemaStepsItems":{"type":"object","properties":{"config":{"description":"Any type"},"enabled":{"type":"boolean","default":true},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"type":{"$ref":"#/components/schemas/V1FlowsPostRequestBodyContentApplicationJsonSchemaStepsItemsType"},"when":{"type":"string"}},"required":["name","type"],"title":"V1FlowsPostRequestBodyContentApplicationJsonSchemaStepsItems"},"V1FlowsPostResponsesContentApplicationJsonSchemaFlowStepsItems":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"type":{"type":"string"}},"required":["id","type"],"title":"V1FlowsPostResponsesContentApplicationJsonSchemaFlowStepsItems"},"Flows_createFlow_Response_201":{"type":"object","properties":{"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"flowSteps":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsPostResponsesContentApplicationJsonSchemaFlowStepsItems"}},"id":{"type":"string"},"lastRunAt":{"type":["string","null"]},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"sampleMetadata":{"type":"object","additionalProperties":{"description":"Any type"}},"stepCount":{"type":"integer"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","flowSteps","id","name","organizationId","updatedAt","userId"],"title":"Flows_createFlow_Response_201"},"V1FlowsIdGetResponsesContentApplicationJsonSchemaFlowStepsItems":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"type":{"type":"string"}},"required":["id","type"],"title":"V1FlowsIdGetResponsesContentApplicationJsonSchemaFlowStepsItems"},"Flows_getFlowDetails_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"flowSteps":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsIdGetResponsesContentApplicationJsonSchemaFlowStepsItems"}},"id":{"type":"string"},"lastRunAt":{"type":["string","null"]},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"sampleMetadata":{"type":"object","additionalProperties":{"description":"Any type"}},"stepCount":{"type":"integer"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","flowSteps","id","name","organizationId","updatedAt","userId"],"title":"Flows_getFlowDetails_Response_200"},"V1FlowsIdPutRequestBodyContentApplicationJsonSchemaFlowStepsItemsType":{"type":"string","enum":["prompt","crawl","fetch-url","retrieve-record","fetch-github","api-call","transform-data","template","conditional","set-variable","upsert-record","send-email","send-text","send-event","send-stream","update-record","search","generate-embedding","vector-search","tool-call","wait-until","paginate-api","store-vector","execute-agent","store-asset","generate-pdf","save-memory","recall-memory","memory-summary"],"title":"V1FlowsIdPutRequestBodyContentApplicationJsonSchemaFlowStepsItemsType"},"V1FlowsIdPutRequestBodyContentApplicationJsonSchemaFlowStepsItems":{"type":"object","properties":{"config":{"description":"Any type"},"enabled":{"type":"boolean","default":true},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"type":{"$ref":"#/components/schemas/V1FlowsIdPutRequestBodyContentApplicationJsonSchemaFlowStepsItemsType"},"when":{"type":"string"}},"required":["name","type"],"title":"V1FlowsIdPutRequestBodyContentApplicationJsonSchemaFlowStepsItems"},"V1FlowsIdPutResponsesContentApplicationJsonSchemaFlowStepsItems":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"description":"Any type"}},"enabled":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"type":{"type":"string"}},"required":["id","type"],"title":"V1FlowsIdPutResponsesContentApplicationJsonSchemaFlowStepsItems"},"Flows_updateFlow_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"draftVersionId":{"type":"string"},"flowSteps":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsIdPutResponsesContentApplicationJsonSchemaFlowStepsItems"}},"id":{"type":"string"},"lastRunAt":{"type":["string","null"]},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"sampleMetadata":{"type":"object","additionalProperties":{"description":"Any type"}},"stepCount":{"type":"integer"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","draftVersionId","flowSteps","id","name","organizationId","updatedAt","userId"],"title":"Flows_updateFlow_Response_200"},"Flows_exportFlowForRuntimeLimitedPreview_Response_200":{"type":"object","properties":{"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}}},"required":["id","name","steps"],"title":"Flows_exportFlowForRuntimeLimitedPreview_Response_200"},"Flows_publishFlow_Response_200":{"type":"object","properties":{"message":{"type":"string"},"publishedVersionId":{"type":"string"},"success":{"type":"boolean"}},"required":["message","publishedVersionId","success"],"title":"Flows_publishFlow_Response_200"},"V1FlowsIdRunOnRecordTypePostResponsesContentApplicationJsonSchemaResultsItems":{"type":"object","properties":{"contextSteps":{"type":"integer"},"error":{"type":"string"},"executionId":{"type":"string"},"executionTime":{"type":"number","format":"double"},"promptsExecuted":{"type":"integer"},"recordId":{"type":"string"},"recordName":{"type":["string","null"]},"success":{"type":"boolean"}},"required":["recordId","recordName","success"],"title":"V1FlowsIdRunOnRecordTypePostResponsesContentApplicationJsonSchemaResultsItems"},"V1FlowsIdRunOnRecordTypePostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["scheduled"],"title":"V1FlowsIdRunOnRecordTypePostResponsesContentApplicationJsonSchemaStatus"},"Flows_runFlowOnRecordsOfAType_Response_200":{"type":"object","properties":{"batchId":{"type":"string"},"completedAt":{"type":"string"},"executedImmediately":{"type":"boolean"},"failureCount":{"type":"integer"},"flowId":{"type":"string"},"recordCount":{"type":"integer"},"recordType":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsIdRunOnRecordTypePostResponsesContentApplicationJsonSchemaResultsItems"}},"status":{"$ref":"#/components/schemas/V1FlowsIdRunOnRecordTypePostResponsesContentApplicationJsonSchemaStatus"},"success":{"type":"boolean"},"successCount":{"type":"integer"}},"required":["batchId","completedAt","executedImmediately","failureCount","flowId","recordCount","recordType","results","status","success","successCount"],"title":"Flows_runFlowOnRecordsOfAType_Response_200"},"V1FlowsIdStepResultsGetParametersSortOrder":{"type":"string","enum":["asc","desc"],"title":"V1FlowsIdStepResultsGetParametersSortOrder"},"V1FlowsIdStepResultsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"batchExecutionId":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"completionTokens":{"type":["integer","null"]},"createdAt":{"type":"string"},"durationMs":{"type":["integer","null"]},"errorMessage":{"type":["string","null"]},"estimatedCost":{"type":["string","null"]},"executionSessionId":{"type":["string","null"]},"flowId":{"type":["string","null"]},"flowVersionId":{"type":["string","null"]},"id":{"type":"string"},"inputVariables":{"description":"Any type"},"modelUsed":{"type":["string","null"]},"order":{"type":["integer","null"]},"organizationId":{"type":["string","null"]},"outputPreview":{"type":["string","null"]},"promptTokens":{"type":["integer","null"]},"recordId":{"type":["string","null"]},"recordMetadata":{"description":"Any type"},"recordName":{"type":["string","null"]},"resolvedPrompt":{"type":["string","null"]},"retryCount":{"type":["integer","null"]},"startedAt":{"type":["string","null"]},"status":{"type":"string"},"stepConfig":{"description":"Any type"},"stepId":{"type":["string","null"]},"stepName":{"type":"string"},"stepType":{"type":"string"},"totalTokens":{"type":["integer","null"]},"userId":{"type":"string"}},"required":["batchExecutionId","completedAt","createdAt","durationMs","executionSessionId","flowId","flowVersionId","id","order","organizationId","outputPreview","recordId","recordName","startedAt","status","stepId","stepName","stepType","userId"],"title":"V1FlowsIdStepResultsGetResponsesContentApplicationJsonSchemaDataItems"},"V1FlowsIdStepResultsGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"limit":{"type":"integer"},"offset":{"type":"integer"},"returned":{"type":"integer"}},"required":["hasMore","limit","offset","returned"],"title":"V1FlowsIdStepResultsGetResponsesContentApplicationJsonSchemaPagination"},"Flows_listFlowStepResults_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1FlowsIdStepResultsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/V1FlowsIdStepResultsGetResponsesContentApplicationJsonSchemaPagination"}},"required":["data","pagination"],"title":"Flows_listFlowStepResults_Response_200"},"V1IntegrationConfigsGetResponsesContentApplicationJsonSchemaEmail":{"type":"object","properties":{"canUseCustomSender":{"type":"boolean"},"customSenderProviders":{"type":"array","items":{"type":"string"}}},"required":["canUseCustomSender","customSenderProviders"],"title":"V1IntegrationConfigsGetResponsesContentApplicationJsonSchemaEmail"},"Integration Configs_listIntegrationConfigs_Response_200":{"type":"object","properties":{"daytona":{"type":"boolean"},"elevenlabs":{"type":"boolean"},"email":{"$ref":"#/components/schemas/V1IntegrationConfigsGetResponsesContentApplicationJsonSchemaEmail"},"exa":{"type":"boolean"},"firecrawl":{"type":"boolean"},"posthog":{"type":"boolean"},"resend":{"type":"boolean"}},"required":["daytona","elevenlabs","email","exa","firecrawl","posthog","resend"],"title":"Integration Configs_listIntegrationConfigs_Response_200"},"Integration Configs_getIntegrationConfigStatus_Response_200":{"type":"object","properties":{"configured":{"type":"boolean"}},"required":["configured"],"title":"Integration Configs_getIntegrationConfigStatus_Response_200"},"Integration Configs_createOrUpdateAnIntegrationConfig_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Integration Configs_createOrUpdateAnIntegrationConfig_Response_200"},"Integration Configs_deleteAnIntegrationConfig_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Integration Configs_deleteAnIntegrationConfig_Response_200"},"V1IntegrationsGetResponsesContentApplicationJsonSchemaIntegrationsItems":{"type":"object","properties":{"category":{"type":"string"},"description":{"type":"string"},"documentationUrl":{"type":"string"},"icon":{"type":"string"},"id":{"type":"string"},"isConfigured":{"type":"boolean"},"missingCredentials":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"requiredCredentials":{"type":"array","items":{"type":"string"}},"toolCount":{"type":"number","format":"double"}},"required":["category","description","id","isConfigured","missingCredentials","name","requiredCredentials","toolCount"],"title":"V1IntegrationsGetResponsesContentApplicationJsonSchemaIntegrationsItems"},"Integrations_listIntegrations_Response_200":{"type":"object","properties":{"integrations":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsGetResponsesContentApplicationJsonSchemaIntegrationsItems"}},"total":{"type":"number","format":"double"}},"required":["integrations","total"],"title":"Integrations_listIntegrations_Response_200"},"V1IntegrationsPostRequestBodyContentApplicationJsonSchemaProvider":{"type":"string","enum":["slack","telegram"],"title":"V1IntegrationsPostRequestBodyContentApplicationJsonSchemaProvider"},"Integrations_reserveANewIntegration_Response_201":{"type":"object","properties":{"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"id":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string"}},"required":["createdAt","expiresAt","id","provider","status"],"title":"Integrations_reserveANewIntegration_Response_201"},"V1IntegrationsCategoryCategoryGetResponsesContentApplicationJsonSchemaIntegrationsItems":{"type":"object","properties":{"category":{"type":"string"},"description":{"type":"string"},"documentationUrl":{"type":"string"},"icon":{"type":"string"},"id":{"type":"string"},"isConfigured":{"type":"boolean"},"missingCredentials":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"requiredCredentials":{"type":"array","items":{"type":"string"}},"toolCount":{"type":"number","format":"double"}},"required":["category","description","id","isConfigured","missingCredentials","name","requiredCredentials","toolCount"],"title":"V1IntegrationsCategoryCategoryGetResponsesContentApplicationJsonSchemaIntegrationsItems"},"Integrations_listIntegrationsByCategory_Response_200":{"type":"object","properties":{"integrations":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsCategoryCategoryGetResponsesContentApplicationJsonSchemaIntegrationsItems"}},"total":{"type":"number","format":"double"}},"required":["integrations","total"],"title":"Integrations_listIntegrationsByCategory_Response_200"},"V1IntegrationsCredentialsStatusGetResponsesContentApplicationJsonSchemaIntegrationsItemsEnvironments":{"type":"object","properties":{"all":{"type":"boolean"},"development":{"type":"boolean"},"production":{"type":"boolean"}},"required":["all","development","production"],"title":"V1IntegrationsCredentialsStatusGetResponsesContentApplicationJsonSchemaIntegrationsItemsEnvironments"},"V1IntegrationsCredentialsStatusGetResponsesContentApplicationJsonSchemaIntegrationsItems":{"type":"object","properties":{"description":{"type":"string"},"documentationUrl":{"type":"string"},"environments":{"$ref":"#/components/schemas/V1IntegrationsCredentialsStatusGetResponsesContentApplicationJsonSchemaIntegrationsItemsEnvironments"},"hasPlatformKey":{"type":"boolean"},"hasUserKey":{"type":"boolean"},"id":{"type":"string"},"isConfigured":{"type":"boolean"},"name":{"type":"string"}},"required":["description","environments","id","isConfigured","name"],"title":"V1IntegrationsCredentialsStatusGetResponsesContentApplicationJsonSchemaIntegrationsItems"},"Integrations_getIntegrationCredentialStatus_Response_200":{"type":"object","properties":{"integrations":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsCredentialsStatusGetResponsesContentApplicationJsonSchemaIntegrationsItems"}}},"required":["integrations"],"title":"Integrations_getIntegrationCredentialStatus_Response_200"},"Integrations_installSlackIntegration_Response_200":{"type":"object","properties":{"created":{"type":"boolean"},"integrationId":{"type":"string"}},"required":["created","integrationId"],"title":"Integrations_installSlackIntegration_Response_200"},"Integrations_rotateSlackCredentials_Response_200":{"type":"object","properties":{"appId":{"type":"string"},"botUserId":{"type":"string"},"integrationId":{"type":"string"},"teamId":{"type":"string"},"teamName":{"type":"string"}},"required":["integrationId"],"title":"Integrations_rotateSlackCredentials_Response_200"},"Integrations_installTelegramIntegration_Response_200":{"type":"object","properties":{"created":{"type":"boolean"},"integrationId":{"type":"string"}},"required":["created","integrationId"],"title":"Integrations_installTelegramIntegration_Response_200"},"Integrations_checkManagedTelegramBotAvailability_Response_200":{"type":"object","properties":{"available":{"type":"boolean"}},"required":["available"],"title":"Integrations_checkManagedTelegramBotAvailability_Response_200"},"V1IntegrationsTelegramManagedInitiatePostRequestBodyContentApplicationJsonSchemaBotCommandsItems":{"type":"object","properties":{"command":{"type":"string"},"description":{"type":"string"}},"required":["command","description"],"title":"V1IntegrationsTelegramManagedInitiatePostRequestBodyContentApplicationJsonSchemaBotCommandsItems"},"Integrations_initiateManagedTelegramBotCreation_Response_201":{"type":"object","properties":{"deepLink":{"type":"string"},"expiresAt":{"type":"string"},"integrationId":{"type":"string"},"requestId":{"type":"string"}},"required":["deepLink","expiresAt","integrationId","requestId"],"title":"Integrations_initiateManagedTelegramBotCreation_Response_201"},"Integrations_rotateManagedTelegramBotToken_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_rotateManagedTelegramBotToken_Response_200"},"Integrations_cancelManagedTelegramBotRequest_Response_200":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"title":"Integrations_cancelManagedTelegramBotRequest_Response_200"},"Integrations_confirmManagedTelegramBotRename_Response_200":{"type":"object","properties":{"ok":{"type":"boolean"},"outcome":{"type":"string"},"result":{"description":"Any type"}},"required":["ok","outcome"],"title":"Integrations_confirmManagedTelegramBotRename_Response_200"},"Integrations_rejectManagedTelegramBotRename_Response_200":{"type":"object","properties":{"ok":{"type":"boolean"},"outcome":{"type":"string"},"result":{"description":"Any type"}},"required":["ok","outcome"],"title":"Integrations_rejectManagedTelegramBotRename_Response_200"},"Integrations_getManagedTelegramBotRequestStatus_Response_200":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"],"title":"Integrations_getManagedTelegramBotRequestStatus_Response_200"},"V1IntegrationsToolsGetResponsesContentApplicationJsonSchemaToolsItems":{"type":"object","properties":{"category":{"type":"string"},"description":{"type":"string"},"integrationId":{"type":"string"},"integrationName":{"type":"string"},"name":{"type":"string"},"toolId":{"type":"string"}},"required":["description","integrationId","integrationName","name","toolId"],"title":"V1IntegrationsToolsGetResponsesContentApplicationJsonSchemaToolsItems"},"Integrations_listConfiguredIntegrationTools_Response_200":{"type":"object","properties":{"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsToolsGetResponsesContentApplicationJsonSchemaToolsItems"}},"total":{"type":"number","format":"double"}},"required":["tools","total"],"title":"Integrations_listConfiguredIntegrationTools_Response_200"},"V1IntegrationsVectorizeGetResponsesContentApplicationJsonSchemaVectorizeConfigsItems":{"type":"object","properties":{"accountId":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"indexName":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"},"updatedAt":{"type":"string"}},"required":["accountId","id","indexName","name"],"title":"V1IntegrationsVectorizeGetResponsesContentApplicationJsonSchemaVectorizeConfigsItems"},"Integrations_listVectorizeConfigurations_Response_200":{"type":"object","properties":{"vectorizeConfigs":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsVectorizeGetResponsesContentApplicationJsonSchemaVectorizeConfigsItems"}}},"required":["vectorizeConfigs"],"title":"Integrations_listVectorizeConfigurations_Response_200"},"V1IntegrationsVectorizePostResponsesContentApplicationJsonSchemaVectorizeConfig":{"type":"object","properties":{"accountId":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"indexName":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"},"updatedAt":{"type":"string"}},"required":["accountId","id","indexName","name"],"title":"V1IntegrationsVectorizePostResponsesContentApplicationJsonSchemaVectorizeConfig"},"Integrations_createVectorizeConfiguration_Response_201":{"type":"object","properties":{"vectorizeConfig":{"$ref":"#/components/schemas/V1IntegrationsVectorizePostResponsesContentApplicationJsonSchemaVectorizeConfig"}},"required":["vectorizeConfig"],"title":"Integrations_createVectorizeConfiguration_Response_201"},"V1IntegrationsVectorizeIndexesCreatePostResponsesContentApplicationJsonSchemaIndex":{"type":"object","properties":{"dimensions":{"type":"number","format":"double"},"metric":{"type":"string"},"name":{"type":"string"},"vectorCount":{"type":"number","format":"double"}},"required":["dimensions","metric","name"],"title":"V1IntegrationsVectorizeIndexesCreatePostResponsesContentApplicationJsonSchemaIndex"},"Integrations_createVectorizeIndex_Response_201":{"type":"object","properties":{"error":{"type":"string"},"index":{"oneOf":[{"$ref":"#/components/schemas/V1IntegrationsVectorizeIndexesCreatePostResponsesContentApplicationJsonSchemaIndex"},{"type":"null"}]},"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_createVectorizeIndex_Response_201"},"V1IntegrationsVectorizeIndexesListPostResponsesContentApplicationJsonSchemaIndexesItems":{"type":"object","properties":{"dimensions":{"type":"number","format":"double"},"metric":{"type":"string"},"name":{"type":"string"},"vectorCount":{"type":"number","format":"double"}},"required":["dimensions","metric","name"],"title":"V1IntegrationsVectorizeIndexesListPostResponsesContentApplicationJsonSchemaIndexesItems"},"Integrations_listVectorizeIndexes_Response_200":{"type":"object","properties":{"error":{"type":"string"},"indexes":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsVectorizeIndexesListPostResponsesContentApplicationJsonSchemaIndexesItems"}},"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_listVectorizeIndexes_Response_200"},"V1IntegrationsVectorizeTestPostResponsesContentApplicationJsonSchemaIndexInfo":{"type":"object","properties":{"dimensions":{"type":"number","format":"double"},"metric":{"type":"string"},"name":{"type":"string"},"vectorCount":{"type":"number","format":"double"}},"required":["dimensions","metric","name"],"title":"V1IntegrationsVectorizeTestPostResponsesContentApplicationJsonSchemaIndexInfo"},"Integrations_testNewVectorizeConfiguration_Response_200":{"type":"object","properties":{"error":{"type":"string"},"indexInfo":{"oneOf":[{"$ref":"#/components/schemas/V1IntegrationsVectorizeTestPostResponsesContentApplicationJsonSchemaIndexInfo"},{"type":"null"}]},"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_testNewVectorizeConfiguration_Response_200"},"V1IntegrationsVectorizeIdGetResponsesContentApplicationJsonSchemaVectorizeConfig":{"type":"object","properties":{"accountId":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"indexName":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"},"updatedAt":{"type":"string"}},"required":["accountId","id","indexName","name"],"title":"V1IntegrationsVectorizeIdGetResponsesContentApplicationJsonSchemaVectorizeConfig"},"Integrations_getVectorizeConfiguration_Response_200":{"type":"object","properties":{"vectorizeConfig":{"$ref":"#/components/schemas/V1IntegrationsVectorizeIdGetResponsesContentApplicationJsonSchemaVectorizeConfig"}},"required":["vectorizeConfig"],"title":"Integrations_getVectorizeConfiguration_Response_200"},"V1IntegrationsVectorizeIdPutResponsesContentApplicationJsonSchemaVectorizeConfig":{"type":"object","properties":{"accountId":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"indexName":{"type":"string"},"name":{"type":"string"},"timeout":{"type":"number","format":"double"},"updatedAt":{"type":"string"}},"required":["accountId","id","indexName","name"],"title":"V1IntegrationsVectorizeIdPutResponsesContentApplicationJsonSchemaVectorizeConfig"},"Integrations_updateVectorizeConfiguration_Response_200":{"type":"object","properties":{"vectorizeConfig":{"$ref":"#/components/schemas/V1IntegrationsVectorizeIdPutResponsesContentApplicationJsonSchemaVectorizeConfig"}},"required":["vectorizeConfig"],"title":"Integrations_updateVectorizeConfiguration_Response_200"},"Integrations_deleteVectorizeConfiguration_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_deleteVectorizeConfiguration_Response_200"},"V1IntegrationsVectorizeIdTestPostResponsesContentApplicationJsonSchemaIndexInfo":{"type":"object","properties":{"dimensions":{"type":"number","format":"double"},"metric":{"type":"string"},"name":{"type":"string"},"vectorCount":{"type":"number","format":"double"}},"required":["dimensions","metric","name"],"title":"V1IntegrationsVectorizeIdTestPostResponsesContentApplicationJsonSchemaIndexInfo"},"Integrations_testSavedVectorizeConfiguration_Response_200":{"type":"object","properties":{"error":{"type":"string"},"indexInfo":{"oneOf":[{"$ref":"#/components/schemas/V1IntegrationsVectorizeIdTestPostResponsesContentApplicationJsonSchemaIndexInfo"},{"type":"null"}]},"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_testSavedVectorizeConfiguration_Response_200"},"V1IntegrationsWeaviateGetResponsesContentApplicationJsonSchemaWeaviateConfigsItemsSettings":{"type":"object","properties":{"defaultClass":{"type":"string"},"generativeModule":{"type":"string"},"vectorizer":{"type":"string"}},"title":"V1IntegrationsWeaviateGetResponsesContentApplicationJsonSchemaWeaviateConfigsItemsSettings"},"V1IntegrationsWeaviateGetResponsesContentApplicationJsonSchemaWeaviateConfigsItems":{"type":"object","properties":{"headers":{"type":"object","additionalProperties":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1IntegrationsWeaviateGetResponsesContentApplicationJsonSchemaWeaviateConfigsItemsSettings"},"url":{"type":"string"}},"required":["id","name","url"],"title":"V1IntegrationsWeaviateGetResponsesContentApplicationJsonSchemaWeaviateConfigsItems"},"Integrations_listWeaviateConfigurations_Response_200":{"type":"object","properties":{"weaviateConfigs":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsWeaviateGetResponsesContentApplicationJsonSchemaWeaviateConfigsItems"}}},"required":["weaviateConfigs"],"title":"Integrations_listWeaviateConfigurations_Response_200"},"V1IntegrationsWeaviatePostRequestBodyContentApplicationJsonSchemaSettings":{"type":"object","properties":{"defaultClass":{"type":"string"},"generativeModule":{"type":"string"},"vectorizer":{"type":"string"}},"title":"V1IntegrationsWeaviatePostRequestBodyContentApplicationJsonSchemaSettings"},"V1IntegrationsWeaviatePostResponsesContentApplicationJsonSchemaWeaviateConfigSettings":{"type":"object","properties":{"defaultClass":{"type":"string"},"generativeModule":{"type":"string"},"vectorizer":{"type":"string"}},"title":"V1IntegrationsWeaviatePostResponsesContentApplicationJsonSchemaWeaviateConfigSettings"},"V1IntegrationsWeaviatePostResponsesContentApplicationJsonSchemaWeaviateConfig":{"type":"object","properties":{"headers":{"type":"object","additionalProperties":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1IntegrationsWeaviatePostResponsesContentApplicationJsonSchemaWeaviateConfigSettings"},"url":{"type":"string"}},"required":["id","name","url"],"title":"V1IntegrationsWeaviatePostResponsesContentApplicationJsonSchemaWeaviateConfig"},"Integrations_createWeaviateConfiguration_Response_201":{"type":"object","properties":{"weaviateConfig":{"$ref":"#/components/schemas/V1IntegrationsWeaviatePostResponsesContentApplicationJsonSchemaWeaviateConfig"}},"required":["weaviateConfig"],"title":"Integrations_createWeaviateConfiguration_Response_201"},"V1IntegrationsWeaviateTestPostRequestBodyContentApplicationJsonSchemaSettings":{"type":"object","properties":{"defaultClass":{"type":"string"},"generativeModule":{"type":"string"},"vectorizer":{"type":"string"}},"title":"V1IntegrationsWeaviateTestPostRequestBodyContentApplicationJsonSchemaSettings"},"V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchemaClassesItems":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"},"properties":{"type":"number","format":"double"},"vectorizer":{"type":"string"}},"required":["properties"],"title":"V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchemaClassesItems"},"V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchema":{"type":"object","properties":{"classes":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchemaClassesItems"}}},"required":["classes"],"title":"V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchema"},"Integrations_testNewWeaviateConfiguration_Response_200":{"type":"object","properties":{"error":{"type":"string"},"schema":{"$ref":"#/components/schemas/V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchema"},"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_testNewWeaviateConfiguration_Response_200"},"TestNewWeaviateConfigurationRequestBadRequestError":{"type":"object","properties":{"error":{"type":"string"},"schema":{"$ref":"#/components/schemas/V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchema"},"success":{"type":"boolean"}},"required":["success"],"title":"TestNewWeaviateConfigurationRequestBadRequestError"},"TestNewWeaviateConfigurationRequestUnauthorizedError":{"type":"object","properties":{"error":{"type":"string"},"schema":{"$ref":"#/components/schemas/V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchema"},"success":{"type":"boolean"}},"required":["success"],"title":"TestNewWeaviateConfigurationRequestUnauthorizedError"},"TestNewWeaviateConfigurationRequestInternalServerError":{"type":"object","properties":{"error":{"type":"string"},"schema":{"$ref":"#/components/schemas/V1IntegrationsWeaviateTestPostResponsesContentApplicationJsonSchemaSchema"},"success":{"type":"boolean"}},"required":["success"],"title":"TestNewWeaviateConfigurationRequestInternalServerError"},"V1IntegrationsWeaviateIdGetResponsesContentApplicationJsonSchemaWeaviateConfigSettings":{"type":"object","properties":{"defaultClass":{"type":"string"},"generativeModule":{"type":"string"},"vectorizer":{"type":"string"}},"title":"V1IntegrationsWeaviateIdGetResponsesContentApplicationJsonSchemaWeaviateConfigSettings"},"V1IntegrationsWeaviateIdGetResponsesContentApplicationJsonSchemaWeaviateConfig":{"type":"object","properties":{"headers":{"type":"object","additionalProperties":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdGetResponsesContentApplicationJsonSchemaWeaviateConfigSettings"},"url":{"type":"string"}},"required":["id","name","url"],"title":"V1IntegrationsWeaviateIdGetResponsesContentApplicationJsonSchemaWeaviateConfig"},"Integrations_getWeaviateConfiguration_Response_200":{"type":"object","properties":{"weaviateConfig":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdGetResponsesContentApplicationJsonSchemaWeaviateConfig"}},"required":["weaviateConfig"],"title":"Integrations_getWeaviateConfiguration_Response_200"},"V1IntegrationsWeaviateIdPutRequestBodyContentApplicationJsonSchemaSettings":{"type":"object","properties":{"defaultClass":{"type":"string"},"generativeModule":{"type":"string"},"vectorizer":{"type":"string"}},"title":"V1IntegrationsWeaviateIdPutRequestBodyContentApplicationJsonSchemaSettings"},"V1IntegrationsWeaviateIdPutResponsesContentApplicationJsonSchemaWeaviateConfigSettings":{"type":"object","properties":{"defaultClass":{"type":"string"},"generativeModule":{"type":"string"},"vectorizer":{"type":"string"}},"title":"V1IntegrationsWeaviateIdPutResponsesContentApplicationJsonSchemaWeaviateConfigSettings"},"V1IntegrationsWeaviateIdPutResponsesContentApplicationJsonSchemaWeaviateConfig":{"type":"object","properties":{"headers":{"type":"object","additionalProperties":{"type":"string"}},"id":{"type":"string"},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdPutResponsesContentApplicationJsonSchemaWeaviateConfigSettings"},"url":{"type":"string"}},"required":["id","name","url"],"title":"V1IntegrationsWeaviateIdPutResponsesContentApplicationJsonSchemaWeaviateConfig"},"Integrations_updateWeaviateConfiguration_Response_200":{"type":"object","properties":{"weaviateConfig":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdPutResponsesContentApplicationJsonSchemaWeaviateConfig"}},"required":["weaviateConfig"],"title":"Integrations_updateWeaviateConfiguration_Response_200"},"Integrations_deleteWeaviateConfiguration_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_deleteWeaviateConfiguration_Response_200"},"V1IntegrationsWeaviateIdClassesPostResponsesContentApplicationJsonSchemaClassesItems":{"type":"object","properties":{"description":{"type":"string"},"dimensions":{"type":"number","format":"double"},"name":{"type":"string"},"propertyCount":{"type":"number","format":"double"},"vectorizer":{"type":"string"}},"required":["propertyCount","vectorizer"],"title":"V1IntegrationsWeaviateIdClassesPostResponsesContentApplicationJsonSchemaClassesItems"},"Integrations_listWeaviateCollections_Response_200":{"type":"object","properties":{"classes":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdClassesPostResponsesContentApplicationJsonSchemaClassesItems"}},"error":{"type":"string"},"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_listWeaviateCollections_Response_200"},"ListWeaviateCollectionsRequestBadRequestError":{"type":"object","properties":{"classes":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdClassesPostResponsesContentApplicationJsonSchemaClassesItems"}},"error":{"type":"string"},"success":{"type":"boolean"}},"required":["success"],"title":"ListWeaviateCollectionsRequestBadRequestError"},"ListWeaviateCollectionsRequestUnauthorizedError":{"type":"object","properties":{"classes":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdClassesPostResponsesContentApplicationJsonSchemaClassesItems"}},"error":{"type":"string"},"success":{"type":"boolean"}},"required":["success"],"title":"ListWeaviateCollectionsRequestUnauthorizedError"},"ListWeaviateCollectionsRequestInternalServerError":{"type":"object","properties":{"classes":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdClassesPostResponsesContentApplicationJsonSchemaClassesItems"}},"error":{"type":"string"},"success":{"type":"boolean"}},"required":["success"],"title":"ListWeaviateCollectionsRequestInternalServerError"},"V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchemaClassesItems":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"},"properties":{"type":"number","format":"double"},"vectorizer":{"type":"string"}},"required":["properties"],"title":"V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchemaClassesItems"},"V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchema":{"type":"object","properties":{"classes":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchemaClassesItems"}}},"required":["classes"],"title":"V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchema"},"Integrations_testWeaviateConnection_Response_200":{"type":"object","properties":{"error":{"type":"string"},"schema":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchema"},"success":{"type":"boolean"}},"required":["success"],"title":"Integrations_testWeaviateConnection_Response_200"},"TestWeaviateConnectionRequestBadRequestError":{"type":"object","properties":{"error":{"type":"string"},"schema":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchema"},"success":{"type":"boolean"}},"required":["success"],"title":"TestWeaviateConnectionRequestBadRequestError"},"TestWeaviateConnectionRequestUnauthorizedError":{"type":"object","properties":{"error":{"type":"string"},"schema":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchema"},"success":{"type":"boolean"}},"required":["success"],"title":"TestWeaviateConnectionRequestUnauthorizedError"},"TestWeaviateConnectionRequestInternalServerError":{"type":"object","properties":{"error":{"type":"string"},"schema":{"$ref":"#/components/schemas/V1IntegrationsWeaviateIdTestPostResponsesContentApplicationJsonSchemaSchema"},"success":{"type":"boolean"}},"required":["success"],"title":"TestWeaviateConnectionRequestInternalServerError"},"V1IntegrationsIntegrationIdGetResponsesContentApplicationJsonSchemaToolsItems":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"},"toolId":{"type":"string"}},"required":["description","name","toolId"],"title":"V1IntegrationsIntegrationIdGetResponsesContentApplicationJsonSchemaToolsItems"},"Integrations_getIntegrationDetails_Response_200":{"type":"object","properties":{"category":{"type":"string"},"description":{"type":"string"},"documentationUrl":{"type":"string"},"icon":{"type":"string"},"id":{"type":"string"},"isConfigured":{"type":"boolean"},"missingCredentials":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"requiredCredentials":{"type":"array","items":{"type":"string"}},"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsIntegrationIdGetResponsesContentApplicationJsonSchemaToolsItems"}}},"required":["category","description","id","isConfigured","missingCredentials","name","requiredCredentials","tools"],"title":"Integrations_getIntegrationDetails_Response_200"},"Integrations_saveIntegrationCredentials_Response_200":{"type":"object","properties":{"environment":{"type":["string","null"]},"integrationId":{"type":"string"},"message":{"type":"string"},"success":{"type":"boolean"}},"required":["environment","integrationId","message","success"],"title":"Integrations_saveIntegrationCredentials_Response_200"},"Integrations_deleteIntegrationCredentials_Response_200":{"type":"object","properties":{"environment":{"type":["string","null"]},"integrationId":{"type":"string"},"message":{"type":"string"},"success":{"type":"boolean"}},"required":["environment","integrationId","message","success"],"title":"Integrations_deleteIntegrationCredentials_Response_200"},"V1IntegrationsIntegrationIdToolsGetResponsesContentApplicationJsonSchemaToolsItems":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"},"parameters":{"description":"Any type"},"toolId":{"type":"string"}},"required":["description","name","toolId"],"title":"V1IntegrationsIntegrationIdToolsGetResponsesContentApplicationJsonSchemaToolsItems"},"Integrations_listToolsForAnIntegration_Response_200":{"type":"object","properties":{"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1IntegrationsIntegrationIdToolsGetResponsesContentApplicationJsonSchemaToolsItems"}},"total":{"type":"number","format":"double"}},"required":["tools","total"],"title":"Integrations_listToolsForAnIntegration_Response_200"},"Integrations_getAnIntegrationTool_Response_200":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"},"parameters":{"description":"Any type"},"toolId":{"type":"string"}},"required":["description","name","toolId"],"title":"Integrations_getAnIntegrationTool_Response_200"},"V1LogsGetResponsesContentApplicationJsonSchemaDataEntriesItems":{"type":"object","properties":{},"title":"V1LogsGetResponsesContentApplicationJsonSchemaDataEntriesItems"},"V1LogsGetResponsesContentApplicationJsonSchemaDataPagination":{"type":"object","properties":{"cursor":{"type":["string","null"]},"hasMore":{"type":"boolean"}},"required":["cursor","hasMore"],"title":"V1LogsGetResponsesContentApplicationJsonSchemaDataPagination"},"V1LogsGetResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/V1LogsGetResponsesContentApplicationJsonSchemaDataEntriesItems"}},"pagination":{"$ref":"#/components/schemas/V1LogsGetResponsesContentApplicationJsonSchemaDataPagination"}},"required":["entries","pagination"],"title":"V1LogsGetResponsesContentApplicationJsonSchemaData"},"Logs_queryCustomerLogs_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1LogsGetResponsesContentApplicationJsonSchemaData"},"success":{"type":"boolean"}},"required":["data","success"],"title":"Logs_queryCustomerLogs_Response_200"},"Logs_debugR2SqlDiagnostics_Response_200":{"type":"object","properties":{"data":{"description":"Any type"},"success":{"type":"boolean"}},"required":["success"],"title":"Logs_debugR2SqlDiagnostics_Response_200"},"V1LogsStatsGetResponsesContentApplicationJsonSchemaDataHistogramItems":{"type":"object","properties":{"bucket":{"type":"string"},"count":{"type":"number","format":"double"},"errors":{"type":"number","format":"double"}},"required":["bucket","count","errors"],"title":"V1LogsStatsGetResponsesContentApplicationJsonSchemaDataHistogramItems"},"V1LogsStatsGetResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"byCategory":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"byLevel":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"byStatus":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"byType":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"histogram":{"type":"array","items":{"$ref":"#/components/schemas/V1LogsStatsGetResponsesContentApplicationJsonSchemaDataHistogramItems"}},"total":{"type":"number","format":"double"}},"required":["byCategory","byLevel","byStatus","byType","histogram","total"],"title":"V1LogsStatsGetResponsesContentApplicationJsonSchemaData"},"Logs_getAggregatedLogStats_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1LogsStatsGetResponsesContentApplicationJsonSchemaData"},"success":{"type":"boolean"}},"required":["data","success"],"title":"Logs_getAggregatedLogStats_Response_200"},"Logs_traceAConversation_Response_200":{"type":"object","properties":{"data":{"description":"Any type"},"success":{"type":"boolean"}},"required":["success"],"title":"Logs_traceAConversation_Response_200"},"Logs_traceAnExecution_Response_200":{"type":"object","properties":{"data":{"description":"Any type"},"success":{"type":"boolean"}},"required":["success"],"title":"Logs_traceAnExecution_Response_200"},"V1MessagingConversationsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"createdAt":{"type":"string"},"externalParticipantId":{"type":["string","null"]},"externalThreadId":{"type":["string","null"]},"id":{"type":"string"},"lastMessageAt":{"type":["string","null"]},"messageCount":{"type":"number","format":"double"},"participantEmail":{"type":["string","null"]},"participantName":{"type":["string","null"]},"status":{"type":"string"},"subject":{"type":["string","null"]},"surfaceId":{"type":"string"},"timezone":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["createdAt","externalParticipantId","externalThreadId","id","lastMessageAt","messageCount","participantEmail","participantName","status","subject","surfaceId","timezone","updatedAt"],"title":"V1MessagingConversationsGetResponsesContentApplicationJsonSchemaDataItems"},"Messaging Conversations_listConversations_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1MessagingConversationsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Messaging Conversations_listConversations_Response_200"},"V1MessagingConversationsPostRequestBodyContentApplicationJsonSchemaContext":{"type":"object","properties":{"recordId":{"type":"string"},"sessionId":{"type":"string"},"variables":{"type":"object","additionalProperties":{"description":"Any type"}}},"title":"V1MessagingConversationsPostRequestBodyContentApplicationJsonSchemaContext"},"V1MessagingConversationsPostRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["open","closed","archived"],"title":"V1MessagingConversationsPostRequestBodyContentApplicationJsonSchemaStatus"},"V1MessagingConversationsPostResponsesContentApplicationJsonSchemaSurface":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"type":{"type":["string","null"]}},"required":["id","name","type"],"title":"V1MessagingConversationsPostResponsesContentApplicationJsonSchemaSurface"},"Messaging Conversations_createConversation_Response_201":{"type":"object","properties":{"context":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"externalParticipantId":{"type":["string","null"]},"externalThreadId":{"type":["string","null"]},"id":{"type":"string"},"lastMessageAt":{"type":["string","null"]},"messageCount":{"type":"number","format":"double"},"participantEmail":{"type":["string","null"]},"participantMetadata":{"type":"object","additionalProperties":{"description":"Any type"}},"participantName":{"type":["string","null"]},"status":{"type":"string"},"subject":{"type":["string","null"]},"surface":{"$ref":"#/components/schemas/V1MessagingConversationsPostResponsesContentApplicationJsonSchemaSurface"},"surfaceId":{"type":"string"},"timezone":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["createdAt","externalParticipantId","externalThreadId","id","lastMessageAt","messageCount","participantEmail","participantName","status","subject","surfaceId","timezone","updatedAt"],"title":"Messaging Conversations_createConversation_Response_201"},"V1MessagingConversationsIdGetResponsesContentApplicationJsonSchemaSurface":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"type":{"type":["string","null"]}},"required":["id","name","type"],"title":"V1MessagingConversationsIdGetResponsesContentApplicationJsonSchemaSurface"},"Messaging Conversations_getConversation_Response_200":{"type":"object","properties":{"context":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"externalParticipantId":{"type":["string","null"]},"externalThreadId":{"type":["string","null"]},"id":{"type":"string"},"lastMessageAt":{"type":["string","null"]},"messageCount":{"type":"number","format":"double"},"participantEmail":{"type":["string","null"]},"participantMetadata":{"type":"object","additionalProperties":{"description":"Any type"}},"participantName":{"type":["string","null"]},"status":{"type":"string"},"subject":{"type":["string","null"]},"surface":{"$ref":"#/components/schemas/V1MessagingConversationsIdGetResponsesContentApplicationJsonSchemaSurface"},"surfaceId":{"type":"string"},"timezone":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["createdAt","externalParticipantId","externalThreadId","id","lastMessageAt","messageCount","participantEmail","participantName","status","subject","surfaceId","timezone","updatedAt"],"title":"Messaging Conversations_getConversation_Response_200"},"V1MessagingConversationsIdPutRequestBodyContentApplicationJsonSchemaContext":{"type":"object","properties":{"recordId":{"type":"string"},"sessionId":{"type":"string"},"variables":{"type":"object","additionalProperties":{"description":"Any type"}}},"title":"V1MessagingConversationsIdPutRequestBodyContentApplicationJsonSchemaContext"},"V1MessagingConversationsIdPutRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["open","closed","archived"],"title":"V1MessagingConversationsIdPutRequestBodyContentApplicationJsonSchemaStatus"},"V1MessagingConversationsIdPutResponsesContentApplicationJsonSchemaSurface":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"type":{"type":["string","null"]}},"required":["id","name","type"],"title":"V1MessagingConversationsIdPutResponsesContentApplicationJsonSchemaSurface"},"Messaging Conversations_updateConversation_Response_200":{"type":"object","properties":{"context":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"externalParticipantId":{"type":["string","null"]},"externalThreadId":{"type":["string","null"]},"id":{"type":"string"},"lastMessageAt":{"type":["string","null"]},"messageCount":{"type":"number","format":"double"},"participantEmail":{"type":["string","null"]},"participantMetadata":{"type":"object","additionalProperties":{"description":"Any type"}},"participantName":{"type":["string","null"]},"status":{"type":"string"},"subject":{"type":["string","null"]},"surface":{"$ref":"#/components/schemas/V1MessagingConversationsIdPutResponsesContentApplicationJsonSchemaSurface"},"surfaceId":{"type":"string"},"timezone":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["createdAt","externalParticipantId","externalThreadId","id","lastMessageAt","messageCount","participantEmail","participantName","status","subject","surfaceId","timezone","updatedAt"],"title":"Messaging Conversations_updateConversation_Response_200"},"Messaging Conversations_deleteConversation_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Messaging Conversations_deleteConversation_Response_200"},"V1MessagingConversationsIdMessagesGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"content":{"type":"string"},"conversationId":{"type":"string"},"createdAt":{"type":"string"},"direction":{"type":["string","null"]},"externalMessageId":{"type":["string","null"]},"flowStepResultId":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"role":{"type":"string"}},"required":["content","conversationId","createdAt","direction","externalMessageId","flowStepResultId","id","metadata","role"],"title":"V1MessagingConversationsIdMessagesGetResponsesContentApplicationJsonSchemaDataItems"},"Messaging Conversations_listMessages_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1MessagingConversationsIdMessagesGetResponsesContentApplicationJsonSchemaDataItems"}},"totalCount":{"type":"number","format":"double"}},"required":["data","totalCount"],"title":"Messaging Conversations_listMessages_Response_200"},"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaDirection":{"type":"string","enum":["inbound","outbound"],"title":"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaDirection"},"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadataAttachmentsItems":{"type":"object","properties":{"contentType":{"type":"string"},"name":{"type":"string"},"size":{"type":"number","format":"double"},"url":{"type":"string"}},"required":["contentType","name","size"],"title":"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadataAttachmentsItems"},"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadataDeliveryStatus":{"type":"string","enum":["pending","sent","delivered","failed","bounced"],"title":"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadataDeliveryStatus"},"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadata":{"type":"object","properties":{"attachments":{"type":"array","items":{"$ref":"#/components/schemas/V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadataAttachmentsItems"}},"deliveryError":{"type":"string"},"deliveryStatus":{"$ref":"#/components/schemas/V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadataDeliveryStatus"},"externalTimestamp":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"title":"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaMetadata"},"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaRole":{"type":"string","enum":["user","assistant","system"],"title":"V1MessagingConversationsIdMessagesPostRequestBodyContentApplicationJsonSchemaRole"},"Messaging Conversations_createMessage_Response_201":{"type":"object","properties":{"content":{"type":"string"},"conversationId":{"type":"string"},"createdAt":{"type":"string"},"direction":{"type":["string","null"]},"externalMessageId":{"type":["string","null"]},"flowStepResultId":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"role":{"type":"string"}},"required":["content","conversationId","createdAt","direction","externalMessageId","flowStepResultId","id","metadata","role"],"title":"Messaging Conversations_createMessage_Response_201"},"Email / IMAP_triggerAnImmediateImapPoll_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Email / IMAP_triggerAnImmediateImapPoll_Response_200"},"V1MessagingImapSurfaceIdPollNowPostResponsesContentApplicationJsonSchemaError":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"title":"V1MessagingImapSurfaceIdPollNowPostResponsesContentApplicationJsonSchemaError"},"TriggerAnImmediateImapPollRequestForbiddenError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdPollNowPostResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"TriggerAnImmediateImapPollRequestForbiddenError"},"Email / IMAP_startImapPolling_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Email / IMAP_startImapPolling_Response_200"},"V1MessagingImapSurfaceIdStartPostResponsesContentApplicationJsonSchemaError":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"title":"V1MessagingImapSurfaceIdStartPostResponsesContentApplicationJsonSchemaError"},"StartImapPollingRequestForbiddenError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdStartPostResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"StartImapPollingRequestForbiddenError"},"V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaConfig":{"type":"object","properties":{"host":{"description":"Any type"},"mailbox":{"description":"Any type"},"pollIntervalMinutes":{"description":"Any type"},"pollingEnabled":{"description":"Any type"},"port":{"description":"Any type"},"provider":{"description":"Any type"},"secure":{"description":"Any type"},"username":{"description":"Any type"}},"title":"V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaConfig"},"V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaPollStatus":{"type":"string","enum":["idle","active","paused","error","polling"],"title":"V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaPollStatus"},"Email / IMAP_getImapPollingStatus_Response_200":{"type":"object","properties":{"active":{"type":"boolean"},"config":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaConfig"},"consecutiveErrors":{"type":"integer"},"lastError":{"type":["string","null"]},"lastPollAt":{"type":["string","null"]},"lastUid":{"type":"integer"},"mailbox":{"type":"string"},"messagesProcessed":{"type":"integer"},"nextPollAt":{"type":["string","null"]},"pollIntervalMinutes":{"type":"integer"},"pollStatus":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaPollStatus"}},"required":["active","config","consecutiveErrors","lastError","lastPollAt","lastUid","mailbox","messagesProcessed","nextPollAt","pollIntervalMinutes","pollStatus"],"title":"Email / IMAP_getImapPollingStatus_Response_200"},"V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaError":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"title":"V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaError"},"GetImapPollingStatusRequestForbiddenError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdStatusGetResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"GetImapPollingStatusRequestForbiddenError"},"Email / IMAP_stopImapPolling_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Email / IMAP_stopImapPolling_Response_200"},"V1MessagingImapSurfaceIdStopPostResponsesContentApplicationJsonSchemaError":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"title":"V1MessagingImapSurfaceIdStopPostResponsesContentApplicationJsonSchemaError"},"StopImapPollingRequestForbiddenError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdStopPostResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"StopImapPollingRequestForbiddenError"},"Email / IMAP_sendATestEmailViaSmtp_Response_200":{"type":"object","properties":{"messageId":{"type":"string"},"success":{"type":"boolean"}},"required":["success"],"title":"Email / IMAP_sendATestEmailViaSmtp_Response_200"},"V1MessagingImapSurfaceIdTestSendPostResponsesContentApplicationJsonSchemaError":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"title":"V1MessagingImapSurfaceIdTestSendPostResponsesContentApplicationJsonSchemaError"},"SendATestEmailViaSmtpRequestForbiddenError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdTestSendPostResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"SendATestEmailViaSmtpRequestForbiddenError"},"V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaImap":{"type":"object","properties":{"error":{"type":"string"},"success":{"type":"boolean"}},"required":["success"],"title":"V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaImap"},"V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaSmtp":{"type":"object","properties":{"error":{"type":"string"},"success":{"type":"boolean"}},"required":["success"],"title":"V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaSmtp"},"Email / IMAP_verifyImapSmtpConnection_Response_200":{"type":"object","properties":{"imap":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaImap"},"smtp":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaSmtp"}},"required":["imap","smtp"],"title":"Email / IMAP_verifyImapSmtpConnection_Response_200"},"V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaError":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"title":"V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaError"},"VerifyImapSmtpConnectionRequestForbiddenError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1MessagingImapSurfaceIdVerifyPostResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"VerifyImapSmtpConnectionRequestForbiddenError"},"Messaging Validations_validateSlackBotTokenDeprecated_Response_200":{"type":"object","properties":{"valid":{"type":"boolean"}},"required":["valid"],"title":"Messaging Validations_validateSlackBotTokenDeprecated_Response_200"},"Messaging Validations_validateTelegramBotTokenDeprecated_Response_200":{"type":"object","properties":{"valid":{"type":"boolean"}},"required":["valid"],"title":"Messaging Validations_validateTelegramBotTokenDeprecated_Response_200"},"Messaging Validations_validateChannelCredentials_Response_200":{"type":"object","properties":{"error":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"valid":{"type":"boolean"}},"required":["valid"],"title":"Messaging Validations_validateChannelCredentials_Response_200"},"ValidateChannelCredentialsRequestBadRequestError":{"type":"object","properties":{"error":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"valid":{"type":"boolean"}},"required":["valid"],"title":"ValidateChannelCredentialsRequestBadRequestError"},"ValidateChannelCredentialsRequestNotFoundError":{"type":"object","properties":{"error":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"valid":{"type":"boolean"}},"required":["valid"],"title":"ValidateChannelCredentialsRequestNotFoundError"},"Messaging Validations_sendEchoMessage_Response_200":{"type":"object","properties":{"error":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"valid":{"type":"boolean"}},"required":["valid"],"title":"Messaging Validations_sendEchoMessage_Response_200"},"SendEchoMessageRequestNotImplementedError":{"type":"object","properties":{"error":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"valid":{"type":"boolean"}},"required":["valid"],"title":"SendEchoMessageRequestNotImplementedError"},"V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus":{"type":"string","enum":["platform","custom","needs_setup"],"title":"V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus"},"V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapabilityGoogleThinkingMode":{"type":"string","enum":["budget","level"],"title":"V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapabilityGoogleThinkingMode"},"V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapability":{"type":"object","properties":{"googleThinkingMode":{"$ref":"#/components/schemas/V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapabilityGoogleThinkingMode"},"provider":{"type":"string"},"supported":{"type":"boolean"},"supportsReasoningSummary":{"type":"boolean"}},"required":["supported"],"title":"V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapability"},"V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"configScope":{"type":"string"},"costPer1kTokens":{"type":"number","format":"double"},"createdAt":{"type":"string"},"creator":{"type":"string"},"creatorDisplayName":{"type":["string","null"]},"displayName":{"type":"string"},"id":{"type":"string"},"inputCostPer1kTokens":{"type":"number","format":"double"},"isDefault":{"type":"boolean"},"isEnabled":{"type":"boolean"},"keyStatus":{"$ref":"#/components/schemas/V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus"},"maxOutputTokens":{"type":"number","format":"double"},"modelId":{"type":"string"},"organizationId":{"type":["string","null"]},"outputCostPer1kTokens":{"type":"number","format":"double"},"provider":{"type":"string"},"providerKeyId":{"type":["string","null"]},"reasoningCapability":{"$ref":"#/components/schemas/V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapability"},"settings":{"type":"object","additionalProperties":{"description":"Any type"}},"supportedResponseFormats":{"type":"array","items":{"type":"string"}},"supportsCustomKey":{"type":"boolean"},"supportsSearch":{"type":"boolean"},"supportsStreaming":{"type":"boolean"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","isDefault","isEnabled","modelId","organizationId","provider","providerKeyId","settings","updatedAt","userId"],"title":"V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItems"},"Model Configs_listModelConfigurations_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelConfigsGetResponsesContentApplicationJsonSchemaDataItems"}},"total":{"type":"integer"}},"required":["data","total"],"title":"Model Configs_listModelConfigurations_Response_200"},"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaProvider":{"type":"string","enum":["model","runtype","mock","modelsocket","mixlayer","openai","anthropic","google","xai","togetherai","vertex","vertex-anthropic","bedrock","tinfoil","vercel","generic-openai"],"title":"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaProvider"},"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorConfig":{"type":"object","properties":{"baseURL":{"type":"string","format":"uri"},"modelMapping":{"type":"string"}},"title":"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorConfig"},"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorProvider":{"type":"string","enum":["openai","anthropic","google","xai","togetherai","vertex","vertex-anthropic","bedrock","tinfoil","vercel","generic-openai"],"title":"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorProvider"},"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModel":{"type":"object","properties":{"displayName":{"type":"string"},"executorConfig":{"$ref":"#/components/schemas/V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorConfig"},"executorProvider":{"$ref":"#/components/schemas/V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorProvider"},"inputCostPer1kTokens":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","default":4096},"outputCostPer1kTokens":{"type":"number","format":"double"},"supportedResponseFormats":{"type":"array","items":{"type":"string"},"default":["text","JSON"]},"supportsStreaming":{"type":"boolean","default":true}},"required":["displayName","inputCostPer1kTokens","outputCostPer1kTokens"],"title":"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModel"},"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettings":{"type":"object","properties":{"customModel":{"$ref":"#/components/schemas/V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettingsCustomModel"},"maxTokens":{"type":"integer"},"temperature":{"type":"number","format":"double"}},"title":"V1ModelConfigsPostRequestBodyContentApplicationJsonSchemaSettings"},"V1ModelConfigsPostResponsesContentApplicationJsonSchemaKeyStatus":{"type":"string","enum":["platform","custom","needs_setup"],"title":"V1ModelConfigsPostResponsesContentApplicationJsonSchemaKeyStatus"},"V1ModelConfigsPostResponsesContentApplicationJsonSchemaReasoningCapabilityGoogleThinkingMode":{"type":"string","enum":["budget","level"],"title":"V1ModelConfigsPostResponsesContentApplicationJsonSchemaReasoningCapabilityGoogleThinkingMode"},"V1ModelConfigsPostResponsesContentApplicationJsonSchemaReasoningCapability":{"type":"object","properties":{"googleThinkingMode":{"$ref":"#/components/schemas/V1ModelConfigsPostResponsesContentApplicationJsonSchemaReasoningCapabilityGoogleThinkingMode"},"provider":{"type":"string"},"supported":{"type":"boolean"},"supportsReasoningSummary":{"type":"boolean"}},"required":["supported"],"title":"V1ModelConfigsPostResponsesContentApplicationJsonSchemaReasoningCapability"},"Model Configs_createModelConfiguration_Response_201":{"type":"object","properties":{"configScope":{"type":"string"},"costPer1kTokens":{"type":"number","format":"double"},"createdAt":{"type":"string"},"creator":{"type":"string"},"creatorDisplayName":{"type":["string","null"]},"displayName":{"type":"string"},"id":{"type":"string"},"inputCostPer1kTokens":{"type":"number","format":"double"},"isDefault":{"type":"boolean"},"isEnabled":{"type":"boolean"},"keyStatus":{"$ref":"#/components/schemas/V1ModelConfigsPostResponsesContentApplicationJsonSchemaKeyStatus"},"maxOutputTokens":{"type":"number","format":"double"},"modelId":{"type":"string"},"organizationId":{"type":["string","null"]},"outputCostPer1kTokens":{"type":"number","format":"double"},"provider":{"type":"string"},"providerKeyId":{"type":["string","null"]},"reasoningCapability":{"$ref":"#/components/schemas/V1ModelConfigsPostResponsesContentApplicationJsonSchemaReasoningCapability"},"settings":{"type":"object","additionalProperties":{"description":"Any type"}},"supportedResponseFormats":{"type":"array","items":{"type":"string"}},"supportsCustomKey":{"type":"boolean"},"supportsSearch":{"type":"boolean"},"supportsStreaming":{"type":"boolean"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","isDefault","isEnabled","modelId","organizationId","provider","providerKeyId","settings","updatedAt","userId"],"title":"Model Configs_createModelConfiguration_Response_201"},"V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus":{"type":"string","enum":["platform","custom","needs_setup"],"title":"V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus"},"V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"contextLength":{"type":"number","format":"double"},"costPer1kTokens":{"type":"number","format":"double"},"displayName":{"type":"string"},"id":{"description":"Any type"},"isConfigured":{"type":"boolean"},"isDefault":{"type":"boolean"},"isEnabled":{"type":"boolean"},"keyStatus":{"$ref":"#/components/schemas/V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus"},"maxOutputTokens":{"type":"number","format":"double"},"modelId":{"type":"string"},"provider":{"type":"string"},"supportedResponseFormats":{"type":"array","items":{"type":"string"}},"supportsCustomKey":{"type":"boolean"},"supportsSearch":{"type":"boolean"},"supportsStreaming":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"uiCategory":{"type":"string"},"uiPriority":{"type":"number","format":"double"}},"required":["costPer1kTokens","displayName","id","isConfigured","isDefault","isEnabled","keyStatus","modelId","provider","supportsCustomKey","supportsSearch"],"title":"V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaDataItems"},"V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaStats":{"type":"object","properties":{"configured":{"type":"integer"},"popular":{"type":"integer"},"totalAvailable":{"type":"integer"},"uiVisible":{"type":"integer"}},"required":["configured","popular","totalAvailable","uiVisible"],"title":"V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaStats"},"Model Configs_listAvailableModels_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaDataItems"}},"stats":{"$ref":"#/components/schemas/V1ModelConfigsAvailableGetResponsesContentApplicationJsonSchemaStats"},"total":{"type":"integer"}},"required":["data","stats","total"],"title":"Model Configs_listAvailableModels_Response_200"},"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsConfiguredConfigsItems":{"type":"object","properties":{"id":{"type":"string"},"modelId":{"type":"string"},"provider":{"type":"string"}},"required":["id","modelId","provider"],"title":"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsConfiguredConfigsItems"},"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsProvidersItemsKeyStatus":{"type":"string","enum":["platform","custom","needs_setup"],"title":"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsProvidersItemsKeyStatus"},"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsProvidersItems":{"type":"object","properties":{"costPer1kTokens":{"type":"number","format":"double"},"hasPlatformKey":{"type":"boolean"},"inputCostPer1kTokens":{"type":"number","format":"double"},"keyStatus":{"$ref":"#/components/schemas/V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsProvidersItemsKeyStatus"},"modelId":{"type":"string"},"outputCostPer1kTokens":{"type":"number","format":"double"},"provider":{"type":"string"},"providerDisplayName":{"type":"string"}},"required":["costPer1kTokens","hasPlatformKey","inputCostPer1kTokens","modelId","outputCostPer1kTokens","provider","providerDisplayName"],"title":"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsProvidersItems"},"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapabilityGoogleThinkingMode":{"type":"string","enum":["budget","level"],"title":"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapabilityGoogleThinkingMode"},"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapability":{"type":"object","properties":{"googleThinkingMode":{"$ref":"#/components/schemas/V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapabilityGoogleThinkingMode"},"provider":{"type":"string"},"supported":{"type":"boolean"},"supportsReasoningSummary":{"type":"boolean"}},"required":["supported"],"title":"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapability"},"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"baseModel":{"type":"string"},"configuredConfigs":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsConfiguredConfigsItems"}},"configuredProviders":{"type":"array","items":{"type":"string"}},"contextLength":{"type":"number","format":"double"},"creator":{"type":"string"},"creatorDisplayName":{"type":"string"},"displayName":{"type":"string"},"isConfigured":{"type":"boolean"},"lowestCost":{"type":"number","format":"double"},"maxOutputTokens":{"type":"number","format":"double"},"providers":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsProvidersItems"}},"reasoningCapability":{"$ref":"#/components/schemas/V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItemsReasoningCapability"},"tags":{"type":"array","items":{"type":"string"}},"uiCategory":{"type":"string"},"uiPriority":{"type":"number","format":"double"}},"required":["baseModel","configuredConfigs","configuredProviders","contextLength","creator","creatorDisplayName","displayName","isConfigured","lowestCost","maxOutputTokens","providers","tags"],"title":"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItems"},"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaStats":{"type":"object","properties":{"providersWithPlatformKeys":{"type":"array","items":{"type":"string"}},"totalModels":{"type":"integer"},"uniqueBaseModels":{"type":"integer"}},"required":["providersWithPlatformKeys","totalModels","uniqueBaseModels"],"title":"V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaStats"},"Model Configs_getGroupedModels_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaDataItems"}},"stats":{"$ref":"#/components/schemas/V1ModelConfigsGroupedGetResponsesContentApplicationJsonSchemaStats"},"total":{"type":"integer"}},"required":["data","stats","total"],"title":"Model Configs_getGroupedModels_Response_200"},"V1ModelConfigsSearchCapableGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus":{"type":"string","enum":["platform","custom","needs_setup"],"title":"V1ModelConfigsSearchCapableGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus"},"V1ModelConfigsSearchCapableGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"displayLabel":{"type":"string"},"id":{"type":"string"},"keyStatus":{"$ref":"#/components/schemas/V1ModelConfigsSearchCapableGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus"},"name":{"type":"string"},"provider":{"type":"string"},"supportsCustomKey":{"type":"boolean"}},"required":["displayLabel","id","keyStatus","name","provider","supportsCustomKey"],"title":"V1ModelConfigsSearchCapableGetResponsesContentApplicationJsonSchemaDataItems"},"Model Configs_listSearchCapableModels_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelConfigsSearchCapableGetResponsesContentApplicationJsonSchemaDataItems"}},"total":{"type":"integer"}},"required":["data","total"],"title":"Model Configs_listSearchCapableModels_Response_200"},"V1ModelConfigsSearchConfiguredGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus":{"type":"string","enum":["platform","custom","needs_setup"],"title":"V1ModelConfigsSearchConfiguredGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus"},"V1ModelConfigsSearchConfiguredGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"displayLabel":{"type":"string"},"id":{"type":"string"},"keyStatus":{"$ref":"#/components/schemas/V1ModelConfigsSearchConfiguredGetResponsesContentApplicationJsonSchemaDataItemsKeyStatus"},"name":{"type":"string"},"provider":{"type":"string"},"supportsCustomKey":{"type":"boolean"}},"required":["displayLabel","id","keyStatus","name","provider","supportsCustomKey"],"title":"V1ModelConfigsSearchConfiguredGetResponsesContentApplicationJsonSchemaDataItems"},"Model Configs_listConfiguredSearchProviders_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelConfigsSearchConfiguredGetResponsesContentApplicationJsonSchemaDataItems"}},"total":{"type":"integer"}},"required":["data","total"],"title":"Model Configs_listConfiguredSearchProviders_Response_200"},"V1ModelConfigsUsageGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"lastUsedAt":{"type":["string","null"]},"modelId":{"type":"string"},"provider":{"type":"string"},"usageCount":{"type":["integer","null"]}},"required":["lastUsedAt","modelId","provider","usageCount"],"title":"V1ModelConfigsUsageGetResponsesContentApplicationJsonSchemaDataItems"},"Model Configs_getModelConfigurationUsage_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelConfigsUsageGetResponsesContentApplicationJsonSchemaDataItems"}},"total":{"type":"integer"}},"required":["data","total"],"title":"Model Configs_getModelConfigurationUsage_Response_200"},"V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorConfig":{"type":"object","properties":{"baseURL":{"type":"string","format":"uri"},"modelMapping":{"type":"string"}},"title":"V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorConfig"},"V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorProvider":{"type":"string","enum":["openai","anthropic","google","xai","togetherai","vertex","vertex-anthropic","bedrock","tinfoil","vercel","generic-openai"],"title":"V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorProvider"},"V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModel":{"type":"object","properties":{"displayName":{"type":"string"},"executorConfig":{"$ref":"#/components/schemas/V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorConfig"},"executorProvider":{"$ref":"#/components/schemas/V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModelExecutorProvider"},"inputCostPer1kTokens":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","default":4096},"outputCostPer1kTokens":{"type":"number","format":"double"},"supportedResponseFormats":{"type":"array","items":{"type":"string"},"default":["text","JSON"]},"supportsStreaming":{"type":"boolean","default":true}},"required":["displayName","inputCostPer1kTokens","outputCostPer1kTokens"],"title":"V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModel"},"V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettings":{"type":"object","properties":{"customModel":{"$ref":"#/components/schemas/V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettingsCustomModel"},"maxTokens":{"type":"integer"},"temperature":{"type":"number","format":"double"}},"title":"V1ModelConfigsIdPutRequestBodyContentApplicationJsonSchemaSettings"},"V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaKeyStatus":{"type":"string","enum":["platform","custom","needs_setup"],"title":"V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaKeyStatus"},"V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaReasoningCapabilityGoogleThinkingMode":{"type":"string","enum":["budget","level"],"title":"V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaReasoningCapabilityGoogleThinkingMode"},"V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaReasoningCapability":{"type":"object","properties":{"googleThinkingMode":{"$ref":"#/components/schemas/V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaReasoningCapabilityGoogleThinkingMode"},"provider":{"type":"string"},"supported":{"type":"boolean"},"supportsReasoningSummary":{"type":"boolean"}},"required":["supported"],"title":"V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaReasoningCapability"},"Model Configs_updateModelConfiguration_Response_200":{"type":"object","properties":{"configScope":{"type":"string"},"costPer1kTokens":{"type":"number","format":"double"},"createdAt":{"type":"string"},"creator":{"type":"string"},"creatorDisplayName":{"type":["string","null"]},"displayName":{"type":"string"},"id":{"type":"string"},"inputCostPer1kTokens":{"type":"number","format":"double"},"isDefault":{"type":"boolean"},"isEnabled":{"type":"boolean"},"keyStatus":{"$ref":"#/components/schemas/V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaKeyStatus"},"maxOutputTokens":{"type":"number","format":"double"},"modelId":{"type":"string"},"organizationId":{"type":["string","null"]},"outputCostPer1kTokens":{"type":"number","format":"double"},"provider":{"type":"string"},"providerKeyId":{"type":["string","null"]},"reasoningCapability":{"$ref":"#/components/schemas/V1ModelConfigsIdPutResponsesContentApplicationJsonSchemaReasoningCapability"},"settings":{"type":"object","additionalProperties":{"description":"Any type"}},"supportedResponseFormats":{"type":"array","items":{"type":"string"}},"supportsCustomKey":{"type":"boolean"},"supportsSearch":{"type":"boolean"},"supportsStreaming":{"type":"boolean"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","isDefault","isEnabled","modelId","organizationId","provider","providerKeyId","settings","updatedAt","userId"],"title":"Model Configs_updateModelConfiguration_Response_200"},"V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataKeyStatus":{"type":"string","enum":["platform","custom","needs_setup"],"title":"V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataKeyStatus"},"V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataReasoningCapabilityGoogleThinkingMode":{"type":"string","enum":["budget","level"],"title":"V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataReasoningCapabilityGoogleThinkingMode"},"V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataReasoningCapability":{"type":"object","properties":{"googleThinkingMode":{"$ref":"#/components/schemas/V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataReasoningCapabilityGoogleThinkingMode"},"provider":{"type":"string"},"supported":{"type":"boolean"},"supportsReasoningSummary":{"type":"boolean"}},"required":["supported"],"title":"V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataReasoningCapability"},"V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"configScope":{"type":"string"},"costPer1kTokens":{"type":"number","format":"double"},"createdAt":{"type":"string"},"creator":{"type":"string"},"creatorDisplayName":{"type":["string","null"]},"displayName":{"type":"string"},"id":{"type":"string"},"inputCostPer1kTokens":{"type":"number","format":"double"},"isDefault":{"type":"boolean"},"isEnabled":{"type":"boolean"},"keyStatus":{"$ref":"#/components/schemas/V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataKeyStatus"},"maxOutputTokens":{"type":"number","format":"double"},"modelId":{"type":"string"},"organizationId":{"type":["string","null"]},"outputCostPer1kTokens":{"type":"number","format":"double"},"provider":{"type":"string"},"providerKeyId":{"type":["string","null"]},"reasoningCapability":{"$ref":"#/components/schemas/V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaDataReasoningCapability"},"settings":{"type":"object","additionalProperties":{"description":"Any type"}},"supportedResponseFormats":{"type":"array","items":{"type":"string"}},"supportsCustomKey":{"type":"boolean"},"supportsSearch":{"type":"boolean"},"supportsStreaming":{"type":"boolean"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","isDefault","isEnabled","modelId","organizationId","provider","providerKeyId","settings","updatedAt","userId"],"title":"V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaData"},"Model Configs_setDefaultModelConfiguration_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1ModelConfigsIdDefaultPatchResponsesContentApplicationJsonSchemaData"},"message":{"type":"string"},"success":{"type":"boolean"}},"required":["data","message","success"],"title":"Model Configs_setDefaultModelConfiguration_Response_200"},"Model Configs_enableOrDisableModelConfiguration_Response_200":{"type":"object","properties":{"message":{"type":"string"},"success":{"type":"boolean"}},"required":["message","success"],"title":"Model Configs_enableOrDisableModelConfiguration_Response_200"},"V1ModelUsageGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"dataSource":{"type":"string"},"endDate":{"type":"string"},"granularity":{"type":"string"},"period":{"type":"string"},"startDate":{"type":"string"}},"required":["endDate","startDate"],"title":"V1ModelUsageGetResponsesContentApplicationJsonSchemaMeta"},"V1ModelUsageGetResponsesContentApplicationJsonSchemaSummary":{"type":"object","properties":{"platformCost":{"type":"number","format":"double"},"platformTokens":{"type":"number","format":"double"},"totalCost":{"type":"number","format":"double"},"totalRequests":{"type":"number","format":"double"},"totalTokens":{"type":"number","format":"double"},"userCost":{"type":"number","format":"double"},"userTokens":{"type":"number","format":"double"}},"required":["totalCost","totalRequests","totalTokens"],"title":"V1ModelUsageGetResponsesContentApplicationJsonSchemaSummary"},"V1ModelUsageGetResponsesContentApplicationJsonSchemaTimeSeriesItems":{"type":"object","properties":{"cost":{"type":"number","format":"double"},"date":{"type":"string"},"requests":{"type":"number","format":"double"},"tokens":{"type":"number","format":"double"}},"required":["cost","date","requests","tokens"],"title":"V1ModelUsageGetResponsesContentApplicationJsonSchemaTimeSeriesItems"},"V1ModelUsageGetResponsesContentApplicationJsonSchemaUsageByModel":{"type":"object","properties":{"avgCostPerRequest":{"type":"number","format":"double"},"modelId":{"type":"string"},"modelName":{"type":"string"},"provider":{"type":"string"},"requestCount":{"type":"number","format":"double"},"totalCost":{"type":"number","format":"double"},"totalTokens":{"type":"number","format":"double"}},"required":["avgCostPerRequest","modelId","provider","requestCount","totalCost","totalTokens"],"title":"V1ModelUsageGetResponsesContentApplicationJsonSchemaUsageByModel"},"Model Usage_getModelUsageStatistics_Response_200":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/V1ModelUsageGetResponsesContentApplicationJsonSchemaMeta"},"summary":{"$ref":"#/components/schemas/V1ModelUsageGetResponsesContentApplicationJsonSchemaSummary"},"timeSeries":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelUsageGetResponsesContentApplicationJsonSchemaTimeSeriesItems"}},"usageByModel":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/V1ModelUsageGetResponsesContentApplicationJsonSchemaUsageByModel"}}},"required":["meta","summary","usageByModel"],"title":"Model Usage_getModelUsageStatistics_Response_200"},"V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaMeta":{"type":"object","properties":{"dataSource":{"type":"string"}},"required":["dataSource"],"title":"V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaMeta"},"V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaModelConfig":{"type":"object","properties":{"displayName":{"type":"string"},"id":{"type":"string"},"modelId":{"type":"string"},"provider":{"type":"string"}},"required":["displayName","id","modelId","provider"],"title":"V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaModelConfig"},"V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaRecentUsageItems":{"type":"object","properties":{"completionTokens":{"type":"number","format":"double"},"estimatedCost":{"type":"number","format":"double"},"executionTime":{"type":"number","format":"double"},"id":{"type":"string"},"promptTokens":{"type":"number","format":"double"},"timestamp":{"type":"string"},"totalTokens":{"type":"number","format":"double"}},"required":["id","timestamp"],"title":"V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaRecentUsageItems"},"Model Usage_getModelUsageDetails_Response_200":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaMeta"},"modelConfig":{"$ref":"#/components/schemas/V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaModelConfig"},"recentUsage":{"type":"array","items":{"$ref":"#/components/schemas/V1ModelUsageModelConfigIdGetResponsesContentApplicationJsonSchemaRecentUsageItems"}}},"required":["meta","modelConfig","recentUsage"],"title":"Model Usage_getModelUsageDetails_Response_200"},"V1ProductsGetResponsesContentApplicationJsonSchemaDataItemsCapabilitiesItems":{"type":"object","properties":{"capabilityName":{"type":"string"}},"required":["capabilityName"],"title":"V1ProductsGetResponsesContentApplicationJsonSchemaDataItemsCapabilitiesItems"},"V1ProductsGetResponsesContentApplicationJsonSchemaDataItemsSurfacesItems":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"title":"V1ProductsGetResponsesContentApplicationJsonSchemaDataItemsSurfacesItems"},"V1ProductsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"canvas":{"description":"Any type"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsGetResponsesContentApplicationJsonSchemaDataItemsCapabilitiesItems"}},"capabilityCount":{"type":"integer"},"createdAt":{"type":"string"},"description":{"type":["string","null"]},"icon":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"spec":{"description":"Any type"},"surfaceCount":{"type":"integer"},"surfaces":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsGetResponsesContentApplicationJsonSchemaDataItemsSurfacesItems"}},"updatedAt":{"type":"string"}},"required":["capabilities","capabilityCount","createdAt","description","icon","id","name","surfaceCount","surfaces","updatedAt"],"title":"V1ProductsGetResponsesContentApplicationJsonSchemaDataItems"},"Products_listProducts_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Products_listProducts_Response_200"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasArchitectureLayout":{"type":"object","properties":{"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"}},"required":["x","y"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasArchitectureLayout"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsPosition":{"type":"object","properties":{"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"}},"required":["x","y"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsPosition"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsSize":{"type":"object","properties":{"height":{"type":"number","format":"double"},"width":{"type":"number","format":"double"}},"required":["height","width"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsSize"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsType":{"type":"string","enum":["capabilities","surfaces"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsType"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItems":{"type":"object","properties":{"color":{"type":"string"},"id":{"type":"string"},"memberIds":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"position":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsPosition"},"size":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsSize"},"type":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsType"}},"required":["color","id","memberIds","name"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItems"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasNotesItems":{"type":"object","properties":{"color":{"type":"string"},"height":{"type":"number","format":"double"},"id":{"type":"string"},"text":{"type":"string"},"width":{"type":"number","format":"double"},"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"}},"required":["id","text","x","y"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasNotesItems"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportDocumentKind":{"type":"string","enum":["a2a-agent","fpo","fpo-template"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportDocumentKind"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportSourceKind":{"type":"string","enum":["url","json"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportSourceKind"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImport":{"type":"object","properties":{"documentKind":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportDocumentKind"},"importedAt":{"type":"string"},"normalizedSourceUrl":{"type":"string"},"sourceKind":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportSourceKind"},"sourceUrl":{"type":"string"},"templateVariableKeys":{"type":"array","items":{"type":"string"}}},"required":["documentKind","importedAt","sourceKind"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImport"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvas":{"type":"object","properties":{"architectureLayout":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasArchitectureLayout"}},"capabilityOrder":{"type":"array","items":{"type":"string"}},"capabilityPositions":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasGroupsItems"}},"notes":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasNotesItems"}},"onboardingProgress":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"description":"Any type"}}},"quickStartImport":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvasQuickStartImport"},"surfaceOrder":{"type":"array","items":{"type":"string"}},"surfacePositions":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"templateId":{"type":"string"}},"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaCanvas"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecImportedFromSource":{"type":"string","enum":["github","linear","chatprd","manual"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecImportedFromSource"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecImportedFrom":{"type":"object","properties":{"importedAt":{"type":"string"},"source":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecImportedFromSource"},"sourceId":{"type":"string"},"syncEnabled":{"type":"boolean"}},"required":["importedAt","source"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecImportedFrom"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecProductStage":{"type":"string","enum":["idea","prototype","beta","production","scaling"],"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecProductStage"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecTechStack":{"type":"object","properties":{"backend":{"type":"array","items":{"type":"string"}},"database":{"type":"array","items":{"type":"string"}},"frontend":{"type":"array","items":{"type":"string"}},"infrastructure":{"type":"array","items":{"type":"string"}},"languages":{"type":"array","items":{"type":"string"}}},"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecTechStack"},"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpec":{"type":"object","properties":{"aiUseCases":{"type":"array","items":{"type":"string"}},"complianceNeeds":{"type":"array","items":{"type":"string"}},"dataSourceTypes":{"type":"array","items":{"type":"string"}},"deploymentTargets":{"type":"array","items":{"type":"string"}},"existingTools":{"type":"array","items":{"type":"string"}},"importedFrom":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecImportedFrom"},"preferredModels":{"type":"array","items":{"type":"string"}},"productGoal":{"type":"string"},"productStage":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecProductStage"},"targetAudience":{"type":"string"},"techStack":{"$ref":"#/components/schemas/V1ProductsPostRequestBodyContentApplicationJsonSchemaSpecTechStack"}},"title":"V1ProductsPostRequestBodyContentApplicationJsonSchemaSpec"},"V1ProductsPostResponsesContentApplicationJsonSchemaTestApiKeyLimits":{"type":"object","properties":{"dailyExecutions":{"type":"integer"},"lifetimeExecutions":{"type":"integer"}},"required":["dailyExecutions","lifetimeExecutions"],"title":"V1ProductsPostResponsesContentApplicationJsonSchemaTestApiKeyLimits"},"V1ProductsPostResponsesContentApplicationJsonSchemaTestApiKey":{"type":"object","properties":{"canRevealLater":{"type":"boolean"},"id":{"type":"string"},"key":{"type":"string"},"limits":{"$ref":"#/components/schemas/V1ProductsPostResponsesContentApplicationJsonSchemaTestApiKeyLimits"},"name":{"type":"string"},"prefix":{"type":"string"}},"required":["canRevealLater","id","key","limits","name","prefix"],"title":"V1ProductsPostResponsesContentApplicationJsonSchemaTestApiKey"},"Products_createProduct_Response_201":{"type":"object","properties":{"canvas":{"type":"object","additionalProperties":{"description":"Any type"}},"capabilities":{"type":"array","items":{"description":"Any type"}},"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"description":{"type":["string","null"]},"icon":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"spec":{"type":"object","additionalProperties":{"description":"Any type"}},"surfaces":{"type":"array","items":{"description":"Any type"}},"testApiKey":{"$ref":"#/components/schemas/V1ProductsPostResponsesContentApplicationJsonSchemaTestApiKey"},"updatedAt":{"type":"string"}},"required":["canvas","capabilities","createdAt","description","icon","id","name","spec","surfaces","updatedAt"],"title":"Products_createProduct_Response_201"},"V1ProductsAssemblePostResponsesContentApplicationJsonSchemaCapabilitiesItems":{"type":"object","properties":{"agentId":{"type":"string"},"capabilityId":{"type":"string"},"flowId":{"type":"string"},"name":{"type":"string"}},"required":["capabilityId","name"],"title":"V1ProductsAssemblePostResponsesContentApplicationJsonSchemaCapabilitiesItems"},"V1ProductsAssemblePostResponsesContentApplicationJsonSchemaSurfacesItems":{"type":"object","properties":{"integrationId":{"type":"string"},"name":{"type":"string"},"surfaceId":{"type":"string"},"surfaceItemIds":{"type":"array","items":{"type":"string"}},"type":{"type":"string"}},"required":["name","surfaceId","surfaceItemIds","type"],"title":"V1ProductsAssemblePostResponsesContentApplicationJsonSchemaSurfacesItems"},"Products_assembleProductFromFpo_Response_201":{"type":"object","properties":{"cached":{"type":"boolean"},"capabilities":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsAssemblePostResponsesContentApplicationJsonSchemaCapabilitiesItems"}},"creationMap":{"type":"object","additionalProperties":{"type":"string"}},"productId":{"type":"string"},"surfaces":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsAssemblePostResponsesContentApplicationJsonSchemaSurfacesItems"}}},"required":["cached","capabilities","creationMap","productId","surfaces"],"title":"Products_assembleProductFromFpo_Response_201"},"V1ProductsAssemblePostResponsesContentApplicationJsonSchemaError":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"title":"V1ProductsAssemblePostResponsesContentApplicationJsonSchemaError"},"AssembleProductFromFpoRequestBadRequestError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1ProductsAssemblePostResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"AssembleProductFromFpoRequestBadRequestError"},"AssembleProductFromFpoRequestForbiddenError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1ProductsAssemblePostResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"AssembleProductFromFpoRequestForbiddenError"},"AssembleProductFromFpoRequestInternalServerError":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/V1ProductsAssemblePostResponsesContentApplicationJsonSchemaError"}},"required":["error"],"title":"AssembleProductFromFpoRequestInternalServerError"},"Products_getProductDetails_Response_200":{"type":"object","properties":{"canvas":{"description":"Any type"},"capabilities":{"type":"array","items":{"description":"Any type"}},"configurationStatus":{"description":"Any type"},"configurationUrl":{"type":["string","null"]},"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"description":{"type":["string","null"]},"icon":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"pendingConfigurationCount":{"type":"integer"},"spec":{"description":"Any type"},"surfaces":{"type":"array","items":{"description":"Any type"}},"updatedAt":{"type":"string"}},"required":["capabilities","createdAt","description","icon","id","name","surfaces","updatedAt"],"title":"Products_getProductDetails_Response_200"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasArchitectureLayout":{"type":"object","properties":{"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"}},"required":["x","y"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasArchitectureLayout"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsPosition":{"type":"object","properties":{"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"}},"required":["x","y"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsPosition"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsSize":{"type":"object","properties":{"height":{"type":"number","format":"double"},"width":{"type":"number","format":"double"}},"required":["height","width"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsSize"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsType":{"type":"string","enum":["capabilities","surfaces"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsType"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItems":{"type":"object","properties":{"color":{"type":"string"},"id":{"type":"string"},"memberIds":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"position":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsPosition"},"size":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsSize"},"type":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItemsType"}},"required":["color","id","memberIds","name"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItems"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasNotesItems":{"type":"object","properties":{"color":{"type":"string"},"height":{"type":"number","format":"double"},"id":{"type":"string"},"text":{"type":"string"},"width":{"type":"number","format":"double"},"x":{"type":"number","format":"double"},"y":{"type":"number","format":"double"}},"required":["id","text","x","y"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasNotesItems"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportDocumentKind":{"type":"string","enum":["a2a-agent","fpo","fpo-template"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportDocumentKind"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportSourceKind":{"type":"string","enum":["url","json"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportSourceKind"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImport":{"type":"object","properties":{"documentKind":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportDocumentKind"},"importedAt":{"type":"string"},"normalizedSourceUrl":{"type":"string"},"sourceKind":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImportSourceKind"},"sourceUrl":{"type":"string"},"templateVariableKeys":{"type":"array","items":{"type":"string"}}},"required":["documentKind","importedAt","sourceKind"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImport"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvas":{"type":"object","properties":{"architectureLayout":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasArchitectureLayout"}},"capabilityOrder":{"type":"array","items":{"type":"string"}},"capabilityPositions":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasGroupsItems"}},"notes":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasNotesItems"}},"onboardingProgress":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"description":"Any type"}}},"quickStartImport":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvasQuickStartImport"},"surfaceOrder":{"type":"array","items":{"type":"string"}},"surfacePositions":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"templateId":{"type":"string"}},"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaCanvas"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecImportedFromSource":{"type":"string","enum":["github","linear","chatprd","manual"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecImportedFromSource"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecImportedFrom":{"type":"object","properties":{"importedAt":{"type":"string"},"source":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecImportedFromSource"},"sourceId":{"type":"string"},"syncEnabled":{"type":"boolean"}},"required":["importedAt","source"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecImportedFrom"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecProductStage":{"type":"string","enum":["idea","prototype","beta","production","scaling"],"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecProductStage"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecTechStack":{"type":"object","properties":{"backend":{"type":"array","items":{"type":"string"}},"database":{"type":"array","items":{"type":"string"}},"frontend":{"type":"array","items":{"type":"string"}},"infrastructure":{"type":"array","items":{"type":"string"}},"languages":{"type":"array","items":{"type":"string"}}},"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecTechStack"},"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpec":{"type":"object","properties":{"aiUseCases":{"type":"array","items":{"type":"string"}},"complianceNeeds":{"type":"array","items":{"type":"string"}},"dataSourceTypes":{"type":"array","items":{"type":"string"}},"deploymentTargets":{"type":"array","items":{"type":"string"}},"existingTools":{"type":"array","items":{"type":"string"}},"importedFrom":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecImportedFrom"},"preferredModels":{"type":"array","items":{"type":"string"}},"productGoal":{"type":"string"},"productStage":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecProductStage"},"targetAudience":{"type":"string"},"techStack":{"$ref":"#/components/schemas/V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpecTechStack"}},"title":"V1ProductsIdPutRequestBodyContentApplicationJsonSchemaSpec"},"Products_updateProduct_Response_200":{"type":"object","properties":{"canvas":{"type":"object","additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"description":{"type":["string","null"]},"icon":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"spec":{"type":"object","additionalProperties":{"description":"Any type"}},"updatedAt":{"type":"string"}},"required":["canvas","createdAt","description","icon","id","name","spec","updatedAt"],"title":"Products_updateProduct_Response_200"},"Products_deleteProduct_Response_200":{"type":"object","properties":{"success":{"type":"boolean"},"warning":{"type":"string"}},"required":["success"],"title":"Products_deleteProduct_Response_200"},"Products_addCapabilityToProduct_Response_201":{"type":"object","properties":{"agentId":{"type":["string","null"]},"capabilityDescription":{"type":["string","null"]},"capabilityName":{"type":"string"},"createdAt":{"type":"string"},"displayOrder":{"type":["integer","null"]},"enabled":{"type":"boolean"},"flowId":{"type":["string","null"]},"id":{"type":"string"},"parametersSchema":{"description":"Any type"},"productId":{"type":"string"}},"required":["agentId","capabilityDescription","capabilityName","createdAt","displayOrder","enabled","flowId","id","productId"],"title":"Products_addCapabilityToProduct_Response_201"},"Products_updateCapability_Response_200":{"type":"object","properties":{"agentId":{"type":["string","null"]},"capabilityDescription":{"type":["string","null"]},"capabilityName":{"type":"string"},"createdAt":{"type":"string"},"displayOrder":{"type":["integer","null"]},"enabled":{"type":"boolean"},"flowId":{"type":["string","null"]},"id":{"type":"string"},"parametersSchema":{"description":"Any type"},"productId":{"type":"string"}},"required":["agentId","capabilityDescription","capabilityName","createdAt","displayOrder","enabled","flowId","id","productId"],"title":"Products_updateCapability_Response_200"},"Products_removeCapability_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Products_removeCapability_Response_200"},"V1ProductsIdCleanupPreviewGetResponsesContentApplicationJsonSchemaResourcesItemsType":{"type":"string","enum":["flow","agent"],"title":"V1ProductsIdCleanupPreviewGetResponsesContentApplicationJsonSchemaResourcesItemsType"},"V1ProductsIdCleanupPreviewGetResponsesContentApplicationJsonSchemaResourcesItems":{"type":"object","properties":{"externalRefCount":{"type":"integer"},"id":{"type":"string"},"name":{"type":"string"},"referencedElsewhere":{"type":"boolean"},"type":{"$ref":"#/components/schemas/V1ProductsIdCleanupPreviewGetResponsesContentApplicationJsonSchemaResourcesItemsType"}},"required":["externalRefCount","id","name","referencedElsewhere","type"],"title":"V1ProductsIdCleanupPreviewGetResponsesContentApplicationJsonSchemaResourcesItems"},"Products_previewCleanupResources_Response_200":{"type":"object","properties":{"resources":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdCleanupPreviewGetResponsesContentApplicationJsonSchemaResourcesItems"}}},"required":["resources"],"title":"Products_previewCleanupResources_Response_200"},"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaConfigurationStatus":{"type":"string","enum":["configured","needs_configuration","invalid"],"title":"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaConfigurationStatus"},"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoffOneOf0Type":{"type":"string","enum":["url"],"title":"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoffOneOf0Type"},"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoff0":{"type":"object","properties":{"expiresAt":{"type":"string"},"type":{"$ref":"#/components/schemas/V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoffOneOf0Type"},"url":{"type":"string"}},"required":["type","url"],"title":"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoff0"},"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoff":{"oneOf":[{"$ref":"#/components/schemas/V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoff0"}],"title":"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoff"},"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaRequirementsItemsStatus":{"type":"string","enum":["configured","needs_configuration","invalid"],"title":"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaRequirementsItemsStatus"},"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaRequirementsItems":{"type":"object","properties":{"description":{"type":["string","null"]},"displayName":{"type":["string","null"]},"docsUrl":{"type":"string"},"helpText":{"type":"string"},"itemId":{"type":"string"},"placeholder":{"type":"string"},"required":{"type":"boolean","default":true},"secretId":{"type":"string"},"secretKey":{"type":"string"},"status":{"$ref":"#/components/schemas/V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaRequirementsItemsStatus"},"version":{"type":"integer"}},"required":["itemId","secretKey","status"],"title":"V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaRequirementsItems"},"Products_getProductConfigurationSummary_Response_200":{"type":"object","properties":{"configurationStatus":{"$ref":"#/components/schemas/V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaConfigurationStatus"},"configurationUrl":{"type":"string"},"handoff":{"$ref":"#/components/schemas/V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaHandoff"},"pendingConfigurationCount":{"type":"integer"},"productId":{"type":"string"},"productName":{"type":"string"},"requirements":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdConfigurationGetResponsesContentApplicationJsonSchemaRequirementsItems"}}},"required":["configurationStatus","configurationUrl","pendingConfigurationCount","productId","productName","requirements"],"title":"Products_getProductConfigurationSummary_Response_200"},"V1ProductsIdSurfacesGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"behavior":{"description":"Any type"},"createdAt":{"type":"string"},"environment":{"type":"string"},"id":{"type":"string"},"inbound":{"description":"Any type"},"name":{"type":"string"},"outbound":{"description":"Any type"},"productId":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","environment","id","name","productId","status","type","updatedAt"],"title":"V1ProductsIdSurfacesGetResponsesContentApplicationJsonSchemaDataItems"},"Products_listSurfaces_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Products_listSurfaces_Response_200"},"V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaEnvironment":{"type":"string","enum":["production","development"],"default":"development","title":"V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaEnvironment"},"V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["draft","active","paused"],"title":"V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaStatus"},"V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaType":{"type":"string","enum":["chat","mcp","mcp_code","api","webhook","schedule","a2a","email","slack","sms","imessage","discord","whatsapp","telegram","hosted-page"],"title":"V1ProductsIdSurfacesPostRequestBodyContentApplicationJsonSchemaType"},"Products_createSurface_Response_201":{"type":"object","properties":{"behavior":{"description":"Any type"},"createdAt":{"type":"string"},"environment":{"type":"string"},"id":{"type":"string"},"inbound":{"description":"Any type"},"items":{"type":"array","items":{"description":"Any type"}},"keys":{"type":"array","items":{"description":"Any type"}},"name":{"type":"string"},"outbound":{"description":"Any type"},"productId":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","environment","id","items","keys","name","productId","status","type","updatedAt"],"title":"Products_createSurface_Response_201"},"V1ProductsIdSurfacesSurfaceIdGetResponsesContentApplicationJsonSchemaItemsItems":{"type":"object","properties":{"agentId":{"type":["string","null"]},"agentType":{"type":["string","null"]},"cachedSkills":{"type":["array","null"],"items":{"description":"Any type"}},"capabilityId":{"type":"string"},"capabilityName":{"type":["string","null"]},"config":{"description":"Any type"},"createdAt":{"type":"string"},"displayOrder":{"type":["integer","null"]},"enabled":{"type":"boolean"},"endpointSlug":{"type":["string","null"]},"exposedDescription":{"type":["string","null"]},"exposedName":{"type":["string","null"]},"flowId":{"type":["string","null"]},"id":{"type":"string"},"isEntryPoint":{"type":"boolean"},"parametersSchema":{"description":"Any type"}},"required":["agentId","agentType","cachedSkills","capabilityId","capabilityName","createdAt","displayOrder","enabled","endpointSlug","exposedDescription","exposedName","flowId","id","isEntryPoint"],"title":"V1ProductsIdSurfacesSurfaceIdGetResponsesContentApplicationJsonSchemaItemsItems"},"V1ProductsIdSurfacesSurfaceIdGetResponsesContentApplicationJsonSchemaKeysItems":{"type":"object","properties":{"canReveal":{"type":"boolean"},"createdAt":{"type":"string"},"environment":{"type":"string"},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"isActive":{"type":"boolean"},"isDevelopment":{"type":"boolean"},"keyHint":{"type":["string","null"]},"keyPrefix":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"name":{"type":["string","null"]},"rateLimitPerDay":{"type":["integer","null"]},"rateLimitPerMinute":{"type":["integer","null"]},"scopes":{"type":"array","items":{"type":"string"}},"usageCount":{"type":["integer","null"]}},"required":["canReveal","createdAt","environment","expiresAt","id","isActive","isDevelopment","keyHint","keyPrefix","lastUsedAt","name","rateLimitPerDay","rateLimitPerMinute","scopes","usageCount"],"title":"V1ProductsIdSurfacesSurfaceIdGetResponsesContentApplicationJsonSchemaKeysItems"},"Products_getSurfaceDetails_Response_200":{"type":"object","properties":{"behavior":{"description":"Any type"},"createdAt":{"type":"string"},"environment":{"type":"string"},"id":{"type":"string"},"inbound":{"description":"Any type"},"items":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdGetResponsesContentApplicationJsonSchemaItemsItems"}},"keys":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdGetResponsesContentApplicationJsonSchemaKeysItems"}},"name":{"type":"string"},"outbound":{"description":"Any type"},"productId":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","environment","id","items","keys","name","productId","status","type","updatedAt"],"title":"Products_getSurfaceDetails_Response_200"},"V1ProductsIdSurfacesSurfaceIdPutRequestBodyContentApplicationJsonSchemaEnvironment":{"type":"string","enum":["production","development"],"title":"V1ProductsIdSurfacesSurfaceIdPutRequestBodyContentApplicationJsonSchemaEnvironment"},"V1ProductsIdSurfacesSurfaceIdPutRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["draft","active","paused"],"title":"V1ProductsIdSurfacesSurfaceIdPutRequestBodyContentApplicationJsonSchemaStatus"},"Products_updateSurface_Response_200":{"type":"object","properties":{"behavior":{"description":"Any type"},"createdAt":{"type":"string"},"environment":{"type":"string"},"id":{"type":"string"},"inbound":{"description":"Any type"},"name":{"type":"string"},"outbound":{"description":"Any type"},"productId":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","environment","id","name","productId","status","type","updatedAt"],"title":"Products_updateSurface_Response_200"},"Products_deleteSurface_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Products_deleteSurface_Response_200"},"V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationDisplayMode":{"type":"string","enum":["chat","form","document"],"title":"V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationDisplayMode"},"V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationFormConfig":{"type":"object","properties":{"inputSchemaOverrides":{"type":"object","additionalProperties":{"description":"Any type"}},"submitButtonLabel":{"type":"string"},"successMessage":{"type":"string"}},"title":"V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationFormConfig"},"V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationVisibility":{"type":"string","enum":["public","auth-only"],"default":"auth-only","title":"V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationVisibility"},"V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentation":{"type":"object","properties":{"displayIcon":{"type":"string"},"displayLabel":{"type":"string"},"displayMode":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationDisplayMode"},"displayOrder":{"type":"integer","default":0},"formConfig":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationFormConfig"},"isDefault":{"type":"boolean","default":false},"route":{"type":"string"},"visibility":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentationVisibility","default":"auth-only"}},"required":["displayLabel","displayMode","route"],"title":"V1ProductsIdSurfacesSurfaceIdItemsPostRequestBodyContentApplicationJsonSchemaPresentation"},"Products_addItemToSurface_Response_201":{"type":"object","properties":{"capabilityId":{"type":"string"},"createdAt":{"type":"string"},"displayOrder":{"type":["integer","null"]},"enabled":{"type":"boolean"},"endpointSlug":{"type":["string","null"]},"exposedDescription":{"type":["string","null"]},"exposedName":{"type":["string","null"]},"id":{"type":"string"},"isEntryPoint":{"type":"boolean"},"surfaceId":{"type":"string"}},"required":["capabilityId","createdAt","displayOrder","enabled","endpointSlug","exposedDescription","exposedName","id","isEntryPoint","surfaceId"],"title":"Products_addItemToSurface_Response_201"},"V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationDisplayMode":{"type":"string","enum":["chat","form","document"],"title":"V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationDisplayMode"},"V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationFormConfig":{"type":"object","properties":{"inputSchemaOverrides":{"type":"object","additionalProperties":{"description":"Any type"}},"submitButtonLabel":{"type":"string"},"successMessage":{"type":"string"}},"title":"V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationFormConfig"},"V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationVisibility":{"type":"string","enum":["public","auth-only"],"default":"auth-only","title":"V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationVisibility"},"V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentation":{"type":"object","properties":{"displayIcon":{"type":"string"},"displayLabel":{"type":"string"},"displayMode":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationDisplayMode"},"displayOrder":{"type":"integer","default":0},"formConfig":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationFormConfig"},"isDefault":{"type":"boolean","default":false},"route":{"type":"string"},"visibility":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentationVisibility","default":"auth-only"}},"required":["displayLabel","displayMode","route"],"title":"V1ProductsIdSurfacesSurfaceIdItemsItemIdPutRequestBodyContentApplicationJsonSchemaPresentation"},"Products_updateSurfaceItem_Response_200":{"type":"object","properties":{"capabilityId":{"type":"string"},"config":{"description":"Any type"},"createdAt":{"type":"string"},"displayOrder":{"type":["integer","null"]},"enabled":{"type":"boolean"},"endpointSlug":{"type":["string","null"]},"exposedDescription":{"type":["string","null"]},"exposedName":{"type":["string","null"]},"id":{"type":"string"},"isEntryPoint":{"type":"boolean"},"surfaceId":{"type":"string"}},"required":["capabilityId","createdAt","displayOrder","enabled","endpointSlug","exposedDescription","exposedName","id","isEntryPoint","surfaceId"],"title":"Products_updateSurfaceItem_Response_200"},"Products_removeSurfaceItem_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Products_removeSurfaceItem_Response_200"},"V1ProductsIdSurfacesSurfaceIdKeysPostRequestBodyContentApplicationJsonSchemaEnvironment":{"type":"string","enum":["test","production"],"default":"test","title":"V1ProductsIdSurfacesSurfaceIdKeysPostRequestBodyContentApplicationJsonSchemaEnvironment"},"Products_createSurfaceApiKey_Response_201":{"type":"object","properties":{"createdAt":{"type":"string"},"environment":{"type":"string"},"expiresAt":{"type":["string","null"]},"id":{"type":"string"},"isActive":{"type":"boolean"},"key":{"type":"string"},"keyHint":{"type":["string","null"]},"keyPrefix":{"type":"string"},"name":{"type":["string","null"]},"rateLimitPerDay":{"type":["integer","null"]},"rateLimitPerMinute":{"type":["integer","null"]},"scopes":{"type":"array","items":{"type":"string"}},"surfaceId":{"type":"string"}},"required":["createdAt","environment","expiresAt","id","isActive","key","keyHint","keyPrefix","name","rateLimitPerDay","rateLimitPerMinute","scopes","surfaceId"],"title":"Products_createSurfaceApiKey_Response_201"},"Products_deleteSurfaceApiKey_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Products_deleteSurfaceApiKey_Response_200"},"V1ProductsIdSurfacesSurfaceIdKeysKeyIdRevealGetResponsesContentApplicationJsonSchemaMetadata":{"type":"object","properties":{"createdVia":{"type":["string","null"]},"environment":{"type":"string"},"lifetimeExecutions":{"type":["integer","null"]},"surfaceType":{"type":["string","null"]}},"required":["createdVia","environment","lifetimeExecutions","surfaceType"],"title":"V1ProductsIdSurfacesSurfaceIdKeysKeyIdRevealGetResponsesContentApplicationJsonSchemaMetadata"},"Products_revealDevelopmentSurfaceKey_Response_200":{"type":"object","properties":{"key":{"type":"string"},"metadata":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdKeysKeyIdRevealGetResponsesContentApplicationJsonSchemaMetadata"},"warning":{"type":"string"}},"required":["key","metadata","warning"],"title":"Products_revealDevelopmentSurfaceKey_Response_200"},"V1ProductsIdSurfacesSurfaceIdSchedulesGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"agentId":{"type":["string","null"]},"createdAt":{"type":"string"},"cron":{"type":["string","null"]},"enabled":{"type":"boolean"},"executionOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"flowId":{"type":["string","null"]},"flowName":{"type":["string","null"]},"id":{"type":"string"},"inputs":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"lastRunAt":{"type":["string","null"]},"messages":{"description":"Any type"},"name":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"recordFilter":{"description":"Any type"},"recordIds":{"type":["array","null"],"items":{"type":"string"}},"recordType":{"type":["string","null"]},"runAt":{"type":["string","null"]},"timezone":{"type":["string","null"]},"triggerType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentId","createdAt","cron","enabled","executionOptions","flowId","flowName","id","inputs","lastRunAt","name","nextRunAt","organizationId","productSurfaceId","recordIds","recordType","runAt","timezone","triggerType","updatedAt","userId"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesGetResponsesContentApplicationJsonSchemaDataItems"},"Products_listSchedulesForSurface_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesGetResponsesContentApplicationJsonSchemaDataItems"}}},"required":["data"],"title":"Products_listSchedulesForSurface_Response_200"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaExecutionOptions":{"type":"object","properties":{"chunkSize":{"type":"integer"},"modelOverride":{"type":"string"},"progressFlushSize":{"type":"integer"},"recordConcurrency":{"type":"integer"},"timeoutMs":{"type":"integer"}},"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaExecutionOptions"},"RecordFilterConditionOp":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","between","contains","startsWith","endsWith","in","notIn","isSet","isNotSet","isTrue","isFalse","withinLastDays","olderThanDays"],"title":"RecordFilterConditionOp"},"RecordFilterCondition":{"type":"object","properties":{"field":{"type":"string"},"op":{"$ref":"#/components/schemas/RecordFilterConditionOp"},"value":{"description":"Any type"}},"required":["field","op"],"title":"RecordFilterCondition"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op":{"type":"string","enum":["and","or"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/RecordFilterCondition"}},"op":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op"}},"required":["conditions","op"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems":{"oneOf":[{"$ref":"#/components/schemas/RecordFilterCondition"},{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1"}],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op":{"type":"string","enum":["and","or"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere1":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems"}},"op":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op"}},"required":["conditions","op"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere1"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere":{"oneOf":[{"$ref":"#/components/schemas/RecordFilterCondition"},{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere1"}],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilter":{"type":"object","properties":{"type":{"type":"string"},"where":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere"}},"required":["type"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaRecordFilter"},"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaTriggerType":{"type":"string","enum":["one_time","recurring"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesPostRequestBodyContentApplicationJsonSchemaTriggerType"},"Products_createScheduleForSurface_Response_201":{"type":"object","properties":{"agentId":{"type":["string","null"]},"createdAt":{"type":"string"},"cron":{"type":["string","null"]},"enabled":{"type":"boolean"},"executionOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"flowId":{"type":["string","null"]},"id":{"type":"string"},"inputs":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"lastRunAt":{"type":["string","null"]},"messages":{"description":"Any type"},"name":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"recordFilter":{"description":"Any type"},"recordIds":{"type":["array","null"],"items":{"type":"string"}},"recordType":{"type":["string","null"]},"runAt":{"type":["string","null"]},"timezone":{"type":["string","null"]},"triggerType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentId","createdAt","cron","enabled","executionOptions","flowId","id","inputs","lastRunAt","name","nextRunAt","organizationId","productSurfaceId","recordIds","recordType","runAt","timezone","triggerType","updatedAt","userId"],"title":"Products_createScheduleForSurface_Response_201"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdGetResponsesContentApplicationJsonSchemaRecentRunsItems":{"type":"object","properties":{"batchExecutionId":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"error":{"type":["string","null"]},"id":{"type":"string"},"startedAt":{"type":["string","null"]},"status":{"type":"string"}},"required":["batchExecutionId","completedAt","createdAt","error","id","startedAt","status"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdGetResponsesContentApplicationJsonSchemaRecentRunsItems"},"Products_getScheduleDetails_Response_200":{"type":"object","properties":{"agentId":{"type":["string","null"]},"createdAt":{"type":"string"},"cron":{"type":["string","null"]},"enabled":{"type":"boolean"},"executionOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"flowId":{"type":["string","null"]},"flowName":{"type":["string","null"]},"id":{"type":"string"},"inputs":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"lastRunAt":{"type":["string","null"]},"messages":{"description":"Any type"},"name":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"recentRuns":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdGetResponsesContentApplicationJsonSchemaRecentRunsItems"}},"recordFilter":{"description":"Any type"},"recordIds":{"type":["array","null"],"items":{"type":"string"}},"recordType":{"type":["string","null"]},"runAt":{"type":["string","null"]},"timezone":{"type":["string","null"]},"triggerType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentId","createdAt","cron","enabled","executionOptions","flowId","flowName","id","inputs","lastRunAt","name","nextRunAt","organizationId","productSurfaceId","recentRuns","recordIds","recordType","runAt","timezone","triggerType","updatedAt","userId"],"title":"Products_getScheduleDetails_Response_200"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaExecutionOptions":{"type":"object","properties":{"chunkSize":{"type":"integer"},"modelOverride":{"type":"string"},"progressFlushSize":{"type":"integer"},"recordConcurrency":{"type":"integer"},"timeoutMs":{"type":"integer"}},"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaExecutionOptions"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op":{"type":"string","enum":["and","or"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/RecordFilterCondition"}},"op":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op"}},"required":["conditions","op"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems":{"oneOf":[{"$ref":"#/components/schemas/RecordFilterCondition"},{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1"}],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op":{"type":"string","enum":["and","or"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhere1":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems"}},"op":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op"}},"required":["conditions","op"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhere1"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhere":{"oneOf":[{"$ref":"#/components/schemas/RecordFilterCondition"},{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhere1"}],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhere"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilter":{"type":"object","properties":{"type":{"type":"string"},"where":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilterWhere"}},"required":["type"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaRecordFilter"},"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaTriggerType":{"type":"string","enum":["one_time","recurring"],"title":"V1ProductsIdSurfacesSurfaceIdSchedulesScheduleIdPutRequestBodyContentApplicationJsonSchemaTriggerType"},"Products_updateSchedule_Response_200":{"type":"object","properties":{"agentId":{"type":["string","null"]},"createdAt":{"type":"string"},"cron":{"type":["string","null"]},"enabled":{"type":"boolean"},"executionOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"flowId":{"type":["string","null"]},"id":{"type":"string"},"inputs":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"lastRunAt":{"type":["string","null"]},"messages":{"description":"Any type"},"name":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"recordFilter":{"description":"Any type"},"recordIds":{"type":["array","null"],"items":{"type":"string"}},"recordType":{"type":["string","null"]},"runAt":{"type":["string","null"]},"timezone":{"type":["string","null"]},"triggerType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentId","createdAt","cron","enabled","executionOptions","flowId","id","inputs","lastRunAt","name","nextRunAt","organizationId","productSurfaceId","recordIds","recordType","runAt","timezone","triggerType","updatedAt","userId"],"title":"Products_updateSchedule_Response_200"},"Products_deleteSchedule_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Products_deleteSchedule_Response_200"},"Products_pauseSchedule_Response_200":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"],"title":"Products_pauseSchedule_Response_200"},"Products_resumeSchedule_Response_200":{"type":"object","properties":{"status":{"type":"string"}},"required":["status"],"title":"Products_resumeSchedule_Response_200"},"Products_runScheduleImmediately_Response_200":{"type":"object","properties":{"batchExecutionId":{"type":"string"},"recordCount":{"type":"integer"},"status":{"type":"string"}},"required":["batchExecutionId","recordCount","status"],"title":"Products_runScheduleImmediately_Response_200"},"V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaDataItemsStatus":{"type":"string","enum":["intake","generating","assembling","complete","failed"],"title":"V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaDataItemsStatus"},"V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"assemblyState":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"catalogVersion":{"type":["string","null"]},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"id":{"type":"string"},"organizationId":{"type":["string","null"]},"plan":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"prd":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"productObject":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"productObjectHash":{"type":["string","null"]},"schemaVersion":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaDataItemsStatus"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["assemblyState","catalogVersion","createdAt","expiresAt","id","organizationId","plan","prd","productObject","productObjectHash","schemaVersion","status","updatedAt","userId"],"title":"V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaDataItems"},"V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"limit":{"type":"number","format":"double"},"offset":{"type":"number","format":"double"},"total":{"type":"number","format":"double"}},"required":["limit","offset","total"],"title":"V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaPagination"},"Product Generation_listGenerationSessions_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/V1ProductsGenerationSessionsGetResponsesContentApplicationJsonSchemaPagination"}},"required":["data","pagination"],"title":"Product Generation_listGenerationSessions_Response_200"},"V1ProductsGenerationSessionsPostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["intake","generating","assembling","complete","failed"],"title":"V1ProductsGenerationSessionsPostResponsesContentApplicationJsonSchemaStatus"},"Product Generation_createAGenerationSession_Response_201":{"type":"object","properties":{"assemblyState":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"catalogVersion":{"type":["string","null"]},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"id":{"type":"string"},"organizationId":{"type":["string","null"]},"plan":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"prd":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"productObject":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"productObjectHash":{"type":["string","null"]},"schemaVersion":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/V1ProductsGenerationSessionsPostResponsesContentApplicationJsonSchemaStatus"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["assemblyState","catalogVersion","createdAt","expiresAt","id","organizationId","plan","prd","productObject","productObjectHash","schemaVersion","status","updatedAt","userId"],"title":"Product Generation_createAGenerationSession_Response_201"},"V1ProductsGenerationSessionsIdGetResponsesContentApplicationJsonSchemaEventsItems":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"message":{"type":["string","null"]},"organizationId":{"type":["string","null"]},"payload":{"type":"object","additionalProperties":{"description":"Any type"}},"sessionId":{"type":"string"},"stage":{"type":["string","null"]},"type":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","message","organizationId","payload","sessionId","stage","type","userId"],"title":"V1ProductsGenerationSessionsIdGetResponsesContentApplicationJsonSchemaEventsItems"},"V1ProductsGenerationSessionsIdGetResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["intake","generating","assembling","complete","failed"],"title":"V1ProductsGenerationSessionsIdGetResponsesContentApplicationJsonSchemaStatus"},"Product Generation_getSessionDetails_Response_200":{"type":"object","properties":{"assemblyState":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"catalogVersion":{"type":["string","null"]},"createdAt":{"type":"string"},"events":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsGenerationSessionsIdGetResponsesContentApplicationJsonSchemaEventsItems"}},"expiresAt":{"type":"string"},"id":{"type":"string"},"organizationId":{"type":["string","null"]},"plan":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"prd":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"productObject":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"productObjectHash":{"type":["string","null"]},"schemaVersion":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/V1ProductsGenerationSessionsIdGetResponsesContentApplicationJsonSchemaStatus"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["assemblyState","catalogVersion","createdAt","events","expiresAt","id","organizationId","plan","prd","productObject","productObjectHash","schemaVersion","status","updatedAt","userId"],"title":"Product Generation_getSessionDetails_Response_200"},"Product Generation_deleteAGenerationSession_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Product Generation_deleteAGenerationSession_Response_200"},"V1ProductsGenerationSessionsIdPatchRequestBodyContentApplicationJsonSchemaStatus":{"type":"string","enum":["intake","generating","assembling","complete","failed"],"title":"V1ProductsGenerationSessionsIdPatchRequestBodyContentApplicationJsonSchemaStatus"},"V1ProductsGenerationSessionsIdPatchResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["intake","generating","assembling","complete","failed"],"title":"V1ProductsGenerationSessionsIdPatchResponsesContentApplicationJsonSchemaStatus"},"Product Generation_updateAGenerationSession_Response_200":{"type":"object","properties":{"assemblyState":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"catalogVersion":{"type":["string","null"]},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"id":{"type":"string"},"organizationId":{"type":["string","null"]},"plan":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"prd":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"productObject":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"productObjectHash":{"type":["string","null"]},"schemaVersion":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/V1ProductsGenerationSessionsIdPatchResponsesContentApplicationJsonSchemaStatus"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["assemblyState","catalogVersion","createdAt","expiresAt","id","organizationId","plan","prd","productObject","productObjectHash","schemaVersion","status","updatedAt","userId"],"title":"Product Generation_updateAGenerationSession_Response_200"},"Product Generation_appendAnEventToASession_Response_201":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"message":{"type":["string","null"]},"organizationId":{"type":["string","null"]},"payload":{"type":"object","additionalProperties":{"description":"Any type"}},"sessionId":{"type":"string"},"stage":{"type":["string","null"]},"type":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","message","organizationId","payload","sessionId","stage","type","userId"],"title":"Product Generation_appendAnEventToASession_Response_201"},"ConfigureWebhookFromDocumentationRequestNotImplementedError":{"type":"object","properties":{"error":{"type":"string"},"eventHint":{"type":["string","null"]},"message":{"type":"string"},"url":{"type":"string"}},"required":["error","eventHint","message","url"],"title":"ConfigureWebhookFromDocumentationRequestNotImplementedError"},"Webhook Management_inferSchemaFromJsonPayload_Response_200":{"type":"object","properties":{"jsonSchema":{"description":"Any type"},"learningState":{"type":"string"},"mappingSuggestions":{"type":"array","items":{"description":"Any type"}},"schema":{"description":"Any type"}},"required":["learningState","mappingSuggestions"],"title":"Webhook Management_inferSchemaFromJsonPayload_Response_200"},"Webhook Management_toggleWebhookLearningMode_Response_200":{"type":"object","properties":{"learningState":{"type":"string"},"observationCount":{"type":"number","format":"double"}},"required":["learningState","observationCount"],"title":"Webhook Management_toggleWebhookLearningMode_Response_200"},"V1ProductsIdSurfacesSurfaceIdWebhookMappingsGetResponsesContentApplicationJsonSchemaItemsItems":{"type":"object","properties":{"capabilityId":{"type":"string"},"exposedName":{"type":["string","null"]},"fieldMappings":{"type":"array","items":{"description":"Any type"}},"id":{"type":"string"}},"required":["capabilityId","exposedName","fieldMappings","id"],"title":"V1ProductsIdSurfacesSurfaceIdWebhookMappingsGetResponsesContentApplicationJsonSchemaItemsItems"},"Webhook Management_getWebhookFieldMappings_Response_200":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdWebhookMappingsGetResponsesContentApplicationJsonSchemaItemsItems"}}},"required":["items"],"title":"Webhook Management_getWebhookFieldMappings_Response_200"},"V1ProductsIdSurfacesSurfaceIdWebhookMappingsPutRequestBodyContentApplicationJsonSchemaMappingsItemsType":{"type":"string","enum":["string","number","boolean","json"],"title":"V1ProductsIdSurfacesSurfaceIdWebhookMappingsPutRequestBodyContentApplicationJsonSchemaMappingsItemsType"},"V1ProductsIdSurfacesSurfaceIdWebhookMappingsPutRequestBodyContentApplicationJsonSchemaMappingsItems":{"type":"object","properties":{"defaultValue":{"description":"Any type"},"source":{"type":"string"},"target":{"type":"string"},"transform":{"type":"string"},"type":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdWebhookMappingsPutRequestBodyContentApplicationJsonSchemaMappingsItemsType"}},"required":["source","target"],"title":"V1ProductsIdSurfacesSurfaceIdWebhookMappingsPutRequestBodyContentApplicationJsonSchemaMappingsItems"},"Webhook Management_updateWebhookFieldMappings_Response_200":{"type":"object","properties":{"fieldMappings":{"type":"array","items":{"description":"Any type"}},"id":{"type":"string"}},"required":["fieldMappings","id"],"title":"Webhook Management_updateWebhookFieldMappings_Response_200"},"V1ProductsIdSurfacesSurfaceIdWebhookObservationsGetResponsesContentApplicationJsonSchemaObservationsItems":{"type":"object","properties":{},"title":"V1ProductsIdSurfacesSurfaceIdWebhookObservationsGetResponsesContentApplicationJsonSchemaObservationsItems"},"Webhook Management_listWebhookObservations_Response_200":{"type":"object","properties":{"learningState":{"type":"string"},"observationCount":{"type":"number","format":"double"},"observations":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsIdSurfacesSurfaceIdWebhookObservationsGetResponsesContentApplicationJsonSchemaObservationsItems"}}},"required":["learningState","observationCount","observations"],"title":"Webhook Management_listWebhookObservations_Response_200"},"Webhook Management_clearWebhookObservations_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Webhook Management_clearWebhookObservations_Response_200"},"Webhook Management_getEventRoutingConfiguration_Response_200":{"type":"object","properties":{"eventRouting":{"description":"Any type"}},"title":"Webhook Management_getEventRoutingConfiguration_Response_200"},"Webhook Management_updateEventRoutingConfiguration_Response_200":{"type":"object","properties":{"eventRouting":{"description":"Any type"}},"title":"Webhook Management_updateEventRoutingConfiguration_Response_200"},"Webhook Management_getWebhookSchema_Response_200":{"type":"object","properties":{"confirmedSchema":{"description":"Any type"},"learningState":{"type":"string"},"proposedSchema":{"description":"Any type"},"schemaConfirmedAt":{"type":["string","null"]}},"required":["learningState","schemaConfirmedAt"],"title":"Webhook Management_getWebhookSchema_Response_200"},"V1ProductsIdSurfacesSurfaceIdWebhookSchemaPostRequestBodyContentApplicationJsonSchemaFormat":{"type":"string","enum":["asyncapi","jsonschema","raw"],"title":"V1ProductsIdSurfacesSurfaceIdWebhookSchemaPostRequestBodyContentApplicationJsonSchemaFormat"},"Webhook Management_uploadWebhookSchema_Response_200":{"type":"object","properties":{"learningState":{"type":"string"},"proposedSchema":{"description":"Any type"}},"required":["learningState"],"title":"Webhook Management_uploadWebhookSchema_Response_200"},"Webhook Management_confirmProposedSchema_Response_200":{"type":"object","properties":{"confirmedSchema":{"description":"Any type"},"learningState":{"type":"string"},"schemaConfirmedAt":{"type":"string"}},"required":["learningState","schemaConfirmedAt"],"title":"Webhook Management_confirmProposedSchema_Response_200"},"A2AStreamEventOneOf0Id":{"oneOf":[{"type":"string"},{"type":"number","format":"double"}],"title":"A2AStreamEventOneOf0Id"},"A2AStreamEventOneOf0Jsonrpc":{"type":"string","enum":["2.0"],"title":"A2AStreamEventOneOf0Jsonrpc"},"A2APart":{"type":"object","properties":{"data":{"description":"Any type"},"filename":{"type":"string"},"mediaType":{"type":"string"},"raw":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"}},"title":"A2APart"},"A2AMessageRole":{"type":"string","enum":["ROLE_USER","ROLE_AGENT"],"title":"A2AMessageRole"},"A2AMessage":{"type":"object","properties":{"contextId":{"type":"string"},"messageId":{"type":"string"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/A2APart"}},"role":{"$ref":"#/components/schemas/A2AMessageRole"},"taskId":{"type":"string"}},"required":["parts","role"],"title":"A2AMessage"},"A2AStreamEventOneOf0ResultStatusUpdateStatusState":{"type":"string","enum":["TASK_STATE_SUBMITTED","TASK_STATE_WORKING","TASK_STATE_COMPLETED","TASK_STATE_FAILED","TASK_STATE_CANCELED","TASK_STATE_INPUT_REQUIRED","TASK_STATE_AUTH_REQUIRED","TASK_STATE_REJECTED","TASK_STATE_UNSPECIFIED"],"title":"A2AStreamEventOneOf0ResultStatusUpdateStatusState"},"A2AStreamEventOneOf0ResultStatusUpdateStatus":{"type":"object","properties":{"message":{"$ref":"#/components/schemas/A2AMessage"},"state":{"$ref":"#/components/schemas/A2AStreamEventOneOf0ResultStatusUpdateStatusState"},"timestamp":{"type":"string"}},"required":["state"],"title":"A2AStreamEventOneOf0ResultStatusUpdateStatus"},"A2AStreamEventOneOf0ResultStatusUpdate":{"type":"object","properties":{"contextId":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"status":{"$ref":"#/components/schemas/A2AStreamEventOneOf0ResultStatusUpdateStatus"},"taskId":{"type":"string"}},"required":["contextId","status","taskId"],"title":"A2AStreamEventOneOf0ResultStatusUpdate"},"A2AStreamEventOneOf0Result":{"type":"object","properties":{"statusUpdate":{"$ref":"#/components/schemas/A2AStreamEventOneOf0ResultStatusUpdate"}},"required":["statusUpdate"],"title":"A2AStreamEventOneOf0Result"},"A2AStreamEvent0":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/A2AStreamEventOneOf0Id"},"jsonrpc":{"$ref":"#/components/schemas/A2AStreamEventOneOf0Jsonrpc"},"result":{"$ref":"#/components/schemas/A2AStreamEventOneOf0Result"}},"required":["jsonrpc","result"],"title":"A2AStreamEvent0"},"A2AStreamEventOneOf1Id":{"oneOf":[{"type":"string"},{"type":"number","format":"double"}],"title":"A2AStreamEventOneOf1Id"},"A2AStreamEventOneOf1Jsonrpc":{"type":"string","enum":["2.0"],"title":"A2AStreamEventOneOf1Jsonrpc"},"A2AArtifact":{"type":"object","properties":{"artifactId":{"type":"string"},"description":{"type":"string"},"name":{"type":"string"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/A2APart"}}},"required":["artifactId","parts"],"title":"A2AArtifact"},"A2AStreamEventOneOf1ResultArtifactUpdate":{"type":"object","properties":{"append":{"type":"boolean"},"artifact":{"$ref":"#/components/schemas/A2AArtifact"},"contextId":{"type":"string"},"lastChunk":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"taskId":{"type":"string"}},"required":["artifact","contextId","taskId"],"title":"A2AStreamEventOneOf1ResultArtifactUpdate"},"A2AStreamEventOneOf1Result":{"type":"object","properties":{"artifactUpdate":{"$ref":"#/components/schemas/A2AStreamEventOneOf1ResultArtifactUpdate"}},"required":["artifactUpdate"],"title":"A2AStreamEventOneOf1Result"},"A2AStreamEvent1":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/A2AStreamEventOneOf1Id"},"jsonrpc":{"$ref":"#/components/schemas/A2AStreamEventOneOf1Jsonrpc"},"result":{"$ref":"#/components/schemas/A2AStreamEventOneOf1Result"}},"required":["jsonrpc","result"],"title":"A2AStreamEvent1"},"A2AJsonRpcError":{"type":"object","properties":{"code":{"type":"number","format":"double"},"data":{"type":"array","items":{"description":"Any type"}},"message":{"type":"string"}},"required":["code","message"],"title":"A2AJsonRpcError"},"A2AStreamEventOneOf2Id":{"oneOf":[{"type":"string"},{"type":"number","format":"double"}],"title":"A2AStreamEventOneOf2Id"},"A2AStreamEventOneOf2Jsonrpc":{"type":"string","enum":["2.0"],"title":"A2AStreamEventOneOf2Jsonrpc"},"A2AStreamEvent2":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/A2AJsonRpcError"},"id":{"$ref":"#/components/schemas/A2AStreamEventOneOf2Id"},"jsonrpc":{"$ref":"#/components/schemas/A2AStreamEventOneOf2Jsonrpc"}},"required":["error","jsonrpc"],"title":"A2AStreamEvent2"},"A2AStreamEvent":{"oneOf":[{"$ref":"#/components/schemas/A2AStreamEvent0"},{"$ref":"#/components/schemas/A2AStreamEvent1"},{"$ref":"#/components/schemas/A2AStreamEvent2"}],"title":"A2AStreamEvent"},"V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaAuthentication":{"type":"object","properties":{},"title":"V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaAuthentication"},"V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaCapabilities":{"type":"object","properties":{},"title":"V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaCapabilities"},"V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaProvider":{"type":"object","properties":{"organization":{"type":"string"},"url":{"type":"string"}},"required":["organization","url"],"title":"V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaProvider"},"V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaSkillsItems":{"type":"object","properties":{},"title":"V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaSkillsItems"},"A2A_getA2AAgentCard_Response_200":{"type":"object","properties":{"authentication":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaAuthentication"},"capabilities":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaCapabilities"},"defaultInputModes":{"type":"array","items":{"type":"string"}},"defaultOutputModes":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"iconUrl":{"type":"string"},"name":{"type":"string"},"protocolVersion":{"type":"string"},"provider":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaProvider"},"skills":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdA2AWellKnownAgentCardJsonGetResponsesContentApplicationJsonSchemaSkillsItems"}},"url":{"type":"string"},"version":{"type":"string"}},"required":["authentication","capabilities","defaultInputModes","defaultOutputModes","description","name","protocolVersion","skills","url","version"],"title":"A2A_getA2AAgentCard_Response_200"},"V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaA2AAuthentication":{"type":"object","properties":{"format":{"type":"string"},"header":{"type":"string"},"type":{"type":"string"}},"required":["format","header","type"],"title":"V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaA2AAuthentication"},"V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaA2A":{"type":"object","properties":{"agentCard":{"type":"string"},"authentication":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaA2AAuthentication"},"endpoint":{"type":"string"},"protocolVersion":{"type":"string"}},"required":["agentCard","authentication","endpoint","protocolVersion"],"title":"V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaA2A"},"V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaProduct":{"type":"object","properties":{"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["description","id","name"],"title":"V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaProduct"},"A2A_getA2ASurfaceInfo_Response_200":{"type":"object","properties":{"a2a":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaA2A"},"product":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdA2AInfoGetResponsesContentApplicationJsonSchemaProduct"}},"required":["a2a","product"],"title":"A2A_getA2ASurfaceInfo_Response_200"},"V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItemsSource":{"type":"string","enum":["observed","probe"],"title":"V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItemsSource"},"V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItemsStatus":{"type":"string","enum":["admitted","disabled","not_in_allowlist"],"title":"V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItemsStatus"},"V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItems":{"type":"object","properties":{"description":{"type":["string","null"]},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"parametersSchema":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"reportedPageOrigin":{"type":["string","null"]},"source":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItemsSource"},"status":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItemsStatus"},"toolName":{"type":"string"}},"required":["description","firstSeenAt","lastSeenAt","parametersSchema","reportedPageOrigin","source","status","toolName"],"title":"V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItems"},"V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItems":{"type":"object","properties":{"requestOrigin":{"type":"string"},"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItemsToolsItems"}}},"required":["requestOrigin","tools"],"title":"V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItems"},"Surfaces_listDiscoveredWebMcpTools_Response_200":{"type":"object","properties":{"origins":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdDiscoveredToolsGetResponsesContentApplicationJsonSchemaOriginsItems"}},"windowDays":{"type":"number","format":"double"}},"required":["origins","windowDays"],"title":"Surfaces_listDiscoveredWebMcpTools_Response_200"},"ListDiscoveredWebMcpToolsRequestUnauthorizedError":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"title":"ListDiscoveredWebMcpToolsRequestUnauthorizedError"},"ListDiscoveredWebMcpToolsRequestForbiddenError":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"title":"ListDiscoveredWebMcpToolsRequestForbiddenError"},"ListDiscoveredWebMcpToolsRequestNotFoundError":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"title":"ListDiscoveredWebMcpToolsRequestNotFoundError"},"V1ProductsProductIdSurfacesSurfaceIdObservedOriginsGetResponsesContentApplicationJsonSchemaOriginsItems":{"type":"object","properties":{"allowed":{"type":"boolean"},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"origin":{"type":"string"}},"required":["allowed","firstSeenAt","lastSeenAt","origin"],"title":"V1ProductsProductIdSurfacesSurfaceIdObservedOriginsGetResponsesContentApplicationJsonSchemaOriginsItems"},"Surfaces_listObservedPageOrigins_Response_200":{"type":"object","properties":{"origins":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdObservedOriginsGetResponsesContentApplicationJsonSchemaOriginsItems"}},"windowDays":{"type":"number","format":"double"}},"required":["origins","windowDays"],"title":"Surfaces_listObservedPageOrigins_Response_200"},"ListObservedPageOriginsRequestUnauthorizedError":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"title":"ListObservedPageOriginsRequestUnauthorizedError"},"ListObservedPageOriginsRequestForbiddenError":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"title":"ListObservedPageOriginsRequestForbiddenError"},"ListObservedPageOriginsRequestNotFoundError":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"title":"ListObservedPageOriginsRequestNotFoundError"},"V1SurfacesGetResponsesContentApplicationJsonSchemaDataItemsInbound":{"type":"object","properties":{"appId":{"type":"string"},"continueThreads":{"type":"boolean"},"integrationId":{"type":"string"},"listenChannels":{"type":"array","items":{"type":"string"}},"listenDms":{"type":"boolean"},"teamId":{"type":"string"},"teamName":{"type":"string"},"triggerOnMention":{"type":"boolean"}},"title":"V1SurfacesGetResponsesContentApplicationJsonSchemaDataItemsInbound"},"V1SurfacesGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"createdAt":{"type":"string"},"environment":{"type":"string"},"id":{"type":"string"},"inbound":{"oneOf":[{"$ref":"#/components/schemas/V1SurfacesGetResponsesContentApplicationJsonSchemaDataItemsInbound"},{"type":"null"}]},"name":{"type":"string"},"productId":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","environment","id","inbound","name","productId","status","type","updatedAt"],"title":"V1SurfacesGetResponsesContentApplicationJsonSchemaDataItems"},"Surfaces_listSurfaces_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1SurfacesGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Surfaces_listSurfaces_Response_200"},"V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaAuthentication":{"type":"object","properties":{"description":{"type":"string"},"required":{"type":"boolean"},"type":{"type":"string"}},"required":["required","type"],"title":"V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaAuthentication"},"V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaCapabilities":{"type":"object","properties":{"logging":{"type":"boolean"},"prompts":{"type":"boolean"},"resources":{"type":"boolean"},"tools":{"type":"boolean"}},"required":["logging","prompts","resources","tools"],"title":"V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaCapabilities"},"V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaToolsItems":{"type":"object","properties":{"description":{"type":"string"},"inputSchema":{"description":"Any type"},"name":{"type":"string"}},"required":["description","name"],"title":"V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaToolsItems"},"Product MCP_mcpManifest_Response_200":{"type":"object","properties":{"authentication":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaAuthentication"},"capabilities":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaCapabilities"},"description":{"type":"string"},"icons":{"type":"array","items":{"description":"Any type"}},"name":{"type":"string"},"protocolVersion":{"type":"string"},"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdMcpWellKnownMcpJsonGetResponsesContentApplicationJsonSchemaToolsItems"}},"url":{"type":"string"},"version":{"type":"string"}},"required":["authentication","capabilities","description","name","protocolVersion","tools","url","version"],"title":"Product MCP_mcpManifest_Response_200"},"Product MCP_oAuthProtectedResourceMetadata_Response_200":{"type":"object","properties":{"authorization_servers":{"type":"array","items":{"type":"string"}},"bearer_methods_supported":{"type":"array","items":{"type":"string"}},"resource":{"type":"string"}},"required":["authorization_servers","bearer_methods_supported","resource"],"title":"Product MCP_oAuthProtectedResourceMetadata_Response_200"},"V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaMcpAuthentication":{"type":"object","properties":{"format":{"type":"string"},"header":{"type":"string"},"type":{"type":"string"}},"required":["format","header","type"],"title":"V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaMcpAuthentication"},"V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaMcp":{"type":"object","properties":{"authentication":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaMcpAuthentication"},"endpoint":{"type":"string"},"manifest":{"type":"string"},"protocolVersion":{"type":"string"}},"required":["authentication","endpoint","manifest","protocolVersion"],"title":"V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaMcp"},"V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaProduct":{"type":"object","properties":{"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["description","id","name"],"title":"V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaProduct"},"Product MCP_mcpSurfaceInfo_Response_200":{"type":"object","properties":{"mcp":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaMcp"},"product":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdMcpInfoGetResponsesContentApplicationJsonSchemaProduct"}},"required":["mcp","product"],"title":"Product MCP_mcpSurfaceInfo_Response_200"},"Product MCP_executeAnMcpSurfaceToolDashboardTest_Response_200":{"type":"object","properties":{"duration":{"type":"number","format":"double"},"isError":{"type":"boolean"},"success":{"type":"boolean"},"text":{"type":"string"}},"required":["duration","isError","success","text"],"title":"Product MCP_executeAnMcpSurfaceToolDashboardTest_Response_200"},"V1ProductsProductIdSurfacesSurfaceIdMcpToolsTestPostResponsesContentApplicationJsonSchemaSurface":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"title":"V1ProductsProductIdSurfacesSurfaceIdMcpToolsTestPostResponsesContentApplicationJsonSchemaSurface"},"V1ProductsProductIdSurfacesSurfaceIdMcpToolsTestPostResponsesContentApplicationJsonSchemaToolsItems":{"type":"object","properties":{"description":{"type":"string"},"inputSchema":{"description":"Any type"},"name":{"type":"string"}},"required":["description","name"],"title":"V1ProductsProductIdSurfacesSurfaceIdMcpToolsTestPostResponsesContentApplicationJsonSchemaToolsItems"},"Product MCP_listMcpSurfaceToolsDashboardTest_Response_200":{"type":"object","properties":{"success":{"type":"boolean"},"surface":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdMcpToolsTestPostResponsesContentApplicationJsonSchemaSurface"},"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1ProductsProductIdSurfacesSurfaceIdMcpToolsTestPostResponsesContentApplicationJsonSchemaToolsItems"}}},"required":["success","surface","tools"],"title":"Product MCP_listMcpSurfaceToolsDashboardTest_Response_200"},"V1PromptsGetParametersDirection":{"type":"string","enum":["next","prev"],"description":"Pagination direction","title":"V1PromptsGetParametersDirection"},"V1PromptsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"createdAt":{"type":"string"},"estimatedCost":{"type":["string","null"]},"estimatedTokens":{"type":["integer","null"]},"id":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"responseFormat":{"type":"string"},"systemPrompt":{"type":["string","null"]},"text":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"},"userPrompt":{"type":["string","null"]}},"required":["createdAt","estimatedCost","estimatedTokens","id","model","name","responseFormat","text","updatedAt"],"title":"V1PromptsGetResponsesContentApplicationJsonSchemaDataItems"},"Prompts_listPrompts_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1PromptsGetResponsesContentApplicationJsonSchemaDataItems"}},"filtersApplied":{"type":"object","additionalProperties":{"description":"Any type"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data"],"title":"Prompts_listPrompts_Response_200"},"V1PromptsPostRequestBodyContentApplicationJsonSchemaResponseFormat":{"type":"string","enum":["json","markdown","text","html","xml"],"default":"json","title":"V1PromptsPostRequestBodyContentApplicationJsonSchemaResponseFormat"},"Prompts_createAPrompt_Response_201":{"type":"object","properties":{"createdAt":{"type":"string"},"estimatedCost":{"type":["string","null"]},"estimatedTokens":{"type":["integer","null"]},"id":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"responseFormat":{"type":"string"},"systemPrompt":{"type":["string","null"]},"text":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"},"userPrompt":{"type":["string","null"]}},"required":["createdAt","estimatedCost","estimatedTokens","id","model","name","organizationId","responseFormat","text","updatedAt","userId"],"title":"Prompts_createAPrompt_Response_201"},"V1PromptsIdGetResponsesContentApplicationJsonSchemaFlowsItems":{"type":"object","properties":{"flowId":{"type":"string"},"flowName":{"type":"string"},"order":{"type":"integer"}},"required":["flowId","flowName","order"],"title":"V1PromptsIdGetResponsesContentApplicationJsonSchemaFlowsItems"},"Prompts_getPromptDetails_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"estimatedCost":{"type":["string","null"]},"estimatedTokens":{"type":["integer","null"]},"flowCount":{"type":"integer"},"flowId":{"type":["string","null"]},"flowName":{"type":["string","null"]},"flows":{"type":"array","items":{"$ref":"#/components/schemas/V1PromptsIdGetResponsesContentApplicationJsonSchemaFlowsItems"}},"id":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"},"responseFormat":{"type":"string"},"text":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","estimatedCost","estimatedTokens","flowCount","flowId","flowName","flows","id","model","name","responseFormat","text","updatedAt","userId"],"title":"Prompts_getPromptDetails_Response_200"},"V1PromptsIdPutRequestBodyContentApplicationJsonSchemaResponseFormat":{"type":"string","enum":["json","markdown","text","html","xml"],"default":"json","title":"V1PromptsIdPutRequestBodyContentApplicationJsonSchemaResponseFormat"},"Prompts_updateAPrompt_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"estimatedCost":{"type":["string","null"]},"estimatedTokens":{"type":["integer","null"]},"id":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"responseFormat":{"type":"string"},"systemPrompt":{"type":["string","null"]},"text":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"},"userPrompt":{"type":["string","null"]}},"required":["createdAt","estimatedCost","estimatedTokens","id","model","name","organizationId","responseFormat","text","updatedAt","userId"],"title":"Prompts_updateAPrompt_Response_200"},"V1ProviderKeysGetResponsesContentApplicationJsonSchemaProviderKeysItems":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"isActive":{"type":"boolean"},"isDefault":{"type":"boolean"},"keyPreview":{"type":["string","null"]},"lastUsedAt":{"type":["string","null"]},"name":{"type":"string"},"provider":{"type":"string"},"settings":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"updatedAt":{"type":"string"},"usageCount":{"type":"number","format":"double"}},"required":["createdAt","id","isActive","isDefault","keyPreview","lastUsedAt","name","provider","updatedAt","usageCount"],"title":"V1ProviderKeysGetResponsesContentApplicationJsonSchemaProviderKeysItems"},"Provider Keys_listProviderKeys_Response_200":{"type":"object","properties":{"providerKeys":{"type":"array","items":{"$ref":"#/components/schemas/V1ProviderKeysGetResponsesContentApplicationJsonSchemaProviderKeysItems"}}},"required":["providerKeys"],"title":"Provider Keys_listProviderKeys_Response_200"},"V1ProviderKeysPostRequestBodyContentApplicationJsonSchemaProvider":{"type":"string","enum":["openai","anthropic","google","xai","togetherai","mixlayer","vertex","vertex-anthropic","bedrock","weaviate","vectorize","browser-rendering","tinfoil","vercel","generic-openai","braintrust"],"title":"V1ProviderKeysPostRequestBodyContentApplicationJsonSchemaProvider"},"V1ProviderKeysPostResponsesContentApplicationJsonSchemaProviderKey":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"isActive":{"type":"boolean"},"isDefault":{"type":"boolean"},"keyPreview":{"type":["string","null"]},"lastUsedAt":{"type":["string","null"]},"name":{"type":"string"},"provider":{"type":"string"},"settings":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"updatedAt":{"type":"string"},"usageCount":{"type":"number","format":"double"}},"required":["createdAt","id","isActive","isDefault","keyPreview","lastUsedAt","name","provider","updatedAt","usageCount"],"title":"V1ProviderKeysPostResponsesContentApplicationJsonSchemaProviderKey"},"Provider Keys_createAProviderKey_Response_201":{"type":"object","properties":{"providerKey":{"$ref":"#/components/schemas/V1ProviderKeysPostResponsesContentApplicationJsonSchemaProviderKey"}},"required":["providerKey"],"title":"Provider Keys_createAProviderKey_Response_201"},"V1ProviderKeysDiscoverModelsPostResponsesContentApplicationJsonSchemaModelsItems":{"type":"object","properties":{"id":{"type":"string"},"ownedBy":{"type":"string"}},"required":["id"],"title":"V1ProviderKeysDiscoverModelsPostResponsesContentApplicationJsonSchemaModelsItems"},"Provider Keys_discoverModelsFromEndpoint_Response_200":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/V1ProviderKeysDiscoverModelsPostResponsesContentApplicationJsonSchemaModelsItems"}}},"required":["models"],"title":"Provider Keys_discoverModelsFromEndpoint_Response_200"},"V1ProviderKeysProviderProviderGetResponsesContentApplicationJsonSchemaProviderKeysItems":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"isActive":{"type":"boolean"},"isDefault":{"type":"boolean"},"keyPreview":{"type":["string","null"]},"lastUsedAt":{"type":["string","null"]},"name":{"type":"string"},"provider":{"type":"string"},"settings":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"updatedAt":{"type":"string"},"usageCount":{"type":"number","format":"double"}},"required":["createdAt","id","isActive","isDefault","keyPreview","lastUsedAt","name","provider","updatedAt","usageCount"],"title":"V1ProviderKeysProviderProviderGetResponsesContentApplicationJsonSchemaProviderKeysItems"},"Provider Keys_listProviderKeysByProvider_Response_200":{"type":"object","properties":{"providerKeys":{"type":"array","items":{"$ref":"#/components/schemas/V1ProviderKeysProviderProviderGetResponsesContentApplicationJsonSchemaProviderKeysItems"}}},"required":["providerKeys"],"title":"Provider Keys_listProviderKeysByProvider_Response_200"},"Provider Keys_deleteAProviderKey_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Provider Keys_deleteAProviderKey_Response_200"},"V1ProviderKeysIdPatchResponsesContentApplicationJsonSchemaProviderKey":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"isActive":{"type":"boolean"},"isDefault":{"type":"boolean"},"keyPreview":{"type":["string","null"]},"lastUsedAt":{"type":["string","null"]},"name":{"type":"string"},"provider":{"type":"string"},"settings":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"updatedAt":{"type":"string"},"usageCount":{"type":"number","format":"double"}},"required":["createdAt","id","isActive","isDefault","keyPreview","lastUsedAt","name","provider","updatedAt","usageCount"],"title":"V1ProviderKeysIdPatchResponsesContentApplicationJsonSchemaProviderKey"},"Provider Keys_updateAProviderKey_Response_200":{"type":"object","properties":{"providerKey":{"$ref":"#/components/schemas/V1ProviderKeysIdPatchResponsesContentApplicationJsonSchemaProviderKey"}},"required":["providerKey"],"title":"Provider Keys_updateAProviderKey_Response_200"},"V1ProviderKeysIdDiscoverModelsPostResponsesContentApplicationJsonSchemaModelsItems":{"type":"object","properties":{"id":{"type":"string"},"ownedBy":{"type":"string"}},"required":["id"],"title":"V1ProviderKeysIdDiscoverModelsPostResponsesContentApplicationJsonSchemaModelsItems"},"Provider Keys_discoverModelsFromExistingKey_Response_200":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/V1ProviderKeysIdDiscoverModelsPostResponsesContentApplicationJsonSchemaModelsItems"}}},"required":["models"],"title":"Provider Keys_discoverModelsFromExistingKey_Response_200"},"V1ProviderKeysIdSyncModelsPostRequestBodyContentApplicationJsonSchemaModelsItems":{"type":"object","properties":{"displayName":{"type":"string"},"id":{"type":"string"},"inputCostPer1kTokens":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer"},"outputCostPer1kTokens":{"type":"number","format":"double"},"supportedResponseFormats":{"type":"array","items":{"type":"string"}},"supportsStreaming":{"type":"boolean"}},"required":["id"],"title":"V1ProviderKeysIdSyncModelsPostRequestBodyContentApplicationJsonSchemaModelsItems"},"Provider Keys_syncModelsForAProviderKey_Response_200":{"type":"object","properties":{"success":{"type":"boolean"},"syncedCount":{"type":"number","format":"double"}},"required":["success","syncedCount"],"title":"Provider Keys_syncModelsForAProviderKey_Response_200"},"V1ProviderStatusGetResponsesContentApplicationJsonSchemaEmbeddingModels":{"type":"object","properties":{"capabilities":{"type":"object","additionalProperties":{"description":"Any type"}},"configured":{"type":"boolean"},"integrationId":{"type":"string"},"lastUsed":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["configured"],"title":"V1ProviderStatusGetResponsesContentApplicationJsonSchemaEmbeddingModels"},"V1ProviderStatusGetResponsesContentApplicationJsonSchemaIntegrations":{"type":"object","properties":{"capabilities":{"type":"object","additionalProperties":{"description":"Any type"}},"configured":{"type":"boolean"},"integrationId":{"type":"string"},"lastUsed":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["configured"],"title":"V1ProviderStatusGetResponsesContentApplicationJsonSchemaIntegrations"},"V1ProviderStatusGetResponsesContentApplicationJsonSchemaPlatformConfig":{"type":"object","properties":{"postgresVectorEnabled":{"type":"boolean"}},"required":["postgresVectorEnabled"],"title":"V1ProviderStatusGetResponsesContentApplicationJsonSchemaPlatformConfig"},"V1ProviderStatusGetResponsesContentApplicationJsonSchemaVectorDatabases":{"type":"object","properties":{"capabilities":{"type":"object","additionalProperties":{"description":"Any type"}},"configured":{"type":"boolean"},"integrationId":{"type":"string"},"lastUsed":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["configured"],"title":"V1ProviderStatusGetResponsesContentApplicationJsonSchemaVectorDatabases"},"Provider Status_getProviderStatus_Response_200":{"type":"object","properties":{"embeddingModels":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/V1ProviderStatusGetResponsesContentApplicationJsonSchemaEmbeddingModels"}},"integrations":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/V1ProviderStatusGetResponsesContentApplicationJsonSchemaIntegrations"}},"lastUpdated":{"type":"string"},"platformConfig":{"$ref":"#/components/schemas/V1ProviderStatusGetResponsesContentApplicationJsonSchemaPlatformConfig"},"vectorDatabases":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/V1ProviderStatusGetResponsesContentApplicationJsonSchemaVectorDatabases"}}},"required":["embeddingModels","integrations","lastUpdated","platformConfig","vectorDatabases"],"title":"Provider Status_getProviderStatus_Response_200"},"V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItemsSource":{"type":"string","enum":["api","integration"],"title":"V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItemsSource"},"V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItemsStatus":{"type":"string","enum":["available","needs_config","not_configured"],"title":"V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItemsStatus"},"V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItems":{"type":"object","properties":{"customKeyProvider":{"type":"string"},"dimensions":{"type":"number","format":"double"},"id":{"type":"string"},"maxTokens":{"type":"number","format":"double"},"name":{"type":"string"},"provider":{"type":"string"},"requiresIntegration":{"type":"string"},"source":{"$ref":"#/components/schemas/V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItemsSource"},"status":{"$ref":"#/components/schemas/V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItemsStatus"}},"required":["id","name","provider","source","status"],"title":"V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItems"},"Provider Status_getAvailableEmbeddingModels_Response_200":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/V1ProviderStatusEmbeddingModelsGetResponsesContentApplicationJsonSchemaModelsItems"}}},"required":["models"],"title":"Provider Status_getAvailableEmbeddingModels_Response_200"},"FlowValidationResultContext":{"type":"object","properties":{"accountChecksPerformed":{"type":"boolean"},"accountChecksSkipped":{"type":"boolean"},"authenticated":{"type":"boolean"}},"required":["accountChecksPerformed","accountChecksSkipped","authenticated"],"title":"FlowValidationResultContext"},"FlowValidationIssueStep":{"type":"object","properties":{"index":{"type":"integer"},"name":{"type":"string"},"type":{"type":"string"}},"required":["index","name","type"],"title":"FlowValidationIssueStep"},"FlowValidationIssue":{"type":"object","properties":{"code":{"type":"string"},"details":{"description":"Any type"},"message":{"type":"string"},"path":{"type":"string"},"step":{"$ref":"#/components/schemas/FlowValidationIssueStep"}},"required":["code","message"],"title":"FlowValidationIssue"},"FlowValidationResult":{"type":"object","properties":{"context":{"$ref":"#/components/schemas/FlowValidationResultContext"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/FlowValidationIssue"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/FlowValidationIssue"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/FlowValidationIssue"}}},"required":["context","errors","recommendations","valid","warnings"],"title":"FlowValidationResult"},"V1PublicFlowsValidatePostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1PublicFlowsValidatePostResponsesContentApplicationJsonSchemaDetailsItems"},"ValidateAProspectiveFlowPayloadRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicFlowsValidatePostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"code":{"type":"string"}},"required":["error"],"title":"ValidateAProspectiveFlowPayloadRequestBadRequestError"},"V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaErrorsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaErrorsItems"},"V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaRecommendationsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaRecommendationsItems"},"V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaWarningsItems"},"Product Validation_validateAFullProductObjectFpo_Response_200":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"Product Validation_validateAFullProductObjectFpo_Response_200"},"ValidateAFullProductObjectFpoRequestInternalServerError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidatePostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"ValidateAFullProductObjectFpoRequestInternalServerError"},"V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaErrorsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaErrorsItems"},"V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaRecommendationsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaRecommendationsItems"},"V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaWarningsItems"},"Product Validation_validateAProductTemplate_Response_200":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"Product Validation_validateAProductTemplate_Response_200"},"ValidateAProductTemplateRequestInternalServerError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateTemplatePostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"ValidateAProductTemplateRequestInternalServerError"},"V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaErrorsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaErrorsItems"},"V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaRecommendationsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaRecommendationsItems"},"V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaWarningsItems"},"Product Validation_validateAStandaloneAgentDefinition_Response_200":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"Product Validation_validateAStandaloneAgentDefinition_Response_200"},"ValidateAStandaloneAgentDefinitionRequestInternalServerError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateAgentPostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"ValidateAStandaloneAgentDefinitionRequestInternalServerError"},"V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaErrorsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaErrorsItems"},"V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaRecommendationsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaRecommendationsItems"},"V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaWarningsItems"},"Product Validation_validateAStandaloneFlowDefinition_Response_200":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"Product Validation_validateAStandaloneFlowDefinition_Response_200"},"ValidateAStandaloneFlowDefinitionRequestInternalServerError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateFlowPostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"ValidateAStandaloneFlowDefinitionRequestInternalServerError"},"V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaErrorsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaErrorsItems"},"V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaRecommendationsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaRecommendationsItems"},"V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaWarningsItems"},"Product Validation_validateAStandaloneSurfaceDefinition_Response_200":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"Product Validation_validateAStandaloneSurfaceDefinition_Response_200"},"ValidateAStandaloneSurfaceDefinitionRequestInternalServerError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateSurfacePostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"ValidateAStandaloneSurfaceDefinitionRequestInternalServerError"},"V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaErrorsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaErrorsItems"},"V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaRecommendationsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaRecommendationsItems"},"V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"},"severity":{"type":"string"}},"required":["code","message","path","severity"],"title":"V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaWarningsItems"},"Product Validation_validateAStandaloneToolDefinition_Response_200":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"Product Validation_validateAStandaloneToolDefinition_Response_200"},"ValidateAStandaloneToolDefinitionRequestInternalServerError":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaErrorsItems"}},"recommendations":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaRecommendationsItems"}},"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1PublicProductsValidateToolPostResponsesContentApplicationJsonSchemaWarningsItems"}}},"required":["errors","recommendations","valid","warnings"],"title":"ValidateAStandaloneToolDefinitionRequestInternalServerError"},"V1RecordsGetResponsesContentApplicationJsonSchemaDataItemsMetadataSchema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}}},"required":["keys"],"title":"V1RecordsGetResponsesContentApplicationJsonSchemaDataItemsMetadataSchema"},"V1RecordsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"availableFields":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"id":{"type":"string"},"messages":{"type":["array","null"],"items":{"description":"Any type"}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"metadataLabels":{"type":"object","additionalProperties":{"type":"string"}},"metadataSchema":{"$ref":"#/components/schemas/V1RecordsGetResponsesContentApplicationJsonSchemaDataItemsMetadataSchema"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","messages","metadata","name","organizationId","productSurfaceId","type","updatedAt","userId"],"title":"V1RecordsGetResponsesContentApplicationJsonSchemaDataItems"},"Records_listRecords_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsGetResponsesContentApplicationJsonSchemaDataItems"}},"filtersApplied":{"type":"object","additionalProperties":{"description":"Any type"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Records_listRecords_Response_200"},"V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItemsContent":{"oneOf":[{"type":"string"},{"type":"array","items":{"description":"Any type"}}],"title":"V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItemsContent"},"V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItemsRole":{"type":"string","enum":["user","assistant"],"title":"V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItemsRole"},"V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItems":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItemsContent"},"role":{"$ref":"#/components/schemas/V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItemsRole"}},"required":["content","role"],"title":"V1RecordsPostRequestBodyContentApplicationJsonSchemaMessagesItems"},"V1RecordsPostResponsesContentApplicationJsonSchemaMetadataSchema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}}},"required":["keys"],"title":"V1RecordsPostResponsesContentApplicationJsonSchemaMetadataSchema"},"Records_createRecord_Response_201":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"messages":{"type":["array","null"],"items":{"description":"Any type"}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"metadataLabels":{"type":"object","additionalProperties":{"type":"string"}},"metadataSchema":{"$ref":"#/components/schemas/V1RecordsPostResponsesContentApplicationJsonSchemaMetadataSchema"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","messages","metadata","name","organizationId","productSurfaceId","type","updatedAt","userId"],"title":"Records_createRecord_Response_201"},"Records_bulkDeleteRecords_Response_200":{"type":"object","properties":{"deleted":{"type":"integer"},"deletedIds":{"type":"array","items":{"type":"string"}},"notFoundIds":{"type":"array","items":{"type":"string"}},"success":{"type":"boolean"}},"required":["deleted","deletedIds","success"],"title":"Records_bulkDeleteRecords_Response_200"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItemsOperator":{"type":"string","enum":["equals","equals_ci","not_equals","contains","not_contains"],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItemsOperator"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItemsValue":{"oneOf":[{"type":"string"},{"type":"number","format":"double"},{"type":"boolean"}],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItemsValue"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItems":{"type":"object","properties":{"field":{"type":"string"},"operator":{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItemsOperator"},"value":{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItemsValue"}},"required":["field","operator","value"],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaConditionsItems"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op":{"type":"string","enum":["and","or"],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/RecordFilterCondition"}},"op":{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItemsOneOf1Op"}},"required":["conditions","op"],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems":{"oneOf":[{"$ref":"#/components/schemas/RecordFilterCondition"},{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems1"}],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op":{"type":"string","enum":["and","or"],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere1":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1ConditionsItems"}},"op":{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhereOneOf1Op"}},"required":["conditions","op"],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere1"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere":{"oneOf":[{"$ref":"#/components/schemas/RecordFilterCondition"},{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere1"}],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere"},"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilter":{"type":"object","properties":{"type":{"type":"string"},"where":{"$ref":"#/components/schemas/V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilterWhere"}},"required":["type"],"title":"V1RecordsBulkEditPostRequestBodyContentApplicationJsonSchemaRecordFilter"},"V1RecordsBulkEditPostResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"after":{"type":"object","additionalProperties":{"description":"Any type"}},"before":{"type":"object","additionalProperties":{"description":"Any type"}},"id":{"type":"string"}},"required":["after","before","id"],"title":"V1RecordsBulkEditPostResponsesContentApplicationJsonSchemaDataItems"},"Records_bulkEditRecords_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsBulkEditPostResponsesContentApplicationJsonSchemaDataItems"}},"recordIds":{"type":"array","items":{"type":"string"}}},"required":["data","recordIds"],"title":"Records_bulkEditRecords_Response_200"},"V1RecordsFieldValuesGetResponsesContentApplicationJsonSchemaValuesItems":{"type":"object","properties":{"count":{"type":"integer"},"value":{"description":"Any type"}},"required":["count"],"title":"V1RecordsFieldValuesGetResponsesContentApplicationJsonSchemaValuesItems"},"Records_getFieldValues_Response_200":{"type":"object","properties":{"field":{"type":"string"},"truncated":{"type":"boolean"},"type":{"type":"string"},"values":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsFieldValuesGetResponsesContentApplicationJsonSchemaValuesItems"}}},"required":["field","truncated","type","values"],"title":"Records_getFieldValues_Response_200"},"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItemsOneOf1Op":{"type":"string","enum":["and","or"],"title":"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItemsOneOf1Op"},"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItems1":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/RecordFilterCondition"}},"op":{"$ref":"#/components/schemas/V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItemsOneOf1Op"}},"required":["conditions","op"],"title":"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItems1"},"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItems":{"oneOf":[{"$ref":"#/components/schemas/RecordFilterCondition"},{"$ref":"#/components/schemas/V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItems1"}],"title":"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItems"},"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1Op":{"type":"string","enum":["and","or"],"title":"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1Op"},"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhere1":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1ConditionsItems"}},"op":{"$ref":"#/components/schemas/V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhereOneOf1Op"}},"required":["conditions","op"],"title":"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhere1"},"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhere":{"oneOf":[{"$ref":"#/components/schemas/RecordFilterCondition"},{"$ref":"#/components/schemas/V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhere1"}],"title":"V1RecordsPreviewFilterPostRequestBodyContentApplicationJsonSchemaWhere"},"V1RecordsPreviewFilterPostResponsesContentApplicationJsonSchemaSamplesItems":{"type":"object","properties":{"id":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"name":{"type":"string"}},"required":["id","metadata","name"],"title":"V1RecordsPreviewFilterPostResponsesContentApplicationJsonSchemaSamplesItems"},"Records_previewRecordFilter_Response_200":{"type":"object","properties":{"matchedCount":{"type":"integer"},"samples":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsPreviewFilterPostResponsesContentApplicationJsonSchemaSamplesItems"}},"truncated":{"type":"boolean"},"type":{"type":"string"}},"required":["matchedCount","samples","truncated","type"],"title":"Records_previewRecordFilter_Response_200"},"Records_discoverRecordSchema_Response_200":{"type":"object","properties":{"fields":{"type":"array","items":{"description":"Any type"}},"sampledAt":{"type":"string"},"sampledRecords":{"type":"integer"},"totalRecords":{"type":"integer"},"type":{"type":"string"}},"required":["fields","sampledAt","sampledRecords","totalRecords","type"],"title":"Records_discoverRecordSchema_Response_200"},"V1RecordsUploadCsvPostResponsesContentApplicationJsonSchemaRecordsItems":{"type":"object","properties":{"id":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"name":{"type":"string"},"type":{"type":"string"}},"required":["id","metadata","name","type"],"title":"V1RecordsUploadCsvPostResponsesContentApplicationJsonSchemaRecordsItems"},"Records_uploadCsvRecords_Response_201":{"type":"object","properties":{"created":{"type":"integer"},"errorDetails":{"type":"array","items":{"type":"string"}},"errors":{"type":"integer"},"message":{"type":"string"},"records":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsUploadCsvPostResponsesContentApplicationJsonSchemaRecordsItems"}},"success":{"type":"boolean"}},"required":["created","errorDetails","errors","message","records","success"],"title":"Records_uploadCsvRecords_Response_201"},"V1RecordsIdGetResponsesContentApplicationJsonSchemaMetadataSchema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}}},"required":["keys"],"title":"V1RecordsIdGetResponsesContentApplicationJsonSchemaMetadataSchema"},"Records_getRecordDetails_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"messages":{"type":["array","null"],"items":{"description":"Any type"}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"metadataLabels":{"type":"object","additionalProperties":{"type":"string"}},"metadataSchema":{"$ref":"#/components/schemas/V1RecordsIdGetResponsesContentApplicationJsonSchemaMetadataSchema"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","messages","metadata","name","organizationId","productSurfaceId","type","updatedAt","userId"],"title":"Records_getRecordDetails_Response_200"},"V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsContent":{"oneOf":[{"type":"string"},{"type":"array","items":{"description":"Any type"}}],"title":"V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsContent"},"V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsRole":{"type":"string","enum":["user","assistant"],"title":"V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsRole"},"V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItems":{"type":"object","properties":{"content":{"$ref":"#/components/schemas/V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsContent"},"role":{"$ref":"#/components/schemas/V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItemsRole"}},"required":["content","role"],"title":"V1RecordsIdPutRequestBodyContentApplicationJsonSchemaMessagesItems"},"V1RecordsIdPutResponsesContentApplicationJsonSchemaMetadataSchema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}}},"required":["keys"],"title":"V1RecordsIdPutResponsesContentApplicationJsonSchemaMetadataSchema"},"Records_updateRecord_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"messages":{"type":["array","null"],"items":{"description":"Any type"}},"metadata":{"type":"object","additionalProperties":{"description":"Any type"}},"metadataLabels":{"type":"object","additionalProperties":{"type":"string"}},"metadataSchema":{"$ref":"#/components/schemas/V1RecordsIdPutResponsesContentApplicationJsonSchemaMetadataSchema"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"type":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["createdAt","id","messages","metadata","name","organizationId","productSurfaceId","type","updatedAt","userId"],"title":"Records_updateRecord_Response_200"},"V1RecordsIdCostsGetResponsesContentApplicationJsonSchemaModelBreakdownItems":{"type":"object","properties":{"cost":{"type":"number","format":"double"},"count":{"type":"integer"},"model":{"type":"string"},"tokens":{"type":"integer"}},"required":["cost","count","model","tokens"],"title":"V1RecordsIdCostsGetResponsesContentApplicationJsonSchemaModelBreakdownItems"},"Records_getRecordCosts_Response_200":{"type":"object","properties":{"completionTokens":{"type":"integer"},"executionCount":{"type":"integer"},"modelBreakdown":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsIdCostsGetResponsesContentApplicationJsonSchemaModelBreakdownItems"}},"promptTokens":{"type":"integer"},"totalCost":{"type":"number","format":"double"},"totalTokens":{"type":"integer"}},"required":["completionTokens","executionCount","modelBreakdown","promptTokens","totalCost","totalTokens"],"title":"Records_getRecordCosts_Response_200"},"V1RecordsIdResultsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"createdAt":{"type":"string"},"flowId":{"type":["string","null"]},"flowName":{"type":["string","null"]},"id":{"type":"string"},"promptId":{"type":["string","null"]},"promptName":{"type":["string","null"]},"recordId":{"type":"string"},"result":{"description":"Any type"},"status":{"type":"string"}},"required":["createdAt","flowId","flowName","id","promptId","promptName","recordId","status"],"title":"V1RecordsIdResultsGetResponsesContentApplicationJsonSchemaDataItems"},"V1RecordsIdResultsGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"hasPrev":{"type":"boolean"},"hasPrevPage":{"type":"boolean"},"limit":{"type":"integer"},"page":{"type":"integer"},"total":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["hasMore","hasPrev","limit","page"],"title":"V1RecordsIdResultsGetResponsesContentApplicationJsonSchemaPagination"},"Records_getRecordResults_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsIdResultsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/V1RecordsIdResultsGetResponsesContentApplicationJsonSchemaPagination"}},"required":["data","pagination"],"title":"Records_getRecordResults_Response_200"},"V1RecordsIdStepResultsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"batchExecutionId":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"completionTokens":{"type":["integer","null"]},"createdAt":{"type":"string"},"durationMs":{"type":["integer","null"]},"errorMessage":{"type":["string","null"]},"estimatedCost":{"type":["string","null"]},"executionSessionId":{"type":["string","null"]},"flowId":{"type":["string","null"]},"flowVersionId":{"type":["string","null"]},"id":{"type":"string"},"inputVariables":{"description":"Any type"},"modelUsed":{"type":["string","null"]},"order":{"type":["integer","null"]},"organizationId":{"type":["string","null"]},"outputPreview":{"type":["string","null"]},"promptTokens":{"type":["integer","null"]},"recordId":{"type":["string","null"]},"recordMetadata":{"description":"Any type"},"recordName":{"type":["string","null"]},"resolvedPrompt":{"type":["string","null"]},"retryCount":{"type":["integer","null"]},"startedAt":{"type":["string","null"]},"status":{"type":"string"},"stepConfig":{"description":"Any type"},"stepId":{"type":["string","null"]},"stepName":{"type":"string"},"stepType":{"type":"string"},"totalTokens":{"type":["integer","null"]},"userId":{"type":"string"}},"required":["batchExecutionId","completedAt","createdAt","durationMs","executionSessionId","flowId","flowVersionId","id","order","organizationId","outputPreview","recordId","recordName","startedAt","status","stepId","stepName","stepType","userId"],"title":"V1RecordsIdStepResultsGetResponsesContentApplicationJsonSchemaDataItems"},"V1RecordsIdStepResultsGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"limit":{"type":"integer"},"offset":{"type":"integer"},"returned":{"type":"integer"}},"required":["hasMore","limit","offset","returned"],"title":"V1RecordsIdStepResultsGetResponsesContentApplicationJsonSchemaPagination"},"Records_getRecordStepResults_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1RecordsIdStepResultsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/V1RecordsIdStepResultsGetResponsesContentApplicationJsonSchemaPagination"}},"required":["data","pagination"],"title":"Records_getRecordStepResults_Response_200"},"V1ResourcesGetResponsesContentApplicationJsonSchemaMcpServersItemsToolsItems":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"}},"required":["description","name"],"title":"V1ResourcesGetResponsesContentApplicationJsonSchemaMcpServersItemsToolsItems"},"V1ResourcesGetResponsesContentApplicationJsonSchemaMcpServersItems":{"type":"object","properties":{"id":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":"string"},"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1ResourcesGetResponsesContentApplicationJsonSchemaMcpServersItemsToolsItems"}}},"required":["id","isActive","name","tools"],"title":"V1ResourcesGetResponsesContentApplicationJsonSchemaMcpServersItems"},"V1ResourcesGetResponsesContentApplicationJsonSchemaModelsEnabledItems":{"type":"object","properties":{"displayName":{"type":"string"},"id":{"type":"string"},"isDefault":{"type":"boolean"},"modelId":{"type":"string"},"provider":{"type":"string"}},"required":["displayName","id","isDefault","modelId","provider"],"title":"V1ResourcesGetResponsesContentApplicationJsonSchemaModelsEnabledItems"},"V1ResourcesGetResponsesContentApplicationJsonSchemaModels":{"type":"object","properties":{"enabled":{"type":"array","items":{"$ref":"#/components/schemas/V1ResourcesGetResponsesContentApplicationJsonSchemaModelsEnabledItems"}}},"required":["enabled"],"title":"V1ResourcesGetResponsesContentApplicationJsonSchemaModels"},"V1ResourcesGetResponsesContentApplicationJsonSchemaToolsBuiltInItems":{"type":"object","properties":{"category":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"required":["category","description","id","name"],"title":"V1ResourcesGetResponsesContentApplicationJsonSchemaToolsBuiltInItems"},"V1ResourcesGetResponsesContentApplicationJsonSchemaToolsCustomItems":{"type":"object","properties":{"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"toolType":{"type":"string"}},"required":["description","id","name","toolType"],"title":"V1ResourcesGetResponsesContentApplicationJsonSchemaToolsCustomItems"},"V1ResourcesGetResponsesContentApplicationJsonSchemaToolsIntegrationItems":{"type":"object","properties":{"description":{"type":"string"},"displayName":{"type":"string"},"name":{"type":"string"},"serverId":{"type":"string"},"serverName":{"type":"string"},"toolId":{"type":"string"}},"required":["description","displayName","name","serverId","serverName","toolId"],"title":"V1ResourcesGetResponsesContentApplicationJsonSchemaToolsIntegrationItems"},"V1ResourcesGetResponsesContentApplicationJsonSchemaTools":{"type":"object","properties":{"builtIn":{"type":"array","items":{"$ref":"#/components/schemas/V1ResourcesGetResponsesContentApplicationJsonSchemaToolsBuiltInItems"}},"custom":{"type":"array","items":{"$ref":"#/components/schemas/V1ResourcesGetResponsesContentApplicationJsonSchemaToolsCustomItems"}},"integration":{"type":"array","items":{"$ref":"#/components/schemas/V1ResourcesGetResponsesContentApplicationJsonSchemaToolsIntegrationItems"}}},"required":["builtIn","custom","integration"],"title":"V1ResourcesGetResponsesContentApplicationJsonSchemaTools"},"Resources_getAvailableResources_Response_200":{"type":"object","properties":{"mcpServers":{"type":"array","items":{"$ref":"#/components/schemas/V1ResourcesGetResponsesContentApplicationJsonSchemaMcpServersItems"}},"models":{"$ref":"#/components/schemas/V1ResourcesGetResponsesContentApplicationJsonSchemaModels"},"tools":{"$ref":"#/components/schemas/V1ResourcesGetResponsesContentApplicationJsonSchemaTools"}},"required":["mcpServers","models","tools"],"title":"Resources_getAvailableResources_Response_200"},"V1SchedulesGetParametersStatus":{"type":"string","enum":["active","paused"],"description":"Filter by status","title":"V1SchedulesGetParametersStatus"},"V1SchedulesGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"agentId":{"type":["string","null"]},"createdAt":{"type":"string"},"cron":{"type":["string","null"]},"enabled":{"type":"boolean"},"executionOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"flowId":{"type":["string","null"]},"id":{"type":"string"},"inputs":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"lastRunAt":{"type":["string","null"]},"messages":{"description":"Any type"},"name":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"recordFilter":{"description":"Any type"},"recordIds":{"type":["array","null"],"items":{"type":"string"}},"recordType":{"type":["string","null"]},"runAt":{"type":["string","null"]},"timezone":{"type":["string","null"]},"triggerType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentId","createdAt","cron","enabled","executionOptions","flowId","id","inputs","lastRunAt","name","nextRunAt","organizationId","productSurfaceId","recordIds","recordType","runAt","timezone","triggerType","updatedAt","userId"],"title":"V1SchedulesGetResponsesContentApplicationJsonSchemaDataItems"},"Schedules_listSchedules_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1SchedulesGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Schedules_listSchedules_Response_200"},"V1SchedulesPostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["created"],"title":"V1SchedulesPostResponsesContentApplicationJsonSchemaStatus"},"Schedules_createASchedule_Response_200":{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/V1SchedulesPostResponsesContentApplicationJsonSchemaStatus"}},"required":["id","status"],"title":"Schedules_createASchedule_Response_200"},"V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaDataItemsRecord":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"required":["id","name","type"],"title":"V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaDataItemsRecord"},"V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"agentExecutionId":{"type":["string","null"]},"createdAt":{"type":"string"},"error":{"type":["string","null"]},"executedAt":{"type":["string","null"]},"failedAt":{"type":["string","null"]},"flowId":{"type":["string","null"]},"flowName":{"type":["string","null"]},"record":{"oneOf":[{"$ref":"#/components/schemas/V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaDataItemsRecord"},{"type":"null"}]},"recordId":{"type":"string"},"recordResultId":{"type":["string","null"]},"result":{"description":"Any type"},"status":{"type":"string"}},"required":["agentExecutionId","createdAt","error","executedAt","failedAt","flowId","flowName","record","recordId","recordResultId","status"],"title":"V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaDataItems"},"V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"required":["hasMore","limit","offset","total"],"title":"V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaPagination"},"Schedules_getResultsForABatchExecution_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/V1SchedulesBatchBatchIdResultsGetResponsesContentApplicationJsonSchemaPagination"}},"required":["data","pagination"],"title":"Schedules_getResultsForABatchExecution_Response_200"},"V1SchedulesRunsAllGetParametersDirection":{"type":"string","enum":["next","prev"],"title":"V1SchedulesRunsAllGetParametersDirection"},"V1SchedulesRunsAllGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"agentExecutionId":{"type":["string","null"]},"agentId":{"type":["string","null"]},"batchExecutionId":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"error":{"type":["string","null"]},"failedRecords":{"type":["integer","null"]},"flowId":{"type":["string","null"]},"id":{"type":"string"},"processedRecords":{"type":["integer","null"]},"scheduleId":{"type":"string"},"startedAt":{"type":["string","null"]},"status":{"type":"string"},"totalRecords":{"type":["integer","null"]}},"required":["agentExecutionId","agentId","batchExecutionId","completedAt","createdAt","error","failedRecords","flowId","id","processedRecords","scheduleId","startedAt","status","totalRecords"],"title":"V1SchedulesRunsAllGetResponsesContentApplicationJsonSchemaDataItems"},"Schedules_listAllScheduleRuns_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1SchedulesRunsAllGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Schedules_listAllScheduleRuns_Response_200"},"V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaDataItemsRecord":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"required":["id","name","type"],"title":"V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaDataItemsRecord"},"V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"agentExecutionId":{"type":["string","null"]},"createdAt":{"type":"string"},"error":{"type":["string","null"]},"executedAt":{"type":["string","null"]},"failedAt":{"type":["string","null"]},"flowId":{"type":["string","null"]},"flowName":{"type":["string","null"]},"record":{"oneOf":[{"$ref":"#/components/schemas/V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaDataItemsRecord"},{"type":"null"}]},"recordId":{"type":"string"},"recordResultId":{"type":["string","null"]},"result":{"description":"Any type"},"status":{"type":"string"}},"required":["agentExecutionId","createdAt","error","executedAt","failedAt","flowId","flowName","record","recordId","recordResultId","status"],"title":"V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaDataItems"},"V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaPagination":{"type":"object","properties":{"hasMore":{"type":"boolean"},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"required":["hasMore","limit","offset","total"],"title":"V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaPagination"},"Schedules_getResultsForAScheduledRun_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/V1SchedulesRunsRunIdResultsGetResponsesContentApplicationJsonSchemaPagination"}},"required":["data","pagination"],"title":"Schedules_getResultsForAScheduledRun_Response_200"},"V1SchedulesSparklinesGetResponsesContentApplicationJsonSchemaDataItemsLast7DaysItems":{"type":"object","properties":{"date":{"type":"string"},"failed":{"type":"integer"},"runs":{"type":"integer"}},"required":["date","failed","runs"],"title":"V1SchedulesSparklinesGetResponsesContentApplicationJsonSchemaDataItemsLast7DaysItems"},"V1SchedulesSparklinesGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"last7Days":{"type":"array","items":{"$ref":"#/components/schemas/V1SchedulesSparklinesGetResponsesContentApplicationJsonSchemaDataItemsLast7DaysItems"}},"scheduleId":{"type":"string"}},"required":["last7Days","scheduleId"],"title":"V1SchedulesSparklinesGetResponsesContentApplicationJsonSchemaDataItems"},"Schedules_getScheduleSparklines_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1SchedulesSparklinesGetResponsesContentApplicationJsonSchemaDataItems"}}},"required":["data"],"title":"Schedules_getScheduleSparklines_Response_200"},"Schedules_getASchedule_Response_200":{"type":"object","properties":{"agentId":{"type":["string","null"]},"createdAt":{"type":"string"},"cron":{"type":["string","null"]},"enabled":{"type":"boolean"},"executionOptions":{"type":"object","additionalProperties":{"description":"Any type"}},"flowId":{"type":["string","null"]},"id":{"type":"string"},"inputs":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"lastRunAt":{"type":["string","null"]},"messages":{"description":"Any type"},"name":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"organizationId":{"type":["string","null"]},"productSurfaceId":{"type":["string","null"]},"recordFilter":{"description":"Any type"},"recordIds":{"type":["array","null"],"items":{"type":"string"}},"recordType":{"type":["string","null"]},"runAt":{"type":["string","null"]},"timezone":{"type":["string","null"]},"triggerType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["agentId","createdAt","cron","enabled","executionOptions","flowId","id","inputs","lastRunAt","name","nextRunAt","organizationId","productSurfaceId","recordIds","recordType","runAt","timezone","triggerType","updatedAt","userId"],"title":"Schedules_getASchedule_Response_200"},"V1SchedulesIdPutResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["updated"],"title":"V1SchedulesIdPutResponsesContentApplicationJsonSchemaStatus"},"Schedules_updateASchedule_Response_200":{"type":"object","properties":{"id":{"type":"string"},"status":{"$ref":"#/components/schemas/V1SchedulesIdPutResponsesContentApplicationJsonSchemaStatus"}},"required":["id","status"],"title":"Schedules_updateASchedule_Response_200"},"Schedules_deleteASchedule_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Schedules_deleteASchedule_Response_200"},"V1SchedulesIdPausePostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["paused"],"title":"V1SchedulesIdPausePostResponsesContentApplicationJsonSchemaStatus"},"Schedules_pauseASchedule_Response_200":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/V1SchedulesIdPausePostResponsesContentApplicationJsonSchemaStatus"}},"required":["status"],"title":"Schedules_pauseASchedule_Response_200"},"V1SchedulesIdResumePostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["resumed"],"title":"V1SchedulesIdResumePostResponsesContentApplicationJsonSchemaStatus"},"Schedules_resumeASchedule_Response_200":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/V1SchedulesIdResumePostResponsesContentApplicationJsonSchemaStatus"}},"required":["status"],"title":"Schedules_resumeASchedule_Response_200"},"V1SchedulesIdRunNowPostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["queued","completed","failed"],"title":"V1SchedulesIdRunNowPostResponsesContentApplicationJsonSchemaStatus"},"Schedules_runAScheduleImmediately_Response_200":{"type":"object","properties":{"batchExecutionId":{"type":["string","null"]},"error":{"type":["string","null"]},"runId":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/V1SchedulesIdRunNowPostResponsesContentApplicationJsonSchemaStatus"}},"required":["batchExecutionId","error","runId","status"],"title":"Schedules_runAScheduleImmediately_Response_200"},"V1SchedulesIdRunsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"agentExecutionId":{"type":["string","null"]},"agentId":{"type":["string","null"]},"batchExecutionId":{"type":["string","null"]},"completedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"error":{"type":["string","null"]},"failedRecords":{"type":["integer","null"]},"flowId":{"type":["string","null"]},"id":{"type":"string"},"processedRecords":{"type":["integer","null"]},"scheduleId":{"type":"string"},"startedAt":{"type":["string","null"]},"status":{"type":"string"},"totalRecords":{"type":["integer","null"]}},"required":["agentExecutionId","agentId","batchExecutionId","completedAt","createdAt","error","failedRecords","flowId","id","processedRecords","scheduleId","startedAt","status","totalRecords"],"title":"V1SchedulesIdRunsGetResponsesContentApplicationJsonSchemaDataItems"},"Schedules_listRunsForASchedule_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1SchedulesIdRunsGetResponsesContentApplicationJsonSchemaDataItems"}}},"required":["data"],"title":"Schedules_listRunsForASchedule_Response_200"},"V1SchedulesIdStatsGetResponsesContentApplicationJsonSchemaLast7DaysItems":{"type":"object","properties":{"date":{"type":"string"},"failed":{"type":"integer"},"runs":{"type":"integer"}},"required":["date","failed","runs"],"title":"V1SchedulesIdStatsGetResponsesContentApplicationJsonSchemaLast7DaysItems"},"Schedules_getScheduleStatistics_Response_200":{"type":"object","properties":{"avgCostUsd":{"type":["number","null"],"format":"double"},"avgDurationMs":{"type":["number","null"],"format":"double"},"completed":{"type":"integer"},"failed":{"type":"integer"},"last7Days":{"type":"array","items":{"$ref":"#/components/schemas/V1SchedulesIdStatsGetResponsesContentApplicationJsonSchemaLast7DaysItems"}},"successRate":{"type":["number","null"],"format":"double"},"total":{"type":"integer"}},"required":["avgCostUsd","avgDurationMs","completed","failed","last7Days","successRate","total"],"title":"Schedules_getScheduleStatistics_Response_200"},"V1SecretsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"key":{"type":"string"},"lastRotatedAt":{"type":["string","null"]},"phantomToken":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"},"valuePreview":{"type":["string","null"]},"version":{"type":"integer"}},"required":["createdAt","description","id","key","lastRotatedAt","phantomToken","status","updatedAt","valuePreview","version"],"title":"V1SecretsGetResponsesContentApplicationJsonSchemaDataItems"},"Secrets_listSecretsMetadataOnly_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsGetResponsesContentApplicationJsonSchemaDataItems"}},"total":{"type":"integer"}},"required":["data","total"],"title":"Secrets_listSecretsMetadataOnly_Response_200"},"V1SecretsPostResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"key":{"type":"string"},"lastRotatedAt":{"type":["string","null"]},"phantomToken":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"},"valuePreview":{"type":["string","null"]},"version":{"type":"integer"}},"required":["createdAt","description","id","key","lastRotatedAt","phantomToken","status","updatedAt","valuePreview","version"],"title":"V1SecretsPostResponsesContentApplicationJsonSchemaData"},"Secrets_createASecret_Response_201":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1SecretsPostResponsesContentApplicationJsonSchemaData"}},"required":["data"],"title":"Secrets_createASecret_Response_201"},"V1SecretsPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1SecretsPostResponsesContentApplicationJsonSchemaDetailsItems"},"CreateASecretRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"CreateASecretRequestBadRequestError"},"Secrets_checkWhichSecretKeysExistAreMissingOrRevoked_Response_200":{"type":"object","properties":{"found":{"type":"array","items":{"type":"string"}},"missing":{"type":"array","items":{"type":"string"}},"revoked":{"type":"array","items":{"type":"string"}}},"required":["found","missing","revoked"],"title":"Secrets_checkWhichSecretKeysExistAreMissingOrRevoked_Response_200"},"V1SecretsCheckPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1SecretsCheckPostResponsesContentApplicationJsonSchemaDetailsItems"},"CheckWhichSecretKeysExistAreMissingOrRevokedRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsCheckPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"CheckWhichSecretKeysExistAreMissingOrRevokedRequestBadRequestError"},"V1SecretsIntakeManifestPostRequestBodyContentApplicationJsonSchemaSourceType":{"type":"string","enum":["manual","secret","product"],"title":"V1SecretsIntakeManifestPostRequestBodyContentApplicationJsonSchemaSourceType"},"V1SecretsIntakeManifestPostRequestBodyContentApplicationJsonSchemaSource":{"type":"object","properties":{"key":{"type":"string"},"productId":{"type":"string"},"type":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostRequestBodyContentApplicationJsonSchemaSourceType"}},"required":["type"],"title":"V1SecretsIntakeManifestPostRequestBodyContentApplicationJsonSchemaSource"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaConfigurationStatus":{"type":"string","enum":["configured","needs_configuration","invalid"],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaConfigurationStatus"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoffOneOf0Type":{"type":"string","enum":["url"],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoffOneOf0Type"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoff0":{"type":"object","properties":{"expiresAt":{"type":"string"},"type":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoffOneOf0Type"},"url":{"type":"string"}},"required":["type","url"],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoff0"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoff":{"oneOf":[{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoff0"}],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoff"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaItemsItemsStatus":{"type":"string","enum":["configured","needs_configuration","invalid"],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaItemsItemsStatus"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaItemsItems":{"type":"object","properties":{"description":{"type":["string","null"]},"displayName":{"type":["string","null"]},"docsUrl":{"type":"string"},"helpText":{"type":"string"},"itemId":{"type":"string"},"placeholder":{"type":"string"},"required":{"type":"boolean","default":true},"secretId":{"type":"string"},"secretKey":{"type":"string"},"status":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaItemsItemsStatus"},"version":{"type":"integer"}},"required":["itemId","secretKey","status"],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaItemsItems"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaSourceType":{"type":"string","enum":["manual","secret","product"],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaSourceType"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaSource":{"type":"object","properties":{"key":{"type":"string"},"productId":{"type":"string"},"type":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaSourceType"}},"required":["type"],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaSource"},"Secrets_getIntakeManifestForSecretConfiguration_Response_200":{"type":"object","properties":{"configurationStatus":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaConfigurationStatus"},"description":{"type":"string"},"handoff":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaHandoff"},"items":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaItemsItems"}},"pendingConfigurationCount":{"type":"integer"},"returnUrl":{"type":"string"},"source":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaSource"},"title":{"type":"string"}},"required":["configurationStatus","items","pendingConfigurationCount","source","title"],"title":"Secrets_getIntakeManifestForSecretConfiguration_Response_200"},"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaDetailsItems"},"GetIntakeManifestForSecretConfigurationRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsIntakeManifestPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"GetIntakeManifestForSecretConfigurationRequestBadRequestError"},"V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaItemsItems":{"type":"object","properties":{"description":{"type":"string"},"displayName":{"type":"string"},"expectedVersion":{"type":"integer"},"itemId":{"type":"string"},"key":{"type":"string"},"secretId":{"type":"string"},"value":{"type":"string"}},"title":"V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaItemsItems"},"V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaSourceType":{"type":"string","enum":["manual","secret","product"],"title":"V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaSourceType"},"V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaSource":{"type":"object","properties":{"key":{"type":"string"},"productId":{"type":"string"},"type":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaSourceType"}},"required":["type"],"title":"V1SecretsIntakeSubmitPostRequestBodyContentApplicationJsonSchemaSource"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestConfigurationStatus":{"type":"string","enum":["configured","needs_configuration","invalid"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestConfigurationStatus"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoffOneOf0Type":{"type":"string","enum":["url"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoffOneOf0Type"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoff0":{"type":"object","properties":{"expiresAt":{"type":"string"},"type":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoffOneOf0Type"},"url":{"type":"string"}},"required":["type","url"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoff0"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoff":{"oneOf":[{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoff0"}],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoff"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestItemsItemsStatus":{"type":"string","enum":["configured","needs_configuration","invalid"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestItemsItemsStatus"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestItemsItems":{"type":"object","properties":{"description":{"type":["string","null"]},"displayName":{"type":["string","null"]},"docsUrl":{"type":"string"},"helpText":{"type":"string"},"itemId":{"type":"string"},"placeholder":{"type":"string"},"required":{"type":"boolean","default":true},"secretId":{"type":"string"},"secretKey":{"type":"string"},"status":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestItemsItemsStatus"},"version":{"type":"integer"}},"required":["itemId","secretKey","status"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestItemsItems"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestSourceType":{"type":"string","enum":["manual","secret","product"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestSourceType"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestSource":{"type":"object","properties":{"key":{"type":"string"},"productId":{"type":"string"},"type":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestSourceType"}},"required":["type"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestSource"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifest":{"type":"object","properties":{"configurationStatus":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestConfigurationStatus"},"description":{"type":"string"},"handoff":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestHandoff"},"items":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestItemsItems"}},"pendingConfigurationCount":{"type":"integer"},"returnUrl":{"type":"string"},"source":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifestSource"},"title":{"type":"string"}},"required":["configurationStatus","items","pendingConfigurationCount","source","title"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifest"},"Secrets_submitSecretValuesFromIntakeScreen_Response_200":{"type":"object","properties":{"manifest":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaManifest"},"success":{"type":"boolean"}},"required":["manifest","success"],"title":"Secrets_submitSecretValuesFromIntakeScreen_Response_200"},"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaDetailsItems"},"SubmitSecretValuesFromIntakeScreenRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsIntakeSubmitPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"},"itemId":{"type":"string"}},"required":["error"],"title":"SubmitSecretValuesFromIntakeScreenRequestBadRequestError"},"V1SecretsSetupUrlPostRequestBodyContentApplicationJsonSchemaContextType":{"type":"string","enum":["product","agent","tool"],"title":"V1SecretsSetupUrlPostRequestBodyContentApplicationJsonSchemaContextType"},"V1SecretsSetupUrlPostRequestBodyContentApplicationJsonSchemaContext":{"type":"object","properties":{"id":{"type":"string"},"type":{"$ref":"#/components/schemas/V1SecretsSetupUrlPostRequestBodyContentApplicationJsonSchemaContextType"}},"required":["id","type"],"title":"V1SecretsSetupUrlPostRequestBodyContentApplicationJsonSchemaContext"},"Secrets_generateDashboardUrlForConfiguringMissingSecrets_Response_200":{"type":"object","properties":{"alreadyConfigured":{"type":"array","items":{"type":"string"}},"missing":{"type":"array","items":{"type":"string"}},"revoked":{"type":"array","items":{"type":"string"}},"url":{"type":["string","null"]}},"required":["alreadyConfigured","missing","revoked","url"],"title":"Secrets_generateDashboardUrlForConfiguringMissingSecrets_Response_200"},"V1SecretsSetupUrlPostResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1SecretsSetupUrlPostResponsesContentApplicationJsonSchemaDetailsItems"},"GenerateDashboardUrlForConfiguringMissingSecretsRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsSetupUrlPostResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"GenerateDashboardUrlForConfiguringMissingSecretsRequestBadRequestError"},"V1SecretsIdGetResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"key":{"type":"string"},"lastRotatedAt":{"type":["string","null"]},"phantomToken":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"},"valuePreview":{"type":["string","null"]},"version":{"type":"integer"}},"required":["createdAt","description","id","key","lastRotatedAt","phantomToken","status","updatedAt","valuePreview","version"],"title":"V1SecretsIdGetResponsesContentApplicationJsonSchemaData"},"Secrets_getSecretMetadata_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1SecretsIdGetResponsesContentApplicationJsonSchemaData"}},"required":["data"],"title":"Secrets_getSecretMetadata_Response_200"},"V1SecretsIdPutResponsesContentApplicationJsonSchemaData":{"type":"object","properties":{"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"key":{"type":"string"},"lastRotatedAt":{"type":["string","null"]},"phantomToken":{"type":["string","null"]},"status":{"type":"string"},"updatedAt":{"type":"string"},"valuePreview":{"type":["string","null"]},"version":{"type":"integer"}},"required":["createdAt","description","id","key","lastRotatedAt","phantomToken","status","updatedAt","valuePreview","version"],"title":"V1SecretsIdPutResponsesContentApplicationJsonSchemaData"},"Secrets_updateOrRotateASecret_Response_200":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V1SecretsIdPutResponsesContentApplicationJsonSchemaData"}},"required":["data"],"title":"Secrets_updateOrRotateASecret_Response_200"},"V1SecretsIdPutResponsesContentApplicationJsonSchemaDetailsItems":{"type":"object","properties":{"code":{"type":"string","description":"Stable Runtype validation code (e.g. MISSING_REQUIRED_FIELD, INVALID_ENUM)."},"message":{"type":"string"},"path":{"type":"string","description":"Dotted JSON path to the offending field."},"suggestion":{"type":"string","description":"Actionable hint (allowed values, accepted range, …)."}},"required":["message"],"title":"V1SecretsIdPutResponsesContentApplicationJsonSchemaDetailsItems"},"UpdateOrRotateASecretRequestBadRequestError":{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/V1SecretsIdPutResponsesContentApplicationJsonSchemaDetailsItems"}},"error":{"type":"string"}},"required":["error"],"title":"UpdateOrRotateASecretRequestBadRequestError"},"Secrets_deleteASecret_Response_200":{"type":"object","properties":{"deletedId":{"type":"string"},"referenceCount":{"type":"integer"},"success":{"type":"boolean"}},"required":["deletedId","referenceCount","success"],"title":"Secrets_deleteASecret_Response_200"},"Skill Proposals_listPendingSkillProposals_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}}},"required":["data"],"title":"Skill Proposals_listPendingSkillProposals_Response_200"},"V1SkillsGetParametersStatus":{"type":"string","enum":["draft","active","archived"],"title":"V1SkillsGetParametersStatus"},"Skills_listSkills_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}}},"required":["data"],"title":"Skills_listSkills_Response_200"},"Skills_listAnAgentsSkillBindings_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}}},"required":["data"],"title":"Skills_listAnAgentsSkillBindings_Response_200"},"Skills_unbindASkillFromAnAgent_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Skills_unbindASkillFromAnAgent_Response_200"},"Skills_deleteASkill_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Skills_deleteASkill_Response_200"},"Skills_listASkillsVersions_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","additionalProperties":{"description":"Any type"}}}},"required":["data"],"title":"Skills_listASkillsVersions_Response_200"},"Skills_publishASkillVersion_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Skills_publishASkillVersion_Response_200"},"V1ToolsGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolType":{"type":"string"},"updatedAt":{"type":"string"}},"required":["createdAt","description","id","isActive","name","toolType","updatedAt"],"title":"V1ToolsGetResponsesContentApplicationJsonSchemaDataItems"},"Tools_listTools_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsGetResponsesContentApplicationJsonSchemaDataItems"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Tools_listTools_Response_200"},"V1ToolsPostRequestBodyContentApplicationJsonSchemaToolType":{"type":"string","enum":["flow","custom","external","graphql","mcp","local","subagent"],"title":"V1ToolsPostRequestBodyContentApplicationJsonSchemaToolType"},"V1ToolsPostResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity":{"type":"string","enum":["error","warning"],"title":"V1ToolsPostResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity"},"V1ToolsPostResponsesContentApplicationJsonSchemaValidationWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"column":{"type":"number","format":"double"},"line":{"type":"number","format":"double"},"message":{"type":"string"},"severity":{"$ref":"#/components/schemas/V1ToolsPostResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity"},"suggestion":{"type":"string"}},"required":["code","message","severity"],"title":"V1ToolsPostResponsesContentApplicationJsonSchemaValidationWarningsItems"},"V1ToolsPostResponsesContentApplicationJsonSchemaValidation":{"type":"object","properties":{"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsPostResponsesContentApplicationJsonSchemaValidationWarningsItems"}}},"required":["warnings"],"title":"V1ToolsPostResponsesContentApplicationJsonSchemaValidation"},"Tools_createTool_Response_200":{"type":"object","properties":{"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"},"validation":{"$ref":"#/components/schemas/V1ToolsPostResponsesContentApplicationJsonSchemaValidation"}},"required":["config","createdAt","description","id","isActive","name","organizationId","toolType","updatedAt","userId"],"title":"Tools_createTool_Response_200"},"V1ToolsBuiltinGetResponsesContentApplicationJsonSchemaDataItemsModelCompatibilityItems":{"type":"object","properties":{"models":{"type":"array","items":{"type":"string"}},"provider":{"type":"string"}},"required":["models","provider"],"title":"V1ToolsBuiltinGetResponsesContentApplicationJsonSchemaDataItemsModelCompatibilityItems"},"V1ToolsBuiltinGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"category":{"type":"string"},"defaultConfig":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":"string"},"documentationUrl":{"type":"string"},"id":{"type":"string"},"modelCompatibility":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsBuiltinGetResponsesContentApplicationJsonSchemaDataItemsModelCompatibilityItems"}},"name":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"providers":{"type":"array","items":{"type":"string"}}},"required":["category","description","id","name","parametersSchema","providers"],"title":"V1ToolsBuiltinGetResponsesContentApplicationJsonSchemaDataItems"},"Tools_listBuiltInTools_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsBuiltinGetResponsesContentApplicationJsonSchemaDataItems"}},"total":{"type":"integer"}},"required":["data","total"],"title":"Tools_listBuiltInTools_Response_200"},"V1ToolsBuiltinCompatibleGetResponsesContentApplicationJsonSchemaDataItemsModelCompatibilityItems":{"type":"object","properties":{"models":{"type":"array","items":{"type":"string"}},"provider":{"type":"string"}},"required":["models","provider"],"title":"V1ToolsBuiltinCompatibleGetResponsesContentApplicationJsonSchemaDataItemsModelCompatibilityItems"},"V1ToolsBuiltinCompatibleGetResponsesContentApplicationJsonSchemaDataItems":{"type":"object","properties":{"category":{"type":"string"},"defaultConfig":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":"string"},"documentationUrl":{"type":"string"},"id":{"type":"string"},"modelCompatibility":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsBuiltinCompatibleGetResponsesContentApplicationJsonSchemaDataItemsModelCompatibilityItems"}},"name":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"providers":{"type":"array","items":{"type":"string"}}},"required":["category","description","id","name","parametersSchema","providers"],"title":"V1ToolsBuiltinCompatibleGetResponsesContentApplicationJsonSchemaDataItems"},"Tools_listCompatibleBuiltInTools_Response_200":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsBuiltinCompatibleGetResponsesContentApplicationJsonSchemaDataItems"}},"total":{"type":"integer"}},"required":["data","total"],"title":"Tools_listCompatibleBuiltInTools_Response_200"},"Tools_getBuiltInToolSchema_Response_200":{"type":"object","properties":{"defaultConfig":{"type":"object","additionalProperties":{"description":"Any type"}},"description":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}}},"required":["description","id","name","parametersSchema"],"title":"Tools_getBuiltInToolSchema_Response_200"},"V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity":{"type":"string","enum":["error","warning"],"title":"V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity"},"V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidationWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"column":{"type":"number","format":"double"},"line":{"type":"number","format":"double"},"message":{"type":"string"},"severity":{"$ref":"#/components/schemas/V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity"},"suggestion":{"type":"string"}},"required":["code","message","severity"],"title":"V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidationWarningsItems"},"V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidation":{"type":"object","properties":{"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidationWarningsItems"}}},"required":["warnings"],"title":"V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidation"},"Tools_convertFlowToTool_Response_200":{"type":"object","properties":{"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"},"validation":{"$ref":"#/components/schemas/V1ToolsFlowsFlowIdConvertToToolPostResponsesContentApplicationJsonSchemaValidation"}},"required":["config","createdAt","description","id","isActive","name","organizationId","toolType","updatedAt","userId"],"title":"Tools_convertFlowToTool_Response_200"},"Tools_deployRuntypeSandbox_Response_200":{"type":"object","properties":{"error":{"type":"string"},"output":{"type":"string"},"previewUrl":{"type":"string"},"sandboxId":{"type":"string"},"stage":{"type":"string"},"status":{"type":"string"}},"required":["sandboxId","status"],"title":"Tools_deployRuntypeSandbox_Response_200"},"Tools_cleanupRuntypeSandbox_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Tools_cleanupRuntypeSandbox_Response_200"},"Tools_deployDaytonaSandbox_Response_200":{"type":"object","properties":{"error":{"type":"string"},"output":{"type":"string"},"previewUrl":{"type":"string"},"sandboxId":{"type":"string"},"status":{"type":"string"}},"required":["status"],"title":"Tools_deployDaytonaSandbox_Response_200"},"Tools_cleanupDaytonaSandbox_Response_200":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"title":"Tools_cleanupDaytonaSandbox_Response_200"},"V1ToolsSchemaGetResponsesContentApplicationJsonSchemaToolsItems":{"type":"object","properties":{"description":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"parametersSchema":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"toolType":{"type":"string"}},"required":["description","id","name","parametersSchema","toolType"],"title":"V1ToolsSchemaGetResponsesContentApplicationJsonSchemaToolsItems"},"Tools_getToolSchemas_Response_200":{"type":"object","properties":{"tools":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsSchemaGetResponsesContentApplicationJsonSchemaToolsItems"}}},"required":["tools"],"title":"Tools_getToolSchemas_Response_200"},"Tools_getToolDetails_Response_200":{"type":"object","properties":{"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"}},"required":["config","createdAt","description","id","isActive","name","organizationId","toolType","updatedAt","userId"],"title":"Tools_getToolDetails_Response_200"},"V1ToolsIdPutResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity":{"type":"string","enum":["error","warning"],"title":"V1ToolsIdPutResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity"},"V1ToolsIdPutResponsesContentApplicationJsonSchemaValidationWarningsItems":{"type":"object","properties":{"code":{"type":"string"},"column":{"type":"number","format":"double"},"line":{"type":"number","format":"double"},"message":{"type":"string"},"severity":{"$ref":"#/components/schemas/V1ToolsIdPutResponsesContentApplicationJsonSchemaValidationWarningsItemsSeverity"},"suggestion":{"type":"string"}},"required":["code","message","severity"],"title":"V1ToolsIdPutResponsesContentApplicationJsonSchemaValidationWarningsItems"},"V1ToolsIdPutResponsesContentApplicationJsonSchemaValidation":{"type":"object","properties":{"warnings":{"type":"array","items":{"$ref":"#/components/schemas/V1ToolsIdPutResponsesContentApplicationJsonSchemaValidationWarningsItems"}}},"required":["warnings"],"title":"V1ToolsIdPutResponsesContentApplicationJsonSchemaValidation"},"Tools_updateTool_Response_200":{"type":"object","properties":{"config":{"type":["object","null"],"additionalProperties":{"description":"Any type"}},"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":"string"},"organizationId":{"type":["string","null"]},"parametersSchema":{"type":"object","additionalProperties":{"description":"Any type"}},"toolType":{"type":"string"},"updatedAt":{"type":"string"},"userId":{"type":"string"},"validation":{"$ref":"#/components/schemas/V1ToolsIdPutResponsesContentApplicationJsonSchemaValidation"}},"required":["config","createdAt","description","id","isActive","name","organizationId","toolType","updatedAt","userId"],"title":"Tools_updateTool_Response_200"},"Tools_deleteTool_Response_200":{"type":"object","properties":{"deletedId":{"type":"string"},"success":{"type":"boolean"}},"required":["deletedId","success"],"title":"Tools_deleteTool_Response_200"},"V1ToolsIdExecutePostRequestBodyContentApplicationJsonSchemaContext":{"type":"object","properties":{"flowExecutionId":{"type":"string"},"stepId":{"type":"string"},"userId":{"type":"string"}},"required":["userId"],"title":"V1ToolsIdExecutePostRequestBodyContentApplicationJsonSchemaContext"},"V1ToolsIdExecutePostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["pending","success","failed","waiting_for_local"],"title":"V1ToolsIdExecutePostResponsesContentApplicationJsonSchemaStatus"},"Tools_executeTool_Response_200":{"type":"object","properties":{"error":{"type":"string"},"executionId":{"type":"string"},"executionTimeMs":{"type":"number","format":"double"},"result":{"description":"Any type"},"status":{"$ref":"#/components/schemas/V1ToolsIdExecutePostResponsesContentApplicationJsonSchemaStatus"}},"required":["executionId","executionTimeMs","status"],"title":"Tools_executeTool_Response_200"},"V1ToolsIdTestPostResponsesContentApplicationJsonSchemaStatus":{"type":"string","enum":["pending","success","failed","waiting_for_local"],"title":"V1ToolsIdTestPostResponsesContentApplicationJsonSchemaStatus"},"Tools_testTool_Response_200":{"type":"object","properties":{"error":{"type":"string"},"executionId":{"type":"string"},"executionTimeMs":{"type":"number","format":"double"},"result":{"description":"Any type"},"status":{"$ref":"#/components/schemas/V1ToolsIdTestPostResponsesContentApplicationJsonSchemaStatus"}},"required":["executionId","executionTimeMs","status"],"title":"Tools_testTool_Response_200"},"UsageResponseUsageDaily":{"type":"object","properties":{"atSpendLimit":{"type":"boolean"},"date":{"type":"string"},"executionLimit":{"type":"number","format":"double"},"executionsUsed":{"type":"number","format":"double"},"inSlowMode":{"type":"boolean"},"isAtLimit":{"type":"boolean"},"isNearLimit":{"type":"boolean"},"isOverage":{"type":"boolean"},"isUnlimited":{"type":"boolean"},"overageCount":{"type":"number","format":"double"},"percentUsed":{"type":"number","format":"double"},"periodType":{"type":"string"},"remaining":{"type":["number","null"],"format":"double"},"resetsAt":{"type":"string"},"spendLimit":{"type":["number","null"],"format":"double"},"spendLimitEnabled":{"type":"boolean"},"tier":{"type":"string"}},"required":["atSpendLimit","date","executionLimit","executionsUsed","inSlowMode","isAtLimit","isNearLimit","isOverage","isUnlimited","overageCount","percentUsed","periodType","remaining","resetsAt","spendLimit","spendLimitEnabled","tier"],"title":"UsageResponseUsageDaily"},"UsageResponseUsageMonthly":{"type":"object","properties":{"atSpendLimit":{"type":"boolean"},"date":{"type":"string"},"executionLimit":{"type":"number","format":"double"},"executionsUsed":{"type":"number","format":"double"},"inSlowMode":{"type":"boolean"},"isAtLimit":{"type":"boolean"},"isNearLimit":{"type":"boolean"},"isOverage":{"type":"boolean"},"isUnlimited":{"type":"boolean"},"overageCount":{"type":"number","format":"double"},"percentUsed":{"type":"number","format":"double"},"periodType":{"type":"string"},"remaining":{"type":["number","null"],"format":"double"},"resetsAt":{"type":"string"},"spendLimit":{"type":["number","null"],"format":"double"},"spendLimitEnabled":{"type":"boolean"},"tier":{"type":"string"}},"required":["atSpendLimit","date","executionLimit","executionsUsed","inSlowMode","isAtLimit","isNearLimit","isOverage","isUnlimited","overageCount","percentUsed","periodType","remaining","resetsAt","spendLimit","spendLimitEnabled","tier"],"title":"UsageResponseUsageMonthly"},"UsageResponseUsage":{"type":"object","properties":{"atSpendLimit":{"type":"boolean"},"daily":{"$ref":"#/components/schemas/UsageResponseUsageDaily"},"isNearLimit":{"type":"boolean"},"isOverLimit":{"type":"boolean"},"isUnlimited":{"type":"boolean"},"month":{"type":"string"},"monthly":{"$ref":"#/components/schemas/UsageResponseUsageMonthly"},"percentUsed":{"type":"number","format":"double"},"platformTokenLimit":{"type":["number","null"],"format":"double"},"platformTokensUsed":{"type":"number","format":"double"},"remaining":{"type":["number","null"],"format":"double"},"spendLimit":{"type":["number","null"],"format":"double"},"spendLimitEnabled":{"type":"boolean"},"userId":{"type":"string"}},"required":["atSpendLimit","isNearLimit","isOverLimit","isUnlimited","month","percentUsed","platformTokenLimit","platformTokensUsed","remaining","spendLimit","spendLimitEnabled","userId"],"title":"UsageResponseUsage"},"UsageResponse":{"type":"object","properties":{"usage":{"$ref":"#/components/schemas/UsageResponseUsage"}},"required":["usage"],"title":"UsageResponse"},"DailyUsageResponseDaily":{"type":"object","properties":{"atSpendLimit":{"type":"boolean"},"date":{"type":"string"},"executionLimit":{"type":"number","format":"double"},"executionsUsed":{"type":"number","format":"double"},"inSlowMode":{"type":"boolean"},"isAtLimit":{"type":"boolean"},"isNearLimit":{"type":"boolean"},"isOverage":{"type":"boolean"},"isUnlimited":{"type":"boolean"},"overageCount":{"type":"number","format":"double"},"percentUsed":{"type":"number","format":"double"},"periodType":{"type":"string"},"remaining":{"type":["number","null"],"format":"double"},"resetsAt":{"type":"string"},"spendLimit":{"type":["number","null"],"format":"double"},"spendLimitEnabled":{"type":"boolean"},"tier":{"type":"string"}},"required":["atSpendLimit","date","executionLimit","executionsUsed","inSlowMode","isAtLimit","isNearLimit","isOverage","isUnlimited","overageCount","percentUsed","periodType","remaining","resetsAt","spendLimit","spendLimitEnabled","tier"],"title":"DailyUsageResponseDaily"},"DailyUsageResponseMonthly":{"type":"object","properties":{"atSpendLimit":{"type":"boolean"},"date":{"type":"string"},"executionLimit":{"type":"number","format":"double"},"executionsUsed":{"type":"number","format":"double"},"inSlowMode":{"type":"boolean"},"isAtLimit":{"type":"boolean"},"isNearLimit":{"type":"boolean"},"isOverage":{"type":"boolean"},"isUnlimited":{"type":"boolean"},"overageCount":{"type":"number","format":"double"},"percentUsed":{"type":"number","format":"double"},"periodType":{"type":"string"},"remaining":{"type":["number","null"],"format":"double"},"resetsAt":{"type":"string"},"spendLimit":{"type":["number","null"],"format":"double"},"spendLimitEnabled":{"type":"boolean"},"tier":{"type":"string"}},"required":["atSpendLimit","date","executionLimit","executionsUsed","inSlowMode","isAtLimit","isNearLimit","isOverage","isUnlimited","overageCount","percentUsed","periodType","remaining","resetsAt","spendLimit","spendLimitEnabled","tier"],"title":"DailyUsageResponseMonthly"},"DailyUsageResponse":{"type":"object","properties":{"daily":{"$ref":"#/components/schemas/DailyUsageResponseDaily"},"monthly":{"$ref":"#/components/schemas/DailyUsageResponseMonthly"}},"title":"DailyUsageResponse"},"Users_completeOnboarding_Response_200":{"type":"object","properties":{"completed":{"type":"boolean"},"completedAt":{"type":["string","null"]}},"required":["completed","completedAt"],"title":"Users_completeOnboarding_Response_200"},"Users_resetOnboarding_Response_200":{"type":"object","properties":{"completed":{"type":"boolean"},"completedAt":{"type":["string","null"]}},"required":["completed","completedAt"],"title":"Users_resetOnboarding_Response_200"},"V1UsersProfileGetResponsesContentApplicationJsonSchemaFeatures":{"type":"object","properties":{"enableAgentSkills":{"type":"boolean"},"productGeneratorModel":{"type":"string"}},"required":["enableAgentSkills","productGeneratorModel"],"title":"V1UsersProfileGetResponsesContentApplicationJsonSchemaFeatures"},"V1UsersProfileGetResponsesContentApplicationJsonSchemaPreferences":{"type":"object","properties":{"notifications":{"type":"boolean"},"theme":{"type":"string"}},"required":["notifications","theme"],"title":"V1UsersProfileGetResponsesContentApplicationJsonSchemaPreferences"},"Users_getUserProfile_Response_200":{"type":"object","properties":{"createdAt":{"type":"string"},"dashboardUrl":{"type":"string"},"email":{"type":["string","null"]},"features":{"$ref":"#/components/schemas/V1UsersProfileGetResponsesContentApplicationJsonSchemaFeatures"},"id":{"type":"string"},"orgId":{"type":["string","null"]},"preferences":{"$ref":"#/components/schemas/V1UsersProfileGetResponsesContentApplicationJsonSchemaPreferences"}},"required":["createdAt","dashboardUrl","email","features","id","preferences"],"title":"Users_getUserProfile_Response_200"},"V1UsersProfilePutRequestBodyContentApplicationJsonSchemaPreferencesTheme":{"type":"string","enum":["light","dark","system"],"title":"V1UsersProfilePutRequestBodyContentApplicationJsonSchemaPreferencesTheme"},"V1UsersProfilePutRequestBodyContentApplicationJsonSchemaPreferences":{"type":"object","properties":{"defaultModel":{"type":"string"},"notifications":{"type":"boolean"},"theme":{"$ref":"#/components/schemas/V1UsersProfilePutRequestBodyContentApplicationJsonSchemaPreferencesTheme"}},"title":"V1UsersProfilePutRequestBodyContentApplicationJsonSchemaPreferences"},"UpdateUserProfileResponsePreferencesTheme":{"type":"string","enum":["light","dark","system"],"title":"UpdateUserProfileResponsePreferencesTheme"},"UpdateUserProfileResponsePreferences":{"type":"object","properties":{"defaultModel":{"type":"string"},"notifications":{"type":"boolean"},"theme":{"$ref":"#/components/schemas/UpdateUserProfileResponsePreferencesTheme"}},"title":"UpdateUserProfileResponsePreferences"},"UpdateUserProfileResponse":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"id":{"type":"string"},"lastName":{"type":"string"},"preferences":{"$ref":"#/components/schemas/UpdateUserProfileResponsePreferences"},"updatedAt":{"type":"string"}},"required":["id","updatedAt"],"title":"UpdateUserProfileResponse"},"V1UsersStatsGetResponsesContentApplicationJsonSchemaStats":{"type":"object","properties":{"totalExecutions":{"type":"number","format":"double"},"totalFlows":{"type":"number","format":"double"},"totalPrompts":{"type":"number","format":"double"},"totalRecords":{"type":"number","format":"double"}},"required":["totalExecutions","totalFlows","totalPrompts","totalRecords"],"title":"V1UsersStatsGetResponsesContentApplicationJsonSchemaStats"},"Users_getUserStatistics_Response_200":{"type":"object","properties":{"lastActive":{"type":"string"},"stats":{"$ref":"#/components/schemas/V1UsersStatsGetResponsesContentApplicationJsonSchemaStats"},"userId":{"type":"string"}},"required":["lastActive","stats","userId"],"title":"Users_getUserStatistics_Response_200"},"V1ValidateLiquidTemplatePostResponsesContentApplicationJsonSchemaIssuesItems":{"type":"object","properties":{},"title":"V1ValidateLiquidTemplatePostResponsesContentApplicationJsonSchemaIssuesItems"},"Validation_validateLiquidTemplate_Response_200":{"type":"object","properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/V1ValidateLiquidTemplatePostResponsesContentApplicationJsonSchemaIssuesItems"}},"valid":{"type":"boolean"}},"required":["issues","valid"],"title":"Validation_validateLiquidTemplate_Response_200"},"V1ValidateTransformCodePostResponsesContentApplicationJsonSchemaIssuesItems":{"type":"object","properties":{},"title":"V1ValidateTransformCodePostResponsesContentApplicationJsonSchemaIssuesItems"},"Validation_validateTransformCode_Response_200":{"type":"object","properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/V1ValidateTransformCodePostResponsesContentApplicationJsonSchemaIssuesItems"}},"valid":{"type":"boolean"}},"required":["issues","valid"],"title":"Validation_validateTransformCode_Response_200"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key or Clerk session token"},"A2ASurfaceKey":{"type":"apiKey","in":"header","name":"Authorization","description":"A2A surface key sent as `Authorization: Bearer a2a_...` or `X-API-Key: a2a_...`."}}}}