{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/alive":{"get":{"summary":"Liveness Check","operationId":"liveness_check_alive_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Liveness Check Alive Get"}}}}}}},"/agent-vault-canary":{"get":{"summary":"Agent Vault Canary","description":"Controlled, no-payload target for the functional proxy canary.","operationId":"agent_vault_canary_agent_vault_canary_get","parameters":[{"name":"x-auctor-agent-vault-canary","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Auctor-Agent-Vault-Canary"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/chat/preview-replay-capabilities":{"get":{"summary":"Preview Replay Capabilities","operationId":"preview_replay_capabilities_api_py_chat_preview_replay_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"object","title":"Response Preview Replay Capabilities Api Py Chat Preview Replay Capabilities Get"}}}}}}},"/api/py/chat/preview-replay-finalization":{"get":{"summary":"Preview Replay Finalization","operationId":"preview_replay_finalization_api_py_chat_preview_replay_finalization_get","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"integer"}]},"title":"Response Preview Replay Finalization Api Py Chat Preview Replay Finalization Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/chat/stream":{"post":{"summary":"Post Stream","operationId":"post_stream_api_py_chat_stream_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostChatStreamRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Stream","operationId":"get_stream_api_py_chat_stream_get","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"after_turn","in":"query","required":true,"schema":{"type":"integer","title":"After Turn"}},{"name":"after_event_id","in":"query","required":false,"schema":{"type":"string","default":"0-0","title":"After Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/chat/preferences/resolved":{"get":{"summary":"Get Resolved Tool Preferences","operationId":"get_resolved_tool_preferences_api_py_chat_preferences_resolved_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Response Get Resolved Tool Preferences Api Py Chat Preferences Resolved Get"}}}}}}},"/api/py/chat/model-options":{"get":{"summary":"Get Model Options","operationId":"get_model_options_api_py_chat_model_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatModelOptionsResponse"}}}}}}},"/api/py/chat/ably/token":{"get":{"summary":"Get Ably Token","operationId":"get_ably_token_api_py_chat_ably_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AblyTokenResponse"}}}}}}},"/api/py/chat/interrupt":{"post":{"summary":"Interrupt Stream","operationId":"interrupt_stream_api_py_chat_interrupt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterruptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Interrupt Stream Api Py Chat Interrupt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/chat/upload":{"post":{"summary":"Upload Chat File","operationId":"upload_chat_file_api_py_chat_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_chat_file_api_py_chat_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/chat/routines/upload":{"post":{"summary":"Upload Routine File","operationId":"upload_routine_file_api_py_chat_routines_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_routine_file_api_py_chat_routines_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/a2a/tasks":{"post":{"tags":["internal-a2a"],"summary":"Create Task","operationId":"create_task_api_py_a2a_tasks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/A2ATaskCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/A2ATaskCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/a2a/tasks/{task_id}":{"get":{"tags":["internal-a2a"],"summary":"Check Task","operationId":"check_task_api_py_a2a_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/A2ATaskCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/a2a/tasks/{task_id}/await":{"get":{"tags":["internal-a2a"],"summary":"Await Task","operationId":"await_task_api_py_a2a_tasks__task_id__await_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"timeout_s","in":"query","required":false,"schema":{"type":"integer","maximum":120,"minimum":1,"default":60,"title":"Timeout S"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/A2ATaskAwaitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/a2a/tasks/{task_id}/approve":{"post":{"tags":["internal-a2a"],"summary":"Approve Task","operationId":"approve_task_api_py_a2a_tasks__task_id__approve_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/A2ATaskApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/A2ATaskApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/index":{"post":{"summary":"Index Session Endpoint","operationId":"index_session_endpoint_api_py_sessions_index_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexSessionRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/analyze":{"post":{"summary":"Analyze Session Endpoint","operationId":"analyze_session_endpoint_api_py_sessions_analyze_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/move":{"post":{"summary":"Move Sessions","operationId":"move_sessions_api_py_sessions_move_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveSessionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveSessionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/participants":{"post":{"summary":"Set Session Participants","operationId":"set_session_participants_api_py_sessions_participants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetParticipantsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetParticipantsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/delete":{"post":{"summary":"Delete Sessions","operationId":"delete_sessions_api_py_sessions_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSessionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSessionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/recap":{"post":{"summary":"Generate Recap","operationId":"generate_recap_api_py_sessions_recap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/discovery-questions":{"post":{"summary":"Generate Discovery Questions","operationId":"generate_discovery_questions_api_py_sessions_discovery_questions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/transcribe":{"post":{"summary":"Transcribe Session","operationId":"transcribe_session_api_py_sessions_transcribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscribeSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscribeSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/import-loom":{"post":{"summary":"Import Loom Recording","description":"Metadata-only read creates the row; process_session fetches the media later.","operationId":"import_loom_recording_api_py_sessions_import_loom_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportLoomRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportLoomResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sessions/fetch-loom-media":{"post":{"summary":"Fetch Loom Media","description":"Idempotent media download called by process_session's fetch_loom_recording step.","operationId":"fetch_loom_media_api_py_sessions_fetch_loom_media_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchLoomMediaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchLoomMediaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/billing/model-usage":{"post":{"tags":["billing"],"summary":"Record Model Usage","operationId":"record_model_usage_api_py_billing_model_usage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordModelUsageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Record Model Usage Api Py Billing Model Usage Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/usage/per-user-totals":{"get":{"tags":["usage"],"summary":"Get Per User Totals","operationId":"get_per_user_totals_api_py_usage_per_user_totals_get","parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Organization Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"To"}},{"name":"user_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"title":"User Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerUserTotalsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/usage/org-spend-total":{"get":{"tags":["usage"],"summary":"Get Org Spend Total","operationId":"get_org_spend_total_api_py_usage_org_spend_total_get","parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Organization Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgSpendTotalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/usage/user-credits-over-time":{"get":{"tags":["usage"],"summary":"Get User Credits Over Time","operationId":"get_user_credits_over_time_api_py_usage_user_credits_over_time_get","parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Organization Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"granularity","in":"query","required":true,"schema":{"enum":["day","week","month","year"],"type":"string","title":"Granularity"}},{"name":"user_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"title":"User Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreditsOverTimeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/usage/model-credits-over-time":{"get":{"tags":["usage"],"summary":"Get Model Credits Over Time","operationId":"get_model_credits_over_time_api_py_usage_model_credits_over_time_get","parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Organization Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"granularity","in":"query","required":true,"schema":{"enum":["day","week","month","year"],"type":"string","title":"Granularity"}},{"name":"breakdown","in":"query","required":false,"schema":{"enum":["model","product_surface"],"type":"string","default":"model","title":"Breakdown"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCreditsOverTimeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/usage/user-model-credits-over-time":{"get":{"tags":["usage"],"summary":"Get User Model Credits Over Time","operationId":"get_user_model_credits_over_time_api_py_usage_user_model_credits_over_time_get","parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Organization Id"}},{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"granularity","in":"query","required":true,"schema":{"enum":["day","week","month","year"],"type":"string","title":"Granularity"}},{"name":"breakdown","in":"query","required":false,"schema":{"enum":["model","product_surface"],"type":"string","default":"model","title":"Breakdown"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCreditsOverTimeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/usage/user-events":{"get":{"tags":["usage"],"summary":"Get User Events","operationId":"get_user_events_api_py_usage_user_events_get","parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Organization Id"}},{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor_occurred_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor Occurred At"}},{"name":"cursor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserEventsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/usage/breakdown":{"get":{"tags":["usage"],"summary":"Get Usage Breakdown","operationId":"get_usage_breakdown_api_py_usage_breakdown_get","parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Organization Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageBreakdownResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/files/sync":{"post":{"summary":"Sync","description":"Handle TipTap collaboration webhook events by persisting document content\nchanges to Supabase and updating source citation references.\n\nSkips processing for non-DOCUMENT types, empty content, and content that\nis identical to the current version (avoiding unnecessary writes). Emits\nstructured ``[files-sync]`` lifecycle logs with timing for observability.","operationId":"sync_api_py_files_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiptapWebhookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiptapWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/desktop/match-session":{"post":{"summary":"Match Session","operationId":"match_session_api_py_desktop_match_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/desktop/create-recording":{"post":{"summary":"Create Desktop Recording","operationId":"create_desktop_recording_api_py_desktop_create_recording_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRecordingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRecordingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/desktop/recording-ended":{"post":{"summary":"Notify Recording Ended","operationId":"notify_recording_ended_api_py_desktop_recording_ended_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordingEndedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordingEndedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/desktop/should-stop":{"get":{"summary":"Should Stop Recording","operationId":"should_stop_recording_api_py_desktop_should_stop_get","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShouldStopResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/desktop/me":{"get":{"summary":"Me","operationId":"me_api_py_desktop_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}}}}},"/api/py/desktop/update":{"get":{"summary":"Check For Update","operationId":"check_for_update_api_py_desktop_update_get","parameters":[{"name":"platform","in":"query","required":true,"schema":{"type":"string","title":"Platform"}},{"name":"version","in":"query","required":true,"schema":{"type":"string","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/desktop/download":{"get":{"summary":"Download App","operationId":"download_app_api_py_desktop_download_get","parameters":[{"name":"platform","in":"query","required":true,"schema":{"type":"string","title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/mcp/begin-connect":{"post":{"summary":"Begin Mcp Connect","operationId":"begin_mcp_connect_api_py_mcp_begin_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeginMCPConnectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/mcp/complete-connect":{"post":{"summary":"Complete Mcp Connect","operationId":"complete_mcp_connect_api_py_mcp_complete_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteMCPConnectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/mcp/connect-with-key":{"post":{"summary":"Connect With Api Key","description":"Create an MCP connection using a static API key instead of OAuth.\n\nStores the key, validates it by running MCP discovery, and returns\nthe connection info with tool count on success.","operationId":"connect_with_api_key_api_py_mcp_connect_with_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectWithKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/mcp/update-key":{"post":{"summary":"Update Mcp Api Key","description":"Rotate the API key for an existing api_key connection and re-validate.\n\nAlso accepts an optional ``header_name`` so users can switch a connection\nbetween the default ``Authorization: Bearer`` flow and a custom header\n(or vice versa) at the same time as rotating the key — no need to\ndisconnect + re-add.","operationId":"update_mcp_api_key_api_py_mcp_update_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/mcp/resync":{"post":{"summary":"Resync Mcp Connection","operationId":"resync_mcp_connection_api_py_mcp_resync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResyncMCPRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/delivery/sources/attach":{"post":{"summary":"Attach Source","operationId":"attach_source_api_py_delivery_sources_attach_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SalesforceOrgAttachBody"},{"$ref":"#/components/schemas/GithubRepoAttachBody"},{"$ref":"#/components/schemas/NetsuiteAccountAttachBody"},{"$ref":"#/components/schemas/ServicenowInstanceAttachBody"},{"$ref":"#/components/schemas/AtlassianOrgAttachBody"},{"$ref":"#/components/schemas/AtlassianAdminAttachBody"},{"$ref":"#/components/schemas/WorkdayTenantAttachBody"},{"$ref":"#/components/schemas/HubspotAccountAttachBody"}],"title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachedSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/delivery/sources/detach":{"post":{"summary":"Detach Source Route","operationId":"detach_source_route_api_py_delivery_sources_detach_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SalesforceOrgDetachBody"},{"$ref":"#/components/schemas/GithubRepoDetachBody"},{"$ref":"#/components/schemas/NetsuiteAccountDetachBody"},{"$ref":"#/components/schemas/ServicenowInstanceDetachBody"},{"$ref":"#/components/schemas/AtlassianOrgDetachBody"},{"$ref":"#/components/schemas/AtlassianAdminDetachBody"},{"$ref":"#/components/schemas/WorkdayTenantDetachBody"},{"$ref":"#/components/schemas/HubspotAccountDetachBody"}],"title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachedSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/delivery/sources/smoke-check":{"post":{"summary":"Smoke Check Source","operationId":"smoke_check_source_api_py_delivery_sources_smoke_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceOrgSmokeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmokeCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/delivery/sources/salesforce/adapter-tools-probe":{"post":{"summary":"Salesforce Adapter Tools Probe","operationId":"salesforce_adapter_tools_probe_api_py_delivery_sources_salesforce_adapter_tools_probe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceAdapterToolsProbeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdapterToolsProbeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/delivery/installations/{installation_id}/repos":{"get":{"summary":"List Installation Repos","operationId":"list_installation_repos_api_py_delivery_installations__installation_id__repos_get","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Installation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationReposResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/delivery/github/installations/{installation_id}/repos/{external_repo_id}/branches":{"get":{"summary":"List Github Repo Branches","operationId":"list_github_repo_branches_api_py_delivery_github_installations__installation_id__repos__external_repo_id__branches_get","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Installation Id"}},{"name":"external_repo_id","in":"path","required":true,"schema":{"type":"string","title":"External Repo Id"}},{"name":"owner","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Owner"}},{"name":"repo","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Repo"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"branch","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Branch"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoBranchesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/delivery/wiki/runs/start":{"post":{"summary":"Post Start Run","operationId":"post_start_run_api_py_delivery_wiki_runs_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartRunBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/delivery/wiki/runs/reconcile":{"post":{"summary":"Post Reconcile Run","operationId":"post_reconcile_run_api_py_delivery_wiki_runs_reconcile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ReconcileRunBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/gong/backfills/start":{"post":{"summary":"Post Start Backfill","operationId":"post_start_backfill_api_py_gong_backfills_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartBackfillBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartBackfillResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/gong/imports/start":{"post":{"summary":"Post Start Import","operationId":"post_start_import_api_py_gong_imports_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartImportBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/gong/reconciles/start":{"post":{"summary":"Post Start Reconcile","operationId":"post_start_reconcile_api_py_gong_reconciles_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartReconcileBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartReconcileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/gong/refreshes/start":{"post":{"summary":"Post Start Refresh","operationId":"post_start_refresh_api_py_gong_refreshes_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartRefreshBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartRefreshResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/portals/comments/publish":{"post":{"summary":"Publish Comment Event","description":"Internal, service-key-authenticated publish for portal comment realtime.\n\nDriven fire-and-forget by the tRPC comment mutations after a successful DB\nwrite. Best-effort: failures here never affect the already-committed write.","operationId":"publish_comment_event_api_py_portals_comments_publish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishCommentEventRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Publish Comment Event Api Py Portals Comments Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/provisioning/start":{"post":{"summary":"Start Sandbox Provisioning Route","description":"Start or attach to sandbox provisioning for an existing request.\n\nRequires service-key authentication, and the authenticated organization\nmust match the request body. Repeated calls return the persisted state or\nattach to the deterministic workflow instead of creating another sandbox.","operationId":"start_sandbox_provisioning_route_api_py_sandbox_provisioning_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartSandboxProvisioningBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartSandboxProvisioningResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/content-resets/start":{"post":{"summary":"Start Content Reset Route","operationId":"start_content_reset_route_api_py_sandbox_content_resets_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartContentResetBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartContentResetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/seeding/file-index":{"post":{"summary":"Dispatch Seed File Index","description":"Queue indexing for one cloned sandbox file.\n\nRequires service-key authentication and scopes the indexing event to the\nauthenticated organization. Returns 202 after emitting\n``chronos/file.index``; the indexing pipeline later marks the requested\nfile version ``resting``.","operationId":"dispatch_seed_file_index_api_py_sandbox_seeding_file_index_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_FileIndexBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_FileIndexResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/seeding/copy-artifact-index":{"post":{"summary":"Copy Seed Artifact Index","description":"Deep-copy one cloned sandbox artifact's index rows in-namespace.\n\n``copied: 0`` with a ``skipped_reason`` tells the caller to fall back to a\nreal indexing run; infrastructure failures return 502.","operationId":"copy_seed_artifact_index_api_py_sandbox_seeding_copy_artifact_index_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CopyArtifactIndexBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CopyArtifactIndexResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/seeding/clear-space-index":{"post":{"summary":"Clear Seed Space Index","description":"Delete every index row scoped to one sandbox space.\n\nWithout this, reset clones deleted and reseeded under fresh ids stay\nsearchable forever. Scoped to the caller organization's namespace.","operationId":"clear_seed_space_index_api_py_sandbox_seeding_clear_space_index_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ClearSpaceIndexBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ClearSpaceIndexResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/seeding/duplicate-tiptap":{"post":{"summary":"Duplicate Seed Tiptap Document","description":"Copy a source Tiptap document to a cloned sandbox file.\n\nFetches the source as Yjs and creates the destination at\n``cloned_file_id``. A missing source or existing destination returns\n``duplicated: false`` with ``source_missing`` or ``already_exists``;\nother Tiptap failures return 502.","operationId":"duplicate_seed_tiptap_document_api_py_sandbox_seeding_duplicate_tiptap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_DuplicateTiptapBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_DuplicateTiptapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/seeding/create-tiptap":{"post":{"summary":"Create Seed Tiptap Document","description":"Create a Tiptap document for an authored sandbox seed file.\n\nValidates a ProseMirror document and creates it at ``file_id`` without\noverwriting existing content. An existing document returns\n``created: false`` with ``already_exists``; other Tiptap failures return\n502.","operationId":"create_seed_tiptap_document_api_py_sandbox_seeding_create_tiptap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CreateTiptapBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CreateTiptapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/seeding/create-skill-tiptap":{"post":{"summary":"Create Seed Skill Tiptap Document","description":"Create the Tiptap document for a seeded starter skill.\n\nSkill documents live at the ``skill:{skill_id}`` document name (the\nconvention of features/skills/tiptap/resource.ts ``tiptapDocumentName``),\nunlike sandbox seed files, whose documents live at the bare file id.\nSeed skill ids are deterministic (UUIDv5 over ``org:user:name``), so the\ndocument name is required to derive from the caller's authenticated\norganization — a service-key holder cannot materialize documents outside\nits own org. Creation never overwrites existing content: an existing\ndocument returns ``created: false`` with ``already_exists``; other Tiptap\nfailures return 502.","operationId":"create_seed_skill_tiptap_document_api_py_sandbox_seeding_create_skill_tiptap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CreateSkillTiptapBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_CreateSkillTiptapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/seeding/replace-skill-tiptap":{"post":{"summary":"Replace Seed Skill Tiptap Document","description":"Replace the Tiptap document of an existing skill row for a starter\nskill restore (onboarding ADR 0017).\n\nRestore targets keep their row id, and a legacy starter skill row carries\na non-deterministic id, so the create route's derivation check cannot\nauthorize this write. Containment comes from the database instead: the\nskill row must exist under the caller's authenticated organization and\nthe given user, whatever its deleted state. Replacement overwrites an\nexisting document and creates a missing one — a soft-deleted skill's\ndocument was deleted with it.","operationId":"replace_seed_skill_tiptap_document_api_py_sandbox_seeding_replace_skill_tiptap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ReplaceSkillTiptapBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_ReplaceSkillTiptapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/starter-skill-restores/start":{"post":{"summary":"Start Starter Skill Restore Route","operationId":"start_starter_skill_restore_route_api_py_sandbox_starter_skill_restores_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartStarterSkillRestoreBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_StartStarterSkillRestoreResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/sandbox/template/ensure":{"post":{"summary":"Ensure Template Project Route","description":"Start the Template Project ensure workflow for an organization.\n\nRequires service-key authentication, and the authenticated organization\nmust match the request body. Concurrent calls attach to the open\ndeterministic workflow; later calls may start another idempotent ensure\nrun.","operationId":"ensure_template_project_route_api_py_sandbox_template_ensure_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EnsureTemplateProjectBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/_EnsureTemplateProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/docs/sitemap":{"get":{"summary":"Sitemap","operationId":"sitemap_api_py_docs_sitemap_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/py/docs/search":{"get":{"summary":"Search","operationId":"search_api_py_docs_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":256,"description":"Regular expression, case-insensitive.","title":"Q"},"description":"Regular expression, case-insensitive."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Maximum matching lines returned.","default":50,"title":"Limit"},"description":"Maximum matching lines returned."},{"name":"context","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":0,"description":"Lines of context around each match, like grep -C.","default":0,"title":"Context"},"description":"Lines of context around each match, like grep -C."},{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only scan this page or section prefix, e.g. integrations.","title":"Path"},"description":"Only scan this page or section prefix, e.g. integrations."},{"name":"count","in":"query","required":false,"schema":{"type":"boolean","description":"Return path:count per matching page, sorted by count descending.","default":false,"title":"Count"},"description":"Return path:count per matching page, sorted by count descending."}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/docs/read":{"get":{"summary":"Read","operationId":"read_api_py_docs_read_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Exact page path as emitted by sitemap/search.","title":"Path"},"description":"Exact page path as emitted by sitemap/search."}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/integrations/{provider}/connect":{"post":{"summary":"Connect","operationId":"connect_api_py_integrations__provider__connect_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/integrations/{provider}/exchange":{"post":{"summary":"Exchange","operationId":"exchange_api_py_integrations__provider__exchange_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/integrations/{provider}/credentials":{"post":{"summary":"Credentials","operationId":"credentials_api_py_integrations__provider__credentials_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/integrations/{provider}/token":{"get":{"summary":"Token","operationId":"token_api_py_integrations__provider__token_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"principal_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PrincipalType"}},{"name":"principal_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Principal Id"}},{"name":"external_key","in":"query","required":false,"schema":{"type":"string","default":"","title":"External Key"}},{"name":"min_ttl","in":"query","required":false,"schema":{"type":"integer","maximum":86400,"minimum":0,"default":0,"title":"Min Ttl"}},{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/integrations/grants":{"get":{"summary":"Grants","operationId":"grants_api_py_integrations_grants_get","parameters":[{"name":"principal_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PrincipalType"}},{"name":"principal_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Principal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/integrations/{provider}/grant":{"delete":{"summary":"Delete Grant","operationId":"delete_grant_api_py_integrations__provider__grant_delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"principal_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/PrincipalType"}},{"name":"principal_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Principal Id"}},{"name":"external_key","in":"query","required":false,"schema":{"type":"string","default":"","title":"External Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/integrations/principals/{principal_type}/{principal_id}":{"delete":{"summary":"Delete Principal","operationId":"delete_principal_api_py_integrations_principals__principal_type___principal_id__delete","parameters":[{"name":"principal_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PrincipalType"}},{"name":"principal_id","in":"path","required":true,"schema":{"type":"string","title":"Principal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/py/routines/model-options":{"get":{"tags":["routines"],"summary":"Get Model Options","operationId":"get_model_options_api_py_routines_model_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutineModelOptionsResponse"}}}}}}},"/v2/spaces":{"get":{"tags":["spaces"],"summary":"List Spaces","operationId":"list_spaces_v2_spaces_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["account","project","organization"],"type":"string"},{"type":"null"}],"description":"Filter spaces by scope. Only `account`, `project`, and `organization` are filterable. Personal spaces are organization-exclusive and are never returned by this org-scoped listing, so `personal` is not a valid filter value and personal spaces are already excluded by default.","title":"Type"},"description":"Filter spaces by scope. Only `account`, `project`, and `organization` are filterable. Personal spaces are organization-exclusive and are never returned by this org-scoped listing, so `personal` is not a valid filter value and personal spaces are already excluded by default."},{"name":"parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to spaces the given user is a member of","title":"User Id"},"description":"Filter to spaces the given user is a member of"},{"name":"external_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by external ID value","title":"External Id"},"description":"Filter by external ID value"},{"name":"external_id_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["jira","linear","azure_devops","hubspot","salesforce","snow_acct","snow_opp"],"type":"string"},{"type":"null"}],"description":"External ID provider type (required when external_id is provided)","title":"External Id Type"},"description":"External ID provider type (required when external_id is provided)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpacesListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["spaces"],"summary":"Create Space","operationId":"create_space_v2_spaces_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateAccountRequest"},{"$ref":"#/components/schemas/CreateProjectRequest"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/spaces/{space_id}/custom-fields":{"get":{"tags":["spaces"],"summary":"Get Space Custom Fields","description":"List the custom fields configured on an account or project space, together with their current values. Fields come from the template the space was created with, so a space whose template defines no custom fields returns an empty list.\n\nReturns `404` if the space does not exist in your organization, is deleted, or is not an account/project space (organization, personal, and portal spaces have no custom fields).","operationId":"get_space_custom_fields_v2_spaces__space_id__custom_fields_get","parameters":[{"name":"space_id","in":"path","required":true,"schema":{"type":"string","title":"Space Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomFieldsCollection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["spaces"],"summary":"Patch Space Custom Fields","description":"Update custom field values on an account or project space. Send a `values` map keyed by custom field ID (UUID) — fields you omit are left untouched, and a `null` value clears the field.\n\nThe response returns the full field collection after the update plus `changed_field_ids`, listing only the fields whose value actually changed. An audit event (`account.updated` / `project.updated`) is recorded when at least one field changed.\n\nErrors: `422` when a key is not a valid UUID, names a field the space's template does not define, or the value fails the field's validation (for example clearing a required field); `404` when the space does not exist in your organization; `409` when the space has no custom fields to update; `502` when the custom fields service is unavailable.","operationId":"patch_space_custom_fields_v2_spaces__space_id__custom_fields_patch","parameters":[{"name":"space_id","in":"path","required":true,"schema":{"type":"string","title":"Space Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldsPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCustomFieldsUpdate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/spaces/{space_id}":{"get":{"tags":["spaces"],"summary":"Get Space","operationId":"get_space_v2_spaces__space_id__get","parameters":[{"name":"space_id","in":"path","required":true,"schema":{"type":"string","title":"Space Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["spaces"],"summary":"Update Space","operationId":"update_space_v2_spaces__space_id__patch","parameters":[{"name":"space_id","in":"path","required":true,"schema":{"type":"string","title":"Space Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UpdateAccountRequest"},{"$ref":"#/components/schemas/UpdateProjectRequest"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["spaces"],"summary":"Delete Space","operationId":"delete_space_v2_spaces__space_id__delete","parameters":[{"name":"space_id","in":"path","required":true,"schema":{"type":"string","title":"Space Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/users":{"get":{"tags":["users"],"summary":"List Users","operationId":"list_users_v2_users_get","parameters":[{"name":"space_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by users with access to this space","title":"Space Id"},"description":"Filter by users with access to this space"},{"name":"recursive","in":"query","required":false,"schema":{"type":"boolean","description":"Include users with access via descendant spaces","default":false,"title":"Recursive"},"description":"Include users with access via descendant spaces"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/users/{user_id}":{"get":{"tags":["users"],"summary":"Get User","operationId":"get_user_v2_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/artifacts":{"get":{"tags":["artifacts"],"summary":"List Artifacts","operationId":"list_artifacts_v2_artifacts_get","parameters":[{"name":"space","in":"query","required":true,"schema":{"type":"string","title":"Space"}},{"name":"recursive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Recursive"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["session","document","diagram","folder"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["artifacts"],"summary":"Create Artifact","operationId":"create_artifact_v2_artifacts_post","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_artifact_v2_artifacts_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SessionResponse"},{"$ref":"#/components/schemas/DocumentResponse"},{"$ref":"#/components/schemas/ArtifactListItem"}],"title":"Response Create Artifact V2 Artifacts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/artifacts/{artifact_id}":{"get":{"tags":["artifacts"],"summary":"Get Artifact","operationId":"get_artifact_v2_artifacts__artifact_id__get","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"type","in":"query","required":true,"schema":{"enum":["session","document","diagram","folder"],"type":"string","title":"Type"}},{"name":"id_type","in":"query","required":false,"schema":{"type":"string","default":"auctor","title":"Id Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SessionResponse"},{"$ref":"#/components/schemas/DocumentResponse"},{"$ref":"#/components/schemas/DiagramResponse"},{"$ref":"#/components/schemas/ArtifactListItem"}],"title":"Response Get Artifact V2 Artifacts  Artifact Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["artifacts"],"summary":"Delete Artifact","operationId":"delete_artifact_v2_artifacts__artifact_id__delete","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"type","in":"query","required":true,"schema":{"enum":["session","document","diagram","folder"],"type":"string","title":"Type"}},{"name":"id_type","in":"query","required":false,"schema":{"type":"string","default":"auctor","title":"Id Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["artifacts"],"summary":"Update Artifact","operationId":"update_artifact_v2_artifacts__artifact_id__patch","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"type","in":"query","required":true,"schema":{"enum":["session","document","diagram","folder"],"type":"string","title":"Type"}},{"name":"id_type","in":"query","required":false,"schema":{"type":"string","default":"auctor","title":"Id Type"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateArtifactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/plan":{"get":{"tags":["plan"],"summary":"List Plan Items","operationId":"list_plan_items_v2_plan_get","parameters":[{"name":"space_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Space Id"}},{"name":"parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},{"name":"plan_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by plan type ID","title":"Plan Type Id"},"description":"Filter by plan type ID"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanItemsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["plan"],"summary":"Create Plan Item","operationId":"create_plan_item_v2_plan_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlanItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanItemDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/plan/types":{"get":{"tags":["plan"],"summary":"List Plan Types","operationId":"list_plan_types_v2_plan_types_get","parameters":[{"name":"space_id","in":"query","required":true,"schema":{"type":"string","description":"Space ID (must be a project space)","title":"Space Id"},"description":"Space ID (must be a project space)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlanTypeResponse"},"title":"Response List Plan Types V2 Plan Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/plan/{item_id}":{"get":{"tags":["plan"],"summary":"Get Plan Item","operationId":"get_plan_item_v2_plan__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"id_type","in":"query","required":false,"schema":{"type":"string","default":"auctor","title":"Id Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanItemDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["plan"],"summary":"Update Plan Item","operationId":"update_plan_item_v2_plan__item_id__patch","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"id_type","in":"query","required":false,"schema":{"type":"string","default":"auctor","title":"Id Type"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePlanItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanItemDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/plan/key/{item_key}":{"get":{"tags":["plan"],"summary":"Get Plan Item By Key","operationId":"get_plan_item_by_key_v2_plan_key__item_key__get","parameters":[{"name":"item_key","in":"path","required":true,"schema":{"type":"string","title":"Item Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanItemDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/organization/templates":{"get":{"tags":["organization"],"summary":"List Templates","operationId":"list_templates_v2_organization_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatesListResponse"}}}}}}},"/v2/organization/account-templates":{"get":{"tags":["organization"],"summary":"List Account Templates","description":"List the account templates in your organization. Use a template's `id` as `template_id` when creating an account space.","operationId":"list_account_templates_v2_organization_account_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatesListResponse"}}}}}}},"/v2/organization/templates/{template_id}/custom-fields":{"get":{"tags":["organization"],"summary":"Get Project Template Custom Fields","description":"List the custom field definitions on the project template — the fields that spaces created from it will carry. Definitions only: use `GET /v2/spaces/{space_id}/custom-fields` for values on a specific space.\n\nReturns `404` if the template does not exist in your organization.","operationId":"get_project_template_custom_fields_v2_organization_templates__template_id__custom_fields_get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTemplateCustomFieldsCollection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/organization/account-templates/{template_id}/custom-fields":{"get":{"tags":["organization"],"summary":"Get Account Template Custom Fields","description":"List the custom field definitions on the account template — the fields that spaces created from it will carry. Definitions only: use `GET /v2/spaces/{space_id}/custom-fields` for values on a specific space.\n\nReturns `404` if the template does not exist in your organization.","operationId":"get_account_template_custom_fields_v2_organization_account_templates__template_id__custom_fields_get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTemplateCustomFieldsCollection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/organization/statuses":{"get":{"tags":["organization"],"summary":"List Statuses","operationId":"list_statuses_v2_organization_statuses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusesListResponse"}}}}}}},"/v2/routines":{"get":{"tags":["routines"],"summary":"List Routines","operationId":"list_routines_v2_routines_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by routine owner user ID","title":"User Id"},"description":"Filter by routine owner user ID"},{"name":"enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by enabled/disabled status","title":"Enabled"},"description":"Filter by enabled/disabled status"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Max rows to return","default":50,"title":"Limit"},"description":"Max rows to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Pagination offset","default":0,"title":"Offset"},"description":"Pagination offset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutinesListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/routines/{routine_id}/runs":{"get":{"tags":["routines"],"summary":"List Routine Runs","operationId":"list_routine_runs_v2_routines__routine_id__runs_get","parameters":[{"name":"routine_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Routine Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","running","succeeded","failed","cancelled"],"type":"string"},{"type":"null"}],"description":"Filter by run status (pending, running, succeeded, failed, cancelled)","title":"Status"},"description":"Filter by run status (pending, running, succeeded, failed, cancelled)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Max rows to return","default":50,"title":"Limit"},"description":"Max rows to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Pagination offset","default":0,"title":"Offset"},"description":"Pagination offset"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutineRunsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/routines/{routine_id}/runs/{run_id}":{"get":{"tags":["routines"],"summary":"Get Routine Run","operationId":"get_routine_run_v2_routines__routine_id__runs__run_id__get","parameters":[{"name":"routine_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Routine Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutineRunDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/routines/{routine_id}/trigger":{"post":{"tags":["routines"],"summary":"Trigger Routine","operationId":"trigger_routine_v2_routines__routine_id__trigger_post","parameters":[{"name":"routine_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Routine Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutineRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/audit-logs":{"get":{"tags":["audit-logs"],"summary":"Pull Audit Logs","description":"Pull your organization's audit events for ingestion into a SIEM or archive. Events are returned **oldest-first** as newline-delimited JSON (`application/x-ndjson`) by default, or as CSV with the same columns as the Settings → Organization → Audit Logs download.\n\nResults are always scoped to the organization the credential belongs to. Pagination is cursor-based: when more events match, the response carries an `X-Next-Cursor` header — pass it as `cursor` on the next request and keep the same `since`/`until` window.\n\nReading the trail is itself an audited event: every pull records an `audit.pulled` event for the calling organization before the body is served, deduplicated to one event per credential per UTC day. If that event cannot be recorded the request fails with `500` and returns no events — retry the same request.","operationId":"pull_audit_logs_v2_audit_logs_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive lower bound on the event timestamp (ISO-8601 UTC, e.g. `2026-07-01T00:00:00Z`). Omit to start from the oldest retained event.","title":"Since"},"description":"Inclusive lower bound on the event timestamp (ISO-8601 UTC, e.g. `2026-07-01T00:00:00Z`). Omit to start from the oldest retained event."},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Exclusive upper bound on the event timestamp (ISO-8601 UTC).","title":"Until"},"description":"Exclusive upper bound on the event timestamp (ISO-8601 UTC)."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor from the `X-Next-Cursor` header of a prior response.","title":"Cursor"},"description":"Opaque cursor from the `X-Next-Cursor` header of a prior response."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Page size (1–1000). Events are returned oldest-first.","default":100,"title":"Limit"},"description":"Page size (1–1000). Events are returned oldest-first."},{"name":"format","in":"query","required":false,"schema":{"enum":["jsonl","csv"],"type":"string","description":"Response body format. `jsonl` (default) is the SIEM primary; `csv` matches the Settings download columns.","default":"jsonl","title":"Format"},"description":"Response body format. `jsonl` (default) is the SIEM primary; `csv` matches the Settings download columns."}],"responses":{"200":{"description":"Successful Response","headers":{"X-Next-Cursor":{"description":"Opaque cursor for the next page. Present only when more events match the query; pass it back as `cursor` (keeping the same `since`/`until` window) to continue.","schema":{"type":"string"}}},"content":{"application/x-ndjson":{"schema":{"type":"string","title":"Audit Events (JSONL)","description":"One JSON audit event per line, each line terminated by `\\n`. See the `AuditLogEvent` schema for the per-line fields.","contentMediaType":"application/json","contentSchema":{"description":"One audit event in the SIEM export field set. JSONL responses contain one of these objects per line; CSV responses contain the same fields as columns.","properties":{"event_id":{"description":"Unique identifier for the event.","title":"Event Id","type":"string"},"timestamp":{"description":"When the event occurred (ISO-8601 UTC, milliseconds precision).","title":"Timestamp","type":"string"},"tenant_id":{"description":"Organization the event belongs to.","title":"Tenant Id","type":"string"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"User who performed the action. For non-human actors this may be null or a system sentinel (`actor_id` is `system`, `actor_email` is `api-key@system`).","title":"Actor Id"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Email of the actor, when known.","title":"Actor Email"},"actor_type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kind of actor: one of `user`, `admin`, `service`, or `system`. API-key calls audit as `user` (user-bound keys) or `service` (machine-to-machine keys); there is no `api_key` value. The credential type is in `metadata.authType` (and `metadata.apiKeyId`).","title":"Actor Type"},"action":{"description":"Normalized event action as `domain.action`, e.g. `user.role_updated`, `audit.pulled`.","title":"Action","type":"string"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"SIEM category for the action: `authentication`, `authorization`, `user_management`, `data_access`, `configuration`, or `security`.","title":"Category"},"object_type":{"description":"Type of the object the action affected, e.g. `organization`, `api_key`, `session`.","title":"Object Type","type":"string"},"object_id":{"description":"Identifier of the affected object.","title":"Object Id","type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Result of the action, e.g. `success` or `failure`.","title":"Outcome"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Client IP address recorded for the request.","title":"Ip Address"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Client user agent recorded for the request.","title":"User Agent"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Session the action was performed in, when known.","title":"Session Id"},"metadata":{"additionalProperties":true,"description":"Event-specific detail. Includes `resource_name`, `account_id`, and `project_id` when the event carries them. Never contains secrets.","title":"Metadata","type":"object"}},"required":["event_id","timestamp","tenant_id","actor_id","actor_email","actor_type","action","category","object_type","object_id","outcome","ip_address","user_agent","session_id","metadata"],"title":"AuditLogEvent","type":"object"}},"example":"{\"event_id\":\"9f1c3d4e-6b2a-4c58-9d77-0f2b1a8e4c31\",\"timestamp\":\"2026-07-17T15:04:05.000Z\",\"tenant_id\":\"org_01HQ...\",\"actor_id\":\"user_01HQ...\",\"actor_email\":\"admin@example.com\",\"actor_type\":\"user\",\"action\":\"api_key.created\",\"category\":\"security\",\"object_type\":\"api_key\",\"object_id\":\"6f0b1d92-3c7a-4f19-8f0e-2b6a9c5d1e77\",\"outcome\":\"success\",\"ip_address\":\"203.0.113.10\",\"user_agent\":\"Mozilla/5.0\",\"session_id\":\"sess_01HQ...\",\"metadata\":{}}\n"},"text/csv":{"schema":{"type":"string","title":"Audit Events (CSV)","description":"Header row followed by one row per event, with the same fields as the JSONL body (`metadata` is a JSON string). Returned when `format=csv`."},"example":"event_id,timestamp,tenant_id,actor_id,actor_email,actor_type,action,category,object_type,object_id,outcome,ip_address,user_agent,session_id,metadata\n\"9f1c3d4e-6b2a-4c58-9d77-0f2b1a8e4c31\",\"2026-07-17T15:04:05.000Z\",\"org_01HQ...\",\"user_01HQ...\",\"admin@example.com\",\"user\",\"api_key.created\",\"security\",\"api_key\",\"6f0b1d92-3c7a-4f19-8f0e-2b6a9c5d1e77\",\"success\",\"203.0.113.10\",\"Mozilla/5.0\",\"sess_01HQ...\",\"{}\""}}},"400":{"description":"Invalid `since`, `until`, or `cursor`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error for `limit` (outside 1–1000) or `format` (not `jsonl` or `csv`). Timestamp and cursor problems return `400` instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"500":{"description":"The pull could not be recorded in the audit trail; no events were returned. Retry the same request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/agents":{"post":{"tags":["agent-runs"],"summary":"Create Agent Run","operationId":"create_agent_run_v2_agents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/agents/{task_id}":{"get":{"tags":["agent-runs"],"summary":"Check Agent Run","operationId":"check_agent_run_v2_agents__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/agents/{task_id}/await":{"get":{"tags":["agent-runs"],"summary":"Await Agent Run","operationId":"await_agent_run_v2_agents__task_id__await_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"timeout_s","in":"query","required":false,"schema":{"type":"integer","maximum":120,"minimum":1,"default":60,"title":"Timeout S"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunAwaitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/agents/{task_id}/approve":{"post":{"tags":["agent-runs"],"summary":"Approve Agent Run Tool Call","description":"Resolve one pending tool approval on a suspended run.\n\nDelivers the verdict through the task workflow's ``resolve_approval``\nupdate — an acknowledged RPC whose result is the truth about what the\nworkflow recorded. The handler runs atomically with respect to batch\nsettlement, so a 200 here always means the decision applied to the exact\ncall the caller saw in ``pending_approvals``; verdicts racing the 4h\ntimeout or a concurrent decision come back ``not_pending``/``superseded``\nand map to 409 instead of a false accept. Retrying the same verdict is\nidempotent (first decision wins). Authorization mirrors check/await\n(uniform 404 outside the caller's read scope) — whoever can see a run can\ndecide its approvals, matching the a2a trust model where the caller agent\nis the approver.","operationId":"approve_agent_run_tool_call_v2_agents__task_id__approve_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunApproveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunApproveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"A2ATaskApproveRequest":{"properties":{"tool_call_id":{"type":"string","maxLength":256,"minLength":1,"title":"Tool Call Id"},"approved":{"type":"boolean","title":"Approved"}},"type":"object","required":["tool_call_id","approved"],"title":"A2ATaskApproveRequest"},"A2ATaskApproveResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"tool_call_id":{"type":"string","title":"Tool Call Id"},"approved":{"type":"boolean","title":"Approved"},"status":{"type":"string","title":"Status"}},"type":"object","required":["task_id","tool_call_id","approved","status"],"title":"A2ATaskApproveResponse"},"A2ATaskAwaitResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","title":"Status"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"pending_approvals":{"items":{"$ref":"#/components/schemas/AgentRunPendingApproval"},"type":"array","title":"Pending Approvals","default":[]}},"type":"object","required":["task_id","status"],"title":"A2ATaskAwaitResponse"},"A2ATaskCheckResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","title":"Status"},"summary_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Preview"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"recent_progress":{"items":{"$ref":"#/components/schemas/AgentRunProgressEvent"},"type":"array","title":"Recent Progress","default":[]},"pending_approvals":{"items":{"$ref":"#/components/schemas/AgentRunPendingApproval"},"type":"array","title":"Pending Approvals","default":[]}},"type":"object","required":["task_id","status"],"title":"A2ATaskCheckResponse"},"A2ATaskCreateRequest":{"properties":{"prompt":{"type":"string","maxLength":32000,"minLength":1,"title":"Prompt"},"request_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Request Id"},"timezone":{"type":"string","title":"Timezone","default":"UTC"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["prompt"],"title":"A2ATaskCreateRequest"},"A2ATaskCreateResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"request_id":{"type":"string","title":"Request Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["task_id","request_id","status"],"title":"A2ATaskCreateResponse"},"AblyTokenResponse":{"properties":{"token":{"additionalProperties":true,"type":"object","title":"Token"}},"type":"object","required":["token"],"title":"AblyTokenResponse"},"AdapterToolsProbeResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"additionalProperties":true,"type":"object","required":["ok"],"title":"AdapterToolsProbeResponse"},"AgentRunApproveRequest":{"properties":{"tool_call_id":{"type":"string","maxLength":256,"minLength":1,"title":"Tool Call Id"},"approved":{"type":"boolean","title":"Approved"}},"type":"object","required":["tool_call_id","approved"],"title":"AgentRunApproveRequest"},"AgentRunApproveResponse":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"Opaque agent run identifier."},"tool_call_id":{"type":"string","title":"Tool Call Id"},"approved":{"type":"boolean","title":"Approved"},"status":{"type":"string","title":"Status"}},"type":"object","required":["task_id","tool_call_id","approved","status"],"title":"AgentRunApproveResponse"},"AgentRunAwaitResponse":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"Opaque agent run identifier."},"status":{"type":"string","title":"Status"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Markdown agent output with usable, permission-checked app links."},"format":{"type":"string","const":"markdown","title":"Format","default":"markdown"},"output_truncated":{"type":"boolean","title":"Output Truncated","description":"Whether text omits characters from the complete agent output.","default":false},"output_char_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Char Count","description":"Character count of the complete agent output before truncation."},"references":{"items":{"$ref":"#/components/schemas/PublicAgentRunReference"},"type":"array","title":"References","default":[]},"references_truncated":{"type":"boolean","title":"References Truncated","description":"Whether references omits explicit references beyond its limit.","default":false},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"pending_approvals":{"items":{"$ref":"#/components/schemas/AgentRunPendingApproval"},"type":"array","title":"Pending Approvals","default":[]}},"type":"object","required":["task_id","status"],"title":"AgentRunAwaitResponse"},"AgentRunCheckResponse":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"Opaque agent run identifier."},"status":{"type":"string","title":"Status"},"summary_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Preview"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"recent_progress":{"items":{"$ref":"#/components/schemas/AgentRunProgressEvent"},"type":"array","title":"Recent Progress","default":[]},"pending_approvals":{"items":{"$ref":"#/components/schemas/AgentRunPendingApproval"},"type":"array","title":"Pending Approvals","default":[]}},"type":"object","required":["task_id","status"],"title":"AgentRunCheckResponse"},"AgentRunCreateRequest":{"properties":{"prompt":{"type":"string","maxLength":32000,"minLength":1,"title":"Prompt"},"request_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Request Id","description":"Idempotency key; two runs with one request_id start one fire."},"timezone":{"type":"string","title":"Timezone","default":"UTC"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"Run-as user for org-level (sk_) API keys, which carry no user context of their own. Ignored for OAuth callers: their token identifies the user."}},"type":"object","required":["prompt"],"title":"AgentRunCreateRequest"},"AgentRunCreateResponse":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"Opaque agent run identifier."},"request_id":{"type":"string","title":"Request Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["task_id","request_id","status"],"title":"AgentRunCreateResponse"},"AgentRunPendingApproval":{"properties":{"tool_call_id":{"type":"string","title":"Tool Call Id"},"tool_name":{"type":"string","title":"Tool Name"},"tool_args_json":{"type":"string","title":"Tool Args Json"},"requested_at":{"type":"string","title":"Requested At"}},"type":"object","required":["tool_call_id","tool_name","tool_args_json","requested_at"],"title":"AgentRunPendingApproval","description":"One exact tool call awaiting a caller's approval decision."},"AgentRunProgressEvent":{"properties":{"seq":{"type":"integer","title":"Seq"},"kind":{"type":"string","title":"Kind"},"preview":{"type":"string","title":"Preview"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["seq","kind","preview","created_at"],"title":"AgentRunProgressEvent"},"AnalyzeSessionRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"user_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Guidance"},"background":{"type":"boolean","title":"Background","default":false}},"type":"object","required":["session_id"],"title":"AnalyzeSessionRequest"},"AnalyzeSessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["session_id","status"],"title":"AnalyzeSessionResponse"},"ArtifactListItem":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","enum":["session","document","diagram","folder"],"title":"Type"},"name":{"type":"string","title":"Name"},"space_id":{"type":"string","title":"Space Id"},"folder_ids":{"items":{"type":"string"},"type":"array","title":"Folder Ids"},"created_at":{"type":"string","title":"Created At"},"last_content_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Content Updated At","description":"Last time the document or diagram content itself changed; unchanged by renames and moves. Null for sessions."},"external_ids":{"additionalProperties":true,"type":"object","title":"External Ids"}},"type":"object","required":["id","type","name","space_id","created_at"],"title":"ArtifactListItem"},"ArtifactsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ArtifactListItem"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"ArtifactsListResponse"},"AtlassianAdminApiKeyInput":{"properties":{"kind":{"type":"string","const":"admin_api_key","title":"Kind","default":"admin_api_key"},"api_key":{"type":"string","minLength":1,"title":"Api Key"},"org_id":{"type":"string","minLength":1,"title":"Org Id"},"environment":{"type":"string","enum":["production","sandbox","scratch","unknown"],"title":"Environment"}},"additionalProperties":false,"type":"object","required":["api_key","org_id","environment"],"title":"AtlassianAdminApiKeyInput"},"AtlassianAdminAttachBody":{"properties":{"source_type":{"type":"string","const":"atlassian_admin","title":"Source Type"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"payload":{"oneOf":[{"$ref":"#/components/schemas/AtlassianAdminApiKeyInput"}],"title":"Payload","discriminator":{"propertyName":"kind","mapping":{"admin_api_key":"#/components/schemas/AtlassianAdminApiKeyInput"}}}},"additionalProperties":false,"type":"object","required":["source_type","instance_id","payload"],"title":"AtlassianAdminAttachBody"},"AtlassianAdminDetachBody":{"properties":{"source_type":{"type":"string","const":"atlassian_admin","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"AtlassianAdminDetachBody"},"AtlassianClientCredentialsInput":{"properties":{"kind":{"type":"string","const":"client_credentials","title":"Kind","default":"client_credentials"},"client_id":{"type":"string","minLength":1,"title":"Client Id"},"client_secret":{"type":"string","minLength":1,"title":"Client Secret"},"environment":{"type":"string","enum":["production","sandbox","scratch","unknown"],"title":"Environment"}},"additionalProperties":false,"type":"object","required":["client_id","client_secret","environment"],"title":"AtlassianClientCredentialsInput"},"AtlassianOrgAttachBody":{"properties":{"source_type":{"type":"string","const":"atlassian_org","title":"Source Type"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"payload":{"oneOf":[{"$ref":"#/components/schemas/AtlassianClientCredentialsInput"}],"title":"Payload","discriminator":{"propertyName":"kind","mapping":{"client_credentials":"#/components/schemas/AtlassianClientCredentialsInput"}}}},"additionalProperties":false,"type":"object","required":["source_type","instance_id","payload"],"title":"AtlassianOrgAttachBody"},"AtlassianOrgDetachBody":{"properties":{"source_type":{"type":"string","const":"atlassian_org","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"AtlassianOrgDetachBody"},"AttachedSourceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_type":{"type":"string","title":"Source Type"},"delivery_instance_id":{"type":"string","format":"uuid","title":"Delivery Instance Id"},"organization_id":{"type":"string","title":"Organization Id"},"credential_kind":{"type":"string","title":"Credential Kind"},"external_instance_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Instance Url"},"external_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Org Id"},"external_my_domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External My Domain Url"},"external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Account Id"},"external_account_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Account Url"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["id","source_type","delivery_instance_id","organization_id","credential_kind","environment","status","created_at","updated_at"],"title":"AttachedSourceResponse"},"BeginMCPConnectRequest":{"properties":{"server_url":{"type":"string","title":"Server Url"},"redirect_uri":{"type":"string","title":"Redirect Uri"},"connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection Id"},"client_id":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Client Secret"},"token_endpoint_auth_method":{"anyOf":[{"type":"string","enum":["client_secret_post","client_secret_basic"]},{"type":"null"}],"title":"Token Endpoint Auth Method"}},"type":"object","required":["server_url","redirect_uri"],"title":"BeginMCPConnectRequest"},"Body_create_artifact_v2_artifacts_post":{"properties":{"type":{"type":"string","enum":["session","document","folder"],"title":"Type"},"space_id":{"type":"string","title":"Space Id"},"name":{"type":"string","title":"Name"},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url"},"source_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Format"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["type","space_id","name"],"title":"Body_create_artifact_v2_artifacts_post"},"Body_upload_chat_file_api_py_chat_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"session_id":{"type":"string","title":"Session Id"},"file_name":{"type":"string","title":"File Name"}},"type":"object","required":["file","session_id","file_name"],"title":"Body_upload_chat_file_api_py_chat_upload_post"},"Body_upload_routine_file_api_py_chat_routines_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"routine_id":{"type":"string","title":"Routine Id"},"file_name":{"type":"string","title":"File Name"}},"type":"object","required":["file","routine_id","file_name"],"title":"Body_upload_routine_file_api_py_chat_routines_upload_post"},"ChatModelModeOptionResponse":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"resolved_reasoning_effort":{"anyOf":[{"type":"string","enum":["default","extra"]},{"type":"null"}],"title":"Resolved Reasoning Effort"}},"type":"object","required":["key","label"],"title":"ChatModelModeOptionResponse"},"ChatModelOptionResponse":{"properties":{"model":{"type":"string","title":"Model"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"modes":{"items":{"$ref":"#/components/schemas/ChatModelModeOptionResponse"},"type":"array","title":"Modes"}},"type":"object","required":["model","modes"],"title":"ChatModelOptionResponse"},"ChatModelOptionsResponse":{"properties":{"models":{"items":{"$ref":"#/components/schemas/ChatModelOptionResponse"},"type":"array","title":"Models"}},"type":"object","required":["models"],"title":"ChatModelOptionsResponse"},"ChatModelOverrideRequest":{"properties":{"model":{"type":"string","title":"Model"},"mode":{"type":"string","title":"Mode","default":"default"}},"type":"object","required":["model"],"title":"ChatModelOverrideRequest"},"ChatState":{"properties":{"user_name":{"type":"string","title":"User Name"},"organization_name":{"type":"string","title":"Organization Name"},"timezone":{"type":"string","title":"Timezone","default":"UTC"},"page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"},"ancestor_uris":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ancestor Uris"},"ancestor_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ancestor Names"}},"type":"object","required":["user_name","organization_name"],"title":"ChatState"},"CommentResponse":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["id","user_id","content","created_at","updated_at","parent_id"],"title":"CommentResponse"},"CompleteMCPConnectRequest":{"properties":{"state":{"type":"string","title":"State"},"code":{"type":"string","title":"Code"}},"type":"object","required":["state","code"],"title":"CompleteMCPConnectRequest"},"ConnectBody":{"properties":{"principal_type":{"$ref":"#/components/schemas/PrincipalType"},"principal_id":{"type":"string","maxLength":256,"minLength":1,"title":"Principal Id"},"external_key":{"type":"string","maxLength":512,"title":"External Key","default":""},"redirect_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Uri"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["principal_type","principal_id"],"title":"ConnectBody"},"ConnectResponse":{"properties":{"state":{"type":"string","title":"State"},"authorize_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorize Url"},"form_spec":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Form Spec"}},"type":"object","required":["state"],"title":"ConnectResponse"},"ConnectWithKeyRequest":{"properties":{"server_url":{"type":"string","title":"Server Url"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"header_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Name"},"headers":{"anyOf":[{"items":{"$ref":"#/components/schemas/HeaderEntry"},"type":"array"},{"type":"null"}],"title":"Headers"}},"type":"object","required":["server_url"],"title":"ConnectWithKeyRequest"},"CreateAccountRequest":{"properties":{"type":{"type":"string","const":"account","title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"external_ids":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"External Ids"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"headquarters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headquarters"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"users":{"anyOf":[{"items":{"$ref":"#/components/schemas/InitialUser"},"type":"array"},{"type":"null"}],"title":"Users","description":"A list of users to add to the space at creation time. Each user can be specified by user_id or email. Users must already exist and be members of the organization."},"template_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Template Id","description":"Account template to create the space from. Required when `custom_fields` is supplied."},"custom_fields":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Custom Fields","description":"Custom field values to set at creation, keyed by custom field ID (UUID). IDs come from the template's custom fields endpoint. Fields you omit keep their template default value. Requires `template_id`; supplying `custom_fields` without it is rejected with `422`."}},"type":"object","required":["type"],"title":"CreateAccountRequest"},"CreatePlanItemRequest":{"properties":{"space_id":{"type":"string","title":"Space Id"},"name":{"type":"string","title":"Name"},"plan_type_id":{"type":"string","title":"Plan Type Id"},"field_values":{"items":{"$ref":"#/components/schemas/FieldValue"},"type":"array","title":"Field Values"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"external_ids":{"additionalProperties":true,"type":"object","title":"External Ids"}},"type":"object","required":["space_id","name","plan_type_id"],"title":"CreatePlanItemRequest"},"CreateProjectRequest":{"properties":{"type":{"type":"string","const":"project","title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"template_id":{"type":"string","format":"uuid","title":"Template Id"},"status_id":{"type":"string","title":"Status Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"external_ids":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"External Ids"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned","default":false},"plan_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Pattern"},"crm_link":{"anyOf":[{"$ref":"#/components/schemas/CrmLinkRequest"},{"type":"null"}]},"users":{"anyOf":[{"items":{"$ref":"#/components/schemas/InitialUser"},"type":"array"},{"type":"null"}],"title":"Users","description":"A list of users to add to the space at creation time. Each user can be specified by user_id or email. Users must already exist and be members of the organization."},"custom_fields":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Custom Fields","description":"Custom field values to set at creation, keyed by custom field ID (UUID). IDs come from the template's custom fields endpoint. Fields you omit keep their template default value."}},"type":"object","required":["type","template_id","status_id"],"title":"CreateProjectRequest"},"CreateRecordingRequest":{"properties":{"window_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window Title"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"type":"object","title":"CreateRecordingRequest"},"CreateRecordingResponse":{"properties":{"upload_token":{"type":"string","title":"Upload Token"},"session_id":{"type":"string","title":"Session Id"},"claimed_existing":{"type":"boolean","title":"Claimed Existing","default":false},"already_recording":{"type":"boolean","title":"Already Recording","default":false}},"type":"object","required":["upload_token","session_id"],"title":"CreateRecordingResponse"},"CredentialsBody":{"properties":{"principal_type":{"$ref":"#/components/schemas/PrincipalType"},"principal_id":{"type":"string","maxLength":256,"minLength":1,"title":"Principal Id"},"external_key":{"type":"string","maxLength":512,"title":"External Key","default":""},"credentials":{"additionalProperties":true,"type":"object","title":"Credentials"}},"type":"object","required":["principal_type","principal_id","credentials"],"title":"CredentialsBody"},"CrmDeal":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"close_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Date"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"provider":{"type":"string","enum":["hubspot","salesforce"],"title":"Provider"}},"type":"object","required":["id","name","provider"],"title":"CrmDeal"},"CrmIntegration":{"properties":{"deal":{"anyOf":[{"$ref":"#/components/schemas/CrmDeal"},{"type":"null"}]}},"type":"object","title":"CrmIntegration"},"CrmLinkRequest":{"properties":{"provider":{"type":"string","enum":["hubspot","salesforce"],"title":"Provider"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"deal_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Url"}},"type":"object","required":["provider"],"title":"CrmLinkRequest"},"CustomFieldsPatchRequest":{"properties":{"values":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Values","description":"Map of custom field ID (UUID) to new value. `null` clears the field."}},"type":"object","required":["values"],"title":"CustomFieldsPatchRequest"},"DeleteSessionsRequest":{"properties":{"session_ids":{"items":{"type":"string"},"type":"array","title":"Session Ids"}},"type":"object","required":["session_ids"],"title":"DeleteSessionsRequest"},"DeleteSessionsResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"DeleteSessionsResponse"},"DetachedSourceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_type":{"type":"string","title":"Source Type"},"delivery_instance_id":{"type":"string","format":"uuid","title":"Delivery Instance Id"},"organization_id":{"type":"string","title":"Organization Id"},"status":{"type":"string","title":"Status"},"credential_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential Kind"},"external_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Org Id"},"external_my_domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External My Domain Url"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"credential_deleted":{"type":"boolean","title":"Credential Deleted"}},"additionalProperties":false,"type":"object","required":["id","source_type","delivery_instance_id","organization_id","status","credential_kind","external_org_id","external_my_domain_url","environment","created_at","updated_at","credential_deleted"],"title":"DetachedSourceResponse"},"DiagramResponse":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","enum":["session","document","diagram","folder"],"title":"Type"},"name":{"type":"string","title":"Name"},"space_id":{"type":"string","title":"Space Id"},"folder_ids":{"items":{"type":"string"},"type":"array","title":"Folder Ids"},"created_at":{"type":"string","title":"Created At"},"last_content_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Content Updated At","description":"Last time the document or diagram content itself changed; unchanged by renames and moves. Null for sessions."},"external_ids":{"additionalProperties":true,"type":"object","title":"External Ids"},"diagram_content":{"title":"Diagram Content"}},"type":"object","required":["id","type","name","space_id","created_at"],"title":"DiagramResponse"},"DisconnectResponse":{"properties":{"revoke_outcome":{"type":"string","title":"Revoke Outcome"},"state":{"$ref":"#/components/schemas/GrantState"}},"type":"object","required":["revoke_outcome","state"],"title":"DisconnectResponse"},"DocumentResponse":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","enum":["session","document","diagram","folder"],"title":"Type"},"name":{"type":"string","title":"Name"},"space_id":{"type":"string","title":"Space Id"},"folder_ids":{"items":{"type":"string"},"type":"array","title":"Folder Ids"},"created_at":{"type":"string","title":"Created At"},"last_content_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Content Updated At","description":"Last time the document or diagram content itself changed; unchanged by renames and moves. Null for sessions."},"external_ids":{"additionalProperties":true,"type":"object","title":"External Ids"},"document_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Content"},"content_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Url"}},"type":"object","required":["id","type","name","space_id","created_at"],"title":"DocumentResponse"},"DownloadResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"DownloadResponse"},"ErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Human-readable explanation of the failure."}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Error body returned for a failed request, e.g. `{\"detail\": \"Invalid cursor\"}`."},"ExchangeBody":{"properties":{"principal_type":{"$ref":"#/components/schemas/PrincipalType"},"principal_id":{"type":"string","maxLength":256,"minLength":1,"title":"Principal Id"},"external_key":{"type":"string","maxLength":512,"title":"External Key","default":""},"state":{"type":"string","minLength":1,"title":"State"},"code":{"type":"string","minLength":1,"title":"Code"}},"type":"object","required":["principal_type","principal_id","state","code"],"title":"ExchangeBody"},"ExchangeResponse":{"properties":{"state":{"$ref":"#/components/schemas/GrantState"},"provider":{"type":"string","title":"Provider"},"context":{"additionalProperties":true,"type":"object","title":"Context"}},"type":"object","required":["state","provider"],"title":"ExchangeResponse"},"FetchLoomMediaRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"FetchLoomMediaRequest"},"FetchLoomMediaResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"skipped":{"type":"boolean","title":"Skipped"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"}},"type":"object","required":["success","skipped"],"title":"FetchLoomMediaResponse"},"FieldValue":{"properties":{"name":{"type":"string","title":"Name"},"value":{"title":"Value"}},"type":"object","required":["name","value"],"title":"FieldValue"},"FileAttachment":{"properties":{"id":{"type":"string","title":"Id"},"file_name":{"type":"string","title":"File Name"},"bucket_path":{"type":"string","title":"Bucket Path","default":""}},"type":"object","required":["id","file_name"],"title":"FileAttachment"},"GithubRepoAttachBody":{"properties":{"source_type":{"type":"string","const":"github_repo","title":"Source Type"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"payload":{"$ref":"#/components/schemas/GithubRepoAttachPayload"}},"additionalProperties":false,"type":"object","required":["source_type","instance_id","payload"],"title":"GithubRepoAttachBody"},"GithubRepoAttachPayload":{"properties":{"github_installation_id":{"type":"string","format":"uuid","title":"Github Installation Id"},"external_github_repo_id":{"type":"string","minLength":1,"title":"External Github Repo Id"},"github_owner_login":{"type":"string","minLength":1,"title":"Github Owner Login"},"github_repo_name":{"type":"string","minLength":1,"title":"Github Repo Name"},"target_branch":{"type":"string","minLength":1,"title":"Target Branch"}},"additionalProperties":false,"type":"object","required":["github_installation_id","external_github_repo_id","github_owner_login","github_repo_name","target_branch"],"title":"GithubRepoAttachPayload"},"GithubRepoDetachBody":{"properties":{"source_type":{"type":"string","const":"github_repo","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"GithubRepoDetachBody"},"GrantState":{"type":"string","enum":["pending","active","needs_reauth","revoked"],"title":"GrantState"},"GrantSummary":{"properties":{"principal_type":{"$ref":"#/components/schemas/PrincipalType"},"principal_id":{"type":"string","title":"Principal Id"},"provider":{"type":"string","title":"Provider"},"external_key":{"type":"string","title":"External Key"},"state":{"$ref":"#/components/schemas/GrantState"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"refreshed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Refreshed At"}},"type":"object","required":["principal_type","principal_id","provider","external_key","state"],"title":"GrantSummary","description":"Grant metadata only — never token material."},"GrantsResponse":{"properties":{"grants":{"items":{"$ref":"#/components/schemas/GrantSummary"},"type":"array","title":"Grants"}},"type":"object","required":["grants"],"title":"GrantsResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HeaderEntry":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["name","value"],"title":"HeaderEntry","description":"Single entry in the BYOMCP custom-headers form builder.\n\nBoth ``name`` and ``value`` go through the same validators the legacy\nsingle-header flow uses (RFC 7230 token + blocklist for the name,\nCR/LF/NUL rejection + length cap for the value). Empty / whitespace-\nonly strings on either side are rejected at validation time so we\nnever write a half-formed entry to the database. See\n``_validate_headers_list``."},"HubspotAccountAttachBody":{"properties":{"source_type":{"type":"string","const":"hubspot_account","title":"Source Type"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"payload":{"$ref":"#/components/schemas/HubspotServiceKeyInput"}},"additionalProperties":false,"type":"object","required":["source_type","instance_id","payload"],"title":"HubspotAccountAttachBody"},"HubspotAccountDetachBody":{"properties":{"source_type":{"type":"string","const":"hubspot_account","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"HubspotAccountDetachBody"},"HubspotServiceKeyInput":{"properties":{"kind":{"type":"string","const":"service_key","title":"Kind","default":"service_key"},"service_key":{"type":"string","minLength":1,"title":"Service Key"},"environment":{"type":"string","enum":["production","sandbox","scratch","unknown"],"title":"Environment"}},"additionalProperties":false,"type":"object","required":["service_key","environment"],"title":"HubspotServiceKeyInput"},"ImportLoomRequest":{"properties":{"loom_url":{"type":"string","title":"Loom Url"},"space_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Space Id"},"bulk":{"type":"boolean","title":"Bulk","default":false}},"type":"object","required":["loom_url"],"title":"ImportLoomRequest"},"ImportLoomResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"space_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Space Id"}},"type":"object","required":["session_id","space_id"],"title":"ImportLoomResponse"},"IndexSessionRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"deduplicate":{"type":"boolean","title":"Deduplicate","default":false}},"type":"object","required":["session_id"],"title":"IndexSessionRequest"},"IndexSessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["session_id","status"],"title":"IndexSessionResponse"},"InitialUser":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"The ID of an existing user in the organization. At least one of user_id or email must be provided."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"The email of an existing user in the organization. At least one of user_id or email must be provided."}},"type":"object","title":"InitialUser","description":"A user to add to the space at creation time. At least one of user_id or email must be provided. The user must already exist and be a member of the organization."},"InstallationRepoRow":{"properties":{"github_installation_id":{"type":"string","format":"uuid","title":"Github Installation Id"},"external_github_repo_id":{"type":"string","title":"External Github Repo Id"},"owner_login":{"type":"string","title":"Owner Login"},"repo_name":{"type":"string","title":"Repo Name"},"default_branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Branch"},"private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Private"}},"additionalProperties":false,"type":"object","required":["github_installation_id","external_github_repo_id","owner_login","repo_name","default_branch","private"],"title":"InstallationRepoRow"},"InstallationReposResponse":{"properties":{"installation_id":{"type":"string","format":"uuid","title":"Installation Id"},"github_installation_id":{"type":"string","title":"Github Installation Id"},"repos":{"items":{"$ref":"#/components/schemas/InstallationRepoRow"},"type":"array","title":"Repos"}},"additionalProperties":false,"type":"object","required":["installation_id","github_installation_id","repos"],"title":"InstallationReposResponse"},"InterruptRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"InterruptRequest"},"LiveSessionRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"inngest_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inngest Event Id"}},"type":"object","required":["session_id"],"title":"LiveSessionRequest"},"LiveSessionResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"LiveSessionResponse"},"MatchSessionRequest":{"properties":{"meeting_url":{"type":"string","title":"Meeting Url"},"window_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window Title"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}},"type":"object","required":["meeting_url"],"title":"MatchSessionRequest"},"MatchSessionResponse":{"properties":{"matched_session":{"anyOf":[{"$ref":"#/components/schemas/MatchedSession"},{"type":"null"}]},"can_claim":{"type":"boolean","title":"Can Claim","default":false},"already_claimed":{"type":"boolean","title":"Already Claimed","default":false}},"type":"object","title":"MatchSessionResponse"},"MatchedSession":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"meeting_platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Platform"},"session_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Status"},"stop_requested":{"type":"boolean","title":"Stop Requested","default":false}},"type":"object","required":["id","name"],"title":"MatchedSession"},"MeResponse":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},"type":"object","required":["first_name","last_name","email","image_url","organization_id"],"title":"MeResponse"},"ModelCreditsOverTimePoint":{"properties":{"bucket":{"type":"string","title":"Bucket"},"model":{"type":"string","title":"Model"},"total_cost":{"type":"number","title":"Total Cost"}},"type":"object","required":["bucket","model","total_cost"],"title":"ModelCreditsOverTimePoint"},"ModelCreditsOverTimeResponse":{"properties":{"status":{"type":"string","enum":["ok","not_configured"],"title":"Status"},"granularity":{"type":"string","enum":["day","week","month","year"],"title":"Granularity"},"points":{"items":{"$ref":"#/components/schemas/ModelCreditsOverTimePoint"},"type":"array","title":"Points"}},"type":"object","required":["status","granularity","points"],"title":"ModelCreditsOverTimeResponse"},"MoveSessionsRequest":{"properties":{"session_ids":{"items":{"type":"string"},"type":"array","title":"Session Ids"},"space_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Space Id"},"is_personal":{"type":"boolean","title":"Is Personal"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["session_ids","space_id","is_personal","account_id","project_id"],"title":"MoveSessionsRequest"},"MoveSessionsResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"MoveSessionsResponse"},"NetsuiteAccountAttachBody":{"properties":{"source_type":{"type":"string","const":"netsuite_account","title":"Source Type"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"payload":{"oneOf":[{"$ref":"#/components/schemas/NetsuiteClientCredentialsInput"}],"title":"Payload","discriminator":{"propertyName":"kind","mapping":{"client_credentials":"#/components/schemas/NetsuiteClientCredentialsInput"}}},"trigger_on_attach":{"type":"boolean","title":"Trigger On Attach","default":true}},"additionalProperties":false,"type":"object","required":["source_type","instance_id","payload"],"title":"NetsuiteAccountAttachBody"},"NetsuiteAccountDetachBody":{"properties":{"source_type":{"type":"string","const":"netsuite_account","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"NetsuiteAccountDetachBody"},"NetsuiteClientCredentialsInput":{"properties":{"kind":{"type":"string","const":"client_credentials","title":"Kind","default":"client_credentials"},"account_id":{"type":"string","minLength":1,"title":"Account Id"},"client_id":{"type":"string","minLength":1,"title":"Client Id"},"certificate_id":{"type":"string","minLength":1,"title":"Certificate Id"},"private_key":{"type":"string","minLength":1,"title":"Private Key"},"environment":{"anyOf":[{"type":"string","enum":["production","sandbox","scratch","unknown"]},{"type":"null"}],"title":"Environment"}},"additionalProperties":false,"type":"object","required":["account_id","client_id","certificate_id","private_key"],"title":"NetsuiteClientCredentialsInput"},"OrgSpendTotalResponse":{"properties":{"status":{"type":"string","enum":["ok","not_configured"],"title":"Status"},"total_cost":{"type":"number","title":"Total Cost"}},"type":"object","required":["status","total_cost"],"title":"OrgSpendTotalResponse"},"PerUserTotalsResponse":{"properties":{"status":{"type":"string","enum":["ok","not_configured"],"title":"Status"},"totals":{"items":{"$ref":"#/components/schemas/UserUsageTotal"},"type":"array","title":"Totals"}},"type":"object","required":["status","totals"],"title":"PerUserTotalsResponse"},"PlanItemDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"external_ids":{"additionalProperties":true,"type":"object","title":"External Ids"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"field_values":{"items":{"$ref":"#/components/schemas/FieldValue"},"type":"array","title":"Field Values"},"plan_type":{"$ref":"#/components/schemas/PlanTypeResponse"},"comments":{"items":{"$ref":"#/components/schemas/CommentResponse"},"type":"array","title":"Comments"}},"type":"object","required":["id","key","created_at","updated_at","parent_id","name","description","field_values","plan_type","comments"],"title":"PlanItemDetailResponse"},"PlanItemListItem":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"space_id":{"type":"string","title":"Space Id"},"external_ids":{"additionalProperties":true,"type":"object","title":"External Ids"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"field_values":{"items":{"$ref":"#/components/schemas/FieldValue"},"type":"array","title":"Field Values"},"plan_type":{"$ref":"#/components/schemas/PlanTypeSummary"}},"type":"object","required":["id","key","space_id","created_at","updated_at","parent_id","name","description","field_values","plan_type"],"title":"PlanItemListItem"},"PlanItemsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PlanItemListItem"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"PlanItemsListResponse"},"PlanTypeResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"fields":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Fields"}},"type":"object","required":["id","name","description","color","fields"],"title":"PlanTypeResponse"},"PlanTypeSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"PlanTypeSummary"},"PostChatStreamRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"organization_id":{"type":"string","title":"Organization Id"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"session":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Session"},"draft_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Session Id"},"chat_state":{"anyOf":[{"$ref":"#/components/schemas/ChatState"},{"type":"null"}]},"notifications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Notifications"},"file_attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/FileAttachment"},"type":"array"},{"type":"null"}],"title":"File Attachments"},"retry_back":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Back"},"client_type":{"type":"string","enum":["chat","word","powerpoint"],"title":"Client Type","default":"chat"},"answers":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Answers"},"tiptap_content":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tiptap Content"},"model_override":{"anyOf":[{"$ref":"#/components/schemas/ChatModelOverrideRequest"},{"type":"null"}]}},"type":"object","required":["user_id","organization_id"],"title":"PostChatStreamRequest"},"PrincipalDeleteResponse":{"properties":{"deleted_grants":{"type":"integer","title":"Deleted Grants"},"deleted_states":{"type":"integer","title":"Deleted States"}},"type":"object","required":["deleted_grants","deleted_states"],"title":"PrincipalDeleteResponse"},"PrincipalType":{"type":"string","enum":["user","org"],"title":"PrincipalType","description":"Who owns a credential; extensible (AUC-5797 §2)."},"PublicAgentRunReference":{"properties":{"uri":{"type":"string","title":"Uri"},"entity_type":{"type":"string","title":"Entity Type"},"entity_id":{"type":"string","title":"Entity Id"},"url":{"type":"string","title":"Url"}},"type":"object","required":["uri","entity_type","entity_id","url"],"title":"PublicAgentRunReference"},"PublicCustomField":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"required":{"type":"boolean","title":"Required"},"order":{"type":"integer","title":"Order"},"default_value":{"anyOf":[{},{"type":"null"}],"title":"Default Value"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"},"value":{"anyOf":[{},{"type":"null"}],"title":"Value","description":"Current value on this space, or `null` when unset."}},"type":"object","required":["id","name","type","required","order","default_value","properties"],"title":"PublicCustomField"},"PublicCustomFieldsCollection":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PublicCustomField"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"PublicCustomFieldsCollection"},"PublicCustomFieldsUpdate":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PublicCustomField"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"changed_field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Changed Field Ids","description":"IDs of the fields whose value actually changed as a result of the request."}},"type":"object","required":["data","total","changed_field_ids"],"title":"PublicCustomFieldsUpdate"},"PublicTemplateCustomField":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"required":{"type":"boolean","title":"Required"},"order":{"type":"integer","title":"Order"},"default_value":{"anyOf":[{},{"type":"null"}],"title":"Default Value"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"}},"type":"object","required":["id","name","type","required","order","default_value","properties"],"title":"PublicTemplateCustomField"},"PublicTemplateCustomFieldsCollection":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PublicTemplateCustomField"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"PublicTemplateCustomFieldsCollection"},"PublishCommentEventRequest":{"properties":{"channel":{"type":"string","title":"Channel"},"name":{"type":"string","title":"Name"},"event_id":{"type":"string","title":"Event Id"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["channel","name","event_id","data"],"title":"PublishCommentEventRequest"},"RecordModelUsageRequest":{"properties":{"idempotency_key":{"type":"string","title":"Idempotency Key"},"organization_id":{"type":"string","title":"Organization Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"product_surface":{"type":"string","title":"Product Surface"},"call_site":{"type":"string","minLength":1,"title":"Call Site"},"chat_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Session Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Run Id"},"activity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity Id"},"inngest_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inngest Event Id"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"delivery_instance_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Instance Id"},"wiki_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wiki Run Id"},"routine_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routine Run Id"},"task_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Run Id"},"provider":{"type":"string","title":"Provider"},"recorded_model":{"type":"string","minLength":1,"title":"Recorded Model"},"usage":{"additionalProperties":true,"type":"object","title":"Usage"},"requested_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Model"},"routing_backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Backend"},"is_auto":{"type":"boolean","title":"Is Auto","default":true}},"type":"object","required":["idempotency_key","organization_id","product_surface","call_site","provider","recorded_model"],"title":"RecordModelUsageRequest"},"RecordingEndedRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"RecordingEndedRequest"},"RecordingEndedResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"RecordingEndedResponse"},"RepoBranchRow":{"properties":{"name":{"type":"string","title":"Name"},"sha":{"type":"string","title":"Sha"},"protected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Protected"}},"additionalProperties":false,"type":"object","required":["name","sha"],"title":"RepoBranchRow"},"RepoBranchesResponse":{"properties":{"github_installation_id":{"type":"string","format":"uuid","title":"Github Installation Id"},"external_github_repo_id":{"type":"string","title":"External Github Repo Id"},"github_owner_login":{"type":"string","title":"Github Owner Login"},"github_repo_name":{"type":"string","title":"Github Repo Name"},"default_branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Branch"},"branches":{"items":{"$ref":"#/components/schemas/RepoBranchRow"},"type":"array","title":"Branches"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["github_installation_id","external_github_repo_id","github_owner_login","github_repo_name","default_branch","branches"],"title":"RepoBranchesResponse"},"ResyncMCPRequest":{"properties":{"connection_id":{"type":"string","title":"Connection Id"}},"type":"object","required":["connection_id"],"title":"ResyncMCPRequest"},"RoutineConfigResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"cron_expression":{"type":"string","title":"Cron Expression"},"timezone":{"type":"string","title":"Timezone"},"enabled":{"type":"boolean","title":"Enabled"},"next_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Run At"},"run_count":{"type":"integer","title":"Run Count","default":0},"skill":{"anyOf":[{"$ref":"#/components/schemas/RoutineSkillSummary"},{"type":"null"}]},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","name","cron_expression","timezone","enabled","created_at","updated_at"],"title":"RoutineConfigResponse"},"RoutineModelModeOptionResponse":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"}},"type":"object","required":["key","label"],"title":"RoutineModelModeOptionResponse"},"RoutineModelOptionResponse":{"properties":{"model":{"type":"string","title":"Model"},"label":{"type":"string","title":"Label"},"modes":{"items":{"$ref":"#/components/schemas/RoutineModelModeOptionResponse"},"type":"array","title":"Modes"}},"type":"object","required":["model","label","modes"],"title":"RoutineModelOptionResponse"},"RoutineModelOptionsResponse":{"properties":{"models":{"items":{"$ref":"#/components/schemas/RoutineModelOptionResponse"},"type":"array","title":"Models"}},"type":"object","required":["models"],"title":"RoutineModelOptionsResponse"},"RoutineRunDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"routine_id":{"type":"string","title":"Routine Id"},"status":{"type":"string","title":"Status"},"fire_source":{"type":"string","title":"Fire Source"},"scheduled_for":{"type":"string","title":"Scheduled For"},"summary_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary Preview"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","routine_id","status","fire_source","scheduled_for","created_at","updated_at"],"title":"RoutineRunDetailResponse"},"RoutineRunResponse":{"properties":{"id":{"type":"string","title":"Id"},"routine_id":{"type":"string","title":"Routine Id"},"status":{"type":"string","title":"Status"},"fire_source":{"type":"string","title":"Fire Source"},"workflow_id":{"type":"string","title":"Workflow Id"},"scheduled_for":{"type":"string","title":"Scheduled For"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","routine_id","status","fire_source","workflow_id","scheduled_for","created_at"],"title":"RoutineRunResponse"},"RoutineRunsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RoutineRunDetailResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"RoutineRunsListResponse"},"RoutineSkillSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"RoutineSkillSummary"},"RoutinesListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RoutineConfigResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"RoutinesListResponse"},"SalesforceAdapterToolsProbeBody":{"properties":{"source_type":{"type":"string","const":"salesforce_org","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"},"object_name":{"type":"string","title":"Object Name","default":"Account"},"tooling_soql":{"type":"string","title":"Tooling Soql","default":"SELECT Id, Name FROM ApexClass LIMIT 10"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"SalesforceAdapterToolsProbeBody"},"SalesforceClientCredentialsInput":{"properties":{"kind":{"type":"string","const":"client_credentials","title":"Kind","default":"client_credentials"},"my_domain_url":{"type":"string","minLength":1,"title":"My Domain Url"},"client_id":{"type":"string","minLength":1,"title":"Client Id"},"client_secret":{"type":"string","minLength":1,"title":"Client Secret"},"environment":{"type":"string","enum":["production","sandbox","scratch","unknown"],"title":"Environment"}},"additionalProperties":false,"type":"object","required":["my_domain_url","client_id","client_secret","environment"],"title":"SalesforceClientCredentialsInput"},"SalesforceOrgAttachBody":{"properties":{"source_type":{"type":"string","const":"salesforce_org","title":"Source Type"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"payload":{"oneOf":[{"$ref":"#/components/schemas/SalesforceClientCredentialsInput"}],"title":"Payload","discriminator":{"propertyName":"kind","mapping":{"client_credentials":"#/components/schemas/SalesforceClientCredentialsInput"}}}},"additionalProperties":false,"type":"object","required":["source_type","instance_id","payload"],"title":"SalesforceOrgAttachBody"},"SalesforceOrgDetachBody":{"properties":{"source_type":{"type":"string","const":"salesforce_org","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"SalesforceOrgDetachBody"},"SalesforceOrgSmokeBody":{"properties":{"source_type":{"type":"string","const":"salesforce_org","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"SalesforceOrgSmokeBody"},"ServicenowClientCredentialsInput":{"properties":{"kind":{"type":"string","const":"client_credentials","title":"Kind","default":"client_credentials"},"instance_url":{"type":"string","minLength":1,"title":"Instance Url"},"client_id":{"type":"string","minLength":1,"title":"Client Id"},"client_secret":{"type":"string","minLength":1,"title":"Client Secret"},"environment":{"type":"string","enum":["production","sandbox","scratch","unknown"],"title":"Environment"}},"additionalProperties":false,"type":"object","required":["instance_url","client_id","client_secret","environment"],"title":"ServicenowClientCredentialsInput"},"ServicenowInstanceAttachBody":{"properties":{"source_type":{"type":"string","const":"servicenow_instance","title":"Source Type"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"payload":{"oneOf":[{"$ref":"#/components/schemas/ServicenowClientCredentialsInput"}],"title":"Payload","discriminator":{"propertyName":"kind","mapping":{"client_credentials":"#/components/schemas/ServicenowClientCredentialsInput"}}}},"additionalProperties":false,"type":"object","required":["source_type","instance_id","payload"],"title":"ServicenowInstanceAttachBody"},"ServicenowInstanceDetachBody":{"properties":{"source_type":{"type":"string","const":"servicenow_instance","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"ServicenowInstanceDetachBody"},"SessionResponse":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","enum":["session","document","diagram","folder"],"title":"Type"},"name":{"type":"string","title":"Name"},"space_id":{"type":"string","title":"Space Id"},"folder_ids":{"items":{"type":"string"},"type":"array","title":"Folder Ids"},"created_at":{"type":"string","title":"Created At"},"last_content_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Content Updated At","description":"Last time the document or diagram content itself changed; unchanged by renames and moves. Null for sessions."},"external_ids":{"additionalProperties":true,"type":"object","title":"External Ids"},"content_url":{"type":"string","title":"Content Url"},"status":{"type":"string","title":"Status"},"start_time":{"type":"string","title":"Start Time"},"transcript":{"items":{"$ref":"#/components/schemas/Utterance"},"type":"array","title":"Transcript"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"action_items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Action Items"},"qa_pairs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Qa Pairs"}},"type":"object","required":["id","type","name","space_id","created_at","content_url","status","start_time","transcript"],"title":"SessionResponse"},"SetParticipantsRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"participants":{"items":{"type":"string"},"type":"array","title":"Participants"}},"type":"object","required":["session_id","participants"],"title":"SetParticipantsRequest"},"SetParticipantsResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"SetParticipantsResponse"},"ShouldStopResponse":{"properties":{"should_stop":{"type":"boolean","title":"Should Stop"},"stop_requested_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Requested At"}},"type":"object","required":["should_stop"],"title":"ShouldStopResponse"},"SmokeCheckResponse":{"properties":{"token_preview":{"type":"string","title":"Token Preview"},"token_expires_at":{"type":"string","format":"date-time","title":"Token Expires At"},"granted_scopes":{"items":{"type":"string"},"type":"array","title":"Granted Scopes"},"userinfo":{"additionalProperties":true,"type":"object","title":"Userinfo"},"organization_query":{"additionalProperties":true,"type":"object","title":"Organization Query"}},"additionalProperties":false,"type":"object","required":["token_preview","token_expires_at","granted_scopes","userinfo","organization_query"],"title":"SmokeCheckResponse"},"SpaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"external_ids":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"External Ids"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"type":{"type":"string","enum":["organization","account","project"],"title":"Type","description":"Scope of the space. The v2 spaces API is organization-scoped, so only `organization`, `account`, and `project` spaces are ever returned; personal spaces (`organization_id IS NULL`) are never returned by these endpoints."},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","title":"Created At"},"crm_integration":{"anyOf":[{"$ref":"#/components/schemas/CrmIntegration"},{"type":"null"}]}},"type":"object","required":["id","external_ids","parent_id","type","name","created_at"],"title":"SpaceResponse"},"SpacesListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SpaceResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"SpacesListResponse"},"StatusListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"type":"string","title":"Color"}},"type":"object","required":["id","name","description","color"],"title":"StatusListItem"},"StatusesListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StatusListItem"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"StatusesListResponse"},"TemplateListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_default":{"type":"boolean","title":"Is Default"}},"type":"object","required":["id","name","description","is_default"],"title":"TemplateListItem"},"TemplatesListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TemplateListItem"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"TemplatesListResponse"},"TiptapWebhookRequest":{"properties":{"app_name":{"type":"string","title":"App Name"},"name":{"type":"string","minLength":1,"title":"Name"},"time":{"type":"string","title":"Time"},"tiptap_json":{"additionalProperties":true,"type":"object","title":"Tiptap Json","default":{}},"ydoc_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ydoc State"},"clients_count":{"type":"integer","title":"Clients Count","default":0},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger"},"users":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Users"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"thread":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Thread"},"comment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["app_name","name","time"],"title":"TiptapWebhookRequest"},"TiptapWebhookResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Id"}},"type":"object","required":["success"],"title":"TiptapWebhookResponse"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Type"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"}},"type":"object","required":["access_token"],"title":"TokenResponse"},"TranscribeSessionRequest":{"properties":{"file_url":{"type":"string","title":"File Url"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"type":"object","required":["file_url"],"title":"TranscribeSessionRequest"},"TranscribeSessionResponse":{"properties":{"transcript":{"items":{"$ref":"#/components/schemas/Utterance"},"type":"array","title":"Transcript"}},"type":"object","required":["transcript"],"title":"TranscribeSessionResponse"},"UpdateAccountRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"external_ids":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"External Ids"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"headquarters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headquarters"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"users":{"anyOf":[{"items":{"$ref":"#/components/schemas/InitialUser"},"type":"array"},{"type":"null"}],"title":"Users","description":"A list of users to add to the space. Each user can be specified by user_id or email. Users must already exist and be members of the organization."},"users_remove":{"anyOf":[{"items":{"$ref":"#/components/schemas/InitialUser"},"type":"array"},{"type":"null"}],"title":"Users Remove","description":"A list of users to remove from the space. Each user can be specified by user_id or email. All must belong to the same organization as the space."}},"type":"object","title":"UpdateAccountRequest"},"UpdateArtifactRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"space_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Space Id"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"is_template":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Template"}},"type":"object","title":"UpdateArtifactRequest"},"UpdateKeyRequest":{"properties":{"connection_id":{"type":"string","title":"Connection Id"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"header_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Name"},"headers":{"anyOf":[{"items":{"$ref":"#/components/schemas/HeaderEntry"},"type":"array"},{"type":"null"}],"title":"Headers"}},"type":"object","required":["connection_id"],"title":"UpdateKeyRequest"},"UpdatePlanItemRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"plan_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Type Id"},"field_values":{"anyOf":[{"items":{"$ref":"#/components/schemas/FieldValue"},"type":"array"},{"type":"null"}],"title":"Field Values"}},"type":"object","title":"UpdatePlanItemRequest"},"UpdateProjectRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"external_ids":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"External Ids"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"},"plan_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Pattern"},"crm_link":{"anyOf":[{"$ref":"#/components/schemas/CrmLinkRequest"},{"type":"null"}]},"users":{"anyOf":[{"items":{"$ref":"#/components/schemas/InitialUser"},"type":"array"},{"type":"null"}],"title":"Users","description":"A list of users to add to the space. Each user can be specified by user_id or email. Users must already exist and be members of the organization."},"users_remove":{"anyOf":[{"items":{"$ref":"#/components/schemas/InitialUser"},"type":"array"},{"type":"null"}],"title":"Users Remove","description":"A list of users to remove from the space. Each user can be specified by user_id or email. All must belong to the same organization as the space."}},"type":"object","title":"UpdateProjectRequest"},"UsageBreakdownResponse":{"properties":{"status":{"type":"string","enum":["ok","not_configured"],"title":"Status"},"rows":{"items":{"$ref":"#/components/schemas/UsageBreakdownRow"},"type":"array","title":"Rows"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["status","rows","truncated"],"title":"UsageBreakdownResponse"},"UsageBreakdownRow":{"properties":{"user_id":{"type":"string","title":"User Id"},"product_surface":{"type":"string","title":"Product Surface"},"resolved_model":{"type":"string","title":"Resolved Model"},"total_cost":{"type":"number","title":"Total Cost"}},"type":"object","required":["user_id","product_surface","resolved_model","total_cost"],"title":"UsageBreakdownRow"},"UserCreditsOverTimePoint":{"properties":{"bucket":{"type":"string","title":"Bucket"},"user_id":{"type":"string","title":"User Id"},"total_cost":{"type":"number","title":"Total Cost"}},"type":"object","required":["bucket","user_id","total_cost"],"title":"UserCreditsOverTimePoint"},"UserCreditsOverTimeResponse":{"properties":{"status":{"type":"string","enum":["ok","not_configured"],"title":"Status"},"granularity":{"type":"string","enum":["day","week","month","year"],"title":"Granularity"},"points":{"items":{"$ref":"#/components/schemas/UserCreditsOverTimePoint"},"type":"array","title":"Points"}},"type":"object","required":["status","granularity","points"],"title":"UserCreditsOverTimeResponse"},"UserDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"UserDetailResponse"},"UserEvent":{"properties":{"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","title":"Occurred At"},"resolved_model":{"type":"string","title":"Resolved Model"},"product_surface":{"type":"string","title":"Product Surface"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"total_cost":{"type":"number","title":"Total Cost"}},"type":"object","required":["id","occurred_at","resolved_model","product_surface","input_tokens","output_tokens","total_cost"],"title":"UserEvent"},"UserEventsCursor":{"properties":{"occurred_at":{"type":"string","title":"Occurred At"},"id":{"type":"string","title":"Id"}},"type":"object","required":["occurred_at","id"],"title":"UserEventsCursor"},"UserEventsResponse":{"properties":{"status":{"type":"string","enum":["ok","not_configured"],"title":"Status"},"events":{"items":{"$ref":"#/components/schemas/UserEvent"},"type":"array","title":"Events"},"next_cursor":{"anyOf":[{"$ref":"#/components/schemas/UserEventsCursor"},{"type":"null"}]}},"type":"object","required":["status","events","next_cursor"],"title":"UserEventsResponse"},"UserListItem":{"properties":{"id":{"type":"string","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"UserListItem"},"UserUsageTotal":{"properties":{"user_id":{"type":"string","title":"User Id"},"total_cost":{"type":"number","title":"Total Cost"}},"type":"object","required":["user_id","total_cost"],"title":"UserUsageTotal"},"UsersListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/UserListItem"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["data","total"],"title":"UsersListResponse"},"Utterance":{"properties":{"start_time":{"type":"number","title":"Start Time"},"end_time":{"type":"number","title":"End Time"},"speaker":{"type":"string","title":"Speaker"},"words":{"type":"string","title":"Words"}},"type":"object","required":["start_time","end_time","speaker","words"],"title":"Utterance"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkdayOAuthRefreshTokenInput":{"properties":{"kind":{"type":"string","const":"oauth_refresh_token","title":"Kind","default":"oauth_refresh_token"},"client_id":{"type":"string","minLength":1,"title":"Client Id"},"client_secret":{"type":"string","minLength":1,"title":"Client Secret"},"refresh_token":{"type":"string","minLength":1,"title":"Refresh Token"}},"additionalProperties":false,"type":"object","required":["client_id","client_secret","refresh_token"],"title":"WorkdayOAuthRefreshTokenInput"},"WorkdayTenantAttachBody":{"properties":{"source_type":{"type":"string","const":"workday_tenant","title":"Source Type"},"instance_id":{"type":"string","format":"uuid","title":"Instance Id"},"rest_api_endpoint":{"type":"string","minLength":1,"title":"Rest Api Endpoint"},"environment":{"type":"string","enum":["production","sandbox","scratch","unknown"],"title":"Environment"},"payload":{"$ref":"#/components/schemas/WorkdayOAuthRefreshTokenInput"}},"additionalProperties":false,"type":"object","required":["source_type","instance_id","rest_api_endpoint","environment","payload"],"title":"WorkdayTenantAttachBody"},"WorkdayTenantDetachBody":{"properties":{"source_type":{"type":"string","const":"workday_tenant","title":"Source Type"},"instance_source_id":{"type":"string","format":"uuid","title":"Instance Source Id"}},"additionalProperties":false,"type":"object","required":["source_type","instance_source_id"],"title":"WorkdayTenantDetachBody"},"_ClearSpaceIndexBody":{"properties":{"space_id":{"type":"string","format":"uuid","title":"Space Id"}},"additionalProperties":false,"type":"object","required":["space_id"],"title":"_ClearSpaceIndexBody"},"_ClearSpaceIndexResponse":{"properties":{"deleted":{"type":"integer","title":"Deleted"}},"additionalProperties":false,"type":"object","required":["deleted"],"title":"_ClearSpaceIndexResponse"},"_CopyArtifactIndexBody":{"properties":{"source_artifact_id":{"type":"string","format":"uuid","title":"Source Artifact Id"},"cloned_artifact_id":{"type":"string","format":"uuid","title":"Cloned Artifact Id"},"space_id":{"type":"string","format":"uuid","title":"Space Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowlist"},"ancestors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ancestors"},"is_personal":{"type":"boolean","title":"Is Personal","default":false}},"additionalProperties":false,"type":"object","required":["source_artifact_id","cloned_artifact_id","space_id"],"title":"_CopyArtifactIndexBody"},"_CopyArtifactIndexResponse":{"properties":{"copied":{"type":"integer","title":"Copied"},"skipped_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skipped Reason"}},"additionalProperties":false,"type":"object","required":["copied"],"title":"_CopyArtifactIndexResponse"},"_CreateSkillTiptapBody":{"properties":{"skill_id":{"type":"string","format":"uuid","title":"Skill Id"},"user_id":{"type":"string","title":"User Id"},"skill_name":{"type":"string","title":"Skill Name"},"content":{"additionalProperties":true,"type":"object","title":"Content"}},"additionalProperties":false,"type":"object","required":["skill_id","user_id","skill_name","content"],"title":"_CreateSkillTiptapBody"},"_CreateSkillTiptapResponse":{"properties":{"created":{"type":"boolean","title":"Created"},"skipped_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skipped Reason"}},"additionalProperties":false,"type":"object","required":["created"],"title":"_CreateSkillTiptapResponse"},"_CreateTiptapBody":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"},"content":{"additionalProperties":true,"type":"object","title":"Content"}},"additionalProperties":false,"type":"object","required":["file_id","content"],"title":"_CreateTiptapBody"},"_CreateTiptapResponse":{"properties":{"created":{"type":"boolean","title":"Created"},"skipped_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skipped Reason"}},"additionalProperties":false,"type":"object","required":["created"],"title":"_CreateTiptapResponse"},"_DuplicateTiptapBody":{"properties":{"source_file_id":{"type":"string","format":"uuid","title":"Source File Id"},"cloned_file_id":{"type":"string","format":"uuid","title":"Cloned File Id"}},"additionalProperties":false,"type":"object","required":["source_file_id","cloned_file_id"],"title":"_DuplicateTiptapBody"},"_DuplicateTiptapResponse":{"properties":{"duplicated":{"type":"boolean","title":"Duplicated"},"skipped_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skipped Reason"}},"additionalProperties":false,"type":"object","required":["duplicated"],"title":"_DuplicateTiptapResponse"},"_EnsureTemplateProjectBody":{"properties":{"organization_id":{"type":"string","minLength":1,"title":"Organization Id"}},"additionalProperties":false,"type":"object","required":["organization_id"],"title":"_EnsureTemplateProjectBody"},"_EnsureTemplateProjectResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"workflow_id":{"type":"string","title":"Workflow Id"},"workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Run Id"}},"additionalProperties":false,"type":"object","required":["organization_id","workflow_id","workflow_run_id"],"title":"_EnsureTemplateProjectResponse"},"_FileIndexBody":{"properties":{"file_id":{"type":"string","format":"uuid","title":"File Id"},"version":{"type":"integer","minimum":0.0,"title":"Version"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},"additionalProperties":false,"type":"object","required":["file_id","version"],"title":"_FileIndexBody"},"_FileIndexResponse":{"properties":{"dispatched":{"type":"boolean","title":"Dispatched"}},"additionalProperties":false,"type":"object","required":["dispatched"],"title":"_FileIndexResponse"},"_ModelPolicyOverrideBody":{"properties":{"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"max_iterations":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Iterations"},"subagent_max_iterations":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subagent Max Iterations"},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls"},"max_validator_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Validator Attempts"},"max_continuation_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Continuation Attempts"},"retryable_status_codes":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Retryable Status Codes"}},"additionalProperties":false,"type":"object","title":"_ModelPolicyOverrideBody"},"_ReconcileRunBody":{"properties":{"delivery_instance_id":{"type":"string","format":"uuid","title":"Delivery Instance Id"},"workflow_id":{"type":"string","minLength":1,"title":"Workflow Id"}},"additionalProperties":false,"type":"object","required":["delivery_instance_id","workflow_id"],"title":"_ReconcileRunBody"},"_ReplaceSkillTiptapBody":{"properties":{"skill_id":{"type":"string","format":"uuid","title":"Skill Id"},"user_id":{"type":"string","title":"User Id"},"content":{"additionalProperties":true,"type":"object","title":"Content"}},"additionalProperties":false,"type":"object","required":["skill_id","user_id","content"],"title":"_ReplaceSkillTiptapBody"},"_ReplaceSkillTiptapResponse":{"properties":{"replaced":{"type":"boolean","title":"Replaced"}},"additionalProperties":false,"type":"object","required":["replaced"],"title":"_ReplaceSkillTiptapResponse"},"_StartBackfillBody":{"properties":{"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"organization_id":{"type":"string","title":"Organization Id"}},"additionalProperties":false,"type":"object","required":["connection_id","organization_id"],"title":"_StartBackfillBody"},"_StartBackfillResponse":{"properties":{"workflow_id":{"type":"string","title":"Workflow Id"},"status":{"type":"string","enum":["queued","already_running"],"title":"Status"},"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"organization_id":{"type":"string","title":"Organization Id"}},"additionalProperties":false,"type":"object","required":["workflow_id","status","connection_id","organization_id"],"title":"_StartBackfillResponse"},"_StartContentResetBody":{"properties":{"reset_request_id":{"type":"string","format":"uuid","title":"Reset Request Id"},"organization_id":{"type":"string","minLength":1,"title":"Organization Id"},"target_type":{"type":"string","enum":["sandbox","template_project"],"title":"Target Type"}},"additionalProperties":false,"type":"object","required":["reset_request_id","organization_id","target_type"],"title":"_StartContentResetBody"},"_StartContentResetResponse":{"properties":{"reset_request_id":{"type":"string","format":"uuid","title":"Reset Request Id"},"workflow_id":{"type":"string","title":"Workflow Id"},"workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Run Id"}},"additionalProperties":false,"type":"object","required":["reset_request_id","workflow_id","workflow_run_id"],"title":"_StartContentResetResponse"},"_StartImportBody":{"properties":{"space_id":{"type":"string","format":"uuid","title":"Space Id"},"ghost_row_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":500,"minItems":1,"title":"Ghost Row Ids"}},"additionalProperties":false,"type":"object","required":["space_id","ghost_row_ids"],"title":"_StartImportBody"},"_StartImportResponse":{"properties":{"space_id":{"type":"string","format":"uuid","title":"Space Id"},"workflows":{"items":{"$ref":"#/components/schemas/_StartedImportWorkflow"},"type":"array","title":"Workflows"},"failed_connection_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Failed Connection Ids","default":[]}},"additionalProperties":false,"type":"object","required":["space_id","workflows"],"title":"_StartImportResponse"},"_StartReconcileBody":{"properties":{"organization_id":{"type":"string","title":"Organization Id"}},"additionalProperties":false,"type":"object","required":["organization_id"],"title":"_StartReconcileBody"},"_StartReconcileResponse":{"properties":{"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"status":{"type":"string","enum":["queued","already_running","skipped_no_connection"],"title":"Status"},"organization_id":{"type":"string","title":"Organization Id"}},"additionalProperties":false,"type":"object","required":["workflow_id","status","organization_id"],"title":"_StartReconcileResponse"},"_StartRefreshBody":{"properties":{"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"organization_id":{"type":"string","title":"Organization Id"},"window_days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Window Days","default":7}},"additionalProperties":false,"type":"object","required":["connection_id","organization_id"],"title":"_StartRefreshBody"},"_StartRefreshResponse":{"properties":{"workflow_id":{"type":"string","title":"Workflow Id"},"status":{"type":"string","const":"queued","title":"Status"},"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"organization_id":{"type":"string","title":"Organization Id"},"window_days":{"type":"integer","title":"Window Days"}},"additionalProperties":false,"type":"object","required":["workflow_id","status","connection_id","organization_id","window_days"],"title":"_StartRefreshResponse"},"_StartRunBody":{"properties":{"delivery_instance_id":{"type":"string","format":"uuid","title":"Delivery Instance Id"},"trigger_kind":{"type":"string","enum":["manual","source-attach"],"title":"Trigger Kind"},"workflow_id":{"type":"string","minLength":1,"title":"Workflow Id"},"workflow_name":{"type":"string","minLength":1,"title":"Workflow Name"},"task_queue":{"type":"string","minLength":1,"title":"Task Queue"},"id_reuse_policy":{"type":"string","minLength":1,"title":"Id Reuse Policy"},"model_policy":{"anyOf":[{"$ref":"#/components/schemas/_ModelPolicyOverrideBody"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["delivery_instance_id","trigger_kind","workflow_id","workflow_name","task_queue","id_reuse_policy"],"title":"_StartRunBody"},"_StartRunResponse":{"properties":{"workflow_id":{"type":"string","title":"Workflow Id"},"status":{"type":"string","enum":["queued","already_queued"],"title":"Status"},"trigger_kind":{"type":"string","title":"Trigger Kind"},"delivery_instance_id":{"type":"string","format":"uuid","title":"Delivery Instance Id"},"organization_id":{"type":"string","title":"Organization Id"},"run_kind":{"type":"string","enum":["wiki","platform_sync"],"title":"Run Kind"},"started_workflow_name":{"type":"string","title":"Started Workflow Name"},"started_task_queue":{"type":"string","title":"Started Task Queue"}},"additionalProperties":false,"type":"object","required":["workflow_id","status","trigger_kind","delivery_instance_id","organization_id","run_kind","started_workflow_name","started_task_queue"],"title":"_StartRunResponse"},"_StartSandboxProvisioningBody":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"organization_id":{"type":"string","minLength":1,"title":"Organization Id"},"user_id":{"type":"string","minLength":1,"title":"User Id"},"workflow_id":{"type":"string","minLength":1,"title":"Workflow Id"},"workflow_name":{"type":"string","minLength":1,"title":"Workflow Name"},"task_queue":{"type":"string","minLength":1,"title":"Task Queue"}},"additionalProperties":false,"type":"object","required":["request_id","organization_id","user_id","workflow_id","workflow_name","task_queue"],"title":"_StartSandboxProvisioningBody"},"_StartSandboxProvisioningResponse":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"workflow_id":{"type":"string","title":"Workflow Id"},"workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Run Id"},"status":{"type":"string","enum":["requested","starting","running","sandbox_ready","skipped","start_failed","failed"],"title":"Status"},"sandbox_instance_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sandbox Instance Id"}},"additionalProperties":false,"type":"object","required":["request_id","workflow_id","workflow_run_id","status"],"title":"_StartSandboxProvisioningResponse"},"_StartStarterSkillRestoreBody":{"properties":{"restore_request_id":{"type":"string","format":"uuid","title":"Restore Request Id"},"organization_id":{"type":"string","minLength":1,"title":"Organization Id"},"user_id":{"type":"string","minLength":1,"title":"User Id"},"skill_names":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Skill Names"}},"additionalProperties":false,"type":"object","required":["restore_request_id","organization_id","user_id","skill_names"],"title":"_StartStarterSkillRestoreBody"},"_StartStarterSkillRestoreResponse":{"properties":{"restore_request_id":{"type":"string","format":"uuid","title":"Restore Request Id"},"workflow_id":{"type":"string","title":"Workflow Id"},"workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Run Id"}},"additionalProperties":false,"type":"object","required":["restore_request_id","workflow_id","workflow_run_id"],"title":"_StartStarterSkillRestoreResponse"},"_StartedImportWorkflow":{"properties":{"workflow_id":{"type":"string","title":"Workflow Id"},"connection_id":{"type":"string","format":"uuid","title":"Connection Id"},"ghost_row_count":{"type":"integer","title":"Ghost Row Count"},"status":{"type":"string","enum":["queued","already_running"],"title":"Status"}},"additionalProperties":false,"type":"object","required":["workflow_id","connection_id","ghost_row_count","status"],"title":"_StartedImportWorkflow"}}}}