{"openapi":"3.1.0","info":{"title":"Miteos API","description":"Multi-agent command center with undetectable browsing, vertical superpowers, and persistent memory.","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["health"],"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/health/ready":{"get":{"tags":["health"],"summary":"Readiness Check","operationId":"readiness_check_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Readiness Check Health Ready Get"}}}}}}},"/health/live":{"get":{"tags":["health"],"summary":"Liveness Check","operationId":"liveness_check_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Liveness Check Health Live Get"}}}}}}},"/health/browser":{"get":{"tags":["health"],"summary":"Browser Probe","description":"Probe the CamoFox browser service and test connectivity.","operationId":"browser_probe_health_browser_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Browser Probe Health Browser Get"}}}}}}},"/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"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"}}}}}}},"/auth/login/2fa":{"post":{"tags":["auth"],"summary":"Login 2Fa","description":"Complete login by verifying TOTP code after /login returned 2fa_required.","operationId":"login_2fa_auth_login_2fa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verify2FARequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"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"}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","operationId":"get_me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["auth"],"summary":"Update Profile","description":"Update the current user's profile (display name, email).","operationId":"update_profile_auth_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Request a password reset email.\n\nAlways returns 200 regardless of whether the email exists in our system.\nThis prevents email enumeration attacks.","operationId":"forgot_password_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","description":"Reset password using a valid reset token.","operationId":"reset_password_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Log out by revoking the provided refresh token.\n\nRequires a valid access token in the Authorization header (to identify the user)\nand the refresh token in the request body (to revoke it).","operationId":"logout_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/tasks":{"post":{"tags":["tasks"],"summary":"Create Task","operationId":"create_task_tasks_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["tasks"],"summary":"List Tasks","operationId":"list_tasks_tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tasks/{task_id}":{"get":{"tags":["tasks"],"summary":"Get Task","operationId":"get_task_tasks__task_id__get","security":[{"HTTPBearer":[]}],"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/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tasks/{task_id}/cancel":{"post":{"tags":["tasks"],"summary":"Cancel Task","operationId":"cancel_task_tasks__task_id__cancel_post","security":[{"HTTPBearer":[]}],"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/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tasks/{task_id}/deliverables":{"get":{"tags":["tasks"],"summary":"List Task Deliverables","description":"List files produced by a task (via its linked workspace).","operationId":"list_task_deliverables_tasks__task_id__deliverables_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskDeliverableResponse"},"title":"Response List Task Deliverables Tasks  Task Id  Deliverables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tasks/{task_id}/deliverables/{file_id}/download":{"get":{"tags":["tasks"],"summary":"Download Task Deliverable","description":"Download a specific deliverable file from a task.","operationId":"download_task_deliverable_tasks__task_id__deliverables__file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces":{"get":{"tags":["workspaces"],"summary":"List Workspaces","operationId":"list_workspaces_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["workspaces"],"summary":"Create Workspace","operationId":"create_workspace_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_workspaces__workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/files":{"post":{"tags":["workspaces"],"summary":"Upload File","description":"Upload a file to a workspace (max 50 MB).","operationId":"upload_file_workspaces__workspace_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_workspaces__workspace_id__files_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"List Files","description":"List all files in a workspace.","operationId":"list_files_workspaces__workspace_id__files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/files/{filename}":{"get":{"tags":["workspaces"],"summary":"Download File","description":"Download a file from a workspace.\n\nReturns the file content directly if on local storage,\nor redirects to a presigned S3 URL.","operationId":"download_file_workspaces__workspace_id__files__filename__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete File","description":"Delete a file from a workspace.","operationId":"delete_file_workspaces__workspace_id__files__filename__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/deliverables":{"get":{"tags":["workspaces"],"summary":"List Deliverables","description":"List deliverables (files) in a workspace with presigned download URLs.","operationId":"list_deliverables_workspaces__workspace_id__deliverables_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeliverableResponse"},"title":"Response List Deliverables Workspaces  Workspace Id  Deliverables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/deliverables/{deliverable_id}/download":{"get":{"tags":["workspaces"],"summary":"Download Deliverable","description":"Download a specific deliverable by ID.","operationId":"download_deliverable_workspaces__workspace_id__deliverables__deliverable_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","title":"Deliverable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_id}/pause":{"post":{"tags":["agents"],"summary":"Pause Agent","operationId":"pause_agent_agents__agent_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_id}/resume":{"post":{"tags":["agents"],"summary":"Resume Agent","operationId":"resume_agent_agents__agent_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_id}/cancel":{"post":{"tags":["agents"],"summary":"Cancel Agent","operationId":"cancel_agent_agents__agent_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_id}/guide":{"post":{"tags":["agents"],"summary":"Guide Agent","operationId":"guide_agent_agents__agent_id__guide_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGuideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_id}/approve/{approval_id}":{"post":{"tags":["agents"],"summary":"Approve Action","operationId":"approve_action_agents__agent_id__approve__approval_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","title":"Approval Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/memory":{"post":{"tags":["memory"],"summary":"Create Memory","operationId":"create_memory_memory_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["memory"],"summary":"List Memories","operationId":"list_memories_memory_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["memory"],"summary":"Delete All Memories","description":"GDPR: Delete all memories for the authenticated user.","operationId":"delete_all_memories_memory_delete","security":[{"HTTPBearer":[]}],"responses":{"204":{"description":"Successful Response"}}}},"/memory/{memory_id}":{"get":{"tags":["memory"],"summary":"Get Memory","operationId":"get_memory_memory__memory_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["memory"],"summary":"Delete Memory","operationId":"delete_memory_memory__memory_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preferences":{"get":{"tags":["preferences"],"summary":"List Preferences","operationId":"list_preferences_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PreferenceResponse"},"type":"array","title":"Response List Preferences Preferences Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["preferences"],"summary":"Create Preference","operationId":"create_preference_preferences_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/preferences/{preference_id}":{"get":{"tags":["preferences"],"summary":"Get Preference","operationId":"get_preference_preferences__preference_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preference_id","in":"path","required":true,"schema":{"type":"string","title":"Preference Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["preferences"],"summary":"Update Preference","operationId":"update_preference_preferences__preference_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preference_id","in":"path","required":true,"schema":{"type":"string","title":"Preference Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["preferences"],"summary":"Delete Preference","operationId":"delete_preference_preferences__preference_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preference_id","in":"path","required":true,"schema":{"type":"string","title":"Preference Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations":{"get":{"tags":["integrations"],"summary":"Get Integrations","description":"List all available integrations with user's connection status.","operationId":"get_integrations_integrations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Integrations Integrations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/{integration_id}/connect":{"post":{"tags":["integrations"],"summary":"Connect Integration","description":"Connect to an integration.","operationId":"connect_integration_integrations__integration_id__connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Connect Integration Integrations  Integration Id  Connect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/{integration_id}/oauth/callback":{"post":{"tags":["integrations"],"summary":"Oauth Callback","description":"Handle OAuth callback — exchange code for token via vault and store.","operationId":"oauth_callback_integrations__integration_id__oauth_callback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Oauth Callback Integrations  Integration Id  Oauth Callback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/{integration_id}/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect Integration","description":"Disconnect an integration and revoke tokens.","operationId":"disconnect_integration_integrations__integration_id__disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disconnect Integration Integrations  Integration Id  Disconnect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/{integration_id}/tools":{"get":{"tags":["integrations"],"summary":"Get Integration Tools","description":"List tools available from a connected integration.","operationId":"get_integration_tools_integrations__integration_id__tools_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Integration Tools Integrations  Integration Id  Tools Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/{integration_id}/call":{"post":{"tags":["integrations"],"summary":"Call Integration Tool","description":"Call a tool on a connected integration.","operationId":"call_integration_tool_integrations__integration_id__call_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Call Integration Tool Integrations  Integration Id  Call Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/community":{"get":{"tags":["integrations"],"summary":"List Community Mcps","description":"List community-contributed MCP servers (public + user's private).","operationId":"list_community_mcps_integrations_community_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["integrations"],"summary":"Contribute Mcp","description":"Add a custom MCP server — share publicly or keep private.","operationId":"contribute_mcp_integrations_community_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContributeMCPRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/integrations/community/{server_id}":{"delete":{"tags":["integrations"],"summary":"Delete Community Mcp","description":"Delete a community MCP server you created.","operationId":"delete_community_mcp_integrations_community__server_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/wallet/balance":{"get":{"tags":["commerce"],"summary":"Get Balance","operationId":"get_balance_commerce_wallet_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/commerce/wallet/deposit":{"post":{"tags":["commerce"],"summary":"Deposit","operationId":"deposit_commerce_wallet_deposit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/commerce/wallet/transactions":{"get":{"tags":["commerce"],"summary":"Get Transactions","operationId":"get_transactions_commerce_wallet_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/cards":{"get":{"tags":["commerce"],"summary":"List Cards","operationId":"list_cards_commerce_cards_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/cards/issue":{"post":{"tags":["commerce"],"summary":"Issue Card","operationId":"issue_card_commerce_cards_issue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueCardRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/commerce/cards/{card_id}/cancel":{"post":{"tags":["commerce"],"summary":"Cancel Card","operationId":"cancel_card_commerce_cards__card_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"card_id","in":"path","required":true,"schema":{"type":"string","title":"Card Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/spending-limits":{"get":{"tags":["commerce"],"summary":"Get Spending Limits","operationId":"get_spending_limits_commerce_spending_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["commerce"],"summary":"Update Spending Limits","operationId":"update_spending_limits_commerce_spending_limits_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendingLimitsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/commerce/spending-limits/check":{"post":{"tags":["commerce"],"summary":"Check Purchase","operationId":"check_purchase_commerce_spending_limits_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPurchaseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/commerce/spending-limits/daily-summary":{"get":{"tags":["commerce"],"summary":"Daily Summary","operationId":"daily_summary_commerce_spending_limits_daily_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/commerce/orders":{"post":{"tags":["commerce"],"summary":"Create Order","operationId":"create_order_commerce_orders_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["commerce"],"summary":"List Orders","operationId":"list_orders_commerce_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/orders/{order_id}":{"get":{"tags":["commerce"],"summary":"Get Order","operationId":"get_order_commerce_orders__order_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/orders/{order_id}/approve":{"post":{"tags":["commerce"],"summary":"Approve Order","operationId":"approve_order_commerce_orders__order_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/orders/{order_id}/execute":{"post":{"tags":["commerce"],"summary":"Execute Order","operationId":"execute_order_commerce_orders__order_id__execute_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/orders/{order_id}/cancel":{"post":{"tags":["commerce"],"summary":"Cancel Order","operationId":"cancel_order_commerce_orders__order_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commerce/orders/{order_id}/refund":{"post":{"tags":["commerce"],"summary":"Request Refund","operationId":"request_refund_commerce_orders__order_id__refund_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trading/backtest":{"post":{"tags":["trading"],"summary":"Run Backtest","operationId":"run_backtest_trading_backtest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BacktestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/signals":{"post":{"tags":["trading"],"summary":"Scan Signals","operationId":"scan_signals_trading_signals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalScanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/positions":{"get":{"tags":["trading"],"summary":"Get Positions","operationId":"get_positions_trading_positions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/positions/open":{"post":{"tags":["trading"],"summary":"Open Position","operationId":"open_position_trading_positions_open_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPositionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/positions/{position_id}/close":{"post":{"tags":["trading"],"summary":"Close Position","operationId":"close_position_trading_positions__position_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"position_id","in":"path","required":true,"schema":{"type":"string","title":"Position Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trading/positions/kill-all":{"post":{"tags":["trading"],"summary":"Kill All Positions","operationId":"kill_all_positions_trading_positions_kill_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/export/pinescript":{"post":{"tags":["trading"],"summary":"Export Pinescript","operationId":"export_pinescript_trading_export_pinescript_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/balance":{"get":{"tags":["trading"],"summary":"Get Balance","operationId":"get_balance_trading_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/video/projects":{"get":{"tags":["video"],"summary":"List Projects","operationId":"list_projects_video_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["video"],"summary":"Create Project","operationId":"create_project_video_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/video/projects/{project_id}":{"get":{"tags":["video"],"summary":"Get Project","operationId":"get_project_video_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["video"],"summary":"Delete Project","operationId":"delete_project_video_projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/video/storyboard":{"post":{"tags":["video"],"summary":"Generate Storyboard","operationId":"generate_storyboard_video_storyboard_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoryboardRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/video/render":{"post":{"tags":["video"],"summary":"Render Video","operationId":"render_video_video_render_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/video/templates":{"get":{"tags":["video"],"summary":"List Templates","operationId":"list_templates_video_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/social/accounts":{"get":{"tags":["social"],"summary":"List Accounts","description":"List social platforms and their connection status.","operationId":"list_accounts_social_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/social/accounts/connect":{"post":{"tags":["social"],"summary":"Connect Account","description":"Connect a social platform account via browser-based auth.\n\nStores credentials encrypted in the integrations vault. The stealth browser\nwill use these credentials to authenticate on the platform.","operationId":"connect_account_social_accounts_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__api__app__routers__social__ConnectAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/social/accounts/{platform}/disconnect":{"post":{"tags":["social"],"summary":"Disconnect Account","description":"Disconnect a social media account.","operationId":"disconnect_account_social_accounts__platform__disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/social/posts":{"get":{"tags":["social"],"summary":"List Posts","operationId":"list_posts_social_posts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["social"],"summary":"Create Post","operationId":"create_post_social_posts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/social/posts/{post_id}/schedule":{"post":{"tags":["social"],"summary":"Schedule Post","operationId":"schedule_post_social_posts__post_id__schedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulePostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/social/posts/{post_id}/publish":{"post":{"tags":["social"],"summary":"Publish Post","operationId":"publish_post_social_posts__post_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/social/posts/{post_id}":{"delete":{"tags":["social"],"summary":"Delete Post","operationId":"delete_post_social_posts__post_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/social/posts/cross-post":{"post":{"tags":["social"],"summary":"Cross Post","operationId":"cross_post_social_posts_cross_post_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrossPostRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/social/calendar":{"get":{"tags":["social"],"summary":"Get Calendar","operationId":"get_calendar_social_calendar_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","default":"2026-01-01","title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","default":"2026-12-31","title":"End Date"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/social/calendar/generate":{"post":{"tags":["social"],"summary":"Generate Calendar","operationId":"generate_calendar_social_calendar_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateCalendarRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/social/analytics/{post_id}":{"get":{"tags":["social"],"summary":"Get Analytics","operationId":"get_analytics_social_analytics__post_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/preferences":{"get":{"tags":["notifications"],"summary":"Get Preferences","operationId":"get_preferences_notifications_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Preferences Notifications Preferences Get"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["notifications"],"summary":"Update Preferences","operationId":"update_preferences_notifications_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferences"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Update Preferences Notifications Preferences Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/subscribe":{"post":{"tags":["notifications"],"summary":"Subscribe Push","operationId":"subscribe_push_notifications_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSubscriptionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Subscribe Push Notifications Subscribe Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["notifications"],"summary":"Unsubscribe Push","operationId":"unsubscribe_push_notifications_subscribe_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSubscriptionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Unsubscribe Push Notifications Subscribe Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/history":{"get":{"tags":["notifications"],"summary":"Get Notification History","operationId":"get_notification_history_notifications_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Notification History Notifications History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/history/{notification_id}/read":{"post":{"tags":["notifications"],"summary":"Mark Read","operationId":"mark_read_notifications_history__notification_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Read Notifications History  Notification Id  Read Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/history/read-all":{"post":{"tags":["notifications"],"summary":"Mark All Read","operationId":"mark_all_read_notifications_history_read_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mark All Read Notifications History Read All Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Get Unread Count","operationId":"get_unread_count_notifications_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Unread Count Notifications Unread Count Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/sync":{"post":{"tags":["sync"],"summary":"Execute Sync","description":"Execute a full sync cycle.","operationId":"execute_sync_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Execute Sync Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/sync/status":{"get":{"tags":["sync"],"summary":"Sync Status","description":"Get current sync state for user.","operationId":"sync_status_sync_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sync Status Sync Status Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/sync/pending":{"get":{"tags":["sync"],"summary":"Pending Changes","description":"Get count of pending local changes awaiting sync.","operationId":"pending_changes_sync_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Pending Changes Sync Pending Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/scheduler/jobs":{"get":{"tags":["scheduler"],"summary":"List Jobs","operationId":"list_jobs_scheduler_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["scheduler"],"summary":"Create Job","operationId":"create_job_scheduler_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/scheduler/jobs/{job_id}":{"patch":{"tags":["scheduler"],"summary":"Update Job","operationId":"update_job_scheduler_jobs__job_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["scheduler"],"summary":"Delete Job","operationId":"delete_job_scheduler_jobs__job_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduler/jobs/{job_id}/pause":{"post":{"tags":["scheduler"],"summary":"Pause Job","operationId":"pause_job_scheduler_jobs__job_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scheduler/jobs/{job_id}/resume":{"post":{"tags":["scheduler"],"summary":"Resume Job","operationId":"resume_job_scheduler_jobs__job_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing":{"get":{"tags":["billing"],"summary":"Get Billing Overview","description":"Return billing summary: plan, usage, invoices.","operationId":"get_billing_overview_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/plans":{"get":{"tags":["billing"],"summary":"List Plans","operationId":"list_plans_billing_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing/subscription":{"get":{"tags":["billing"],"summary":"Get Subscription","description":"Return the user's current subscription state from the database.","operationId":"get_subscription_billing_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout","operationId":"create_checkout_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/usage":{"get":{"tags":["billing"],"summary":"Get Usage","description":"Return credit usage information from the database.","operationId":"get_usage_billing_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/webhooks/stripe":{"post":{"tags":["billing"],"summary":"Stripe Webhook","description":"Handle Stripe webhooks — persists subscription changes to PostgreSQL.","operationId":"stripe_webhook_billing_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing/trial/start":{"post":{"tags":["billing"],"summary":"Start Trial","description":"Start a 3-day free trial. Grants 100 credits on the selected plan.","operationId":"start_trial_billing_trial_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartTrialRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/trial/status":{"get":{"tags":["billing"],"summary":"Get Trial Status","description":"Check trial status.","operationId":"get_trial_status_billing_trial_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/discount/apply":{"post":{"tags":["billing"],"summary":"Apply Discount","description":"Apply a discount code.","operationId":"apply_discount_billing_discount_apply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyDiscountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/discount/validate":{"get":{"tags":["billing"],"summary":"Validate Discount","description":"Validate a discount code without applying it.","operationId":"validate_discount_billing_discount_validate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/credit-packs":{"get":{"tags":["billing"],"summary":"List Credit Packs","description":"List available credit packs for purchase.","operationId":"list_credit_packs_billing_credit_packs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/credits/purchase":{"post":{"tags":["billing"],"summary":"Purchase Credits","description":"Purchase additional credits. Requires Starter plan or above.","operationId":"purchase_credits_billing_credits_purchase_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseCreditsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/models":{"get":{"tags":["billing"],"summary":"List Model Providers","description":"List supported model providers that users can connect their own keys to.","operationId":"list_model_providers_billing_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/models/connect":{"post":{"tags":["billing"],"summary":"Connect Model","description":"Connect a custom AI model provider with your own API key.\nRequires Starter plan or above. Key is encrypted at rest.","operationId":"connect_model_billing_models_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectModelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/billing/models/disconnect":{"post":{"tags":["billing"],"summary":"Disconnect Model","description":"Remove a custom model connection.","operationId":"disconnect_model_billing_models_disconnect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectModelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/marketplace/skills":{"get":{"tags":["marketplace"],"summary":"Search Skills","operationId":"search_skills_marketplace_skills_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["marketplace"],"summary":"Publish Skill","operationId":"publish_skill_marketplace_skills_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishSkillRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/skills/{skill_id}/install":{"post":{"tags":["marketplace"],"summary":"Install Skill","operationId":"install_skill_marketplace_skills__skill_id__install_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["marketplace"],"summary":"Uninstall Skill","operationId":"uninstall_skill_marketplace_skills__skill_id__install_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/skills/installed":{"get":{"tags":["marketplace"],"summary":"List Installed","operationId":"list_installed_marketplace_skills_installed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/marketplace/skills/{skill_id}/review":{"post":{"tags":["marketplace"],"summary":"Review Skill","operationId":"review_skill_marketplace_skills__skill_id__review_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/templates":{"get":{"tags":["marketplace"],"summary":"List Revenue Templates","operationId":"list_revenue_templates_marketplace_templates_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/templates/{template_id}":{"get":{"tags":["marketplace"],"summary":"Get Revenue Template","operationId":"get_revenue_template_marketplace_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/company":{"get":{"tags":["marketplace"],"summary":"List Companies","operationId":"list_companies_marketplace_company_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["marketplace"],"summary":"Deploy Company","operationId":"deploy_company_marketplace_company_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__api__app__routers__marketplace__DeployCompanyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/marketplace/company/{company_id}":{"delete":{"tags":["marketplace"],"summary":"Deactivate Company","operationId":"deactivate_company_marketplace_company__company_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams":{"get":{"tags":["teams"],"summary":"List Teams","operationId":"list_teams_teams_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["teams"],"summary":"Create Team","operationId":"create_team_teams_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/teams/{team_id}":{"get":{"tags":["teams"],"summary":"Get Team","operationId":"get_team_teams__team_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/invite":{"post":{"tags":["teams"],"summary":"Invite Member","operationId":"invite_member_teams__team_id__invite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/invites/{invite_id}/accept":{"post":{"tags":["teams"],"summary":"Accept Invite","operationId":"accept_invite_teams_invites__invite_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/members/{target_user_id}":{"delete":{"tags":["teams"],"summary":"Remove Member","operationId":"remove_member_teams__team_id__members__target_user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/members/{target_user_id}/role":{"patch":{"tags":["teams"],"summary":"Update Role","operationId":"update_role_teams__team_id__members__target_user_id__role_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/directory/register":{"post":{"tags":["agent-protocol"],"summary":"Register Agent","operationId":"register_agent_agents_directory_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAgentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/agents/directory/{agent_id}":{"delete":{"tags":["agent-protocol"],"summary":"Unregister Agent","operationId":"unregister_agent_agents_directory__agent_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/directory/mine":{"get":{"tags":["agent-protocol"],"summary":"List My Agents","operationId":"list_my_agents_agents_directory_mine_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/agents/directory/search":{"post":{"tags":["agent-protocol"],"summary":"Search Agents","operationId":"search_agents_agents_directory_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/directory/channels":{"get":{"tags":["agent-protocol"],"summary":"List Channels","operationId":"list_channels_agents_directory_channels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["agent-protocol"],"summary":"Open Channel","operationId":"open_channel_agents_directory_channels_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenChannelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/agents/directory/channels/{channel_id}/accept":{"post":{"tags":["agent-protocol"],"summary":"Accept Channel","operationId":"accept_channel_agents_directory_channels__channel_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/directory/channels/{channel_id}/close":{"post":{"tags":["agent-protocol"],"summary":"Close Channel","operationId":"close_channel_agents_directory_channels__channel_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/directory/channels/{channel_id}/messages":{"post":{"tags":["agent-protocol"],"summary":"Send Message","operationId":"send_message_agents_directory_channels__channel_id__messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-protocol"],"summary":"Get Messages","operationId":"get_messages_agents_directory_channels__channel_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/directory/channels/{channel_id}/escrow":{"post":{"tags":["agent-protocol"],"summary":"Create Escrow","operationId":"create_escrow_agents_directory_channels__channel_id__escrow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEscrowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/directory/escrow/{escrow_id}/release":{"post":{"tags":["agent-protocol"],"summary":"Release Escrow","operationId":"release_escrow_agents_directory_escrow__escrow_id__release_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"escrow_id","in":"path","required":true,"schema":{"type":"string","title":"Escrow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/directory/escrow/{escrow_id}/dispute":{"post":{"tags":["agent-protocol"],"summary":"Dispute Escrow","operationId":"dispute_escrow_agents_directory_escrow__escrow_id__dispute_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"escrow_id","in":"path","required":true,"schema":{"type":"string","title":"Escrow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api-keys":{"get":{"tags":["api-keys"],"summary":"List Api Keys Root","description":"List all API keys for the current user (root endpoint).","operationId":"list_api_keys_root_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api-keys"],"summary":"Create Api Key Root","description":"Create a new API key (root endpoint).","operationId":"create_api_key_root_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api-keys/{key_id}":{"delete":{"tags":["api-keys"],"summary":"Revoke Api Key Root","description":"Revoke an API key (root endpoint).","operationId":"revoke_api_key_root_api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api-keys/keys":{"get":{"tags":["api-keys"],"summary":"List Keys","operationId":"list_keys_api_keys_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api-keys"],"summary":"Create Key","operationId":"create_key_api_keys_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api-keys/keys/{key_id}":{"delete":{"tags":["api-keys"],"summary":"Revoke Key","operationId":"revoke_key_api_keys_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api-keys/webhooks":{"get":{"tags":["api-keys"],"summary":"List Webhooks","operationId":"list_webhooks_api_keys_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api-keys"],"summary":"Create Webhook","operationId":"create_webhook_api_keys_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api-keys/webhooks/{webhook_id}":{"delete":{"tags":["api-keys"],"summary":"Delete Webhook","operationId":"delete_webhook_api_keys_webhooks__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["api-keys"],"summary":"Toggle Webhook","operationId":"toggle_webhook_api_keys_webhooks__webhook_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","description":"List all registered developer webhooks for the current user.","operationId":"list_webhooks_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["webhooks"],"summary":"Create Webhook","description":"Register a new developer webhook endpoint.","operationId":"create_webhook_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/webhooks/{webhook_id}":{"delete":{"tags":["webhooks"],"summary":"Delete Webhook","description":"Delete a registered developer webhook.","operationId":"delete_webhook_webhooks__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/telegram":{"post":{"tags":["webhooks"],"summary":"Telegram Webhook","operationId":"telegram_webhook_webhooks_telegram_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Telegram Webhook Webhooks Telegram Post"}}}}}}},"/webhooks/discord":{"post":{"tags":["webhooks"],"summary":"Discord Webhook","operationId":"discord_webhook_webhooks_discord_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/marketplace/listings":{"post":{"tags":["agent-marketplace"],"summary":"Create Listing","operationId":"create_listing_marketplace_listings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateListingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/marketplace/listings/search":{"get":{"tags":["agent-marketplace"],"summary":"Search Listings","operationId":"search_listings_marketplace_listings_search_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":"","title":"Query"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"max_price","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Price"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/listings/mine":{"get":{"tags":["agent-marketplace"],"summary":"My Listings","operationId":"my_listings_marketplace_listings_mine_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/marketplace/listings/{listing_id}":{"get":{"tags":["agent-marketplace"],"summary":"Get Listing","operationId":"get_listing_marketplace_listings__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent-marketplace"],"summary":"Deactivate Listing","operationId":"deactivate_listing_marketplace_listings__listing_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/listings/{listing_id}/bids":{"post":{"tags":["agent-marketplace"],"summary":"Place Bid","operationId":"place_bid_marketplace_listings__listing_id__bids_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceBidRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-marketplace"],"summary":"Get Bids","operationId":"get_bids_marketplace_listings__listing_id__bids_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/listings/{listing_id}/bids/{bid_id}/accept":{"post":{"tags":["agent-marketplace"],"summary":"Accept Bid","operationId":"accept_bid_marketplace_listings__listing_id__bids__bid_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}},{"name":"bid_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/listings/{listing_id}/bids/{bid_id}/reject":{"post":{"tags":["agent-marketplace"],"summary":"Reject Bid","operationId":"reject_bid_marketplace_listings__listing_id__bids__bid_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}},{"name":"bid_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/marketplace/listings/{listing_id}/complete":{"post":{"tags":["agent-marketplace"],"summary":"Complete Listing","operationId":"complete_listing_marketplace_listings__listing_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Listing Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteBidRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/peers":{"post":{"tags":["federation"],"summary":"Register Peer","operationId":"register_peer_federation_peers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterNodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["federation"],"summary":"List Peers","operationId":"list_peers_federation_peers_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/peers/{peer_id}":{"get":{"tags":["federation"],"summary":"Get Peer","operationId":"get_peer_federation_peers__peer_id__get","parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Peer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["federation"],"summary":"Unregister Peer","operationId":"unregister_peer_federation_peers__peer_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Peer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/peers/{peer_id}/heartbeat":{"post":{"tags":["federation"],"summary":"Heartbeat","operationId":"heartbeat_federation_peers__peer_id__heartbeat_post","parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Peer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/discover":{"post":{"tags":["federation"],"summary":"Discover Capable Peers","operationId":"discover_capable_peers_federation_discover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/federation/peers/{peer_id}/messages":{"post":{"tags":["federation"],"summary":"Send Message","operationId":"send_message_federation_peers__peer_id__messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Peer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["federation"],"summary":"Get Peer Messages","operationId":"get_peer_messages_federation_peers__peer_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Peer Id"}},{"name":"message_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/intelligence/usage":{"post":{"tags":["collective-intelligence"],"summary":"Record Usage","operationId":"record_usage_intelligence_usage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordUsageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/intelligence/metrics/{skill_name}":{"get":{"tags":["collective-intelligence"],"summary":"Get Skill Metrics","operationId":"get_skill_metrics_intelligence_metrics__skill_name__get","parameters":[{"name":"skill_name","in":"path","required":true,"schema":{"type":"string","title":"Skill Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/intelligence/metrics":{"get":{"tags":["collective-intelligence"],"summary":"Get All Metrics","operationId":"get_all_metrics_intelligence_metrics_get","parameters":[{"name":"min_executions","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Min Executions"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/intelligence/top-performing":{"get":{"tags":["collective-intelligence"],"summary":"Get Top Performing","operationId":"get_top_performing_intelligence_top_performing_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/intelligence/failing":{"get":{"tags":["collective-intelligence"],"summary":"Get Failing Skills","operationId":"get_failing_skills_intelligence_failing_get","parameters":[{"name":"threshold","in":"query","required":false,"schema":{"type":"number","maximum":1.0,"minimum":0.0,"default":0.3,"title":"Threshold"}},{"name":"min_executions","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Min Executions"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/intelligence/improvement-candidates":{"get":{"tags":["collective-intelligence"],"summary":"Get Improvement Candidates","operationId":"get_improvement_candidates_intelligence_improvement_candidates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/intelligence/mark-improved":{"post":{"tags":["collective-intelligence"],"summary":"Mark Improved","operationId":"mark_improved_intelligence_mark_improved_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkImprovedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/intelligence/platform-stats":{"get":{"tags":["collective-intelligence"],"summary":"Get Platform Stats","operationId":"get_platform_stats_intelligence_platform_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/enterprise/orgs":{"get":{"tags":["enterprise-mesh"],"summary":"List My Orgs","operationId":"list_my_orgs_enterprise_orgs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["enterprise-mesh"],"summary":"Create Org","operationId":"create_org_enterprise_orgs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/enterprise/orgs/{org_id}":{"get":{"tags":["enterprise-mesh"],"summary":"Get Org","operationId":"get_org_enterprise_orgs__org_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/enterprise/orgs/{org_id}/summary":{"get":{"tags":["enterprise-mesh"],"summary":"Get Org Summary","operationId":"get_org_summary_enterprise_orgs__org_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/enterprise/orgs/{org_id}/members":{"post":{"tags":["enterprise-mesh"],"summary":"Add Member","operationId":"add_member_enterprise_orgs__org_id__members_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["enterprise-mesh"],"summary":"List Members","operationId":"list_members_enterprise_orgs__org_id__members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/enterprise/orgs/{org_id}/members/{member_user_id}":{"delete":{"tags":["enterprise-mesh"],"summary":"Remove Member","operationId":"remove_member_enterprise_orgs__org_id__members__member_user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"member_user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Member User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/enterprise/orgs/{org_id}/policies":{"post":{"tags":["enterprise-mesh"],"summary":"Create Policy","operationId":"create_policy_enterprise_orgs__org_id__policies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePolicyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["enterprise-mesh"],"summary":"List Policies","operationId":"list_policies_enterprise_orgs__org_id__policies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"enabled_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Enabled Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/enterprise/orgs/{org_id}/policies/{policy_id}":{"put":{"tags":["enterprise-mesh"],"summary":"Update Policy","operationId":"update_policy_enterprise_orgs__org_id__policies__policy_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePolicyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["enterprise-mesh"],"summary":"Delete Policy","operationId":"delete_policy_enterprise_orgs__org_id__policies__policy_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/enterprise/orgs/{org_id}/audit-log":{"get":{"tags":["enterprise-mesh"],"summary":"Get Audit Log","operationId":"get_audit_log_enterprise_orgs__org_id__audit_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/links":{"get":{"tags":["referral-network"],"summary":"List My Referral Links","operationId":"list_my_referral_links_referrals_links_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["referral-network"],"summary":"Create Referral Link","operationId":"create_referral_link_referrals_links_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReferralLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/referrals/track/{code}/click":{"post":{"tags":["referral-network"],"summary":"Track Click","operationId":"track_click_referrals_track__code__click_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/track/{code}/convert":{"post":{"tags":["referral-network"],"summary":"Track Conversion","operationId":"track_conversion_referrals_track__code__convert_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"credits","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Credits"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/referrals/stats":{"get":{"tags":["referral-network"],"summary":"Get My Stats","operationId":"get_my_stats_referrals_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/referrals/leaderboard":{"get":{"tags":["referral-network"],"summary":"Get Leaderboard","operationId":"get_leaderboard_referrals_leaderboard_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/white-label/configs":{"get":{"tags":["white-label"],"summary":"List Configs","operationId":"list_configs_white_label_configs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["white-label"],"summary":"Create Config","operationId":"create_config_white_label_configs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/white-label/configs/{config_id}":{"get":{"tags":["white-label"],"summary":"Get Config","operationId":"get_config_white_label_configs__config_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["white-label"],"summary":"Update Config","operationId":"update_config_white_label_configs__config_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/white-label/configs/{config_id}/deploy":{"post":{"tags":["white-label"],"summary":"Deploy Config","operationId":"deploy_config_white_label_configs__config_id__deploy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__api__app__routers__white_label__DeployRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/white-label/configs/{config_id}/deployments":{"get":{"tags":["white-label"],"summary":"List Deployments","operationId":"list_deployments_white_label_configs__config_id__deployments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/white-label/configs/{config_id}/suspend":{"post":{"tags":["white-label"],"summary":"Suspend Config","operationId":"suspend_config_white_label_configs__config_id__suspend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/white-label/configs/{config_id}/terminate":{"post":{"tags":["white-label"],"summary":"Terminate Config","operationId":"terminate_config_white_label_configs__config_id__terminate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/trending":{"get":{"tags":["replays"],"summary":"Get Trending Replays","description":"Get trending public replays sorted by engagement (no auth required).","operationId":"get_trending_replays_replays_trending_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max results","default":20,"title":"Limit"},"description":"Max results"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Results to skip","default":0,"title":"Offset"},"description":"Results to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrendingReplayResponse"},"title":"Response Get Trending Replays Replays Trending Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/mine":{"get":{"tags":["replays"],"summary":"Get My Replays","description":"Get the authenticated user's replays.","operationId":"get_my_replays_replays_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max results","default":20,"title":"Limit"},"description":"Max results"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Results to skip","default":0,"title":"Offset"},"description":"Results to skip"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status: capturing, complete, failed","title":"Status"},"description":"Filter by status: capturing, complete, failed"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserReplaysResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/shared/{token}":{"get":{"tags":["replays"],"summary":"Get Shared Replay","description":"Access a shared replay by token (no auth required).","operationId":"get_shared_replay_replays_shared__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/shared/{token}/frames":{"get":{"tags":["replays"],"summary":"Get Shared Replay Frames","description":"Get paginated frames for a shared replay (no auth required).","operationId":"get_shared_replay_frames_replays_shared__token__frames_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Frames to skip","default":0,"title":"Offset"},"description":"Frames to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Max frames to return","default":50,"title":"Limit"},"description":"Max frames to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedFramesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/start":{"post":{"tags":["replays"],"summary":"Start Replay Capture","description":"Start capturing a new replay session for a task.","operationId":"start_replay_capture_replays_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayStartRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/replays/{session_id}/frame":{"post":{"tags":["replays"],"summary":"Add Replay Frame","description":"Add a frame to an active replay session.","operationId":"add_replay_frame_replays__session_id__frame_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrameAddRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrameResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/{session_id}/complete":{"post":{"tags":["replays"],"summary":"Complete Replay","description":"Mark a replay session as complete.","operationId":"complete_replay_replays__session_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/{session_id}/share":{"post":{"tags":["replays"],"summary":"Share Replay","description":"Generate a share link for a replay session.","operationId":"share_replay_replays__session_id__share_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/{session_id}/fork":{"post":{"tags":["replays"],"summary":"Fork Replay","description":"Fork a replay — creates a new task from the replay's original prompt.","operationId":"fork_replay_replays__session_id__fork_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/{session_id}":{"get":{"tags":["replays"],"summary":"Get Replay","description":"Get replay session metadata (owner access).","operationId":"get_replay_replays__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/replays/{session_id}/frames":{"get":{"tags":["replays"],"summary":"Get Replay Frames","description":"Get paginated frames for a replay session (owner access).","operationId":"get_replay_frames_replays__session_id__frames_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Frames to skip","default":0,"title":"Offset"},"description":"Frames to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Max frames to return","default":50,"title":"Limit"},"description":"Max frames to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedFramesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/templates":{"get":{"tags":["company"],"summary":"List Templates","operationId":"list_templates_company_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/company/templates/{template_id}":{"get":{"tags":["company"],"summary":"Get Template","operationId":"get_template_company_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/deploy":{"post":{"tags":["company"],"summary":"Deploy Company","operationId":"deploy_company_company_deploy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__api__app__routers__company__DeployCompanyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/company/instances":{"get":{"tags":["company"],"summary":"List Companies","operationId":"list_companies_company_instances_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/company/instances/{instance_id}":{"get":{"tags":["company"],"summary":"Get Company","operationId":"get_company_company_instances__instance_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company"],"summary":"Stop Company","operationId":"stop_company_company_instances__instance_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/instances/{instance_id}/pause":{"post":{"tags":["company"],"summary":"Pause Company","operationId":"pause_company_company_instances__instance_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/instances/{instance_id}/resume":{"post":{"tags":["company"],"summary":"Resume Company","operationId":"resume_company_company_instances__instance_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/instances/{instance_id}/briefing":{"get":{"tags":["company"],"summary":"Get Briefing","operationId":"get_briefing_company_instances__instance_id__briefing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/instances/{instance_id}/briefings":{"get":{"tags":["company"],"summary":"List Briefings","operationId":"list_briefings_company_instances__instance_id__briefings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/instances/{instance_id}/escalations":{"get":{"tags":["company"],"summary":"List Escalations","operationId":"list_escalations_company_instances__instance_id__escalations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/instances/{instance_id}/escalations/{escalation_id}/resolve":{"post":{"tags":["company"],"summary":"Resolve Escalation","operationId":"resolve_escalation_company_instances__instance_id__escalations__escalation_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveEscalationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trading/brokers":{"get":{"tags":["trading","brokers"],"summary":"List Brokers","description":"List available broker connections and their status.","operationId":"list_brokers_trading_brokers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/brokers/{broker_id}/disconnect":{"post":{"tags":["trading","brokers"],"summary":"Disconnect Broker By Id","description":"Disconnect a specific broker.","operationId":"disconnect_broker_by_id_trading_brokers__broker_id__disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"broker_id","in":"path","required":true,"schema":{"type":"string","title":"Broker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trading/brokers/connect":{"post":{"tags":["trading","brokers"],"summary":"Connect Broker","description":"Connect to a trading broker.\n\nValidates credentials, sets up safety guard, starts trading session.\nOnly one active connection per user — disconnect first to switch.","operationId":"connect_broker_trading_brokers_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_connect_broker_trading_brokers_connect_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/brokers/disconnect":{"post":{"tags":["trading","brokers"],"summary":"Disconnect Broker","description":"Disconnect from current broker. Closes all positions if live.","operationId":"disconnect_broker_trading_brokers_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/brokers/status":{"get":{"tags":["trading","brokers"],"summary":"Get Connection Status","description":"Get current broker connection status and safety metrics.","operationId":"get_connection_status_trading_brokers_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/brokers/account":{"get":{"tags":["trading","brokers"],"summary":"Get Account","description":"Get real-time account information from broker.","operationId":"get_account_trading_brokers_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/brokers/positions":{"get":{"tags":["trading","brokers"],"summary":"Get Positions","description":"Get all open positions from broker.","operationId":"get_positions_trading_brokers_positions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/brokers/orders":{"get":{"tags":["trading","brokers"],"summary":"Get Orders","description":"Get orders from broker, optionally filtered by status.","operationId":"get_orders_trading_brokers_orders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["trading","brokers"],"summary":"Place Order","description":"Place an order through the safety guard.\n\nThe safety guard checks:\n- Position size limits\n- Daily loss limits\n- Drawdown limits\n- Mandate expiry\n- Stop-loss requirement","operationId":"place_order_trading_brokers_orders_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trading/brokers/orders/{order_id}":{"delete":{"tags":["trading","brokers"],"summary":"Cancel Order","description":"Cancel a pending order.","operationId":"cancel_order_trading_brokers_orders__order_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trading/brokers/positions/{symbol}/close":{"post":{"tags":["trading","brokers"],"summary":"Close Position","description":"Close an entire position in a symbol.","operationId":"close_position_trading_brokers_positions__symbol__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trading/brokers/kill":{"post":{"tags":["trading","brokers"],"summary":"Emergency Kill","description":"Emergency kill switch — closes ALL positions immediately.","operationId":"emergency_kill_trading_brokers_kill_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/brokers/quote/{symbol}":{"get":{"tags":["trading","brokers"],"summary":"Get Quote","description":"Get real-time quote for a symbol.","operationId":"get_quote_trading_brokers_quote__symbol__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/trading/brokers/market-status":{"get":{"tags":["trading","brokers"],"summary":"Get Market Status","description":"Check if the market is currently open.","operationId":"get_market_status_trading_brokers_market_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/trading/brokers/audit-log":{"get":{"tags":["trading","brokers"],"summary":"Get Audit Log","description":"Get trading audit log — all orders, blocks, and kills.","operationId":"get_audit_log_trading_brokers_audit_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments":{"get":{"tags":["deployments"],"summary":"List Deployments","description":"List all deployments for the current user.","operationId":"list_deployments_deployments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/configs":{"get":{"tags":["deployments"],"summary":"List Deploy Configs","description":"List all deployment configs (targets) for the current user.","operationId":"list_deploy_configs_deployments_configs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/deployments/targets":{"get":{"tags":["deployments"],"summary":"List Deploy Targets","description":"Get all deployment targets for the current user.","operationId":"list_deploy_targets_deployments_targets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["deployments"],"summary":"Add Deploy Target","description":"Register a new deployment target.\n\nValidates credentials with the provider before saving.","operationId":"add_deploy_target_deployments_targets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTargetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/deployments/targets/{config_id}":{"delete":{"tags":["deployments"],"summary":"Remove Deploy Target","description":"Remove a deployment target.","operationId":"remove_deploy_target_deployments_targets__config_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/trigger":{"post":{"tags":["deployments"],"summary":"Trigger Deployment","description":"Trigger a deployment to a registered target.\n\nThe agent calls this after building a website/app in the workspace.","operationId":"trigger_deployment_deployments_trigger_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDeployRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/deployments/{deployment_id}/status":{"get":{"tags":["deployments"],"summary":"Get Deployment Status","description":"Get current status of a deployment.","operationId":"get_deployment_status_deployments__deployment_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/rollback":{"post":{"tags":["deployments"],"summary":"Rollback Deployment","description":"Rollback a deployment to the previous version.","operationId":"rollback_deployment_deployments__deployment_id__rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}":{"delete":{"tags":["deployments"],"summary":"Delete Deployment","description":"Delete a deployment from the provider.","operationId":"delete_deployment_deployments__deployment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/history":{"get":{"tags":["deployments"],"summary":"Get Deployment History","description":"Get deployment history for the current user.","operationId":"get_deployment_history_deployments_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/targets/{config_id}/domains":{"get":{"tags":["deployments"],"summary":"Get Domains","description":"Get domains associated with a deploy target.","operationId":"get_domains_deployments_targets__config_id__domains_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/stats":{"get":{"tags":["admin"],"summary":"Get Platform Metrics","operationId":"get_platform_metrics_admin_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/metrics":{"get":{"tags":["admin"],"summary":"Get Platform Metrics","operationId":"get_platform_metrics_admin_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/users":{"get":{"tags":["admin"],"summary":"List Users","operationId":"list_users_admin_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/suspend":{"post":{"tags":["admin"],"summary":"Suspend User Body","operationId":"suspend_user_body_admin_users_suspend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendUserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/users/{user_id}/suspend":{"post":{"tags":["admin"],"summary":"Suspend User Path","operationId":"suspend_user_path_admin_users__user_id__suspend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/reinstate":{"post":{"tags":["admin"],"summary":"Reinstate User Body","operationId":"reinstate_user_body_admin_users_reinstate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReinstateUserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/users/{user_id}/reinstate":{"post":{"tags":["admin"],"summary":"Reinstate User Path","operationId":"reinstate_user_path_admin_users__user_id__reinstate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents/stats":{"get":{"tags":["admin"],"summary":"Get Agent Stats","description":"Get agent fleet statistics.","operationId":"get_agent_stats_admin_agents_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/agents":{"get":{"tags":["admin"],"summary":"List Agents","description":"List agent sessions for admin view.","operationId":"list_agents_admin_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Filter"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents/{agent_id}/kill":{"post":{"tags":["admin"],"summary":"Kill Agent","description":"Kill a specific running agent.","operationId":"kill_agent_admin_agents__agent_id__kill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/agents/kill-all":{"post":{"tags":["admin"],"summary":"Kill All Agents","operationId":"kill_all_agents_admin_agents_kill_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/signups/pause":{"post":{"tags":["admin"],"summary":"Pause Signups","operationId":"pause_signups_admin_signups_pause_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/signups/resume":{"post":{"tags":["admin"],"summary":"Resume Signups","operationId":"resume_signups_admin_signups_resume_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/signups/status":{"get":{"tags":["admin"],"summary":"Get Signups Status","operationId":"get_signups_status_admin_signups_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/health":{"get":{"tags":["admin"],"summary":"Get System Health","operationId":"get_system_health_admin_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/billing/stats":{"get":{"tags":["admin"],"summary":"Get Billing Stats","description":"Platform-wide revenue and billing statistics.","operationId":"get_billing_stats_admin_billing_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/billing/transactions":{"get":{"tags":["admin"],"summary":"Get Billing Transactions","description":"Recent billing transactions (from Stripe in production).","operationId":"get_billing_transactions_admin_billing_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audit-log":{"get":{"tags":["admin"],"summary":"Get Admin Audit Log","operationId":"get_admin_audit_log_admin_audit_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sso/organizations":{"get":{"tags":["admin"],"summary":"List Sso Organizations","description":"List all SSO organizations configured in WorkOS.","operationId":"list_sso_organizations_admin_sso_organizations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin"],"summary":"Create Sso Organization","description":"Create a new SSO organization in WorkOS.","operationId":"create_sso_organization_admin_sso_organizations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSSOOrgRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/users/{user_id}/tier":{"put":{"tags":["admin"],"summary":"Change User Tier","description":"Change a user's subscription tier.","operationId":"change_user_tier_admin_users__user_id__tier_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeTierRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/role":{"put":{"tags":["admin"],"summary":"Change User Role","description":"Change a user's role.","operationId":"change_user_role_admin_users__user_id__role_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/credits":{"post":{"tags":["admin"],"summary":"Add User Credits","description":"Add credits to a user's account.","operationId":"add_user_credits_admin_users__user_id__credits_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCreditsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}":{"delete":{"tags":["admin"],"summary":"Delete User","description":"Permanently delete a user and all their data.","operationId":"delete_user_admin_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/discounts":{"get":{"tags":["admin"],"summary":"List Discounts","description":"List all discount codes.","operationId":"list_discounts_admin_discounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin"],"summary":"Create Discount","description":"Create a new discount code.","operationId":"create_discount_admin_discounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDiscountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/discounts/{discount_id}":{"delete":{"tags":["admin"],"summary":"Delete Discount","description":"Deactivate a discount code.","operationId":"delete_discount_admin_discounts__discount_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"discount_id","in":"path","required":true,"schema":{"type":"string","title":"Discount Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/github/authorize":{"get":{"tags":["auth"],"summary":"Github Authorize","operationId":"github_authorize_auth_github_authorize_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/github/callback":{"get":{"tags":["auth"],"summary":"Github Callback","operationId":"github_callback_auth_github_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google/authorize":{"get":{"tags":["auth"],"summary":"Google Authorize","operationId":"google_authorize_auth_google_authorize_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/google/callback":{"get":{"tags":["auth"],"summary":"Google Callback","operationId":"google_callback_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/sso/authorize":{"get":{"tags":["auth"],"summary":"Sso Authorize","description":"Initiate SSO login via WorkOS.\n\nPass either organization_id directly, or email to look up org by domain.","operationId":"sso_authorize_auth_sso_authorize_get","parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Organization Id"}},{"name":"email","in":"query","required":false,"schema":{"type":"string","default":"","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/sso/callback":{"get":{"tags":["auth"],"summary":"Sso Callback","description":"Handle SSO callback from WorkOS.","operationId":"sso_callback_auth_sso_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/mfa/enroll":{"post":{"tags":["auth"],"summary":"Mfa Enroll","description":"Start MFA enrollment — generates TOTP secret + provisioning URI.\n\nReturns the secret and URI for the user to add to their authenticator app.\nUser must call /auth/mfa/verify with a valid code to activate 2FA.","operationId":"mfa_enroll_auth_mfa_enroll_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/mfa/verify":{"post":{"tags":["auth"],"summary":"Mfa Verify","description":"Verify TOTP code to complete enrollment OR to validate during login.\n\nOn successful first verification: enables 2FA and returns recovery codes.","operationId":"mfa_verify_auth_mfa_verify_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/mfa/recover":{"post":{"tags":["auth"],"summary":"Mfa Recover","description":"Recover account using a recovery code when authenticator is lost.\n\nRequires email + password + recovery code. Disables 2FA on success.","operationId":"mfa_recover_auth_mfa_recover_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/mfa/status":{"get":{"tags":["auth"],"summary":"Mfa Status","description":"Check if MFA is enabled for the current user.","operationId":"mfa_status_auth_mfa_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/mfa/disable":{"post":{"tags":["auth"],"summary":"Mfa Disable","description":"Disable 2FA. Requires current TOTP code for security.","operationId":"mfa_disable_auth_mfa_disable_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/templates/library":{"get":{"tags":["templates"],"summary":"Get Template Library","description":"List all available revenue templates.","operationId":"get_template_library_templates_library_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by category","title":"Category"},"description":"Filter by category"},{"name":"risk_level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by risk level","title":"Risk Level"},"description":"Filter by risk level"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateLibraryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/library/{template_id}":{"get":{"tags":["templates"],"summary":"Get Template Detail","description":"Get detailed template info including setup wizard and fleet configuration.","operationId":"get_template_detail_templates_library__template_id__get","security":[{"HTTPBearer":[]}],"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/TemplateDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/deploy":{"post":{"tags":["templates"],"summary":"Deploy Template","description":"Deploy a revenue template — creates and starts an agent fleet.","operationId":"deploy_template_templates_deploy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__api__app__routers__templates__DeployRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/templates/deployments":{"get":{"tags":["templates"],"summary":"List Deployments","description":"List user's active template deployments.","operationId":"list_deployments_templates_deployments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/deployments/{deployment_id}":{"get":{"tags":["templates"],"summary":"Get Deployment","description":"Get details of a specific deployment.","operationId":"get_deployment_templates_deployments__deployment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["templates"],"summary":"Stop Deployment","description":"Stop and deactivate a deployment. Historical ROI data is preserved.","operationId":"stop_deployment_templates_deployments__deployment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/deployments/{deployment_id}/roi":{"get":{"tags":["templates"],"summary":"Get Deployment Roi","description":"Get ROI dashboard data for a deployment.","operationId":"get_deployment_roi_templates_deployments__deployment_id__roi_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"period_days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Period Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ROIDashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/deployments/{deployment_id}/pause":{"post":{"tags":["templates"],"summary":"Pause Deployment","description":"Pause all agents in a deployment.","operationId":"pause_deployment_templates_deployments__deployment_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/deployments/{deployment_id}/resume":{"post":{"tags":["templates"],"summary":"Resume Deployment","description":"Resume a paused deployment.","operationId":"resume_deployment_templates_deployments__deployment_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/marketplace":{"get":{"tags":["templates"],"summary":"Get Marketplace","description":"Browse community-published revenue templates.","operationId":"get_marketplace_templates_marketplace_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","description":"Sort by: installs, rating, revenue","default":"installs","title":"Sort By"},"description":"Sort by: installs, rating, revenue"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"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":{"type":"object","additionalProperties":true,"title":"Response Get Marketplace Templates Marketplace Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/templates/publish":{"post":{"tags":["templates"],"summary":"Publish Template","description":"Publish a user's custom template configuration to the marketplace.","operationId":"publish_template_templates_publish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Publish Template Templates Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/ads/audits":{"get":{"tags":["ads"],"summary":"List Audits","description":"List all ad audits for the current user.","operationId":"list_audits_ads_audits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/ads/audit/latest":{"get":{"tags":["ads"],"summary":"Get Latest Audit","description":"Get the most recent audit for the current user.","operationId":"get_latest_audit_ads_audit_latest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/ads/audit":{"post":{"tags":["ads"],"summary":"Trigger Audit","description":"Run a full ad account audit using the AdsAuditEngine.\n\nData source priority:\n1. Real platform API (if user connected their ad account via OAuth in MCP Hub)\n2. Stealth browser scrape (if browser service available)\n3. Sample campaign structure (always works — for demo/preview)\n\nThe audit engine itself is real — 250+ checks run regardless of data source.\nThe findings and recommendations are based on actual best practices.","operationId":"trigger_audit_ads_audit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerAuditRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/ads/audits/{audit_id}":{"get":{"tags":["ads"],"summary":"Get Audit","description":"Get a specific audit by ID.","operationId":"get_audit_ads_audits__audit_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ads"],"summary":"Delete Audit","description":"Delete an audit from history.","operationId":"delete_audit_ads_audits__audit_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ads/audits/{audit_id}/report":{"get":{"tags":["ads"],"summary":"Get Audit Report","description":"Get the report URL for a completed audit.\n\nIn production with S3/R2 configured, this generates a PDF and returns\na presigned URL. Without storage configured, returns the audit data\nfor client-side PDF generation.","operationId":"get_audit_report_ads_audits__audit_id__report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"audit_id","in":"path","required":true,"schema":{"type":"string","title":"Audit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/inbox":{"get":{"tags":["email"],"summary":"List Inbox","description":"List inbox messages for the current user's connected email accounts.\n\nReturns empty until an email account (Gmail/Outlook) is connected via OAuth.","operationId":"list_inbox_email_inbox_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/email/drafts":{"get":{"tags":["email"],"summary":"List Drafts","description":"List agent-generated email drafts pending review.","operationId":"list_drafts_email_drafts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["email"],"summary":"Compose Draft","description":"Create a new email draft.","operationId":"compose_draft_email_drafts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeDraftRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/email/sent":{"get":{"tags":["email"],"summary":"List Sent","description":"List sent emails.","operationId":"list_sent_email_sent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/email/accounts":{"get":{"tags":["email"],"summary":"List Accounts","description":"List email account providers and connection status.","operationId":"list_accounts_email_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/email/drafts/{draft_id}/approve":{"post":{"tags":["email"],"summary":"Approve Draft","description":"Approve an agent-generated draft for sending.","operationId":"approve_draft_email_drafts__draft_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/drafts/{draft_id}/reject":{"post":{"tags":["email"],"summary":"Reject Draft","description":"Reject an agent-generated draft.","operationId":"reject_draft_email_drafts__draft_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/drafts/{draft_id}/send":{"post":{"tags":["email"],"summary":"Send Draft","description":"Send an approved draft. Requires email account connected with real credentials.","operationId":"send_draft_email_drafts__draft_id__send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/accounts/connect":{"post":{"tags":["email"],"summary":"Connect Account","description":"Initiate OAuth flow to connect an email account.","operationId":"connect_account_email_accounts_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/services__api__app__routers__email__ConnectAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/skills":{"get":{"tags":["skills"],"summary":"List Skills","description":"List skills available to the current user (installed + public).","operationId":"list_skills_skills_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deliverables/{file_id}/download":{"get":{"tags":["deliverables"],"summary":"Download Deliverable","description":"Download a deliverable file by ID (without needing the task_id).","operationId":"download_deliverable_deliverables__file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deliverables/{file_id}/deploy":{"post":{"tags":["deliverables"],"summary":"Deploy Deliverable","description":"Deploy a deliverable (generate a presigned URL for access).","operationId":"deploy_deliverable_deliverables__file_id__deploy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/local/predict":{"post":{"tags":["agent-local"],"summary":"Predict Next Action","description":"Predict the next action for the local agent based on screenshot + instruction.\n\nIn production with Bedrock credentials configured, this sends the screenshot\nto Claude with computer-use tools and returns the model's chosen action.\n\nWithout LLM credentials, falls back to instruction-based heuristics.","operationId":"predict_next_action_agent_local_predict_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Predict Next Action Agent Local Predict Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/agent/local/browser/screenshot":{"post":{"tags":["agent-local"],"summary":"Browser Screenshot","description":"Navigate the stealth browser to a URL and return a screenshot.\n\nThis is the core of the web-mode agent viewport — the user sees exactly\nwhat the agent sees, rendered as live screenshots inside the UI.\n\nWhen the stealth browser (CamoFox) is configured, this creates a session,\nnavigates, captures, and returns the PNG base64. Without it, returns a\nplaceholder indicating the browser service needs configuration.","operationId":"browser_screenshot_agent_local_browser_screenshot_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Browser Screenshot Agent Local Browser Screenshot Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/agent/local/started":{"post":{"tags":["agent-local"],"summary":"Agent Started","description":"Acknowledge agent start event from desktop.","operationId":"agent_started_agent_local_started_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/local/complete":{"post":{"tags":["agent-local"],"summary":"Agent Complete","description":"Acknowledge agent completion from desktop.","operationId":"agent_complete_agent_local_complete_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/local/upload":{"post":{"tags":["agent-local"],"summary":"Agent Upload","description":"Accept file upload from local agent.","operationId":"agent_upload_agent_local_upload_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/passkeys/register/options":{"get":{"tags":["passkeys"],"summary":"Get Register Options","description":"Generate WebAuthn registration options for the current user.","operationId":"get_register_options_auth_passkeys_register_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/passkeys/register/verify":{"post":{"tags":["passkeys"],"summary":"Verify Registration","description":"Verify WebAuthn registration response and store the passkey.","operationId":"verify_registration_auth_passkeys_register_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/passkeys/login/options":{"get":{"tags":["passkeys"],"summary":"Get Login Options","description":"Generate WebAuthn authentication options. If email provided, returns only that user's credentials.","operationId":"get_login_options_auth_passkeys_login_options_get","parameters":[{"name":"email","in":"query","required":false,"schema":{"type":"string","default":"","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/passkeys/login/verify":{"post":{"tags":["passkeys"],"summary":"Verify Login","description":"Verify WebAuthn authentication response and issue tokens.","operationId":"verify_login_auth_passkeys_login_verify_post","parameters":[{"name":"session_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/passkeys":{"get":{"tags":["passkeys"],"summary":"List Passkeys","description":"List all passkeys for the current user.","operationId":"list_passkeys_auth_passkeys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/passkeys/{passkey_id}":{"delete":{"tags":["passkeys"],"summary":"Delete Passkey","description":"Remove a passkey.","operationId":"delete_passkey_auth_passkeys__passkey_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"passkey_id","in":"path","required":true,"schema":{"type":"string","title":"Passkey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AddCreditsRequest":{"properties":{"amount":{"type":"integer","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Amount"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["amount"],"title":"AddCreditsRequest"},"AddMemberRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","title":"Role","default":"member"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["user_id"],"title":"AddMemberRequest"},"AddTargetRequest":{"properties":{"target":{"type":"string","title":"Target","description":"vercel, cloudflare, netlify, expo"},"project_id":{"type":"string","title":"Project Id","description":"Project/site ID on the provider"},"name":{"type":"string","title":"Name","description":"Human-readable project name","default":""},"access_token":{"type":"string","title":"Access Token","description":"Provider access token (will be encrypted)"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id","description":"Team/org ID (optional)"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain","description":"Custom domain (optional)"},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","description":"Provider-specific config"}},"type":"object","required":["target","project_id","access_token"],"title":"AddTargetRequest"},"AgentConfigResponse":{"properties":{"name":{"type":"string","title":"Name"},"agent_type":{"type":"string","title":"Agent Type"},"description":{"type":"string","title":"Description"},"tools":{"items":{"type":"string"},"type":"array","title":"Tools"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"autonomy_level":{"type":"integer","title":"Autonomy Level"},"max_actions_per_hour":{"type":"integer","title":"Max Actions Per Hour"}},"type":"object","required":["name","agent_type","description","tools","autonomy_level","max_actions_per_hour"],"title":"AgentConfigResponse"},"AgentGuideRequest":{"properties":{"instructions":{"type":"string","maxLength":2000,"minLength":1,"title":"Instructions"}},"type":"object","required":["instructions"],"title":"AgentGuideRequest"},"AgentResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","status","message"],"title":"AgentResponse"},"ApplyDiscountRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"ApplyDiscountRequest"},"ApprovalDecision":{"properties":{"approved":{"type":"boolean","title":"Approved"},"modifications":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Modifications"}},"type":"object","required":["approved"],"title":"ApprovalDecision"},"BacktestRequest":{"properties":{"symbol":{"type":"string","title":"Symbol"},"strategy":{"type":"string","title":"Strategy"},"timeframe":{"type":"string","title":"Timeframe","default":"1d"},"start_date":{"type":"string","title":"Start Date","default":"2024-01-01"},"end_date":{"type":"string","title":"End Date","default":"2024-12-31"}},"type":"object","required":["symbol","strategy"],"title":"BacktestRequest"},"Body_connect_broker_trading_brokers_connect_post":{"properties":{"req":{"$ref":"#/components/schemas/ConnectBrokerRequest"},"safety":{"anyOf":[{"$ref":"#/components/schemas/SafetyConfigRequest"},{"type":"null"}]}},"type":"object","required":["req"],"title":"Body_connect_broker_trading_brokers_connect_post"},"Body_upload_file_workspaces__workspace_id__files_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_workspaces__workspace_id__files_post"},"ChangeRoleRequest":{"properties":{"role":{"type":"string","title":"Role","description":"user, admin, super_admin"}},"type":"object","required":["role"],"title":"ChangeRoleRequest"},"ChangeTierRequest":{"properties":{"tier":{"type":"string","title":"Tier","description":"free, pro, power, business, enterprise"}},"type":"object","required":["tier"],"title":"ChangeTierRequest"},"CheckPurchaseRequest":{"properties":{"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Amount"},"agent_id":{"type":"string","title":"Agent Id","default":""}},"type":"object","required":["amount"],"title":"CheckPurchaseRequest"},"CheckoutRequest":{"properties":{"plan":{"type":"string","title":"Plan"},"success_url":{"type":"string","title":"Success Url","default":"http://localhost:3000/billing?success=true"},"cancel_url":{"type":"string","title":"Cancel Url","default":"http://localhost:3000/billing?canceled=true"}},"type":"object","required":["plan"],"title":"CheckoutRequest"},"CompleteBidRequest":{"properties":{"result_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Json"},"rating":{"anyOf":[{"type":"number","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Rating"},"review_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Text"}},"type":"object","title":"CompleteBidRequest"},"ComposeDraftRequest":{"properties":{"to":{"type":"string","title":"To"},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"}},"type":"object","required":["to","subject","body"],"title":"ComposeDraftRequest"},"ConnectBrokerRequest":{"properties":{"provider":{"type":"string","title":"Provider","description":"alpaca, binance, coinbase, tradier"},"api_key":{"type":"string","title":"Api Key","description":"API key (will be encrypted at rest)"},"api_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Secret","description":"API secret (for HMAC-based brokers)"},"is_paper":{"type":"boolean","title":"Is Paper","description":"Paper/testnet mode (strongly recommended for first connection)","default":true},"extra":{"additionalProperties":{"type":"string"},"type":"object","title":"Extra","description":"Provider-specific config (e.g., account_id, futures: true)"}},"type":"object","required":["provider","api_key"],"title":"ConnectBrokerRequest"},"ConnectModelRequest":{"properties":{"provider":{"type":"string","title":"Provider"},"api_key":{"type":"string","title":"Api Key","default":""},"api_secret":{"type":"string","title":"Api Secret","default":""},"region":{"type":"string","title":"Region","default":"us-east-1"},"model_name":{"type":"string","title":"Model Name","default":""},"endpoint_url":{"type":"string","title":"Endpoint Url","default":""}},"type":"object","required":["provider"],"title":"ConnectModelRequest"},"ConnectRequest":{"properties":{"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"oauth_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Code"},"redirect_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Uri"},"shop":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shop"}},"type":"object","title":"ConnectRequest"},"ContributeMCPRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":500,"minLength":10,"title":"Description"},"server_url":{"type":"string","title":"Server Url","description":"HTTP+SSE or stdio MCP server endpoint"},"icon":{"type":"string","maxLength":4,"title":"Icon","default":"⚙"},"category":{"type":"string","title":"Category","default":"community"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"visibility":{"type":"string","title":"Visibility","description":"public or private","default":"public"},"auth_type":{"type":"string","title":"Auth Type","description":"none, api_key, bearer","default":"none"}},"type":"object","required":["name","description","server_url"],"title":"ContributeMCPRequest"},"CreateConfigRequest":{"properties":{"brand_name":{"type":"string","maxLength":100,"minLength":1,"title":"Brand Name"},"domain":{"type":"string","minLength":3,"title":"Domain"},"tier":{"type":"string","title":"Tier","default":"starter"},"logo_url":{"type":"string","title":"Logo Url","default":""},"primary_color":{"type":"string","title":"Primary Color","default":"#3B82F6"},"secondary_color":{"type":"string","title":"Secondary Color","default":"#8B5CF6"},"tagline":{"type":"string","title":"Tagline","default":""},"support_email":{"type":"string","title":"Support Email","default":""}},"type":"object","required":["brand_name","domain"],"title":"CreateConfigRequest"},"CreateDiscountRequest":{"properties":{"code":{"type":"string","maxLength":50,"minLength":3,"title":"Code"},"discount_type":{"type":"string","title":"Discount Type","description":"percentage, fixed_amount, extra_credits"},"value":{"type":"integer","exclusiveMinimum":0.0,"title":"Value","description":"Percentage (e.g. 20), cents (e.g. 1000), or credits (e.g. 500)"},"duration":{"type":"string","title":"Duration","description":"once, repeating, forever","default":"once"},"duration_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Months"},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"},"applicable_plans":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Applicable Plans"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"is_public":{"type":"boolean","title":"Is Public","default":false}},"type":"object","required":["code","discount_type","value"],"title":"CreateDiscountRequest"},"CreateEscrowRequest":{"properties":{"payee_id":{"type":"string","title":"Payee Id"},"amount_credits":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Credits"},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["payee_id","amount_credits"],"title":"CreateEscrowRequest"},"CreateJobRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"schedule":{"type":"string","title":"Schedule","description":"Cron expression or shortcut (@every 30m, @daily 09:00, @hourly)"},"task":{"type":"string","title":"Task","description":"Task prompt for the agent"}},"type":"object","required":["name","schedule","task"],"title":"CreateJobRequest"},"CreateKeyRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["name"],"title":"CreateKeyRequest"},"CreateListingRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":5,"title":"Title"},"description":{"type":"string","maxLength":2000,"minLength":20,"title":"Description"},"price_credits":{"type":"integer","exclusiveMinimum":0.0,"title":"Price Credits"},"category":{"type":"string","title":"Category","default":"general"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"pricing_model":{"type":"string","title":"Pricing Model","default":"per_task"}},"type":"object","required":["title","description","price_credits"],"title":"CreateListingRequest"},"CreateOrderRequest":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"task_id":{"type":"string","title":"Task Id"},"platform":{"type":"string","title":"Platform","default":""},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"}},"type":"object","required":["agent_id","task_id","items"],"title":"CreateOrderRequest"},"CreateOrgRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":2,"title":"Name"},"slug":{"type":"string","maxLength":50,"minLength":2,"pattern":"^[a-z0-9-]+$","title":"Slug"},"plan":{"type":"string","title":"Plan","default":"business"},"max_agents":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Max Agents","default":100}},"type":"object","required":["name","slug"],"title":"CreateOrgRequest"},"CreatePolicyRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":2,"title":"Name"},"policy_type":{"type":"string","title":"Policy Type"},"rules":{"additionalProperties":true,"type":"object","title":"Rules"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name","policy_type","rules"],"title":"CreatePolicyRequest"},"CreatePostRequest":{"properties":{"platform":{"type":"string","title":"Platform"},"content":{"type":"string","title":"Content"},"media_urls":{"items":{"type":"string"},"type":"array","title":"Media Urls"},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags"}},"type":"object","required":["platform","content"],"title":"CreatePostRequest"},"CreateProjectRequest":{"properties":{"title":{"type":"string","title":"Title"},"scenes":{"items":{"$ref":"#/components/schemas/SceneInput"},"type":"array","title":"Scenes"},"format":{"type":"string","title":"Format","default":"16:9"},"fps":{"type":"integer","maximum":60.0,"minimum":15.0,"title":"Fps","default":30}},"type":"object","required":["title","scenes"],"title":"CreateProjectRequest"},"CreateReferralLinkRequest":{"properties":{"agent_id":{"type":"string","title":"Agent Id"}},"type":"object","required":["agent_id"],"title":"CreateReferralLinkRequest"},"CreateSSOOrgRequest":{"properties":{"name":{"type":"string","title":"Name"},"domains":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Domains"}},"type":"object","required":["name","domains"],"title":"CreateSSOOrgRequest"},"CreateTeamRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"plan":{"type":"string","title":"Plan","default":"free"},"max_members":{"type":"integer","title":"Max Members","default":5}},"type":"object","required":["name"],"title":"CreateTeamRequest"},"CreateWebhookRequest":{"properties":{"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"}},"type":"object","required":["url"],"title":"CreateWebhookRequest"},"CrossPostRequest":{"properties":{"platforms":{"items":{"type":"string"},"type":"array","title":"Platforms"},"content":{"type":"string","title":"Content"},"media_urls":{"items":{"type":"string"},"type":"array","title":"Media Urls"},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags"}},"type":"object","required":["platforms","content"],"title":"CrossPostRequest"},"DeliverableResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"size":{"type":"integer","title":"Size"},"created_at":{"type":"string","title":"Created At"},"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["id","workspace_id","name","type","size","created_at","download_url"],"title":"DeliverableResponse"},"DeployResponse":{"properties":{"url":{"type":"string","title":"Url"},"status":{"type":"string","title":"Status","default":"deployed"}},"type":"object","required":["url"],"title":"DeployResponse"},"DeploymentListResponse":{"properties":{"deployments":{"items":{"$ref":"#/components/schemas/DeploymentResponse"},"type":"array","title":"Deployments"},"total":{"type":"integer","title":"Total"},"total_revenue_cents":{"type":"integer","title":"Total Revenue Cents"},"total_cost_cents":{"type":"integer","title":"Total Cost Cents"},"total_net_profit_cents":{"type":"integer","title":"Total Net Profit Cents"}},"type":"object","required":["deployments","total","total_revenue_cents","total_cost_cents","total_net_profit_cents"],"title":"DeploymentListResponse"},"DeploymentResponse":{"properties":{"id":{"type":"string","title":"Id"},"template_id":{"type":"string","title":"Template Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"fleet_agent_count":{"type":"integer","title":"Fleet Agent Count"},"total_revenue_cents":{"type":"integer","title":"Total Revenue Cents"},"total_cost_cents":{"type":"integer","title":"Total Cost Cents"},"net_profit_cents":{"type":"integer","title":"Net Profit Cents"},"deployed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deployed At"},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"},"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["id","template_id","name","status","fleet_agent_count","total_revenue_cents","total_cost_cents","net_profit_cents"],"title":"DeploymentResponse"},"DepositRequest":{"properties":{"amount":{"type":"number","exclusiveMinimum":0.0,"title":"Amount","description":"Amount to deposit"},"source":{"type":"string","title":"Source","description":"Payment source","default":"card"}},"type":"object","required":["amount"],"title":"DepositRequest"},"DisconnectModelRequest":{"properties":{"provider":{"type":"string","title":"Provider"}},"type":"object","required":["provider"],"title":"DisconnectModelRequest"},"DiscoverRequest":{"properties":{"capabilities":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Capabilities"}},"type":"object","required":["capabilities"],"title":"DiscoverRequest"},"ExportRequest":{"properties":{"strategy_id":{"type":"string","title":"Strategy Id"}},"type":"object","required":["strategy_id"],"title":"ExportRequest"},"FileListResponse":{"properties":{"files":{"items":{"$ref":"#/components/schemas/FileResponse"},"type":"array","title":"Files"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["files","total"],"title":"FileListResponse"},"FileResponse":{"properties":{"id":{"type":"string","title":"Id"},"filename":{"type":"string","title":"Filename"},"size":{"type":"integer","title":"Size"},"mime_type":{"type":"string","title":"Mime Type"},"version":{"type":"integer","title":"Version"},"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["id","filename","size","mime_type","version","download_url"],"title":"FileResponse"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"ForkResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["task_id","message"],"title":"ForkResponse","description":"Response after forking a replay."},"FrameAddRequest":{"properties":{"agent_id":{"type":"string","maxLength":100,"title":"Agent Id","description":"ID of the agent performing the action"},"frame_type":{"type":"string","title":"Frame Type","description":"Type of frame: browser_screenshot, code_write, file_create, tool_call, agent_thought, terminal_output, user_intervention, agent_decision, browser_navigation, api_request, error"},"payload":{"additionalProperties":true,"type":"object","title":"Payload","description":"Frame payload (screenshot_url, code_diff, terminal_output, etc.)"},"timestamp_ms":{"type":"integer","title":"Timestamp Ms","description":"Timestamp in milliseconds from session start"},"screenshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screenshot Url","description":"URL to screenshot in object storage"}},"type":"object","required":["agent_id","frame_type","timestamp_ms"],"title":"FrameAddRequest","description":"Request body for adding a frame to a replay."},"FrameResponse":{"properties":{"id":{"type":"string","title":"Id"},"sequence_number":{"type":"integer","title":"Sequence Number"},"timestamp_ms":{"type":"integer","title":"Timestamp Ms"},"agent_id":{"type":"string","title":"Agent Id"},"frame_type":{"type":"string","title":"Frame Type"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"screenshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screenshot Url"}},"type":"object","required":["id","sequence_number","timestamp_ms","agent_id","frame_type","payload","screenshot_url"],"title":"FrameResponse","description":"A single rendered frame."},"GenerateCalendarRequest":{"properties":{"platform":{"type":"string","title":"Platform"},"start_date":{"type":"string","title":"Start Date"},"end_date":{"type":"string","title":"End Date"},"topics":{"items":{"type":"string"},"type":"array","title":"Topics"},"posts_per_day":{"type":"integer","title":"Posts Per Day","default":1}},"type":"object","required":["platform","start_date","end_date"],"title":"GenerateCalendarRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"service":{"type":"string","title":"Service"},"version":{"type":"string","title":"Version"},"uptime_seconds":{"type":"integer","title":"Uptime Seconds"},"checks":{"additionalProperties":{"type":"string"},"type":"object","title":"Checks"}},"type":"object","required":["status","service","version","uptime_seconds","checks"],"title":"HealthResponse"},"InviteRequest":{"properties":{"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"InviteRequest"},"IssueCardRequest":{"properties":{"spending_limit":{"type":"number","exclusiveMinimum":0.0,"title":"Spending Limit"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["spending_limit"],"title":"IssueCardRequest"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LoginVerifyRequest":{"properties":{"credential_id":{"type":"string","title":"Credential Id"},"raw_id":{"type":"string","title":"Raw Id"},"response":{"additionalProperties":true,"type":"object","title":"Response"}},"type":"object","required":["credential_id","raw_id","response"],"title":"LoginVerifyRequest"},"LogoutRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"LogoutRequest"},"MarkImprovedRequest":{"properties":{"skill_name":{"type":"string","title":"Skill Name"},"improvement_score":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Improvement Score"}},"type":"object","required":["skill_name","improvement_score"],"title":"MarkImprovedRequest"},"MemoryCreate":{"properties":{"category":{"type":"string","maxLength":64,"minLength":1,"title":"Category"},"key":{"type":"string","maxLength":256,"minLength":1,"title":"Key"},"content":{"type":"string","minLength":1,"title":"Content"},"importance":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Importance","default":0.5},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["category","key","content"],"title":"MemoryCreate"},"MemoryListResponse":{"properties":{"memories":{"items":{"$ref":"#/components/schemas/MemoryResponse"},"type":"array","title":"Memories"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["memories","total"],"title":"MemoryListResponse"},"MemoryResponse":{"properties":{"id":{"type":"string","title":"Id"},"category":{"type":"string","title":"Category"},"key":{"type":"string","title":"Key"},"content":{"type":"string","title":"Content"},"importance":{"type":"number","title":"Importance"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["id","category","key","content","importance","metadata"],"title":"MemoryResponse"},"MessageResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"MessageResponse"},"NotificationPreferences":{"properties":{"task_completed":{"type":"boolean","title":"Task Completed","default":true},"approval_requests":{"type":"boolean","title":"Approval Requests","default":true},"errors":{"type":"boolean","title":"Errors","default":true},"progress":{"type":"boolean","title":"Progress","default":false},"deliverables":{"type":"boolean","title":"Deliverables","default":true},"trades":{"type":"boolean","title":"Trades","default":true},"purchases":{"type":"boolean","title":"Purchases","default":true}},"type":"object","title":"NotificationPreferences"},"OAuthCallbackRequest":{"properties":{"code":{"type":"string","title":"Code"},"state":{"type":"string","title":"State"}},"type":"object","required":["code","state"],"title":"OAuthCallbackRequest"},"OpenChannelRequest":{"properties":{"target_agent_id":{"type":"string","title":"Target Agent Id"}},"type":"object","required":["target_agent_id"],"title":"OpenChannelRequest"},"OpenPositionRequest":{"properties":{"symbol":{"type":"string","title":"Symbol"},"side":{"type":"string","title":"Side","default":"long"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity"},"stop_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stop Loss"},"take_profit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Take Profit"}},"type":"object","required":["symbol","quantity"],"title":"OpenPositionRequest"},"PaginatedFramesResponse":{"properties":{"frames":{"items":{"$ref":"#/components/schemas/FrameResponse"},"type":"array","title":"Frames"},"total":{"type":"integer","title":"Total"},"offset":{"type":"integer","title":"Offset"},"limit":{"type":"integer","title":"Limit"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["frames","total","offset","limit","has_more"],"title":"PaginatedFramesResponse","description":"Paginated frames response."},"PlaceBidRequest":{"properties":{"price_credits":{"type":"integer","exclusiveMinimum":0.0,"title":"Price Credits"},"message":{"type":"string","title":"Message","default":""}},"type":"object","required":["price_credits"],"title":"PlaceBidRequest"},"PlaceOrderRequest":{"properties":{"symbol":{"type":"string","title":"Symbol"},"side":{"type":"string","title":"Side","description":"buy or sell"},"quantity":{"type":"number","exclusiveMinimum":0.0,"title":"Quantity"},"order_type":{"type":"string","title":"Order Type","description":"market, limit, stop, stop_limit","default":"market"},"limit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Limit Price"},"stop_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stop Price"},"stop_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stop Loss"},"take_profit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Take Profit"}},"type":"object","required":["symbol","side","quantity"],"title":"PlaceOrderRequest"},"PredictRequest":{"properties":{"instruction":{"type":"string","title":"Instruction"},"screenshot":{"type":"string","title":"Screenshot","description":"Base64 PNG screenshot"},"screen_width":{"type":"integer","title":"Screen Width","default":1920},"screen_height":{"type":"integer","title":"Screen Height","default":1080},"scale_factor":{"type":"number","title":"Scale Factor","default":1.0},"step":{"type":"integer","title":"Step","default":0},"history":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"History"},"operator":{"type":"string","title":"Operator","default":"computer"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["instruction","screenshot"],"title":"PredictRequest"},"PreferenceCreate":{"properties":{"category":{"type":"string","title":"Category"},"key":{"type":"string","title":"Key"},"value":{"type":"string","title":"Value"}},"type":"object","required":["category","key","value"],"title":"PreferenceCreate"},"PreferenceResponse":{"properties":{"id":{"type":"string","title":"Id"},"category":{"type":"string","title":"Category"},"key":{"type":"string","title":"Key"},"value":{"type":"string","title":"Value"}},"type":"object","required":["id","category","key","value"],"title":"PreferenceResponse"},"PreferenceUpdate":{"properties":{"value":{"type":"string","title":"Value"}},"type":"object","required":["value"],"title":"PreferenceUpdate"},"PublishRequest":{"properties":{"deployment_id":{"type":"string","title":"Deployment Id"},"description":{"type":"string","title":"Description"},"price_cents":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Price Cents"}},"type":"object","required":["deployment_id","description","price_cents"],"title":"PublishRequest"},"PublishSkillRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":1000,"minLength":10,"title":"Description"},"category":{"type":"string","title":"Category","default":"general"},"is_public":{"type":"boolean","title":"Is Public","default":true},"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["name","description"],"title":"PublishSkillRequest"},"PurchaseCreditsRequest":{"properties":{"pack_id":{"type":"string","title":"Pack Id"}},"type":"object","required":["pack_id"],"title":"PurchaseCreditsRequest"},"PushSubscriptionRequest":{"properties":{"endpoint":{"type":"string","title":"Endpoint"},"keys":{"additionalProperties":{"type":"string"},"type":"object","title":"Keys","description":"p256dh and auth keys"}},"type":"object","required":["endpoint","keys"],"title":"PushSubscriptionRequest"},"ROIDashboardResponse":{"properties":{"deployment_id":{"type":"string","title":"Deployment Id"},"template_name":{"type":"string","title":"Template Name"},"period_days":{"type":"integer","title":"Period Days"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"},"estimated":{"additionalProperties":true,"type":"object","title":"Estimated"},"daily_breakdown":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Daily Breakdown"},"forecast":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Forecast"}},"type":"object","required":["deployment_id","template_name","period_days","summary","estimated","daily_breakdown"],"title":"ROIDashboardResponse"},"ROIEstimateResponse":{"properties":{"monthly_revenue_min_cents":{"type":"integer","title":"Monthly Revenue Min Cents"},"monthly_revenue_max_cents":{"type":"integer","title":"Monthly Revenue Max Cents"},"monthly_cost_estimate_cents":{"type":"integer","title":"Monthly Cost Estimate Cents"},"time_to_first_revenue_days":{"type":"integer","title":"Time To First Revenue Days"},"breakeven_days":{"type":"integer","title":"Breakeven Days"},"confidence_level":{"type":"number","title":"Confidence Level"},"display_revenue_range":{"type":"string","title":"Display Revenue Range"},"display_time_to_revenue":{"type":"string","title":"Display Time To Revenue"},"assumptions":{"items":{"type":"string"},"type":"array","title":"Assumptions"},"data_sources":{"items":{"type":"string"},"type":"array","title":"Data Sources"}},"type":"object","required":["monthly_revenue_min_cents","monthly_revenue_max_cents","monthly_cost_estimate_cents","time_to_first_revenue_days","breakeven_days","confidence_level","display_revenue_range","display_time_to_revenue","assumptions","data_sources"],"title":"ROIEstimateResponse"},"RecordUsageRequest":{"properties":{"skill_name":{"type":"string","maxLength":255,"minLength":1,"title":"Skill Name"},"success":{"type":"boolean","title":"Success"},"duration_ms":{"type":"number","title":"Duration Ms","default":0.0}},"type":"object","required":["skill_name","success"],"title":"RecordUsageRequest"},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"RegisterAgentRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":500,"minLength":10,"title":"Description"},"capabilities":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Capabilities"},"visibility":{"type":"string","title":"Visibility","default":"discoverable"},"accepts_inbound":{"type":"boolean","title":"Accepts Inbound","default":true},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"pricing":{"additionalProperties":true,"type":"object","title":"Pricing"}},"type":"object","required":["name","description","capabilities"],"title":"RegisterAgentRequest"},"RegisterNodeRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"base_url":{"type":"string","title":"Base Url"},"public_key":{"type":"string","title":"Public Key"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"}},"type":"object","required":["name","base_url","public_key"],"title":"RegisterNodeRequest"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["email","password","name"],"title":"RegisterRequest"},"RegisterVerifyRequest":{"properties":{"credential_id":{"type":"string","title":"Credential Id"},"raw_id":{"type":"string","title":"Raw Id"},"response":{"additionalProperties":true,"type":"object","title":"Response"},"device_name":{"type":"string","title":"Device Name","default":"My Device"}},"type":"object","required":["credential_id","raw_id","response"],"title":"RegisterVerifyRequest"},"ReinstateUserRequest":{"properties":{"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["user_id"],"title":"ReinstateUserRequest"},"RenderRequest":{"properties":{"project_id":{"type":"string","title":"Project Id"}},"type":"object","required":["project_id"],"title":"RenderRequest"},"ReplayCompleteRequest":{"properties":{"duration_ms":{"type":"integer","minimum":0.0,"title":"Duration Ms","description":"Total task duration in milliseconds"},"outcome":{"type":"string","title":"Outcome","description":"Task outcome: success, partial, failed","default":"success"},"agents_used":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Agents Used","description":"List of agent descriptors that participated"},"deliverables":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Deliverables","description":"List of deliverables produced"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url","description":"Preview thumbnail URL"}},"type":"object","required":["duration_ms"],"title":"ReplayCompleteRequest","description":"Request body for marking a replay as complete."},"ReplayStartRequest":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"ID of the task being recorded"},"title":{"type":"string","maxLength":500,"title":"Title","description":"Display title for the replay"},"task_prompt":{"type":"string","title":"Task Prompt","description":"The original prompt that started the task"},"description":{"type":"string","title":"Description","description":"Optional description","default":""}},"type":"object","required":["task_id","title","task_prompt"],"title":"ReplayStartRequest","description":"Request body for starting a replay capture."},"ReplayStartResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["session_id","status"],"title":"ReplayStartResponse","description":"Response after starting a replay capture."},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","maxLength":128,"minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordRequest"},"ResolveEscalationRequest":{"properties":{"resolution":{"type":"string","minLength":1,"title":"Resolution","description":"Your decision/instruction"}},"type":"object","required":["resolution"],"title":"ResolveEscalationRequest"},"ReviewRequest":{"properties":{"rating":{"type":"number","maximum":5.0,"minimum":1.0,"title":"Rating"},"comment":{"type":"string","maxLength":500,"title":"Comment","default":""}},"type":"object","required":["rating"],"title":"ReviewRequest"},"SafetyConfigRequest":{"properties":{"max_position_size_usd":{"type":"number","exclusiveMinimum":0.0,"title":"Max Position Size Usd","default":10000},"max_daily_loss_usd":{"type":"number","exclusiveMinimum":0.0,"title":"Max Daily Loss Usd","default":500},"max_drawdown_pct":{"type":"number","maximum":50.0,"exclusiveMinimum":0.0,"title":"Max Drawdown Pct","default":5},"max_open_positions":{"type":"integer","maximum":100.0,"exclusiveMinimum":0.0,"title":"Max Open Positions","default":20},"allowed_symbols":{"items":{"type":"string"},"type":"array","title":"Allowed Symbols"},"blocked_symbols":{"items":{"type":"string"},"type":"array","title":"Blocked Symbols"},"mandate_expiry_hours":{"type":"integer","maximum":168.0,"exclusiveMinimum":0.0,"title":"Mandate Expiry Hours","default":24},"require_stop_loss":{"type":"boolean","title":"Require Stop Loss","default":true}},"type":"object","title":"SafetyConfigRequest"},"SceneInput":{"properties":{"html":{"type":"string","title":"Html"},"duration_seconds":{"type":"number","maximum":60.0,"minimum":0.5,"title":"Duration Seconds","default":5.0},"transition":{"type":"string","title":"Transition","default":"fade"},"narration":{"type":"string","title":"Narration","default":""},"css":{"type":"string","title":"Css","default":""}},"type":"object","required":["html"],"title":"SceneInput"},"SchedulePostRequest":{"properties":{"scheduled_at":{"type":"string","title":"Scheduled At"}},"type":"object","required":["scheduled_at"],"title":"SchedulePostRequest"},"SearchRequest":{"properties":{"query":{"type":"string","title":"Query","default":""},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"min_reputation":{"type":"number","title":"Min Reputation","default":0.0},"limit":{"type":"integer","title":"Limit","default":20}},"type":"object","title":"SearchRequest"},"SendMessageBody":{"properties":{"message_type":{"type":"string","title":"Message Type","default":"task_request"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","title":"SendMessageBody"},"SendMessageRequest":{"properties":{"content":{"additionalProperties":true,"type":"object","title":"Content"}},"type":"object","required":["content"],"title":"SendMessageRequest"},"SessionMetadataResponse":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"task_id":{"type":"string","title":"Task Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"visibility":{"type":"string","title":"Visibility"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"total_frames":{"type":"integer","title":"Total Frames"},"duration_ms":{"type":"integer","title":"Duration Ms"},"agents_used":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Agents Used"},"deliverables":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Deliverables"},"task_prompt":{"type":"string","title":"Task Prompt"},"outcome":{"type":"string","title":"Outcome"},"view_count":{"type":"integer","title":"View Count"},"share_count":{"type":"integer","title":"Share Count"},"fork_count":{"type":"integer","title":"Fork Count"},"forked_from_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forked From Id"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","user_id","task_id","title","description","status","visibility","share_token","total_frames","duration_ms","agents_used","deliverables","task_prompt","outcome","view_count","share_count","fork_count","forked_from_id","thumbnail_url","created_at","completed_at"],"title":"SessionMetadataResponse","description":"Full replay session metadata."},"SetupStepResponse":{"properties":{"order":{"type":"integer","title":"Order"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"field_name":{"type":"string","title":"Field Name"},"field_type":{"type":"string","title":"Field Type"},"required":{"type":"boolean","title":"Required"},"default":{"anyOf":[{},{"type":"null"}],"title":"Default"},"options":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Options"},"validation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation"},"help_text":{"type":"string","title":"Help Text","default":""},"sensitive":{"type":"boolean","title":"Sensitive","default":false}},"type":"object","required":["order","title","description","field_name","field_type","required"],"title":"SetupStepResponse"},"ShareRequest":{"properties":{"visibility":{"type":"string","title":"Visibility","description":"Access level: private, unlisted, public","default":"unlisted"}},"type":"object","title":"ShareRequest","description":"Request body for generating a share link."},"ShareResponse":{"properties":{"share_token":{"type":"string","title":"Share Token"},"visibility":{"type":"string","title":"Visibility"},"share_url":{"type":"string","title":"Share Url"}},"type":"object","required":["share_token","visibility","share_url"],"title":"ShareResponse","description":"Response after generating a share link."},"SignalScanRequest":{"properties":{"symbols":{"items":{"type":"string"},"type":"array","title":"Symbols"},"factors":{"items":{"type":"string"},"type":"array","title":"Factors"},"timeframe":{"type":"string","title":"Timeframe","default":"1d"}},"type":"object","title":"SignalScanRequest"},"SpendingLimitsUpdate":{"properties":{"per_transaction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Per Transaction"},"daily_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Cap"},"auto_approve_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Auto Approve Threshold"},"per_agent_daily":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Per Agent Daily"},"monthly_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Monthly Cap"}},"type":"object","title":"SpendingLimitsUpdate"},"StartTrialRequest":{"properties":{"plan":{"type":"string","title":"Plan","default":"pro"}},"type":"object","title":"StartTrialRequest"},"StoryboardRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"num_scenes":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Num Scenes","default":5},"format":{"type":"string","title":"Format","default":"16:9"}},"type":"object","required":["prompt"],"title":"StoryboardRequest"},"SubTaskResponse":{"properties":{"id":{"type":"string","title":"Id"},"agent_type":{"type":"string","title":"Agent Type"},"prompt":{"type":"string","title":"Prompt"},"status":{"type":"string","title":"Status"},"tokens_used":{"type":"integer","title":"Tokens Used"},"model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Used"}},"type":"object","required":["id","agent_type","prompt","status","tokens_used","model_used"],"title":"SubTaskResponse"},"SuspendUserRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"reason":{"type":"string","minLength":1,"title":"Reason","default":"Suspended by admin"}},"type":"object","required":["user_id"],"title":"SuspendUserRequest"},"SyncPushItem":{"properties":{"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"type":"string","title":"Resource Id"},"operation":{"type":"string","title":"Operation"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["resource_type","resource_id","operation","data"],"title":"SyncPushItem"},"SyncRequest":{"properties":{"deltas":{"items":{"$ref":"#/components/schemas/SyncPushItem"},"type":"array","title":"Deltas","default":[]}},"type":"object","title":"SyncRequest"},"TaskCreateRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","required":["prompt"],"title":"TaskCreateRequest"},"TaskDeliverableResponse":{"properties":{"id":{"type":"string","title":"Id"},"filename":{"type":"string","title":"Filename"},"size":{"type":"integer","title":"Size"},"mime_type":{"type":"string","title":"Mime Type"},"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["id","filename","size","mime_type","download_url"],"title":"TaskDeliverableResponse"},"TaskListResponse":{"properties":{"tasks":{"items":{"$ref":"#/components/schemas/TaskResponse"},"type":"array","title":"Tasks"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["tasks","total"],"title":"TaskListResponse"},"TaskResponse":{"properties":{"id":{"type":"string","title":"Id"},"prompt":{"type":"string","title":"Prompt"},"status":{"type":"string","title":"Status"},"total_tokens_used":{"type":"integer","title":"Total Tokens Used"},"total_cost_cents":{"type":"integer","title":"Total Cost Cents"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"subtasks":{"items":{"$ref":"#/components/schemas/SubTaskResponse"},"type":"array","title":"Subtasks"}},"type":"object","required":["id","prompt","status","total_tokens_used","total_cost_cents","created_at","completed_at","subtasks"],"title":"TaskResponse"},"TemplateDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"long_description":{"type":"string","title":"Long Description"},"category":{"type":"string","title":"Category"},"version":{"type":"string","title":"Version"},"risk_level":{"type":"string","title":"Risk Level"},"required_tier":{"type":"string","title":"Required Tier"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"install_count":{"type":"integer","title":"Install Count"},"avg_rating":{"type":"number","title":"Avg Rating"},"roi_estimate":{"anyOf":[{"$ref":"#/components/schemas/ROIEstimateResponse"},{"type":"null"}]},"fleet_config":{"items":{"$ref":"#/components/schemas/AgentConfigResponse"},"type":"array","title":"Fleet Config"},"setup_wizard_steps":{"items":{"$ref":"#/components/schemas/SetupStepResponse"},"type":"array","title":"Setup Wizard Steps"},"required_integrations":{"items":{"type":"string"},"type":"array","title":"Required Integrations"},"success_metrics":{"items":{"type":"string"},"type":"array","title":"Success Metrics"},"prerequisites":{"items":{"type":"string"},"type":"array","title":"Prerequisites"},"estimated_daily_credits":{"type":"integer","title":"Estimated Daily Credits"}},"type":"object","required":["id","name","description","long_description","category","version","risk_level","required_tier","tags","install_count","avg_rating","fleet_config","setup_wizard_steps","required_integrations","success_metrics","prerequisites","estimated_daily_credits"],"title":"TemplateDetailResponse"},"TemplateLibraryResponse":{"properties":{"templates":{"items":{"$ref":"#/components/schemas/TemplateListItem"},"type":"array","title":"Templates"},"total":{"type":"integer","title":"Total"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"}},"type":"object","required":["templates","total","categories"],"title":"TemplateLibraryResponse"},"TemplateListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"category":{"type":"string","title":"Category"},"risk_level":{"type":"string","title":"Risk Level"},"required_tier":{"type":"string","title":"Required Tier"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"install_count":{"type":"integer","title":"Install Count"},"avg_rating":{"type":"number","title":"Avg Rating"},"roi_estimate":{"anyOf":[{"$ref":"#/components/schemas/ROIEstimateResponse"},{"type":"null"}]},"fleet_size":{"type":"integer","title":"Fleet Size"}},"type":"object","required":["id","name","description","category","risk_level","required_tier","tags","install_count","avg_rating","fleet_size"],"title":"TemplateListItem"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenResponse"},"ToolCallRequest":{"properties":{"tool_name":{"type":"string","title":"Tool Name"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments","default":{}}},"type":"object","required":["tool_name"],"title":"ToolCallRequest"},"TrendingReplayResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"task_prompt":{"type":"string","title":"Task Prompt"},"outcome":{"type":"string","title":"Outcome"},"duration_ms":{"type":"integer","title":"Duration Ms"},"total_frames":{"type":"integer","title":"Total Frames"},"agents_used":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Agents Used"},"view_count":{"type":"integer","title":"View Count"},"share_count":{"type":"integer","title":"Share Count"},"fork_count":{"type":"integer","title":"Fork Count"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","title","description","task_prompt","outcome","duration_ms","total_frames","agents_used","view_count","share_count","fork_count","share_token","thumbnail_url","created_at","completed_at"],"title":"TrendingReplayResponse","description":"A replay entry in trending listings."},"TriggerAuditRequest":{"properties":{"platform":{"type":"string","title":"Platform","description":"google_ads, meta, linkedin, tiktok, microsoft"},"account_id":{"type":"string","title":"Account Id","description":"Ad account ID on the platform"},"check_categories":{"type":"string","title":"Check Categories","description":"Comma-separated categories or 'all'","default":"all"}},"type":"object","required":["platform","account_id"],"title":"TriggerAuditRequest"},"TriggerDeployRequest":{"properties":{"config_id":{"type":"string","title":"Config Id","description":"Deploy target config ID"},"source_path":{"type":"string","title":"Source Path","description":"Path to workspace/build output to deploy"},"env_vars":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Env Vars","description":"Environment variables to set"},"branch":{"type":"string","title":"Branch","description":"Git branch name for the deployment","default":"main"}},"type":"object","required":["config_id","source_path"],"title":"TriggerDeployRequest"},"UpdateConfigRequest":{"properties":{"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"primary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Color"},"secondary_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary Color"},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagline"},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email"}},"type":"object","title":"UpdateConfigRequest"},"UpdateJobRequest":{"properties":{"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"task":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"UpdateJobRequest"},"UpdatePolicyRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"rules":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rules"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"UpdatePolicyRequest"},"UpdateProfileRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"UpdateProfileRequest"},"UpdateRoleRequest":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"UpdateRoleRequest"},"UserReplaysResponse":{"properties":{"replays":{"items":{"$ref":"#/components/schemas/SessionMetadataResponse"},"type":"array","title":"Replays"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["replays","total"],"title":"UserReplaysResponse","description":"Paginated list of user's replays."},"UserResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"tier":{"type":"string","title":"Tier"},"credits_remaining":{"type":"integer","title":"Credits Remaining"},"role":{"type":"string","title":"Role","default":"user"}},"type":"object","required":["id","email","name","tier","credits_remaining"],"title":"UserResponse"},"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"},"Verify2FARequest":{"properties":{"challenge_token":{"type":"string","title":"Challenge Token"},"code":{"type":"string","title":"Code"}},"type":"object","required":["challenge_token","code"],"title":"Verify2FARequest"},"WorkspaceCreateRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"WorkspaceCreateRequest"},"WorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"storage_path":{"type":"string","title":"Storage Path"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","name","storage_path","status"],"title":"WorkspaceResponse"},"services__api__app__routers__company__DeployCompanyRequest":{"properties":{"template_id":{"type":"string","title":"Template Id","description":"Business type template ID"},"company_name":{"type":"string","maxLength":100,"minLength":1,"title":"Company Name"},"config":{"additionalProperties":true,"type":"object","title":"Config","description":"Setup wizard answers"}},"type":"object","required":["template_id","company_name"],"title":"DeployCompanyRequest"},"services__api__app__routers__email__ConnectAccountRequest":{"properties":{"provider":{"type":"string","title":"Provider","description":"gmail, outlook, custom"}},"type":"object","required":["provider"],"title":"ConnectAccountRequest"},"services__api__app__routers__marketplace__DeployCompanyRequest":{"properties":{"business_name":{"type":"string","maxLength":100,"minLength":1,"title":"Business Name"},"business_type":{"type":"string","title":"Business Type","default":"services"},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["business_name"],"title":"DeployCompanyRequest"},"services__api__app__routers__social__ConnectAccountRequest":{"properties":{"platform":{"type":"string","title":"Platform"},"credentials":{"additionalProperties":{"type":"string"},"type":"object","title":"Credentials"}},"type":"object","required":["platform"],"title":"ConnectAccountRequest"},"services__api__app__routers__templates__DeployRequest":{"properties":{"template_id":{"type":"string","title":"Template Id"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"name_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Override"}},"type":"object","required":["template_id"],"title":"DeployRequest"},"services__api__app__routers__white_label__DeployRequest":{"properties":{"region":{"type":"string","title":"Region","default":"us-east-1"}},"type":"object","title":"DeployRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}},"tags":[{"name":"health","description":"Health checks and readiness probes"},{"name":"auth","description":"Authentication and authorization"},{"name":"tasks","description":"Task submission and management"},{"name":"workspaces","description":"Workspace management"},{"name":"agents","description":"Agent control and monitoring"},{"name":"memory","description":"Agent memory system"},{"name":"integrations","description":"MCP Hub and service connections"},{"name":"commerce","description":"Purchasing agent and virtual cards"},{"name":"trading","description":"Trading agent operations"},{"name":"social","description":"Social media agent"},{"name":"billing","description":"Billing, credits, and subscriptions"},{"name":"teams","description":"Team workspaces and collaboration"},{"name":"agent-marketplace","description":"Agent-to-agent task marketplace"},{"name":"federation","description":"Federated agent protocol"},{"name":"collective-intelligence","description":"Skill metrics and evolution"},{"name":"enterprise-mesh","description":"Enterprise org and policy management"},{"name":"referral-network","description":"Agent referral links and tracking"},{"name":"white-label","description":"White-label deployments"},{"name":"replays","description":"Task replay capture, playback, and sharing"},{"name":"company","description":"Company-in-a-Box agent fleet deployment"},{"name":"api-keys","description":"Developer API keys and webhooks"},{"name":"brokers","description":"Live broker connections and order execution"},{"name":"deployments","description":"Deploy websites and apps to production"},{"name":"admin","description":"Platform administration and user management"},{"name":"websocket","description":"Real-time event streaming"}]}