{"openapi":"3.1.0","info":{"title":"Dashboard Server","version":"1.0.0"},"paths":{"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/payments/stripe-webhook":{"post":{"tags":["payments"],"summary":"Stripe Webhook","operationId":"stripe_webhook_api_payments_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/slack/events":{"post":{"tags":["slack"],"summary":"Slack Events","operationId":"slack_events_api_slack_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/signup":{"post":{"tags":["auth"],"summary":"Signup","operationId":"signup_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/onboarding/start":{"post":{"tags":["auth"],"summary":"Onboarding Start","description":"Public entrypoint for the new objective-first onboarding flow.\n\nCreates Organization, Domain, primary User, and seeds Domain.onboarding_state.signup_v2,\nthen kicks off domain research + objective recommendation in the background.","operationId":"onboarding_start_auth_onboarding_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/onboarding/status":{"get":{"tags":["auth"],"summary":"Onboarding Status","description":"Public polling endpoint for the new signup onboarding flow.\n\nCombines:\n  - Domain signup_v2 onboarding state (status, recommendations, selection)\n  - Domain research progress\n  - Objective execution progress (mirrors /onboarding/objectives-onboarding-status)","operationId":"onboarding_status_auth_onboarding_status_get","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/onboarding/accept-objectives":{"post":{"tags":["auth"],"summary":"Onboarding Accept Objectives","description":"Accept recommended objectives for an onboarding session and kick off\nthe background orchestrator for objective execution.","operationId":"onboarding_accept_objectives_auth_onboarding_accept_objectives_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptObjectivesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"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/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","description":"Mint a fresh access token. Cookie first, legacy body token as fallback.\n\nOrder matters both ways: the COOKIE is the D10 credential, so it wins when\npresent and usable; the body token is honored when there is no cookie (a\nclient on the old bundle) **and** when the cookie is present-but-unusable (a\nrotated JWT_SECRET_KEY, a truncated value, a stale cookie from another\nenvironment). Falling back on an unusable cookie is deliberate: the\nalternative is a hard lockout for a client that is still holding a perfectly\ngood refresh token, fixable only by clearing site data.\n\nWhenever the legacy path is taken we plant the cookie — the silent upgrade,\nso a user gets cross-host SSO on their next request without re-authenticating.","operationId":"refresh_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RefreshRequest"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Revoke all browser sessions for the authenticated subject, then clear cookies.","operationId":"logout_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RefreshRequest"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_auth_me_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__auth__UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/protected":{"get":{"tags":["auth"],"summary":"Protected","operationId":"protected_auth_protected_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/request-password-reset":{"post":{"tags":["auth"],"summary":"Request Password Reset","description":"Generate a reset link and email it.  Always return 200 for privacy.","operationId":"request_password_reset_auth_request_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset-password/{token}/{user_id}":{"post":{"tags":["auth"],"summary":"Reset Password","description":"Validate *token* and update the user's password.","operationId":"reset_password_auth_reset_password__token___user_id__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/account-context":{"post":{"tags":["browser-auth"],"summary":"Account Context","operationId":"account_context_auth_browser_account_context_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurfaceBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/switch-account":{"post":{"tags":["browser-auth"],"summary":"Switch Account","operationId":"switch_account_auth_browser_switch_account_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchAccountBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/start":{"post":{"tags":["browser-auth"],"summary":"Start","operationId":"start_auth_browser_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/callback":{"get":{"tags":["browser-auth"],"summary":"Callback","operationId":"callback_auth_browser_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/refresh":{"post":{"tags":["browser-auth"],"summary":"Refresh","operationId":"refresh_auth_browser_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurfaceBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/logout":{"post":{"tags":["browser-auth"],"summary":"Logout","operationId":"logout_auth_browser_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/signup/start":{"post":{"tags":["browser-signup"],"summary":"Start","operationId":"start_auth_browser_signup_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/signup/state":{"post":{"tags":["browser-signup"],"summary":"State","operationId":"state_auth_browser_signup_state_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupSurface"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/signup/finish":{"post":{"tags":["browser-signup"],"summary":"Finish","operationId":"finish_auth_browser_signup_finish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/support/workspace":{"post":{"tags":["browser-support"],"summary":"Workspace","operationId":"workspace_auth_browser_support_workspace_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/routines":{"get":{"tags":["browser-routines"],"summary":"List Connections","operationId":"list_connections_auth_browser_routines_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/browser/routines/approve":{"post":{"tags":["browser-routines"],"summary":"Approve","operationId":"approve_auth_browser_routines_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/browser/routines/revoke":{"post":{"tags":["browser-routines"],"summary":"Revoke","operationId":"revoke_auth_browser_routines_revoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/browser-auth":{"post":{"summary":"Lifecycle","operationId":"lifecycle_webhooks_browser_auth_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/desk-signup":{"post":{"tags":["auth"],"summary":"Desk Signup","description":"Provision a self-serve AgentDesk workspace for a brand-new customer.","operationId":"desk_signup_auth_desk_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskSignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__desk_signup__DeskSignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/desk-signup/verify":{"post":{"tags":["auth"],"summary":"Desk Signup Verify","description":"Check a pending claim's DNS TXT proof; provision on success (WO-10 §4.4).\n\nUNAUTHENTICATED AND IT MINTS AN ORG, so the shape of this endpoint is\n\"re-run every gate, then believe the DNS\":\n\n* the claim is an INTENT, never a pre-approval — by the time a proof\n  clears, days may have passed: the company may have become a real\n  customer (host clash → 409), the address may have been registered\n  (→ 409), the PSL may be unusable (→ 503). Every gate the signup ran, ran\n  here again, minus the spend limits (the DNS proof is the spend gate on\n  this path, and burning a company-host bucket per \"did it propagate yet?\"\n  click would lock out the very customer mid-verification).\n* the proof is single-use: success clears the token, and a promoted claim\n  (domain attached) stops resolving at all.\n* an unknown or expired claim is refused with nothing to enumerate — the\n  claim id is an unguessable bearer handle, and the responses to \"wrong\"\n  and \"never existed\" are identical.","operationId":"desk_signup_verify_auth_desk_signup_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskSignupVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__desk_signup__DeskSignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/desk-signup/confirm-email":{"post":{"tags":["auth"],"summary":"Desk Signup Confirm Email","operationId":"desk_signup_confirm_email_auth_desk_signup_confirm_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskSignupConfirmEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__mailbox_desk_signup__DeskSignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal-auth/login":{"post":{"tags":["internal-auth"],"summary":"Internal Login","description":"Login for internal users (GTM frontend).","operationId":"internal_login_internal_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalAuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal-auth/refresh":{"post":{"tags":["internal-auth"],"summary":"Internal Refresh","description":"Refresh access token for internal users.","operationId":"internal_refresh_internal_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalRefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalTokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal-auth/me":{"get":{"tags":["internal-auth"],"summary":"Internal Me","description":"Get current internal user info.","operationId":"internal_me_internal_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalUserResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/workflows":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Workflows","description":"List all workflows for the current internal user.","operationId":"list_workflows_gtm_internal_workflows_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Workflow","description":"Create a new account creation workflow.","operationId":"create_workflow_gtm_internal_workflows_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/workflows/{workflow_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Workflow","description":"Get a workflow by ID.","operationId":"get_workflow_gtm_internal_workflows__workflow_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Delete Workflow","description":"Delete a workflow.","operationId":"delete_workflow_gtm_internal_workflows__workflow_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Workflow","description":"Update workflow state (e.g., mark steps as complete).","operationId":"update_workflow_gtm_internal_workflows__workflow_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkflowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/mark-viewed":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Mark Workflow Viewed","description":"Mark a workflow as viewed, clearing the unviewed update notification.","operationId":"mark_workflow_viewed_gtm_internal_workflows__workflow_id__mark_viewed_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-account":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Account","description":"Create organization and domain.\n\nThis reuses logic from the admin account creation endpoint.","operationId":"create_account_gtm_internal_workflows__workflow_id__create_account_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Step1Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Step1Response"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-account/complete":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Complete Create Account","description":"Mark account creation as complete (called after domain research finishes).","operationId":"complete_create_account_gtm_internal_workflows__workflow_id__create_account_complete_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-competitors/generate":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Generate Competitors","description":"Generate competitors using AI with custom prompt.","operationId":"generate_competitors_gtm_internal_workflows__workflow_id__create_competitors_generate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-competitors/accept":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Accept Competitors","description":"Accept and save competitors to the database.","operationId":"accept_competitors_gtm_internal_workflows__workflow_id__create_competitors_accept_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptCompetitorsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-products/generate":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Generate Products","description":"Generate account products using AI with custom prompt.","operationId":"generate_products_gtm_internal_workflows__workflow_id__create_products_generate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-products/accept":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Accept Products","description":"Accept and save products to the database.","operationId":"accept_products_gtm_internal_workflows__workflow_id__create_products_accept_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptProductsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-monitors/generate":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Generate Monitors","description":"Generate monitors using AI with custom prompt.","operationId":"generate_monitors_gtm_internal_workflows__workflow_id__create_monitors_generate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-monitors/accept":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Accept Monitors","description":"Accept and save monitors to the database.","operationId":"accept_monitors_gtm_internal_workflows__workflow_id__create_monitors_accept_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptMonitorsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/monitors/{monitor_id}":{"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Delete Monitor","description":"Delete a monitor from the workflow.","operationId":"delete_monitor_gtm_internal_workflows__workflow_id__monitors__monitor_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}},{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/monitors":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Workflow Monitors","description":"Get all monitors for a workflow.","operationId":"get_workflow_monitors_gtm_internal_workflows__workflow_id__monitors_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-brand-goals/generate":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Generate Brand Goals","description":"Generate brand goals using AI with custom prompt.","operationId":"generate_brand_goals_gtm_internal_workflows__workflow_id__create_brand_goals_generate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-brand-goals/accept":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Accept Brand Goals","description":"Accept generated goal ideas and store them as canonical Goal rows.","operationId":"accept_brand_goals_gtm_internal_workflows__workflow_id__create_brand_goals_accept_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptBrandGoalsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/create-brand-goals/skip":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Skip Brand Goals","description":"Skip brand goals step (it's optional).","operationId":"skip_brand_goals_gtm_internal_workflows__workflow_id__create_brand_goals_skip_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/run-monitors":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Run Monitors","description":"Run all monitors for the domain.\n\nThis triggers the monitor research task for each monitor row,\nwhich will investigate how AI models perceive the company\nagainst its competitors on each monitoring criterion.","operationId":"run_monitors_gtm_internal_workflows__workflow_id__run_monitors_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/run-monitors/reset":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Reset Run Monitors","description":"Reset the run_monitors step so it can be re-run.\n\nThis is useful if a monitor run failed or hung.","operationId":"reset_run_monitors_gtm_internal_workflows__workflow_id__run_monitors_reset_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/monitor-results":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Monitor Results","description":"Get aggregated monitor results including scores and insights.\n\nReturns data from ResearchRun and MonitorMetacognitiveResult tables\nfor all monitors associated with the workflow's domain.","operationId":"get_monitor_results_gtm_internal_workflows__workflow_id__monitor_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorResultsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/workflows/{workflow_id}/generate-email":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Generate Email","description":"Generate an email summarizing monitor and brand goal results.\n\nUses AI to compose an email based on the monitor data\nand a customizable prompt template.","operationId":"generate_email_gtm_internal_workflows__workflow_id__generate_email_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/competitor-finder/find":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Find Competitors","description":"Find competitors for a given company using AI with web search.","operationId":"find_competitors_gtm_internal_competitor_finder_find_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorFinderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/jobs/{job_id}/progress":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Job Progress","description":"Get job progress for GTM internal jobs (no domain scoping).","operationId":"get_job_progress_gtm_internal_jobs__job_id__progress_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobProgressOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/prompts/{prompt_name}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Prompt","description":"Get a prompt by name. Returns default if no custom prompt exists.","operationId":"get_prompt_gtm_internal_prompts__prompt_name__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"prompt_name","in":"path","required":true,"schema":{"type":"string","title":"Prompt Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Prompt","description":"Update a prompt. Requires confirm=true to save.","operationId":"update_prompt_gtm_internal_prompts__prompt_name__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"prompt_name","in":"path","required":true,"schema":{"type":"string","title":"Prompt Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/gtm-os/agent-prompts":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Agent Prompts","description":"The signal agent's general prompt and every signal type's addendum.","operationId":"list_agent_prompts_gtm_internal_gtm_os_agent_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPromptsOut"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/gtm-os/agent-prompts/{key}":{"put":{"tags":["gtm-internal","gtm-internal"],"summary":"Save Agent Prompt","description":"Save the general prompt or one type's addendum. Blank or the default text reverts to the default.","operationId":"save_agent_prompt_gtm_internal_gtm_os_agent_prompts__key__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveAgentPromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Accounts","description":"List all accounts with search, sort, and pagination.","operationId":"list_accounts_gtm_internal_accounts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Page Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__AccountListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Account","description":"Get account details by organization ID.","operationId":"get_account_gtm_internal_accounts__org_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__AccountDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Delete Account","description":"Delete an account (organization) and all associated data.","operationId":"delete_account_gtm_internal_accounts__org_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/account-status":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Account Status","description":"Account Status board — one row per `account` SPINE row under a required\nlifecycle lens (default \"book\": the working CRM book, i.e. everything minus\nthe prospect scouting tier). `owner` scopes the tier: a handle → that CEM's\nbook (exact, case-insensitive), `owner=\"none\"` → unowned accounts (the\npick-me-up view), unset → everyone. Enriched with the JTBD goal, lifecycle\nfields, and a Work-track progress %% derived live from system state. Spine\nguardrail: the scan is always status-scoped (indexed) and hard-capped at\n_ACCOUNT_STATUS_ROW_CAP rows — the lens tiers are small today (≤~150), so\nrows are built then sorted/paged in memory, which keeps the derived\nprogress %% sortable.","operationId":"list_account_status_gtm_internal_account_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"book","title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"}},{"name":"intro_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro Source"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"last_touch","title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Dir"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/account-status/{account_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Account Status Detail","description":"Side-panel detail for one Account Status row: the account's JTBD goal(s),\nactive strategic priorities (each with its tasks nested), and any standalone\ntasks — the structured projection that replaces Notion's free-form body.\nPoint-lookup by the spine id (children are account-anchored since WO-8, so\nthis works for unmaterialized org-less/domain-less accounts too).","operationId":"get_account_status_detail_gtm_internal_account_status__account_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Patch Account Status","description":"Edit the editable board fields on one account row. Funnels through the\ncanonical spine writer (`upsert_account_sync` — the SAME underlayer as the\nMCP `upsert_account`), so field allowlist/validation semantics are\nidentical across surfaces, and audit-logs the change with before/after\nsnapshots (the MCP convention). Returns the refreshed row so the FE swaps\nit in place.","operationId":"patch_account_status_gtm_internal_account_status__account_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/account-status/{account_id}/goals/{goal_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Patch Account Status Goal","description":"Edit a goal (the JTBD) from the board drawer — the SAME grammar as the\nMCP `update_goal` (shared `backend/crm/goal_patch.py`). Account-scoped so a\nstale drawer can never edit another account's goal.","operationId":"patch_account_status_goal_gtm_internal_account_status__account_id__goals__goal_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusGoalPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusGoal"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/candidate-status":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Candidate Status","description":"Candidate Status board — one row per recruiting candidate under a\npipeline lens (default \"active\": open stages + not-yet-triaged). Optional\nexact ``stage`` filter (validated against CANDIDATE_STAGES — a typo'd\nfilter errors, never silently narrows the board) and ``q`` substring match\nover name/company/role/email (the MCP list_candidates' search fields).\nRows are built then sorted/paged in memory under the same cap discipline\nas the account board — the tier is tens of rows today.","operationId":"list_candidate_status_gtm_internal_candidate_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"lens","in":"query","required":false,"schema":{"type":"string","default":"active","title":"Lens"}},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"last_touch","title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Dir"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateStatusListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/candidate-status/{candidate_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Candidate Status Detail","description":"Side-panel detail for one candidate row: the full row, the JSONB long\ntail (strengths etc.), and the hiring investigation's report artifacts\n(titles, not just counts) — the content the Notion mirror's blank page\nnever had.","operationId":"get_candidate_status_detail_gtm_internal_candidate_status__candidate_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","title":"Candidate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateStatusDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Patch Candidate Status","description":"Edit the editable board fields on one candidate row. Same validation\nsemantics as the MCP ``upsert_candidate`` (stage against the shared\nCANDIDATE_STAGES vocabulary; blank strings clear), and the same audit\ncontract — every write lands a ``candidate.update`` row with before/after\nsnapshots, the change trail that stands in for ATS-style stage history.\nReturns the refreshed row so the FE swaps it in place.","operationId":"patch_candidate_status_gtm_internal_candidate_status__candidate_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","title":"Candidate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateStatusPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateStatusRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Domain","description":"Update domain description or settings.","operationId":"update_domain_gtm_internal_accounts__org_id__domains__domain_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__UpdateDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDomainSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/personas":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Account Domain Personas","description":"List saved personas for a GTM account domain.","operationId":"list_account_domain_personas_gtm_internal_accounts__org_id__domains__domain_id__personas_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccountPersonaSummary"},"title":"Response List Account Domain Personas Gtm Internal Accounts  Org Id  Domains  Domain Id  Personas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/personas/{persona_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Account Domain Persona","description":"Update a persona's name, description, or scenarios.","operationId":"update_account_domain_persona_gtm_internal_accounts__org_id__domains__domain_id__personas__persona_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePersonaRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPersonaSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Delete Account Domain Persona","description":"Delete a persona.","operationId":"delete_account_domain_persona_gtm_internal_accounts__org_id__domains__domain_id__personas__persona_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/overview/analyze":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Trigger Domain Overview Analysis","description":"Queue a fresh conversation corpus for a domain from the GTM account\ndetail page — the standing-analysis recipe (corpus only; the persona\nanalysis report stages were removed 2026-10). Corpus-bound tracked-metric\ncells sample this corpus.","operationId":"trigger_domain_overview_analysis_gtm_internal_accounts__org_id__domains__domain_id__overview_analyze_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDomainOverviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/knowledge-document/compile":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Gtm Compile Knowledge Document","description":"Compile (or recompile) the domain's Knowledge Document, as a PROPOSAL.\n\nThe internal-dashboard counterpart of the customer-facing\n``POST /agent-desk/knowledge/recompile`` (routes/agent_desk.py) — same lane,\nsame worker, same guarantees: synchronous \"anything to compile?\" check, one\nin-flight compile per domain via ``autopilot.claim_compile`` (a second press\ngets a 409 with the start time), and the result lands as a PROPOSED version\nin the desk's review flow. Nothing activates itself.","operationId":"gtm_compile_knowledge_document_gtm_internal_accounts__org_id__domains__domain_id__knowledge_document_compile_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompileKnowledgeDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/feature-flags":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Domain Feature Flags","description":"Get effective feature flags for a domain.","operationId":"get_domain_feature_flags_gtm_internal_accounts__org_id__domains__domain_id__feature_flags_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFlagOut"},"title":"Response Get Domain Feature Flags Gtm Internal Accounts  Org Id  Domains  Domain Id  Feature Flags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Domain Feature Flags","description":"Upsert domain-specific feature flags.","operationId":"update_domain_feature_flags_gtm_internal_accounts__org_id__domains__domain_id__feature_flags_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeatureFlagsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFlagOut"},"title":"Response Update Domain Feature Flags Gtm Internal Accounts  Org Id  Domains  Domain Id  Feature Flags Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/monitoring":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Monitoring Config","description":"Get products and competitors for a domain.","operationId":"get_monitoring_config_gtm_internal_accounts__org_id__domains__domain_id__monitoring_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__MonitoringConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/products":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Product","description":"Add a new product to a domain.","operationId":"create_product_gtm_internal_accounts__org_id__domains__domain_id__products_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__CreateProductRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/products/{product_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Product","description":"Update a product.","operationId":"update_product_gtm_internal_accounts__org_id__domains__domain_id__products__product_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__UpdateProductRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Delete Product","description":"Delete a product.","operationId":"delete_product_gtm_internal_accounts__org_id__domains__domain_id__products__product_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/competitors":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Competitor","description":"Add a new competitor to a domain.","operationId":"create_competitor_gtm_internal_accounts__org_id__domains__domain_id__competitors_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompetitorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__CompetitorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/competitors/{competitor_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Competitor","description":"Update a competitor.","operationId":"update_competitor_gtm_internal_accounts__org_id__domains__domain_id__competitors__competitor_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__UpdateCompetitorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__CompetitorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Delete Competitor","description":"Delete a competitor and all its products.","operationId":"delete_competitor_gtm_internal_accounts__org_id__domains__domain_id__competitors__competitor_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/competitors/{competitor_id}/products":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Competitor Product","description":"Add a product to a competitor.","operationId":"create_competitor_product_gtm_internal_accounts__org_id__domains__domain_id__competitors__competitor_id__products_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompetitorProductRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/competitors/{competitor_id}/products/{product_id}":{"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Delete Competitor Product","description":"Delete a competitor's product.","operationId":"delete_competitor_product_gtm_internal_accounts__org_id__domains__domain_id__competitors__competitor_id__products__product_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/monitors":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Monitors","description":"List all monitors for a domain.","operationId":"list_monitors_gtm_internal_accounts__org_id__domains__domain_id__monitors_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Monitor","description":"Create a new monitor.","operationId":"create_monitor_gtm_internal_accounts__org_id__domains__domain_id__monitors_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMonitorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__MonitorRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/monitors/{monitor_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Monitor","description":"Update a monitor's competitive set.","operationId":"update_monitor_gtm_internal_accounts__org_id__domains__domain_id__monitors__monitor_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMonitorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__MonitorRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Delete Monitor","description":"Delete a monitor.","operationId":"delete_monitor_gtm_internal_accounts__org_id__domains__domain_id__monitors__monitor_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/monitors/{monitor_id}/run":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Run Monitor","description":"Run analysis for a specific monitor.","operationId":"run_monitor_gtm_internal_accounts__org_id__domains__domain_id__monitors__monitor_id__run_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/monitor-results":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Account Monitor Results","description":"Get aggregated monitor results including scores and insights for an account's domain.","operationId":"get_account_monitor_results_gtm_internal_accounts__org_id__domains__domain_id__monitor_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorResultsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/monitoring/onboard":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Run Monitoring Onboard","description":"Re-run monitoring onboarding (repopulate products/competitors).","operationId":"run_monitoring_onboard_gtm_internal_accounts__org_id__domains__domain_id__monitoring_onboard_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/goals":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Brand Goals","description":"List canonical goals for a domain with their latest evaluation status.","operationId":"list_brand_goals_gtm_internal_accounts__org_id__domains__domain_id__goals_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Brand Goal","description":"Create a canonical goal and start evaluation if overview data exists.","operationId":"create_brand_goal_gtm_internal_accounts__org_id__domains__domain_id__goals_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGoalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/goals/{goal_id}/evaluate":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Run Brand Goal","description":"Run evaluation for a specific canonical goal.","operationId":"run_brand_goal_gtm_internal_accounts__org_id__domains__domain_id__goals__goal_id__evaluate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/users":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Add User","description":"Add a new user to an organization.","operationId":"add_user_gtm_internal_accounts__org_id__users_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/recent-sessions":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Recent Sessions","description":"Fetch recent PostHog session recordings, excluding @unusual.ai users.\n\nSupports pagination via offset. The response includes ``next_offset``\nand ``has_next`` so the frontend can page forward/backward.","operationId":"recent_sessions_gtm_internal_recent_sessions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"focus","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Focus"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecentSessionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/active-accounts":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Active Accounts","description":"Aggregate PostHog sessions by organization for the last N days.","operationId":"active_accounts_gtm_internal_active_accounts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":3,"title":"Days"}},{"name":"focus","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Focus"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveAccountsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/sessions":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Account Sessions","description":"Fetch PostHog session recordings for a specific organization.\n\nMatches recordings by email (from PostHog person properties) OR\nby org_id (from PostHog person properties) to handle cases where\none or the other isn't set.","operationId":"account_sessions_gtm_internal_accounts__org_id__sessions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":15,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"focus","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Focus"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecentSessionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/costs/summary":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Cost Summary","description":"Aggregated cost data with filters for the cost dashboard.\n\nQuery params:\n    date_from: ISO date string (YYYY-MM-DD). Defaults to 30 days ago.\n    date_to: ISO date string (YYYY-MM-DD). Defaults to today.\n    domain_id: Filter by specific domain.\n    task_type: Filter by task type (overview, monitor_probe, monitor_research, etc.)\n    provider: Filter by provider (openai, gemini, perplexity)\n    group_by: Time series granularity: day | week | month","operationId":"get_cost_summary_gtm_internal_costs_summary_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"domain_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"}},{"name":"task_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","default":"day","title":"Group By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/devops/staging-refresh":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Launch Staging Refresh","operationId":"launch_staging_refresh_gtm_internal_devops_staging_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchStagingRefreshRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchStagingRefreshResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/devops/staging-refresh/runs/{run_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Staging Refresh Run","operationId":"get_staging_refresh_run_gtm_internal_devops_staging_refresh_runs__run_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitHubWorkflowRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/tasks":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Tasks","description":"List tasks across ALL accounts (and the account-less eng/ops/personal\ntasks). Staff-only global view — every internal user sees every task (no\nown-only restriction; the policy call for this surface). Soft-deleted\n(killed) tasks are excluded. Filters compose; `domain_id=\"none\"` returns\nonly unaffiliated tasks; `disposition` defaults to the customer-endorsed\nworking set (\"active\") — pass \"all\" for everything. `q` matches title/detail.","operationId":"list_tasks_gtm_internal_tasks_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"assignee","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"}},{"name":"created_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"domain_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},{"name":"disposition","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"active","title":"Disposition"}},{"name":"audience","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"position","title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Dir"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Page Size"}}],"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"}}}}}},"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Task","description":"Create a task. `domain_id` is optional — omit for engineering/personal/\nops tasks (set `category`). When a domain is given, `org_id` is denormalized\nfrom it. `account_id` addresses the CRM spine row directly instead (one or\nthe other, not both) — the task inherits the account's domain/org\ndown-pointers, which is how a task lands on an unmaterialized prospect.\n`created_by` is the internal user (the assigner). Mirrors the MCP\n`create_task`; `source`/`disposition` take the model defaults (human/active).","operationId":"create_task_gtm_internal_tasks_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__TaskOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/tasks/{task_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Task","description":"Patch a task by id. Only fields present in the body are applied (an\nexplicit null clears). `status`/`disposition` are dual-written via\n`apply_task_disposition` (work-layer expand/contract), so a sweep survives\nthe status backfill. Soft-delete = set `killed_at` (or `disposition`\n=\"archived\"); restore = `killed_at: null`. Mirrors the MCP `update_task` —\nany internal user may edit any task (staff ops table). A changed content\nfield adopts a live suggestion unless the patch explicitly sets its\nstatus, disposition, or killed_at. Authentication is internal JWT only;\nMCP API-key/OAuth edits do not count as human acceptance.","operationId":"update_task_gtm_internal_tasks__task_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__TaskOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/tasks/bulk-disposition":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Bulk Set Task Disposition","description":"Bulk curation sweep — the Adopt / Reject / Archive / Restore pathway for\ntriaging proposed tasks (e.g. a batch of post-call generated suggestions).\n\n`disposition=\"active\"` adopts (lifts each task into the working set),\n`\"archived\"` rejects/archives, `\"proposed\"` re-files. Each task gets the same\n`status`<->`disposition` dual-write as the single PATCH\n(`apply_task_disposition`), applied in ONE transaction. Soft-deleted (killed)\ntasks are skipped. Returns how many of the requested ids were updated.","operationId":"bulk_set_task_disposition_gtm_internal_tasks_bulk_disposition_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDispositionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDispositionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/runs":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Runs","description":"List NEW-pathway runs across ALL accounts — the ``analysis_run`` registry\nand the ``routine_run`` engine, UNIONED into one stream (run-type filter, not\ntabs). Staff-only global view; the legacy Temporal fleet is NOT surfaced.\n\nThe page is a CHRONICLE of executions (research-run model): top-level rows\nare firings, bundled steps nest under them (routine executions own steps\nvia ``routine_run_id``; a simulation batch owns its members via the\nmember-side ``batch_run_ref`` stamp), the investigation is a LABEL on\neach row — never a grouping level. ``work=research`` is that chronicle\nnarrowed to research firings, with unbundled legacy ``analysis_run`` rows\ninterleaved (analysis work IS research; operational routines write no\nanalysis rows). ``work=operational`` is the ops activity stream (routine\nfirings only). ``investigation_id`` filters to one question's WORK — its\nexecutions (steps nested) plus unbundled ad-hoc runs stamped at launch.\n\nFilters compose: ``run_type`` (an analysis type key, an ACTIVITY key —\nthe human-oriented grouping in ``_ACTIVITY_RUN_TYPES``, spanning both\ntables — or a routine slug), ``status``, ``source`` (which table),\n``domain_id`` / ``org_id`` /\n``scope=\"global\"`` (the subject), ``since`` / ``until`` (created_at range).\nNewest first; ``page`` / ``page_size`` like the Tasks list.","operationId":"list_runs_gtm_internal_runs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"domain_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"work","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work"}},{"name":"investigation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investigation Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/runs/{source}/{run_ref}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Run","description":"Drill into one run by ``{source}/{run_ref}`` — params, a coarse stage\nlist, outputs, the backing-row glance, and the lineage pointer (analysis\nruns). ``source`` ∈ {analysis_run, routine_run}; ``run_ref`` resolves like\nthe registry (registry id | backing id | external ref) for analysis runs,\nor the ``routine_run`` id for routine runs.","operationId":"get_run_gtm_internal_runs__source___run_ref__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"run_ref","in":"path","required":true,"schema":{"type":"string","title":"Run Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/runs/{source}/{run_ref}/cancel":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Cancel Run Route","description":"Request cancellation of an in-flight run — REUSES the #285 cancel surface\n(``analysis_runs.cancellation.cancel_run``): records cancel-intent on the run\nand dispatches to the substrate's stop adapter (corpus runs stop\ncooperatively; other kinds record intent, no live-stop adapter yet).\n\nMVP cancels ``analysis_run`` only (Decision 2): routine runs are fast\norchestration — the spend is in the analysis_run stages #285 already covers,\nso routine-level cancel is a later follow-up and is rejected here.","operationId":"cancel_run_route_gtm_internal_runs__source___run_ref__cancel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"run_ref","in":"path","required":true,"schema":{"type":"string","title":"Run Ref"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelRunRequest"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Run Route Gtm Internal Runs  Source   Run Ref  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/runs/{source}/{run_ref}/rerun":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Rerun Run Route","description":"Re-run a FAILED run — type-keyed dispatch (mirrors #285's adapter\nregistry). Overview→corpus regen (force), block report→report blocks,\nroutine→re-fire on the worker. Other kinds report ``no_adapter`` (422).\nScoped to ``status=\"failed\"`` (409 otherwise).","operationId":"rerun_run_route_gtm_internal_runs__source___run_ref__rerun_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"run_ref","in":"path","required":true,"schema":{"type":"string","title":"Run Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rerun Run Route Gtm Internal Runs  Source   Run Ref  Rerun Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/tasks/assigners":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Task Assigners","description":"Distinct task creators (assigners) — the option source for the page's\nselectable \"Assigner\" filter. In prod this is a small, meaningful set (the\nGTM people by email + the named automation routines like `analysis`,\n`post-call-routine`, `email-capture-routine`). Excludes soft-deleted tasks.","operationId":"list_task_assigners_gtm_internal_tasks_assigners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskAssignersResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/tasks/assignees":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Task Assignees","description":"Distinct task assignees — the option source for the page's selectable\n\"Assignee\" filter (mirrors /tasks/assigners on the assignee column). The set\nis GTM people by email plus any non-email handles; the frontend groups them\n(internal / external / bots). Excludes soft-deleted and unassigned tasks.","operationId":"list_task_assignees_gtm_internal_tasks_assignees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskAssigneesResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/post-call-packages":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Post Call Packages","description":"Post-call docs that HAVE a generated `package` (JSONB key-presence\nfilter — dark-lane docs without one never appear), newest first, with the\naccount label/owner and the compact per-stage valid/invalid summary.\n`account_id` (spine id) optionally narrows to one account — matching the\ndoc's spine anchor, or its domain for pre-dual-write docs.","operationId":"list_post_call_packages_gtm_internal_post_call_packages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Post Call Package Detail","description":"One package, in full: the doc's `package` JSONB verbatim plus the\ndisplay context the page needs — the account row summary, the call's\nmeeting title, every stage-referenced task/contact id resolved to its\nCURRENT row, the LIVE task book (`open_tasks`, with priority anchors and\nthe blocked signal), the account's `priorities` (the tasks-gate grouping\nsections), the current account record (`account_state`), and the\nserver-derived `bulk_approvable` refs. 404 for unknown docs AND for\npost-call docs with no generated package (the list never shows those).","operationId":"get_post_call_package_detail_gtm_internal_post_call_packages__doc_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}/apply":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Apply Post Call Package","description":"Approve — the ONE boundary that can cross into the account book.\nAssembles the exact operations the selection implies and applies them per\nthe package's apply_mode: sandbox records them (`executed: false`) and\nthe book is untouched; live executes them through the internal app's own\nwrite paths with provenance. Already-approved events are idempotent\nno-ops (noted in `apply_result.skipped`); invalid/killed events reject\nwith a 400 naming the event.","operationId":"apply_post_call_package_gtm_internal_post_call_packages__doc_id__apply_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageApplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}/kill":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Kill Post Call Package Events","description":"Package-local kill markers (both modes — a kill never touches the\nbook). Approved events cannot be killed; `undo: true` clears markers.","operationId":"kill_post_call_package_events_gtm_internal_post_call_packages__doc_id__kill_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageKillRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}/instruct":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Instruct Post Call Package Stage","description":"The free-text instruction box (constraint 4): ONE structured LLM call\nrevises the stage per the OPERATOR's directive (trusted — unlike the\ntranscript), the result passes back through the SAME stage validator\n(quote gates, book whitelists, recipient whitelist), and downstream\nstages are marked stale. Package-local in both modes.\n\nSLOW: the LLM turn runs 30-120s — the handler is async and holds no DB\nsession across it (package_apply's load → close → LLM → fresh-session\npersist); callers should use a generous client timeout.","operationId":"instruct_post_call_package_stage_gtm_internal_post_call_packages__doc_id__instruct_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageInstructRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}/regenerate":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Regenerate Post Call Package Stage","description":"Re-run one stage's generation with CURRENT upstream state (approved/\nedited events; killed excluded) — clears the stage's stale flag, marks\ndownstream stale (stage A regenerate stales both). Approved/killed\nmarkers on the regenerated stage reset; the apply_log is untouched.\n\nSLOW: one full generation stage (30-120s) — async handler, no DB session\nheld across the LLM await; use a generous client timeout.","operationId":"regenerate_post_call_package_stage_gtm_internal_post_call_packages__doc_id__regenerate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageRegenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}/message":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Patch Post Call Package Message","description":"Operator edits to the staged §C message — the TRUSTED lane: the Stage C\nvalidator re-runs as FLAGS, never strips (an operator-added recipient\nfailing the whitelist is KEPT and listed in `operator_added_recipients`;\nunknown URLs are kept and listed; a channel toggle is honored). Only\nfields present in the body are applied.","operationId":"patch_post_call_package_message_gtm_internal_post_call_packages__doc_id__message_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageMessagePatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}/mark-sent":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Mark Post Call Package Sent","description":"Manual v1 send confirmation: stamps `sent_at`/`sent_marked_by` on\nstage C (the capture loop auto-detects real sends later — constraint 7).","operationId":"mark_post_call_package_sent_gtm_internal_post_call_packages__doc_id__mark_sent_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}/apply-mode":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Set Post Call Package Apply Mode","description":"Flip the package between sandbox and live — internal-ADMIN-gated (the\nsuperuser flip; everything else on this surface is any-internal-user).\nThe flip is logged into the apply_log as a mode-change entry.","operationId":"set_post_call_package_apply_mode_gtm_internal_post_call_packages__doc_id__apply_mode_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageApplyModeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/post-call-packages/{doc_id}/kickoff":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Kickoff Post Call Package Task","description":"Kickoff (analysis | report | investigation) on an APPROVED task.add —\nconstraint 8's D3-by-command. v1 records the intent on the apply_log in\nBOTH modes (live entries are additionally `kickoff_pending`); the actual\nenqueue through the existing run adapters is a documented follow-up.","operationId":"kickoff_post_call_package_task_gtm_internal_post_call_packages__doc_id__kickoff_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageKickoffRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCallPackageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/agent-desk/review-domains":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Desk Review Domains","description":"Domains that have an Agent Desk, with their review counts.\n\nThe picker for the reviews page: one round trip instead of walking the\naccount tree. Counts come from a grouped aggregate over\nix_answer_review_domain_status, so this stays cheap as the table grows.","operationId":"list_desk_review_domains_gtm_internal_agent_desk_review_domains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DeskReviewDomainOut"},"type":"array","title":"Response List Desk Review Domains Gtm Internal Agent Desk Review Domains Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/agent-desk/reviews":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Desk Reviews","description":"One domain's answer reviews (newest first) plus the per-status counts.\n\nCounts are always the domain's totals, not the filtered slice — the status\ntabs need to show what's behind each of them.","operationId":"list_desk_reviews_gtm_internal_agent_desk_reviews_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","incorporated","dismissed"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskReviewListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/agent-desk/answer-pages":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Desk Answer Pages","description":"A domain's answer pages, most-fetched first — the reviewable surface on\nthe GTM side (staff have no desk conversation view here). Excerpts are\ntrimmed server-side; the full answer lives on the hub.","operationId":"list_desk_answer_pages_gtm_internal_agent_desk_answer_pages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeskAnswerPageOut"},"title":"Response List Desk Answer Pages Gtm Internal Agent Desk Answer Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/agent-desk/corrections":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Desk Correction","description":"Correct one desk answer, as staff — THE SAME LOOP as the owner's button.\n\nCalls the owner door's implementation directly (one implementation is the\nenforcement of \"no logical difference\" — Will, 2026-08-10): the correction\nis recorded, classified, drafted, and APPLIES ITSELF to whichever documents\nit changes, with the same memory row, the same Undo, and the same guards\n(kill switch, compile-claim serialization). ``source=\"gtm\"``\nis stamped as provenance only.\n\nPoll ``GET /agent-desk/corrections/{review_id}`` for the outcome, exactly as\nthe owner surface does.","operationId":"create_desk_correction_gtm_internal_agent_desk_corrections_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskCorrectionCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/agent-desk/corrections/{review_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Desk Correction","description":"One correction's state machine, staff-side — the owner poll, verbatim.","operationId":"get_desk_correction_gtm_internal_agent_desk_corrections__review_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}},{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionStateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/agent-desk/learnings/{version_id}/approve":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Approve Desk Learning","description":"Apply a HELD learning, staff-side — the owner's \"Apply it\", verbatim.\n\nHeld is the degraded outcome (classifier fallback, dial off, document\nmoved), not a lane: on staff-curated desks it is staff who clear\nthe residue, with the same tap the owner has.","operationId":"approve_desk_learning_gtm_internal_agent_desk_learnings__version_id__approve_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskLearningActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningApproveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/agent-desk/learnings/{version_id}/undo":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Undo Desk Learning","description":"Take an applied learning back, staff-side — the owner's Undo, verbatim.","operationId":"undo_desk_learning_gtm_internal_agent_desk_learnings__version_id__undo_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskLearningActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningUndoOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/agent-desk/learnings/{version_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Edit Desk Learning Statement","description":"Reword a memory, staff-side — the owner's Edit, verbatim.\n\nWill, 2026-08-10: staff review and owner review are the same act with the same\ncontrols, so the ledger's new controls arrive on both doors together. It rewrites\nthe SENTENCE only; nothing about what the desk answers moves.","operationId":"edit_desk_learning_statement_gtm_internal_agent_desk_learnings__version_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskLearningStatementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningStatementOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal"],"summary":"Remove Desk Learning From Ledger","description":"Take a memory off the list, staff-side — the owner's Remove, verbatim.\n\n``domain_id`` is a QUERY parameter rather than a body field: the other staff\nmirrors here take a body because they are POSTs that already carry one, and a DELETE\nwith a request body is the shape half the HTTP stack drops on the floor.","operationId":"remove_desk_learning_from_ledger_gtm_internal_agent_desk_learnings__version_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningRemovedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/agent-desk/reviews/{review_id}":{"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Desk Review","description":"Dismiss an open correction that will not be applied (residue triage).\nNothing here applies anything to any document.","operationId":"update_desk_review_gtm_internal_agent_desk_reviews__review_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskReviewUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskReviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/agent-desk":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Gtm Agent Desk","description":"One domain's desk: config, crawl ledger, last crawl stats, importance-tier\ndistribution, and the active Knowledge Document.\n\nAlways 200s for a real domain in this org — \"this domain has no desk\" is data\n(`exists: false`), not an error. Most domains have no desk row, and the panel\nhas to render that state with the toggles inert rather than show an error\npage for the normal case.","operationId":"get_gtm_agent_desk_gtm_internal_accounts__org_id__domains__domain_id__agent_desk_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskConfigOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Gtm Agent Desk","description":"Flip desk switches for one domain, and return the whole recomputed panel.\n\nReturning the panel (not just the changed field) is what lets the UI show the\nSERVER's state rather than the click's intent — these toggles change what a\nlive public desk does, and an optimistic flip that silently failed would\nleave the panel lying about a customer's desk.\n\nRefuses to CREATE a desk (404): a missing desk row means this domain was\nnever provisioned for AgentDesk, and one conjured from a toggle would have no\nslug convention, no offerings and no prompt. Refuses an unknown\n`retrieval_mode` (400): nothing downstream would error on it — `desk_reads_index`\nreads anything unrecognised as \"exa\" — so the desk would keep using Exa while\nthe column and this panel both claimed otherwise.","operationId":"update_gtm_agent_desk_gtm_internal_accounts__org_id__domains__domain_id__agent_desk_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskConfigUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskConfigOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{org_id}/domains/{domain_id}/agent-desk/crawl":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Launch Gtm Agent Desk Crawl","description":"Launch a FULL crawl / backfill for this domain, now.\n\n`full=True`, unlike the nightly tick: this is the button somebody presses\nright after flipping a desk onto the internal lane, and the point is not to\nwait for the cadence to work its way through a cold site. Not rate-limited\n(a staff action behind internal auth is a deliberate act by a named human),\nbut refused for a domain that writes no index rows — the actor would return\n\"skipped\" and the panel would show a crawl that did nothing.","operationId":"launch_gtm_agent_desk_crawl_gtm_internal_accounts__org_id__domains__domain_id__agent_desk_crawl_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskCrawlQueuedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/crawler/summary":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Crawler Summary","description":"Fleet-wide crawler cost and activity over a `?days=` window, plus a daily series.\n\nAlways 200s. An empty window returns a well-formed payload with zeros and\n`window.runs_begin_at` — \"the crawler has no history yet\" is data the page has\nto render honestly, not an error, and it is the expected state on the day this\nships.","operationId":"crawler_summary_gtm_internal_crawler_summary_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlerSummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/crawler/accounts":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Crawler Accounts","description":"Per-domain crawler rollup, most expensive first.\n\nTHE ROW SET is every domain the crawler has touched or is expected to: any\ndomain with run history (ever) UNION any domain whose desk reads/writes the\nindex. The union matters in both directions — a desk flipped onto the internal\nlane but not yet crawled belongs on this page with zeros (it is pending, and\nthat is actionable), and a domain crawled under the pre-warm allowlist while\nstill on \"exa\" belongs on it too (it is costing money). Domains with neither\nare not the crawler's business and would be pages of zeros.\n\nSorted by windowed cost descending, then by run count, then host — so the\ntable opens on whatever is spending the most, and ties don't reorder between\nreloads.\n\nAlways 200s; an empty fleet is a well-formed empty list.","operationId":"crawler_accounts_gtm_internal_crawler_accounts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlerAccountsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/crawler/answer-costs":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Crawler Answer Costs","description":"Per-domain Agent Desk ANSWER token/cost rollup, most expensive first.\n\nAlways 200s. A fleet that has served no measured answers returns a\nwell-formed payload of zeros plus `accounting_begins_at: null` — which is the\nexpected state on the day this ships, and is data the page renders honestly\nrather than an error.","operationId":"crawler_answer_costs_gtm_internal_crawler_answer_costs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerCostsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/crawler/signup-costs":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Crawler Signup Costs","description":"Per-signup model spend for self-serve AgentDesks, most expensive first.\n\nAlways 200s. A fleet with no self-serve signups in the window returns a\nwell-formed payload of zeros — which is the state on the day this ships.","operationId":"crawler_signup_costs_gtm_internal_crawler_signup_costs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupCostsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-ingest/vector":{"post":{"tags":["gtm-ingest"],"summary":"Vector Webhook","operationId":"vector_webhook_gtm_ingest_vector_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Vector Webhook Gtm Ingest Vector Post"}}}}}}},"/gtm-ingest/calcom":{"post":{"tags":["gtm-ingest"],"summary":"Calcom Webhook","operationId":"calcom_webhook_gtm_ingest_calcom_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Calcom Webhook Gtm Ingest Calcom Post"}}}}}}},"/gtm-ingest/instantly":{"post":{"tags":["gtm-ingest"],"summary":"Instantly Webhook","description":"Instantly webhook, subscribed to all events. ``reply_received`` → an\n``outbound.reply`` signal; any other event → a line on the contact's timeline\n(an unsubscribe also marks them do_not_contact). Instantly does not\nsign webhooks; the webhook is created with a custom ``Authorization: Bearer\n<INSTANTLY_WEBHOOK_SECRET>`` header, checked here in constant time.","operationId":"instantly_webhook_gtm_ingest_instantly_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Instantly Webhook Gtm Ingest Instantly Post"}}}}}}},"/gtm-ingest/heyreach/{token}":{"post":{"tags":["gtm-ingest"],"summary":"Heyreach Webhook","description":"HeyReach campaign events → lines on the contact's timeline (connect sent or\naccepted, message sent, follow, like, profile view), matched by LinkedIn\nprofile. HeyReach can't sign webhooks, so the URL carries a secret token\n(``HEYREACH_WEBHOOK_SECRET``), checked in constant time. Replies are not taken\nhere: the inbox poll files them and records the reply signal.","operationId":"heyreach_webhook_gtm_ingest_heyreach__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Heyreach Webhook Gtm Ingest Heyreach  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/list/{entity}":{"post":{"tags":["gtm-os","gtm-os"],"summary":"List Entity","operationId":"list_entity_gtm_internal_list__entity__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entity","in":"path","required":true,"schema":{"type":"string","title":"Entity"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Entity Gtm Internal List  Entity  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/entity/{entity}/{entity_id}":{"get":{"tags":["gtm-os","gtm-os"],"summary":"Get Entity","operationId":"get_entity_gtm_internal_entity__entity___entity_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entity","in":"path","required":true,"schema":{"type":"string","title":"Entity"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Entity Gtm Internal Entity  Entity   Entity Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/views/{entity}":{"get":{"tags":["gtm-os","gtm-os"],"summary":"List Views","operationId":"list_views_gtm_internal_views__entity__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entity","in":"path","required":true,"schema":{"type":"string","title":"Entity"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Views Gtm Internal Views  Entity  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/views":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Save View","operationId":"save_view_gtm_internal_views_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveViewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Save View Gtm Internal Views Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/views/{view_id}":{"delete":{"tags":["gtm-os","gtm-os"],"summary":"Delete View","operationId":"delete_view_gtm_internal_views__view_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"view_id","in":"path","required":true,"schema":{"type":"string","title":"View Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete View Gtm Internal Views  View Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/inbox/threads/{thread_id}/class":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Set Inbound Class","description":"Override a conversation's inbound class.","operationId":"set_inbound_class_gtm_internal_inbox_threads__thread_id__class_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Inbound Class Gtm Internal Inbox Threads  Thread Id  Class Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/contacts/{contact_id}/interest":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Set Interest","description":"Override a contact's interest. Recorded as a manual.interest signal (so it has\nhistory and the judge applies it), and set on the contact now. Refused (409)\nwhile the contact is do-not-contact: that takes Lift do-not-contact.","operationId":"set_interest_gtm_internal_contacts__contact_id__interest_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Interest Gtm Internal Contacts  Contact Id  Interest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/contacts/{contact_id}/lift-do-not-contact":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Lift Do Not Contact","description":"The one way out of do-not-contact, for a true accident: a reason is required.\nThe suppression rows are marked lifted (never deleted), the contact goes to\nneutral, and the email comes off Instantly's blocklist (retried by the upkeep\npass if Instantly fails now).","operationId":"lift_do_not_contact_gtm_internal_contacts__contact_id__lift_do_not_contact_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Lift Do Not Contact Gtm Internal Contacts  Contact Id  Lift Do Not Contact Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/system":{"get":{"tags":["gtm-os","gtm-os"],"summary":"System Overview","description":"Per source signals, relevance, funnel; provider calls and cost; routine health.","operationId":"system_overview_gtm_internal_system_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response System Overview Gtm Internal System Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/exports/linkedin-ads/summary":{"get":{"tags":["gtm-os","gtm-os"],"summary":"Linkedin Ads Summary","operationId":"linkedin_ads_summary_gtm_internal_exports_linkedin_ads_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Linkedin Ads Summary Gtm Internal Exports Linkedin Ads Summary Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/exports/linkedin-ads.csv":{"get":{"tags":["gtm-os","gtm-os"],"summary":"Linkedin Ads Csv","description":"Warm contacts with an email, as LinkedIn's contact-list CSV. ``scope`` new (since\nthe last export) | all. The download is recorded.","operationId":"linkedin_ads_csv_gtm_internal_exports_linkedin_ads_csv_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"new","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/contacts/{contact_id}":{"patch":{"tags":["gtm-os","gtm-os"],"summary":"Patch Contact","description":"Set a contact's owner (or clear it) and/or stances (merged per topic).","operationId":"patch_contact_gtm_internal_contacts__contact_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Contact Gtm Internal Contacts  Contact Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/contacts/{contact_id}/stop":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Stop Contact","description":"Stop this person's sequences (gtm-sequences stops them at HeyReach/Instantly next pass).","operationId":"stop_contact_gtm_internal_contacts__contact_id__stop_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stop Contact Gtm Internal Contacts  Contact Id  Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{account_id}/pause":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Pause Account","description":"Pause connects at a company (everyone in a sequence there is stopped next pass).","operationId":"pause_account_gtm_internal_accounts__account_id__pause_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pause Account Gtm Internal Accounts  Account Id  Pause Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/accounts/{account_id}/resume":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Resume Account","description":"Lift a company's pause. People who responded stay stopped.","operationId":"resume_account_gtm_internal_accounts__account_id__resume_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume Account Gtm Internal Accounts  Account Id  Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/inbox/threads/{thread_id}/make-contact":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Make Contact","description":"A person's call that an inbound conversation is a potential buyer: the class is\nset, and (as the classifier does) the contact is created and owned by the seat\nwhen they wrote from a work email, with an inbound.message signal either way.","operationId":"make_contact_gtm_internal_inbox_threads__thread_id__make_contact_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Make Contact Gtm Internal Inbox Threads  Thread Id  Make Contact Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/meetings":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Mark Meeting","description":"A meeting booked by hand (outside Cal.com and the staff calendars): a\ncalendar.booking signal on the contact or the thread's person. The judge does\nthe rest; the person's threads are set to call booked now.","operationId":"mark_meeting_gtm_internal_meetings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mark Meeting Gtm Internal Meetings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/inbox/threads/{thread_id}/dismiss-follow-up":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Dismiss Follow Up","description":"\"No follow-up needed\": the thread leaves the Follow up tab until something new happens.","operationId":"dismiss_follow_up_gtm_internal_inbox_threads__thread_id__dismiss_follow_up_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dismiss Follow Up Gtm Internal Inbox Threads  Thread Id  Dismiss Follow Up Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/inbox/threads/{thread_id}/interest":{"post":{"tags":["gtm-os","gtm-os"],"summary":"Set Thread Interest","description":"Interest for a person who isn't a contact: the thread's operator tag (the reply\nengine keeps it). A contact's interest is set on the contact instead.","operationId":"set_thread_interest_gtm_internal_inbox_threads__thread_id__interest_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Thread Interest Gtm Internal Inbox Threads  Thread Id  Interest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/account-intelligence":{"get":{"tags":["gtm-workspace"],"summary":"Accounts","operationId":"accounts_gtm_internal_account_intelligence_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"fit","in":"query","required":false,"schema":{"type":"string","default":"","title":"Fit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/account-intelligence/{account_id}":{"get":{"tags":["gtm-workspace"],"summary":"Account","operationId":"account_gtm_internal_account_intelligence__account_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/account-intelligence/{account_id}/{section}":{"get":{"tags":["gtm-workspace"],"summary":"Records","operationId":"records_gtm_internal_account_intelligence__account_id___section__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"section","in":"path","required":true,"schema":{"type":"string","title":"Section"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/people-intelligence":{"get":{"tags":["gtm-workspace"],"summary":"Directory","operationId":"directory_gtm_internal_people_intelligence_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Search"}},{"name":"audience","in":"query","required":false,"schema":{"type":"string","default":"","title":"Audience"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/people-intelligence/influencer/{influencer_id}/review":{"post":{"tags":["gtm-workspace"],"summary":"Review Influencer","description":"Human curation of an influencer (accept / pause / relationship). Recorded with who and when.","operationId":"review_influencer_gtm_internal_people_intelligence_influencer__influencer_id__review_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"influencer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Influencer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfluencerReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/people-intelligence/{kind}/{identity_id}/{section}":{"get":{"tags":["gtm-workspace"],"summary":"Detail","operationId":"detail_gtm_internal_people_intelligence__kind___identity_id___section__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity Id"}},{"name":"section","in":"path","required":true,"schema":{"type":"string","title":"Section"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/automations/catalog":{"get":{"tags":["gtm-workspace"],"summary":"Inventory","operationId":"inventory_gtm_internal_automations_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/automations/overview":{"get":{"tags":["gtm-workspace"],"summary":"Overview","operationId":"overview_gtm_internal_automations_overview_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/automations/runs":{"get":{"tags":["gtm-workspace"],"summary":"Runs","operationId":"runs_gtm_internal_automations_runs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"automation_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Automation Key"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"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"}}}}}}},"/gtm-internal/automations/pipeline":{"get":{"tags":["gtm-workspace"],"summary":"Pipeline","operationId":"pipeline_gtm_internal_automations_pipeline_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"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"}}}}}}},"/gtm-internal/guides/tree":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Guides Tree","description":"Every guide, grouped by folder (a folder is a directory). Parent folders\nwith no guides of their own are listed too, so the tree is complete.","operationId":"guides_tree_gtm_internal_guides_tree_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/guides/search":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Guides Search","operationId":"guides_search_gtm_internal_guides_search_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":8,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/guides/me":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Guides Me","operationId":"guides_me_gtm_internal_guides_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"patch":{"tags":["gtm-internal","gtm-internal"],"summary":"Set Github Login","description":"Link an internal user's GitHub login (``internal_user_id``, default the\ncaller). Admins only, the caller's own included: merge rights follow the\nlogin's team membership, so a person typing in a merge-team member's login\nwould otherwise grant themselves merge.","operationId":"set_github_login_gtm_internal_guides_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetGithubLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/guides/changes/{change_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Change","operationId":"get_change_gtm_internal_guides_changes__change_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/guides/{slug}/history":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Guide History","operationId":"guide_history_gtm_internal_guides__slug__history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"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"}}}}}}},"/gtm-internal/guides/{slug}/open-prs":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Guide Open Prs","description":"The \"open PRs change this guide\" banner. Its own request so the guide\ntext never waits on GitHub; any failure is ``unavailable`` (no banner),\nnever an error.","operationId":"guide_open_prs_gtm_internal_guides__slug__open_prs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/guides/{slug}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Guide","operationId":"get_guide_gtm_internal_guides__slug__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"fresh","in":"query","required":false,"schema":{"type":"boolean","description":"Re-check the published manifest first (after a merge goes live)","default":false,"title":"Fresh"},"description":"Re-check the published manifest first (after a merge goes live)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/guides/changes":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Submit Change","description":"Submit a change set. The GitHub work runs on the fast queue; poll\n``GET /guides/changes/{change_id}`` for progress.","operationId":"submit_change_gtm_internal_guides_changes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/chat/domains":{"get":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Search Chat Domains","operationId":"search_chat_domains_gtm_internal_chat_domains_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":"","title":"Query"}},{"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":{"$ref":"#/components/schemas/AdminChatDomainSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/chat/chats":{"get":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"List All Gtm Admin Chats","operationId":"list_all_gtm_admin_chats_gtm_internal_chat_chats_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChatListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/chat/domains/{domain_id}/chats":{"get":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"List Domain Admin Chats","operationId":"list_domain_admin_chats_gtm_internal_chat_domains__domain_id__chats_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChatListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Create Domain Admin Chat","operationId":"create_domain_admin_chat_gtm_internal_chat_domains__domain_id__chats_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateAdminChatRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdminChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/chat/domains/{domain_id}/chats/{chat_id}/messages":{"get":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"List Domain Admin Chat Messages","operationId":"list_domain_admin_chat_messages_gtm_internal_chat_domains__domain_id__chats__chat_id__messages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":500,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChatMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Create Domain Admin Chat Message","operationId":"create_domain_admin_chat_message_gtm_internal_chat_domains__domain_id__chats__chat_id__messages_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdminMessageRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnqueuedAdminMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/chat/domains/{domain_id}/chats/{chat_id}/queries/{query_id}/artifacts/{artifact_id}/download":{"get":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Download Domain Admin Chat Artifact","operationId":"download_domain_admin_chat_artifact_gtm_internal_chat_domains__domain_id__chats__chat_id__queries__query_id__artifacts__artifact_id__download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"redirect","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Redirect"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/chat/domains/{domain_id}/chats/{chat_id}":{"patch":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Rename Domain Admin Chat","operationId":"rename_domain_admin_chat_gtm_internal_chat_domains__domain_id__chats__chat_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdminChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminChatOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Delete Domain Admin Chat","operationId":"delete_domain_admin_chat_gtm_internal_chat_domains__domain_id__chats__chat_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/chat/starter-prompts":{"get":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"List Gtm Admin Chat Starter Prompts","operationId":"list_gtm_admin_chat_starter_prompts_gtm_internal_chat_starter_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StarterPromptListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Create Gtm Admin Chat Starter Prompt","operationId":"create_gtm_admin_chat_starter_prompt_gtm_internal_chat_starter_prompts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStarterPromptRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StarterPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/chat/starter-prompts/{prompt_id}":{"patch":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Update Gtm Admin Chat Starter Prompt","operationId":"update_gtm_admin_chat_starter_prompt_gtm_internal_chat_starter_prompts__prompt_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStarterPromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StarterPromptOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Delete Gtm Admin Chat Starter Prompt","operationId":"delete_gtm_admin_chat_starter_prompt_gtm_internal_chat_starter_prompts__prompt_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"string","title":"Prompt Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/chat/domains/{domain_id}/runs/{run_id}/progress":{"get":{"tags":["gtm-internal","gtm-internal-chat"],"summary":"Poll Domain Admin Chat Run","operationId":"poll_domain_admin_chat_run_gtm_internal_chat_domains__domain_id__runs__run_id__progress_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRunProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/outbound/threads":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Outbound Threads","description":"List outbound threads — EVERY reply is a row (record vs. attention:\nthe lanes are attention routes, not storage routes). Filters compose:\n\n- ``status``: one board-parity status.\n- ``priority_only``: P0 rows (priority flag + reason + Slack-ping ref).\n- ``aging``: >24h since the prospect's last message and the ball is still\n  in our court (new_reply / draft_ready / approved).\n- ``needs_review``: reply required — the prospect spoke last on an open\n  thread (not answered, not no_action / call_booked, not Not Interested).\n- ``follow_up``: we spoke last on an open thread and it's been quiet 3+\n  days (the row's ``follow_up`` says 3d / 7d / 1mo).\n- ``seat`` / ``campaign``: exact match.\n- ``q``: free-text contact search (name / email / company / campaign /\n  profile URL, case-insensitive substring) — composes with the rest;\n  the tab sends it alone to search ALL statuses and lanes.\n- ``lane``: ``gtm`` | ``recruiting`` — the EFFECTIVE lane (stored pin\n  from triage/operator, else the recruiting_campaigns derivation);\n  omitted = both lanes.\n- ``owed``: threads with an OPEN deliverable commitment (\"Waiting on\n  us\", WO-F) — any lifecycle status, most-overdue first.\n\nDefault sort is the needs-review order: newest prospect activity first.\nEach row carries its latest draft, lead context, tag, and slack_ping_ref.","operationId":"list_outbound_threads_gtm_internal_outbound_threads_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"priority_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Priority Only"}},{"name":"aging","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Aging"}},{"name":"needs_review","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Needs Review"}},{"name":"follow_up","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Follow Up"}},{"name":"seat","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seat"}},{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"lane","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},{"name":"owed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Owed"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundThreadListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/outbound/threads/{thread_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Outbound Thread","description":"One thread with its FULL provenance: every draft version (newest first —\nthe proposed → superseded chain with who authored each) and the append-only\nsend log (approver, surface, seat, exact as-sent text, outcome).","operationId":"get_outbound_thread_gtm_internal_outbound_threads__thread_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundThreadDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/outbound/facets":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Outbound Facets","description":"Distinct seats + campaigns (filter option sources, the\n/tasks/assigners precedent) + ``senders``: who an email may be switched\nto send as (every current unusual.ai admin + the campaign operators).","operationId":"outbound_facets_gtm_internal_outbound_facets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Response Outbound Facets Gtm Internal Outbound Facets Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/voice-metrics":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Outbound Voice Metrics","description":"The verbatim-send rate, chain-aware — the reply-voice workstream's\nnorth star (WO-E0; docs/outbound-voice-examples-plan.md § 3). Same\npayload as the MCP ``get_outbound_voice_metrics`` tool (one shared\nimplementation in ``backend/outbound/metrics.py``).","operationId":"outbound_voice_metrics_gtm_internal_outbound_voice_metrics_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Outbound Voice Metrics Gtm Internal Outbound Voice Metrics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/outbound/approve":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Approve Outbound Draft","description":"Approve one draft → the send chokepoint (the ONE door — this route\ncontains no send logic). Returns the chokepoint's structured result\nverbatim: ``{\"sent\": true, \"result\": \"queued\", \"as_sent_text\": …}`` or a\nrefusal (already_sent / superseded_by_newer_prospect_message /\nalready_answered / send_failed / retry_too_soon / outcome_unknown_hold /\n…) for the tab to render inline.\n\n``operator_retry=true`` is the explicit human retry for send_failed /\noutcome-unknown drafts; the chokepoint enforces the in-flight guard.","operationId":"approve_outbound_draft_gtm_internal_outbound_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveDraftRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Approve Outbound Draft Gtm Internal Outbound Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/batch-approve":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Batch Approve Outbound Drafts","description":"Approve many drafts SEQUENTIALLY through the chokepoint (it serializes\nper-thread anyway; sequential keeps the result stream predictable) and\nreturn the per-draft results in request order. A refused draft never stops\nthe rest — partial results are the contract.","operationId":"batch_approve_outbound_drafts_gtm_internal_outbound_batch_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchApproveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"type":"object","title":"Response Batch Approve Outbound Drafts Gtm Internal Outbound Batch Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/skip":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Skip Outbound Draft","description":"Operator skip — the shared action (``backend/outbound/actions.py``),\nthe SAME implementation the MCP tool calls: draft → ``skipped``; in-thread\nkinds also file the thread ``no_action`` (a NUDGE skip is terminal\nforever); handoff kinds drop just the email; pinged threads get the\ncross-surface echo.","operationId":"skip_outbound_draft_gtm_internal_outbound_skip_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkipDraftRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkipDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/redraft":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Redraft Outbound Draft","description":"Operator redraft WITHOUT sending — the shared action (see\n``backend/outbound/actions.py``; the MCP tool calls the same one): old\ndraft superseded, new version row proposed_by=operator. The (engine\nproposal, operator final) pairs are the drafting-precedent corpus.","operationId":"redraft_outbound_draft_gtm_internal_outbound_redraft_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedraftRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundDraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/email-fields":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Outbound Email Fields","description":"Edit an off-campaign email draft's envelope (to / subject / cc) in\nplace — the shared action (``backend/outbound/actions.py``; the MCP tool\ncalls the same one). Body edits stay redraft-only.","operationId":"update_outbound_email_fields_gtm_internal_outbound_email_fields_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailFieldsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundDraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/set-channel":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Set Outbound Draft Channel","description":"Switch THE message between its thread's own transport and a direct\nemail from the seat's mailbox — one draft, one modality, flipped in\nplace (the shared action; the MCP tool calls the same one).","operationId":"set_outbound_draft_channel_gtm_internal_outbound_set_channel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetChannelRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundDraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/commitment":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Set Outbound Commitment","description":"Open (or replace) the thread's deliverable commitment (WO-F) — the\nshared action; the MCP tool calls the same one.","operationId":"set_outbound_commitment_gtm_internal_outbound_commitment_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommitmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Outbound Commitment Gtm Internal Outbound Commitment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/commitment/close":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Close Outbound Commitment","description":"Explicitly close the thread's open commitment — delivered, or no\nlonger owed. Sending a reply never closes one; this does.","operationId":"close_outbound_commitment_gtm_internal_outbound_commitment_close_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseCommitmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Close Outbound Commitment Gtm Internal Outbound Commitment Close Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/tag":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Set Outbound Tag","operationId":"set_outbound_tag_gtm_internal_outbound_tag_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTagRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Outbound Tag Gtm Internal Outbound Tag Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/compose":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Compose Outbound Reply","operationId":"compose_outbound_reply_gtm_internal_outbound_compose_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundDraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/lane":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Set Outbound Lane","operationId":"set_outbound_lane_gtm_internal_outbound_lane_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLaneRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Outbound Lane Gtm Internal Outbound Lane Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/threads/{thread_id}/conversation":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Outbound Thread Conversation","description":"The thread's conversation history via a live channel read — the\nstructured digest (cleaned, deduped, oldest-first) that also feeds the\nSlack ping recap, each message carrying an LLM ``summary`` clause (the\ndrawer shows summaries first, full text on expand). Summaries cache on\nthe thread row keyed by the digest signature, so re-opens don't re-pay\nthe LLM call. Served on its own endpoint so the drawer opens fast and a\nchannel-API failure degrades one section, not the whole detail view.","operationId":"outbound_thread_conversation_gtm_internal_outbound_threads__thread_id__conversation_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Outbound Thread Conversation Gtm Internal Outbound Threads  Thread Id  Conversation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/outbound/change-seat":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Change Outbound Seat","description":"Switch WHO this thread's email sends as — any current unusual.ai\nadmin — then rewrite the live draft so it reads naturally as the new\nsender (a takeover, not an identity fiction). Two cases share the door:\ncorrecting a mis-derived seat, and a real handover (Sarah picking up\nWill's thread). On a handover the ORIGINAL seat is stamped once in\nchannel_refs and stays CC'd on every email send after; the campaign\nalias is never CC'd.\n\nAllowed wherever the pending message sends as an email: campaign-email\nthreads, and LinkedIn threads whose draft is a direct email. A pure\nLinkedIn reply's sender is structural (the conversation belongs to one\nseat's account).","operationId":"change_outbound_seat_gtm_internal_outbound_change_seat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeSeatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Outbound Seat Gtm Internal Outbound Change Seat Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/examples":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Outbound Examples","description":"List voice-example rows — the SAME filter/pagination semantics as the\nMCP ``list_outbound_examples`` tool (one shared query). Filters compose;\nnewest first. Candidates from live sends/backfills sit at active=False\nuntil a human activates them.","operationId":"list_outbound_examples_gtm_internal_outbound_examples_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"archetype","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archetype"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"pinned","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Outbound Examples Gtm Internal Outbound Examples Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/outbound/examples/update":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Update Outbound Example","description":"Inline content edit on one example — the shared action (the MCP\n``update_outbound_example`` tool calls the same one). Omitted fields\nuntouched (exclude_unset, the /email-fields convention); editing\nfinal_text clears the verbatim flag.","operationId":"update_outbound_example_gtm_internal_outbound_examples_update_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Update Outbound Example Gtm Internal Outbound Examples Update Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/examples/create":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Create Outbound Example","description":"Add one hand-written example (source=\"manual\", born active=True — a\nhuman wrote it deliberately; bulk candidates stay active=False pending\nreview). The shared action; MCP ``create_outbound_example`` parity.","operationId":"create_outbound_example_gtm_internal_outbound_examples_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Outbound Example Gtm Internal Outbound Examples Create Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/examples/promote":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Promote Outbound Example","description":"Promote a sent draft's filed candidate example to active — resolves by\nthe capture filer's ``draft:<id>`` key; optional archetype override. 404\nwith an explanatory detail when no filed row exists (the send predates\nexample capture — pre-E1). Returns the example plus ``already_active``.","operationId":"promote_outbound_example_gtm_internal_outbound_examples_promote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExamplePromoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Promote Outbound Example Gtm Internal Outbound Examples Promote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/outbound/examples/state":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Set Outbound Example State","description":"Flip active (reaches drafting prompts) and/or pinned (register-core\nclassic) — the tab's toggles, sharing the MCP\n``set_outbound_example_state`` implementation.","operationId":"set_outbound_example_state_gtm_internal_outbound_examples_state_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleStateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Outbound Example State Gtm Internal Outbound Examples State Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/gtm-internal/custom-pages":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Custom Pages","operationId":"list_custom_pages_gtm_internal_custom_pages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Domain Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"include_revoked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Revoked"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Custom Pages Gtm Internal Custom Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/custom-pages/{token}/revoke":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Revoke Custom Page","operationId":"revoke_custom_page_gtm_internal_custom_pages__token__revoke_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Custom Page Gtm Internal Custom Pages  Token  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/custom-pages/{token}/republish":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Republish Custom Page","description":"Re-snapshot a STABLE link from its backing document's current bytes.\n\nThe UI's republish is deliberately narrower than the MCP tool: no\ndocument re-anchoring — that is an agent/operator decision made where\nthe new document was just created. Re-upload to the backing document,\nthen press republish.","operationId":"republish_custom_page_gtm_internal_custom_pages__token__republish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Republish Custom Page Gtm Internal Custom Pages  Token  Republish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/external-links":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List External Links","operationId":"list_external_links_gtm_internal_external_links_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"domain_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Domain Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"include_revoked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Revoked"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List External Links Gtm Internal External Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/external-links/{token}/revoke":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Revoke External Link","operationId":"revoke_external_link_gtm_internal_external_links__token__revoke_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke External Link Gtm Internal External Links  Token  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/calls":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"List Calls","description":"List/search captured calls across ALL accounts (staff-only global view).\n\n``q`` is Postgres websearch syntax over title + transcript body, ranked by\nrelevance with sentinel-delimited snippets; without it, newest-first.\n``status`` defaults to ``done`` (pass ``all`` to include processing/failed\nrows). Never returns ``transcript_text`` — list rows stay light.","operationId":"list_calls_gtm_internal_calls_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"domain_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Domain Id"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"attribution_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Status"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"done","title":"Status"}},{"name":"has_video","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Video"}},{"name":"started_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started After"}},{"name":"started_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started Before"}},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Calls Gtm Internal Calls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/calls/{call_id}":{"get":{"tags":["gtm-internal","gtm-internal"],"summary":"Get Call","description":"One call for the viewer: metadata, timed transcript segments, and fresh\npresigned media URLs (4h TTL — mint per load, never store).\n\n``segments_source`` tells the client what sync affordances to enable:\n``timestamps`` (raw artifact parsed, ≥1 segment timed), ``text`` (flat\ntranscript only — render, no seek), ``none`` (no transcript at all).","operationId":"get_call_gtm_internal_calls__call_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Call Gtm Internal Calls  Call Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gtm-internal/calls/{call_id}/share":{"post":{"tags":["gtm-internal","gtm-internal"],"summary":"Share Call","description":"Mint a STABLE, revocable public link to this call's recording.\n\nMirrors the ``get_recording_share_link`` MCP tool exactly — same shared\n``mint_recording_share`` layer, same attendee guard (someone from the\ncall's own account must have been on it, unless deliberately skipped),\nsame gates, same call's-own-anchors stamping — minus the per-scope\nauthorization: this is the staff surface, and minting is admin-only to\nmatch the External Links revoke. Guard refusal is a 409 whose detail the\nUI shows verbatim. Unanchored (unattributed/internal) calls are refused\neven with the skip — resolve first, so every live share stays\nattributable and scope-revocable. The minted link appears on\n/external-links.","operationId":"share_call_gtm_internal_calls__call_id__share_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Share Call Gtm Internal Calls  Call Id  Share Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["infra"],"summary":"Health","description":"Health check used by ALB/K8s probes.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/health/broker":{"get":{"tags":["infra"],"summary":"Health Broker","description":"Broker + Redis health check.\n\nThis is intentionally stricter than /health and is meant to be used by the\nALB health check for the API service. If this endpoint is unhealthy, the\ntask should be removed from rotation to avoid \"enqueue succeeded\" behavior\nwith a StubBroker / localhost Redis.","operationId":"health_broker_health_broker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/redis-domains":{"get":{"tags":["infra"],"summary":"Check Redis Domain Cache","description":"Health check for Redis domain cache used by Lambda@Edge.\nChecks if cache is populated and triggers repopulation if needed.","operationId":"check_redis_domain_cache_health_redis_domains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/subdomain-status":{"get":{"tags":["infra"],"summary":"Subdomain Routing Status","description":"Overview of subdomain routing system health.","operationId":"subdomain_routing_status_health_subdomain_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/responder-catalog":{"get":{"tags":["responders"],"summary":"Get Responder Catalog","operationId":"get_responder_catalog_api_responder_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Responder Catalog Api Responder Catalog Get"}}}}}}},"/internal/agent-desk/test":{"post":{"tags":["internal"],"summary":"Test Agent By Domain","description":"Authenticated internal smoke tests use the same unbilled lane as owners.\n\nCall the API directly with the internal credential. The public edge /api/ask\nproxy only targets /internal/agent-desk/ask, which still sanitizes identifiers.\nA separate route keeps a caller's header, user agent or identifier from\nopting public traffic out of billing. Every test starts a fresh thread and\nshares the playground's bounded daily test allowance.","operationId":"test_agent_by_domain_internal_agent_desk_test_post","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Domain Id"}},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/domain-lookup":{"get":{"tags":["internal","internal"],"summary":"Lookup Domain","description":"Public endpoint: Lookup domain ID by subdomain.\nReturns only the domain_id, to minimise data exposure. Resolution does not\nfilter on hosting status; see `_lookup_domain_id_for_host` for how a\n(legacy) duplicate canonical host is decided.\n\n``alias_redirect_host`` is the canonical desk host when this host is a\nconfigured alias (agents.json spec §8): the edge worker permanent-redirects\nto it instead of resolving content. An alias WINS over resolution — the\noperator has explicitly said this host is not canonical — so a host that is\nboth listed as an alias and shaped like a desk host redirects.\n\nHosts under the Free plan's base resolve through ``_lookup_free_host``\nalone — first, so neither an alias nor a canonical match can claim one.","operationId":"lookup_domain_internal_domain_lookup_get","parameters":[{"name":"host","in":"query","required":true,"schema":{"type":"string","description":"The host to lookup (e.g., llms.unusual.ai)","title":"Host"},"description":"The host to lookup (e.g., llms.unusual.ai)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/hosted-csp-config":{"get":{"tags":["internal","internal"],"summary":"Hosted Csp Config","description":"Small edge snapshot, cached separately from long-lived host mappings.","operationId":"hosted_csp_config_internal_hosted_csp_config_get","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Domain Id"}},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/health":{"get":{"tags":["internal","internal"],"summary":"Internal Health Check","description":"Simple health check endpoint","operationId":"internal_health_check_internal_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/clock/tick":{"post":{"tags":["internal","internal"],"summary":"Clock Tick Ingress","description":"The EventBridge clock edge (lock §10.6a): a minutely EventBridge rule\nPOSTs here via an API destination; we enqueue the ``clock_tick`` actor and\nreturn. The actor is DARK in v1 (heartbeat only — APScheduler remains the\nlive clock); the worker-side heartbeat log line feeds the dead-man alarm,\nso this endpoint stays thin on purpose: any logic here would be invisible\nto that alarm.","operationId":"clock_tick_ingress_internal_clock_tick_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/agent-desk/ask":{"post":{"tags":["internal","internal"],"summary":"Ask Agent By Domain","operationId":"ask_agent_by_domain_internal_agent_desk_ask_post","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","description":"The domain ID resolved by the edge worker","title":"Domain Id"},"description":"The domain ID resolved by the edge worker"},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/agent-desk/answer-page":{"get":{"tags":["internal","internal"],"summary":"Answer Page By Domain","description":"GET answer pages (per-domain opt-in). The edge worker calls this on an\nR2 miss for question-shaped paths, for the /c/ thread namespace, and for\nGET /agent-desk/ask. A 404 carrying ``x-answer-pages: disabled`` tells the\nworker to fall back to the pre-existing behavior for that path.","operationId":"answer_page_by_domain_internal_agent_desk_answer_page_get","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","description":"The domain ID resolved by the edge worker","title":"Domain Id"},"description":"The domain ID resolved by the edge worker"},{"name":"path","in":"query","required":true,"schema":{"type":"string","description":"The URL path as the edge saw it (question-shaped, /c/... thread, or agent-desk/ask)","title":"Path"},"description":"The URL path as the edge saw it (question-shaped, /c/... thread, or agent-desk/ask)"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/agent-desk/agents-json":{"get":{"tags":["internal","internal"],"summary":"Agents Json By Domain","description":"The ``/.well-known/agents.json`` descriptor for a domain's hosted\nsubdomain (see backend/agent_desk/descriptor.py; spec:\ndocs/agents-standard/spec-v0.md). The edge worker\n(backend/hosting/unusual_router.js) proxies GET /.well-known/agents.json\nhere, reserving that path ahead of hosted-content lookup.\n\nDomains without an enabled desk get the ``x-agents-json: disabled``\nsentinel and the edge falls through to its pre-existing behavior, so an\nun-consented host stays indistinguishable from a host with no desk.","operationId":"agents_json_by_domain_internal_agent_desk_agents_json_get","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","description":"The domain ID resolved by the edge worker","title":"Domain Id"},"description":"The domain ID resolved by the edge worker"},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/agent-desk/robots-txt":{"get":{"tags":["internal","internal"],"summary":"Robots Txt By Domain","description":"``/robots.txt`` for a domain's hosted subdomain (see\nbackend/agent_desk/robots.py for the rule sets and why they are what they\nare). The edge worker proxies here on an R2 miss for ``/robots.txt``, which\nmeans a customer who publishes their own object at that key still wins.\n\nA domain without an enabled desk gets the ``x-desk-robots: disabled``\nsentinel and the edge keeps its pre-existing behavior for the path. That is\nthe whole reason this is a control-plane call rather than a string the\nworker could assemble by itself: \"is this host a desk\" is control-plane\nstate, and a desk-shaped robots.txt appearing on a hosted-content host that\nhas no desk would be publishing crawl policy for a surface that doesn't\nexist.","operationId":"robots_txt_by_domain_internal_agent_desk_robots_txt_get","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","description":"The domain ID resolved by the edge worker","title":"Domain Id"},"description":"The domain ID resolved by the edge worker"},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/agent-desk/head-tags":{"get":{"tags":["internal","internal"],"summary":"Desk Head Tags By Domain","description":"The canonical desk head-tag fragment (JSON-LD Action +\n``ai-agent-instruction`` meta) for a domain's hosted pages, brand name and\nall. The edge worker fetches this when it serves an HTML object that lacks\nthe tags — pages baked before tagging, or baked while the desk had no\npublic endpoint — instead of fabricating brand copy from the served host.\n\nFails closed: a domain with no live desk gets the sentinel 404 and the\nworker serves the page untouched. Body comes from the same single-source\nbuilder the bake path and the Embed tab use, so the backfilled fragment is\nbyte-identical to a freshly baked one.","operationId":"desk_head_tags_by_domain_internal_agent_desk_head_tags_get","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","description":"The domain ID resolved by the edge worker","title":"Domain Id"},"description":"The domain ID resolved by the edge worker"},{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/llm-page-visit":{"post":{"tags":["internal","internal"],"summary":"Log Llm Page Visit","description":"Internal: Increment llm_visits counter for a content document or legacy generated page.\n\nAGENTDESK-P2(PR-F): also carries the D16 edge signals into\n``bot_visit.bot_score`` / ``.asn_description``. They arrive as the same two\ntrusted headers the answer-page and ask hops use, and ``extract_bot_signals``\napplies the SAME trust gate — a caller that reaches this route without the\ninternal token is rejected by ``verify_internal_key``. As defense in depth,\nan unverified request gets its claimed score and ASN dropped, exactly as its\nclaimed IP already is. Without that, anyone able to POST here could write\narbitrary bot scores into a customer's attribution data.","operationId":"log_llm_page_visit_internal_llm_page_visit_post","parameters":[{"name":"x-internal-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}},{"name":"x-internal-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LLMVisitPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports-api/domains/{domain_id}":{"get":{"tags":["reports-public"],"summary":"Get Public Report Domain Status","operationId":"get_public_report_domain_status_reports_api_domains__domain_id__get","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportAccessStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports-api/domains/{domain_id}/access":{"post":{"tags":["reports-public"],"summary":"Grant Public Report Access","operationId":"grant_public_report_access_reports_api_domains__domain_id__access_post","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantPublicReportAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportAccessStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports-api/domains/{domain_id}/reports":{"get":{"tags":["reports-public"],"summary":"List Public Reports","operationId":"list_public_reports_reports_api_domains__domain_id__reports_get","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicReportHistoryItem"},"title":"Response List Public Reports Reports Api Domains  Domain Id  Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports-api/domains/{domain_id}/reports/{report_id}":{"get":{"tags":["reports-public"],"summary":"Get Public Report","operationId":"get_public_report_reports_api_domains__domain_id__reports__report_id__get","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReportPayload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/r/{token}":{"get":{"tags":["report-share"],"summary":"View Shared Report","operationId":"view_shared_report_r__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["report-share"],"summary":"Submit Share Gate","description":"External-share gate submit (``es_…`` tokens only), two lanes by form\nfield: ``passphrase`` (the original flow — verify → short-lived signed\ncookie → render) and ``viewer_email`` (the email gate — identify → 30-day\nsigned cookie carrying the email → render + view record). Wrong/dead →\nthe lane's uniform retry page. Non-``es_`` tokens have no POST semantics\n→ the uniform unavailable page.","operationId":"submit_share_gate_r__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_submit_share_gate_r__token__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/r/{token}/media":{"get":{"tags":["report-share"],"summary":"Shared Recording Media","description":"Per-view media credential for a ``call_recording`` share: re-validate\nthe share and its gate, then 302 to a FRESH short-lived presigned R2 URL.\nThe player shell served at ``/r/{token}`` points here, so the link a\nclient holds is the revocable token while the bearer credential under it\nis minted per request (design: ``backend/external_share/recordings.py``).\n\nLookup is ``get_share_gate_facts`` (side-effect-free, no\n``rendered_html`` — the full frozen page must not ride along on every\nhit of an unauthenticated route), NOT ``load_share`` — the page render\nis the genuine first \"open\" and a media fetch must not stamp\n``first_opened_at``. Successful redirects DO record a view (throttled by\n``record_view``'s per-viewer window): the media URL is copyable out of\nthe shell, so media-only watchers must not be invisible to the view log\nand the first-open ping. Every failure mode is a uniform, no-store 404:\nan unauthenticated probe learns nothing about token existence, kind,\ngate mode, or revocation state.\n\nGate honoring mirrors the page: the gate cookie is path-scoped to\n``/r/{token}``, which RFC 6265 path-matching also sends to this sub-path.","operationId":"shared_recording_media_r__token__media_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/p/{token}":{"get":{"tags":["custom-page-share"],"summary":"View Custom Page","description":"Mirror of ``/r``'s es_ dispatch (same no-oracle posture; see\n``view_shared_report``), narrowed to ``kind='custom_page'``.","operationId":"view_custom_page_p__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["custom-page-share"],"summary":"Submit Custom Page Gate","description":"Gate submit — same two lanes as ``/r``'s POST, cookies path-scoped to\n``/p/{token}`` so an unlocked page grants nothing elsewhere.","operationId":"submit_custom_page_gate_p__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_submit_custom_page_gate_p__token__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/static/fonts/{name}":{"get":{"tags":["report-fonts"],"summary":"Get Report Font","operationId":"get_report_font_static_fonts__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me":{"get":{"summary":"Me","operationId":"me_api_users_me_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__users__UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users":{"get":{"summary":"List Users","description":"Return users in the organization. Superusers may pass org_id to view another org's team.","operationId":"list_users_api_users_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__users__UserResponse"},"title":"Response List Users Api Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create User","description":"Create a new teammate. Superusers may pass org_id to add to another org.","operationId":"create_user_api_users_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__users__UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}":{"patch":{"summary":"Update User","operationId":"update_user_api_users__user_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__users__UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete User","description":"Remove a teammate within the same organization.\n- Cannot remove yourself\n- Disallow removing Unusual support accounts","operationId":"delete_user_api_users__user_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/{user_id}/hosted-invitation":{"post":{"summary":"Renew Hosted Invitation","operationId":"renew_hosted_invitation_api_users__user_id__hosted_invitation_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains":{"get":{"tags":["domains"],"summary":"Get Domains","operationId":"get_domains_api_domains_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DomainResponse"},"title":"Response Get Domains Api Domains Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/lookup":{"get":{"tags":["domains"],"summary":"Search domains by name or host","description":"Paginated domain search. Returns total count, has_more flag, and matching results. Use limit/offset to page.","operationId":"lookup_domain_api_domains_lookup_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Search string (case-insensitive partial match on name or host). Empty returns all.","default":"","title":"Q"},"description":"Search string (case-insensitive partial match on name or host). Empty returns all."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max results to return","default":10,"title":"Limit"},"description":"Max results to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of results to skip","default":0,"title":"Offset"},"description":"Number of results to skip"},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}":{"patch":{"tags":["domains"],"summary":"Update Domain","operationId":"update_domain_api_domains__domain_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__domains__UpdateDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["domains"],"summary":"Get Domain Info","operationId":"get_domain_info_api_domains__domain_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/feedback-document/entries":{"post":{"tags":["domains"],"summary":"Append Feedback Entry","operationId":"append_feedback_entry_api_domains__domain_id__feedback_document_entries_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendFeedbackDocumentEntryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackDocumentRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/onboarding/aeo-v2":{"post":{"tags":["domains"],"summary":"Trigger Aeo V2 Onboarding","description":"Trigger the AEO Orchestrator v2 for this domain.\n\nThis is safe to call multiple times; it will only run steps whose\nunderlying artifacts are missing.","operationId":"trigger_aeo_v2_onboarding_api_domains__domain_id__onboarding_aeo_v2_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/notifications/test":{"post":{"tags":["domains"],"summary":"Send Test Domain Notification","operationId":"send_test_domain_notification_api_domains__domain_id__notifications_test_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackSendResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/notifications":{"get":{"tags":["domains"],"summary":"Get Desk Notification State","operationId":"get_desk_notification_state_api_domains__domain_id__notifications_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskNotificationStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/notifications/email-digest":{"put":{"tags":["domains"],"summary":"Set Desk Email Digest","description":"Turn the weekly email summary on or off. Answers with the whole state\n(Slack fields included) so the switch and the Slack row never disagree.","operationId":"set_desk_email_digest_api_domains__domain_id__notifications_email_digest_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetEmailDigestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskNotificationStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/notifications/webhook":{"put":{"tags":["domains"],"summary":"Set Desk Notification Webhook","description":"Save (and enable) the desk's Slack incoming webhook.\n\nValidation is the SSRF gate — https, ``hooks.slack.com``, ``/services/`` path\n— and its message is written for the customer, so it is returned verbatim as\nthe 400 detail. See ``agent_desk/webhook_secret.py`` for why the allowlist is\none host wide.","operationId":"set_desk_notification_webhook_api_domains__domain_id__notifications_webhook_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDeskWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskNotificationStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["domains"],"summary":"Clear Desk Notification Webhook","operationId":"clear_desk_notification_webhook_api_domains__domain_id__notifications_webhook_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskNotificationStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/notifications/webhook/test":{"post":{"tags":["domains"],"summary":"Send Desk Notification Webhook Test","description":"Test ping.\n\nA test that fails counts as a failure like any other delivery — same counters,\nsame auto-disable, same fallback. That is on purpose: the button exists to find\nout whether this lane works, and a URL that 404s on the test is exactly the\nlane we do not want armed. A skipped delivery (nothing configured, lane off) is\na 400 the UI can act on; a genuine delivery failure is reported as data with\nthe outcome, because \"we tried and Slack said no\" is the answer the customer\npressed the button for, not a server error.","operationId":"send_desk_notification_webhook_test_api_domains__domain_id__notifications_webhook_test_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskWebhookTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/notifications/support-channel":{"post":{"tags":["domains"],"summary":"Request Desk Support Channel","description":"\"Request a Slack support channel\" (D19).\n\nSets the durable flag (surfaced on the GTM account view) and pings the GTM\nfeed. It creates NOTHING in Slack — D19 keeps Connect staff-mediated, and the\nflag is what makes sure a missed Slack message doesn't lose the request.\n\nIdempotent: asking twice keeps the first ``requested_at`` and pings again,\nbecause a customer pressing it a second time is telling us they are still\nwaiting.","operationId":"request_desk_support_channel_api_domains__domain_id__notifications_support_channel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportChannelRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/slack/install-url":{"post":{"tags":["domains"],"summary":"Mint Slack Install Url","description":"The Slack authorize URL for this desk's \"Add to Slack\" button.\n\nMinted per click (the signed state inside lasts 15 minutes) rather than\nrendered into the page, so a stale settings tab can't hand out an expired\nlink. The frontend opens it in a new tab; the customer lands on Slack's\nnative channel picker and the public callback does the rest.","operationId":"mint_slack_install_url_api_domains__domain_id__slack_install_url_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackInstallUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/slack/install":{"get":{"tags":["domains"],"summary":"Get Slack Install State","operationId":"get_slack_install_state_api_domains__domain_id__slack_install_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackInstallStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["domains"],"summary":"Disconnect Slack Install","description":"Disconnect the workspace: revoke the token with Slack (best-effort — the\nrow is disarmed regardless), then clear the bot lane if it points at the\ninstalled channel, so the mirror stops trying a channel we can no longer\nreach. Webhook-lane fields survive (`apply_bot_lane_cleared`).","operationId":"disconnect_slack_install_api_domains__domain_id__slack_install_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackInstallStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/branding":{"get":{"tags":["domains"],"summary":"Get Domain Branding","operationId":"get_domain_branding_api_domains__domain_id__branding_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainBrandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["domains"],"summary":"Update Domain Branding","operationId":"update_domain_branding_api_domains__domain_id__branding_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDomainBrandingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainBrandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/refresh-content":{"post":{"tags":["domains"],"summary":"Refresh Generated Content","description":"Enqueue a background job to rebuild and re-upload all PUBLISHED pages\nfor this domain, and refresh sitemap.xml + overview index.\n\nThis mirrors the behavior of the maintenance script and uses the general\nworker actor under the hood. Returns immediately with a queued status.","operationId":"refresh_generated_content_api_domains__domain_id__refresh_content_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/branding/logo":{"post":{"tags":["domains"],"summary":"Upload Domain Branding Logo","description":"Upload a logo image (PNG/SVG/JPEG/WebP/GIF) for the hosted docs pages.\n\nThe bytes land in the generated-pages R2 bucket under this domain's\n``page/{domain_id}/assets/`` prefix, so the edge worker serves them on the\ncustomer's own docs host at ``/assets/<filename>``; ``branding.logo_url``\nis pointed at that URL and the hosted pages are republished. The filename\nembeds a content hash, so the worker's immutable cache header is safe and\nreplacing the logo never fights a stale cache.","operationId":"upload_domain_branding_logo_api_domains__domain_id__branding_logo_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_domain_branding_logo_api_domains__domain_id__branding_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainBrandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/me":{"get":{"summary":"My Organization","operationId":"my_organization_api_organizations_me_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations":{"get":{"summary":"List Organizations","description":"List all organizations. Superusers only.","operationId":"list_organizations_api_organizations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgListItem"},"title":"Response List Organizations Api Organizations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/accessible":{"get":{"summary":"List Accessible Organizations","description":"Orgs the caller can act on — their own org plus any active agency grants\n(``accessible_org_ids``). Feeds the client/org switcher for agency users;\nsuperusers get all orgs. Declared BEFORE ``/organizations/{org_id}`` so the\nliteral path wins over the path param.","operationId":"list_accessible_organizations_api_organizations_accessible_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgListItem"},"title":"Response List Accessible Organizations Api Organizations Accessible Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/{org_id}":{"get":{"summary":"Get Organization","description":"Get organization by id — must be one the caller can access (own org, an\nactive agency grant, or any org for superusers). Used by the org switcher.","operationId":"get_organization_api_organizations__org_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-desk/boot":{"get":{"summary":"Desk Boot","operationId":"desk_boot_api_agent_desk_boot_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The `?domain=` deep link, if any.","title":"Domain"},"description":"The `?domain=` deep link, if any."},{"name":"viewing_org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tab's stored viewing org.","title":"Viewing Org Id"},"description":"The tab's stored viewing org."},{"name":"stored_domain_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tab's stored domain.","title":"Stored Domain Id"},"description":"The tab's stored domain."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskBootOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/custom_code":{"get":{"tags":["custom_code"],"summary":"Get Domain Custom Code","operationId":"get_domain_custom_code_api_domains__domain_id__custom_code_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCustomCodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["custom_code"],"summary":"Update Domain Custom Code","operationId":"update_domain_custom_code_api_domains__domain_id__custom_code_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDomainCustomCodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCustomCodeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys":{"get":{"tags":["api_keys"],"summary":"List Api Keys","description":"List API keys. Superusers may pass org_id to view another org's keys.","operationId":"list_api_keys_api_api_keys_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyOut"},"title":"Response List Api Keys Api Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api_keys"],"summary":"Create Api Key","description":"Create API key. Superusers may pass org_id to create for another org.\n\nSet bind_to_user=false to create an org-scoped external API key (no user\nlinked, cannot be used as a bearer token for session auth).","operationId":"create_api_key_api_api_keys_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreatedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/api-keys/{key_id}/revoke":{"post":{"tags":["api_keys"],"summary":"Revoke Api Key","description":"Revoke API key. Superusers may pass org_id to revoke keys from another org.","operationId":"revoke_api_key_api_api_keys__key_id__revoke_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts":{"get":{"tags":["admin"],"summary":"List Accounts","description":"List all customer accounts with summary information (paginated).\n\nDefault sort: by created_at desc (newest first).\nAll sorting is done at the SQL level to ensure correct ordering across pages.","operationId":"list_accounts_api_admin_accounts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Page Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"desc","title":"Sort Dir"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__AccountListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Account","description":"Create a new customer account with dashboard onboarding.","operationId":"create_account_api_admin_accounts_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}":{"get":{"tags":["admin"],"summary":"Get Account","description":"Get detailed information about a specific account.","operationId":"get_account_api_admin_accounts__org_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__AccountDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Account","description":"Delete an organization and all associated data.\n\nThis cascades to delete:\n- All domains (and their products, competitors, objectives, probes, etc.)\n- All users\n- All API keys","operationId":"delete_account_api_admin_accounts__org_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/users":{"post":{"tags":["admin"],"summary":"Add User To Account","description":"Add a new user to an existing account and send invitation email.","operationId":"add_user_to_account_api_admin_accounts__org_id__users_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}":{"patch":{"tags":["admin"],"summary":"Update Domain","description":"Update domain configuration.","operationId":"update_domain_api_admin_accounts__org_id__domains__domain_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__UpdateDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/feature-flags":{"get":{"tags":["admin"],"summary":"Get Domain Feature Flags","description":"Get effective feature flags for a domain.","operationId":"get_domain_feature_flags_api_admin_accounts__org_id__domains__domain_id__feature_flags_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFlagOut"},"title":"Response Get Domain Feature Flags Api Admin Accounts  Org Id  Domains  Domain Id  Feature Flags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Update Domain Feature Flags","description":"Upsert domain-specific feature flags.","operationId":"update_domain_feature_flags_api_admin_accounts__org_id__domains__domain_id__feature_flags_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeatureFlagsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFlagOut"},"title":"Response Update Domain Feature Flags Api Admin Accounts  Org Id  Domains  Domain Id  Feature Flags Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/monitoring":{"get":{"tags":["admin"],"summary":"Get Monitoring Config","description":"Get monitoring configuration for a domain.","operationId":"get_monitoring_config_api_admin_accounts__org_id__domains__domain_id__monitoring_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__MonitoringConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/monitoring/onboard":{"post":{"tags":["admin"],"summary":"Trigger Monitoring Onboard","description":"Trigger monitoring onboarding to auto-populate products and competitors.","operationId":"trigger_monitoring_onboard_api_admin_accounts__org_id__domains__domain_id__monitoring_onboard_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/products":{"post":{"tags":["admin"],"summary":"Create Product","description":"Create a new product.","operationId":"create_product_api_admin_accounts__org_id__domains__domain_id__products_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__CreateProductRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/products/{product_id}":{"patch":{"tags":["admin"],"summary":"Update Product","description":"Update a product.","operationId":"update_product_api_admin_accounts__org_id__domains__domain_id__products__product_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__UpdateProductRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Product","description":"Delete a product.","operationId":"delete_product_api_admin_accounts__org_id__domains__domain_id__products__product_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/competitors":{"post":{"tags":["admin"],"summary":"Create Competitor","description":"Create a new competitor.","operationId":"create_competitor_api_admin_accounts__org_id__domains__domain_id__competitors_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompetitorRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__CompetitorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/competitors/{competitor_id}":{"patch":{"tags":["admin"],"summary":"Update Competitor","description":"Update a competitor.","operationId":"update_competitor_api_admin_accounts__org_id__domains__domain_id__competitors__competitor_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__UpdateCompetitorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__CompetitorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Competitor","description":"Delete a competitor (and its products).","operationId":"delete_competitor_api_admin_accounts__org_id__domains__domain_id__competitors__competitor_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/competitors/{competitor_id}/products":{"post":{"tags":["admin"],"summary":"Create Competitor Product","description":"Create a new competitor product.","operationId":"create_competitor_product_api_admin_accounts__org_id__domains__domain_id__competitors__competitor_id__products_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompetitorProductRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/competitors/{competitor_id}/products/{product_id}":{"patch":{"tags":["admin"],"summary":"Update Competitor Product","description":"Update a competitor product.","operationId":"update_competitor_product_api_admin_accounts__org_id__domains__domain_id__competitors__competitor_id__products__product_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompetitorProductRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Competitor Product","description":"Delete a competitor product.","operationId":"delete_competitor_product_api_admin_accounts__org_id__domains__domain_id__competitors__competitor_id__products__product_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/monitors":{"get":{"tags":["admin"],"summary":"Get Monitors","description":"Get all monitor rows for a domain.","operationId":"get_monitors_api_admin_accounts__org_id__domains__domain_id__monitors_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorRowsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Monitor","description":"Create a new monitor and trigger analysis.","operationId":"create_monitor_api_admin_accounts__org_id__domains__domain_id__monitors_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMonitorRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__MonitorRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/monitors/suggest":{"post":{"tags":["admin"],"summary":"Suggest Monitors Admin","description":"Suggest monitor criteria for a domain (admin version).","operationId":"suggest_monitors_admin_api_admin_accounts__org_id__domains__domain_id__monitors_suggest_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"product_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestCriteriaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/monitors/{monitor_id}/run":{"post":{"tags":["admin"],"summary":"Run Monitor Analysis","description":"Re-run analysis for a monitor.","operationId":"run_monitor_analysis_api_admin_accounts__org_id__domains__domain_id__monitors__monitor_id__run_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/monitors/{monitor_id}":{"patch":{"tags":["admin"],"summary":"Update Monitor","description":"Update a monitor's competitors and optionally re-run analysis.","operationId":"update_monitor_api_admin_accounts__org_id__domains__domain_id__monitors__monitor_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMonitorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__MonitorRowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Monitor","description":"Delete a monitor.","operationId":"delete_monitor_api_admin_accounts__org_id__domains__domain_id__monitors__monitor_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/brand-goals":{"get":{"tags":["admin"],"summary":"Get Brand Goals","description":"Get brand goals for a domain.","operationId":"get_brand_goals_api_admin_accounts__org_id__domains__domain_id__brand_goals_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandGoalsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Brand Goal","description":"Create a brand goal and trigger analysis.","operationId":"create_brand_goal_api_admin_accounts__org_id__domains__domain_id__brand_goals_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBrandGoalRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBrandGoalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/brand-goals/{goal_id}/run":{"post":{"tags":["admin"],"summary":"Run Brand Goal Analysis","description":"Re-run analysis for a brand goal.","operationId":"run_brand_goal_analysis_api_admin_accounts__org_id__domains__domain_id__brand_goals__goal_id__run_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/brand-goals/suggest":{"post":{"tags":["admin"],"summary":"Suggest Brand Goals Admin","description":"Suggest brand goals for a domain (admin version).","operationId":"suggest_brand_goals_admin_api_admin_accounts__org_id__domains__domain_id__brand_goals_suggest_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestGoalsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/agent-desk":{"get":{"tags":["admin"],"summary":"Get Admin Agent Desk","description":"The staff AgentDesk panel for one domain. Always 200s for a real domain —\n\"this domain has no desk\" is data (`exists: false`), not an error.","operationId":"get_admin_agent_desk_api_admin_accounts__org_id__domains__domain_id__agent_desk_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDeskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Update Admin Agent Desk","description":"Flip desk switches for one domain.\n\nRefuses to CREATE a desk: a missing desk row means this domain was never\nprovisioned for AgentDesk, and conjuring one from a toggle would produce a\ndesk with no slug convention, no offerings and no prompt — provisioning is\n`agent_desk.provisioning`'s job and it runs at account creation.\n\n`retrieval_mode` is validated against the modes the dispatcher actually\nknows. An unknown value would not error anywhere: `desk_reads_index` would\nread it as \"exa\", so the desk would silently keep using Exa while the column\nsaid otherwise — the worst kind of wrong.\n\nBoth rules live in `staff_controls.apply_config`, shared with the GTM\nconsole's copy of this panel: one implementation, so a second staff surface\ncannot be built with a weaker version of them.","operationId":"update_admin_agent_desk_api_admin_accounts__org_id__domains__domain_id__agent_desk_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdminDeskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDeskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/accounts/{org_id}/domains/{domain_id}/agent-desk/crawl":{"post":{"tags":["admin"],"summary":"Launch Admin Agent Desk Crawl","description":"Launch a FULL crawl / backfill for this domain, now.\n\n`full=True`, unlike the nightly tick: this is the button somebody presses\nright after flipping a desk onto the internal lane, and the whole point is\nnot to wait for the cadence to work its way through a cold site.\n\nNOT rate-limited, unlike the customer's whole-site button — a staff action\nbehind `require_admin` is a deliberate act by a named human, and the\ncustomer-facing limit exists to stop a click from becoming a load test, not\nto stop us from operating a rollout. It is refused for a domain that writes\nno index rows, because the actor would return \"skipped\" and the panel would\nshow a crawl that did nothing with no explanation.","operationId":"launch_admin_agent_desk_crawl_api_admin_accounts__org_id__domains__domain_id__agent_desk_crawl_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDeskCrawlQueued"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports/{report_id}/locate":{"get":{"tags":["reports"],"summary":"Locate Report","description":"Bare report id → the domain it lives on (staff only).\n\nEverything else in this file resolves reports through the caller's current\ndomain, so a `/reports/<id>` URL without `?domain=` 404s on any other\nworkspace. The frontend calls this on that 404 and re-enters through the\n`?domain=` deep link. Non-superusers get the same 404 as a missing report —\nno cross-domain existence probe.","operationId":"locate_report_api_reports__report_id__locate_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportLocation"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/payments/unusual-product-pricing":{"get":{"tags":["payments"],"summary":"List Plans","operationId":"list_plans_api_domains__domain_id__payments_unusual_product_pricing_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"product_family","in":"query","required":false,"schema":{"anyOf":[{"const":"agentdesk","type":"string"},{"type":"null"}],"title":"Product Family"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPlansOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/payments/customer-email":{"get":{"tags":["payments"],"summary":"Get Customer Email","operationId":"get_customer_email_api_domains__domain_id__payments_customer_email_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerEmailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["payments"],"summary":"Update Customer Email","operationId":"update_customer_email_api_domains__domain_id__payments_customer_email_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomerEmailIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerEmailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/payments/current-plan":{"get":{"tags":["payments"],"summary":"Get Current Plan","description":"Return the org's current plan details straight from Stripe.","operationId":"get_current_plan_api_domains__domain_id__payments_current_plan_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/payments/create-checkout-session":{"post":{"tags":["payments"],"summary":"Create Checkout Session","operationId":"create_checkout_session_api_domains__domain_id__payments_create_checkout_session_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/payments/current-usage":{"get":{"tags":["payments"],"summary":"Get Current Usage","description":"Get current period usage and upcoming billing information.","operationId":"get_current_usage_api_domains__domain_id__payments_current_usage_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/payments/billing-portal-session":{"post":{"tags":["payments"],"summary":"Create Billing Portal Session","description":"Return a short-lived URL that lets the customer view, upgrade,\ndowngrade, or cancel their subscription in Stripe's portal.","operationId":"create_billing_portal_session_api_domains__domain_id__payments_billing_portal_session_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge-base":{"get":{"tags":["knowledge_base"],"summary":"List Knowledge Base Entries","description":"List all knowledge base entries for a domain with optional filtering.","operationId":"list_knowledge_base_entries_api_domains__domain_id__knowledge_base_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"entry_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by entry type","title":"Entry Type"},"description":"Filter by entry type"},{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by source type","title":"Source Type"},"description":"Filter by source type"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KnowledgeBaseEntryResponse"},"title":"Response List Knowledge Base Entries Api Domains  Domain Id  Knowledge Base Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["knowledge_base"],"summary":"Create Knowledge Base Entry","description":"Create a new knowledge base entry.","operationId":"create_knowledge_base_entry_api_domains__domain_id__knowledge_base_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEntryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge-base/upload":{"post":{"tags":["knowledge_base"],"summary":"Upload Knowledge Base File","description":"Store an uploaded file as a document-style knowledge base entry.","operationId":"upload_knowledge_base_file_api_domains__domain_id__knowledge_base_upload_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_knowledge_base_file_api_domains__domain_id__knowledge_base_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge-base/{entry_id}":{"get":{"tags":["knowledge_base"],"summary":"Get Knowledge Base Entry","description":"Get a specific knowledge base entry.","operationId":"get_knowledge_base_entry_api_domains__domain_id__knowledge_base__entry_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["knowledge_base"],"summary":"Update Knowledge Base Entry","description":"Update a knowledge base entry.","operationId":"update_knowledge_base_entry_api_domains__domain_id__knowledge_base__entry_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEntryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["knowledge_base"],"summary":"Delete Knowledge Base Entry","description":"Delete a knowledge base entry.","operationId":"delete_knowledge_base_entry_api_domains__domain_id__knowledge_base__entry_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge-base/{entry_id}/download":{"get":{"tags":["knowledge_base"],"summary":"Download Knowledge Base Entry","operationId":"download_knowledge_base_entry_api_domains__domain_id__knowledge_base__entry_id__download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge-base/bulk-create":{"post":{"tags":["knowledge_base"],"summary":"Bulk Create Knowledge Base Entries","description":"Bulk create knowledge base entries (useful for sitemap import).","operationId":"bulk_create_knowledge_base_entries_api_domains__domain_id__knowledge_base_bulk_create_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KnowledgeBaseEntryCreate"},"title":"Entries"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge-base/{entry_id}/reprocess":{"post":{"tags":["knowledge_base"],"summary":"Reprocess Knowledge Base Entry","description":"Trigger reprocessing of a knowledge base entry.","operationId":"reprocess_knowledge_base_entry_api_domains__domain_id__knowledge_base__entry_id__reprocess_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge-base/{entry_id}/preview-merge":{"post":{"tags":["knowledge_base"],"summary":"Preview Description Merge","operationId":"preview_description_merge_api_domains__domain_id__knowledge_base__entry_id__preview_merge_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescriptionMergePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge-base/{entry_id}/accept-merge":{"post":{"tags":["knowledge_base"],"summary":"Accept Description Merge","operationId":"accept_description_merge_api_domains__domain_id__knowledge_base__entry_id__accept_merge_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","title":"Entry Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescriptionAcceptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/branding":{"get":{"tags":["generated_pages"],"summary":"Get Domain Branding","operationId":"get_domain_branding_api_domains__domain_id__generated_pages_branding_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["generated_pages"],"summary":"Create Domain Branding","operationId":"create_domain_branding_api_domains__domain_id__generated_pages_branding_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["generated_pages"],"summary":"Update Domain Branding","operationId":"update_domain_branding_api_domains__domain_id__generated_pages_branding_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/onboard-generated-pages":{"post":{"tags":["generated_pages"],"summary":"Onboard Generated Pages","description":"Enable generated pages and trigger page generation. Does NOT setup hosting - use /hosting/onboard-subdomain for that.","operationId":"onboard_generated_pages_api_domains__domain_id__generated_pages_onboard_generated_pages_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/preview-overview-page":{"get":{"tags":["generated_pages"],"summary":"Preview Overview Page","description":"Generate full HTML for the overview page on-the-fly so the dashboard can render it in an <iframe>.","operationId":"preview_overview_page_api_domains__domain_id__generated_pages_preview_overview_page_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/upload-overview":{"post":{"tags":["generated_pages"],"summary":"Upload Overview Index","description":"Build and upload the overview index.html and sitemap.xml to R2.","operationId":"upload_overview_index_api_domains__domain_id__generated_pages_upload_overview_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/{page_id}/preview-html":{"get":{"tags":["generated_pages"],"summary":"Preview Generated Page Html","description":"Generate full HTML for a page on-the-fly so the dashboard can render it in an <iframe>.\n\nOptional query params:\n  - before_version_id: if provided and highlight=true, compute inline diffs from this version\n  - highlight: when true, wrap additions/deletions with ins/del tags; if no baseline provided, compare to empty","operationId":"preview_generated_page_html_api_domains__domain_id__generated_pages__page_id__preview_html_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"before_version_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before Version Id"}},{"name":"highlight","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Highlight"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages":{"get":{"tags":["generated_pages"],"summary":"List Generated Pages","description":"List all generated pages for a domain with optional filtering.","operationId":"list_generated_pages_api_domains__domain_id__generated_pages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"page_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by page type","title":"Page Type"},"description":"Filter by page type"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"include_overview","in":"query","required":false,"schema":{"type":"boolean","description":"Include a synthetic Overview row (with overview_view stats) at the top of the result list.","default":false,"title":"Include Overview"},"description":"Include a synthetic Overview row (with overview_view stats) at the top of the result list."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GeneratedPageResponse"},"title":"Response List Generated Pages Api Domains  Domain Id  Generated Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["generated_pages"],"summary":"Create Generated Page","description":"Create a new generated page (manual/blank editor flow).","operationId":"create_generated_page_api_domains__domain_id__generated_pages_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedPageCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/pending":{"get":{"tags":["generated_pages"],"summary":"List Pending Generated Pages","description":"Return pending GeneratedPage changes for this domain, split into:\n  - new_pages: pages that have never been published (status='draft' and published_at is NULL)\n  - page_updates: previously published pages that have unsaved chat workspace buffers","operationId":"list_pending_generated_pages_api_domains__domain_id__generated_pages_pending_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingPagesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/{page_id}":{"get":{"tags":["generated_pages"],"summary":"Get Generated Page","description":"Get a specific generated page.","operationId":"get_generated_page_api_domains__domain_id__generated_pages__page_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["generated_pages"],"summary":"Update Generated Page","description":"Update a generated page's content and metadata, persist a new version, and refresh artifacts.","operationId":"update_generated_page_api_domains__domain_id__generated_pages__page_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedPageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["generated_pages"],"summary":"Delete Generated Page","description":"Delete a generated page.","operationId":"delete_generated_page_api_domains__domain_id__generated_pages__page_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/{page_id}/versions":{"get":{"tags":["generated_pages"],"summary":"Get Generated Page Versions","description":"Get version history for a generated page.","operationId":"get_generated_page_versions_api_domains__domain_id__generated_pages__page_id__versions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GeneratedPageVersionResponse"},"title":"Response Get Generated Page Versions Api Domains  Domain Id  Generated Pages  Page Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/{page_id}/diff":{"get":{"tags":["generated_pages"],"summary":"Get Generated Page Diff","description":"Return a structured markdown diff between two versions of a page.","operationId":"get_generated_page_diff_api_domains__domain_id__generated_pages__page_id__diff_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"before_version_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before Version Id"}},{"name":"after_version_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Version Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__generated_pages__DiffResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/{page_id}/publish":{"post":{"tags":["generated_pages"],"summary":"Publish Generated Page","description":"Publish a generated page.","operationId":"publish_generated_page_api_domains__domain_id__generated_pages__page_id__publish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/{page_id}/unpublish":{"post":{"tags":["generated_pages"],"summary":"Unpublish Generated Page","description":"Unpublish a generated page.","operationId":"unpublish_generated_page_api_domains__domain_id__generated_pages__page_id__unpublish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/generated-pages/feedback":{"post":{"tags":["generated_pages"],"summary":"Submit Generated Page Feedback","description":"Accept feedback for generated pages and enqueue background processing.\n\nIf page_id is provided, we validate it belongs to this domain. The worker\nwill determine which pages are affected and update them accordingly.","operationId":"submit_generated_page_feedback_api_domains__domain_id__generated_pages_feedback_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageFeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/documents":{"get":{"tags":["content_system"],"summary":"List Content Documents","operationId":"list_content_documents_api_domains__domain_id__content_system_documents_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["content_system"],"summary":"Create Content Document","operationId":"create_content_document_api_domains__domain_id__content_system_documents_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/documents/{document_id}":{"get":{"tags":["content_system"],"summary":"Get Content Document","operationId":"get_content_document_api_domains__domain_id__content_system_documents__document_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["content_system"],"summary":"Update Content Document","operationId":"update_content_document_api_domains__domain_id__content_system_documents__document_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["content_system"],"summary":"Delete Content Document","operationId":"delete_content_document_api_domains__domain_id__content_system_documents__document_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/documents/bulk-action":{"post":{"tags":["content_system"],"summary":"Bulk Content Action","operationId":"bulk_content_action_api_domains__domain_id__content_system_documents_bulk_action_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/preview-html":{"post":{"tags":["content_system"],"summary":"Preview Content Html","operationId":"preview_content_html_api_domains__domain_id__content_system_preview_html_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/documents/{document_id}/preview-html":{"get":{"tags":["content_system"],"summary":"Preview Saved Content Html","operationId":"preview_saved_content_html_api_domains__domain_id__content_system_documents__document_id__preview_html_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/documents/{document_id}/versions":{"get":{"tags":["content_system"],"summary":"List Content Versions","operationId":"list_content_versions_api_domains__domain_id__content_system_documents__document_id__versions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/patch-sets":{"get":{"tags":["content_system"],"summary":"List Content Patch Sets","operationId":"list_content_patch_sets_api_domains__domain_id__content_system_patch_sets_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"}},{"name":"source_material_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Material Id"}},{"name":"upload_batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Batch Id"}},{"name":"account_document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Document Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["content_system"],"summary":"Create Content Patch Set","operationId":"create_content_patch_set_api_domains__domain_id__content_system_patch_sets_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchSetCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/patch-sets/{patch_set_id}":{"get":{"tags":["content_system"],"summary":"Get Content Patch Set","operationId":"get_content_patch_set_api_domains__domain_id__content_system_patch_sets__patch_set_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"patch_set_id","in":"path","required":true,"schema":{"type":"string","title":"Patch Set Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/patch-sets/{patch_set_id}/approve":{"post":{"tags":["content_system"],"summary":"Approve Content Patch Set","operationId":"approve_content_patch_set_api_domains__domain_id__content_system_patch_sets__patch_set_id__approve_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"patch_set_id","in":"path","required":true,"schema":{"type":"string","title":"Patch Set Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/patch-sets/{patch_set_id}/discard":{"post":{"tags":["content_system"],"summary":"Discard Content Patch Set","operationId":"discard_content_patch_set_api_domains__domain_id__content_system_patch_sets__patch_set_id__discard_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"patch_set_id","in":"path","required":true,"schema":{"type":"string","title":"Patch Set Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/documents/{document_id}/publish":{"post":{"tags":["content_system"],"summary":"Publish Content Document","operationId":"publish_content_document_api_domains__domain_id__content_system_documents__document_id__publish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/documents/{document_id}/unpublish":{"post":{"tags":["content_system"],"summary":"Unpublish Content Document","operationId":"unpublish_content_document_api_domains__domain_id__content_system_documents__document_id__unpublish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/documents/{document_id}/undo":{"post":{"tags":["content_system"],"summary":"Rollback Content Document","operationId":"rollback_content_document_api_domains__domain_id__content_system_documents__document_id__undo_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/onboarding":{"post":{"tags":["content_system"],"summary":"Start Content Onboarding","operationId":"start_content_onboarding_api_domains__domain_id__content_system_onboarding_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/onboarding/{workflow_id}":{"get":{"tags":["content_system"],"summary":"Get Content Onboarding Status","operationId":"get_content_onboarding_status_api_domains__domain_id__content_system_onboarding__workflow_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/jobs":{"get":{"tags":["content_system"],"summary":"List Content Jobs","operationId":"list_content_jobs_api_domains__domain_id__content_system_jobs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/editor-status":{"get":{"tags":["content_system"],"summary":"Get Hosted Editor Status","description":"Read-only availability; copied customer DNS does not authorize a preview.","operationId":"get_hosted_editor_status_api_domains__domain_id__content_system_editor_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/homepage":{"get":{"tags":["content_system"],"summary":"Get Homepage","operationId":"get_homepage_api_domains__domain_id__content_system_homepage_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomepageContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["content_system"],"summary":"Save Homepage","operationId":"save_homepage_api_domains__domain_id__content_system_homepage_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomepageContent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/homepage/preview":{"post":{"tags":["content_system"],"summary":"Preview Homepage","operationId":"preview_homepage_api_domains__domain_id__content_system_homepage_preview_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomepageContent"}}}},"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content-system/editor-launch":{"post":{"tags":["content_system"],"summary":"Launch Hosted Editor","description":"Return trusted destinations; authorization never travels in the URL.","operationId":"launch_hosted_editor_api_domains__domain_id__content_system_editor_launch_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/hosting/":{"get":{"tags":["hosting"],"summary":"Get Hosting Config","operationId":"get_hosting_config_api_domains__domain_id__hosting__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["hosting"],"summary":"Create Hosting Config","operationId":"create_hosting_config_api_domains__domain_id__hosting__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["hosting"],"summary":"Update Hosting Config","operationId":"update_hosting_config_api_domains__domain_id__hosting__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/hosting":{"get":{"tags":["hosting"],"summary":"Get Hosting Config","operationId":"get_hosting_config_api_domains__domain_id__hosting_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["hosting"],"summary":"Create Hosting Config","operationId":"create_hosting_config_api_domains__domain_id__hosting_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["hosting"],"summary":"Update Hosting Config","operationId":"update_hosting_config_api_domains__domain_id__hosting_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostingConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/hosting/onboard-subdomain":{"post":{"tags":["hosting"],"summary":"Onboard Subdomain","description":"Create/Upsert the Cloudflare Custom Hostname and return the DNS to set —\nor, when the hostname is already demonstrably serving (a same-label\nre-onboard of a live desk), report it active with nothing to do (D34,\nonboard arm).","operationId":"onboard_subdomain_api_domains__domain_id__hosting_onboard_subdomain_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupHostingRequest","default":{"subdomain":"agents"}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/hosting/verify-subdomain":{"post":{"tags":["hosting"],"summary":"Verify Subdomain Cf","description":"Verify the Cloudflare custom hostname and settle the row's hosting_status\n(D34 liveness predicate). Revives a dead/vanished hostname on the way.\nAlso driven by the desk DNS recheck tick, not just the DNS screens' poll.","operationId":"verify_subdomain_cf_api_domains__domain_id__hosting_verify_subdomain_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubdomainVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/hosting/migrate-hosting":{"post":{"tags":["hosting"],"summary":"Migrate Hosting Provider","operationId":"migrate_hosting_provider_api_domains__domain_id__hosting_migrate_hosting_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"target_provider","in":"query","required":true,"schema":{"type":"string","title":"Target Provider"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/hosting/status":{"get":{"tags":["hosting"],"summary":"Get Hosting Status","description":"Deprecated: use POST /verify-subdomain instead.","operationId":"get_hosting_status_api_domains__domain_id__hosting_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"force_check","in":"query","required":false,"schema":{"type":"boolean","description":"Force re-check of certificate validation","default":false,"title":"Force Check"},"description":"Force re-check of certificate validation"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/media/sync":{"post":{"tags":["aeo"],"summary":"Api Sync Owned Media","operationId":"api_sync_owned_media_api_domains__domain_id__aeo_media_sync_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SyncOwnedMediaIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Api Sync Owned Media Api Domains  Domain Id  Aeo Media Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/business_schema":{"post":{"tags":["aeo"],"summary":"Set Business Schema","operationId":"set_business_schema_api_domains__domain_id__aeo_business_schema_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessSchemaIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["aeo"],"summary":"Get Business Schema","operationId":"get_business_schema_api_domains__domain_id__aeo_business_schema_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/{objective_id}/performance/series":{"get":{"tags":["aeo"],"summary":"Get Objective Performance Series","operationId":"get_objective_performance_series_api_domains__domain_id__aeo_objectives__objective_id__performance_series_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PerformancePointOut"},"title":"Response Get Objective Performance Series Api Domains  Domain Id  Aeo Objectives  Objective Id  Performance Series Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/{objective_id}/performance/series-by-model":{"get":{"tags":["aeo"],"summary":"Get Objective Performance Series By Model","operationId":"get_objective_performance_series_by_model_api_domains__domain_id__aeo_objectives__objective_id__performance_series_by_model_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerformanceSeriesByModelOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/{objective_id}/performance/scores":{"get":{"tags":["aeo"],"summary":"Get Objective Probe Scores","operationId":"get_objective_probe_scores_api_domains__domain_id__aeo_objectives__objective_id__performance_scores_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"analysis_batch_id","in":"query","required":true,"schema":{"type":"string","title":"Analysis Batch Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProbeScoreOut"},"title":"Response Get Objective Probe Scores Api Domains  Domain Id  Aeo Objectives  Objective Id  Performance Scores Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/{objective_id}/probes":{"get":{"tags":["aeo"],"summary":"List Objective Probes","description":"List all probes tagged with this objective.","operationId":"list_objective_probes_api_domains__domain_id__aeo_objectives__objective_id__probes_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectiveProbeOut"},"title":"Response List Objective Probes Api Domains  Domain Id  Aeo Objectives  Objective Id  Probes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["aeo"],"summary":"Create Objective Probe","description":"Create a new probe for an objective (must have < 20 probes).","operationId":"create_objective_probe_api_domains__domain_id__aeo_objectives__objective_id__probes_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveProbeCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveProbeCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe_templates":{"post":{"tags":["aeo"],"summary":"Create Probe Template","operationId":"create_probe_template_api_domains__domain_id__aeo_probe_templates_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeTemplateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["aeo"],"summary":"List Probe Templates","operationId":"list_probe_templates_api_domains__domain_id__aeo_probe_templates_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe_templates/preview":{"post":{"tags":["aeo"],"summary":"Preview Probe Questions","operationId":"preview_probe_questions_api_domains__domain_id__aeo_probe_templates_preview_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes":{"get":{"tags":["aeo"],"summary":"List Probes","operationId":"list_probes_api_domains__domain_id__aeo_probes_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProbeOut"},"title":"Response List Probes Api Domains  Domain Id  Aeo Probes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["aeo"],"summary":"Create Probe Api","operationId":"create_probe_api_api_domains__domain_id__aeo_probes_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes/{probe_id}":{"get":{"tags":["aeo"],"summary":"Get Probe","operationId":"get_probe_api_domains__domain_id__aeo_probes__probe_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","title":"Probe Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["aeo"],"summary":"Update Probe","operationId":"update_probe_api_domains__domain_id__aeo_probes__probe_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","title":"Probe Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["aeo"],"summary":"Delete Probe","operationId":"delete_probe_api_domains__domain_id__aeo_probes__probe_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","title":"Probe Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes/create":{"post":{"tags":["aeo"],"summary":"Create Probe Api Alias","operationId":"create_probe_api_alias_api_domains__domain_id__aeo_probes_create_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeCreateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes/{probe_id}/executions":{"get":{"tags":["aeo"],"summary":"List Probe Executions For Probe","operationId":"list_probe_executions_for_probe_api_domains__domain_id__aeo_probes__probe_id__executions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","title":"Probe Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProbeExecutionOut"},"title":"Response List Probe Executions For Probe Api Domains  Domain Id  Aeo Probes  Probe Id  Executions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe-executions":{"get":{"tags":["aeo"],"summary":"List Probe Executions","operationId":"list_probe_executions_api_domains__domain_id__aeo_probe_executions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProbeExecutionOut"},"title":"Response List Probe Executions Api Domains  Domain Id  Aeo Probe Executions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe-executions/latest":{"get":{"tags":["aeo"],"summary":"List Latest Probe Executions Per Probe","description":"Return the most recent ProbeExecution per Probe within the domain, with optional filters.\n- Filters:\n  - model/models: limit to executions on specific model(s)\n  - objective_id/objective_ids: limit to probes whose tags include the objective_id(s)\n- Sorting:\n  - sort: \"asc\" | \"desc\" on coalesce(executed_at, created_at)","operationId":"list_latest_probe_executions_per_probe_api_domains__domain_id__aeo_probe_executions_latest_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"models","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Models"}},{"name":"objective_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective Id"}},{"name":"objective_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Objective Ids"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"desc","title":"Sort"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProbeExecutionOut"},"title":"Response List Latest Probe Executions Per Probe Api Domains  Domain Id  Aeo Probe Executions Latest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe-executions/models":{"get":{"tags":["aeo"],"summary":"List Models For Probe Executions","description":"Return distinct model names and their execution counts for the domain.","operationId":"list_models_for_probe_executions_api_domains__domain_id__aeo_probe_executions_models_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelCountOut"},"title":"Response List Models For Probe Executions Api Domains  Domain Id  Aeo Probe Executions Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe-executions/by-id/{execution_id}":{"get":{"tags":["aeo"],"summary":"Get Probe Execution","operationId":"get_probe_execution_api_domains__domain_id__aeo_probe_executions_by_id__execution_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeExecutionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe-executions/search":{"get":{"tags":["aeo"],"summary":"Search Probe Executions","operationId":"search_probe_executions_api_domains__domain_id__aeo_probe_executions_search_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProbeSearchOut"},"title":"Response Search Probe Executions Api Domains  Domain Id  Aeo Probe Executions Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe-executions/searches":{"post":{"tags":["aeo"],"summary":"Create Probe Execution Search","operationId":"create_probe_execution_search_api_domains__domain_id__aeo_probe_executions_searches_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeSearchResultOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["aeo"],"summary":"List Probe Execution Searches","operationId":"list_probe_execution_searches_api_domains__domain_id__aeo_probe_executions_searches_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SavedSearchOut"},"title":"Response List Probe Execution Searches Api Domains  Domain Id  Aeo Probe Executions Searches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe-executions/searches/{search_id}":{"get":{"tags":["aeo"],"summary":"Get Probe Execution Search","operationId":"get_probe_execution_search_api_domains__domain_id__aeo_probe_executions_searches__search_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"search_id","in":"path","required":true,"schema":{"type":"string","title":"Search Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"models","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Models"}},{"name":"objective_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Objective Ids"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"desc","title":"Sort"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeSearchResultOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probe-executions/view":{"get":{"tags":["aeo"],"summary":"View Probe Executions","description":"Unified probe executions endpoint.\nBehavior:\n- Accepts a mixture of search/sort/filters and returns enriched ProbeExecutionOut rows.\n- Inputs:\n  - query: optional vector search query (non-persisted). When present, the endpoint uses the domain’s\n    probe vector store to find related execution ids and returns those rows.\n  - search_id: optional id of a previously saved vector search; when supplied, the endpoint returns rows\n    for that saved search id. This enables stable “recent searches” or revisiting prior results.\n  - models: repeated filter on ProbeExecution.model (e.g., models=gpt-5&models=gemini)\n  - objective_ids: repeated filter on ProbeTemplate.objective_id (UUIDs)\n  - sort: asc | desc (on executed_at)\n- Output:\n  - { search_id?: string, results: ProbeExecutionOut[] }\n  - ProbeExecutionOut includes model, question_text, response_text, reasoning, citations, purpose, objective_id, etc.\n- Selection logic:\n  1) If search_id provided: load execution_ids for that search and return those rows with filters/sort applied server-side.\n  2) Else if query provided: perform an immediate vector search (non-persisted), map results to execution_ids, and return rows.\n  3) Else: return the latest execution per probe for the domain, with any filters applied (models/objective_ids).","operationId":"view_probe_executions_api_domains__domain_id__aeo_probe_executions_view_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"search_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Id"}},{"name":"models","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Models"}},{"name":"objective_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Objective Ids"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"desc","title":"Sort"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProbeExecutionQueryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/run_domain_analysis":{"post":{"tags":["aeo"],"summary":"Api Run Domain Analysis","operationId":"api_run_domain_analysis_api_domains__domain_id__aeo_run_domain_analysis_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunDomainAnalysisIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Api Run Domain Analysis Api Domains  Domain Id  Aeo Run Domain Analysis Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes/{probe_id}/run":{"post":{"tags":["aeo"],"summary":"Api Run Probe","operationId":"api_run_probe_api_domains__domain_id__aeo_probes__probe_id__run_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","title":"Probe Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunLaneBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Api Run Probe Api Domains  Domain Id  Aeo Probes  Probe Id  Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/{objective_id}/analyze":{"post":{"tags":["aeo"],"summary":"Api Run Objective Analysis","operationId":"api_run_objective_analysis_api_domains__domain_id__aeo_objectives__objective_id__analyze_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunObjectiveBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Api Run Objective Analysis Api Domains  Domain Id  Aeo Objectives  Objective Id  Analyze Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes/vector_store/rebuild_latest":{"post":{"tags":["aeo"],"summary":"Api Rebuild Latest Probe Store","operationId":"api_rebuild_latest_probe_store_api_domains__domain_id__aeo_probes_vector_store_rebuild_latest_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RebuildProbeStoreIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes/vector_store/from_executions":{"post":{"tags":["aeo"],"summary":"Api Build Probe Store From Executions","operationId":"api_build_probe_store_from_executions_api_domains__domain_id__aeo_probes_vector_store_from_executions_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildStoreFromExecsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/media/vector_store/rebuild":{"post":{"tags":["aeo"],"summary":"Api Rebuild Media Vector Store","operationId":"api_rebuild_media_vector_store_api_domains__domain_id__aeo_media_vector_store_rebuild_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RebuildMediaStoreIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes/run_all":{"post":{"tags":["aeo"],"summary":"Api Run All Probes","operationId":"api_run_all_probes_api_domains__domain_id__aeo_probes_run_all_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunAllProbesIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/probes/create_for_domain":{"post":{"tags":["aeo"],"summary":"Api Create Probes For Domain","operationId":"api_create_probes_for_domain_api_domains__domain_id__aeo_probes_create_for_domain_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateProbesForDomainIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/analyze_latest_batch":{"post":{"tags":["aeo"],"summary":"Api Analyze Latest Probe Batch","operationId":"api_analyze_latest_probe_batch_api_domains__domain_id__aeo_objectives_analyze_latest_batch_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunLaneBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Api Analyze Latest Probe Batch Api Domains  Domain Id  Aeo Objectives Analyze Latest Batch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/{objective_id}/analysis-batches":{"get":{"tags":["aeo"],"summary":"List Objective Analysis Batches","operationId":"list_objective_analysis_batches_api_domains__domain_id__aeo_objectives__objective_id__analysis_batches_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectiveAnalysisBatchOut"},"title":"Response List Objective Analysis Batches Api Domains  Domain Id  Aeo Objectives  Objective Id  Analysis Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/{objective_id}/analysis-batches/{batch_id}":{"get":{"tags":["aeo"],"summary":"Get Objective Analysis Batch","operationId":"get_objective_analysis_batch_api_domains__domain_id__aeo_objectives__objective_id__analysis_batches__batch_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveAnalysisBatchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/analysis-batches/{batch_id}/actions":{"get":{"tags":["aeo"],"summary":"List Actions For Analysis Batch","operationId":"list_actions_for_analysis_batch_api_domains__domain_id__aeo_objectives_analysis_batches__batch_id__actions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActionOut"},"title":"Response List Actions For Analysis Batch Api Domains  Domain Id  Aeo Objectives Analysis Batches  Batch Id  Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/analysis-batches/{batch_id}/insights":{"get":{"tags":["aeo"],"summary":"List Analysis Insights For Batch","operationId":"list_analysis_insights_for_batch_api_domains__domain_id__aeo_objectives_analysis_batches__batch_id__insights_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalysisInsightOut"},"title":"Response List Analysis Insights For Batch Api Domains  Domain Id  Aeo Objectives Analysis Batches  Batch Id  Insights Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/analysis-batches/{batch_id}/analysis-actions":{"get":{"tags":["aeo"],"summary":"List Analysis Actions For Batch","operationId":"list_analysis_actions_for_batch_api_domains__domain_id__aeo_objectives_analysis_batches__batch_id__analysis_actions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalysisActionOut"},"title":"Response List Analysis Actions For Batch Api Domains  Domain Id  Aeo Objectives Analysis Batches  Batch Id  Analysis Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/analysis-actions":{"get":{"tags":["aeo"],"summary":"List Analysis Actions For Domain","operationId":"list_analysis_actions_for_domain_api_domains__domain_id__aeo_analysis_actions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"objective_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective Id"}},{"name":"analysis_batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Batch Id"}},{"name":"probe_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Id"}},{"name":"probe_execution_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Execution Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalysisActionOut"},"title":"Response List Analysis Actions For Domain Api Domains  Domain Id  Aeo Analysis Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["aeo"],"summary":"Create Analysis Action","operationId":"create_analysis_action_api_domains__domain_id__aeo_analysis_actions_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisActionCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisActionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/analysis-actions/{action_id}":{"patch":{"tags":["aeo"],"summary":"Update Analysis Action","operationId":"update_analysis_action_api_domains__domain_id__aeo_analysis_actions__action_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisActionUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisActionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/analysis-batches/{batch_id}/generated-pages":{"get":{"tags":["aeo"],"summary":"Get Generated Pages For Analysis Batch","description":"Summarize GeneratedPages that were created or edited during a specific\nObjectiveAnalysisBatch.\n\nThe ObjectiveAnalysisBatch.extra JSONB field may contain a nested\n\"generated_pages\" block with:\n  - created_page_ids: [page_uuid, ...]\n  - edited_page_ids: [page_uuid, ...]\n  - workspace_add: raw workspace_add entries from the analysis call\n  - workspace_chat_id: optional chat id (for future use)","operationId":"get_generated_pages_for_analysis_batch_api_domains__domain_id__aeo_objectives_analysis_batches__batch_id__generated_pages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveGeneratedPagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aeo/objectives/analysis-batches/{batch_id}/generated-pages/{page_id}/mark-deleted":{"post":{"tags":["aeo"],"summary":"Mark Generated Page Deleted For Batch","description":"Mark a GeneratedPage as deleted (or not) for a given ObjectiveAnalysisBatch.\n\nThis does NOT delete the underlying GeneratedPage record; it only records\nthe user's decision so the per-batch UI can continue to show the page as\ndeleted even after the DB row is gone.","operationId":"mark_generated_page_deleted_for_batch_api_domains__domain_id__aeo_objectives_analysis_batches__batch_id__generated_pages__page_id__mark_deleted_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedPageDeleteMark"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/onboarding/domain-research-status":{"get":{"tags":["onboarding"],"summary":"Domain Research Status","description":"Return minimal progress for onboarding research.\n\nWe only gate on Domain.description being populated by the domain_ingestion task.\nBranding scrape is shown as a parallel indicator if present.","operationId":"domain_research_status_api_domains__domain_id__onboarding_domain_research_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/onboarding/objectives-onboarding-status":{"get":{"tags":["onboarding"],"summary":"Objectives Onboarding Status","description":"Return status of multi-objective onboarding flow.\n\nTracks:\n- Domain research completion\n- Objectives created\n- Probes created for objectives\n- Probe execution completion\n- Objective analyses completion\n- Initial content generation","operationId":"objectives_onboarding_status_api_domains__domain_id__onboarding_objectives_onboarding_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Objectives Onboarding Status Api Domains  Domain Id  Onboarding Objectives Onboarding Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/objectives/":{"get":{"tags":["objectives"],"summary":"List Objectives","operationId":"list_objectives_api_domains__domain_id__objectives__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectiveOut"},"title":"Response List Objectives Api Domains  Domain Id  Objectives  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["objectives"],"summary":"Create Objective","operationId":"create_objective_api_domains__domain_id__objectives__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/objectives":{"get":{"tags":["objectives"],"summary":"List Objectives","operationId":"list_objectives_api_domains__domain_id__objectives_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectiveOut"},"title":"Response List Objectives Api Domains  Domain Id  Objectives Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["objectives"],"summary":"Create Objective","operationId":"create_objective_api_domains__domain_id__objectives_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/objectives/{objective_id}":{"patch":{"tags":["objectives"],"summary":"Update Objective","operationId":"update_objective_api_domains__domain_id__objectives__objective_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectiveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["objectives"],"summary":"Delete Objective","operationId":"delete_objective_api_domains__domain_id__objectives__objective_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/objectives/suggest-initial":{"get":{"tags":["objectives"],"summary":"Suggest Initial Objectives","description":"Suggest 2 objectives based on domain description (first objective is always \"Get more traffic from AI\").\nReturns array of 2 suggested objectives for positions 2 and 3.","operationId":"suggest_initial_objectives_api_domains__domain_id__objectives_suggest_initial_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SuggestedObjective"},"title":"Response Suggest Initial Objectives Api Domains  Domain Id  Objectives Suggest Initial Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/objectives/save-initial-batch":{"post":{"tags":["objectives"],"summary":"Save Initial Objectives Batch","description":"Save 3 objectives and kick off multi-objective onboarding orchestrator.","operationId":"save_initial_objectives_batch_api_domains__domain_id__objectives_save_initial_batch_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveInitialObjectivesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveInitialObjectivesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/objectives/overview":{"get":{"tags":["objectives"],"summary":"Get Objectives Overview","operationId":"get_objectives_overview_api_domains__domain_id__objectives_overview_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectiveOverviewRow"},"title":"Response Get Objectives Overview Api Domains  Domain Id  Objectives Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/jobs/active":{"get":{"tags":["jobs"],"summary":"List Active Jobs","operationId":"list_active_jobs_api_domains__domain_id__jobs_active_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobSummary"},"title":"Response List Active Jobs Api Domains  Domain Id  Jobs Active Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","operationId":"get_job_api_domains__domain_id__jobs__job_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/jobs/{job_id}/progress":{"get":{"tags":["jobs"],"summary":"Get Job Progress","operationId":"get_job_progress_api_domains__domain_id__jobs__job_id__progress_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Cursor"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/jobs/{job_id}/stream":{"get":{"tags":["jobs"],"summary":"Stream Job Progress","description":"Stream job progress events as Server-Sent Events (SSE).\n\nAuth: same as other Jobs endpoints (Bearer token), so clients should use fetch()\nstreaming rather than EventSource (which cannot set custom headers).","operationId":"stream_job_progress_api_domains__domain_id__jobs__job_id__stream_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Cursor"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/jobs/{job_id}/abort":{"post":{"tags":["jobs"],"summary":"Abort Job","operationId":"abort_job_api_domains__domain_id__jobs__job_id__abort_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbortResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/jobs/test":{"post":{"tags":["jobs"],"summary":"Start Test Job","description":"Enqueue a synthetic test job that emits progress for easy testing.\n\nReturns both a public task_id and the underlying job_id (message_id).\nClients should prefer job_id for Jobs API calls; task_id is provided for legacy flows.","operationId":"start_test_job_api_domains__domain_id__jobs_test_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartTestJobRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartTestJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-runs/{run_id}":{"get":{"tags":["analysis-runs"],"summary":"Get Analysis Run","operationId":"get_analysis_run_api_domains__domain_id__analysis_runs__run_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisRunSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-runs/{run_id}/progress":{"get":{"tags":["analysis-runs"],"summary":"Get Analysis Run Progress","operationId":"get_analysis_run_progress_api_domains__domain_id__analysis_runs__run_id__progress_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Cursor"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisRunProgress"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-runs/{run_id}/stream":{"get":{"tags":["analysis-runs"],"summary":"Stream Analysis Run","operationId":"stream_analysis_run_api_domains__domain_id__analysis_runs__run_id__stream_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Cursor"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-runs/{run_id}/abort":{"post":{"tags":["analysis-runs"],"summary":"Abort Analysis Run","operationId":"abort_analysis_run_api_domains__domain_id__analysis_runs__run_id__abort_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbortAnalysisRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/open-probe-improve/{probe_id}":{"post":{"tags":["chat"],"summary":"Create Chat To Improve Probe","description":"Create a canonical research chat seeded with probe + rubric + latest\nscored executions. If a message is provided, enqueue the first turn\nimmediately; otherwise seed the chat with a starter assistant reply.","operationId":"create_chat_to_improve_probe_api_domains__domain_id__chat_open_probe_improve__probe_id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"probe_id","in":"path","required":true,"schema":{"type":"string","title":"Probe Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateImproveProbeChatRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImproveProbeChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat":{"get":{"tags":["chat"],"summary":"List Chats","operationId":"list_chats_api_domains__domain_id__chat_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__chat__ChatOut"},"title":"Response List Chats Api Domains  Domain Id  Chat Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat"],"summary":"Create Chat","operationId":"create_chat_api_domains__domain_id__chat_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateChatRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/{chat_id}/messages":{"get":{"tags":["chat"],"summary":"List Messages","operationId":"list_messages_api_domains__domain_id__chat__chat_id__messages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__chat__MessageOut"},"title":"Response List Messages Api Domains  Domain Id  Chat  Chat Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat"],"summary":"Create Message","operationId":"create_message_api_domains__domain_id__chat__chat_id__messages_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"lane","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMessageRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnqueuedMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/{chat_id}":{"patch":{"tags":["chat"],"summary":"Update Chat","operationId":"update_chat_api_domains__domain_id__chat__chat_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__chat__ChatOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat"],"summary":"Delete Chat","operationId":"delete_chat_api_domains__domain_id__chat__chat_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/{chat_id}/state":{"post":{"tags":["chat"],"summary":"Update Chat State","operationId":"update_chat_state_api_domains__domain_id__chat__chat_id__state_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatStateUpdateRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/open-probe/{execution_id}":{"post":{"tags":["chat"],"summary":"Create Chat With Probe","operationId":"create_chat_with_probe_api_domains__domain_id__chat_open_probe__execution_id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals":{"post":{"tags":["chat_generated_pages"],"summary":"Create Proposal","description":"Create a chat-scoped proposal for a GeneratedPage creation or edit.","operationId":"create_proposal_api_domains__domain_id__chat_generated_pages_proposals_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["chat_generated_pages"],"summary":"List Proposals","operationId":"list_proposals_api_domains__domain_id__chat_generated_pages_proposals_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"page_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProposalResponse"},"title":"Response List Proposals Api Domains  Domain Id  Chat Generated Pages Proposals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals/{proposal_id}":{"get":{"tags":["chat_generated_pages"],"summary":"Get Proposal","operationId":"get_proposal_api_domains__domain_id__chat_generated_pages_proposals__proposal_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals/{proposal_id}/reject":{"post":{"tags":["chat_generated_pages"],"summary":"Reject Proposal","operationId":"reject_proposal_api_domains__domain_id__chat_generated_pages_proposals__proposal_id__reject_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals/{proposal_id}/revise":{"post":{"tags":["chat_generated_pages"],"summary":"Revise Proposal","operationId":"revise_proposal_api_domains__domain_id__chat_generated_pages_proposals__proposal_id__revise_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalRevise"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals/{proposal_id}/apply":{"post":{"tags":["chat_generated_pages"],"summary":"Apply Proposal","description":"Enqueue apply for this proposal.\nApplying will publish the resulting page and refresh sitemap + overview.","operationId":"apply_proposal_api_domains__domain_id__chat_generated_pages_proposals__proposal_id__apply_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals/{proposal_id}/preview-html":{"get":{"tags":["chat_generated_pages"],"summary":"Preview Proposal Html","description":"Build transient HTML for a proposal:\n  - For creation: use proposed_markdown (or revised_markdown)\n  - For edit: apply (revised_)anchor_text/new_text to current markdown","operationId":"preview_proposal_html_api_domains__domain_id__chat_generated_pages_proposals__proposal_id__preview_html_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"highlight","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Highlight"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals/{proposal_id}/diff":{"get":{"tags":["chat_generated_pages"],"summary":"Get Proposal Diff","description":"Return unified markdown diff hunks:\n- creation: baseline \"\" vs proposed_markdown (or revised)\n- edit: baseline page.markdown_content vs proposal-applied markdown (revised takes precedence)","operationId":"get_proposal_diff_api_domains__domain_id__chat_generated_pages_proposals__proposal_id__diff_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__chat_generated_pages__DiffResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals/{proposal_id}/generate":{"post":{"tags":["chat_generated_pages"],"summary":"Generate Proposal Content","description":"Enqueue generation of initial proposal content from a freeform strategy_text.","operationId":"generate_proposal_content_api_domains__domain_id__chat_generated_pages_proposals__proposal_id__generate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalGenerate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/proposals/{proposal_id}/refine":{"post":{"tags":["chat_generated_pages"],"summary":"Refine Proposal Content","description":"Enqueue refinement of an existing proposal given refinement_text.","operationId":"refine_proposal_content_api_domains__domain_id__chat_generated_pages_proposals__proposal_id__refine_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalRefine"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/published-url-map":{"get":{"tags":["chat_generated_pages"],"summary":"Get Published Url Map","description":"Build a published URL → page-id map for the chat model/UI context.\nUses DomainHostingConfig when present, otherwise falls back to host/ai.","operationId":"get_published_url_map_api_domains__domain_id__chat_generated_pages_published_url_map_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UrlMapItem"},"title":"Response Get Published Url Map Api Domains  Domain Id  Chat Generated Pages Published Url Map Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/status":{"post":{"tags":["chat_generated_pages"],"summary":"Get Status For Visible Cards","operationId":"get_status_for_visible_cards_api_domains__domain_id__chat_generated_pages_status_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StatusItem"},"title":"Response Get Status For Visible Cards Api Domains  Domain Id  Chat Generated Pages Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/drafts/{page_id}/publish":{"post":{"tags":["chat_generated_pages"],"summary":"Publish Draft Page","operationId":"publish_draft_page_api_domains__domain_id__chat_generated_pages_drafts__page_id__publish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/open-pages":{"get":{"tags":["chat_generated_pages"],"summary":"List Open Pages For Chat","description":"Return the canonical set of pages that are considered open in the\nWorkspace Content tab for this chat.","operationId":"list_open_pages_for_chat_api_domains__domain_id__chat_generated_pages_open_pages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"query","required":true,"schema":{"type":"string","description":"Chat ID whose open pages to list","title":"Chat Id"},"description":"Chat ID whose open pages to list"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenPageItem"},"title":"Response List Open Pages For Chat Api Domains  Domain Id  Chat Generated Pages Open Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat_generated_pages"],"summary":"Set Open Pages For Chat","description":"Upsert the set of pages that are considered open for this chat.\nThe provided list replaces the previous set for the chat.","operationId":"set_open_pages_for_chat_api_domains__domain_id__chat_generated_pages_open_pages_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPageBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpenPageItem"},"title":"Response Set Open Pages For Chat Api Domains  Domain Id  Chat Generated Pages Open Pages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/buffers/sync":{"post":{"tags":["chat_generated_pages"],"summary":" Sync Buffers For Chat Alias","operationId":"_sync_buffers_for_chat_alias_api_domains__domain_id__chat_generated_pages_buffers_sync_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BufferSyncBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/buffers/{page_id}":{"get":{"tags":["chat_generated_pages"],"summary":"Get Buffer For Page","operationId":"get_buffer_for_page_api_domains__domain_id__chat_generated_pages_buffers__page_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional chat ID for bookkeeping; buffer identity is per-page.","title":"Chat Id"},"description":"Optional chat ID for bookkeeping; buffer identity is per-page."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BufferGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["chat_generated_pages"],"summary":"Put Buffer For Page","operationId":"put_buffer_for_page_api_domains__domain_id__chat_generated_pages_buffers__page_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional chat ID for bookkeeping; buffer identity is per-page.","title":"Chat Id"},"description":"Optional chat ID for bookkeeping; buffer identity is per-page."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BufferPutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/buffers/{page_id}/diff":{"get":{"tags":["chat_generated_pages"],"summary":"Get Buffer Diff For Page","operationId":"get_buffer_diff_for_page_api_domains__domain_id__chat_generated_pages_buffers__page_id__diff_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"query","required":true,"schema":{"type":"string","description":"Chat ID scoping the buffer","title":"Chat Id"},"description":"Chat ID scoping the buffer"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__chat_generated_pages__DiffResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/buffers/{page_id}/preview-html":{"get":{"tags":["chat_generated_pages"],"summary":"Preview Buffer Html For Page","description":"Build transient HTML as if the current chat buffer were applied to the page.\n\nThis does NOT persist any changes – it simply renders:\n  - the page's current metadata (title, slug, page_type, meta_description)\n  - with markdown_content sourced from the buffer (or baseline if no buffer).","operationId":"preview_buffer_html_for_page_api_domains__domain_id__chat_generated_pages_buffers__page_id__preview_html_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional chat ID for bookkeeping; buffer identity is per-page.","title":"Chat Id"},"description":"Optional chat ID for bookkeeping; buffer identity is per-page."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/buffers":{"get":{"tags":["chat_generated_pages"],"summary":"List Buffers For Chat","description":"List all workspace buffers (ChatWorkspaceFS) for this chat.","operationId":"list_buffers_for_chat_api_domains__domain_id__chat_generated_pages_buffers_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"query","required":true,"schema":{"type":"string","description":"Chat ID scoping the buffers","title":"Chat Id"},"description":"Chat ID scoping the buffers"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BufferSummary"},"title":"Response List Buffers For Chat Api Domains  Domain Id  Chat Generated Pages Buffers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/buffers/{page_id}/apply":{"post":{"tags":["chat_generated_pages"],"summary":"Apply Buffer To Page","operationId":"apply_buffer_to_page_api_domains__domain_id__chat_generated_pages_buffers__page_id__apply_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional chat ID for bookkeeping; buffer identity is per-page.","title":"Chat Id"},"description":"Optional chat ID for bookkeeping; buffer identity is per-page."},{"name":"validate_links","in":"query","required":false,"schema":{"type":"boolean","description":"If true, validate and fix broken links before applying.","default":true,"title":"Validate Links"},"description":"If true, validate and fix broken links before applying."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/chat/generated-pages/buffers/{page_id}/discard":{"post":{"tags":["chat_generated_pages"],"summary":"Discard Buffer For Page","operationId":"discard_buffer_for_page_api_domains__domain_id__chat_generated_pages_buffers__page_id__discard_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"chat_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional chat ID for bookkeeping; buffer identity is per-page.","title":"Chat Id"},"description":"Optional chat ID for bookkeeping; buffer identity is per-page."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/suggest-monitors":{"post":{"tags":["monitoring"],"summary":"Suggest Monitors","description":"Suggest 3 evaluation/buying criteria for a product using LLM.\nReturns specific criteria that customers might use when choosing products.","operationId":"suggest_monitors_api_domains__domain_id__monitoring_suggest_monitors_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestCriteriaRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestCriteriaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/generate-name":{"post":{"tags":["monitoring"],"summary":"Generate Monitor Name","description":"Generate a short 3-5 word monitor name from a criteria description.\nUses gpt-5-mini for fast response times.\n\nSupports two modes:\n1. New: criteria_description (free text) -> short name\n2. Legacy: selections (category->value map) -> descriptive name","operationId":"generate_monitor_name_api_domains__domain_id__monitoring_generate_name_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateNameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateNameResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring":{"get":{"tags":["monitoring"],"summary":"Get Monitoring Config","description":"Get all monitoring categories, values, and rows for a domain.","operationId":"get_monitoring_config_api_domains__domain_id__monitoring_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorConfigOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/products-and-competitors":{"get":{"tags":["monitoring"],"summary":"Get Products And Competitors","description":"Get all domain products and competitors with their products.","operationId":"get_products_and_competitors_api_domains__domain_id__monitoring_products_and_competitors_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsAndCompetitorsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/products":{"get":{"tags":["monitoring"],"summary":"Get Products","description":"Get all domain products.","operationId":"get_products_api_domains__domain_id__monitoring_products_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DomainProductOut"},"title":"Response Get Products Api Domains  Domain Id  Monitoring Products Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["monitoring"],"summary":"Create Product","description":"Create a new domain product.","operationId":"create_product_api_domains__domain_id__monitoring_products_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainProductCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/products/{product_id}":{"put":{"tags":["monitoring"],"summary":"Update Product","description":"Update a domain product.","operationId":"update_product_api_domains__domain_id__monitoring_products__product_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainProductUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["monitoring"],"summary":"Delete Product","description":"Delete a domain product.","operationId":"delete_product_api_domains__domain_id__monitoring_products__product_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/competitors":{"get":{"tags":["monitoring"],"summary":"Get Competitors","description":"Get all competitors with their products.","operationId":"get_competitors_api_domains__domain_id__monitoring_competitors_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__monitoring__CompetitorOut"},"title":"Response Get Competitors Api Domains  Domain Id  Monitoring Competitors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["monitoring"],"summary":"Create Competitor","description":"Create a new competitor, optionally with products.","operationId":"create_competitor_api_domains__domain_id__monitoring_competitors_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__monitoring__CompetitorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/competitors/{competitor_id}":{"put":{"tags":["monitoring"],"summary":"Update Competitor","description":"Update a competitor.","operationId":"update_competitor_api_domains__domain_id__monitoring_competitors__competitor_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__monitoring__CompetitorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["monitoring"],"summary":"Delete Competitor","description":"Delete a competitor and all their products.","operationId":"delete_competitor_api_domains__domain_id__monitoring_competitors__competitor_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/competitors/{competitor_id}/products":{"post":{"tags":["monitoring"],"summary":"Create Competitor Product","description":"Add a product to a competitor.","operationId":"create_competitor_product_api_domains__domain_id__monitoring_competitors__competitor_id__products_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorProductCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompetitorProductOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/competitors/{competitor_id}/products/{product_id}":{"delete":{"tags":["monitoring"],"summary":"Delete Competitor Product","description":"Delete a competitor's product.","operationId":"delete_competitor_product_api_domains__domain_id__monitoring_competitors__competitor_id__products__product_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"competitor_id","in":"path","required":true,"schema":{"type":"string","title":"Competitor Id"}},{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/categories":{"post":{"tags":["monitoring"],"summary":"Create Category","description":"Create a new monitor category.","operationId":"create_category_api_domains__domain_id__monitoring_categories_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/categories/{category_id}":{"put":{"tags":["monitoring"],"summary":"Update Category","description":"Update a monitor category.","operationId":"update_category_api_domains__domain_id__monitoring_categories__category_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","title":"Category Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["monitoring"],"summary":"Delete Category","description":"Delete a monitor category and all its values. Also removes any rows that reference values from this category.","operationId":"delete_category_api_domains__domain_id__monitoring_categories__category_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","title":"Category Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/categories/{category_id}/values":{"post":{"tags":["monitoring"],"summary":"Create Value","description":"Add a value to a category.","operationId":"create_value_api_domains__domain_id__monitoring_categories__category_id__values_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","title":"Category Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryValueOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/categories/{category_id}/values/{value_id}":{"put":{"tags":["monitoring"],"summary":"Update Value","description":"Update a category value.","operationId":"update_value_api_domains__domain_id__monitoring_categories__category_id__values__value_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","title":"Category Id"}},{"name":"value_id","in":"path","required":true,"schema":{"type":"string","title":"Value Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryValueOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["monitoring"],"summary":"Delete Value","description":"Delete a category value. Also removes any rows that reference this value.","operationId":"delete_value_api_domains__domain_id__monitoring_categories__category_id__values__value_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","title":"Category Id"}},{"name":"value_id","in":"path","required":true,"schema":{"type":"string","title":"Value Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows":{"post":{"tags":["monitoring"],"summary":"Create Rows","description":"Create one or more monitor rows and automatically start the research agent (v2).","operationId":"create_rows_api_domains__domain_id__monitoring_rows_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsCreateBulk"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__monitoring__MonitorRowOut"},"title":"Response Create Rows Api Domains  Domain Id  Monitoring Rows Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows/{row_id}":{"delete":{"tags":["monitoring"],"summary":"Delete Row","description":"Delete a monitor row.","operationId":"delete_row_api_domains__domain_id__monitoring_rows__row_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows/{row_id}/run":{"post":{"tags":["monitoring"],"summary":"Run Monitor Row Endpoint","description":"Trigger the research agent for a monitor row.\nReturns a job_id that can be used to track progress.","operationId":"run_monitor_row_endpoint_api_domains__domain_id__monitoring_rows__row_id__run_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/onboard":{"post":{"tags":["monitoring"],"summary":"Onboard Monitoring Endpoint","description":"Trigger AI-powered onboarding to auto-populate monitoring categories.\n\nUses an LLM with web search to:\n- Extract competitive products\n- Generate buyer roles (job titles)\n- Generate customer profiles (company types)\n- Generate product categories\n- Create default measures\n\nReturns a job_id for progress tracking.","operationId":"onboard_monitoring_endpoint_api_domains__domain_id__monitoring_onboard_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows/{row_id}/research":{"post":{"tags":["monitoring"],"summary":"Run Monitor Research Endpoint","description":"Trigger the research agent for a monitor row.\n\nUses a GPT-5.2 orchestrator to investigate how each AI model (ChatGPT, Gemini, Perplexity)\nperceives each competitor, producing scores, reasoning, and actionable insights.\n\nReturns a job_id that can be used to track progress.","operationId":"run_monitor_research_endpoint_api_domains__domain_id__monitoring_rows__row_id__research_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows/{row_id}/research-scores":{"get":{"tags":["monitoring"],"summary":"Get Research Scores","description":"Get current research scores for a monitor row, organized by competitor.\nUses the new research agent approach (ResearchRun).","operationId":"get_research_scores_api_domains__domain_id__monitoring_rows__row_id__research_scores_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchRowScoresResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows/{row_id}/research-runs":{"get":{"tags":["monitoring"],"summary":"Get Research Runs","description":"Get detailed research runs for a monitor row, optionally filtered by competitor or model.\nIncludes conversation turns and full insights.","operationId":"get_research_runs_api_domains__domain_id__monitoring_rows__row_id__research_runs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"competitor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Competitor Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResearchRunDetailOut"},"title":"Response Get Research Runs Api Domains  Domain Id  Monitoring Rows  Row Id  Research Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows/{row_id}/metacognitive":{"get":{"tags":["monitoring"],"summary":"Get Metacognitive Result","description":"Get the metacognitive analysis result for a monitor row.\nReturns the most recent metacognitive result if available.","operationId":"get_metacognitive_result_api_domains__domain_id__monitoring_rows__row_id__metacognitive_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MetacogResultOut"},{"type":"null"}],"title":"Response Get Metacognitive Result Api Domains  Domain Id  Monitoring Rows  Row Id  Metacognitive Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/run-dates":{"get":{"tags":["monitoring"],"summary":"Get Run Dates","description":"Get available dates when research runs completed for this domain's monitors.\nReturns distinct dates sorted newest first, with UTC timestamps for\nclient-side local timezone formatting.","operationId":"get_run_dates_api_domains__domain_id__monitoring_run_dates_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RunDateOut"},"title":"Response Get Run Dates Api Domains  Domain Id  Monitoring Run Dates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows/{row_id}/scores-v2-at":{"get":{"tags":["monitoring"],"summary":"Get Row Scores V2 At Date","description":"Get scores for a monitor row at a specific historical date.\nReturns the most recent completed run per model on or before the given date.","operationId":"get_row_scores_v2_at_date_api_domains__domain_id__monitoring_rows__row_id__scores_v2_at_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"date","in":"query","required":true,"schema":{"type":"string","description":"Date in YYYY-MM-DD format","title":"Date"},"description":"Date in YYYY-MM-DD format"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RowScoresV2HistoricalOut"},{"type":"null"}],"title":"Response Get Row Scores V2 At Date Api Domains  Domain Id  Monitoring Rows  Row Id  Scores V2 At Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/rows/{row_id}/score-timeseries":{"get":{"tags":["monitoring"],"summary":"Get Row Score Timeseries","description":"Get time-series score data for a monitor row.\nReturns score points over time per competitor, suitable for line charts.\n\nWhen model=\"all\", averages across models at each time point.\nWhen a specific model is given, returns only that model's scores.","operationId":"get_row_score_timeseries_api_domains__domain_id__monitoring_rows__row_id__score_timeseries_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"type":"string","description":"Model filter: chatgpt, gemini, perplexity, or all","default":"all","title":"Model"},"description":"Model filter: chatgpt, gemini, perplexity, or all"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowScoreTimeSeriesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/insights/{metacog_id}/{idea_index}/actions":{"get":{"tags":["monitoring"],"summary":"Get Insight Actions","description":"Get all actions for a specific insight within a metacognitive result.","operationId":"get_insight_actions_api_domains__domain_id__monitoring_insights__metacog_id___idea_index__actions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metacog_id","in":"path","required":true,"schema":{"type":"string","title":"Metacog Id"}},{"name":"idea_index","in":"path","required":true,"schema":{"type":"integer","title":"Idea Index"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightActionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/monitoring/insights/{metacog_id}/{idea_index}/actions/refresh":{"post":{"tags":["monitoring"],"summary":"Refresh Insight Actions","description":"Generate new actions for a specific insight and append them to existing actions.","operationId":"refresh_insight_actions_api_domains__domain_id__monitoring_insights__metacog_id___idea_index__actions_refresh_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metacog_id","in":"path","required":true,"schema":{"type":"string","title":"Metacog Id"}},{"name":"idea_index","in":"path","required":true,"schema":{"type":"integer","title":"Idea Index"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightActionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/brand-goals/suggest":{"post":{"tags":["brand-goals"],"summary":"Suggest Goals","description":"Suggest 3 brand goals using LLM based on domain context.","operationId":"suggest_goals_api_domains__domain_id__brand_goals_suggest_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestGoalsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/brand-goals":{"get":{"tags":["brand-goals"],"summary":"List Brand Goals","description":"Get all brand goals for a domain.","operationId":"list_brand_goals_api_domains__domain_id__brand_goals_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandGoalListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["brand-goals"],"summary":"Create Brand Goal","description":"Create a new brand goal and automatically start research.","operationId":"create_brand_goal_api_domains__domain_id__brand_goals_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandGoalCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__brand_goals__BrandGoalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/brand-goals/{goal_id}":{"get":{"tags":["brand-goals"],"summary":"Get Brand Goal","description":"Get a brand goal with its metacognitive analysis result.","operationId":"get_brand_goal_api_domains__domain_id__brand_goals__goal_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalWithMetacogOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["brand-goals"],"summary":"Delete Brand Goal","description":"Delete a brand goal and all related data.","operationId":"delete_brand_goal_api_domains__domain_id__brand_goals__goal_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/brand-goals/{goal_id}/run":{"post":{"tags":["brand-goals"],"summary":"Run Goal Research","description":"Trigger (re-)running research for a brand goal.","operationId":"run_goal_research_api_domains__domain_id__brand_goals__goal_id__run_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunGoalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/brand-goals/{goal_id}/metacognitive":{"get":{"tags":["brand-goals"],"summary":"Get Goal Metacognitive","description":"Get the metacognitive analysis result for a brand goal.","operationId":"get_goal_metacognitive_api_domains__domain_id__brand_goals__goal_id__metacognitive_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MetacognitiveResultOut"},{"type":"null"}],"title":"Response Get Goal Metacognitive Api Domains  Domain Id  Brand Goals  Goal Id  Metacognitive Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/brand-goals/{goal_id}/research-runs":{"get":{"tags":["brand-goals"],"summary":"Get Goal Research Runs","description":"Get detailed research runs for a brand goal.","operationId":"get_goal_research_runs_api_domains__domain_id__brand_goals__goal_id__research_runs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResearchRunOut"},"title":"Response Get Goal Research Runs Api Domains  Domain Id  Brand Goals  Goal Id  Research Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/influential-media/runs":{"get":{"tags":["influential-media"],"summary":"List Runs","description":"List all influential media analysis runs for the domain.","operationId":"list_runs_api_domains__domain_id__influential_media_runs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/influential-media/runs/{run_id}":{"get":{"tags":["influential-media"],"summary":"Get Run","description":"Get a specific influential media analysis run with full results.","operationId":"get_run_api_domains__domain_id__influential_media_runs__run_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfluentialMediaRunDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/influential-media/latest":{"get":{"tags":["influential-media"],"summary":"Get Latest Run","description":"Get the most recent completed influential media analysis run.","operationId":"get_latest_run_api_domains__domain_id__influential_media_latest_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InfluentialMediaRunDetailOut"},{"type":"null"}],"title":"Response Get Latest Run Api Domains  Domain Id  Influential Media Latest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/influential-media/run":{"post":{"tags":["influential-media"],"summary":"Trigger Analysis","description":"Trigger a new influential media analysis run.\n\nThis creates a new run record and enqueues a background task\nto aggregate citations and run the metacognitive analysis.","operationId":"trigger_analysis_api_domains__domain_id__influential_media_run_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__influential_media__TriggerAnalysisRequest","default":{"incremental":true}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/influential-media/status":{"get":{"tags":["influential-media"],"summary":"Get Analysis Status","description":"Get the current status of influential media analysis for the domain.\n\nReturns info about the latest run and whether one is in progress.","operationId":"get_analysis_status_api_domains__domain_id__influential_media_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Analysis Status Api Domains  Domain Id  Influential Media Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/influential-media/cancel":{"post":{"tags":["influential-media"],"summary":"Cancel Stuck Run","description":"Cancel any stuck/pending runs for this domain.\nMarks them as failed so a new analysis can be triggered.","operationId":"cancel_stuck_run_api_domains__domain_id__influential_media_cancel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/research-agent/chats":{"post":{"tags":["research-agent"],"summary":"Create Chat","description":"Create a new research chat conversation.","operationId":"create_chat_api_domains__domain_id__research_agent_chats_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__research_agent__ChatOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["research-agent"],"summary":"List Chats","description":"List research chats for the domain, most recent first.","operationId":"list_chats_api_domains__domain_id__research_agent_chats_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":30,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/research-agent/chats/{chat_id}":{"get":{"tags":["research-agent"],"summary":"Get Chat","description":"Get a research chat with all its messages.","operationId":"get_chat_api_domains__domain_id__research_agent_chats__chat_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["research-agent"],"summary":"Update Chat","description":"Update a research chat (e.g., rename).","operationId":"update_chat_api_domains__domain_id__research_agent_chats__chat_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__research_agent__ChatOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["research-agent"],"summary":"Delete Chat","description":"Delete a research chat and all its messages.","operationId":"delete_chat_api_domains__domain_id__research_agent_chats__chat_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/research-agent/query":{"post":{"tags":["research-agent"],"summary":"Submit Query","description":"Submit a research agent query.\n\nThe agent will search through research conversations and provide\nan answer using the metacognitive analysis tools.\n\nIf chat_id is provided, the query is added to an existing chat\nfor multi-turn conversation continuity.","operationId":"submit_query_api_domains__domain_id__research_agent_query_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__research_agent__QueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/research-agent/queries":{"get":{"tags":["research-agent"],"summary":"List Queries","description":"List recent research agent queries for the domain.","operationId":"list_queries_api_domains__domain_id__research_agent_queries_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueriesListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/research-agent/queries/{query_id}":{"get":{"tags":["research-agent"],"summary":"Get Query","description":"Get a specific research agent query.","operationId":"get_query_api_domains__domain_id__research_agent_queries__query_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/research-agent/chats/{chat_id}/queries/{query_id}/artifacts/{artifact_id}/download":{"get":{"tags":["research-agent"],"summary":"Download Query Artifact","operationId":"download_query_artifact_api_domains__domain_id__research_agent_chats__chat_id__queries__query_id__artifacts__artifact_id__download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"query_id","in":"path","required":true,"schema":{"type":"string","title":"Query Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"redirect","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Redirect"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/feature-flags":{"get":{"summary":"Get Feature Flags","description":"Return effective feature flags for the current domain.\n\nResolution order:\n1. A domain-specific row (domain_id = this domain) wins.\n2. Otherwise, the global row (domain_id IS NULL) is used.\n3. Permanent features are overlaid as enabled even if stale rows exist.","operationId":"get_feature_flags_api_domains__domain_id__feature_flags_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFlagResponse"},"title":"Response Get Feature Flags Api Domains  Domain Id  Feature Flags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/overview/results":{"get":{"tags":["overview"],"summary":"Get Latest Overview","description":"Get the latest corpus row for the domain.","operationId":"get_latest_overview_api_domains__domain_id__overview_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OverviewAnalysisOut"},{"type":"null"}],"title":"Response Get Latest Overview Api Domains  Domain Id  Overview Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/overview/results/history":{"get":{"tags":["overview"],"summary":"Get Overview History","description":"List all overview analyses for the domain, most recent first.","operationId":"get_overview_history_api_domains__domain_id__overview_results_history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OverviewAnalysisSummaryOut"},"title":"Response Get Overview History Api Domains  Domain Id  Overview Results History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/overview/results/{analysis_id}":{"get":{"tags":["overview"],"summary":"Get Overview By Id","description":"Get a specific overview analysis by ID.","operationId":"get_overview_by_id_api_domains__domain_id__overview_results__analysis_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewAnalysisOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/overview/results/{analysis_id}/conversations":{"get":{"tags":["overview"],"summary":"Get Overview Conversations","description":"Get all research conversations for an overview analysis.","operationId":"get_overview_conversations_api_domains__domain_id__overview_results__analysis_id__conversations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationOut"},"title":"Response Get Overview Conversations Api Domains  Domain Id  Overview Results  Analysis Id  Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/analyze":{"post":{"tags":["perception"],"summary":"Trigger Perception Analysis","description":"Trigger a new perception analysis for the current domain.","operationId":"trigger_perception_analysis_api_domains__domain_id__perception_analyze_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__perception__TriggerAnalysisRequest","default":{"incremental":true}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__perception__TriggerAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/results":{"get":{"tags":["perception"],"summary":"Get Latest Perception Results","description":"Get the latest perception analysis results.","operationId":"get_latest_perception_results_api_domains__domain_id__perception_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/results/{analysis_id}":{"get":{"tags":["perception"],"summary":"Get Perception Results","description":"Get a specific perception analysis by ID.","operationId":"get_perception_results_api_domains__domain_id__perception_results__analysis_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/dimensions/{dimension_id}":{"get":{"tags":["perception"],"summary":"Get Perception Dimension","description":"Get a single dimension with all model scores and details.","operationId":"get_perception_dimension_api_domains__domain_id__perception_dimensions__dimension_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/dimensions/{dimension_id}/detail":{"get":{"tags":["perception"],"summary":"Get Perception Dimension Detail","description":"Get detail view data for a dimension on a specific model.","operationId":"get_perception_dimension_detail_api_domains__domain_id__perception_dimensions__dimension_id__detail_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"type":"string","description":"Model to get detail for","default":"chatgpt","title":"Model"},"description":"Model to get detail for"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/dimensions/{dimension_id}/track":{"patch":{"tags":["perception"],"summary":"Track Dimension","description":"Promote a proposed dimension to tracked by creating a pinned MonitorRow.","operationId":"track_dimension_api_domains__domain_id__perception_dimensions__dimension_id__track_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/dimensions/{dimension_id}/competitors":{"patch":{"tags":["perception"],"summary":"Update Dimension Competitors","description":"Update the competitive set for a dimension.","operationId":"update_dimension_competitors_api_domains__domain_id__perception_dimensions__dimension_id__competitors_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompetitorsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/dimensions/{dimension_id}/rerun":{"post":{"tags":["perception"],"summary":"Rerun Dimension","description":"Re-run scoring + detail for a specific dimension.","operationId":"rerun_dimension_api_domains__domain_id__perception_dimensions__dimension_id__rerun_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/monitors/{monitor_id}/pin":{"patch":{"tags":["perception"],"summary":"Toggle Monitor Pin","description":"Toggle the pinned state of a MonitorRow.","operationId":"toggle_monitor_pin_api_domains__domain_id__perception_monitors__monitor_id__pin_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/brand/analyze":{"post":{"tags":["perception"],"summary":"Trigger Brand Perception Analysis","description":"Trigger a new brand perception report analysis.","operationId":"trigger_brand_perception_analysis_api_domains__domain_id__perception_brand_analyze_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__perception__TriggerAnalysisRequest","default":{"incremental":true}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/brand/cancel":{"post":{"tags":["perception"],"summary":"Cancel Brand Perception Analysis","description":"Cancel any running/pending brand perception analysis for this domain.","operationId":"cancel_brand_perception_analysis_api_domains__domain_id__perception_brand_cancel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/perception/brand/results":{"get":{"tags":["perception"],"summary":"Get Brand Perception Results","description":"Get the latest brand perception analysis results.","operationId":"get_brand_perception_results_api_domains__domain_id__perception_brand_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/competitive-intel/analyze":{"post":{"tags":["competitive-intel"],"summary":"Trigger Competitive Intel Analysis","description":"Trigger a new competitive intelligence analysis for the current domain.","operationId":"trigger_competitive_intel_analysis_api_domains__domain_id__competitive_intel_analyze_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__competitive_intel__TriggerAnalysisRequest","default":{"incremental":true}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__competitive_intel__TriggerAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/competitive-intel/cancel":{"post":{"tags":["competitive-intel"],"summary":"Cancel Competitive Intel Analysis","description":"Cancel any running/pending competitive intelligence analysis.","operationId":"cancel_competitive_intel_analysis_api_domains__domain_id__competitive_intel_cancel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/competitive-intel/results":{"get":{"tags":["competitive-intel"],"summary":"Get Latest Competitive Intel Results","description":"Get the latest competitive intelligence analysis results.","operationId":"get_latest_competitive_intel_results_api_domains__domain_id__competitive_intel_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/competitive-intel/results/{analysis_id}":{"get":{"tags":["competitive-intel"],"summary":"Get Competitive Intel Results","description":"Get a specific competitive intelligence analysis by ID.","operationId":"get_competitive_intel_results_api_domains__domain_id__competitive_intel_results__analysis_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas":{"get":{"tags":["personas"],"summary":"List User Profiles","description":"List all user profiles for this domain.","operationId":"list_user_profiles_api_domains__domain_id__personas_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileResponse"},"title":"Response List User Profiles Api Domains  Domain Id  Personas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["personas"],"summary":"Create User Profile","description":"Create a single user profile.","operationId":"create_user_profile_api_domains__domain_id__personas_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/bulk":{"post":{"tags":["personas"],"summary":"Create User Profiles Bulk","description":"Create multiple user profiles at once (e.g. from generation candidates).\n\nAtomic: all rows commit in one transaction, or none do.","operationId":"create_user_profiles_bulk_api_domains__domain_id__personas_bulk_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileBulkCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserProfileResponse"},"title":"Response Create User Profiles Bulk Api Domains  Domain Id  Personas Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/{profile_id}":{"patch":{"tags":["personas"],"summary":"Update User Profile","description":"Update name and/or description of a user profile.","operationId":"update_user_profile_api_domains__domain_id__personas__profile_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["personas"],"summary":"Delete User Profile","description":"Delete a user profile.","operationId":"delete_user_profile_api_domains__domain_id__personas__profile_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/generate":{"post":{"tags":["personas"],"summary":"Generate User Profiles","description":"Generate candidate user profiles via LLM.\n\nReturns candidates in the response body without persisting them;\nthe frontend lets the user pick which ones to save via POST /bulk.","operationId":"generate_user_profiles_api_domains__domain_id__personas_generate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__user_profiles__GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/{profile_id}/sub-personas":{"post":{"tags":["personas"],"summary":"Generate Sub Personas","description":"Generate sub-personas using the Temporal buyer-agent generation flow.","operationId":"generate_sub_personas_api_domains__domain_id__personas__profile_id__sub_personas_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubPersonaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/{profile_id}/analyze":{"post":{"tags":["personas"],"summary":"Trigger User Profile Analysis","description":"Trigger per-model persona analyses from the latest completed overview batch.","operationId":"trigger_user_profile_analysis_api_domains__domain_id__personas__profile_id__analyze_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnalyzeTriggerBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__user_profiles__TriggerAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/rescore":{"post":{"tags":["personas"],"summary":"Trigger Rescore All Profiles","description":"Refresh latest materialized persona-score rows from the latest completed overview batch.","operationId":"trigger_rescore_all_profiles_api_domains__domain_id__personas_rescore_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescoreResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/{profile_id}/analysis":{"get":{"tags":["personas"],"summary":"Get User Profile Analysis","description":"Get the latest analysis results for a user profile.\nWith ?model=chatgpt returns a single result; otherwise returns {chatgpt, gemini, perplexity}.","operationId":"get_user_profile_analysis_api_domains__domain_id__personas__profile_id__analysis_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/{profile_id}/analysis/history":{"get":{"tags":["personas"],"summary":"Get User Profile Analysis History","description":"Return all historical analysis results for time-series charting.","operationId":"get_user_profile_analysis_history_api_domains__domain_id__personas__profile_id__analysis_history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HistoryPoint"},"title":"Response Get User Profile Analysis History Api Domains  Domain Id  Personas  Profile Id  Analysis History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/conversations/{short_id}":{"get":{"tags":["personas"],"summary":"Get Conversation By Short Id","description":"Fetch a single research conversation by its 8-char short_id.","operationId":"get_conversation_by_short_id_api_domains__domain_id__personas_conversations__short_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"short_id","in":"path","required":true,"schema":{"type":"string","title":"Short Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/drivers/analyze":{"post":{"tags":["drivers"],"summary":"Trigger Drivers Analysis","description":"Trigger a new drivers analysis. Optionally specify which profiles to include.","operationId":"trigger_drivers_analysis_api_domains__domain_id__drivers_analyze_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__drivers__TriggerAnalysisRequest","default":{"include_overview":true,"incremental":true}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__drivers__TriggerAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/drivers/cancel":{"post":{"tags":["drivers"],"summary":"Cancel Drivers Analysis","description":"Cancel any running/pending drivers analysis for this domain.","operationId":"cancel_drivers_analysis_api_domains__domain_id__drivers_cancel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/drivers/results":{"get":{"tags":["drivers"],"summary":"Get Latest Drivers Results","description":"Get the latest drivers analysis results.","operationId":"get_latest_drivers_results_api_domains__domain_id__drivers_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/drivers/results/{analysis_id}":{"get":{"tags":["drivers"],"summary":"Get Drivers Results","description":"Get a specific drivers analysis by ID.","operationId":"get_drivers_results_api_domains__domain_id__drivers_results__analysis_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/drivers/dimensions/{dimension_id}":{"get":{"tags":["drivers"],"summary":"Get Drivers Dimension","description":"Get a single driver dimension with all model scores and details.","operationId":"get_drivers_dimension_api_domains__domain_id__drivers_dimensions__dimension_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/drivers/dimensions/{dimension_id}/detail":{"get":{"tags":["drivers"],"summary":"Get Drivers Dimension Detail","description":"Get detail view data for a dimension on a specific model.","operationId":"get_drivers_dimension_detail_api_domains__domain_id__drivers_dimensions__dimension_id__detail_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"type":"string","description":"Model to get detail for","default":"chatgpt","title":"Model"},"description":"Model to get detail for"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/drivers/dimensions/{dimension_id}/track":{"patch":{"tags":["drivers"],"summary":"Track Dimension","description":"Promote a proposed dimension to tracked by creating a pinned MonitorRow.","operationId":"track_dimension_api_domains__domain_id__drivers_dimensions__dimension_id__track_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/drivers/dimensions/{dimension_id}/history":{"get":{"tags":["drivers"],"summary":"Get Dimension History","description":"Get historical scores for a dimension across analysis runs.\n\nTracked dimensions are matched by monitor_row_id; proposed dimensions\nare matched by lineage_id so that the same conceptual driver can be\ntracked across runs even when the per-run row id changes.","operationId":"get_dimension_history_api_domains__domain_id__drivers_dimensions__dimension_id__history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dimension_id","in":"path","required":true,"schema":{"type":"string","title":"Dimension Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/goals/generate-rubric":{"post":{"tags":["goals"],"summary":"Generate Rubric","description":"Generate an AI rubric from source text and goal description.","operationId":"generate_rubric_api_domains__domain_id__goals_generate_rubric_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRubricRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRubricResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/goals":{"post":{"tags":["goals"],"summary":"Create Goal","description":"Create a new goal and immediately trigger evaluation.","operationId":"create_goal_api_domains__domain_id__goals_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalWithEvaluationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["goals"],"summary":"List Goals","description":"List all goals for a domain with their latest evaluation.","operationId":"list_goals_api_domains__domain_id__goals_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoalWithEvaluationOut"},"title":"Response List Goals Api Domains  Domain Id  Goals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/goals/{goal_id}":{"get":{"tags":["goals"],"summary":"Get Goal","description":"Get a goal with its latest evaluation.","operationId":"get_goal_api_domains__domain_id__goals__goal_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalWithEvaluationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["goals"],"summary":"Update Goal","description":"Update a goal's description, rubric, or status.","operationId":"update_goal_api_domains__domain_id__goals__goal_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["goals"],"summary":"Delete Goal","description":"Delete a goal and all related evaluations.","operationId":"delete_goal_api_domains__domain_id__goals__goal_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/goals/{goal_id}/evaluate":{"post":{"tags":["goals"],"summary":"Trigger Evaluation","description":"Trigger an evaluation of a goal against its rubric.","operationId":"trigger_evaluation_api_domains__domain_id__goals__goal_id__evaluate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerEvaluationRequest","default":{"incremental":true}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEvaluationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/goals/{goal_id}/evaluations":{"get":{"tags":["goals"],"summary":"List Evaluations","description":"List all evaluations for a goal, most recent first.","operationId":"list_evaluations_api_domains__domain_id__goals__goal_id__evaluations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvaluationOut"},"title":"Response List Evaluations Api Domains  Domain Id  Goals  Goal Id  Evaluations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/goals/{goal_id}/evaluations/history":{"get":{"tags":["goals"],"summary":"Get Evaluation History","description":"Return all completed evaluations for time-series charting.","operationId":"get_evaluation_history_api_domains__domain_id__goals__goal_id__evaluations_history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"goal_id","in":"path","required":true,"schema":{"type":"string","title":"Goal Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvalHistoryPoint"},"title":"Response Get Evaluation History Api Domains  Domain Id  Goals  Goal Id  Evaluations History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/awareness/analyze":{"post":{"tags":["awareness"],"summary":"Trigger Awareness Analysis","description":"Trigger a new awareness analysis.","operationId":"trigger_awareness_analysis_api_domains__domain_id__awareness_analyze_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__awareness__TriggerAnalysisRequest","default":{"incremental":true}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__awareness__TriggerAnalysisResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/awareness/cancel":{"post":{"tags":["awareness"],"summary":"Cancel Awareness Analysis","description":"Cancel any running/pending awareness analysis.","operationId":"cancel_awareness_analysis_api_domains__domain_id__awareness_cancel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/awareness/results":{"get":{"tags":["awareness"],"summary":"Get Latest Awareness Results","description":"Get the latest awareness analysis results, optionally filtered by model.","operationId":"get_latest_awareness_results_api_domains__domain_id__awareness_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter competitors by AI model (chatgpt, gemini, perplexity)","title":"Model"},"description":"Filter competitors by AI model (chatgpt, gemini, perplexity)"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/awareness/topics/{topic_id}/detail":{"get":{"tags":["awareness"],"summary":"Get Topic Detail","description":"Get detailed view of a topic cluster: cited media and conversations.","operationId":"get_topic_detail_api_domains__domain_id__awareness_topics__topic_id__detail_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"topic_id","in":"path","required":true,"schema":{"type":"string","title":"Topic Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by AI model","title":"Model"},"description":"Filter by AI model"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-report/results":{"get":{"tags":["analysis-report"],"summary":"Get Latest Analysis Report","operationId":"get_latest_analysis_report_api_domains__domain_id__analysis_report_results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnalysisReportOut"},{"type":"null"}],"title":"Response Get Latest Analysis Report Api Domains  Domain Id  Analysis Report Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-report/results/{analysis_id}":{"get":{"tags":["analysis-report"],"summary":"Get Analysis Report Result","operationId":"get_analysis_report_result_api_domains__domain_id__analysis_report_results__analysis_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-report/history":{"get":{"tags":["analysis-report"],"summary":"Get Analysis Report History","operationId":"get_analysis_report_history_api_domains__domain_id__analysis_report_history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalysisReportHistoryItem"},"title":"Response Get Analysis Report History Api Domains  Domain Id  Analysis Report History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-report/results/{analysis_id}/log":{"get":{"tags":["analysis-report"],"summary":"Get Analysis Report Log","operationId":"get_analysis_report_log_api_domains__domain_id__analysis_report_results__analysis_id__log_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/analysis-report/results/{analysis_id}/annotations":{"patch":{"tags":["analysis-report"],"summary":"Update Report Annotations","operationId":"update_report_annotations_api_domains__domain_id__analysis_report_results__analysis_id__annotations_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"analysis_id","in":"path","required":true,"schema":{"type":"string","title":"Analysis Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAnnotationsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalysisReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/priorities":{"get":{"tags":["priorities"],"summary":"List Priorities","operationId":"list_priorities_api_domains__domain_id__priorities_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"disposition","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_killed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Killed"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PriorityOut"},"title":"Response List Priorities Api Domains  Domain Id  Priorities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["priorities"],"summary":"Create Priority","operationId":"create_priority_api_domains__domain_id__priorities_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/priorities/{priority_id}":{"patch":{"tags":["priorities"],"summary":"Update Priority","operationId":"update_priority_api_domains__domain_id__priorities__priority_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["priorities"],"summary":"Kill Priority","operationId":"kill_priority_api_domains__domain_id__priorities__priority_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/priorities/{priority_id}/restore":{"post":{"tags":["priorities"],"summary":"Restore Priority","operationId":"restore_priority_api_domains__domain_id__priorities__priority_id__restore_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/priorities/{priority_id}/dismiss":{"post":{"tags":["priorities"],"summary":"Dismiss Priority","description":"Soft-dismiss a priority. Different from `kill_priority` which is\npermanent. Soft-dismiss sets `dismissed_at`; the priority stays in\nthe DB and is filtered from the user-facing list, but if Stage 3\nre-finds the same gap on a future run after the dismissal-expiry\nwindow (default 4 weeks), it surfaces again — see\n`priorities_projection.py`'s `confirm` action which clears\n`dismissed_at` on re-confirmation.","operationId":"dismiss_priority_api_domains__domain_id__priorities__priority_id__dismiss_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/priorities/{priority_id}/tasks":{"post":{"tags":["priorities"],"summary":"Create Task","operationId":"create_task_api_domains__domain_id__priorities__priority_id__tasks_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/priorities/{priority_id}/tasks/{task_id}":{"patch":{"tags":["priorities"],"summary":"Update Task","operationId":"update_task_api_domains__domain_id__priorities__priority_id__tasks__task_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["priorities"],"summary":"Kill Task","operationId":"kill_task_api_domains__domain_id__priorities__priority_id__tasks__task_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/priorities/{priority_id}/buyer-agents":{"post":{"tags":["priorities"],"summary":"Add Buyer Agent","operationId":"add_buyer_agent_api_domains__domain_id__priorities__priority_id__buyer_agents_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerAgentLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["priorities"],"summary":"Remove Buyer Agent","operationId":"remove_buyer_agent_api_domains__domain_id__priorities__priority_id__buyer_agents_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerAgentLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/tasks":{"get":{"tags":["tasks"],"summary":"List Tasks","operationId":"list_tasks_api_domains__domain_id__tasks_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"priority_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Id"}},{"name":"include_killed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Killed"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskWithPriorityOut"},"title":"Response List Tasks Api Domains  Domain Id  Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create Task In Domain","operationId":"create_task_in_domain_api_domains__domain_id__tasks_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateInDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWithPriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/tasks/{task_id}":{"patch":{"tags":["tasks"],"summary":"Update Task By Id","operationId":"update_task_by_id_api_domains__domain_id__tasks__task_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWithPriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tasks"],"summary":"Kill Task By Id","operationId":"kill_task_by_id_api_domains__domain_id__tasks__task_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWithPriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/tasks/{task_id}/restore":{"post":{"tags":["tasks"],"summary":"Restore Task By Id","operationId":"restore_task_by_id_api_domains__domain_id__tasks__task_id__restore_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWithPriorityOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/config":{"get":{"tags":["agent_desk"],"summary":"Get Agent Desk Config","operationId":"get_agent_desk_config_api_domains__domain_id__agent_desk_config_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDeskConfigOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agent_desk"],"summary":"Update Agent Desk Config","operationId":"update_agent_desk_config_api_domains__domain_id__agent_desk_config_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDeskConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDeskConfigOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/setup-instructions/email":{"post":{"tags":["agent_desk"],"summary":"Email Setup Instructions","description":"Mail this desk's DNS records + snippet to one address.\n\nORDER MATTERS and follows the regeneration endpoint's precedent\n(`regenerate_answer_page`): resolve everything that can 4xx BEFORE claiming the\nday bucket, so a bad address or a desk with nothing to send never costs the\ncustomer one of their five sends. The claim then happens immediately before the\nsend, and is refunded if the provider refuses.","operationId":"email_setup_instructions_api_domains__domain_id__agent_desk_setup_instructions_email_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupInstructionsEmailIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupInstructionsEmailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/usage":{"get":{"tags":["agent_desk"],"summary":"Get Agent Desk Usage","description":"The desk's own usage against its entitlements.\n\nThin by design: every number comes from\n``usage_limits.get_desk_entitlements_snapshot``, which is also what the answer\npath's 429 gate folds its limit from — so the tile the customer reads and the\nceiling the gate enforces cannot drift apart.","operationId":"get_agent_desk_usage_api_domains__domain_id__agent_desk_usage_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskUsageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/usage/overage":{"patch":{"tags":["agent_desk"],"summary":"Update Agent Desk Overage","description":"Set the payer org's overage credit allowance — the customer's opt-in to\npay per credit past the plan's bundle (Billing page). Off by default.\n\nMoney fails closed, so three refusals guard the write:\n\n* ``get_domain`` alone admits AGENCY-GRANT holders, and a grant never\n  confers billing mutation (models.py) — the caller must BELONG to the\n  domain's org (or be staff), the binding payments.py uses;\n* a domain whose bills land on ANOTHER org (agency billing) cannot move\n  the payer's allowance;\n* a plan row with no metered Stripe price cannot ENABLE overage: the gate\n  would serve credits nothing can bill. Disabling (0/null) always works.\n\nTakes effect on the next ask: the serving gate reads the org row live.","operationId":"update_agent_desk_overage_api_domains__domain_id__agent_desk_usage_overage_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskOverageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskUsageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/check-slug":{"get":{"tags":["agent_desk"],"summary":"Check Slug Availability","operationId":"check_slug_availability_api_domains__domain_id__agent_desk_check_slug_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"slug","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"title":"Slug"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/setup-progress":{"get":{"tags":["agent_desk"],"summary":"Get Setup Progress","operationId":"get_setup_progress_api_domains__domain_id__agent_desk_setup_progress_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/setup-progress/complete":{"post":{"tags":["agent_desk"],"summary":"Finish Setup","operationId":"finish_setup_api_domains__domain_id__agent_desk_setup_progress_complete_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/setup-progress/free-host-notice/dismiss":{"post":{"tags":["agent_desk"],"summary":"Dismiss Free Host Notice","description":"Dismiss \"Your AgentDesk is live at <address>\" for the desk (server state,\nso it stays dismissed on every browser). Any member may: it only hides a note.","operationId":"dismiss_free_host_notice_api_domains__domain_id__agent_desk_setup_progress_free_host_notice_dismiss_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/conversations":{"get":{"tags":["agent_desk"],"summary":"List Conversations","operationId":"list_conversations_api_domains__domain_id__agent_desk_conversations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","description":"Include spam and adversarial conversations","default":false,"title":"Include Hidden"},"description":"Include spam and adversarial conversations"},{"name":"source","in":"query","required":false,"schema":{"enum":["public","playground","inbox","all"],"type":"string","description":"Which channel to list. 'public' (the default) excludes the owner's own playground conversations; 'playground' shows only those; 'all' shows both. 'inbox' includes public and owner tests, excluding monitoring and regeneration.","default":"public","title":"Source"},"description":"Which channel to list. 'public' (the default) excludes the owner's own playground conversations; 'playground' shows only those; 'all' shows both. 'inbox' includes public and owner tests, excluding monitoring and regeneration."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationListItem"},"title":"Response List Conversations Api Domains  Domain Id  Agent Desk Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/conversations/{conversation_id}":{"get":{"tags":["agent_desk"],"summary":"Get Conversation","operationId":"get_conversation_api_domains__domain_id__agent_desk_conversations__conversation_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/messages/{message_id}/conversation":{"get":{"tags":["agent_desk"],"summary":"Get Message Conversation","description":"The conversation one turn belongs to. Review links mailed and posted\nbefore 2026-10-14 (``?conversation=<ip>&review_message=<message id>``) name a\nturn, not a conversation; Conversations resolves them through this.","operationId":"get_message_conversation_api_domains__domain_id__agent_desk_messages__message_id__conversation_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/playground/ask":{"post":{"tags":["agent_desk"],"summary":"Playground Ask","operationId":"playground_ask_api_domains__domain_id__agent_desk_playground_ask_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundAskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundAskOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/playground/ask/stream":{"post":{"tags":["agent_desk"],"summary":"Playground Ask Stream","operationId":"playground_ask_stream_api_domains__domain_id__agent_desk_playground_ask_stream_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundAskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/playground/history":{"get":{"tags":["agent_desk"],"summary":"Playground History","operationId":"playground_history_api_domains__domain_id__agent_desk_playground_history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/playground/suggestions":{"get":{"tags":["agent_desk"],"summary":"Playground Suggestions","description":"Seeded questions for the playground, derived from the desk's own knowledge.\n\nCached per (domain, active Knowledge Document version), so the normal case\ncosts nothing and activating a new document invalidates by construction. The\nallowance figures ride along so the playground can render \"N of X used\"\nwithout a second call — this endpoint does NOT consume the allowance, since\nreading suggestions is not answering.","operationId":"playground_suggestions_api_domains__domain_id__agent_desk_playground_suggestions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Bypass the per-KD-version cache and regenerate.","default":false,"title":"Refresh"},"description":"Bypass the per-KD-version cache and regenerate."},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundSuggestionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/celebrations":{"get":{"tags":["agent_desk"],"summary":"List Celebrations","description":"The first-time moments for this desk: agent visit, follow click, offer.\n\nA read model over rows that already exist — see\n`agent_desk/celebrations.py` on why the FACT is server-derived while the\n\"already celebrated\" flag is client-side. Always returns one entry per kind,\nincluding the unachieved ones, so the client can render the full list as a\nforward-looking checklist before any of them land.","operationId":"list_celebrations_api_domains__domain_id__agent_desk_celebrations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CelebrationOut"},"title":"Response List Celebrations Api Domains  Domain Id  Agent Desk Celebrations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/materials":{"get":{"tags":["agent_desk"],"summary":"List Materials","operationId":"list_materials_api_domains__domain_id__agent_desk_materials_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaterialOut"},"title":"Response List Materials Api Domains  Domain Id  Agent Desk Materials Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent_desk"],"summary":"Upload Material","operationId":"upload_material_api_domains__domain_id__agent_desk_materials_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_material_api_domains__domain_id__agent_desk_materials_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaterialOut"},"title":"Response Upload Material Api Domains  Domain Id  Agent Desk Materials Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/materials/{material_id}":{"delete":{"tags":["agent_desk"],"summary":"Delete Material","operationId":"delete_material_api_domains__domain_id__agent_desk_materials__material_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"material_id","in":"path","required":true,"schema":{"type":"string","title":"Material Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/integrations":{"get":{"tags":["agent_desk"],"summary":"List Integrations","operationId":"list_integrations_api_domains__domain_id__agent_desk_integrations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationOut"},"title":"Response List Integrations Api Domains  Domain Id  Agent Desk Integrations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent_desk"],"summary":"Create Integration","operationId":"create_integration_api_domains__domain_id__agent_desk_integrations_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskIntegrationInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/integrations/{integration_id}":{"patch":{"tags":["agent_desk"],"summary":"Update Integration","operationId":"update_integration_api_domains__domain_id__agent_desk_integrations__integration_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeskIntegrationPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent_desk"],"summary":"Delete Integration","operationId":"delete_integration_api_domains__domain_id__agent_desk_integrations__integration_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/about-page":{"get":{"tags":["agent_desk"],"summary":"Get About Page","operationId":"get_about_page_api_domains__domain_id__agent_desk_about_page_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AboutPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["agent_desk"],"summary":"Save About Page","description":"A desk-only owner's own heading and About (Will, 2026-10-15). Applies at\nonce and republishes the root page through the same actor the public-POST\ntoggle uses; sections, if any, are kept — this door changes the heading\nand the About only.","operationId":"save_about_page_api_domains__domain_id__agent_desk_about_page_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AboutPageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AboutPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/about-page/regenerate":{"post":{"tags":["agent_desk"],"summary":"Regenerate About Page","description":"Owner's Regenerate: overwrites the current About from the Knowledge\nPrompt in the background (UX constitution §1 — the desk acts; the editor\nis the undo). The page re-reads once the worker finishes.","operationId":"regenerate_about_page_api_domains__domain_id__agent_desk_about_page_regenerate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/offerings":{"get":{"tags":["agent_desk"],"summary":"List Offerings","operationId":"list_offerings_api_domains__domain_id__agent_desk_offerings_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OfferingOut"},"title":"Response List Offerings Api Domains  Domain Id  Agent Desk Offerings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent_desk"],"summary":"Create Offering","operationId":"create_offering_api_domains__domain_id__agent_desk_offerings_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferingCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/offerings/{offering_id}":{"patch":{"tags":["agent_desk"],"summary":"Update Offering","operationId":"update_offering_api_domains__domain_id__agent_desk_offerings__offering_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offering_id","in":"path","required":true,"schema":{"type":"string","title":"Offering Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent_desk"],"summary":"Delete Offering","operationId":"delete_offering_api_domains__domain_id__agent_desk_offerings__offering_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offering_id","in":"path","required":true,"schema":{"type":"string","title":"Offering Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/offerings/{offering_id}/events":{"get":{"tags":["agent_desk"],"summary":"List Offering Events","operationId":"list_offering_events_api_domains__domain_id__agent_desk_offerings__offering_id__events_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"offering_id","in":"path","required":true,"schema":{"type":"string","title":"Offering Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OfferEventOut"},"title":"Response List Offering Events Api Domains  Domain Id  Agent Desk Offerings  Offering Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/answer-pages":{"get":{"tags":["agent_desk"],"summary":"List Answer Pages","description":"Generated GET answer pages for this domain, most-fetched first — the\ncuration queue for pinning good answers as SEO content. ``rejected``\nrows (negative-cached spam-classified slugs) are excluded unless\nexplicitly requested by status.","operationId":"list_answer_pages_api_domains__domain_id__agent_desk_answer_pages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["ephemeral","pinned","rejected"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnswerPageOut"},"title":"Response List Answer Pages Api Domains  Domain Id  Agent Desk Answer Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/answer-pages/{page_id}/pin":{"post":{"tags":["agent_desk"],"summary":"Pin Answer Page","description":"Turn a generated answer into a draft ContentDocument at the same slug —\nthe \"Generate page from answer\" action.\n\nThe answer is REWRITTEN first, not copied: it was written as a reply to one\ncaller mid-conversation, so verbatim it ships \"Great question!\", direct\naddress (\"in your case\"), and lead-capture offers into published site\ncontent. The rewrite keeps every fact and the first-person company voice\nwhile dropping the conversational register.\n\nThe customer edits/publishes the draft through the normal Company Docs\nflow; once published, the static pipeline (R2 + sitemap + llms.txt) serves\nthat slug and the generated page stops being used for it.\n\nAGENTDESK-RD(c1): the BODY of this moved to `_pin_answer_page_row` so\n`POST /answer-pages/from-message` reaches it too. See that helper's docstring\nfor why it is one path rather than two — it is a money path.","operationId":"pin_answer_page_api_domains__domain_id__agent_desk_answer_pages__page_id__pin_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerPagePinOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/answer-pages/from-message":{"post":{"tags":["agent_desk"],"summary":"Create Answer Page From Message","description":"Publish a permanent page from ONE answer your AgentDesk already gave.\n\nAGENTDESK-RD(c1), Will's directive 2026-08-07: \"in all the answers we need the\nability to create a permanent page for the question\". `POST\n/answer-pages/{id}/pin` publishes an answer page that ALREADY EXISTS, and answer\npages only come into existence when an agent fetches a question-shaped URL — so\na conversation turn (and every Sandbox turn) had no route to a page. This is\nthat route, and it ends in the SAME `_pin_answer_page_row` the pin uses, which\nis what keeps the published-pages billing sync on one path.\n\n── THE THREE OUTCOMES FOR A QUESTION THAT ALREADY HAS A PAGE ───────────────\n\nAn answer page is addressed by `(domain, slug)` and the slug is derived from the\nquestion, so \"does this answer already have a page\" is a question about the\nslug, and the three answers are genuinely different:\n\n  * a **pinned** page at that slug → **409**. The question already has a\n    published page; publishing a second one at an adjusted slug would split the\n    same question across two URLs and bill for both.\n  * an **ephemeral** page at that slug → that row is PINNED. It is the row the\n    desk already serves this question at, so publishing it is what the owner\n    asked for; minting a second row would leave the served URL unpublished.\n    (Its stored answer stays as-is — the stored answer IS what the URL serves,\n    and overwriting it here would publish text no agent has ever been given.)\n  * **nothing** at that slug → a new row, at a slug from\n    `_allocate_answer_page_slug` (a `rejected` row can be squatting it).\n\nThe new row's `llm_*` columns are copied from the ASSISTANT MESSAGE, because\nthat is what generating this answer actually cost — the same aggregate the\nanswer-page lane stamps at generation, so cost-per-page stays a real number\nrather than a NULL that averages in as free. `fetch_count` is 0: no agent has\nfetched this URL, and starting it at the generated-page default of 1 would\nclaim a fetch that never happened (and, at 2, would make the Desk feed call it\nrepeat demand).","operationId":"create_answer_page_from_message_api_domains__domain_id__agent_desk_answer_pages_from_message_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerPageFromMessageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerPagePinOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/answer-pages/{page_id}":{"delete":{"tags":["agent_desk"],"summary":"Delete Answer Page","description":"Discard a generated answer page. The next fetch of the same question\nregenerates it fresh (useful after materials or prompt changes).","operationId":"delete_answer_page_api_domains__domain_id__agent_desk_answer_pages__page_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/answer-pages/{page_id}/regenerate":{"post":{"tags":["agent_desk"],"summary":"Regenerate Answer Page","description":"Re-ask this page's question against current knowledge; replace it in place.\n\nAGENTDESK-P2(PR-K) / AGENTDESK-K(regenerate) — step 4 of the correction loop and\nthe half that did not exist. Approving a Knowledge Document correction fixes\nevery FUTURE answer, but a stored answer page keeps serving its bytes to every\nlater fetcher forever (the GET lane has no staleness check, by design: a cached\npage must stay byte-stable for the agents citing it). So the customer's approved\nfix was invisible on exactly the URLs an agent had already found. This is the\nbutton that closes that.\n\nOWNER-AUTHED and SYNCHRONOUS. `get_user` because this spends model tokens.\nSynchronous because it is one ask and the customer is watching the page they\njust fixed — the fast-path/slow-path split in the ask itself already bounds how\nlong that takes, and a poll endpoint for a single ask would be machinery for its\nown sake.\n\nNOT BILLED, NOT BUDGETED, STILL METERED — the orchestrator's direction, argued\nparameter by parameter in `agent_desk/corrections.regenerate_answer_page`. What\nlives HERE rather than there is the per-desk/day allowance: claimed BEFORE the\nask (a check that runs after the spend is not a budget) and REFUNDED on every\npath that does not store a new answer, so a refusal never consumes quota.\n\n429 when the day's allowance is spent, 403 when the dial is 0 (the button is\nswitched off for this deployment), 409 when there is nothing to regenerate.","operationId":"regenerate_answer_page_api_domains__domain_id__agent_desk_answer_pages__page_id__regenerate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerPageRegenerateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/control-documents":{"get":{"tags":["agent_desk"],"summary":"List Control Documents","description":"Every control document for this domain — one entry per\n``control_documents.KINDS`` (knowledge, policy), with\n``active_version_number`` None for a kind that has never been written or\nhas nothing active. The list tracks the kind vocabulary, so clients render\nwhat they get rather than assuming a fixed set.","operationId":"list_control_documents_api_domains__domain_id__agent_desk_control_documents_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ControlDocumentOut"},"title":"Response List Control Documents Api Domains  Domain Id  Agent Desk Control Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/control-documents/{kind}":{"put":{"tags":["agent_desk"],"summary":"Put Control Document","description":"Save-and-activate a manual edit: appends a new version (source\n\"manual\") and makes it the active one. This is the point where the\ncontrol-document surface goes live for a domain — until the first PUT,\ndesk prompts are byte-identical to today's.","operationId":"put_control_document_api_domains__domain_id__agent_desk_control_documents__kind__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["knowledge","policy"],"type":"string","title":"Kind"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlDocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ControlDocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/control-documents/{kind}/versions":{"get":{"tags":["agent_desk"],"summary":"List Control Document Versions","description":"Full version history for one control document, newest first.","operationId":"list_control_document_versions_api_domains__domain_id__agent_desk_control_documents__kind__versions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["knowledge","policy"],"type":"string","title":"Kind"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ControlDocumentVersionOut"},"title":"Response List Control Document Versions Api Domains  Domain Id  Agent Desk Control Documents  Kind  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/crawl-pages":{"get":{"tags":["agent_desk"],"summary":"List Crawl Pages","description":"The crawl ledger: every page the desk crawler knows about, richest first.\n\nOrdered by richness descending because that is the order the crawler keeps\nthem in — the top of this list is what the Knowledge Document was compiled\nfrom, and human-pinned pages sort above the rest for the same reason. NULL\nrichness (a row discovered but never successfully fetched) sorts last.\n\nAlways 200s for an accessible domain: a desk that has never crawled returns\nan empty ledger with `has_provenance` false, which is a legitimate state and\nnot an error.","operationId":"list_crawl_pages_api_domains__domain_id__agent_desk_crawl_pages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlLedgerOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/crawl-pages/{page_id}":{"patch":{"tags":["agent_desk"],"summary":"Set Crawl Page Curation","description":"Pin, exclude, or un-curate one crawled page.\n\nTakes effect on the NEXT crawl, not now: the crawler is the only writer of\ncrawl scope (`retrieval/crawler.py` reads `curation` in its cap and its\neviction loops), and having the route also delete index rows would give the\nindex two writers with different normalisation. The one exception is the\nobvious one a customer expects — excluding a page they can see the desk\nquoting — so that case drops the index row immediately.","operationId":"set_crawl_page_curation_api_domains__domain_id__agent_desk_crawl_pages__page_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlPageCuration"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlLedgerPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/crawl-pages/{page_id}/recrawl":{"post":{"tags":["agent_desk"],"summary":"Recrawl Crawl Page","description":"Re-fetch ONE crawled page now, whatever tier it is in.\n\nNot rate-limited: the work is a single conditional GET against a page the\ncustomer owns, which is less traffic than the browser tab they clicked it\nfrom. The whole-site button below is the one that needs a limit.\n\nTwo writes, and the order matters. ``next_check_at``/``recheck_reason`` are\nset FIRST and committed, so the intent is durable even if the enqueue fails —\nthe page is then picked up by the next nightly tick instead of being silently\nforgotten. Enqueueing first and crashing before the commit would lose it.","operationId":"recrawl_crawl_page_api_domains__domain_id__agent_desk_crawl_pages__page_id__recrawl_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecrawlQueued"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/crawl/recrawl":{"post":{"tags":["agent_desk"],"summary":"Recrawl Site","description":"Re-fetch the whole site now, ignoring every page's cadence.\n\nRATE-LIMITED to one per ``MANUAL_SITE_RECRAWL_MIN_MINUTES`` per domain\n(default 60), and the limit is about the CUSTOMER'S server, not ours: a full\nrun is up to ``CRAWL_MAX_DISCOVERED_URLS`` requests, and a button that can be\nheld down is a load test against the site it is supposed to be reading. 429\nwith the wait, so the UI can say when rather than just \"no\".\n\nThe clock is only stamped once the message is actually queued — a broker\nfailure must not burn the customer's hourly slot on work that never ran.","operationId":"recrawl_site_api_domains__domain_id__agent_desk_crawl_recrawl_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecrawlQueued"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/docs/publish-starter":{"post":{"tags":["agent_desk"],"summary":"Publish Starter Pages","description":"Publish every onboarding-drafted documentation page — the OPT-IN door.\n\nTester finding (2026-08-19), superseding UX5's 2026-08-11 verify-time\nauto-publish: the pages provisioning pre-builds stay DRAFTS until the owner\nsays so. This is the one-tap \"say so\" — it publishes only\n``source_kind == \"onboarding\"`` drafts that were never live before, through\nthe same ``publish_prebuilt_documents`` body the old unattended door used\n(per-document commits, never raises, idempotent). Per-page publish on the\nDocumentation screen remains the granular alternative.","operationId":"publish_starter_pages_api_domains__domain_id__agent_desk_docs_publish_starter_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StarterPagesPublished"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/knowledge/add-content":{"post":{"tags":["agent_desk"],"summary":"Add Knowledge Content","description":"Add a URL or pasted text to the desk's knowledge, then propose an update.\n\n202, not 200: folding new material in is a compile, and a compile is model\ncalls. The route validates synchronously — the owned-host check especially,\nbecause \"that host isn't yours\" must land while the human is still looking\nat the field — and hands the rest to\n``propose_desk_knowledge_update``. The result arrives as a PROPOSED version\non this page; nothing activates itself.","operationId":"add_knowledge_content_api_domains__domain_id__agent_desk_knowledge_add_content_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeAddContent"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeUpdateQueued"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/knowledge/recompile":{"post":{"tags":["agent_desk"],"summary":"Request Knowledge Recompile","description":"Compile (or recompile) the Knowledge Document from current sources, as a\nPROPOSAL.\n\nTHE ONE COMPILE LANE the customer can reach, and since AGENTDESK-RD(w4) it is the\nMANUAL one — the automatic lane is the changed-page watch, which recompiles the\naffected sections and publishes them itself. Two affordances land here, the same act\nwith different framing:\n\n* **\"Update from latest website crawl\"** on the System prompt tab — the first-run\n  and catch-up button, and the only door to a WHOLE-document rewrite (the watch only\n  ever recompiles the sections that cite a changed page). Until 2026-07-31 the full\n  compiler had no UI trigger at all: a customer could hand-write a document or add\n  one page at a time, but the sixteen-section compile that is the actual product was\n  reachable only from the changed-pages banner (so, only if the site had changed) or\n  from a worker. That was the gap this route filled — and the banner it names retired\n  on 2026-08-08, which leaves this the only button.\n* an operator applying guidance (\"lead with the compliance story\").\n\nEverything is validated synchronously that can be — unknown section keys, and\nwhether there is anything to compile at all — because the alternative is a\n202 followed by a silent worker failure twenty minutes later.\n\nRATE LIMIT: one in-flight compile per domain (``autopilot.claim_compile``).\nA double-click, or two people on the same account pressing the button, gets a\n409 with the start time rather than a second full compile — sixteen agent\ncalls and a duplicate proposal in the reviewer's queue. The claim is\nself-clearing (a TTL, plus \"a version landed\"), so a dead worker costs one\nwindow rather than a permanently jammed button.\n\n── IT APPLIES ITSELF NOW (Will, 2026-08-10) ────────────────────────────────\n\n\"Auto apply updates, don't wait for user approval like you have.\" So the paragraph\nthat used to live here — \"NEVER activates… a whole-document rewrite is the one change\nbig enough that a human should see it first\" — is retired, and with it the last\npropose-and-wait step on this surface (UX constitution §2.1: the human's control is\nUndo, not approval). The ROUTE is unchanged in every other respect: it still\nvalidates synchronously, still claims the in-flight slot, still enqueues. What\nchanged is one kwarg — ``auto_apply=True`` — and everything it turns on lives in the\nworker, where the version it would publish actually exists.\n\nTwo guarantees survive the change, and they are the ones worth stating:\n\n* The POLICY document is untouchable from here, structurally: the compile lane only\n  ever writes ``knowledge``, and ``autopilot.activate`` re-checks the kind at the\n  point of writing.\n* The per-desk ``hold`` dial still holds. A desk a staff member explicitly stopped\n  gets a proposal, exactly as before.\n\nNo replay runs anywhere in this flow.","operationId":"request_knowledge_recompile_api_domains__domain_id__agent_desk_knowledge_recompile_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeRecompileRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeUpdateQueued"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/corrections":{"post":{"tags":["agent_desk"],"summary":"Create Correction","description":"Correct one answer: the owner door. See ``create_correction_impl``.\n\n`get_user` is required rather than incidental: this spends model tokens, and an\nunattributed spend on an authenticated surface is not something to leave\npossible. Ownership of the TARGET is proved separately, by\n`corrections.resolve_targets` — `get_domain` authorises the domain and says\nnothing about the ids in the body.","operationId":"create_correction_api_domains__domain_id__agent_desk_corrections_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/memories":{"post":{"tags":["agent_desk"],"summary":"Create Memory","description":"THE THIRD DOOR: state a fact or a rule directly, with no answer behind it.\n\nWill, 2026-08-10: *\"Also add something where we can manually add memories.\"*\n\nA MANUAL MEMORY IS A CORRECTION WITH NO SOURCE ANSWER, and that framing is the\nwhole design — not a shortcut. A memory in this product is never a stored string\nfed to the model: it is the ledger record of a control-document change. So the\nonly way to \"add one\" that means anything is to ride the lane every other memory\nrides — classify the statement, rewrite the document(s) it belongs in, apply, log\nthe row, offer Undo, attach the test if one is worth having. Storing the sentence\nsomewhere and pasting it into a prompt would produce a row that LOOKED like a\nmemory and behaved like nothing.\n\nSo this endpoint writes the same review row the correction doors write (no\ntarget, ``source=\"manual_memory\"``, the statement as the comment), commits it, and\nhands it to the same actor through the same arm-then-enqueue tail. The response is\nbyte-shaped like ``POST /corrections`` on purpose: the surface polls\n``GET /corrections/{review_id}``, and the working → applied toasts with Undo come\nout of the machinery that already exists rather than a second copy of it.\n\n``get_user`` for the reason ``POST /corrections`` requires it: this spends model\ntokens, and an unattributed spend on an authenticated surface is not something to\nleave possible.\n\n400 — the statement is empty once sanitised. 404 — no desk on this domain.\n422 — over the owner-text guardrail (``OWNER_TEXT_GUARDRAIL_CHARS``).","operationId":"create_memory_api_domains__domain_id__agent_desk_memories_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/corrections/{review_id}":{"get":{"tags":["agent_desk"],"summary":"Get Correction","description":"One correction's current state: the critique, the proposal, the diff.\n\nTHE POLL. `proposal` is null while the worker is drafting; `drafting` says\nwhether that is still happening, so a null proposal with `drafting=false` means\nthe draft finished without producing one (declined, or it failed) rather than\n\"keep waiting\". `incorporated` flips when the customer approves the proposal\nthrough the Knowledge tab and the desk starts answering from it.\n\n── IT IS A READ. IT WRITES NOTHING AND QUEUES NOTHING ──────────────────────\n\nRound one (2026-08-07) made this endpoint SELF-HEALING: when the review looked\nstranded — owner-filed, still open, no version, no claim — it enqueued a draft, on\nthe reasoning that Will's retirement of the nightly review-patch tick had left the\nPOST's two no-draft outcomes with no consumer. Four review findings, one root cause:\n\"awaits pickup\" was INFERRED FROM THE ROW SHAPE, and that shape is also\n\n* a bare ReviewControls THUMBS-DOWN (same source, same verdict, same open status,\n  no draft ever requested) — so any authenticated read of that review id drafted,\n  and since both lanes auto-apply, PUBLISHED a document edit nobody asked for;\n* the first moment of every successful correction, before the worker claims the\n  compile — one duplicate draft per correction as the steady state, and the\n  review's one cooldown slot spent at t≈0;\n* a correction whose draft ran and produced nothing (declined, a model outage),\n  which nothing durable distinguishes from one that never started — re-drafted\n  once per cooldown, per page visit, indefinitely.\n\nThe two waits that are real are handled where the fact is KNOWN rather than\nguessed: the compile claim by the actor itself (it re-enqueues itself behind the\nclaim, bounded by a deadline — `agent_desk_tasks._wait_behind_the_claim`), and a\nbroker outage by the\ncustomer, through the \"Try again\" the POST's `broker_unavailable` status asks for.\n\n── AND ROUND ONE'S REAL GAP IS NOW CLOSED, WITH STATE (AGENTDESK-UX4) ──────\n\nThe docstring above named it: *\"nothing durable distinguishes a draft that never\nstarted from one that finished with nothing\"*. Something does now\n(`agent_desk_answer_review.draft_state`), and the reason it had to is a prod\nincident on 2026-08-08 00:34 UTC: `drafting` was answered from the desk's COMPILE\nCLAIM alone, which the WORKER takes — so between this POST's enqueue and the worker\npicking the message up there is no claim, the client's immediate first poll landed\nin that window every time, read `drafting: false` as \"finished with nothing\", and\nstopped. Thirty-six seconds later the learning went live to an owner who never saw\na toast.\n\n`corrections.is_drafting` is the whole change here, and it is still a READ: the\nstamp is written by the POST (armed) and by the actor (concluded), never by this\nendpoint. See that function for why a conclusion outranks the claim.","operationId":"get_correction_api_domains__domain_id__agent_desk_corrections__review_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionStateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/learnings/{version_id}/approve":{"post":{"tags":["agent_desk"],"summary":"Approve Learning","description":"\"Teach it\": activate the learning's document change(s) and save its test.\n\nONE TAP, ONE TRANSACTION (D23/D27). Everything a learning card offers happens\nhere or not at all:\n\n1. The proposed version — and every SIBLING version in its group — goes live\n   through `control_documents.set_active_version`, the existing activation door,\n   so review incorporation and knowledge indexing fire exactly as they do for a\n   human PUT. A `category=\"both\"` learning is TWO versions (knowledge + policy)\n   carrying the same `review_ids`; they activate together, because half of a\n   learning is a document that contradicts its own policy — UNLESS a member's\n   document has moved past it, in which case that member is SKIPPED and reported\n   in `skipped_versions` (review finding: `_version_is_stale` judges every member,\n   not only the tapped one, and a stale sibling must not 409 a tap the owner made\n   on the other half).\n2. `statement_override` rewrites the customer-facing statement — `change_summary`\n   plus the provenance statement, kept byte-equal. **It NEVER touches the\n   markdown.** That boundary is the whole reason the override exists: the owner\n   is correcting how their AgentDesk describes what it learned, not editing the\n   document, and letting this endpoint write document text would make a one-tap\n   button the least reviewed write path in the product.\n3. ANSWER TESTS ARE RETIRED (Jason, 2026-10-14). The learning's ``test_action``\n   and any ``test_override`` are ignored: no test is created or updated and no\n   baseline run is enqueued. ``test``/``baseline_run_enqueued`` stay in the\n   response (null/false) so readers keep their shape.\n4. A HELD LEARNING WHOSE DOCUMENT MOVED since it was drafted (its recorded base\n   is no longer what is live) is not applied over the newer edit and not refused:\n   its proposals are retired and the same correction is drafted again against\n   what is live — ``redrafting: true`` with the ``correction`` payload to follow\n   (:func:`_redraft_held_learning`). Learnings without a recorded base keep the\n   old behaviour.\n\nPOLICY ACTIVATION IS ALLOWED HERE, and only because this is a human pressing a\nbutton — the same standing as the PUT door. `get_user` is asserted for exactly\nthat reason (D14 keeps policy activation human-only; an unattended lane must\nnever reach this endpoint).\n\nErrors: 400 malformed id · 404 not this domain's version · 409 already\nactivated/rejected, or not a learning proposal at all.","operationId":"approve_learning_api_domains__domain_id__agent_desk_learnings__version_id__approve_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningApprove","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningApproveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/learnings/{version_id}/undo":{"post":{"tags":["agent_desk"],"summary":"Undo Learning","description":"\"Undo\": put the previous wording back, and stop asking the test it attached.\n\nD28's other half. A knowledge learning applies itself the moment it is drafted,\nwhich is only a safe trade because taking it back is one tap. This is that tap. It\nworks for every lane that applies something — an auto-applied knowledge learning, a\nrules learning the owner tapped \"Apply it\" on, and (AGENTDESK-RD(w4)) an automatic\nSITE UPDATE the changed-page watch published — because the thing being undone is an\nACTIVATION, and all of them activate through the same door and carry the same\napplied stamp.\n\nTHREE THINGS HAPPEN, and the order is the order of what matters:\n\n1. **The previous wording goes back live**, as a NEW version\n   (`control_documents.roll_back_to_previous` — the same \"Go back to this\n   wording\" mechanism the document history offers). Activating it supersedes the\n   version being undone, which is exactly the state a second undo has to be\n   refused on, so the guard closes itself.\n2. **The attached test is retired**, by its `source_review_id` link. A test that\n   keeps asking about a wording the desk no longer uses is a check that fails\n   forever by design.\n3. **The review is left as it is.** It IS incorporated — a version really did\n   fold it in — and `reviews.update_review` refuses to reopen a review on\n   purpose (\"A review cannot be reopened\"): the record of why v8 said what it\n   said must survive v9. \"Correct it again\" writes a NEW correction, which is\n   what the surface offers and what the loop is built for.\n\nTHREE REFUSALS, all 409 with a sentence the owner can act on:\n\n* not a memory — neither a learning nor a site update (nothing to undo in one tap),\n* not the live version any more — something newer is active, and silently\n  rolling THAT back is the one thing an undo button must never do,\n* there is no earlier wording to go back to (the first Knowledge Document a\n  desk ever had).\n\n(There were four until Will retired the 24-hour window on 2026-08-07. The one that\nwent is \"expired\", and with it the only refusal an owner could not have predicted\nfrom what was on their screen.)\n\n`get_user` is required for the same reason the approval endpoint requires it:\nthis writes to a live document, and an unattributed write on an authenticated\nsurface is not something to leave possible.","operationId":"undo_learning_api_domains__domain_id__agent_desk_learnings__version_id__undo_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningUndoOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/learnings/{version_id}":{"patch":{"tags":["agent_desk"],"summary":"Edit Learning Statement","description":"\"Edit\": reword what a memory SAYS, without touching what the AgentDesk answers.\n\nThe sentence and the document are different objects, and this endpoint only reaches\nthe first. A learning's statement is byte-equal to its version's `change_summary`\nby contract, so `_set_learning_statement` rewrites both together; an automatic site\nupdate carries no such contract (its `change_summary` is the compiler's, not the\nowner's) so only the block moves.\n\nThe edit is STAMPED inside the block (`edited_by` / `edited_at`) rather than left\ninvisible: a ledger whose sentences can be rewritten silently is a ledger a support\nthread cannot reason about, and the stamp is the difference between \"the AgentDesk\nsaid this\" and \"somebody rewrote what the AgentDesk said\".\n\nTHE JSONB TRAP, written down because it has bitten this codebase twice: the column\nhas no mutation tracking, so a nested in-place edit is a change SQLAlchemy never\nflushes. Every write below builds a NEW dict and reassigns the attribute.\n\nRefusals: 400 a malformed id or an empty statement · 404 not this AgentDesk's\nmemory · 409 the version carries no memory to reword.","operationId":"edit_learning_statement_api_domains__domain_id__agent_desk_learnings__version_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningStatementUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningStatementOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agent_desk"],"summary":"Remove Learning From Ledger","description":"\"Remove from this list\": take one memory off the Memories ledger.\n\nWHAT THIS IS NOT. It is not an undo and it is not a delete. The version row stays,\nthe document keeps answering exactly as it did a second ago, and the history behind\nthe editor still shows every wording the desk has ever had. Versions are\nappend-only — that is what makes Undo trustworthy — so the only honest \"delete\" over\nthem is one that removes the ROW FROM THE LIST, which is what the owner is actually\nasking for when a superseded or never-applied memory sits there with no control on\nit.\n\nRemoving a LIVE memory therefore leaves it live. The surface says so: for a live row\nthe destructive action is Undo (\"puts the earlier wording back\") and this one is the\nquiet cleanup beside it.\n\nIDEMPOTENT (``mark_version_ledger_hidden`` keeps the first stamp): a second press —\nor a second tab — is a 200 that changed nothing, because a row the owner cannot see\nany more must never answer with an error they cannot act on.\n\nRefusals: 400 a malformed id · 404 not this AgentDesk's memory · 409 the version\ncarries no memory to remove.","operationId":"remove_learning_from_ledger_api_domains__domain_id__agent_desk_learnings__version_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningRemovedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/answer-checks":{"get":{"tags":["agent_desk"],"summary":"List Checks","operationId":"list_checks_api_domains__domain_id__agent_desk_answer_checks_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"from_date","in":"query","required":false,"schema":{"type":"string","default":"","title":"From Date"}},{"name":"to_date","in":"query","required":false,"schema":{"type":"string","default":"","title":"To Date"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"newest","title":"Sort"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/answer-checks/{target}/{action}":{"post":{"tags":["agent_desk"],"summary":"Act","operationId":"act_api_domains__domain_id__agent_desk_answer_checks__target___action__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckAction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/answer-checks/{target}/context":{"get":{"tags":["agent_desk"],"summary":"Answer Context","operationId":"answer_context_api_domains__domain_id__agent_desk_answer_checks__target__context_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/review-overview":{"get":{"tags":["agent_desk"],"summary":"Review Overview","description":"Count actual visitor questions; page fetches remain a separate Traffic metric.","operationId":"review_overview_api_domains__domain_id__agent_desk_review_overview_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/conversations/{conversation_id}/revoke-links":{"post":{"tags":["agent_desk"],"summary":"Revoke Conversation Links","description":"End continuation authority for a thread, including already-issued links.","operationId":"revoke_conversation_links_api_domains__domain_id__agent_desk_conversations__conversation_id__revoke_links_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/host-ownership/challenge":{"post":{"tags":["agent_desk"],"summary":"Create Host Ownership Challenge","operationId":"create_host_ownership_challenge_api_domains__domain_id__agent_desk_host_ownership_challenge_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdditionalHostClaimRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/host-ownership/verify":{"post":{"tags":["agent_desk"],"summary":"Verify Additional Host","operationId":"verify_additional_host_api_domains__domain_id__agent_desk_host_ownership_verify_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdditionalHostClaimRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/credit-reservations":{"get":{"tags":["agent_desk"],"summary":"List Pending Credit Reservations","operationId":"list_pending_credit_reservations_api_domains__domain_id__agent_desk_credit_reservations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/credit-reservations/{request_id}/release":{"post":{"tags":["agent_desk"],"summary":"Release Reviewed Credit Reservation","operationId":"release_reviewed_credit_reservation_api_domains__domain_id__agent_desk_credit_reservations__request_id__release_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReleaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/analytics/summary":{"get":{"tags":["agent_desk"],"summary":"Get Analytics Summary","description":"Volume / outcome / latency rollup over the desk's traces.\n\nDefinitions the UI depends on:\n  * ``answers`` = traces whose outcome does NOT start with ``refused``;\n    ``refusals`` = the rest (``refused_spam`` / ``refused_adversarial``).\n  * every latency aggregate is over ANSWERS ONLY — a refusal's duration is\n    classifier time, and pooling it would flatter the p90.\n  * daily buckets are ``date(created_at)`` in UTC (created_at is written\n    with ``datetime.utcnow``), newest first, days with no rows omitted.","operationId":"get_analytics_summary_api_domains__domain_id__agent_desk_analytics_summary_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/analytics/bans":{"get":{"tags":["agent_desk"],"summary":"List Bans","operationId":"list_bans_api_domains__domain_id__agent_desk_analytics_bans_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent_desk"],"summary":"Apply Ip Rule","description":"Apply an owner override on this desk, then return the full bans payload\nso the UI re-renders from one response instead of a write + refetch.\n\n``allow`` / ``block`` upsert the desk's single row for that IP (unique on\n``(domain_id, ip_address)``) and clear any ``expires_at`` — re-deciding an\nIP means the new decision is open-ended until someone says otherwise.\n``clear`` deletes the row, dropping the IP back to the derived threshold\nbehavior. A ``block`` on a protected AI-provider address is refused (422):\nthe address is shared by everyone using that assistant.","operationId":"apply_ip_rule_api_domains__domain_id__agent_desk_analytics_bans_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IpRuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/announce":{"get":{"tags":["agent_desk"],"summary":"Get Announce State","description":"Detection state + the snippets to paste. Never probes — this is the\nendpoint a rail row polls, and a poll that fetched the customer's site four\ntimes would be a self-inflicted outage on their homepage.\n\nReads the injected Domain deliberately: it is a read of already-loaded\ncolumns on a per-request session, so it always reflects committed state. Only\nthe WRITE path needs the sync-session reload (see /check).","operationId":"get_announce_state_api_domains__domain_id__agent_desk_announce_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnounceStateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/agent-desk/announce/check":{"post":{"tags":["agent_desk"],"summary":"Request Announce Check","description":"Queue a bounded re-check of the customer's site.\n\n429 with the ISO time the next one is allowed. The rate-limit clock is\nstamped HERE and only AFTER a successful enqueue — the discipline\n``/crawl/recrawl`` documents: a broker failure must not burn the customer's\nslot, but neither may the limit depend on a worker having run, or a backed-up\nqueue would let one button turn into an unbounded number of probes against\nthe customer's own homepage.","operationId":"request_announce_check_api_domains__domain_id__agent_desk_announce_check_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnounceCheckQueued"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge":{"get":{"tags":["knowledge"],"summary":"List Knowledge Items","operationId":"list_knowledge_items_api_domains__domain_id__knowledge_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KnowledgeItemOut"},"title":"Response List Knowledge Items Api Domains  Domain Id  Knowledge Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge/files":{"post":{"tags":["knowledge"],"summary":"Upload Knowledge Files","operationId":"upload_knowledge_files_api_domains__domain_id__knowledge_files_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_knowledge_files_api_domains__domain_id__knowledge_files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KnowledgeItemOut"},"title":"Response Upload Knowledge Files Api Domains  Domain Id  Knowledge Files Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge/link":{"post":{"tags":["knowledge"],"summary":"Add Knowledge Link","description":"Add a link to the knowledge shelf (KB-unification WO-4).\n\nAdd-first semantics: the fetch is best-effort. On success the page bytes\nland in R2 and the ingest projection (parse → knowledge index) runs on\nthem, exactly like an upload; on failure the link is still filed —\n``source_url`` keeps the original Drive/Notion/site link reachable, which\nis the point of the shelf entry even when we can't read the page.","operationId":"add_knowledge_link_api_domains__domain_id__knowledge_link_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeLinkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge/note":{"post":{"tags":["knowledge"],"summary":"Add Knowledge Note","description":"Add a standing note to the knowledge shelf (KB-unification WO-4): a\ntext-only document — the projection's text lane indexes it directly.","operationId":"add_knowledge_note_api_domains__domain_id__knowledge_note_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeNoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge/{document_id}/download":{"get":{"tags":["knowledge"],"summary":"Download Knowledge File","operationId":"download_knowledge_file_api_domains__domain_id__knowledge__document_id__download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge/{document_id}":{"delete":{"tags":["knowledge"],"summary":"Delete Knowledge Item","operationId":"delete_knowledge_item_api_domains__domain_id__knowledge__document_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/knowledge/{document_id}/publication":{"put":{"tags":["knowledge"],"summary":"Set Knowledge Publication","operationId":"set_knowledge_publication_api_domains__domain_id__knowledge__document_id__publication_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgePublicationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content":{"get":{"tags":["content_attribution"],"summary":"List Content","description":"List content items for a domain, paginated.\n\nFilters apply BEFORE sort + cursor — the cursor is only meaningful\nwithin the same filter combination. Changing any filter (or sort)\nrequires the client to start from the top (no cursor).\n\nThe default ``limit`` is 500 so most domains' Owned and Competitor\ntabs come back in a single page, letting the frontend route\nsort/filter operations client-side and stay instant. Third-party (or\n\"all\") tabs at large domains will paginate via ``nextCursor``.","operationId":"list_content_api_domains__domain_id__content_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"category_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Slug"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"owned|competitor|third_party","title":"Ownership"},"description":"owned|competitor|third_party"},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["company_docs","website"],"type":"string"},{"type":"null"}],"description":"Filter to one side of the response's own `source` split: 'company_docs' (source_kind = company_doc) or 'website' (everything else).","title":"Source"},"description":"Filter to one side of the response's own `source` split: 'company_docs' (source_kind = company_doc) or 'website' (everything else)."},{"name":"sort","in":"query","required":false,"schema":{"enum":["visits","recent","title","impact"],"type":"string","default":"visits","title":"Sort"}},{"name":"dir","in":"query","required":false,"schema":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"description":"Sort direction. Defaults to the natural direction for the chosen sort (visits/recent/impact = desc, title = asc). Pass 'asc' or 'desc' to override.","title":"Dir"},"description":"Sort direction. Defaults to the natural direction for the chosen sort (visits/recent/impact = desc, title = asc). Pass 'asc' or 'desc' to override."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor from a previous response's nextCursor","title":"Cursor"},"description":"Opaque cursor from a previous response's nextCursor"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":500,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search across title + canonical_url","title":"Q"},"description":"Free-text search across title + canonical_url"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentItemListPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content/overview":{"get":{"tags":["content_attribution"],"summary":"Get Overview","description":"Global stats for the Content tab's header card.\n\nEvery metric here is scoped to ``ownership='owned'`` content. The\nContent tab is \"how is YOUR content performing?\" — counting third-\nparty cited URLs alongside the customer's own pages would inflate\n\"Pages published\" and dilute \"Overall impact\" with citations the\ncustomer doesn't own. The list endpoint still serves all ownership\nclasses for filterable browsing; the global cards stay narrow.\n\n* ``overallImpact`` — ``round(avg(IMPACT_NUM) / 3 * 100)`` across\n  every (owned-doc × intent) and (owned-doc × criterion)\n  attribution.\n* ``companyDocsCount`` — published company docs (source_kind =\n  'company_doc'). Always owned by definition.\n* ``agentCitedUrlsCount`` — cited URLs surfaced through analysis\n  (source_kind != 'company_doc'). Includes owned-website pages\n  (URLs on your domain that AI agents are referencing) + competitor\n  + third_party — i.e. every URL agents have actually cited.\n* ``lifetimeImpressions`` / ``impressionsToday`` /\n  ``dualSourceSeries`` — bot visits joined to owned content_items\n  only.","operationId":"get_overview_api_domains__domain_id__content_overview_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":60,"title":"Days"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentOverviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content/categories":{"get":{"tags":["content_attribution"],"summary":"List Categories","description":"Seeded category taxonomy plus per-category item counts for this\ndomain.\n\nThe alembic seed already includes a canonical ``uncategorized``\nrow (display_order 999) — we reuse that one and populate its count\nfrom content_items that have zero ``content_category_link`` rows,\nrather than emitting a second synthetic row.","operationId":"list_categories_api_domains__domain_id__content_categories_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContentCategoryOut"},"title":"Response List Categories Api Domains  Domain Id  Content Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content/items/{item_id}":{"get":{"tags":["content_attribution"],"summary":"Get Content Item","description":"Full ``MockDocument``-shaped payload for the detail pane.\n\nIncludes every intent/criterion attributed to this content_item\n(via ``content_citation``), with deterministic found/support/impact\nverdicts and scenario-level rationales. ``echoes`` is empty in v1;\nthe messaging-echo extractor lands in PR #2.","operationId":"get_content_item_api_domains__domain_id__content_items__item_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentItemDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content/items/{item_id}/bot-visits":{"get":{"tags":["content_attribution"],"summary":"Get Bot Visits","description":"Bucketed daily bot-visit counts for one content_item.\n\nSeparate endpoint from the item detail so the frontend can fetch\na longer history (up to 365 days) on demand without paying the\ncost on every doc-detail open.","operationId":"get_bot_visits_api_domains__domain_id__content_items__item_id__bot_visits_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":60,"title":"Days"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VisitPointOut"},"title":"Response Get Bot Visits Api Domains  Domain Id  Content Items  Item Id  Bot Visits Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content/items/{item_id}/traffic":{"get":{"tags":["content_attribution"],"summary":"Get Item Traffic","description":"Agent impressions + human pageviews for one content item.\n\nBacks the per-row expanded chart on Agent Analytics. Both series are\ndaily, zero-filled, and end yesterday (completed days only) so the\ntwo lines always align. ``human`` is all zeros for domains without\nCloudflare human rollups.","operationId":"get_item_traffic_api_domains__domain_id__content_items__item_id__traffic_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":60,"title":"Days"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemTrafficOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/content/agents":{"get":{"tags":["content_attribution"],"summary":"Get Agent Breakdown","description":"Windowed bot-visit totals grouped by identified agent.\n\nBacks the hub Traffic page's \"By agent\" module. Same scoping as every\nother impressions read here: owned content only, general crawlers\nexcluded (``_ai_visit_filters``), and unattached visits (no\n``content_item_id``) invisible via the inner join.\n\n``SUM(visit_count)``, never COUNT(*) — Cloudflare ingestion rows are\nhour-buckets carrying counts > 1. NULL ``identified_llm`` folds into\n``\"unidentified\"`` so the shares always total 1.0. Rolling window\n(now - days), not completed-days: this is a composition readout, not a\nchart, so the partial-day bias the series endpoints avoid doesn't\napply.","operationId":"get_agent_breakdown_api_domains__domain_id__content_agents_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":60,"title":"Days"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["company_docs","website"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBreakdownOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/priorities/{priority_id}/attribution":{"get":{"tags":["attribution"],"summary":"Get Priority Attribution","description":"Echoes + counterexamples + supporting content for one priority.","operationId":"get_priority_attribution_api_domains__domain_id__priorities__priority_id__attribution_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"priority_id","in":"path","required":true,"schema":{"type":"string","title":"Priority Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"echo_limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Echo Limit"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriorityAttributionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/personas/{persona_id}/attribution":{"get":{"tags":["attribution"],"summary":"Get Persona Attribution","description":"Visibility/alignment time-series + competitor overlay + supporting\ncontent for one persona. Optional ``scenario_context`` query param\nscopes the time-series to a single buying context.","operationId":"get_persona_attribution_api_domains__domain_id__personas__persona_id__attribution_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"scenario_context","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario Context"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaAttributionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/cloudflare-bot-tracking":{"get":{"tags":["cloudflare_bot_tracking"],"summary":"Get Status","operationId":"get_status_api_domains__domain_id__cloudflare_bot_tracking_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudflareBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["cloudflare_bot_tracking"],"summary":"Upsert Connection","description":"Validate the credentials with a live probe, then persist them.","operationId":"upsert_connection_api_domains__domain_id__cloudflare_bot_tracking_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudflareBotTrackingUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudflareBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["cloudflare_bot_tracking"],"summary":"Disconnect","operationId":"disconnect_api_domains__domain_id__cloudflare_bot_tracking_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudflareBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/cloudflare-bot-tracking/sync":{"post":{"tags":["cloudflare_bot_tracking"],"summary":"Trigger Sync","description":"Enqueue an immediate Cloudflare sync for this domain.","operationId":"trigger_sync_api_domains__domain_id__cloudflare_bot_tracking_sync_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudflareBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aws-bot-tracking":{"get":{"tags":["aws_bot_tracking"],"summary":"Get Status","operationId":"get_status_api_domains__domain_id__aws_bot_tracking_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["aws_bot_tracking"],"summary":"Upsert Connection","description":"Probe the role+bucket then persist.","operationId":"upsert_connection_api_domains__domain_id__aws_bot_tracking_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsBotTrackingUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["aws_bot_tracking"],"summary":"Disconnect","operationId":"disconnect_api_domains__domain_id__aws_bot_tracking_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/aws-bot-tracking/sync":{"post":{"tags":["aws_bot_tracking"],"summary":"Trigger Sync","operationId":"trigger_sync_api_domains__domain_id__aws_bot_tracking_sync_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/netlify-bot-tracking":{"get":{"tags":["netlify_bot_tracking"],"summary":"Get Status","operationId":"get_status_api_domains__domain_id__netlify_bot_tracking_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetlifyBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["netlify_bot_tracking"],"summary":"Upsert Connection","description":"Generate (or rotate) the per-domain ingest token.\n\nNo customer-supplied credentials — we are the auth issuer for push\nintegrations. Each PUT regenerates the secret; the old URL stops\nauthenticating after the next request.","operationId":"upsert_connection_api_domains__domain_id__netlify_bot_tracking_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetlifyBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["netlify_bot_tracking"],"summary":"Disconnect","operationId":"disconnect_api_domains__domain_id__netlify_bot_tracking_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetlifyBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/akamai-bot-tracking":{"get":{"tags":["akamai_bot_tracking"],"summary":"Get Status","operationId":"get_status_api_domains__domain_id__akamai_bot_tracking_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AkamaiBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["akamai_bot_tracking"],"summary":"Upsert Connection","description":"Generate (or rotate) the per-domain ingest token.","operationId":"upsert_connection_api_domains__domain_id__akamai_bot_tracking_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AkamaiBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["akamai_bot_tracking"],"summary":"Disconnect","operationId":"disconnect_api_domains__domain_id__akamai_bot_tracking_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AkamaiBotTrackingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/reports":{"get":{"tags":["reports"],"summary":"List Reports","description":"The report archive for a domain, newest first.\n\nPublished only for customers; ``include_drafts=1`` is honored for\nsuperusers (silently ignored otherwise — no error, no leak). The list is\ndeliberately light: no blocks (the detail fetch carries them).","operationId":"list_reports_api_domains__domain_id__reports_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"include_drafts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Drafts"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportListItem"},"title":"Response List Reports Api Domains  Domain Id  Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/reports/{report_id}":{"get":{"tags":["reports"],"summary":"Get Report","description":"One report, blocks included. Drafts 404 for non-superusers (same\nerror as not-found — no existence leak).","operationId":"get_report_api_domains__domain_id__reports__report_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/reports/{report_id}/blocks":{"patch":{"tags":["reports"],"summary":"Patch Report Blocks","description":"Lite per-block editing (WO-3; widened to org members on living docs).\n\nField-level content merges through the shared edit primitive\n(``reports/edit.py``) — the same mechanism as the ``patch_report_blocks``\nMCP tool. Editing an analysis-bound block flips its binding to ``manual``\n(surfaced in ``flipped_block_ids`` so the UI can warn). Published\nDELIVERABLES 409 — supersede instead; published LIVING docs stay\neditable (lifecycle axis, 2026-07-29).\n\nAccess matrix (task a261d01d — collaborative master docs):\n* superuser: drafts + published living docs (published deliverables 409);\n* org member: published LIVING docs only — the customer-editable lane the\n  checklist toggle pioneered, widened to block edits. Drafts stay\n  invisible (404, same as detail — no existence leak); published\n  deliverables 409 (readable but never editable). Edits are attributed\n  via ``edit_log`` exactly like staff edits.","operationId":"patch_report_blocks_api_domains__domain_id__reports__report_id__blocks_patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchBlocksRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchBlocksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/reports/{report_id}/checklist/{block_id}/items/{item_id}":{"patch":{"tags":["reports"],"summary":"Toggle Checklist Item","description":"Flip one checklist item on a LIVING report doc.\n\nThe one customer-writable report endpoint (staff use it too): org-member\nscoped via ``get_domain``, NO superuser gate — a declared affordance, not\nthe BlockEditor (precedent: the customer task PATCH in\n``routes/priorities.py``). Drafts stay invisible to customers (404, same\nas detail — no existence leak); deliverables 409 (visible but not\ninteractive); unknown block/item 422.","operationId":"toggle_checklist_item_api_domains__domain_id__reports__report_id__checklist__block_id__items__item_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"block_id","in":"path","required":true,"schema":{"type":"string","title":"Block Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleChecklistRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleChecklistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/reports/{report_id}/publish":{"post":{"tags":["reports"],"summary":"Publish Report","description":"Publish a draft (WO-3, superuser-only). ONE publish mechanism —\nthe shared ``publish_or_resolve_gate`` orchestration (also behind the MCP\n``publish_report`` tool):\n\n* a routine-drafted report has a pending approval gate → resolve it\n  through the routine engine (the same path as the MCP\n  ``resolve_approval_gate`` tool); the executor's ``execute_approved``\n  publishes via the shared primitive.\n* a gate-less draft (direct ``save_report``) → the super_user click IS\n  the human gate: ``apply_publish`` directly, actor = the user.\n\nIdempotent: publishing a published report is a no-op success.","operationId":"publish_report_api_domains__domain_id__reports__report_id__publish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/reports/{report_id}/share-link":{"post":{"tags":["reports"],"summary":"Mint Report Share Link","description":"Mint a ``/r/{token}`` link (same shared mint as the MCP\n``get_report_share_link`` tool — one share mechanism). No body = the\norg-passable signed link, unchanged. ``gate`` in the body = the stored\nprospect-class lane (WO-0): revocable, view-logged, email-gated,\nnon-expiring unless ``expires_days``. Published reports only for\ncustomers; superusers may also mint for drafts (review passes).","operationId":"mint_report_share_link_api_domains__domain_id__reports__report_id__share_link_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ShareLinkRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics":{"get":{"tags":["metrics"],"summary":"List Metrics","operationId":"list_metrics_api_domains__domain_id__metrics_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{metric_ref}/series":{"get":{"tags":["metrics"],"summary":"Metric Series","operationId":"metric_series_api_domains__domain_id__metrics__metric_ref__series_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_ref","in":"path","required":true,"schema":{"type":"string","title":"Metric Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{metric_ref}/explore":{"get":{"tags":["metrics"],"summary":"Metric Explore","description":"The Benchmarks page's one read (2026-10-01): the benchmark as a fact\ntable queried by filters · color · facet · time, plus the table under\nthe chart. Same exposure contract as the series: drafts never reach\ncustomers (and superusers only while the dogfood gate is raised).","operationId":"metric_explore_api_domains__domain_id__metrics__metric_ref__explore_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_ref","in":"path","required":true,"schema":{"type":"string","title":"Metric Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{metric_ref}/questions":{"get":{"tags":["metrics"],"summary":"Metric Questions","description":"\"See the questions\" under the explorer's chart (D6): the declared\nstem and up to five situation texts per question set — prompt text\nonly, never an answer, a judge's output or a source. ``cell`` keeps\none cell's set; ``rival`` keeps the questions that named that\nalternative. Same exposure contract as the explore read.","operationId":"metric_questions_api_domains__domain_id__metrics__metric_ref__questions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_ref","in":"path","required":true,"schema":{"type":"string","title":"Metric Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{metric_ref}/views":{"get":{"tags":["metrics"],"summary":"Metric Views","description":"The pinned views of a benchmark, in order: the scoping page's rows\nseed them on the first read; a lead's own pins ride beside them.\n``dirty`` says the set differs from the scoped seeds (reset offered).","operationId":"metric_views_api_domains__domain_id__metrics__metric_ref__views_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_ref","in":"path","required":true,"schema":{"type":"string","title":"Metric Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["metrics"],"summary":"Create Metric View","description":"Pin the current view: ``{name, query: {color, facet, filters,\nbreakout}, sentence?}``. The query is checked against the plan first.\nSuperuser only (the lead's call on the record).","operationId":"create_metric_view_api_domains__domain_id__metrics__metric_ref__views_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_ref","in":"path","required":true,"schema":{"type":"string","title":"Metric Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{metric_ref}/views/{view_id}":{"patch":{"tags":["metrics"],"summary":"Update Metric View","description":"Rename (``name``), re-describe (``sentence``) or reorder\n(``position``, 0-based among the live pins) a pin. Superuser only.","operationId":"update_metric_view_api_domains__domain_id__metrics__metric_ref__views__view_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_ref","in":"path","required":true,"schema":{"type":"string","title":"Metric Ref"}},{"name":"view_id","in":"path","required":true,"schema":{"type":"string","title":"View Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["metrics"],"summary":"Delete Metric View","description":"Remove a pin (set aside, never deleted: a reset brings a seed back).\nSuperuser only.","operationId":"delete_metric_view_api_domains__domain_id__metrics__metric_ref__views__view_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_ref","in":"path","required":true,"schema":{"type":"string","title":"Metric Ref"}},{"name":"view_id","in":"path","required":true,"schema":{"type":"string","title":"View Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{metric_ref}/views/reset":{"post":{"tags":["metrics"],"summary":"Reset Metric Views","description":"Back to the scoped pins: every seed live in plan order, the lead's\nown pins set aside. Superuser only.","operationId":"reset_metric_views_api_domains__domain_id__metrics__metric_ref__views_reset_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_ref","in":"path","required":true,"schema":{"type":"string","title":"Metric Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{metric_id}/publish":{"post":{"tags":["metrics"],"summary":"Publish Metric","operationId":"publish_metric_api_domains__domain_id__metrics__metric_id__publish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","title":"Metric Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{metric_id}/unpublish":{"post":{"tags":["metrics"],"summary":"Unpublish Metric","operationId":"unpublish_metric_api_domains__domain_id__metrics__metric_id__unpublish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"metric_id","in":"path","required":true,"schema":{"type":"string","title":"Metric Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/dashboards":{"get":{"tags":["dashboards"],"summary":"List Dashboards","description":"Every version for staff (newest first, with ``is_head`` and\n``current_for``: which of staff / customer Home shows this version to);\nfor customers only the live version.","operationId":"list_dashboards_api_domains__domain_id__dashboards_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"slot","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slot"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Dashboards Api Domains  Domain Id  Dashboards Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dashboards"],"summary":"Save Dashboard","description":"Lint and save a new DRAFT version — the head, so staff see it on Home\nat once. 422 with the report when the page fails validation (nothing is\nwritten).","operationId":"save_dashboard_api_domains__domain_id__dashboards_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveDashboardRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Dashboard Api Domains  Domain Id  Dashboards Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/dashboards/current":{"get":{"tags":["dashboards"],"summary":"Current Dashboard","description":"What Home mounts for this viewer: ``{\"dashboard\": {...srcdoc...}}`` or\n``{\"dashboard\": null}``.","operationId":"current_dashboard_api_domains__domain_id__dashboards_current_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"dashboard_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"staff preview: a specific version","title":"Dashboard Id"},"description":"staff preview: a specific version"},{"name":"slot","in":"query","required":false,"schema":{"type":"string","default":"home","title":"Slot"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Current Dashboard Api Domains  Domain Id  Dashboards Current Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/dashboards/{dashboard_id}":{"get":{"tags":["dashboards"],"summary":"Get Dashboard","description":"One version's record (staff), with the datasets it declares and their\nstatus. Customers get 404 — the page itself reaches them through\n``/current`` only.","operationId":"get_dashboard_api_domains__domain_id__dashboards__dashboard_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"string","title":"Dashboard Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"include_source","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Source"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dashboard Api Domains  Domain Id  Dashboards  Dashboard Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/dashboards/validate":{"post":{"tags":["dashboards"],"summary":"Validate Dashboard","operationId":"validate_dashboard_api_domains__domain_id__dashboards_validate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Validate Dashboard Api Domains  Domain Id  Dashboards Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/dashboards/{dashboard_id}/publish":{"post":{"tags":["dashboards"],"summary":"Publish Dashboard","description":"Make this version the live one for the customer: re-lint, publish its\ndeclared datasets, return the previously live version to draft. The\nrecord comes back with ``published_datasets`` (what this call made live).","operationId":"publish_dashboard_api_domains__domain_id__dashboards__dashboard_id__publish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"string","title":"Dashboard Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Dashboard Api Domains  Domain Id  Dashboards  Dashboard Id  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/dashboards/{dashboard_id}/unpublish":{"post":{"tags":["dashboards"],"summary":"Unpublish Dashboard","description":"Back to draft: the customer returns to the standard Home. Datasets are\nleft as they are.","operationId":"unpublish_dashboard_api_domains__domain_id__dashboards__dashboard_id__unpublish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"dashboard_id","in":"path","required":true,"schema":{"type":"string","title":"Dashboard Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unpublish Dashboard Api Domains  Domain Id  Dashboards  Dashboard Id  Unpublish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/datasets":{"get":{"tags":["datasets"],"summary":"List Datasets","operationId":"list_datasets_api_domains__domain_id__datasets_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Datasets Api Domains  Domain Id  Datasets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["datasets"],"summary":"Register Dataset","description":"Staff: register rows carried in the request body (small datasets; the\nMCP's presigned upload is the path for big files).","operationId":"register_dataset_api_domains__domain_id__datasets_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDatasetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Register Dataset Api Domains  Domain Id  Datasets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/datasets/{ref}":{"get":{"tags":["datasets"],"summary":"Get Dataset","operationId":"get_dataset_api_domains__domain_id__datasets__ref__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"rows","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"description":"how many rows to include (0 = schema and sample only)","default":0,"title":"Rows"},"description":"how many rows to include (0 = schema and sample only)"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dataset Api Domains  Domain Id  Datasets  Ref  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/query":{"post":{"tags":["datasets"],"summary":"Run Query","operationId":"run_query_api_domains__domain_id__query_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backend__dashboard_server__routes__datasets__QueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Query Api Domains  Domain Id  Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/datasets/{ref}/publish":{"post":{"tags":["datasets"],"summary":"Publish Dataset","operationId":"publish_dataset_api_domains__domain_id__datasets__ref__publish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Dataset Api Domains  Domain Id  Datasets  Ref  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/datasets/{ref}/unpublish":{"post":{"tags":["datasets"],"summary":"Unpublish Dataset","operationId":"unpublish_dataset_api_domains__domain_id__datasets__ref__unpublish_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unpublish Dataset Api Domains  Domain Id  Datasets  Ref  Unpublish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/metrics/{ref}/conversations":{"get":{"tags":["conversations"],"summary":"Metric Conversations","operationId":"metric_conversations_api_domains__domain_id__metrics__ref__conversations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","title":"Ref"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"cell","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cell"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},{"name":"group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group"}},{"name":"reading","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"a reading's source_ref; default = the current reading","title":"Reading"},"description":"a reading's source_ref; default = the current reading"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Metric Conversations Api Domains  Domain Id  Metrics  Ref  Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/conversations/{conversation_id}":{"get":{"tags":["conversations"],"summary":"One Conversation","operationId":"one_conversation_api_domains__domain_id__conversations__conversation_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response One Conversation Api Domains  Domain Id  Conversations  Conversation Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/experiments":{"get":{"tags":["experiments"],"summary":"List Experiments","operationId":"list_experiments_api_domains__domain_id__experiments_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/experiments/{experiment_id}/readout":{"get":{"tags":["experiments"],"summary":"Experiment Readout","operationId":"experiment_readout_api_domains__domain_id__experiments__experiment_id__readout_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/experiments/{experiment_id}/materials/{document_id}/download":{"get":{"tags":["experiments"],"summary":"Download Experiment Material","description":"A short-lived link for a material's file: ``{\"url\": ...}`` with\n``redirect=false`` (what the app uses — it and the API are on different\norigins and the API is bearer-authenticated, so a link navigation cannot\ncarry the token), else a 302 to it. Only a document the card links is\nserved (the link is the visibility decision); a note with no file is\n404 in both forms — its text travels inline on the readout.","operationId":"download_experiment_material_api_domains__domain_id__experiments__experiment_id__materials__document_id__download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"redirect","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Redirect"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/campaigns":{"get":{"tags":["experiments"],"summary":"List Campaigns","description":"``{campaigns: [...], unassigned: [...]}`` — every campaign on the\naccount (newest first) with its measurements' readouts in proposed\norder, and the readouts of the measurements in no campaign\n(goal_corpus/experiment_readout.campaign_readouts). A customer reads\neach readout without its internals (``_customer_readout``).","operationId":"list_campaigns_api_domains__domain_id__campaigns_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/campaigns/{campaign_id}":{"get":{"tags":["experiments"],"summary":"Get Campaign","description":"One campaign entry (the shape ``GET /campaigns`` lists), by full UUID\non THIS account; anything else is 404. A customer reads it without its\ninternals (``_customer_readout``).","operationId":"get_campaign_api_domains__domain_id__campaigns__campaign_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/campaigns/{campaign_id}/brief/download":{"get":{"tags":["experiments"],"summary":"Download Campaign Brief","description":"A short-lived link for the campaign's brief file: ``{\"url\": ...}``\nwith ``redirect=false`` (what the app uses — it and the API are on\ndifferent origins and the API is bearer-authenticated, so a link\nnavigation cannot carry the token), else a 302 to it. Only the document\nthe campaign names as its brief (``brief_document_id``), on this\naccount; a brief that is a note with no stored file is 404 in both\nforms — its text travels inline on the campaign payload. A campaign with\nno brief serves its draft, which the payload shows as the brief.","operationId":"download_campaign_brief_api_domains__domain_id__campaigns__campaign_id__brief_download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"redirect","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Redirect"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/campaigns/{campaign_id}/brief/draft/download":{"get":{"tags":["experiments"],"summary":"Download Campaign Draft Brief","description":"``download_campaign_brief`` for the revision being written with the\nclient (``draft_brief_document_id``): the same two forms, the same 404s.","operationId":"download_campaign_draft_brief_api_domains__domain_id__campaigns__campaign_id__brief_draft_download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"redirect","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Redirect"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/campaigns/{campaign_id}/action-groups":{"post":{"tags":["experiments"],"summary":"Create Campaign Action Group","description":"Create an empty action group, ready for individual changes.","operationId":"create_campaign_action_group_api_domains__domain_id__campaigns__campaign_id__action_groups_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/campaigns/{campaign_id}/actions":{"post":{"tags":["experiments"],"summary":"Create Campaign Action","operationId":"create_campaign_action_api_domains__domain_id__campaigns__campaign_id__actions_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/campaigns/{campaign_id}/actions/{task_id}":{"patch":{"tags":["experiments"],"summary":"Set Action Shipped At","description":"Edit an action item, including the original ship-date-only write.\nOmitted fields stay as recorded; explicit null clears a URL, group or date.\nInternal task context is never accepted from or returned to customers.","operationId":"set_action_shipped_at_api_domains__domain_id__campaigns__campaign_id__actions__task_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["experiments"],"summary":"Remove Campaign Action","description":"Remove one change, or an empty group, from the campaign, keeping its\ntask and history.","operationId":"remove_campaign_action_api_domains__domain_id__campaigns__campaign_id__actions__task_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/panel":{"get":{"tags":["winrate"],"summary":"Get Panel Route","operationId":"get_panel_route_api_domains__domain_id__winrate_panel_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},{"name":"subject_url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Url"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/panel/draft":{"post":{"tags":["winrate"],"summary":"Draft Panel Route","operationId":"draft_panel_route_api_domains__domain_id__winrate_panel_draft_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DraftPanelRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/panels/{panel_id}":{"put":{"tags":["winrate"],"summary":"Update Panel Route","operationId":"update_panel_route_api_domains__domain_id__winrate_panels__panel_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"panel_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePanelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/panels/{panel_id}/activate":{"post":{"tags":["winrate"],"summary":"Activate Panel Route","operationId":"activate_panel_route_api_domains__domain_id__winrate_panels__panel_id__activate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"panel_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/panels/{panel_id}/generate-scope":{"post":{"tags":["winrate"],"summary":"Generate Scope Route","description":"Generate/re-roll the phrasing templates for one scope (pure — save via PUT).","operationId":"generate_scope_route_api_domains__domain_id__winrate_panels__panel_id__generate_scope_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"panel_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateScopeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/panels/{panel_id}/promote-probe":{"post":{"tags":["winrate"],"summary":"Promote Probe Route","operationId":"promote_probe_route_api_domains__domain_id__winrate_panels__panel_id__promote_probe_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"panel_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteProbeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/panels/{panel_id}/restrict-scope":{"post":{"tags":["winrate"],"summary":"Restrict Scope Route","operationId":"restrict_scope_route_api_domains__domain_id__winrate_panels__panel_id__restrict_scope_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"panel_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestrictScopeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines":{"post":{"tags":["winrate"],"summary":"Create Baseline Route","description":"Run a full-panel baseline measurement (requires an active panel).\nStaff-only: customers request analyses via /request-analysis (email).","operationId":"create_baseline_route_api_domains__domain_id__winrate_baselines_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBaselineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["winrate"],"summary":"List Baselines Route","operationId":"list_baselines_route_api_domains__domain_id__winrate_baselines_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}":{"get":{"tags":["winrate"],"summary":"Get Baseline Route","description":"Baseline detail: the registry envelope + situation roster (per-phase\ntallies; full answers live on GET /runs/{id}/responses).","operationId":"get_baseline_route_api_domains__domain_id__winrate_baselines__run_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}/dashboard":{"get":{"tags":["winrate"],"summary":"Get Baseline Dashboard Route","operationId":"get_baseline_dashboard_route_api_domains__domain_id__winrate_baselines__run_id__dashboard_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}/boundary":{"get":{"tags":["winrate"],"summary":"Get Baseline Boundary Route","operationId":"get_baseline_boundary_route_api_domains__domain_id__winrate_baselines__run_id__boundary_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}/rerun":{"post":{"tags":["winrate"],"summary":"Rerun Baseline Route","operationId":"rerun_baseline_route_api_domains__domain_id__winrate_baselines__run_id__rerun_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RerunBaselineRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}/resume":{"post":{"tags":["winrate"],"summary":"Resume Baseline Route","operationId":"resume_baseline_route_api_domains__domain_id__winrate_baselines__run_id__resume_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}/recompute":{"post":{"tags":["winrate"],"summary":"Recompute Baseline Route","operationId":"recompute_baseline_route_api_domains__domain_id__winrate_baselines__run_id__recompute_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RecomputeBaselineRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}/cancel":{"post":{"tags":["winrate"],"summary":"Cancel Baseline Route","operationId":"cancel_baseline_route_api_domains__domain_id__winrate_baselines__run_id__cancel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}/probes":{"post":{"tags":["winrate"],"summary":"Create Probe Route","operationId":"create_probe_route_api_domains__domain_id__winrate_baselines__run_id__probes_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunProbeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["winrate"],"summary":"List Probes Route","operationId":"list_probes_route_api_domains__domain_id__winrate_baselines__run_id__probes_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"situation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Situation Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/baselines/{run_id}/audit-judge":{"post":{"tags":["winrate"],"summary":"Audit Judge Route","description":"Instrument check (re-judges a sample with fresh LLM calls) — staff-only:\nit spends tokens and reads judge internals, not a customer surface.","operationId":"audit_judge_route_api_domains__domain_id__winrate_baselines__run_id__audit_judge_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AuditJudgeRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/simulations":{"post":{"tags":["winrate"],"summary":"Create Simulation Route","description":"Launch a simulation: targeted panel cells vs a completed baseline.\nStaff-only: customers request via /simulations/request (email).","operationId":"create_simulation_route_api_domains__domain_id__winrate_simulations_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSimulationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["winrate"],"summary":"List Simulations Route","operationId":"list_simulations_route_api_domains__domain_id__winrate_simulations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/simulations/request":{"post":{"tags":["winrate"],"summary":"Request Simulation Route","description":"Customer posture: simulations are launched by the Unusual team on\nrequest — this files the request by email to support (NO_SENDGRID makes it\na printed no-op locally). The create endpoint above stays for the staff\nsurface. NB: declared BEFORE /simulations/{run_id} so the literal path\nisn't captured as a run id.","operationId":"request_simulation_route_api_domains__domain_id__winrate_simulations_request_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestSimulationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/request-analysis":{"post":{"tags":["winrate"],"summary":"Request Analysis Route","description":"Empty-state CTA: a customer with no baselines yet asks the Unusual team\nto run their first win-rate analysis. Files the request by email to support\n(NO_SENDGRID makes it a printed no-op locally).","operationId":"request_analysis_route_api_domains__domain_id__winrate_request_analysis_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestAnalysisRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/simulations/{run_id}":{"get":{"tags":["winrate"],"summary":"Get Simulation Route","description":"Simulation detail: envelope + situation roster + attached strategy/\ncontent inputs + the baseline envelope (raw answers via /runs/{id}/responses).","operationId":"get_simulation_route_api_domains__domain_id__winrate_simulations__run_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/simulations/{run_id}/delta":{"get":{"tags":["winrate"],"summary":"Get Simulation Delta Route","description":"The win-rate delta readout (verdict, CI-gated cells, boundary shifts,\nmedia impact). The payload's ``error`` field is the run's OWN error column\n(failed runs still 200 with identity) — only not-found 404s, the sim's split.","operationId":"get_simulation_delta_route_api_domains__domain_id__winrate_simulations__run_id__delta_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/simulations/{run_id}/metrics":{"get":{"tags":["winrate"],"summary":"Get Simulation Metrics Route","operationId":"get_simulation_metrics_route_api_domains__domain_id__winrate_simulations__run_id__metrics_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/simulations/{run_id}/cancel":{"post":{"tags":["winrate"],"summary":"Cancel Simulation Route","operationId":"cancel_simulation_route_api_domains__domain_id__winrate_simulations__run_id__cancel_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/runs/{run_id}/situations":{"get":{"tags":["winrate"],"summary":"Get Situations Route","operationId":"get_situations_route_api_domains__domain_id__winrate_runs__run_id__situations_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/runs/{run_id}/responses":{"get":{"tags":["winrate"],"summary":"Get Raw Responses Route","operationId":"get_raw_responses_route_api_domains__domain_id__winrate_runs__run_id__responses_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"situation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Situation Id"}},{"name":"situation_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Situation Type"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"phase","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/runs/{run_id}/archive":{"post":{"tags":["winrate"],"summary":"Archive Run Route","description":"Soft-archive (plan review N3): hides the run from product lists (they\nfilter archived unless ?include_archived=true). No hard-delete endpoint —\nthat stays a staff/MCP janitorial op. Reversible with {\"archived\": false}.","operationId":"archive_run_route_api_domains__domain_id__winrate_runs__run_id__archive_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ArchiveRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/runs/{run_id}/progress":{"get":{"tags":["winrate"],"summary":"Get Run Progress Route","description":"Cursor-paged progress events from the house Redis job store (written by\nthe winrate driver's emit hook; job key = the run id).","operationId":"get_run_progress_route_api_domains__domain_id__winrate_runs__run_id__progress_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Cursor"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/runs/{run_id}/stream":{"get":{"tags":["winrate"],"summary":"Stream Run Progress Route","description":"SSE live console (mirrors /jobs/{id}/stream: open-flush, 15s pings,\nterminal status event + short grace). Auth is the same Bearer scheme, so\nclients use fetch() streaming rather than EventSource.","operationId":"stream_run_progress_route_api_domains__domain_id__winrate_runs__run_id__stream_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Cursor"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/trends":{"get":{"tags":["winrate"],"summary":"Get Trends Route","operationId":"get_trends_route_api_domains__domain_id__winrate_trends_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"panel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Panel Id"}},{"name":"competitor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Competitor"}},{"name":"scope_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Key"}},{"name":"stance","in":"query","required":false,"schema":{"type":"string","default":"neutral","title":"Stance"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/what-changed":{"get":{"tags":["winrate"],"summary":"Get What Changed Route","operationId":"get_what_changed_route_api_domains__domain_id__winrate_what_changed_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"baseline_run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Run Id"}},{"name":"baseline_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/predict-cost":{"post":{"tags":["winrate"],"summary":"Predict Cost Route","operationId":"predict_cost_route_api_domains__domain_id__winrate_predict_cost_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictCostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/screen-artifact":{"post":{"tags":["winrate"],"summary":"Screen Artifact Route","operationId":"screen_artifact_route_api_domains__domain_id__winrate_screen_artifact_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenArtifactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/strategies/generate":{"post":{"tags":["winrate"],"summary":"Generate Strategies Route","description":"Boundary-guided strategy docs for one competitor (the sim's\n``generate_strategies`` verb, re-plumbed): reads the baseline's stored\nwinrate_result, one LLM call, persists ``winrate_strategy`` rows\n(source=\"boundary_agent\") ready to attach to a simulation.","operationId":"generate_strategies_route_api_domains__domain_id__winrate_strategies_generate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateStrategiesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/fetch-content":{"post":{"tags":["winrate"],"summary":"Fetch Content","description":"Fetch URL content via Exa for the wizard's 'fetch existing page' flow.","operationId":"fetch_content_api_domains__domain_id__winrate_fetch_content_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchContentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/winrate/summarize-content":{"post":{"tags":["winrate"],"summary":"Summarize Content","description":"One-sentence AI summaries for the wizard's content items (sim-verbatim prompt).","operationId":"summarize_content_api_domains__domain_id__winrate_summarize_content_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizeContentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/prospect-snapshot/drafts":{"post":{"tags":["prospect-snapshot"],"summary":"Create Draft","description":"Stage-0: research the prospect, land a pending draft in the review queue.\n\nv1 runs the research synchronously — expect tens of seconds.","operationId":"create_draft_api_domains__domain_id__prospect_snapshot_drafts_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["prospect-snapshot"],"summary":"List Drafts","description":"The review queue (pending first).","operationId":"list_drafts_api_domains__domain_id__prospect_snapshot_drafts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/prospect-snapshot/drafts/{draft_id}":{"get":{"tags":["prospect-snapshot"],"summary":"Get Draft","description":"Full draft for the review screen: setup + citations + predicted cost.","operationId":"get_draft_api_domains__domain_id__prospect_snapshot_drafts__draft_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/prospect-snapshot/drafts/{draft_id}/confirm":{"post":{"tags":["prospect-snapshot"],"summary":"Confirm Draft","description":"Confirm & run — the only path to spend.","operationId":"confirm_draft_api_domains__domain_id__prospect_snapshot_drafts__draft_id__confirm_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/prospect-snapshot/drafts/{draft_id}/reject":{"post":{"tags":["prospect-snapshot"],"summary":"Reject Draft","operationId":"reject_draft_api_domains__domain_id__prospect_snapshot_drafts__draft_id__reject_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/prospect-snapshot/runs/{run_id}":{"get":{"tags":["prospect-snapshot"],"summary":"Get Run","operationId":"get_run_api_domains__domain_id__prospect_snapshot_runs__run_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/prospect-snapshot/runs/{run_id}/share":{"post":{"tags":["prospect-snapshot"],"summary":"Create Share","description":"Finalize the snapshot (triage → levers → exposure → report) and mint\nthe password-gated link. Returns {share_url, passphrase} — the passphrase\nis shown once, never persisted in plaintext.","operationId":"create_share_api_domains__domain_id__prospect_snapshot_runs__run_id__share_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/prospect-snapshot/shares/{token}/revoke":{"post":{"tags":["prospect-snapshot"],"summary":"Revoke Share","operationId":"revoke_share_api_domains__domain_id__prospect_snapshot_shares__token__revoke_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/account-context":{"get":{"tags":["account-context"],"summary":"Get Account Context","description":"The briefing package for ``domain`` and its markdown brief, for staff.\n\nThe knobs mirror the MCP tool's (``get_account_context``) so the tab can\nshow exactly what a given call would have inserted. Knob errors (an unknown\nsection, a bad audience) are 400s carrying the builder's own message.","operationId":"get_account_context_api_domains__domain_id__account_context_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"sections","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated EXTRA sections (additive): register, rubric, evals, log, contacts, competitors, personas, probes, proposed","title":"Sections"},"description":"Comma-separated EXTRA sections (additive): register, rubric, evals, log, contacts, competitors, personas, probes, proposed"},{"name":"budget_tokens","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Token budget; clamped to the builder's allowed range","title":"Budget Tokens"},"description":"Token budget; clamped to the builder's allowed range"},{"name":"staleness_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Flag goals/tasks older than this many days","title":"Staleness Days"},"description":"Flag goals/tasks older than this many days"},{"name":"audience","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"internal | external — what a customer-facing consumer would see","title":"Audience"},"description":"internal | external — what a customer-facing consumer would see"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Account Context Api Domains  Domain Id  Account Context Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/account-context/sweep":{"get":{"tags":["account-context"],"summary":"Get Sweep","description":"The account's sweep list (``get_sweep_candidates``) and its markdown,\nfor staff: ``{sweep, sweep_md}``. The same contract as the tool\n(``build_sweep_for``); advisory, writes nothing.","operationId":"get_sweep_api_domains__domain_id__account_context_sweep_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"staleness_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Age at which open work / idle levers read as stale (default 60)","title":"Staleness Days"},"description":"Age at which open work / idle levers read as stale (default 60)"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sweep Api Domains  Domain Id  Account Context Sweep Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/documents/{document_id}":{"get":{"tags":["account-documents"],"summary":"Get Account Document","description":"The chain's newest version (or ``v``) with its markdown, header and\nevery version, for staff.","operationId":"get_account_document_api_domains__domain_id__documents__document_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"v","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One version's id in the chain; default the newest","title":"V"},"description":"One version's id in the chain; default the newest"},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Account Document Api Domains  Domain Id  Documents  Document Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/external/pages":{"get":{"tags":["external_api"],"summary":"List Generated Pages External","operationId":"list_generated_pages_external_api_external_pages_get","parameters":[{"name":"domain_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional domain ID to scope pages","title":"Domain Id"},"description":"Optional domain ID to scope pages"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["published","draft"],"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["updated_at","created_at","published_at","title","slug"],"type":"string","description":"Field to sort by","default":"updated_at","title":"Sort By"},"description":"Field to sort by"},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","description":"Sort direction","default":"desc","title":"Sort Dir"},"description":"Sort direction"},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip","default":0,"title":"Skip"},"description":"Number of items to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Max items to return","default":50,"title":"Limit"},"description":"Max items to return"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedPagesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/external/pages/{page_id}":{"get":{"tags":["external_api"],"summary":"Get Generated Page External","operationId":"get_generated_page_external_api_external_pages__page_id__get","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"format","in":"query","required":false,"schema":{"enum":["markdown","html"],"type":"string","description":"Content format","default":"markdown","title":"Format"},"description":"Content format"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalPageContentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/external/overview":{"get":{"tags":["external_api"],"summary":"Get Overview Html","description":"Return the generated overview index.html for a domain.","operationId":"get_overview_html_api_external_overview_get","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","description":"Domain ID to generate overview for","title":"Domain Id"},"description":"Domain ID to generate overview for"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/external/sitemap":{"get":{"tags":["external_api"],"summary":"Get Sitemap Xml","description":"Return the generated sitemap.xml for a domain.","operationId":"get_sitemap_xml_api_external_sitemap_get","parameters":[{"name":"domain_id","in":"query","required":true,"schema":{"type":"string","description":"Domain ID to generate sitemap for","title":"Domain Id"},"description":"Domain ID to generate sitemap for"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/session-capture":{"post":{"tags":["session_capture"],"summary":"Ingest Session Capture","description":"Ingest one Claude Code session transcript (idempotent on content_hash).\n\nMultipart form:\n  - ``transcript``  : the raw (optionally gzipped) ``.jsonl`` blob (file part)\n  - ``session_id``  : Claude Code session UUID (the .jsonl filename) — upsert key\n  - ``project`` / ``git_branch`` / ``source`` : cheap context\n  - ``byte_size`` / ``message_count`` / ``started_at`` / ``ended_at`` : cheap metadata\n  - ``metadata``    : optional JSON blob (model, mcp servers, tool tallies)\n\nBehavior:\n  - hash the uploaded bytes (sha256)\n  - if a row for ``session_id`` exists with the same ``content_hash`` → **no-op**\n    (returns ``status=\"unchanged\"``; nothing uploaded, nothing rewritten)\n  - else upload the blob to R2 (hard-fail: R2 is the blob's only home) and\n    upsert the ``session_capture`` row.","operationId":"ingest_session_capture_api_v1_session_capture_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ingest_session_capture_api_v1_session_capture_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Session Capture Api V1 Session Capture Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bot-tracking/ingest/{provider}":{"post":{"tags":["bot_tracking_ingest"],"summary":"Ingest","operationId":"ingest_v1_bot_tracking_ingest__provider__post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"Domain UUID this push belongs to","title":"Domain"},"description":"Domain UUID this push belongs to"},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Per-domain token issued at connect time","title":"Token"},"description":"Per-domain token issued at connect time"},{"name":"x-unusual-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Alternative token transport for providers that support custom headers","title":"X-Unusual-Token"},"description":"Alternative token transport for providers that support custom headers"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/me":{"get":{"tags":["agent_analytics"],"summary":"Analytics Me","operationId":"analytics_me_v1_analytics_me_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsMeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/domains":{"get":{"tags":["agent_analytics"],"summary":"Analytics Domains","operationId":"analytics_domains_v1_analytics_domains_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":253,"default":"","title":"Q"}},{"name":"x-view-as","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-View-As"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AnalyticsDomainOut"},"title":"Response Analytics Domains V1 Analytics Domains Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/recall":{"post":{"tags":["recall"],"summary":"Recall Webhook","description":"Ingest a Recall webhook (signature-verified, processed async).","operationId":"recall_webhook_webhooks_recall_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Recall Webhook Webhooks Recall Post"}}}}}}},"/integrations/gmail/callback":{"get":{"summary":"Gmail Oauth Callback","operationId":"gmail_oauth_callback_integrations_gmail_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/slack/oauth/callback":{"get":{"summary":"Slack Oauth Callback","operationId":"slack_oauth_callback_slack_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/calendar/callback":{"get":{"summary":"Calendar Oauth Callback","operationId":"calendar_oauth_callback_integrations_calendar_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AbortAnalysisRunResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["run_id","status"],"title":"AbortAnalysisRunResponse"},"AbortResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"AbortResponse"},"AboutPageIn":{"properties":{"heading":{"type":"string","maxLength":300,"minLength":1,"title":"Heading"},"about":{"type":"string","maxLength":10000,"minLength":1,"title":"About"},"about_format":{"type":"string","enum":["text","markdown"],"title":"About Format","default":"markdown"}},"type":"object","required":["heading","about"],"title":"AboutPageIn"},"AboutPageOut":{"properties":{"heading":{"type":"string","title":"Heading"},"about":{"type":"string","title":"About"},"about_format":{"type":"string","enum":["text","markdown"],"title":"About Format"},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At"},"is_house_default":{"type":"boolean","title":"Is House Default"},"public_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Url"},"can_regenerate":{"type":"boolean","title":"Can Regenerate","default":false},"can_edit":{"type":"boolean","title":"Can Edit","default":false}},"type":"object","required":["heading","about","about_format","is_house_default"],"title":"AboutPageOut"},"AcceptBrandGoalsRequest":{"properties":{"brand_goals":{"items":{"$ref":"#/components/schemas/BrandGoalItem"},"type":"array","title":"Brand Goals"}},"type":"object","required":["brand_goals"],"title":"AcceptBrandGoalsRequest"},"AcceptCompetitorsRequest":{"properties":{"competitors":{"items":{"$ref":"#/components/schemas/CompetitorItem"},"type":"array","title":"Competitors"}},"type":"object","required":["competitors"],"title":"AcceptCompetitorsRequest"},"AcceptMonitorsRequest":{"properties":{"monitors":{"items":{"$ref":"#/components/schemas/MonitorItem"},"type":"array","title":"Monitors"}},"type":"object","required":["monitors"],"title":"AcceptMonitorsRequest"},"AcceptObjectivesRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"objectives":{"items":{"$ref":"#/components/schemas/RecommendedObjective"},"type":"array","title":"Objectives"}},"type":"object","required":["session_id","objectives"],"title":"AcceptObjectivesRequest"},"AcceptProductsRequest":{"properties":{"products":{"items":{"$ref":"#/components/schemas/ProductItem"},"type":"array","title":"Products"}},"type":"object","required":["products"],"title":"AcceptProductsRequest"},"AccountDomainSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"host":{"type":"string","title":"Host"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"no_content_features":{"type":"boolean","title":"No Content Features","default":false},"monitoring_onboarded":{"type":"boolean","title":"Monitoring Onboarded","default":false},"overview_schedule_enabled":{"type":"boolean","title":"Overview Schedule Enabled","default":false},"overview_schedule_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overview Schedule Timezone"},"overview_schedule_day_of_week":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overview Schedule Day Of Week"},"overview_schedule_local_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overview Schedule Local Time"},"overview_schedule_interval_weeks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overview Schedule Interval Weeks"},"overview_schedule_next_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overview Schedule Next Run At"},"overview_schedule_last_enqueued_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overview Schedule Last Enqueued At"},"report_delivery_enabled":{"type":"boolean","title":"Report Delivery Enabled","default":false},"report_delivery_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Delivery Timezone"},"report_delivery_local_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Delivery Local Time"},"last_overview_analysis_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Overview Analysis At"},"enable_automatic_content_updates":{"type":"boolean","title":"Enable Automatic Content Updates","default":false},"content_writing_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Writing Guidance"}},"type":"object","required":["id","host"],"title":"AccountDomainSummary"},"AccountPersonaSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"scenarios":{"items":{"type":"string"},"type":"array","title":"Scenarios"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","description"],"title":"AccountPersonaSummary"},"AccountStatusDetail":{"properties":{"row":{"$ref":"#/components/schemas/AccountStatusRow"},"goals":{"items":{"$ref":"#/components/schemas/AccountStatusGoal"},"type":"array","title":"Goals"},"priorities":{"items":{"$ref":"#/components/schemas/AccountStatusPriority"},"type":"array","title":"Priorities"},"other_tasks":{"items":{"$ref":"#/components/schemas/AccountStatusTask"},"type":"array","title":"Other Tasks"},"agency_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agency Company"}},"type":"object","required":["row"],"title":"AccountStatusDetail"},"AccountStatusGoal":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"kind":{"type":"string","title":"Kind","default":"client_business_goal"},"is_north_star":{"type":"boolean","title":"Is North Star","default":false}},"type":"object","required":["id"],"title":"AccountStatusGoal"},"AccountStatusGoalPatchRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},"additionalProperties":false,"type":"object","title":"AccountStatusGoalPatchRequest","description":"JTBD editor — the same grammar as the MCP ``update_goal`` (shared\n``backend/crm/goal_patch.py``), typed for the HTTP surface."},"AccountStatusListResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AccountStatusRow"},"type":"array","title":"Rows"},"total":{"type":"integer","title":"Total"},"status":{"type":"string","title":"Status"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":50},"truncated":{"type":"boolean","title":"Truncated","default":false}},"type":"object","required":["rows","total","status"],"title":"AccountStatusListResponse"},"AccountStatusMilestone":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"done":{"type":"boolean","title":"Done"},"at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At"}},"type":"object","required":["key","label","done"],"title":"AccountStatusMilestone"},"AccountStatusPatchRequest":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"journey_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Journey Phase"},"account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"last_touch":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Touch"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"segment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segment"}},"additionalProperties":false,"type":"object","title":"AccountStatusPatchRequest","description":"Board-row editor — the editable Notion columns (\"everything but account\nand domain\"). Only fields present in the body are applied; an explicit null\nCLEARS the value (the writer's present-``None`` semantics). ``status`` is a\ndeliberate lifecycle transition and cannot be null. Everything else on the\nrow is DERIVED (progress/milestones/counts/agency edge) or deliberately\nread-only here (account name, domain)."},"AccountStatusPriority":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"insight":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Insight"},"why_it_matters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters"},"dimension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"tasks":{"items":{"$ref":"#/components/schemas/AccountStatusTask"},"type":"array","title":"Tasks"}},"type":"object","required":["id","title"],"title":"AccountStatusPriority"},"AccountStatusRow":{"properties":{"account_id":{"type":"string","title":"Account Id"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"},"status":{"type":"string","title":"Status"},"account":{"type":"string","title":"Account"},"domain_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Host"},"domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Url"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"jtbd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jtbd"},"jtbd_goal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jtbd Goal Id"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"journey_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Journey Phase"},"account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"},"agency_mediated":{"type":"boolean","title":"Agency Mediated","default":false},"intro_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro Source"},"segment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segment"},"last_touch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Touch"},"last_signal_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Signal At"},"signal_count_30d":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signal Count 30D"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"work_progress_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Work Progress Pct"},"work_milestones":{"items":{"$ref":"#/components/schemas/AccountStatusMilestone"},"type":"array","title":"Work Milestones"},"priority_count":{"type":"integer","title":"Priority Count","default":0},"open_task_count":{"type":"integer","title":"Open Task Count","default":0}},"type":"object","required":["account_id","status","account"],"title":"AccountStatusRow"},"AccountStatusTask":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"}},"type":"object","required":["id","title"],"title":"AccountStatusTask"},"AccountUserSummary":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"last_login_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Login At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","email"],"title":"AccountUserSummary"},"ActionCreate":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"parent_task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Task Id"},"measurement_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Measurement Ids"},"shipped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shipped At"}},"additionalProperties":false,"type":"object","required":["title"],"title":"ActionCreate"},"ActionGroupCreate":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"}},"additionalProperties":false,"type":"object","required":["title"],"title":"ActionGroupCreate"},"ActionOut":{"properties":{"id":{"type":"string","title":"Id"},"objective_id":{"type":"string","title":"Objective Id"},"analysis_batch_id":{"type":"string","title":"Analysis Batch Id"},"probe_execution_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Execution Batch Id"},"category":{"type":"string","title":"Category"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"reasoning_text":{"type":"string","title":"Reasoning Text"},"probe_vector_store_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Vector Store Id"},"media_vector_store_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Vector Store Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","objective_id","analysis_batch_id","category","title","description","reasoning_text"],"title":"ActionOut"},"ActionPatch":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"parent_task_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Task Id"},"measurement_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Measurement Ids"},"shipped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shipped At"}},"additionalProperties":false,"type":"object","title":"ActionPatch"},"ActiveAccountEntry":{"properties":{"org_id":{"type":"string","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"domain_host":{"type":"string","title":"Domain Host"},"total_sessions":{"type":"integer","title":"Total Sessions"},"total_minutes":{"type":"number","title":"Total Minutes"}},"type":"object","required":["org_id","org_name","domain_host","total_sessions","total_minutes"],"title":"ActiveAccountEntry"},"ActiveAccountsResponse":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/ActiveAccountEntry"},"type":"array","title":"Accounts"},"days":{"type":"integer","title":"Days"}},"type":"object","required":["accounts","days"],"title":"ActiveAccountsResponse"},"AddUserRequest":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["email"],"title":"AddUserRequest"},"AddUserResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"invitation_delivery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitation Delivery"},"sign_in_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign In Url"}},"type":"object","required":["user_id","email"],"title":"AddUserResponse"},"AdditionalHostClaimRequest":{"properties":{"host":{"type":"string","maxLength":253,"minLength":3,"title":"Host"},"claim":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Claim"}},"type":"object","required":["host"],"title":"AdditionalHostClaimRequest"},"AdminActorOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","email"],"title":"AdminActorOut"},"AdminChatDomainOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"host":{"type":"string","title":"Host"},"org_id":{"type":"string","title":"Org Id"},"org_name":{"type":"string","title":"Org Name"},"no_content_features":{"type":"boolean","title":"No Content Features","default":false}},"type":"object","required":["id","host","org_id","org_name"],"title":"AdminChatDomainOut"},"AdminChatDomainSearchResponse":{"properties":{"total":{"type":"integer","title":"Total"},"has_more":{"type":"boolean","title":"Has More"},"results":{"items":{"$ref":"#/components/schemas/AdminChatDomainOut"},"type":"array","title":"Results"}},"type":"object","required":["total","has_more","results"],"title":"AdminChatDomainSearchResponse"},"AdminChatListResponse":{"properties":{"total":{"type":"integer","title":"Total"},"has_more":{"type":"boolean","title":"Has More"},"chats":{"items":{"$ref":"#/components/schemas/AdminChatOut"},"type":"array","title":"Chats"}},"type":"object","required":["total","has_more","chats"],"title":"AdminChatListResponse"},"AdminChatMessagesResponse":{"properties":{"chat":{"$ref":"#/components/schemas/AdminChatOut"},"total":{"type":"integer","title":"Total"},"has_more":{"type":"boolean","title":"Has More"},"messages":{"items":{"$ref":"#/components/schemas/AdminMessageOut"},"type":"array","title":"Messages"}},"type":"object","required":["chat","total","has_more","messages"],"title":"AdminChatMessagesResponse"},"AdminChatOut":{"properties":{"id":{"type":"string","title":"Id"},"origin":{"type":"string","title":"Origin"},"domain_id":{"type":"string","title":"Domain Id"},"domain_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Name"},"domain_host":{"type":"string","title":"Domain Host","default":""},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"no_content_features":{"type":"boolean","title":"No Content Features","default":false},"probe_execution_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Execution Batch Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"pending_run":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pending Run"},"creator":{"anyOf":[{"$ref":"#/components/schemas/AdminActorOut"},{"type":"null"}]}},"type":"object","required":["id","origin","domain_id"],"title":"AdminChatOut"},"AdminCompetitorInput":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"AdminCompetitorInput"},"AdminDeskCrawlQueued":{"properties":{"status":{"type":"string","title":"Status","default":"queued"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"AdminDeskCrawlQueued"},"AdminDeskCrawlSummary":{"properties":{"page_count":{"type":"integer","title":"Page Count","default":0},"indexed_count":{"type":"integer","title":"Indexed Count","default":0},"excluded_count":{"type":"integer","title":"Excluded Count","default":0},"pinned_count":{"type":"integer","title":"Pinned Count","default":0},"changed_since_knowledge":{"type":"integer","title":"Changed Since Knowledge","default":0},"tier_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Counts"},"last_crawl_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Crawl At"},"last_crawl_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Crawl Stats"},"discovery_warning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Discovery Warning"},"cadence_days":{"additionalProperties":{"type":"integer"},"type":"object","title":"Cadence Days"}},"type":"object","title":"AdminDeskCrawlSummary","description":"The crawl-ledger summary the panel's middle block renders."},"AdminDeskKnowledgeDocument":{"properties":{"exists":{"type":"boolean","title":"Exists","default":false},"active_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Version Number"},"activated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated At"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown"},"proposed_version_count":{"type":"integer","title":"Proposed Version Count","default":0},"last_auto_activation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Auto Activation"},"bootstrap_proposal_count":{"type":"integer","title":"Bootstrap Proposal Count","default":0},"customer_tab_path":{"type":"string","title":"Customer Tab Path","default":"/agent-desk/knowledge"}},"type":"object","title":"AdminDeskKnowledgeDocument","description":"The ACTIVE Knowledge Document, read-only."},"AdminDeskNotifications":{"properties":{"webhook_lane":{"type":"string","title":"Webhook Lane","default":"none"},"webhook_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Hint"},"webhook_disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Disabled Reason"},"webhook_last_delivered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Last Delivered At"},"support_channel_requested":{"type":"boolean","title":"Support Channel Requested","default":false},"weekly_digest_fallback":{"type":"boolean","title":"Weekly Digest Fallback","default":true},"desk_conversation_cadence":{"type":"string","title":"Desk Conversation Cadence","default":"immediate"},"weekly_slack_recap":{"type":"boolean","title":"Weekly Slack Recap","default":false}},"type":"object","title":"AdminDeskNotifications","description":"AGENTDESK-OB(PR-J), D19 — the customer's notification lanes, READ-ONLY.\n\nMirrors the GTM console's `DeskNotificationsOut` field-for-field, because\n`test_gtm_desk_controls.test_the_gtm_panel_is_the_same_payload_as_the_admin_panel`\npins the two payloads as equal — and it is right to: two staff consoles that\ncan disagree about one desk mean one of them is lying, with no way to tell\nwhich from inside either.\n\n``webhook_hint`` is the stored masked display string. The webhook URL itself\nnever crosses this boundary, and none of it is writable — the customer owns\ntheir own webhook."},"AdminDeskResponse":{"properties":{"exists":{"type":"boolean","title":"Exists","default":false},"domain_id":{"type":"string","title":"Domain Id"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"desk_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desk Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"enabled":{"type":"boolean","title":"Enabled","default":false},"post_enabled":{"type":"boolean","title":"Post Enabled","default":false},"answer_pages_enabled":{"type":"boolean","title":"Answer Pages Enabled","default":false},"retrieval_mode":{"type":"string","title":"Retrieval Mode","default":"exa"},"knowledge_auto_update":{"type":"string","title":"Knowledge Auto Update","default":"off"},"knowledge_auto_update_effective":{"type":"string","title":"Knowledge Auto Update Effective","default":"facts"},"auto_activations_per_day":{"type":"integer","title":"Auto Activations Per Day","default":0},"daily_answer_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Answer Limit"},"index_ingest_enabled":{"type":"boolean","title":"Index Ingest Enabled","default":false},"index_on_google":{"type":"boolean","title":"Index On Google","default":true},"index_on_bing":{"type":"boolean","title":"Index On Bing","default":true},"crawl":{"$ref":"#/components/schemas/AdminDeskCrawlSummary"},"knowledge":{"$ref":"#/components/schemas/AdminDeskKnowledgeDocument"},"notifications":{"$ref":"#/components/schemas/AdminDeskNotifications"}},"type":"object","required":["domain_id"],"title":"AdminDeskResponse"},"AdminMessageOut":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","required":["id","role","content"],"title":"AdminMessageOut"},"AdminRunProgressResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","title":"Status"},"entrypoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entrypoint"},"events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Events"},"next_cursor":{"type":"integer","title":"Next Cursor"},"done":{"type":"boolean","title":"Done"},"recommended_poll_interval_ms":{"type":"integer","title":"Recommended Poll Interval Ms"}},"type":"object","required":["run_id","status","events","next_cursor","done","recommended_poll_interval_ms"],"title":"AdminRunProgressResponse"},"AgentBreakdownOut":{"properties":{"agents":{"items":{"$ref":"#/components/schemas/AgentBreakdownRow"},"type":"array","title":"Agents"},"windowDays":{"type":"integer","title":"Windowdays"}},"type":"object","required":["agents","windowDays"],"title":"AgentBreakdownOut"},"AgentBreakdownRow":{"properties":{"agent":{"type":"string","title":"Agent"},"visits":{"type":"integer","title":"Visits"},"share":{"type":"number","title":"Share"}},"type":"object","required":["agent","visits","share"],"title":"AgentBreakdownRow","description":"One AI agent's share of the window's impressions."},"AgentDeskConfigOut":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"system_prompt":{"type":"string","title":"System Prompt"},"enabled":{"type":"boolean","title":"Enabled"},"post_enabled":{"type":"boolean","title":"Post Enabled","default":false},"answer_pages_enabled":{"type":"boolean","title":"Answer Pages Enabled","default":false},"vector_store_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vector Store Id"},"public_endpoint_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Endpoint Url"},"public_answer_pages_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Answer Pages Url"},"embed_snippets":{"anyOf":[{"$ref":"#/components/schemas/EmbedSnippetsOut"},{"type":"null"}]},"planned_endpoint_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planned Endpoint Url"},"planned_answer_pages_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Planned Answer Pages Url"},"planned_embed_snippets":{"anyOf":[{"$ref":"#/components/schemas/EmbedSnippetsOut"},{"type":"null"}]},"footer_wordings":{"items":{"$ref":"#/components/schemas/FooterWordingOut"},"type":"array","title":"Footer Wordings","default":[]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"fast_path_answer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fast Path Answer Model"},"fast_path_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fast Path Reasoning"}},"type":"object","required":["id","slug","system_prompt","enabled"],"title":"AgentDeskConfigOut"},"AgentDeskConfigUpdate":{"properties":{"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"post_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Post Enabled"},"answer_pages_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Answer Pages Enabled"},"fast_path_answer_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fast Path Answer Model"},"fast_path_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fast Path Reasoning"}},"type":"object","title":"AgentDeskConfigUpdate"},"AgentPromptOut":{"properties":{"key":{"type":"string","title":"Key"},"content":{"type":"string","title":"Content"},"default":{"type":"string","title":"Default"},"customized":{"type":"boolean","title":"Customized"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["key","content","default","customized"],"title":"AgentPromptOut"},"AgentPromptsOut":{"properties":{"general":{"$ref":"#/components/schemas/AgentPromptOut"},"types":{"items":{"$ref":"#/components/schemas/AgentTypePromptOut"},"type":"array","title":"Types"},"rule_types":{"items":{"$ref":"#/components/schemas/RuleTypeOut"},"type":"array","title":"Rule Types"}},"type":"object","required":["general","types","rule_types"],"title":"AgentPromptsOut"},"AgentTypePromptOut":{"properties":{"key":{"type":"string","title":"Key"},"content":{"type":"string","title":"Content"},"default":{"type":"string","title":"Default"},"customized":{"type":"boolean","title":"Customized"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"signal_type":{"type":"string","title":"Signal Type"},"urgent":{"type":"boolean","title":"Urgent"},"fixed_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fixed Score"},"skips_icp_gate":{"type":"boolean","title":"Skips Icp Gate"}},"type":"object","required":["key","content","default","customized","signal_type","urgent","skips_icp_gate"],"title":"AgentTypePromptOut"},"AkamaiBotTrackingStatus":{"properties":{"configured":{"type":"boolean","title":"Configured"},"enabled":{"type":"boolean","title":"Enabled"},"ingest_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingest Url"},"last_visit_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Visit At"},"last_ingest_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Ingest Status"},"datastream_config":{"anyOf":[{"$ref":"#/components/schemas/AkamaiDestinationConfig"},{"type":"null"}]}},"type":"object","required":["configured","enabled"],"title":"AkamaiBotTrackingStatus"},"AkamaiDestinationConfig":{"properties":{"destination_type":{"type":"string","title":"Destination Type","default":"HTTPS"},"endpoint":{"type":"string","title":"Endpoint"},"content_type":{"type":"string","title":"Content Type","default":"application/json"},"custom_header_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Header Name"},"custom_header_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Header Value"}},"type":"object","required":["endpoint"],"title":"AkamaiDestinationConfig","description":"Copy-paste-ready DataStream destination config for the customer."},"AnalysisActionCreateIn":{"properties":{"title":{"type":"string","title":"Title"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"levers":{"items":{"type":"string"},"type":"array","title":"Levers","default":[]},"addresses_insight_numbers":{"items":{"type":"integer"},"type":"array","title":"Addresses Insight Numbers","default":[]},"objective_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective Id"},"analysis_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Batch Id"},"probe_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Id"},"probe_execution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Execution Id"},"insight_ids":{"items":{"type":"string"},"type":"array","title":"Insight Ids","default":[]}},"type":"object","required":["title"],"title":"AnalysisActionCreateIn"},"AnalysisActionLinkOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"}},"type":"object","required":["id","title"],"title":"AnalysisActionLinkOut"},"AnalysisActionOut":{"properties":{"id":{"type":"string","title":"Id"},"objective_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective Id"},"analysis_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Batch Id"},"probe_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Id"},"probe_execution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Execution Id"},"title":{"type":"string","title":"Title"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"levers":{"items":{"type":"string"},"type":"array","title":"Levers","default":[]},"addresses_insight_numbers":{"items":{"type":"integer"},"type":"array","title":"Addresses Insight Numbers","default":[]},"insights":{"items":{"$ref":"#/components/schemas/AnalysisInsightLinkOut"},"type":"array","title":"Insights","default":[]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","title"],"title":"AnalysisActionOut"},"AnalysisActionUpdateIn":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"levers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Levers"},"addresses_insight_numbers":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Addresses Insight Numbers"},"objective_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective Id"},"analysis_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Batch Id"},"probe_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Id"},"probe_execution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Execution Id"},"insight_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Insight Ids"},"completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Completed"}},"type":"object","title":"AnalysisActionUpdateIn"},"AnalysisInsightLinkOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"}},"type":"object","required":["id","title"],"title":"AnalysisInsightLinkOut"},"AnalysisInsightOut":{"properties":{"id":{"type":"string","title":"Id"},"objective_id":{"type":"string","title":"Objective Id"},"analysis_batch_id":{"type":"string","title":"Analysis Batch Id"},"insight_number":{"type":"integer","title":"Insight Number"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"problem":{"type":"string","title":"Problem"},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"},"what_drove":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What Drove"},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation"},"actions":{"items":{"$ref":"#/components/schemas/AnalysisActionLinkOut"},"type":"array","title":"Actions","default":[]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","objective_id","analysis_batch_id","insight_number","problem"],"title":"AnalysisInsightOut"},"AnalysisReportHistoryItem":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"partial_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partial Reason"},"overall_performance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overall Performance"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","status"],"title":"AnalysisReportHistoryItem"},"AnalysisReportLogResponse":{"properties":{"analysis_id":{"type":"string","title":"Analysis Id"},"events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Events"}},"type":"object","required":["analysis_id","events"],"title":"AnalysisReportLogResponse"},"AnalysisReportOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"analysis_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Run Id"},"schema_version":{"type":"string","title":"Schema Version"},"prompt_name":{"type":"string","title":"Prompt Name"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost"},"structured_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Data"},"user_annotations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"User Annotations"},"previous_report_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Report Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","status","schema_version","prompt_name"],"title":"AnalysisReportOut"},"AnalysisRunProgress":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","enum":["queued","running","completed","error","cancelled"],"title":"Status"},"events":{"items":{"$ref":"#/components/schemas/RunEvent"},"type":"array","title":"Events"},"next_cursor":{"type":"integer","title":"Next Cursor","default":0},"entrypoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entrypoint"}},"type":"object","required":["run_id","status"],"title":"AnalysisRunProgress"},"AnalysisRunSummary":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","enum":["queued","running","completed","error","cancelled"],"title":"Status"},"entrypoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entrypoint"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["run_id","status"],"title":"AnalysisRunSummary"},"AnalyticsDomainOut":{"properties":{"id":{"type":"string","title":"Id"},"host":{"type":"string","title":"Host"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"workspace_mode":{"type":"string","title":"Workspace Mode"}},"type":"object","required":["id","host","workspace_mode"],"title":"AnalyticsDomainOut"},"AnalyticsMeOut":{"properties":{"staff":{"type":"boolean","title":"Staff"},"domain":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsDomainOut"},{"type":"null"}]}},"type":"object","required":["staff"],"title":"AnalyticsMeOut"},"AnalyzeJobEntry":{"properties":{"model":{"type":"string","title":"Model"},"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["model","job_id"],"title":"AnalyzeJobEntry"},"AnalyzeTriggerBody":{"properties":{"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"incremental":{"type":"boolean","title":"Incremental","default":true}},"type":"object","title":"AnalyzeTriggerBody"},"AnnounceCheckQueued":{"properties":{"status":{"type":"string","title":"Status"},"check_available_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check Available At"}},"type":"object","required":["status"],"title":"AnnounceCheckQueued"},"AnnounceStateOut":{"properties":{"desk_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desk Host"},"also_desk_hosts":{"items":{"type":"string"},"type":"array","title":"Also Desk Hosts","default":[]},"site_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Host"},"announced":{"type":"boolean","title":"Announced"},"last_checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Checked At"},"check_available_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check Available At"},"placements":{"items":{"$ref":"#/components/schemas/PlacementOut"},"type":"array","title":"Placements"}},"type":"object","required":["announced","placements"],"title":"AnnounceStateOut"},"AnswerCostAccountOut":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"answers_measured":{"type":"integer","title":"Answers Measured","default":0},"answers_unmeasured":{"type":"integer","title":"Answers Unmeasured","default":0},"llm_input_tokens":{"type":"integer","title":"Llm Input Tokens","default":0},"llm_output_tokens":{"type":"integer","title":"Llm Output Tokens","default":0},"cost_usd":{"type":"number","title":"Cost Usd","default":0.0},"mean_cost_per_answer_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Cost Per Answer Usd"},"pages_measured":{"type":"integer","title":"Pages Measured","default":0},"pages_cost_usd":{"type":"number","title":"Pages Cost Usd","default":0.0},"page_fetches":{"type":"integer","title":"Page Fetches","default":0},"daily_answer_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Answer Limit"},"daily_token_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Token Limit"},"tokens_today":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens Today"}},"type":"object","required":["domain_id"],"title":"AnswerCostAccountOut","description":"One domain's answer spend, with its guardrail state."},"AnswerCostModelOut":{"properties":{"formula":{"type":"string","title":"Formula","default":"cost_usd = SUM(agent_desk_message.llm_cost_usd) over assistant turns in the window; each turn's value was computed at ANSWER TIME by llm_cost_tracker.compute_cost over every model call that turn made."},"basis":{"type":"string","title":"Basis","default":"Priced at answer time and stored. Historical rows keep the rate that was in force; changing a rate does not restate them. Tokens are the fact — trust those over the dollars."},"cerebras_rates":{"type":"string","title":"Cerebras Rates"},"gemini_fast_rates":{"type":"string","title":"Gemini Fast Rates"},"anthropic_rates":{"type":"string","title":"Anthropic Rates","default":"llm_cost_tracker.ANTHROPIC_MODEL_PRICING. Cache READS are billed at the 0.1x cached rate; cache WRITES are counted at 1.0x input rather than 1.25x, a bounded under-count of 25% of write tokens."},"scope":{"type":"string","title":"Scope","default":"Model calls on the answer path only: the classifier or fast-path gate, the answer call, and every tool iteration. Anthropic's server-side web_search is inside those calls' usage. Exa retrieval, the pin-time page rewrite, and worker time are not priced here."}},"type":"object","required":["cerebras_rates","gemini_fast_rates"],"title":"AnswerCostModelOut","description":"How the dollars on this page came to exist — and how much to trust them."},"AnswerCostTotalsOut":{"properties":{"answers_measured":{"type":"integer","title":"Answers Measured","default":0},"answers_unmeasured":{"type":"integer","title":"Answers Unmeasured","default":0},"domains_answering":{"type":"integer","title":"Domains Answering","default":0},"llm_input_tokens":{"type":"integer","title":"Llm Input Tokens","default":0},"llm_output_tokens":{"type":"integer","title":"Llm Output Tokens","default":0},"cost_usd":{"type":"number","title":"Cost Usd","default":0.0},"mean_cost_per_answer_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Cost Per Answer Usd"},"mean_tokens_per_answer":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Tokens Per Answer"},"pages_measured":{"type":"integer","title":"Pages Measured","default":0},"pages_unmeasured":{"type":"integer","title":"Pages Unmeasured","default":0},"pages_cost_usd":{"type":"number","title":"Pages Cost Usd","default":0.0},"page_fetches":{"type":"integer","title":"Page Fetches","default":0}},"type":"object","title":"AnswerCostTotalsOut","description":"Fleet totals over the window. Every mean ships with its denominator."},"AnswerCostWindowOut":{"properties":{"days":{"type":"integer","title":"Days"},"since":{"type":"string","title":"Since"},"until":{"type":"string","title":"Until"},"accounting_begins_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accounting Begins At"}},"type":"object","required":["days","since","until"],"title":"AnswerCostWindowOut"},"AnswerCostsOut":{"properties":{"window":{"$ref":"#/components/schemas/AnswerCostWindowOut"},"cost_model":{"$ref":"#/components/schemas/AnswerCostModelOut"},"totals":{"$ref":"#/components/schemas/AnswerCostTotalsOut"},"accounts":{"items":{"$ref":"#/components/schemas/AnswerCostAccountOut"},"type":"array","title":"Accounts"},"total":{"type":"integer","title":"Total","default":0}},"type":"object","required":["window","cost_model"],"title":"AnswerCostsOut"},"AnswerPageFromMessageIn":{"properties":{"message_id":{"type":"string","title":"Message Id"}},"type":"object","required":["message_id"],"title":"AnswerPageFromMessageIn","description":"AGENTDESK-RD(c1): publish a page from ONE conversation answer.\n\nWill's directive, 2026-08-07: \"in all the answers we need the ability to create\na permanent page for the question\". Until now `POST /answer-pages/{id}/pin`\ncould only publish a page that ALREADY EXISTED — answer pages are minted by an\nagent fetching a question-shaped URL — so a conversation turn and every Sandbox\nturn had no route to a page at all, and the Desk feed's conversation rows\ncarried a comment saying exactly that."},"AnswerPageOut":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"question_text":{"type":"string","title":"Question Text"},"answer_markdown":{"type":"string","title":"Answer Markdown"},"status":{"type":"string","title":"Status"},"fetch_count":{"type":"integer","title":"Fetch Count"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"content_document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Document Id"},"source_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Message Id"},"last_fetched_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Fetched At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","slug","question_text","answer_markdown","status","fetch_count"],"title":"AnswerPageOut"},"AnswerPagePinOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"content_document_id":{"type":"string","title":"Content Document Id"},"document_slug":{"type":"string","title":"Document Slug"},"message":{"type":"string","title":"Message"},"answer_page_slug":{"type":"string","title":"Answer Page Slug","default":""}},"type":"object","required":["id","status","content_document_id","document_slug","message"],"title":"AnswerPagePinOut"},"AnswerPageRegenerateOut":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"status":{"type":"string","title":"Status"},"question_text":{"type":"string","title":"Question Text"},"answer_markdown":{"type":"string","title":"Answer Markdown"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"chars_before":{"type":"integer","title":"Chars Before","default":0},"chars_after":{"type":"integer","title":"Chars After","default":0},"changed":{"type":"boolean","title":"Changed","default":false},"edge_cache_seconds":{"type":"integer","title":"Edge Cache Seconds","default":300},"published_document_unchanged":{"type":"boolean","title":"Published Document Unchanged","default":false},"allowance_used":{"type":"integer","title":"Allowance Used","default":0},"allowance_limit":{"type":"integer","title":"Allowance Limit","default":0},"allowance_resets_in_seconds":{"type":"integer","title":"Allowance Resets In Seconds","default":0},"allowance_measured":{"type":"boolean","title":"Allowance Measured","default":true}},"type":"object","required":["id","slug","status","question_text","answer_markdown"],"title":"AnswerPageRegenerateOut","description":"What replacing one stored answer produced. AGENTDESK-P2(PR-K)."},"ApiKeyCreate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"bind_to_user":{"type":"boolean","title":"Bind To User","default":true}},"type":"object","title":"ApiKeyCreate"},"ApiKeyCreatedOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["id","key_prefix","created_at","api_key"],"title":"ApiKeyCreatedOut"},"ApiKeyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","key_prefix","created_at"],"title":"ApiKeyOut"},"AppendFeedbackDocumentEntryRequest":{"properties":{"feedback":{"type":"string","minLength":1,"title":"Feedback"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"},"page_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Path"},"selected_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Text"},"report_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Id"},"action_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Id"},"action_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Title"}},"type":"object","required":["feedback"],"title":"AppendFeedbackDocumentEntryRequest"},"ApprovalBody":{"properties":{"surface":{"type":"string","title":"Surface","default":"hub"},"approval_id":{"type":"string","format":"uuid","title":"Approval Id"}},"type":"object","required":["approval_id"],"title":"ApprovalBody"},"ApproveDraftRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"edited_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Body"},"operator_retry":{"type":"boolean","title":"Operator Retry","default":false}},"type":"object","required":["draft_id"],"title":"ApproveDraftRequest"},"ArchiveRequest":{"properties":{"archived":{"type":"boolean","title":"Archived","default":true}},"type":"object","title":"ArchiveRequest"},"AskRequest":{"properties":{"question":{"type":"string","maxLength":4000,"minLength":1,"title":"Question"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"conversation_token":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Conversation Token"},"request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"},"agent_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Identifier"}},"type":"object","required":["question"],"title":"AskRequest"},"AskResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"conversation_id":{"type":"string","title":"Conversation Id"},"conversation_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Token"},"usage":{"additionalProperties":true,"type":"object","title":"Usage"},"question":{"type":"string","title":"Question"},"degraded":{"type":"boolean","title":"Degraded","default":false}},"type":"object","required":["answer","conversation_id","usage","question"],"title":"AskResponse"},"AuditJudgeRequest":{"properties":{"sample_n":{"type":"integer","title":"Sample N","default":40},"judge_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Judge Model"}},"type":"object","title":"AuditJudgeRequest"},"AuthResponse":{"properties":{"user":{"$ref":"#/components/schemas/backend__dashboard_server__routes__auth__UserResponse"},"tokens":{"$ref":"#/components/schemas/TokenPair"}},"type":"object","required":["user","tokens"],"title":"AuthResponse"},"AwsBotTrackingStatus":{"properties":{"configured":{"type":"boolean","title":"Configured"},"enabled":{"type":"boolean","title":"Enabled"},"role_arn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Arn"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"s3_logs_bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Logs Bucket"},"s3_logs_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Logs Prefix"},"cloudfront_distribution_ids":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudfront Distribution Ids"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"last_sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync Status"},"last_log_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Log Cursor"},"our_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Our Account Id"}},"type":"object","required":["configured","enabled"],"title":"AwsBotTrackingStatus"},"AwsBotTrackingUpsert":{"properties":{"role_arn":{"type":"string","minLength":20,"title":"Role Arn","description":"ARN of the IAM role we should assume"},"s3_logs_bucket":{"type":"string","minLength":3,"title":"S3 Logs Bucket","description":"S3 bucket where CloudFront standard logs land"},"s3_logs_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Logs Prefix","description":"Optional key prefix within the bucket"},"cloudfront_distribution_ids":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudfront Distribution Ids","description":"Optional comma-separated CloudFront distribution IDs to filter on; null = all distributions"},"region":{"type":"string","title":"Region","description":"AWS region","default":"us-east-1"}},"type":"object","required":["role_arn","s3_logs_bucket"],"title":"AwsBotTrackingUpsert"},"BatchApproveRequest":{"properties":{"draft_ids":{"items":{"type":"string"},"type":"array","title":"Draft Ids"}},"type":"object","required":["draft_ids"],"title":"BatchApproveRequest"},"BlockEdit":{"properties":{"block_id":{"type":"string","title":"Block Id"},"content":{"additionalProperties":true,"type":"object","title":"Content"}},"type":"object","required":["block_id","content"],"title":"BlockEdit"},"Body_ingest_session_capture_api_v1_session_capture_post":{"properties":{"session_id":{"type":"string","title":"Session Id"},"transcript":{"type":"string","contentMediaType":"application/octet-stream","title":"Transcript"},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"},"git_branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Git Branch"},"source":{"type":"string","title":"Source","default":"claude_code"},"byte_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Byte Size"},"message_count":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Count"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ended At"},"metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["session_id","transcript"],"title":"Body_ingest_session_capture_api_v1_session_capture_post"},"Body_submit_custom_page_gate_p__token__post":{"properties":{"passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Passphrase"},"viewer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Email"}},"type":"object","title":"Body_submit_custom_page_gate_p__token__post"},"Body_submit_share_gate_r__token__post":{"properties":{"passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Passphrase"},"viewer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Email"}},"type":"object","title":"Body_submit_share_gate_r__token__post"},"Body_upload_domain_branding_logo_api_domains__domain_id__branding_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_domain_branding_logo_api_domains__domain_id__branding_logo_post"},"Body_upload_knowledge_base_file_api_domains__domain_id__knowledge_base_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_knowledge_base_file_api_domains__domain_id__knowledge_base_upload_post"},"Body_upload_knowledge_files_api_domains__domain_id__knowledge_files_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"},"automatically_update_content":{"type":"boolean","title":"Automatically Update Content","default":false},"upload_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Instructions"}},"type":"object","required":["files"],"title":"Body_upload_knowledge_files_api_domains__domain_id__knowledge_files_post"},"Body_upload_material_api_domains__domain_id__agent_desk_materials_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"},"automatically_update_content":{"type":"boolean","title":"Automatically Update Content","default":false},"upload_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Instructions"}},"type":"object","required":["files"],"title":"Body_upload_material_api_domains__domain_id__agent_desk_materials_post"},"BrandGoalCreate":{"properties":{"goal_text":{"type":"string","title":"Goal Text"}},"type":"object","required":["goal_text"],"title":"BrandGoalCreate"},"BrandGoalItem":{"properties":{"goal_text":{"type":"string","title":"Goal Text"}},"type":"object","required":["goal_text"],"title":"BrandGoalItem"},"BrandGoalListOut":{"properties":{"goals":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__brand_goals__BrandGoalOut"},"type":"array","title":"Goals"}},"type":"object","required":["goals"],"title":"BrandGoalListOut"},"BrandGoalSummary":{"properties":{"id":{"type":"string","title":"Id"},"goal_text":{"type":"string","title":"Goal Text"},"status":{"type":"string","title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","goal_text","status"],"title":"BrandGoalSummary"},"BrandGoalsResponse":{"properties":{"goals":{"items":{"$ref":"#/components/schemas/BrandGoalSummary"},"type":"array","title":"Goals"}},"type":"object","required":["goals"],"title":"BrandGoalsResponse"},"BrandStrengthWeaknessOut":{"properties":{"summary":{"type":"string","title":"Summary"},"description":{"type":"string","title":"Description","default":""},"influence":{"type":"string","title":"Influence","default":"medium"},"type":{"type":"string","title":"Type"},"narratives":{"items":{"$ref":"#/components/schemas/SWNarrativeOut"},"type":"array","title":"Narratives","default":[]}},"type":"object","required":["summary","type"],"title":"BrandStrengthWeaknessOut"},"BrandingCreate":{"properties":{"site_title":{"type":"string","title":"Site Title"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url"},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color","default":"#0066cc"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color","default":"#f0f0f0"},"text_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Color","default":"#333333"},"link_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Color","default":"#0066cc"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color","default":"#ffffff"},"button_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Button Color","default":"#0066cc"},"body_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Font"},"heading_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading Font"},"cta_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Text"},"cta_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Url"},"main_site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Site Url"},"custom_css":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Css"},"meta_title_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Title Suffix"}},"type":"object","required":["site_title"],"title":"BrandingCreate"},"BrandingResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"domain_id":{"type":"string","format":"uuid","title":"Domain Id"},"site_title":{"type":"string","title":"Site Title"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url"},"brand_color":{"type":"string","title":"Brand Color"},"accent_color":{"type":"string","title":"Accent Color"},"text_color":{"type":"string","title":"Text Color"},"link_color":{"type":"string","title":"Link Color"},"background_color":{"type":"string","title":"Background Color"},"button_color":{"type":"string","title":"Button Color"},"body_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Font"},"heading_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading Font"},"cta_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Text"},"cta_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Url"},"main_site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Site Url"},"custom_css":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Css"},"meta_title_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Title Suffix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","domain_id","site_title","logo_url","brand_color","accent_color","text_color","link_color","background_color","button_color","cta_text","created_at","updated_at"],"title":"BrandingResponse"},"BrandingUpdate":{"properties":{"site_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Title"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url"},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color"},"text_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Color"},"link_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Color"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"button_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Button Color"},"body_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Font"},"heading_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading Font"},"cta_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Text"},"cta_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Url"},"main_site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Site Url"},"custom_css":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Css"},"meta_title_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Title Suffix"}},"type":"object","title":"BrandingUpdate"},"BufferGetResponse":{"properties":{"page_id":{"type":"string","title":"Page Id"},"slug":{"type":"string","title":"Slug"},"status":{"type":"string","title":"Status"},"base_markdown":{"type":"string","title":"Base Markdown"},"buffer_markdown":{"type":"string","title":"Buffer Markdown"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["page_id","slug","status","base_markdown","buffer_markdown"],"title":"BufferGetResponse"},"BufferPutBody":{"properties":{"buffer_markdown":{"type":"string","title":"Buffer Markdown"}},"type":"object","required":["buffer_markdown"],"title":"BufferPutBody"},"BufferSummary":{"properties":{"page_id":{"type":"string","title":"Page Id"},"slug":{"type":"string","title":"Slug"},"path":{"type":"string","title":"Path"},"buffer_len":{"type":"integer","title":"Buffer Len"},"base_len":{"type":"integer","title":"Base Len"}},"type":"object","required":["page_id","slug","path","buffer_len","base_len"],"title":"BufferSummary"},"BufferSyncBody":{"properties":{"chat_id":{"type":"string","title":"Chat Id"},"open_page_ids":{"items":{"type":"string"},"type":"array","title":"Open Page Ids"}},"type":"object","required":["chat_id"],"title":"BufferSyncBody"},"BuildStoreFromExecsIn":{"properties":{"execution_ids":{"items":{"type":"string"},"type":"array","title":"Execution Ids"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},"type":"object","required":["execution_ids"],"title":"BuildStoreFromExecsIn"},"BulkActionIn":{"properties":{"action":{"type":"string","title":"Action"},"document_ids":{"items":{"type":"string"},"type":"array","title":"Document Ids"}},"type":"object","required":["action","document_ids"],"title":"BulkActionIn"},"BulkDispositionRequest":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","title":"Task Ids"},"disposition":{"type":"string","title":"Disposition"}},"type":"object","required":["task_ids","disposition"],"title":"BulkDispositionRequest"},"BulkDispositionResponse":{"properties":{"updated":{"type":"integer","title":"Updated"},"requested":{"type":"integer","title":"Requested"}},"type":"object","required":["updated","requested"],"title":"BulkDispositionResponse"},"BusinessSchemaIn":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["data"],"title":"BusinessSchemaIn"},"BuyerAgentLinkOut":{"properties":{"persona_role":{"type":"string","title":"Persona Role"},"scenario_context":{"type":"string","title":"Scenario Context"}},"type":"object","required":["persona_role","scenario_context"],"title":"BuyerAgentLinkOut"},"BuyerAgentLinkRequest":{"properties":{"persona_role":{"type":"string","title":"Persona Role"},"scenario_context":{"type":"string","title":"Scenario Context"}},"type":"object","required":["persona_role","scenario_context"],"title":"BuyerAgentLinkRequest"},"BuyingContextIdOut":{"properties":{"personaId":{"type":"string","title":"Personaid"},"contextId":{"type":"string","title":"Contextid"}},"type":"object","required":["personaId","contextId"],"title":"BuyingContextIdOut","description":"Matches ``MockDocument.buyingContextIds[]`` — a strict pair."},"CancelRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"CancelRequest"},"CancelRunRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"CancelRunRequest"},"CandidateStatusDetail":{"properties":{"row":{"$ref":"#/components/schemas/CandidateStatusRow"},"details":{"additionalProperties":true,"type":"object","title":"Details"},"reports":{"items":{"$ref":"#/components/schemas/CandidateStatusReport"},"type":"array","title":"Reports"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["row"],"title":"CandidateStatusDetail"},"CandidateStatusListResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/CandidateStatusRow"},"type":"array","title":"Rows"},"total":{"type":"integer","title":"Total"},"lens":{"type":"string","title":"Lens"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":50},"truncated":{"type":"boolean","title":"Truncated","default":false}},"type":"object","required":["rows","total","lens"],"title":"CandidateStatusListResponse"},"CandidateStatusPatchRequest":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"current_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Company"},"current_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Role"},"next_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Step"},"next_step_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Step Date"},"last_touch":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Touch"}},"additionalProperties":false,"type":"object","title":"CandidateStatusPatchRequest","description":"Board-row editor — the candidate columns the pipeline board edits in\nplace. Only fields present in the body are applied; an explicit null (or\nblank string) CLEARS the value. Identity (full_name/slug) and the research\nanchors (investigation / work-sample domain) are deliberately read-only\nhere — they belong to the recruiting routines' write door\n(``upsert_candidate``), not inline table edits."},"CandidateStatusReport":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"CandidateStatusReport"},"CandidateStatusRow":{"properties":{"candidate_id":{"type":"string","title":"Candidate Id"},"full_name":{"type":"string","title":"Full Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"active":{"type":"boolean","title":"Active","default":true},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"current_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Company"},"current_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Role"},"next_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Step"},"next_step_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Step Date"},"last_touch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Touch"},"investigation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investigation Id"},"work_sample_domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Sample Domain Id"},"work_sample_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Sample Host"},"report_count":{"type":"integer","title":"Report Count","default":0}},"type":"object","required":["candidate_id","full_name"],"title":"CandidateStatusRow"},"CategoryCreate":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position","default":0}},"type":"object","required":["name","type"],"title":"CategoryCreate"},"CategoryOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"position":{"type":"integer","title":"Position"},"values":{"items":{"$ref":"#/components/schemas/CategoryValueOut"},"type":"array","title":"Values"}},"type":"object","required":["id","name","type","position","values"],"title":"CategoryOut"},"CategoryUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"type":"object","title":"CategoryUpdate"},"CategoryValueOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","label","position"],"title":"CategoryValueOut"},"CelebrationOut":{"properties":{"kind":{"type":"string","title":"Kind"},"achieved":{"type":"boolean","title":"Achieved"},"occurred_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occurred At"},"count":{"type":"integer","title":"Count","default":0},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["kind","achieved"],"title":"CelebrationOut"},"ChangeOp":{"properties":{"op":{"type":"string","enum":["create","update","delete","move"],"title":"Op"},"path":{"type":"string","title":"Path"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"frontmatter":{"anyOf":[{"$ref":"#/components/schemas/GuideFrontmatter"},{"type":"null"}]},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},"type":"object","required":["op","path"],"title":"ChangeOp"},"ChangeRequest":{"properties":{"base_sha":{"type":"string","title":"Base Sha"},"message":{"type":"string","title":"Message"},"mode":{"type":"string","enum":["merge","review"],"title":"Mode"},"ops":{"items":{"$ref":"#/components/schemas/ChangeOp"},"type":"array","maxItems":50,"minItems":1,"title":"Ops"}},"type":"object","required":["base_sha","message","mode","ops"],"title":"ChangeRequest"},"ChangeSeatRequest":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"seat":{"type":"string","title":"Seat"}},"type":"object","required":["thread_id","seat"],"title":"ChangeSeatRequest"},"ChatCreateRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"ChatCreateRequest"},"ChatDetailOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"visibility":{"type":"string","enum":["public","private"],"title":"Visibility","default":"public"},"messages":{"items":{"$ref":"#/components/schemas/QueryOut"},"type":"array","title":"Messages"}},"type":"object","required":["id","created_at","updated_at","messages"],"title":"ChatDetailOut"},"ChatListOut":{"properties":{"chats":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__research_agent__ChatOut"},"type":"array","title":"Chats"}},"type":"object","required":["chats"],"title":"ChatListOut"},"ChatStateUpdateRequest":{"properties":{"ui_state":{"additionalProperties":true,"type":"object","title":"Ui State"}},"type":"object","title":"ChatStateUpdateRequest"},"ChatUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"ChatUpdateRequest"},"CheckAction":{"properties":{"fingerprint":{"type":"string","title":"Fingerprint"},"request_id":{"type":"string","maxLength":100,"minLength":1,"title":"Request Id"},"comment":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Comment"}},"type":"object","required":["fingerprint","request_id"],"title":"CheckAction"},"CheckoutSessionRequest":{"properties":{"price_id":{"type":"string","title":"Price Id"},"success_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Success Path","default":"/payment?success=true"},"cancel_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Path","default":"/payment?cancelled=true"}},"type":"object","required":["price_id"],"title":"CheckoutSessionRequest"},"CitationRatePoint":{"properties":{"runDate":{"type":"string","title":"Rundate"},"runId":{"type":"string","title":"Runid"},"citations":{"type":"integer","title":"Citations"},"totalTurns":{"type":"integer","title":"Totalturns"},"rate":{"type":"number","title":"Rate"},"pctChangeFromPrev":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pctchangefromprev"}},"type":"object","required":["runDate","runId","citations","totalTurns","rate"],"title":"CitationRatePoint","description":"One per overview-analysis run in the window.\n\n``rate`` is ``citations / totalTurns`` (a share, 0..1). We normalize\nby turn count because the number of conversations per run varies\ndramatically session-to-session: if we run 100 turns one week and\n50 the next, raw citation counts mislead. ``pctChangeFromPrev`` is\nthe run-over-run delta in that share; ``None`` on the first data\npoint (no previous run to compare to — \"baseline\" state in the UI)."},"ClassRequest":{"properties":{"inbound_class":{"type":"string","title":"Inbound Class"}},"type":"object","required":["inbound_class"],"title":"ClassRequest"},"CloseCommitmentRequest":{"properties":{"thread_id":{"type":"string","title":"Thread Id"}},"type":"object","required":["thread_id"],"title":"CloseCommitmentRequest"},"CloudflareBotTrackingStatus":{"properties":{"configured":{"type":"boolean","title":"Configured"},"enabled":{"type":"boolean","title":"Enabled"},"zone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone Id"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"last_sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync Status"},"hosting_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Provider"}},"type":"object","required":["configured","enabled"],"title":"CloudflareBotTrackingStatus"},"CloudflareBotTrackingUpsert":{"properties":{"api_token":{"type":"string","minLength":10,"title":"Api Token","description":"Cloudflare API token with Zone:Read + Analytics:Read on the target zone"},"zone_id":{"type":"string","minLength":8,"title":"Zone Id","description":"Cloudflare Zone ID (the long hex string in the Cloudflare dashboard URL)"}},"type":"object","required":["api_token","zone_id"],"title":"CloudflareBotTrackingUpsert"},"CommitmentRequest":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"kind":{"type":"string","title":"Kind"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["thread_id","kind"],"title":"CommitmentRequest","description":"Open (or replace) a thread's deliverable commitment — the operator\nbackstop for the chokepoint's automatic detection (WO-F)."},"CompetitorCreate":{"properties":{"name":{"type":"string","title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position","default":0},"products":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Products"}},"type":"object","required":["name"],"title":"CompetitorCreate"},"CompetitorFinderRequest":{"properties":{"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Url"},"prompt":{"type":"string","title":"Prompt"},"model":{"type":"string","title":"Model","default":"gpt-5.4"},"reasoning_level":{"type":"string","title":"Reasoning Level","default":"high"}},"type":"object","required":["prompt"],"title":"CompetitorFinderRequest","description":"Request for the standalone competitor finder tool."},"CompetitorInput":{"properties":{"name":{"type":"string","title":"Name"},"products":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Products"}},"type":"object","required":["name"],"title":"CompetitorInput"},"CompetitorItem":{"properties":{"name":{"type":"string","title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"products":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Products"}},"type":"object","required":["name"],"title":"CompetitorItem"},"CompetitorProductCreate":{"properties":{"name":{"type":"string","title":"Name"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position","default":0}},"type":"object","required":["name"],"title":"CompetitorProductCreate"},"CompetitorProductOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","name","position"],"title":"CompetitorProductOut"},"CompetitorScoreOut":{"properties":{"competitor_id":{"type":"string","title":"Competitor Id"},"competitor_name":{"type":"string","title":"Competitor Name"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"}},"type":"object","required":["competitor_id","competitor_name"],"title":"CompetitorScoreOut"},"CompetitorScoreV2Historical":{"properties":{"competitor_id":{"type":"string","title":"Competitor Id"},"competitor_name":{"type":"string","title":"Competitor Name"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"}},"type":"object","required":["competitor_id","competitor_name"],"title":"CompetitorScoreV2Historical"},"CompetitorTimeSeries":{"properties":{"competitor_id":{"type":"string","title":"Competitor Id"},"competitor_name":{"type":"string","title":"Competitor Name"},"points":{"items":{"$ref":"#/components/schemas/ScoreTimePoint"},"type":"array","title":"Points"}},"type":"object","required":["competitor_id","competitor_name","points"],"title":"CompetitorTimeSeries"},"CompetitorUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"type":"object","title":"CompetitorUpdate"},"CompileKnowledgeDocumentResponse":{"properties":{"status":{"type":"string","const":"queued","title":"Status","default":"queued"},"detail":{"type":"string","title":"Detail"},"compiling_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compiling Since"}},"type":"object","required":["detail"],"title":"CompileKnowledgeDocumentResponse"},"ComposeRequest":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"body":{"type":"string","title":"Body"}},"type":"object","required":["thread_id","body"],"title":"ComposeRequest","description":"An operator-written message (the inbox composer): filed as a proposed\ndraft, then sent through ``/approve`` like any other."},"ConfirmRequest":{"properties":{"setup":{"additionalProperties":true,"type":"object","title":"Setup"},"approved_by":{"type":"string","title":"Approved By"}},"type":"object","required":["setup","approved_by"],"title":"ConfirmRequest"},"ContactPatch":{"properties":{"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"stances":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Stances"},"clear_owner":{"type":"boolean","title":"Clear Owner","default":false}},"type":"object","title":"ContactPatch"},"ContentCategoryOut":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"displayOrder":{"type":"integer","title":"Displayorder"},"itemCount":{"type":"integer","title":"Itemcount"}},"type":"object","required":["id","slug","name","displayOrder","itemCount"],"title":"ContentCategoryOut"},"ContentItemDetailOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"pageType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pagetype"},"topic":{"type":"string","title":"Topic"},"topicLabel":{"type":"string","title":"Topiclabel"},"source":{"type":"string","enum":["company_docs","website"],"title":"Source"},"ownership":{"type":"string","enum":["owned","competitor","third_party"],"title":"Ownership"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publishedat"},"personaIds":{"items":{"type":"string"},"type":"array","title":"Personaids"},"buyingContextIds":{"items":{"$ref":"#/components/schemas/BuyingContextIdOut"},"type":"array","title":"Buyingcontextids"},"priorityIds":{"items":{"type":"string"},"type":"array","title":"Priorityids"},"visitsByDay":{"items":{"$ref":"#/components/schemas/VisitPointOut"},"type":"array","title":"Visitsbyday"},"citationsByDay":{"items":{"$ref":"#/components/schemas/VisitPointOut"},"type":"array","title":"Citationsbyday"},"totalVisits":{"type":"integer","title":"Totalvisits"},"totalCitations":{"type":"integer","title":"Totalcitations"},"recentVisits":{"type":"integer","title":"Recentvisits","default":0},"impactScore":{"type":"integer","title":"Impactscore","default":0},"intents":{"items":{"$ref":"#/components/schemas/IntentAttributionOut"},"type":"array","title":"Intents"},"criteria":{"items":{"$ref":"#/components/schemas/CriterionAttributionOut"},"type":"array","title":"Criteria"},"rationales":{"additionalProperties":{"type":"string"},"type":"object","title":"Rationales"},"echoes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Echoes"},"citationRateByRun":{"items":{"$ref":"#/components/schemas/CitationRatePoint"},"type":"array","title":"Citationratebyrun"}},"type":"object","required":["id","slug","url","topic","topicLabel","source","ownership","personaIds","buyingContextIds","priorityIds","visitsByDay","citationsByDay","totalVisits","totalCitations","intents","criteria"],"title":"ContentItemDetailOut"},"ContentItemListPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContentItemSummaryOut"},"type":"array","title":"Items"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextcursor"},"totalEstimate":{"type":"integer","title":"Totalestimate"},"botVisitWindowDays":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Botvisitwindowdays"}},"type":"object","required":["items","totalEstimate"],"title":"ContentItemListPage","description":"Paginated response for the list endpoint.\n\n``totalEstimate`` is the count of items matching the active filter\ncombination at the moment the cache was populated — accurate within\nthe cache TTL (60s), slightly stale after. The frontend uses it for\n\"Showing 50 of 12,237\" + the \"all items fit in one page\" decision\nthat re-enables instant client-side sort/filter.\n\nCapped at ``_MAX_SORTED_KEYS``: on a domain with more matches than the\ncap this is a FLOOR, not the true total (the frontend should render a\nvalue equal to the cap as ``N+``). ``sort=impact`` further narrows the\nuniverse to cited items, so its ``totalEstimate`` is the cited-item count,\nnot the catalog size — both are intentional and go away with the WS3\nrollup + keyset rewrite.\n\n``botVisitWindowDays`` reports how many days of bot-visit history\nwe actually have for this domain — computed from the oldest\n``BotVisit.hour_bucket`` we hold. The Content tab uses it to render\nan honest \"visits Nd\" label instead of always saying \"7d\" even\nwhen only a few hours of data exist (which is the case in the\nfirst 30 days after a customer enables Cloudflare ingestion).\nCapped at 30 since we backfill that far at most. ``None`` means\n\"no bot visits at all (proxy or Cloudflare)\" — caller hides the\nmetric."},"ContentItemSummaryOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"pageType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pagetype"},"topic":{"type":"string","title":"Topic"},"topicLabel":{"type":"string","title":"Topiclabel"},"source":{"type":"string","enum":["company_docs","website"],"title":"Source"},"ownership":{"type":"string","enum":["owned","competitor","third_party"],"title":"Ownership"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publishedat"},"personaIds":{"items":{"type":"string"},"type":"array","title":"Personaids"},"buyingContextIds":{"items":{"$ref":"#/components/schemas/BuyingContextIdOut"},"type":"array","title":"Buyingcontextids"},"priorityIds":{"items":{"type":"string"},"type":"array","title":"Priorityids"},"visitsByDay":{"items":{"$ref":"#/components/schemas/VisitPointOut"},"type":"array","title":"Visitsbyday"},"citationsByDay":{"items":{"$ref":"#/components/schemas/VisitPointOut"},"type":"array","title":"Citationsbyday"},"totalVisits":{"type":"integer","title":"Totalvisits"},"totalCitations":{"type":"integer","title":"Totalcitations"},"recentVisits":{"type":"integer","title":"Recentvisits","default":0},"impactScore":{"type":"integer","title":"Impactscore","default":0}},"type":"object","required":["id","slug","url","topic","topicLabel","source","ownership","personaIds","buyingContextIds","priorityIds","visitsByDay","citationsByDay","totalVisits","totalCitations"],"title":"ContentItemSummaryOut","description":"Slim shape returned by the list endpoint.\n\nIncludes ``visitsByDay`` because the Content tab's topic rollups\nrender a small sparkline per group (``mergeSeries(docs.map(d =>\nd.visitsByDay))``) — every item in a list needs its series. If\nthis proves too heavy on bigger domains we can move visits to the\ndetail endpoint and fetch topic-level series separately."},"ContentOverviewOut":{"properties":{"overallImpact":{"type":"integer","title":"Overallimpact"},"impressionsToday":{"type":"integer","title":"Impressionstoday"},"companyDocsCount":{"type":"integer","title":"Companydocscount"},"agentCitedUrlsCount":{"type":"integer","title":"Agentcitedurlscount"},"lifetimeImpressions":{"type":"integer","title":"Lifetimeimpressions"},"lifetimeCitations":{"type":"integer","title":"Lifetimecitations"},"dualSourceSeries":{"items":{"$ref":"#/components/schemas/DualSourcePoint"},"type":"array","title":"Dualsourceseries"},"dualSourceCitationSeries":{"items":{"$ref":"#/components/schemas/DualSourcePoint"},"type":"array","title":"Dualsourcecitationseries"},"humanVisitSeries":{"items":{"$ref":"#/components/schemas/VisitPointOut"},"type":"array","title":"Humanvisitseries"},"humanSince":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Humansince"},"mainSiteSince":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mainsitesince"}},"type":"object","required":["overallImpact","impressionsToday","companyDocsCount","agentCitedUrlsCount","lifetimeImpressions","lifetimeCitations","dualSourceSeries","dualSourceCitationSeries"],"title":"ContentOverviewOut"},"ContentSummaryItem":{"properties":{"id":{"type":"string","title":"Id"},"content_type":{"type":"string","title":"Content Type","default":"new"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"original_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Markdown"},"current_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Markdown"}},"type":"object","required":["id"],"title":"ContentSummaryItem"},"ControlDocumentOut":{"properties":{"kind":{"type":"string","title":"Kind"},"active_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Version Number"},"active_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Markdown"},"version_count":{"type":"integer","title":"Version Count","default":0},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"char_budget":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Char Budget"},"compiling_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compiling Since"},"human_edited":{"type":"boolean","title":"Human Edited","default":false},"proposed_version_count":{"type":"integer","title":"Proposed Version Count","default":0},"latest_proposed_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Proposed Version Number"},"serving":{"type":"boolean","title":"Serving","default":false},"always_on":{"type":"boolean","title":"Always On","default":false}},"type":"object","required":["kind"],"title":"ControlDocumentOut"},"ControlDocumentUpdate":{"properties":{"markdown":{"type":"string","minLength":1,"title":"Markdown"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"}},"type":"object","required":["markdown"],"title":"ControlDocumentUpdate"},"ControlDocumentVersionOut":{"properties":{"id":{"type":"string","title":"Id"},"version_number":{"type":"integer","title":"Version Number"},"markdown":{"type":"string","title":"Markdown"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"provenance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provenance"},"replay_report":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Replay Report"}},"type":"object","required":["id","version_number","markdown","source","status"],"title":"ControlDocumentVersionOut"},"ConversationDetail":{"properties":{"id":{"type":"string","title":"Id"},"agent_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Identifier"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"ip_enrichment":{"anyOf":[{"$ref":"#/components/schemas/IPEnrichmentOut"},{"type":"null"}]},"classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"messages":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__agent_desk__MessageOut"},"type":"array","title":"Messages"}},"type":"object","required":["id","messages"],"title":"ConversationDetail"},"ConversationListItem":{"properties":{"id":{"type":"string","title":"Id"},"is_test":{"type":"boolean","title":"Is Test","default":false},"agent_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Identifier"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"ip_enrichment":{"anyOf":[{"$ref":"#/components/schemas/IPEnrichmentOut"},{"type":"null"}]},"classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification"},"message_count":{"type":"integer","title":"Message Count"},"first_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Message"},"last_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"source_answer_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Answer Page Id"}},"type":"object","required":["id","message_count"],"title":"ConversationListItem"},"ConversationOut":{"properties":{"id":{"type":"string","title":"Id"},"model":{"type":"string","title":"Model"},"status":{"type":"string","title":"Status"},"turn_count":{"type":"integer","title":"Turn Count"},"turns":{"items":{"$ref":"#/components/schemas/ConversationTurnOut"},"type":"array","title":"Turns"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"user_profile_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Profile Name"},"conversation_metadata":{"anyOf":[{"$ref":"#/components/schemas/ConversationOutcomeView"},{"type":"null"}]}},"type":"object","required":["id","model","status","turn_count","turns"],"title":"ConversationOut"},"ConversationOutcomeView":{"additionalProperties":true,"type":"object"},"ConversationTurnOut":{"properties":{"turn_number":{"type":"integer","title":"Turn Number"},"question":{"type":"string","title":"Question"},"response":{"type":"string","title":"Response"},"citations":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Citations"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"},"search_trace":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Search Trace"},"web_actions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Web Actions"}},"type":"object","required":["turn_number","question","response"],"title":"ConversationTurnOut"},"CorrectionCreate":{"properties":{"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"answer_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Page Id"},"comment":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Comment"}},"type":"object","title":"CorrectionCreate","description":"A customer's critique of one answer.\n\nAt least one target. Both are allowed and mean \"this exchange\", which is how an\nanswer page reached through its generating conversation is corrected once rather\nthan twice."},"CorrectionCreateOut":{"properties":{"review":{"$ref":"#/components/schemas/ReviewOut"},"proposal":{"anyOf":[{"$ref":"#/components/schemas/CorrectionProposalOut"},{"type":"null"}]},"diff":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Diff"},"learning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Learning"},"spam":{"type":"boolean","title":"Spam","default":false},"incorporated":{"type":"boolean","title":"Incorporated","default":false},"drafting":{"type":"boolean","title":"Drafting","default":false},"strategy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Strategy"},"applied":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Applied"},"applied_versions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Applied Versions"},"held":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Held"},"undo_available_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Undo Available Until"},"undone":{"type":"boolean","title":"Undone","default":false},"enqueued":{"type":"boolean","title":"Enqueued"},"status":{"type":"string","title":"Status"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["review","enqueued","status","detail"],"title":"CorrectionCreateOut","description":"`POST /corrections`'s response: the state, plus what happened to the draft."},"CorrectionProposalOut":{"properties":{"version_id":{"type":"string","title":"Version Id"},"version_number":{"type":"integer","title":"Version Number"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"status":{"type":"string","title":"Status"},"source":{"type":"string","title":"Source"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"},"markdown":{"type":"string","title":"Markdown"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["version_id","version_number","status","source","markdown"],"title":"CorrectionProposalOut","description":"The proposed control-document version a correction produced."},"CorrectionStateOut":{"properties":{"review":{"$ref":"#/components/schemas/ReviewOut"},"proposal":{"anyOf":[{"$ref":"#/components/schemas/CorrectionProposalOut"},{"type":"null"}]},"diff":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Diff"},"learning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Learning"},"spam":{"type":"boolean","title":"Spam","default":false},"incorporated":{"type":"boolean","title":"Incorporated","default":false},"drafting":{"type":"boolean","title":"Drafting","default":false},"strategy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Strategy"},"applied":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Applied"},"applied_versions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Applied Versions"},"held":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Held"},"undo_available_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Undo Available Until"},"undone":{"type":"boolean","title":"Undone","default":false}},"type":"object","required":["review"],"title":"CorrectionStateOut","description":"Everything a surface needs to render one correction.\n\nPoll this until `proposal` appears (drafting) and then until `incorporated`\n(the customer approved it and the desk is answering from it)."},"CostSummaryResponse":{"properties":{"total_cost":{"type":"number","title":"Total Cost"},"total_calls":{"type":"integer","title":"Total Calls"},"total_input_tokens":{"type":"integer","title":"Total Input Tokens"},"total_output_tokens":{"type":"integer","title":"Total Output Tokens"},"total_reasoning_tokens":{"type":"integer","title":"Total Reasoning Tokens"},"by_provider":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"By Provider"},"by_task_type":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"By Task Type"},"time_series":{"items":{"$ref":"#/components/schemas/CostTimeSeriesEntry"},"type":"array","title":"Time Series"},"by_domain":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"By Domain"}},"type":"object","required":["total_cost","total_calls","total_input_tokens","total_output_tokens","total_reasoning_tokens","by_provider","by_task_type","time_series","by_domain"],"title":"CostSummaryResponse"},"CostTimeSeriesEntry":{"properties":{"date":{"type":"string","title":"Date"},"provider":{"type":"string","title":"Provider"},"cost":{"type":"number","title":"Cost"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"reasoning_tokens":{"type":"integer","title":"Reasoning Tokens"},"call_count":{"type":"integer","title":"Call Count"}},"type":"object","required":["date","provider","cost","input_tokens","output_tokens","reasoning_tokens","call_count"],"title":"CostTimeSeriesEntry"},"CoverageFirstSlim":{"additionalProperties":true,"type":"object"},"CrawlLedgerOut":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/CrawlLedgerPageOut"},"type":"array","title":"Pages"},"total":{"type":"integer","title":"Total","default":0},"knowledge_active_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Knowledge Active Version Number"},"knowledge_activated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Activated At"},"changed_page_count":{"type":"integer","title":"Changed Page Count","default":0},"has_provenance":{"type":"boolean","title":"Has Provenance","default":false},"tier_counts":{"additionalProperties":true,"type":"object","title":"Tier Counts"},"cadence_days":{"additionalProperties":true,"type":"object","title":"Cadence Days"},"site_recrawl_available_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Recrawl Available At"},"last_crawl_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Crawl At"},"last_crawl_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Crawl Stats"},"last_run":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Run"},"crawl_running":{"type":"boolean","title":"Crawl Running","default":false},"crawl_progress_stale":{"type":"boolean","title":"Crawl Progress Stale","default":false},"pages_scored":{"type":"integer","title":"Pages Scored","default":0},"pages_indexed":{"type":"integer","title":"Pages Indexed","default":0}},"type":"object","required":["pages"],"title":"CrawlLedgerOut"},"CrawlLedgerPageOut":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"last_crawled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Crawled At"},"last_changed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Changed At"},"changed_since_knowledge":{"type":"boolean","title":"Changed Since Knowledge","default":false},"indexed":{"type":"boolean","title":"Indexed","default":false},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status"},"richness_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Richness Score"},"cited_by":{"items":{"type":"string"},"type":"array","title":"Cited By"},"curation":{"anyOf":[{"type":"string","enum":["pinned","excluded"]},{"type":"null"}],"title":"Curation"},"curated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curated By"},"curated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curated At"},"importance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Importance Score"},"importance_tier":{"anyOf":[{"type":"string","enum":["head","body","tail"]},{"type":"null"}],"title":"Importance Tier"},"importance_factors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Importance Factors"},"next_check_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Check At"},"recheck_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recheck Reason"},"llm_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Tier"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"}},"type":"object","required":["id","url"],"title":"CrawlLedgerPageOut"},"CrawlPageCuration":{"properties":{"curation":{"anyOf":[{"type":"string","enum":["pinned","excluded"]},{"type":"null"}],"title":"Curation"}},"type":"object","title":"CrawlPageCuration"},"CrawlerAccountOut":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"retrieval_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieval Mode"},"last_crawl_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Crawl At"},"last_crawl_trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Crawl Trigger"},"last_crawl_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Crawl Status"},"pages_known":{"type":"integer","title":"Pages Known","default":0},"pages_indexed":{"type":"integer","title":"Pages Indexed","default":0},"tier_distribution":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Distribution"},"runs":{"type":"integer","title":"Runs","default":0},"runs_failed":{"type":"integer","title":"Runs Failed","default":0},"runs_killed":{"type":"integer","title":"Runs Killed","default":0},"pages_fetched":{"type":"integer","title":"Pages Fetched","default":0},"pages_304":{"type":"integer","title":"Pages 304","default":0},"pages_changed":{"type":"integer","title":"Pages Changed","default":0},"pages_removed":{"type":"integer","title":"Pages Removed","default":0},"error_count":{"type":"integer","title":"Error Count","default":0},"llm_pages_classified":{"type":"integer","title":"Llm Pages Classified","default":0},"llm_input_tokens":{"type":"integer","title":"Llm Input Tokens","default":0},"llm_output_tokens":{"type":"integer","title":"Llm Output Tokens","default":0},"cost_usd":{"type":"number","title":"Cost Usd","default":0.0}},"type":"object","required":["domain_id"],"title":"CrawlerAccountOut","description":"One domain's crawler footprint. Windowed activity + current index state."},"CrawlerAccountsOut":{"properties":{"window":{"$ref":"#/components/schemas/CrawlerWindowOut"},"cost_model":{"$ref":"#/components/schemas/CrawlerCostModelOut"},"accounts":{"items":{"$ref":"#/components/schemas/CrawlerAccountOut"},"type":"array","title":"Accounts"},"total":{"type":"integer","title":"Total","default":0}},"type":"object","required":["window","cost_model"],"title":"CrawlerAccountsOut"},"CrawlerCostModelOut":{"properties":{"model":{"type":"string","title":"Model"},"input_usd_per_mtok":{"type":"number","title":"Input Usd Per Mtok"},"output_usd_per_mtok":{"type":"number","title":"Output Usd Per Mtok"},"formula":{"type":"string","title":"Formula","default":"usd = llm_input_tokens / 1e6 * input_usd_per_mtok + llm_output_tokens / 1e6 * output_usd_per_mtok"},"source":{"type":"string","title":"Source"},"scope":{"type":"string","title":"Scope","default":"LLM tier-classifier tokens only. Crawl bandwidth and worker time are not priced here."}},"type":"object","required":["model","input_usd_per_mtok","output_usd_per_mtok","source"],"title":"CrawlerCostModelOut","description":"How dollars were derived from tokens — shipped WITH every dollar figure."},"CrawlerCostOut":{"properties":{"total_usd":{"type":"number","title":"Total Usd","default":0.0},"per_week_usd":{"type":"number","title":"Per Week Usd","default":0.0},"input_tokens":{"type":"integer","title":"Input Tokens","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","default":0},"window_days":{"type":"integer","title":"Window Days","default":0}},"type":"object","title":"CrawlerCostOut","description":"Dollars, and the numbers they came from."},"CrawlerDailyPointOut":{"properties":{"date":{"type":"string","title":"Date"},"runs":{"type":"integer","title":"Runs","default":0},"pages_fetched":{"type":"integer","title":"Pages Fetched","default":0},"pages_304":{"type":"integer","title":"Pages 304","default":0},"pages_changed":{"type":"integer","title":"Pages Changed","default":0},"error_count":{"type":"integer","title":"Error Count","default":0},"llm_input_tokens":{"type":"integer","title":"Llm Input Tokens","default":0},"llm_output_tokens":{"type":"integer","title":"Llm Output Tokens","default":0},"cost_usd":{"type":"number","title":"Cost Usd","default":0.0}},"type":"object","required":["date"],"title":"CrawlerDailyPointOut","description":"One day of fleet activity. `date` is a bare YYYY-MM-DD calendar day (UTC).\n\nDays with no runs are emitted as explicit ZEROS rather than omitted — but only\nfrom `runs_begin_at` onward. A gap and a zero mean different things, and\nbefore history began the honest value is \"unobserved\", not 0."},"CrawlerRatesOut":{"properties":{"crawls_per_day":{"type":"number","title":"Crawls Per Day","default":0.0},"not_modified_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Not Modified Rate"},"not_modified_denominator":{"type":"integer","title":"Not Modified Denominator","default":0},"page_error_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Page Error Rate"},"page_error_denominator":{"type":"integer","title":"Page Error Denominator","default":0},"run_failure_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Run Failure Rate"},"run_failure_denominator":{"type":"integer","title":"Run Failure Denominator","default":0}},"type":"object","title":"CrawlerRatesOut","description":"Derived rates, each shipped with its own DENOMINATOR.\n\nTwo different \"error rates\" are reported because the two questions are\ndifferent and a single number would silently answer only one: a fleet can\nhave every run complete while thousands of pages 500, and it can have healthy\npages while half its runs are killed at the hour mark."},"CrawlerSummaryOut":{"properties":{"window":{"$ref":"#/components/schemas/CrawlerWindowOut"},"totals":{"$ref":"#/components/schemas/CrawlerTotalsOut"},"rates":{"$ref":"#/components/schemas/CrawlerRatesOut"},"cost":{"$ref":"#/components/schemas/CrawlerCostOut"},"cost_model":{"$ref":"#/components/schemas/CrawlerCostModelOut"},"daily":{"items":{"$ref":"#/components/schemas/CrawlerDailyPointOut"},"type":"array","title":"Daily"},"runs_by_trigger":{"additionalProperties":{"type":"integer"},"type":"object","title":"Runs By Trigger"}},"type":"object","required":["window","cost_model"],"title":"CrawlerSummaryOut"},"CrawlerTotalsOut":{"properties":{"runs":{"type":"integer","title":"Runs","default":0},"runs_completed":{"type":"integer","title":"Runs Completed","default":0},"runs_failed":{"type":"integer","title":"Runs Failed","default":0},"runs_killed":{"type":"integer","title":"Runs Killed","default":0},"domains_crawled":{"type":"integer","title":"Domains Crawled","default":0},"pages_discovered":{"type":"integer","title":"Pages Discovered","default":0},"pages_fetched":{"type":"integer","title":"Pages Fetched","default":0},"pages_304":{"type":"integer","title":"Pages 304","default":0},"pages_changed":{"type":"integer","title":"Pages Changed","default":0},"pages_removed":{"type":"integer","title":"Pages Removed","default":0},"llm_pages_classified":{"type":"integer","title":"Llm Pages Classified","default":0},"llm_input_tokens":{"type":"integer","title":"Llm Input Tokens","default":0},"llm_output_tokens":{"type":"integer","title":"Llm Output Tokens","default":0},"error_count":{"type":"integer","title":"Error Count","default":0}},"type":"object","title":"CrawlerTotalsOut","description":"Raw counted facts over the window. Every rate below is derived from these."},"CrawlerWindowOut":{"properties":{"days":{"type":"integer","title":"Days"},"since":{"type":"string","title":"Since"},"until":{"type":"string","title":"Until"},"runs_begin_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runs Begin At"}},"type":"object","required":["days","since","until"],"title":"CrawlerWindowOut","description":"The reporting window, echoed back — plus when history actually starts."},"CreateAccountRequest":{"properties":{"organization_name":{"type":"string","title":"Organization Name"},"domain_url":{"type":"string","title":"Domain Url"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"competitors":{"anyOf":[{"items":{"$ref":"#/components/schemas/AdminCompetitorInput"},"type":"array"},{"type":"null"}],"title":"Competitors"},"workspace_mode":{"type":"string","title":"Workspace Mode","default":"full"}},"type":"object","required":["organization_name","domain_url"],"title":"CreateAccountRequest"},"CreateAccountResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"domain_id":{"type":"string","title":"Domain Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["organization_id","domain_id"],"title":"CreateAccountResponse"},"CreateAdminChatRequest":{"properties":{"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"}},"type":"object","title":"CreateAdminChatRequest"},"CreateAdminChatResponse":{"properties":{"chat":{"$ref":"#/components/schemas/AdminChatOut"}},"type":"object","required":["chat"],"title":"CreateAdminChatResponse"},"CreateAdminMessageRequest":{"properties":{"content":{"type":"string","minLength":1,"title":"Content"},"ui_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ui State"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"},"max_tool_steps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Max Tool Steps"}},"type":"object","required":["content"],"title":"CreateAdminMessageRequest"},"CreateBaselineRequest":{"properties":{"panel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Panel Id"},"subject_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Url"},"strength":{"type":"string","title":"Strength","default":"low"},"trials":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trials"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"max_turns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Turns"},"selected_matchups":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Selected Matchups"},"free_text_questions":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Free Text Questions"}},"type":"object","title":"CreateBaselineRequest"},"CreateBrandGoalRequest":{"properties":{"goal_text":{"type":"string","title":"Goal Text"}},"type":"object","required":["goal_text"],"title":"CreateBrandGoalRequest"},"CreateBrandGoalResponse":{"properties":{"goal_id":{"type":"string","title":"Goal Id"},"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["goal_id","job_id"],"title":"CreateBrandGoalResponse"},"CreateChatRequest":{"properties":{"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"}},"type":"object","title":"CreateChatRequest"},"CreateChatResponse":{"properties":{"id":{"type":"string","title":"Id"}},"type":"object","required":["id"],"title":"CreateChatResponse"},"CreateCompetitorProductRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"CreateCompetitorProductRequest"},"CreateCompetitorRequest":{"properties":{"name":{"type":"string","title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","required":["name"],"title":"CreateCompetitorRequest"},"CreateGoalRequest":{"properties":{"goal_text":{"type":"string","title":"Goal Text"}},"type":"object","required":["goal_text"],"title":"CreateGoalRequest"},"CreateImproveProbeChatRequest":{"properties":{"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"auto_send":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Send"},"skip_assistant":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip Assistant"}},"type":"object","title":"CreateImproveProbeChatRequest"},"CreateImproveProbeChatResponse":{"properties":{"id":{"type":"string","title":"Id"}},"type":"object","required":["id"],"title":"CreateImproveProbeChatResponse"},"CreateMessageRequest":{"properties":{"content":{"type":"string","minLength":1,"title":"Content"},"ui_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ui State"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"}},"type":"object","required":["content"],"title":"CreateMessageRequest"},"CreateMonitorRequest":{"properties":{"label":{"type":"string","title":"Label"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"competitor_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitor Ids"},"competitive_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitive Product Ids"}},"type":"object","required":["label"],"title":"CreateMonitorRequest"},"CreateProbesForDomainIn":{"properties":{"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","title":"CreateProbesForDomainIn"},"CreateSimulationRequest":{"properties":{"baseline_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Run Id"},"baseline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Id"},"target_competitors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Competitors"},"target_scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Scopes"},"strategy_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Strategy Ids"},"content_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Content Ids"},"trials":{"type":"integer","title":"Trials","default":1}},"type":"object","title":"CreateSimulationRequest"},"CreateStarterPromptRequest":{"properties":{"title":{"type":"string","maxLength":120,"minLength":1,"title":"Title"},"content":{"type":"string","minLength":1,"title":"Content"}},"type":"object","required":["title","content"],"title":"CreateStarterPromptRequest"},"CreateTaskRequest":{"properties":{"title":{"type":"string","title":"Title"},"domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"category":{"type":"string","title":"Category","default":"account"},"audience":{"type":"string","title":"Audience","default":"internal"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"subscribers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Subscribers"},"priority":{"type":"string","title":"Priority","default":"normal"},"labels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Labels"},"parent_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Task Id"},"due_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due At"},"priority_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"}},"type":"object","required":["title"],"title":"CreateTaskRequest"},"CreateUserRequest":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},"type":"object","required":["email"],"title":"CreateUserRequest"},"CriterionAttributionOut":{"properties":{"criterionId":{"type":"string","title":"Criterionid"},"criterionName":{"type":"string","title":"Criterionname"},"support":{"type":"string","enum":["strong","moderate","weak"],"title":"Support"},"impact":{"type":"string","enum":["high","medium","low"],"title":"Impact"},"personaContexts":{"items":{"$ref":"#/components/schemas/PersonaContextRefOut"},"type":"array","title":"Personacontexts"},"supportRationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supportrationale"},"impactRationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impactrationale"}},"type":"object","required":["criterionId","criterionName","support","impact","personaContexts"],"title":"CriterionAttributionOut"},"CustomerEmailOut":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["email"],"title":"CustomerEmailOut"},"DescriptionAcceptRequest":{"properties":{"approved_description":{"type":"string","title":"Approved Description"}},"type":"object","required":["approved_description"],"title":"DescriptionAcceptRequest"},"DescriptionMergePreviewResponse":{"properties":{"proposed_description":{"type":"string","title":"Proposed Description"},"hunks":{"items":{"$ref":"#/components/schemas/DiffHunk"},"type":"array","title":"Hunks"}},"type":"object","required":["proposed_description","hunks"],"title":"DescriptionMergePreviewResponse"},"DeskAnswerPageOut":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"question_text":{"type":"string","title":"Question Text"},"answer_excerpt":{"type":"string","title":"Answer Excerpt"},"status":{"type":"string","title":"Status"},"fetch_count":{"type":"integer","title":"Fetch Count"},"last_fetched_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Fetched At"}},"type":"object","required":["id","slug","question_text","answer_excerpt","status","fetch_count"],"title":"DeskAnswerPageOut","description":"Just enough of an answer page to judge it from the GTM list."},"DeskBootFacts":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"setup_progress":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Setup Progress"},"setup_progress_ok":{"type":"boolean","title":"Setup Progress Ok","default":false},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"config_ok":{"type":"boolean","title":"Config Ok","default":false},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"free_plan":{"type":"boolean","title":"Free Plan","default":false},"free_credits":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Free Credits"},"usage_ok":{"type":"boolean","title":"Usage Ok","default":false}},"type":"object","required":["domain_id"],"title":"DeskBootFacts"},"DeskBootOut":{"properties":{"user":{"$ref":"#/components/schemas/backend__dashboard_server__routes__users__UserResponse"},"organizations":{"items":{"$ref":"#/components/schemas/OrgListItem"},"type":"array","title":"Organizations"},"organization":{"$ref":"#/components/schemas/OrganizationResponse"},"viewing_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewing Org Id"},"domains":{"items":{"$ref":"#/components/schemas/DomainResponse"},"type":"array","title":"Domains"},"current_domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Domain Id"},"desk":{"anyOf":[{"$ref":"#/components/schemas/DeskBootFacts"},{"type":"null"}]}},"type":"object","required":["user","organizations","organization","domains"],"title":"DeskBootOut"},"DeskConfigOut":{"properties":{"exists":{"type":"boolean","title":"Exists","default":false},"domain_id":{"type":"string","title":"Domain Id"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"desk_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desk Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"enabled":{"type":"boolean","title":"Enabled","default":false},"post_enabled":{"type":"boolean","title":"Post Enabled","default":false},"answer_pages_enabled":{"type":"boolean","title":"Answer Pages Enabled","default":false},"retrieval_mode":{"type":"string","title":"Retrieval Mode","default":"internal"},"knowledge_auto_update":{"type":"string","title":"Knowledge Auto Update","default":"off"},"knowledge_auto_update_effective":{"type":"string","title":"Knowledge Auto Update Effective","default":"facts"},"auto_activations_per_day":{"type":"integer","title":"Auto Activations Per Day","default":0},"daily_answer_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Answer Limit"},"index_ingest_enabled":{"type":"boolean","title":"Index Ingest Enabled","default":false},"index_on_google":{"type":"boolean","title":"Index On Google","default":true},"index_on_bing":{"type":"boolean","title":"Index On Bing","default":true},"crawl":{"$ref":"#/components/schemas/DeskCrawlSummaryOut"},"knowledge":{"$ref":"#/components/schemas/DeskKnowledgeOut"},"notifications":{"$ref":"#/components/schemas/DeskNotificationsOut"}},"type":"object","required":["domain_id"],"title":"DeskConfigOut"},"DeskConfigUpdateRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"post_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Post Enabled"},"answer_pages_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Answer Pages Enabled"},"retrieval_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieval Mode"},"knowledge_auto_update":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Auto Update"},"index_on_google":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Index On Google"},"index_on_bing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Index On Bing"}},"type":"object","title":"DeskConfigUpdateRequest","description":"Every field Optional and applied only when present.\n\nA PATCH that defaulted its fields would turn \"set retrieval_mode\" into \"set\nretrieval_mode and disable answer pages\", which on a live public desk is a\nsilent outage nobody would connect to the click. Absent means untouched —\nenforced by handing `exclude_unset` to the shared writer."},"DeskCorrectionCreateRequest":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"answer_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Page Id"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["domain_id"],"title":"DeskCorrectionCreateRequest","description":"A staff correction of one desk answer — the same shape as the owner's\n``CorrectionCreate`` plus the ``domain_id`` the staff surface has to name\n(the owner's is in their URL). At least one target; ``comment`` is the\ncorrection text itself, not a side note — there are no notes any more."},"DeskCrawlQueuedOut":{"properties":{"status":{"type":"string","title":"Status","default":"queued"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"DeskCrawlQueuedOut"},"DeskCrawlSummaryOut":{"properties":{"page_count":{"type":"integer","title":"Page Count","default":0},"indexed_count":{"type":"integer","title":"Indexed Count","default":0},"excluded_count":{"type":"integer","title":"Excluded Count","default":0},"pinned_count":{"type":"integer","title":"Pinned Count","default":0},"changed_since_knowledge":{"type":"integer","title":"Changed Since Knowledge","default":0},"tier_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tier Counts"},"last_crawl_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Crawl At"},"last_crawl_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Crawl Stats"},"discovery_warning":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Discovery Warning"},"cadence_days":{"additionalProperties":{"type":"integer"},"type":"object","title":"Cadence Days"}},"type":"object","title":"DeskCrawlSummaryOut","description":"The crawl-ledger summary the panel's middle block renders."},"DeskIntegrationInput":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","ANY"],"title":"Method","default":"GET"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"auth":{"type":"string","maxLength":300,"title":"Auth","default":""},"enabled":{"type":"boolean","title":"Enabled","default":true}},"additionalProperties":false,"type":"object","required":["name","url"],"title":"DeskIntegrationInput","description":"What the owner sends on create. ``id``/``provider`` are server-side."},"DeskIntegrationPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"title":"Url"},"method":{"anyOf":[{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE","ANY"]},{"type":"null"}],"title":"Method"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"auth":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Auth"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"additionalProperties":false,"type":"object","title":"DeskIntegrationPatch"},"DeskKnowledgeOut":{"properties":{"exists":{"type":"boolean","title":"Exists","default":false},"active_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Active Version Number"},"activated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated At"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown"},"proposed_version_count":{"type":"integer","title":"Proposed Version Count","default":0},"last_auto_activation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Auto Activation"},"bootstrap_proposal_count":{"type":"integer","title":"Bootstrap Proposal Count","default":0},"customer_tab_path":{"type":"string","title":"Customer Tab Path","default":"/agent-desk/knowledge"}},"type":"object","title":"DeskKnowledgeOut","description":"The ACTIVE Knowledge Document, read-only on this surface.\n\nRead-only because editing and activating it is a customer act on their own\nKnowledge tab; a second writer to a version-controlled document with\ndifferent rules is how version histories stop meaning anything."},"DeskLearningActionRequest":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"statement_override":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Statement Override"},"test_override":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Test Override"}},"type":"object","required":["domain_id"],"title":"DeskLearningActionRequest","description":"Approve/undo a learning from the staff side. ``statement_override`` and\n``test_override`` mirror the owner endpoint's ``LearningApprove`` fields —\nincluding the statement guardrail (no product limit since 2026-10-14), HERE\nat request parsing, so an over-long override is the same 422 on both doors\nrather than an uncaught ValidationError (a 500) when the handler constructs\n``LearningApprove``."},"DeskLearningStatementRequest":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"statement":{"type":"string","maxLength":50000,"title":"Statement"}},"type":"object","required":["domain_id","statement"],"title":"DeskLearningStatementRequest","description":"Reword one memory from the staff side. Same guardrail as the owner door (no\nproduct limit since 2026-10-14), enforced at parsing for the same reason: an\nover-long statement is a 422 the field can render, not a silent truncation."},"DeskNotificationStateResponse":{"properties":{"complete":{"type":"boolean","title":"Complete"},"webhook_configured":{"type":"boolean","title":"Webhook Configured","default":false},"webhook_enabled":{"type":"boolean","title":"Webhook Enabled","default":false},"webhook_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Hint"},"webhook_unreadable":{"type":"boolean","title":"Webhook Unreadable","default":false},"webhook_failure_count":{"type":"integer","title":"Webhook Failure Count","default":0},"webhook_disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Disabled Reason"},"webhook_last_delivered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Last Delivered At"},"support_channel_requested":{"type":"boolean","title":"Support Channel Requested","default":false},"digest_fallback":{"type":"boolean","title":"Digest Fallback","default":true},"lane_available":{"type":"boolean","title":"Lane Available","default":true},"email_digest_enabled":{"type":"boolean","title":"Email Digest Enabled","default":true},"app_available":{"type":"boolean","title":"App Available","default":false},"app_connected":{"type":"boolean","title":"App Connected","default":false},"app_team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Team Name"},"app_channel_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Channel Label"},"app_token_unreadable":{"type":"boolean","title":"App Token Unreadable","default":false}},"type":"object","required":["complete"],"title":"DeskNotificationStateResponse","description":"Row-6 state + everything the settings UI needs. Carries NO secret: only\n``webhook_configured`` and the masked ``webhook_hint``.\n\nThe ``app_*`` quartet (2026-08-11) is the self-serve Slack app install —\ncomposed in the route from ``slack_installation``, NOT inside\n``notifications.notification_row_state`` (which stays a pure function of the\nconfig JSONB). A connected app completes the row the same way a delivering\nwebhook does."},"DeskNotificationsOut":{"properties":{"webhook_lane":{"type":"string","title":"Webhook Lane","default":"none"},"webhook_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Hint"},"webhook_disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Disabled Reason"},"webhook_last_delivered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Last Delivered At"},"support_channel_requested":{"type":"boolean","title":"Support Channel Requested","default":false},"weekly_digest_fallback":{"type":"boolean","title":"Weekly Digest Fallback","default":true},"desk_conversation_cadence":{"type":"string","title":"Desk Conversation Cadence","default":"immediate"},"weekly_slack_recap":{"type":"boolean","title":"Weekly Slack Recap","default":false}},"type":"object","title":"DeskNotificationsOut","description":"AGENTDESK-OB(PR-J), D19 — the customer's notification lanes, READ-ONLY.\n\nOn the staff panel because \"request a Slack support channel\" is fulfilled by a\nHUMAN through the existing Connect flow (D19 builds no automation), so the\nrequest has to be visible where staff look at an account — otherwise it dies\nin a Slack scrollback. The webhook fields answer the question that follows:\nis this customer being notified at all?\n\n``webhook_hint`` is the stored masked display string. The URL itself never\ncrosses this boundary, and nothing here is writable."},"DeskOverageUpdate":{"properties":{"overage_credit_limit":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Overage Credit Limit"}},"type":"object","title":"DeskOverageUpdate"},"DeskPeriodBundleOut":{"properties":{"used":{"type":"integer","title":"Used"},"bundle":{"type":"integer","title":"Bundle"},"period_start":{"type":"string","title":"Period Start"},"period_source":{"type":"string","title":"Period Source"},"exhausted":{"type":"boolean","title":"Exhausted"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"overage_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overage Limit"},"overage_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overage Used"},"free":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Free"}},"type":"object","required":["used","bundle","period_start","period_source","exhausted"],"title":"DeskPeriodBundleOut","description":"The bundle readout — \"N of M credits this period\", plus whether the\nserving gate has paused the desk. Mirrors\n``billing.period_bundle_usage``'s dict field-for-field, because this is the\nowner-facing half of that gate: the public refusal deliberately says nothing\nabout bundles (see ``paywall.raise_if_gated``), so this surface is where\n\"your desk is paused\" is actually said.\n\nThe unit moved from answers to CREDITS with the metered lane (2026-08-16);\nthe credit fields are optional so a cached older payload shape still\nparses. (The per-model spend page and its ``/spend`` route were removed\n2026-10-15; this is the only readout.)"},"DeskReviewDomainOut":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"open_reviews":{"type":"integer","title":"Open Reviews","default":0},"total_reviews":{"type":"integer","title":"Total Reviews","default":0}},"type":"object","required":["domain_id"],"title":"DeskReviewDomainOut"},"DeskReviewListResponse":{"properties":{"reviews":{"items":{"$ref":"#/components/schemas/DeskReviewOut"},"type":"array","title":"Reviews"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"}},"type":"object","required":["reviews","counts"],"title":"DeskReviewListResponse"},"DeskReviewOut":{"properties":{"id":{"type":"string","title":"Id"},"domain_id":{"type":"string","title":"Domain Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"answer_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Page Id"},"question_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Text"},"answer_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Excerpt"},"verdict":{"type":"string","title":"Verdict"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"source":{"type":"string","title":"Source"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"status":{"type":"string","title":"Status"},"incorporated_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incorporated Version Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","domain_id","verdict","source","status"],"title":"DeskReviewOut"},"DeskReviewUpdateRequest":{"properties":{"status":{"anyOf":[{"type":"string","const":"dismissed"},{"type":"null"}],"title":"Status"}},"type":"object","title":"DeskReviewUpdateRequest","description":"Dismiss only. ``status`` is Literal[\"dismissed\"], not the status enum:\n\"incorporated\" is written by the incorporation loop together with the\nversion it links, never by a person clicking a button. The verdict and\ncomment edits went with the verdict concept (2026-08-10) — a correction's\ntext is the input to a draft, not an editable note."},"DeskSignupConfirmEmailRequest":{"properties":{"claim_id":{"type":"string","maxLength":128,"minLength":1,"title":"Claim Id"},"token":{"type":"string","maxLength":128,"minLength":1,"title":"Token"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","required":["claim_id","token"],"title":"DeskSignupConfirmEmailRequest"},"DeskSignupRequest":{"properties":{"company_url":{"type":"string","title":"Company Url"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"}},"type":"object","required":["company_url","email"],"title":"DeskSignupRequest"},"DeskSignupVerifyRequest":{"properties":{"claim_id":{"type":"string","title":"Claim Id"}},"type":"object","required":["claim_id"],"title":"DeskSignupVerifyRequest"},"DeskTestRequest":{"properties":{"question":{"type":"string","maxLength":4000,"minLength":1,"title":"Question"}},"additionalProperties":false,"type":"object","required":["question"],"title":"DeskTestRequest"},"DeskUsageOut":{"properties":{"answers_today":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Answers Today"},"answers_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Answers Limit"},"answers_limit_source":{"type":"string","title":"Answers Limit Source"},"answers_reset_in_seconds":{"type":"integer","title":"Answers Reset In Seconds"},"published_pages":{"type":"integer","title":"Published Pages"},"published_pages_included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Published Pages Included"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"answers_period":{"anyOf":[{"$ref":"#/components/schemas/DeskPeriodBundleOut"},{"type":"null"}]},"can_pick_subdomain":{"type":"boolean","title":"Can Pick Subdomain","default":false},"ingested_sources":{"type":"integer","title":"Ingested Sources","default":0},"ingested_sources_included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ingested Sources Included"},"free_plan":{"type":"boolean","title":"Free Plan","default":false}},"type":"object","required":["answers_today","answers_limit","answers_limit_source","answers_reset_in_seconds","published_pages","published_pages_included","plan_name"],"title":"DeskUsageOut","description":"AGENTDESK-P2(PR-C): the customer-visible usage readout for the desk Overview.\n\nTwo numbers plus the honesty around them:\n\n* ``answers_today`` / ``answers_limit`` → \"N of X answers today\". Both may be\n  ``None`` and the two ``None``s mean DIFFERENT things, which is why they are\n  separate fields rather than a formatted string: a ``None`` limit means\n  uncapped (render \"N answers today\", no ratio), a ``None`` usage means we\n  could not read the counter (render \"—\", never 0).\n* ``published_pages`` / ``published_pages_included`` → the billable count and\n  what the plan includes. This resource is never enforced; the included figure\n  is an allowance, and overage bills as subscription quantity.\n* ``answers_period`` → the period-scoped bundle (Option C). ``None`` when no\n  bundle applies to this plan OR the read failed — the UI omits the line\n  rather than inventing a number.\n* ``can_pick_subdomain`` → whether the plan entitles the customer to\n  configure the desk's exact subdomain label (Growth/Scale; Starter stays on\n  the ``\"agents\"`` default). Read through\n  ``usage_limits.plan_allows_custom_subdomain``, the same reader the hosting\n  routes' 403 gate uses — so the picker the UI shows and the write the\n  server accepts cannot disagree. Defaults False: an unreadable plan row\n  renders the upsell line, never a control the save would then refuse."},"DeskWebhookTestResponse":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"lane_disabled":{"type":"boolean","title":"Lane Disabled","default":false}},"type":"object","required":["status"],"title":"DeskWebhookTestResponse"},"DiffHunk":{"properties":{"old_start":{"type":"integer","title":"Old Start"},"old_lines":{"type":"integer","title":"Old Lines"},"new_start":{"type":"integer","title":"New Start"},"new_lines":{"type":"integer","title":"New Lines"},"lines":{"items":{"$ref":"#/components/schemas/DiffLine"},"type":"array","title":"Lines"}},"type":"object","required":["old_start","old_lines","new_start","new_lines","lines"],"title":"DiffHunk"},"DiffLine":{"properties":{"type":{"type":"string","title":"Type"},"text":{"type":"string","title":"Text"}},"type":"object","required":["type","text"],"title":"DiffLine"},"DocumentCreateIn":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"markdown_content":{"type":"string","title":"Markdown Content"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority","default":50}},"type":"object","required":["slug","title","markdown_content"],"title":"DocumentCreateIn"},"DocumentUpdateIn":{"properties":{"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"markdown_content":{"type":"string","title":"Markdown Content"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["markdown_content"],"title":"DocumentUpdateIn"},"DomainBrandingResponse":{"properties":{"id":{"type":"string","title":"Id"},"domain_id":{"type":"string","title":"Domain Id"},"site_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Title"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"logo_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Source"},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url"},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color"},"text_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Color"},"link_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Color"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"button_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Button Color"},"body_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Font"},"heading_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading Font"},"cta_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Text"},"cta_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Url"},"main_site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Site Url"},"main_site_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Site Text"},"meta_title_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Title Suffix"}},"type":"object","required":["id","domain_id"],"title":"DomainBrandingResponse"},"DomainCustomCodeResponse":{"properties":{"id":{"type":"string","title":"Id"},"domain_id":{"type":"string","title":"Domain Id"},"head_javascript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Javascript"},"body_javascript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Javascript"}},"type":"object","required":["id","domain_id"],"title":"DomainCustomCodeResponse"},"DomainLookupResponse":{"properties":{"total":{"type":"integer","title":"Total"},"has_more":{"type":"boolean","title":"Has More"},"results":{"items":{"$ref":"#/components/schemas/DomainLookupResult"},"type":"array","title":"Results"}},"type":"object","required":["total","has_more","results"],"title":"DomainLookupResponse"},"DomainLookupResult":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"host":{"type":"string","title":"Host"}},"type":"object","required":["id","name","host"],"title":"DomainLookupResult"},"DomainProductCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position","default":0}},"type":"object","required":["name"],"title":"DomainProductCreate"},"DomainProductOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","name","position"],"title":"DomainProductOut"},"DomainProductUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"type":"object","title":"DomainProductUpdate"},"DomainResponse":{"properties":{"id":{"type":"string","title":"Id"},"org_id":{"type":"string","title":"Org Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"},"host":{"type":"string","title":"Host"},"additional_hosts":{"items":{"type":"string"},"type":"array","title":"Additional Hosts","default":[]},"live":{"type":"boolean","title":"Live"},"completed_personalization_onboarding":{"type":"boolean","title":"Completed Personalization Onboarding"},"completed_cms_onboarding":{"type":"boolean","title":"Completed Cms Onboarding"},"selected_personalization":{"type":"boolean","title":"Selected Personalization"},"selected_cms":{"type":"boolean","title":"Selected Cms"},"has_content":{"type":"boolean","title":"Has Content"},"auto_publish_pages":{"type":"boolean","title":"Auto Publish Pages"},"show_job_panel":{"type":"boolean","title":"Show Job Panel"},"index_on_google":{"type":"boolean","title":"Index On Google"},"index_on_bing":{"type":"boolean","title":"Index On Bing"},"default_location":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Default Location"},"monitoring_onboarded":{"type":"boolean","title":"Monitoring Onboarded","default":false},"no_content_features":{"type":"boolean","title":"No Content Features","default":false},"workspace_mode":{"type":"string","title":"Workspace Mode","default":"full"},"api_only":{"type":"boolean","title":"Api Only","default":false},"has_monitors":{"type":"boolean","title":"Has Monitors","default":false},"available_models":{"items":{"type":"string"},"type":"array","title":"Available Models","default":[]},"notification_config":{"anyOf":[{"$ref":"#/components/schemas/SlackNotificationConfigResponse"},{"type":"null"}]},"hosting_configured":{"type":"boolean","title":"Hosting Configured","default":false},"hosting_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Status"},"hosting_subdomain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Subdomain Url"},"hosting_cname_target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Cname Target"},"hosting_records_ready":{"type":"boolean","title":"Hosting Records Ready","default":false},"hosting_awaiting_plan":{"type":"boolean","title":"Hosting Awaiting Plan","default":false},"hosting_free_host":{"type":"boolean","title":"Hosting Free Host","default":false},"hosting_pending_custom_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Pending Custom Host"},"generated_pages_utm":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Generated Pages Utm"}},"type":"object","required":["id","org_id","name","description","feedback","host","live","completed_personalization_onboarding","completed_cms_onboarding","selected_personalization","selected_cms","has_content","auto_publish_pages","show_job_panel","index_on_google","index_on_bing"],"title":"DomainResponse"},"DomainSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"host":{"type":"string","title":"Host"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"no_content_features":{"type":"boolean","title":"No Content Features","default":false},"monitoring_onboarded":{"type":"boolean","title":"Monitoring Onboarded","default":false}},"type":"object","required":["id","host"],"title":"DomainSummary"},"DraftPanelRequest":{"properties":{"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"subject_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Url"}},"type":"object","title":"DraftPanelRequest"},"DraftRequest":{"properties":{"prospect_url":{"type":"string","title":"Prospect Url"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"}},"type":"object","required":["prospect_url"],"title":"DraftRequest"},"DualSourcePoint":{"properties":{"date":{"type":"string","title":"Date"},"company":{"type":"integer","title":"Company"},"website":{"type":"integer","title":"Website"}},"type":"object","required":["date","company","website"],"title":"DualSourcePoint"},"EmailFieldsRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"recipient_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Email"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"cc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cc"}},"type":"object","required":["draft_id"],"title":"EmailFieldsRequest","description":"Envelope edit for a direct-email draft. Omitted fields are\nuntouched; an explicit \"\" clears subject/cc (never the recipient)."},"EmbedSnippetsOut":{"properties":{"script":{"type":"string","title":"Script"},"meta":{"type":"string","title":"Meta"},"llms_txt":{"type":"string","title":"Llms Txt"},"visible":{"type":"string","title":"Visible"}},"type":"object","required":["script","meta","llms_txt","visible"],"title":"EmbedSnippetsOut","description":"The embed formats the customer can publish, rendered server-side by\nbackend.utilities.agent_desk_embed — the single source of the copy (the\nhosted-page head tags and visible note come from the same builder)."},"EnqueuedAdminMessageResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"task_id":{"type":"string","title":"Task Id"},"user_message_id":{"type":"string","title":"User Message Id"},"run_id":{"type":"string","title":"Run Id"},"recommended_poll_interval_ms":{"type":"integer","title":"Recommended Poll Interval Ms"}},"type":"object","required":["job_id","task_id","user_message_id","run_id","recommended_poll_interval_ms"],"title":"EnqueuedAdminMessageResponse"},"EnqueuedMessageResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"task_id":{"type":"string","title":"Task Id"},"user_message_id":{"type":"string","title":"User Message Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},"type":"object","required":["job_id","task_id","user_message_id"],"title":"EnqueuedMessageResponse"},"EvalHistoryPoint":{"properties":{"model":{"type":"string","title":"Model"},"overall_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overall Score"},"overall_score_ci_lower":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score Ci Lower"},"overall_score_ci_upper":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score Ci Upper"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["model"],"title":"EvalHistoryPoint"},"EvaluationOut":{"properties":{"id":{"type":"string","title":"Id"},"goal_id":{"type":"string","title":"Goal Id"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"status":{"type":"string","title":"Status"},"overall_achieved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Overall Achieved"},"overall_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overall Score"},"overall_score_ci_lower":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score Ci Lower"},"overall_score_ci_upper":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score Ci Upper"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"criteria_results":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Criteria Results"},"blockers":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Blockers"},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","goal_id","status","created_at"],"title":"EvaluationOut"},"ExampleCreateRequest":{"properties":{"channel":{"type":"string","title":"Channel"},"archetype":{"type":"string","title":"Archetype"},"final_text":{"type":"string","title":"Final Text"},"situation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Situation"},"prospect_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Text"},"promised_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promised Context"},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign"},"seat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seat"}},"type":"object","required":["channel","archetype","final_text"],"title":"ExampleCreateRequest","description":"One hand-written voice example (source=\"manual\", born active)."},"ExamplePromoteRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"archetype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archetype"}},"type":"object","required":["draft_id"],"title":"ExamplePromoteRequest","description":"Promote a SENT draft's filed candidate example to active (optional\narchetype override). 404s when no filed row exists (pre-E1 sends)."},"ExampleStateRequest":{"properties":{"example_id":{"type":"string","title":"Example Id"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"}},"type":"object","required":["example_id"],"title":"ExampleStateRequest","description":"Flip active and/or pinned on one example (at least one required)."},"ExampleUpdateRequest":{"properties":{"example_id":{"type":"string","title":"Example Id"},"situation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Situation"},"archetype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archetype"},"final_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Text"},"prospect_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prospect Text"}},"type":"object","required":["example_id"],"title":"ExampleUpdateRequest","description":"Partial content edit for one voice example (WO-E1.5). Omitted fields\nare untouched; an explicit \"\"/null clears situation/prospect_text\n(archetype/final_text can only be replaced). Editing final_text clears\nthe verbatim flag — see backend/outbound/examples.py::update_example."},"ExternalPageContentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"domain_id":{"type":"string","format":"uuid","title":"Domain Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"format":{"type":"string","enum":["markdown","html"],"title":"Format"},"content":{"type":"string","title":"Content"}},"type":"object","required":["id","domain_id","slug","title","status","created_at","updated_at","format","content"],"title":"ExternalPageContentOut"},"ExternalPageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"domain_id":{"type":"string","format":"uuid","title":"Domain Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["id","domain_id","slug","title","status","created_at","updated_at"],"title":"ExternalPageOut"},"FeatureFlagOut":{"properties":{"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["name","enabled"],"title":"FeatureFlagOut"},"FeatureFlagResponse":{"properties":{"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["name","enabled"],"title":"FeatureFlagResponse"},"FeedbackDocumentRunResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["run_id","status"],"title":"FeedbackDocumentRunResponse"},"FetchContentRequest":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"FetchContentRequest"},"FinalizeBody":{"properties":{"surface":{"type":"string","enum":["desk","analytics"],"title":"Surface","default":"desk"},"company_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Company Url"},"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"applicant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Applicant Id"}},"additionalProperties":false,"type":"object","required":["company_url"],"title":"FinalizeBody"},"FooterWordingOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"visible":{"type":"string","title":"Visible"}},"type":"object","required":["id","label","visible"],"title":"FooterWordingOut","description":"One registry wording, rendered for THIS desk's destination so the\npicker shows the exact line the customer would paste. The picker's choice\nis kept in the owner's browser, not on the desk (2026-10-28, Jason: no\nmigration for this), so the server hands out all of them."},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GenerateEmailResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"GenerateEmailResponse"},"GenerateNameRequest":{"properties":{"selections":{"additionalProperties":{"type":"string"},"type":"object","title":"Selections"},"criteria_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Criteria Description"},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Name"}},"type":"object","required":["selections"],"title":"GenerateNameRequest"},"GenerateNameResponse":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"GenerateNameResponse"},"GenerateRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"model":{"type":"string","title":"Model","default":"gpt-5.4"},"reasoning_level":{"type":"string","title":"Reasoning Level","default":"high"}},"type":"object","required":["prompt"],"title":"GenerateRequest","description":"Request for AI generation steps."},"GenerateRubricRequest":{"properties":{"source_text":{"type":"string","title":"Source Text"},"description":{"type":"string","title":"Description"}},"type":"object","required":["source_text","description"],"title":"GenerateRubricRequest"},"GenerateRubricResponse":{"properties":{"title":{"type":"string","title":"Title"},"rubric":{"additionalProperties":true,"type":"object","title":"Rubric"}},"type":"object","required":["title","rubric"],"title":"GenerateRubricResponse"},"GenerateScopeRequest":{"properties":{"scope_kind":{"type":"string","title":"Scope Kind"},"scope_label":{"type":"string","title":"Scope Label"},"guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guidance"},"avoid_texts":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Avoid Texts"}},"type":"object","required":["scope_kind","scope_label"],"title":"GenerateScopeRequest"},"GenerateStrategiesRequest":{"properties":{"baseline_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Run Id"},"baseline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Id"},"competitor":{"type":"string","title":"Competitor"},"target_scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Scopes"}},"type":"object","required":["competitor"],"title":"GenerateStrategiesRequest"},"GeneratedPageCreate":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"markdown_content":{"type":"string","title":"Markdown Content"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority","default":50},"knowledge_entry_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Knowledge Entry Ids"}},"type":"object","required":["slug","title","markdown_content"],"title":"GeneratedPageCreate"},"GeneratedPageDeleteMark":{"properties":{"deleted":{"type":"boolean","title":"Deleted","default":true}},"type":"object","title":"GeneratedPageDeleteMark"},"GeneratedPageResponse":{"properties":{"id":{"anyOf":[{"type":"string","const":"overview"},{"type":"string","format":"uuid"}],"title":"Id"},"domain_id":{"type":"string","format":"uuid","title":"Domain Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"markdown_content":{"type":"string","title":"Markdown Content"},"html_content":{"type":"string","title":"Html Content"},"storage_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Path"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics"},"priority":{"type":"integer","title":"Priority"},"status":{"type":"string","title":"Status"},"version":{"type":"integer","title":"Version"},"llm_visits":{"additionalProperties":true,"type":"object","title":"Llm Visits"},"last_accessed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Accessed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"human_visits_total":{"type":"integer","title":"Human Visits Total","default":0}},"type":"object","required":["id","domain_id","slug","title","meta_description","markdown_content","html_content","storage_path","page_type","topics","priority","status","version","llm_visits","last_accessed_at","created_at","updated_at","published_at"],"title":"GeneratedPageResponse"},"GeneratedPageUpdate":{"properties":{"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"markdown_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown Content"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"GeneratedPageUpdate"},"GeneratedPageVersionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"title":{"type":"string","title":"Title"},"markdown_content":{"type":"string","title":"Markdown Content"},"html_content":{"type":"string","title":"Html Content"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","version","title","markdown_content","html_content","change_summary","changed_by","created_at"],"title":"GeneratedPageVersionResponse"},"GeneratedPagesUtmUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medium"},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign"}},"type":"object","title":"GeneratedPagesUtmUpdate"},"GeneratedProfileCandidate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["name","description"],"title":"GeneratedProfileCandidate"},"GitHubWorkflowRunOut":{"properties":{"run_id":{"type":"integer","title":"Run Id"},"workflow_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Name"},"display_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Title"},"status":{"type":"string","title":"Status"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"html_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Url"},"logs_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logs Url"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"head_branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Branch"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"run_started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Started At"}},"type":"object","required":["run_id","status"],"title":"GitHubWorkflowRunOut"},"GoalCreate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"source_text":{"type":"string","title":"Source Text"},"source_page":{"type":"string","title":"Source Page"},"description":{"type":"string","title":"Description"},"rubric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric"}},"type":"object","required":["source_text","source_page","description"],"title":"GoalCreate"},"GoalInput":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"rubric":{"type":"string","title":"Rubric"}},"type":"object","required":["rubric"],"title":"GoalInput"},"GoalListResponse":{"properties":{"goals":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__BrandGoalOut"},"type":"array","title":"Goals"}},"type":"object","required":["goals"],"title":"GoalListResponse"},"GoalOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"source_text":{"type":"string","title":"Source Text"},"source_page":{"type":"string","title":"Source Page"},"description":{"type":"string","title":"Description"},"rubric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric"},"status":{"type":"string","title":"Status"},"subject_type":{"type":"string","title":"Subject Type","default":"brand"},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"},"parent_goal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Goal Id"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","source_text","source_page","description","status","created_at"],"title":"GoalOut"},"GoalUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"rubric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"GoalUpdate"},"GoalWithEvaluationOut":{"properties":{"goal":{"$ref":"#/components/schemas/GoalOut"},"latest_evaluation":{"anyOf":[{"$ref":"#/components/schemas/EvaluationOut"},{"type":"null"}]},"model_evaluations":{"anyOf":[{"items":{"$ref":"#/components/schemas/EvaluationOut"},"type":"array"},{"type":"null"}],"title":"Model Evaluations"}},"type":"object","required":["goal"],"title":"GoalWithEvaluationOut"},"GoalWithMetacogOut":{"properties":{"goal":{"$ref":"#/components/schemas/backend__dashboard_server__routes__brand_goals__BrandGoalOut"},"metacognitive":{"anyOf":[{"$ref":"#/components/schemas/MetacognitiveResultOut"},{"type":"null"}]}},"type":"object","required":["goal"],"title":"GoalWithMetacogOut"},"GrantPublicReportAccessRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"GrantPublicReportAccessRequest"},"GuideFrontmatter":{"properties":{"title":{"type":"string","title":"Title","default":""},"kind":{"type":"string","title":"Kind","default":""},"read_when":{"type":"string","title":"Read When","default":""},"staff_only":{"type":"boolean","title":"Staff Only","default":false},"read_first":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Read First"}},"type":"object","title":"GuideFrontmatter"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoryPoint":{"properties":{"model":{"type":"string","title":"Model"},"brand_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Brand Score"},"brand_score_ci_lower":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Brand Score Ci Lower"},"brand_score_ci_upper":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Brand Score Ci Upper"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["model"],"title":"HistoryPoint"},"HomepageContent":{"properties":{"heading":{"type":"string","maxLength":300,"minLength":1,"title":"Heading"},"description":{"type":"string","maxLength":10000,"minLength":1,"title":"Description"},"description_format":{"type":"string","enum":["text","markdown"],"title":"Description Format","default":"text"},"sections":{"items":{"$ref":"#/components/schemas/HomepageSection"},"type":"array","maxItems":30,"title":"Sections"}},"additionalProperties":false,"type":"object","required":["heading","description"],"title":"HomepageContent"},"HomepageSection":{"properties":{"kind":{"type":"string","enum":["text","heading","callout","link","code"],"title":"Kind","default":"text"},"text":{"type":"string","maxLength":10000,"minLength":1,"title":"Text"},"text_format":{"type":"string","enum":["text","markdown"],"title":"Text Format","default":"text"},"url":{"type":"string","maxLength":2048,"title":"Url","default":""},"language":{"type":"string","maxLength":30,"pattern":"^[A-Za-z0-9+#._-]*$","title":"Language","default":""}},"additionalProperties":false,"type":"object","required":["text"],"title":"HomepageSection"},"HostedCSPSettings":{"properties":{"mode":{"type":"string","enum":["report-only","enforce"],"title":"Mode","default":"report-only"},"allow_https_resources":{"type":"boolean","title":"Allow Https Resources","default":true},"sources":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Sources"}},"additionalProperties":false,"type":"object","title":"HostedCSPSettings"},"HostingConfigCreate":{"properties":{"base_domain":{"type":"string","title":"Base Domain"},"ai_subdomain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Subdomain","default":"ai"},"ai_path_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Path Prefix","default":"/ai"},"hosting_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Provider","default":"aws_subdomain"}},"type":"object","required":["base_domain"],"title":"HostingConfigCreate"},"HostingConfigResponse":{"properties":{"hosted_csp":{"$ref":"#/components/schemas/HostedCSPSettings"},"id":{"type":"string","title":"Id"},"domain_id":{"type":"string","title":"Domain Id"},"hosting_provider":{"type":"string","title":"Hosting Provider"},"hosting_status":{"type":"string","title":"Hosting Status"},"base_domain":{"type":"string","title":"Base Domain"},"ai_subdomain":{"type":"string","title":"Ai Subdomain"},"ai_path_prefix":{"type":"string","title":"Ai Path Prefix"},"cloudfront_distribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudfront Distribution Id"},"cloudfront_domain_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudfront Domain Name"},"s3_bucket_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Bucket Name"},"s3_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Prefix"},"cloudflare_zone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudflare Zone Id"},"cloudflare_custom_hostname_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudflare Custom Hostname Id"},"cloudflare_custom_hostname_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloudflare Custom Hostname Status"},"ssl_status":{"type":"string","title":"Ssl Status"},"cname_target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cname Target"},"dns_records":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Dns Records"},"subdomain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subdomain Url"},"preview_only":{"type":"boolean","title":"Preview Only","default":false},"public_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Url"},"alias_redirect_hosts":{"items":{"type":"string"},"type":"array","title":"Alias Redirect Hosts","default":[]},"free_host":{"type":"boolean","title":"Free Host","default":false},"pending_custom_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Custom Host"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","domain_id","hosting_provider","hosting_status","base_domain","ai_subdomain","ai_path_prefix","cloudfront_distribution_id","cloudfront_domain_name","s3_bucket_name","s3_prefix","cloudflare_zone_id","cloudflare_custom_hostname_id","cloudflare_custom_hostname_status","ssl_status","created_at","updated_at"],"title":"HostingConfigResponse"},"HostingConfigUpdate":{"properties":{"hosted_csp":{"anyOf":[{"$ref":"#/components/schemas/HostedCSPSettings"},{"type":"null"}]},"base_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Domain"},"ai_subdomain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Subdomain"},"ai_path_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Path Prefix"},"hosting_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Provider"},"hosting_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Status"},"alias_redirect_hosts":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Alias Redirect Hosts"}},"type":"object","title":"HostingConfigUpdate"},"IPCompanyMatchOut":{"properties":{"confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"inferred_revenue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inferred Revenue"},"employee_count":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Employee Count"},"size_range":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size Range"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","title":"IPCompanyMatchOut"},"IPEnrichmentOut":{"properties":{"attempted_match":{"type":"boolean","title":"Attempted Match","default":false},"did_match":{"type":"boolean","title":"Did Match","default":false},"dataset_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Version"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"company":{"anyOf":[{"$ref":"#/components/schemas/IPCompanyMatchOut"},{"type":"null"}]},"person":{"anyOf":[{"$ref":"#/components/schemas/IPPersonMatchOut"},{"type":"null"}]}},"type":"object","title":"IPEnrichmentOut"},"IPPersonMatchOut":{"properties":{"confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"title_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Role"},"title_sub_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Sub Role"},"title_levels":{"items":{"type":"string"},"type":"array","title":"Title Levels"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"emails":{"items":{"type":"string"},"type":"array","title":"Emails"}},"type":"object","title":"IPPersonMatchOut"},"InfluencerReview":{"properties":{"discovery_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discovery Status"},"relationship_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Status"}},"additionalProperties":false,"type":"object","title":"InfluencerReview"},"InfluentialChannelOut":{"properties":{"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"model":{"type":"string","title":"Model"}},"type":"object","required":["url","title","model"],"title":"InfluentialChannelOut"},"InfluentialMediaRunDetailOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"analyzed_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analyzed From"},"analyzed_to":{"type":"string","title":"Analyzed To"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"total_citations_analyzed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Citations Analyzed"},"total_conversations_analyzed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Conversations Analyzed"},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"narratives":{"items":{"$ref":"#/components/schemas/InfluentialNarrativeOut"},"type":"array","title":"Narratives","default":[]}},"type":"object","required":["id","status","analyzed_to","created_at"],"title":"InfluentialMediaRunDetailOut"},"InfluentialMediaRunOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"analyzed_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analyzed From"},"analyzed_to":{"type":"string","title":"Analyzed To"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"total_citations_analyzed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Citations Analyzed"},"total_conversations_analyzed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Conversations Analyzed"},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","status","analyzed_to","created_at"],"title":"InfluentialMediaRunOut"},"InfluentialNarrativeOut":{"properties":{"narrative":{"type":"string","title":"Narrative","default":""},"description":{"type":"string","title":"Description","default":""},"direction":{"type":"string","title":"Direction","default":"hurts_brand"},"target":{"type":"string","title":"Target","default":""},"impact_level":{"type":"string","title":"Impact Level","default":"medium"},"media_patterns":{"items":{"$ref":"#/components/schemas/NarrativeMediaPatternOut"},"type":"array","title":"Media Patterns","default":[]},"supporting_quotes":{"items":{"$ref":"#/components/schemas/NarrativeQuoteOut"},"type":"array","title":"Supporting Quotes","default":[]}},"type":"object","title":"InfluentialNarrativeOut"},"IngestResponse":{"properties":{"received":{"type":"integer","title":"Received"},"ingested":{"type":"integer","title":"Ingested"}},"type":"object","required":["received","ingested"],"title":"IngestResponse"},"InsightActionOut":{"properties":{"id":{"type":"string","title":"Id"},"category":{"type":"string","title":"Category"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","category","title","description","created_at"],"title":"InsightActionOut"},"InsightActionsResponse":{"properties":{"actions":{"items":{"$ref":"#/components/schemas/InsightActionOut"},"type":"array","title":"Actions"},"metacog_result_id":{"type":"string","title":"Metacog Result Id"},"idea_index":{"type":"integer","title":"Idea Index"}},"type":"object","required":["actions","metacog_result_id","idea_index"],"title":"InsightActionsResponse"},"InsightOut":{"properties":{"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"isPositive":{"type":"boolean","title":"Ispositive"},"quotes":{"items":{"$ref":"#/components/schemas/QuoteOut"},"type":"array","title":"Quotes"}},"type":"object","required":["title","summary","isPositive","quotes"],"title":"InsightOut"},"IntegrationOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"method":{"type":"string","title":"Method"},"description":{"type":"string","title":"Description"},"auth":{"type":"string","title":"Auth"},"provider":{"type":"string","title":"Provider"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["id","name","url","method","description","auth","provider","enabled"],"title":"IntegrationOut"},"IntentAttributionOut":{"properties":{"intentId":{"type":"string","title":"Intentid"},"intentName":{"type":"string","title":"Intentname"},"foundStatus":{"type":"string","enum":["always","often","occasionally","rarely","never"],"title":"Foundstatus"},"impact":{"type":"string","enum":["high","medium","low"],"title":"Impact"},"personaContexts":{"items":{"$ref":"#/components/schemas/PersonaContextRefOut"},"type":"array","title":"Personacontexts"},"foundRationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Foundrationale"},"impactRationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impactrationale"}},"type":"object","required":["intentId","intentName","foundStatus","impact","personaContexts"],"title":"IntentAttributionOut"},"InterestRequest":{"properties":{"interest":{"type":"string","title":"Interest"}},"type":"object","required":["interest"],"title":"InterestRequest"},"InternalAuthResponse":{"properties":{"user":{"$ref":"#/components/schemas/InternalUserResponse"},"tokens":{"$ref":"#/components/schemas/InternalTokenPair"}},"type":"object","required":["user","tokens"],"title":"InternalAuthResponse"},"InternalLoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"InternalLoginRequest"},"InternalRefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"InternalRefreshRequest"},"InternalTokenPair":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["access_token","refresh_token"],"title":"InternalTokenPair"},"InternalUserResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},"type":"object","required":["id","email"],"title":"InternalUserResponse"},"IpRuleRequest":{"properties":{"ip":{"type":"string","title":"Ip"},"action":{"type":"string","title":"Action"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["ip","action"],"title":"IpRuleRequest","description":"An owner's action on one IP, on this desk.\n\n``ip`` and ``action`` are plain strings rather than constrained types on\npurpose: the handler validates them and raises an explicit 422 with a\nuseful detail, which also means the contract is exercised identically when\nthe handler is called directly from a test."},"ItemTrafficOut":{"properties":{"agent":{"items":{"$ref":"#/components/schemas/VisitPointOut"},"type":"array","title":"Agent"},"human":{"items":{"$ref":"#/components/schemas/VisitPointOut"},"type":"array","title":"Human"},"humanSince":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Humansince"}},"type":"object","required":["agent","human"],"title":"ItemTrafficOut","description":"Agent vs human daily series for one content item, same window."},"JobProgressOut":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Events","default":[]},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"}},"type":"object","required":["job_id","status"],"title":"JobProgressOut"},"JobProgressResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"events":{"items":{"$ref":"#/components/schemas/ProgressEvent"},"type":"array","title":"Events"},"next_cursor":{"type":"integer","title":"Next Cursor"}},"type":"object","required":["job_id","status","events","next_cursor"],"title":"JobProgressResponse"},"JobSummary":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"actor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor"},"queue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Queue"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"last_event_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Event At"},"status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Text"}},"type":"object","required":["job_id","status"],"title":"JobSummary"},"KnowledgeAddContent":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"KnowledgeAddContent","description":"Exactly one of `url` or `text`. `url` must be on an owned host."},"KnowledgeBaseEntryCreate":{"properties":{"entry_type":{"type":"string","title":"Entry Type"},"source_url":{"type":"string","title":"Source Url"},"source_type":{"type":"string","title":"Source Type"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"content_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Text"},"content_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Content Data"},"entry_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Entry Metadata"}},"type":"object","required":["entry_type","source_url","source_type"],"title":"KnowledgeBaseEntryCreate"},"KnowledgeBaseEntryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"domain_id":{"type":"string","format":"uuid","title":"Domain Id"},"entry_type":{"type":"string","title":"Entry Type"},"source_url":{"type":"string","title":"Source Url"},"source_type":{"type":"string","title":"Source Type"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"content_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Text"},"content_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Content Data"},"entry_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Entry Metadata"},"status":{"type":"string","title":"Status"},"last_processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Processed At"},"processing_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processing Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","domain_id","entry_type","source_url","source_type","file_path","title","description","content_text","content_data","entry_metadata","status","last_processed_at","processing_error","created_at","updated_at"],"title":"KnowledgeBaseEntryResponse"},"KnowledgeBaseEntryUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"content_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Text"},"content_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Content Data"},"entry_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Entry Metadata"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"}},"type":"object","title":"KnowledgeBaseEntryUpdate"},"KnowledgeItemOut":{"properties":{"public_approved":{"type":"boolean","title":"Public Approved","default":false},"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"filename":{"type":"string","title":"Filename"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size"},"has_file":{"type":"boolean","title":"Has File","default":false},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"source_kind":{"type":"string","title":"Source Kind"},"uploaded_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By Email"},"status":{"type":"string","title":"Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"upload_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Instructions"},"content_update_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Update Status"},"content_patch_set_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Patch Set Id"},"content_patch_set_count":{"type":"integer","title":"Content Patch Set Count","default":0},"pending_patch_set_count":{"type":"integer","title":"Pending Patch Set Count","default":0},"applied_patch_set_count":{"type":"integer","title":"Applied Patch Set Count","default":0},"failed_patch_set_count":{"type":"integer","title":"Failed Patch Set Count","default":0},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","title","filename","source_kind","status"],"title":"KnowledgeItemOut","description":"One knowledge-shelf item. ``id`` is the account_document id — the only\nidentity this API exposes. Field names deliberately track the old\nMaterialOut where semantics coincide so the view's diff stays small."},"KnowledgeLinkIn":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"KnowledgeLinkIn"},"KnowledgeNoteIn":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"KnowledgeNoteIn"},"KnowledgePublicationIn":{"properties":{"public_approved":{"type":"boolean","title":"Public Approved"}},"type":"object","required":["public_approved"],"title":"KnowledgePublicationIn"},"KnowledgeRecompileRequest":{"properties":{"section_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Section Keys"},"instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instruction"}},"type":"object","title":"KnowledgeRecompileRequest"},"KnowledgeUpdateQueued":{"properties":{"status":{"type":"string","const":"queued","title":"Status","default":"queued"},"detail":{"type":"string","title":"Detail"},"compiling_since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compiling Since"}},"type":"object","required":["detail"],"title":"KnowledgeUpdateQueued"},"LLMVisitPayload":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"slug":{"type":"string","title":"Slug"},"user_agent":{"type":"string","title":"User Agent"}},"type":"object","required":["domain_id","slug","user_agent"],"title":"LLMVisitPayload"},"LaunchStagingRefreshRequest":{"properties":{"organization_ids":{"items":{"type":"string"},"type":"array","title":"Organization Ids"},"clear_preview_prefix":{"type":"boolean","title":"Clear Preview Prefix","default":true}},"type":"object","title":"LaunchStagingRefreshRequest"},"LaunchStagingRefreshResponse":{"properties":{"run_id":{"type":"integer","title":"Run Id"},"workflow_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Name"},"display_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Title"},"status":{"type":"string","title":"Status"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"html_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Url"},"logs_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logs Url"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"head_branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Branch"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"run_started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Started At"},"request_id":{"type":"string","title":"Request Id"},"organization_ids":{"items":{"type":"string"},"type":"array","title":"Organization Ids"},"clear_preview_prefix":{"type":"boolean","title":"Clear Preview Prefix","default":true}},"type":"object","required":["run_id","status","request_id"],"title":"LaunchStagingRefreshResponse"},"LearningApprove":{"properties":{"statement_override":{"anyOf":[{"type":"string","maxLength":50000},{"type":"null"}],"title":"Statement Override"},"test_override":{"anyOf":[{"$ref":"#/components/schemas/LearningTestOverride"},{"type":"null"}]}},"type":"object","title":"LearningApprove"},"LearningApproveOut":{"properties":{"activated_versions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Activated Versions"},"test":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Test"},"regenerate_offer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Regenerate Offer"},"baseline_run_enqueued":{"type":"boolean","title":"Baseline Run Enqueued","default":false},"skipped_versions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Skipped Versions"},"redrafting":{"type":"boolean","title":"Redrafting","default":false},"correction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Correction"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["activated_versions","detail"],"title":"LearningApproveOut"},"LearningRemovedOut":{"properties":{"version_id":{"type":"string","title":"Version Id"},"kind":{"type":"string","title":"Kind"},"removed":{"type":"boolean","title":"Removed"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["version_id","kind","removed","detail"],"title":"LearningRemovedOut"},"LearningStatementOut":{"properties":{"version_id":{"type":"string","title":"Version Id"},"kind":{"type":"string","title":"Kind"},"statement":{"type":"string","title":"Statement"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["version_id","kind","statement","detail"],"title":"LearningStatementOut"},"LearningStatementUpdate":{"properties":{"statement":{"type":"string","maxLength":50000,"title":"Statement"}},"type":"object","required":["statement"],"title":"LearningStatementUpdate","description":"The reworded memory. One field, because one field is all that is editable.\n\nNo product limit (Will, 2026-10-14: the 240-char cap is gone); the hidden\nowner-text guardrail is enforced HERE as well as at the write, matching\n`LearningApprove.statement_override`, so an absurd paste is a 422 the field can\nshow, not a silent truncation the owner discovers on the next reload."},"LearningTestOverride":{"properties":{"question":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Question"},"expectation":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Expectation"},"drop":{"type":"boolean","title":"Drop","default":false}},"type":"object","title":"LearningTestOverride","description":"D27's editable bundle. Either new wording, or `drop: true` — never both in\nspirit; `drop` wins if both arrive, because dropping is the destructive choice\nand a client that sends both is confused about what it is asking for."},"LearningUndoOut":{"properties":{"undone":{"type":"boolean","title":"Undone"},"kind":{"type":"string","title":"Kind"},"undone_version_number":{"type":"integer","title":"Undone Version Number"},"restored_version_number":{"type":"integer","title":"Restored Version Number"},"rollback_version_number":{"type":"integer","title":"Rollback Version Number"},"retired_test_ids":{"items":{"type":"string"},"type":"array","title":"Retired Test Ids"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["undone","kind","undone_version_number","restored_version_number","rollback_version_number","detail"],"title":"LearningUndoOut","description":"What the undo did, in the words the row can render."},"LiftRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"LiftRequest"},"ListPlansOut":{"properties":{"plans":{"items":{"$ref":"#/components/schemas/PlanOut"},"type":"array","title":"Plans"}},"type":"object","required":["plans"],"title":"ListPlansOut"},"ListRequest":{"properties":{"filters":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Filters"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"},"sort":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Sort"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","title":"ListRequest"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LogoutBody":{"properties":{"surface":{"type":"string","title":"Surface"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}},"type":"object","required":["surface"],"title":"LogoutBody"},"MaterialOut":{"properties":{"public_approved":{"type":"boolean","title":"Public Approved","default":false},"id":{"type":"string","title":"Id"},"filename":{"type":"string","title":"Filename"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"upload_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Batch Id"},"status":{"type":"string","title":"Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"upload_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Instructions"},"content_update_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Update Status"},"content_patch_set_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Patch Set Id"},"content_patch_set_count":{"type":"integer","title":"Content Patch Set Count","default":0},"pending_patch_set_count":{"type":"integer","title":"Pending Patch Set Count","default":0},"applied_patch_set_count":{"type":"integer","title":"Applied Patch Set Count","default":0},"failed_patch_set_count":{"type":"integer","title":"Failed Patch Set Count","default":0},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","filename","status"],"title":"MaterialOut"},"MeetingRequest":{"properties":{"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"},"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"}},"type":"object","title":"MeetingRequest"},"MemoryCreate":{"properties":{"statement":{"type":"string","maxLength":50000,"minLength":1,"title":"Statement"}},"type":"object","required":["statement"],"title":"MemoryCreate","description":"One thing the owner wants their AgentDesk to know, or a rule to follow.\n\nA sentence (or several), typed on the Memories tab. No product limit (Will,\n2026-10-14) — only the hidden owner-text guardrail every correction shares,\nbecause it is quoted into a prompt downstream."},"MetacogIdeaOut":{"properties":{"title":{"type":"string","title":"Title","default":""},"subtitle":{"type":"string","title":"Subtitle","default":""},"description":{"type":"string","title":"Description","default":""},"quotes":{"items":{"$ref":"#/components/schemas/MetacogQuoteOut"},"type":"array","title":"Quotes"},"influential_channels":{"items":{"$ref":"#/components/schemas/InfluentialChannelOut"},"type":"array","title":"Influential Channels","default":[]},"impact":{"type":"string","title":"Impact","default":""},"isPositive":{"type":"boolean","title":"Ispositive","default":false},"idea":{"type":"string","title":"Idea","default":""},"rationale":{"type":"string","title":"Rationale","default":""},"evidence":{"type":"string","title":"Evidence","default":""},"priority":{"type":"string","title":"Priority","default":""},"effort":{"type":"string","title":"Effort","default":""}},"type":"object","required":["quotes"],"title":"MetacogIdeaOut"},"MetacogKeyFindingsOut":{"properties":{"brand_strengths":{"items":{"type":"string"},"type":"array","title":"Brand Strengths"},"brand_weaknesses":{"items":{"type":"string"},"type":"array","title":"Brand Weaknesses"},"competitive_opportunities":{"items":{"type":"string"},"type":"array","title":"Competitive Opportunities"},"perception_gaps":{"items":{"type":"string"},"type":"array","title":"Perception Gaps"}},"type":"object","required":["brand_strengths","brand_weaknesses","competitive_opportunities","perception_gaps"],"title":"MetacogKeyFindingsOut"},"MetacogQuoteOut":{"properties":{"model":{"type":"string","title":"Model"},"quote":{"type":"string","title":"Quote"}},"type":"object","required":["model","quote"],"title":"MetacogQuoteOut"},"MetacogResultOut":{"properties":{"id":{"type":"string","title":"Id"},"monitor_row_id":{"type":"string","title":"Monitor Row Id"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"ideas":{"items":{"$ref":"#/components/schemas/MetacogIdeaOut"},"type":"array","title":"Ideas"},"key_findings":{"anyOf":[{"$ref":"#/components/schemas/MetacogKeyFindingsOut"},{"type":"null"}]},"strengths_weaknesses":{"anyOf":[{"$ref":"#/components/schemas/StrengthsWeaknessesResultOut"},{"type":"null"}]},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","monitor_row_id","ideas","created_at"],"title":"MetacogResultOut"},"MetacognitiveResultOut":{"properties":{"id":{"type":"string","title":"Id"},"goal_id":{"type":"string","title":"Goal Id"},"summary_sentence":{"type":"string","title":"Summary Sentence"},"summary_paragraph":{"type":"string","title":"Summary Paragraph"},"insights":{"items":{"$ref":"#/components/schemas/InsightOut"},"type":"array","title":"Insights"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","goal_id","summary_sentence","summary_paragraph","insights","created_at"],"title":"MetacognitiveResultOut"},"ModelCountOut":{"properties":{"model":{"type":"string","title":"Model"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["model","count"],"title":"ModelCountOut"},"ModelScoresV2Historical":{"properties":{"model":{"type":"string","title":"Model"},"status":{"type":"string","title":"Status"},"competitor_scores":{"items":{"$ref":"#/components/schemas/CompetitorScoreV2Historical"},"type":"array","title":"Competitor Scores"}},"type":"object","required":["model","status","competitor_scores"],"title":"ModelScoresV2Historical"},"MonitorConfigOut":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/CategoryOut"},"type":"array","title":"Categories"},"rows":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__monitoring__MonitorRowOut"},"type":"array","title":"Rows"}},"type":"object","required":["categories","rows"],"title":"MonitorConfigOut"},"MonitorInsightOut":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"}},"type":"object","required":["title","description"],"title":"MonitorInsightOut"},"MonitorItem":{"properties":{"label":{"type":"string","title":"Label"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"competitor_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitor Ids"},"competitive_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitive Product Ids"}},"type":"object","required":["label"],"title":"MonitorItem"},"MonitorListResponse":{"properties":{"monitors":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__MonitorRowOut"},"type":"array","title":"Monitors"}},"type":"object","required":["monitors"],"title":"MonitorListResponse"},"MonitorModelScoresOut":{"properties":{"model":{"type":"string","title":"Model"},"status":{"type":"string","title":"Status"},"competitor_scores":{"items":{"$ref":"#/components/schemas/CompetitorScoreOut"},"type":"array","title":"Competitor Scores","default":[]}},"type":"object","required":["model","status"],"title":"MonitorModelScoresOut"},"MonitorResultOut":{"properties":{"monitor_id":{"type":"string","title":"Monitor Id"},"label":{"type":"string","title":"Label"},"model_scores":{"items":{"$ref":"#/components/schemas/MonitorModelScoresOut"},"type":"array","title":"Model Scores","default":[]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"insights":{"items":{"$ref":"#/components/schemas/MonitorInsightOut"},"type":"array","title":"Insights","default":[]}},"type":"object","required":["monitor_id","label"],"title":"MonitorResultOut"},"MonitorResultsResponse":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"domain_name":{"type":"string","title":"Domain Name"},"monitors":{"items":{"$ref":"#/components/schemas/MonitorResultOut"},"type":"array","title":"Monitors","default":[]},"overall_status":{"type":"string","title":"Overall Status"}},"type":"object","required":["domain_id","domain_name","overall_status"],"title":"MonitorResultsResponse"},"MonitorRowsResponse":{"properties":{"monitors":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__MonitorRowOut"},"type":"array","title":"Monitors"}},"type":"object","required":["monitors"],"title":"MonitorRowsResponse"},"NarrativeMediaPatternOut":{"properties":{"key_message":{"type":"string","title":"Key Message","default":""},"delivery_venues":{"items":{"type":"string"},"type":"array","title":"Delivery Venues","default":[]},"recurring_keywords":{"items":{"type":"string"},"type":"array","title":"Recurring Keywords","default":[]},"example_urls":{"items":{"type":"string"},"type":"array","title":"Example Urls","default":[]}},"type":"object","title":"NarrativeMediaPatternOut"},"NarrativeQuoteOut":{"properties":{"model":{"type":"string","title":"Model","default":""},"quote":{"type":"string","title":"Quote","default":""}},"type":"object","title":"NarrativeQuoteOut"},"NetlifyBotTrackingStatus":{"properties":{"configured":{"type":"boolean","title":"Configured"},"enabled":{"type":"boolean","title":"Enabled"},"ingest_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingest Url"},"last_visit_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Visit At"},"last_ingest_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Ingest Status"}},"type":"object","required":["configured","enabled"],"title":"NetlifyBotTrackingStatus"},"ObjectiveAnalysisBatchOut":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"analyses_by_model":{"additionalProperties":true,"type":"object","title":"Analyses By Model","default":{}},"aggregate_analysis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aggregate Analysis"},"analysis_chat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Chat Id"},"probe_execution_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Execution Batch Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"summary_bullets":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Summary Bullets"},"influence_attribution":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Influence Attribution"}},"type":"object","required":["id"],"title":"ObjectiveAnalysisBatchOut"},"ObjectiveCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"rubric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric"},"status":{"type":"string","title":"Status","default":"active"}},"type":"object","required":["name","description"],"title":"ObjectiveCreate"},"ObjectiveCreateOut":{"properties":{"id":{"type":"string","title":"Id"},"domain_id":{"type":"string","title":"Domain Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"rubric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric"},"status":{"type":"string","title":"Status"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["id","domain_id","name","description","status"],"title":"ObjectiveCreateOut"},"ObjectiveGeneratedPageOut":{"properties":{"page_id":{"type":"string","title":"Page Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"kind":{"type":"string","title":"Kind"},"deleted":{"type":"boolean","title":"Deleted","default":false},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"type":"object","required":["page_id","kind"],"title":"ObjectiveGeneratedPageOut"},"ObjectiveGeneratedPagesResponse":{"properties":{"workspace_chat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Chat Id"},"pages":{"items":{"$ref":"#/components/schemas/ObjectiveGeneratedPageOut"},"type":"array","title":"Pages"}},"type":"object","required":["pages"],"title":"ObjectiveGeneratedPagesResponse"},"ObjectiveOut":{"properties":{"id":{"type":"string","title":"Id"},"domain_id":{"type":"string","title":"Domain Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"rubric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","domain_id","name","description","status"],"title":"ObjectiveOut"},"ObjectiveOverviewRow":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"current_score":{"type":"integer","title":"Current Score"},"delta_30d":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delta 30D"},"has_new_content_changes":{"type":"boolean","title":"Has New Content Changes"}},"type":"object","required":["id","name","current_score","has_new_content_changes"],"title":"ObjectiveOverviewRow"},"ObjectiveProbeCreateIn":{"properties":{"question_text":{"type":"string","minLength":3,"title":"Question Text"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},"type":"object","required":["question_text"],"title":"ObjectiveProbeCreateIn"},"ObjectiveProbeCreateOut":{"properties":{"id":{"type":"string","title":"Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["id"],"title":"ObjectiveProbeCreateOut"},"ObjectiveProbeOut":{"properties":{"id":{"type":"string","title":"Id"},"question_text":{"type":"string","title":"Question Text"},"status":{"type":"string","title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","question_text","status"],"title":"ObjectiveProbeOut"},"ObjectiveUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"rubric":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"ObjectiveUpdate"},"OfferEventOut":{"properties":{"id":{"type":"string","title":"Id"},"offering_id":{"type":"string","title":"Offering Id"},"conversation_id":{"type":"string","title":"Conversation Id"},"conversation_ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Ip"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"trigger_matched":{"type":"string","title":"Trigger Matched"},"model_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Reason"},"inquiry_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inquiry Excerpt"},"delivered":{"type":"boolean","title":"Delivered"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","offering_id","conversation_id","trigger_matched","delivered"],"title":"OfferEventOut"},"OfferingCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"terms":{"type":"string","minLength":1,"title":"Terms"},"code_prefix":{"type":"string","maxLength":48,"minLength":1,"title":"Code Prefix"},"fulfillment_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fulfillment Email"},"trigger_phrases":{"items":{"type":"string"},"type":"array","title":"Trigger Phrases"},"trigger_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Guidance"},"status":{"type":"string","enum":["active","paused"],"title":"Status","default":"active"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["title","terms","code_prefix"],"title":"OfferingCreate"},"OfferingOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"terms":{"type":"string","title":"Terms"},"code_prefix":{"type":"string","title":"Code Prefix"},"fulfillment_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fulfillment Email"},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url"},"trigger_phrases":{"items":{"type":"string"},"type":"array","title":"Trigger Phrases"},"trigger_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Guidance"},"status":{"type":"string","title":"Status"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"surfaced_count":{"type":"integer","title":"Surfaced Count","default":0},"delivered_count":{"type":"integer","title":"Delivered Count","default":0},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","title","terms","code_prefix","status"],"title":"OfferingOut"},"OfferingUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"terms":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Terms"},"code_prefix":{"anyOf":[{"type":"string","maxLength":48,"minLength":1},{"type":"null"}],"title":"Code Prefix"},"fulfillment_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fulfillment Email"},"trigger_phrases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Trigger Phrases"},"trigger_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Guidance"},"status":{"anyOf":[{"type":"string","enum":["active","paused"]},{"type":"null"}],"title":"Status"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","title":"OfferingUpdate"},"OnboardResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"OnboardResponse"},"OnboardingIn":{"properties":{"auto_publish":{"type":"boolean","title":"Auto Publish","default":true}},"type":"object","title":"OnboardingIn"},"OnboardingStartResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"domain_id":{"type":"string","title":"Domain Id"},"user_id":{"type":"string","title":"User Id"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["session_id","domain_id","user_id","status","message"],"title":"OnboardingStartResponse"},"OnboardingStatusResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"domain_id":{"type":"string","title":"Domain Id"},"user_id":{"type":"string","title":"User Id"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"research_done":{"type":"boolean","title":"Research Done"},"research_steps":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Research Steps"},"recommended_objectives":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Recommended Objectives"},"selected_objectives":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Selected Objectives"},"execution_steps":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Execution Steps"},"done":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Done"}},"type":"object","required":["session_id","domain_id","user_id","status","research_done","research_steps"],"title":"OnboardingStatusResponse"},"OpenPageBody":{"properties":{"chat_id":{"type":"string","title":"Chat Id"},"page_ids":{"items":{"type":"string"},"type":"array","title":"Page Ids"}},"type":"object","required":["chat_id"],"title":"OpenPageBody"},"OpenPageItem":{"properties":{"page_id":{"type":"string","title":"Page Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"}},"type":"object","required":["page_id","slug","title"],"title":"OpenPageItem"},"OrgListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"OrgListItem","description":"Lightweight org for superuser org switcher."},"OrganizationResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description_data":{"additionalProperties":true,"type":"object","title":"Description Data"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"has_active_plan":{"type":"boolean","title":"Has Active Plan","default":false},"created_at":{"type":"string","title":"Created At"},"plan_limits":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Plan Limits"}},"type":"object","required":["id","name","description_data","created_at"],"title":"OrganizationResponse"},"OutboundDraftOut":{"properties":{"id":{"type":"string","title":"Id"},"thread_id":{"type":"string","title":"Thread Id"},"body":{"type":"string","title":"Body"},"kind":{"type":"string","title":"Kind"},"recipient_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Email"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"cc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cc"},"basis_message_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basis Message Ref"},"proposed_by":{"type":"string","title":"Proposed By"},"supersedes_draft_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supersedes Draft Id"},"revision_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Instruction"},"status":{"type":"string","title":"Status"},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By"},"approval_surface":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Surface"},"approved_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved Body"},"as_sent_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As Sent Text"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","thread_id","body","kind","proposed_by","status"],"title":"OutboundDraftOut"},"OutboundSendLogOut":{"properties":{"id":{"type":"string","title":"Id"},"draft_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Id"},"channel":{"type":"string","title":"Channel"},"seat":{"type":"string","title":"Seat"},"approver":{"type":"string","title":"Approver"},"surface":{"type":"string","title":"Surface"},"as_sent_text":{"type":"string","title":"As Sent Text"},"outcome":{"type":"string","title":"Outcome"},"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","channel","seat","approver","surface","as_sent_text","outcome"],"title":"OutboundSendLogOut"},"OutboundThreadDetail":{"properties":{"id":{"type":"string","title":"Id"},"channel":{"type":"string","title":"Channel"},"external_id":{"type":"string","title":"External Id"},"seat":{"type":"string","title":"Seat"},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign"},"lane":{"type":"string","title":"Lane","default":"gtm"},"lane_pinned":{"type":"boolean","title":"Lane Pinned","default":false},"status":{"type":"string","title":"Status"},"priority":{"type":"boolean","title":"Priority","default":false},"priority_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Reason"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"},"nudge_skipped_forever":{"type":"boolean","title":"Nudge Skipped Forever","default":false},"last_prospect_message_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Prospect Message At"},"last_our_message_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Our Message At"},"reply_required":{"type":"boolean","title":"Reply Required","default":false},"follow_up":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Follow Up"},"tag_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag By"},"slack_ping_ref":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Slack Ping Ref"},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"lead_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Title"},"lead_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Company"},"lead_profile_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Profile Url"},"lead_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Email"},"lead_enrichment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Lead Enrichment"},"commitment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Commitment"},"sending_mailbox":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sending Mailbox"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"latest_prospect_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Prospect Excerpt"},"latest_draft":{"anyOf":[{"$ref":"#/components/schemas/OutboundDraftOut"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"drafts":{"items":{"$ref":"#/components/schemas/OutboundDraftOut"},"type":"array","title":"Drafts","default":[]},"send_log":{"items":{"$ref":"#/components/schemas/OutboundSendLogOut"},"type":"array","title":"Send Log","default":[]}},"type":"object","required":["id","channel","external_id","seat","status"],"title":"OutboundThreadDetail"},"OutboundThreadListResponse":{"properties":{"threads":{"items":{"$ref":"#/components/schemas/OutboundThreadRow"},"type":"array","title":"Threads"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":50}},"type":"object","required":["threads","total"],"title":"OutboundThreadListResponse"},"OutboundThreadRow":{"properties":{"id":{"type":"string","title":"Id"},"channel":{"type":"string","title":"Channel"},"external_id":{"type":"string","title":"External Id"},"seat":{"type":"string","title":"Seat"},"campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign"},"lane":{"type":"string","title":"Lane","default":"gtm"},"lane_pinned":{"type":"boolean","title":"Lane Pinned","default":false},"status":{"type":"string","title":"Status"},"priority":{"type":"boolean","title":"Priority","default":false},"priority_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Reason"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"},"nudge_skipped_forever":{"type":"boolean","title":"Nudge Skipped Forever","default":false},"last_prospect_message_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Prospect Message At"},"last_our_message_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Our Message At"},"reply_required":{"type":"boolean","title":"Reply Required","default":false},"follow_up":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Follow Up"},"tag_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag By"},"slack_ping_ref":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Slack Ping Ref"},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"lead_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Title"},"lead_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Company"},"lead_profile_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Profile Url"},"lead_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Email"},"lead_enrichment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Lead Enrichment"},"commitment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Commitment"},"sending_mailbox":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sending Mailbox"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"latest_prospect_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Prospect Excerpt"},"latest_draft":{"anyOf":[{"$ref":"#/components/schemas/OutboundDraftOut"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","channel","external_id","seat","status"],"title":"OutboundThreadRow"},"OverviewAnalysisOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"competitor_snapshot":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Competitor Snapshot"},"market_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Summary"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"visibility_aggregate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Visibility Aggregate"},"visibility_narratives":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Visibility Narratives"},"executive_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Executive Summary"}},"type":"object","required":["id","status"],"title":"OverviewAnalysisOut"},"OverviewAnalysisSummaryOut":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"conversation_count":{"type":"integer","title":"Conversation Count","default":0}},"type":"object","required":["id","status"],"title":"OverviewAnalysisSummaryOut"},"PackageAccountState":{"properties":{"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"goals":{"items":{"$ref":"#/components/schemas/PackageGoalRef"},"type":"array","title":"Goals"},"narrative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narrative"}},"type":"object","title":"PackageAccountState","description":"The CURRENT account record the §A delta renders against — the original\nbeside every amendment, and the thing shown UNCHANGED when §A proposes\nnothing (absence stated, not silent)."},"PackageApplyModeRequest":{"properties":{"mode":{"type":"string","enum":["sandbox","live"],"title":"Mode"}},"type":"object","required":["mode"],"title":"PackageApplyModeRequest"},"PackageApplyRequest":{"properties":{"selection":{"$ref":"#/components/schemas/PackageSelection"}},"type":"object","required":["selection"],"title":"PackageApplyRequest"},"PackageBookTask":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"owner_side":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Side"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"due_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"priority_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Id"},"blocked":{"type":"boolean","title":"Blocked","default":false}},"type":"object","required":["id","title"],"title":"PackageBookTask","description":"One live book row — the task delta renders AGAINST this list (Keller's\n7/15 principle: \"impossible to decide the value of a single task if you\ndon't see the entire task list\")."},"PackageContactRef":{"properties":{"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},"type":"object","required":["name"],"title":"PackageContactRef","description":"The CURRENT book contact a stage-A event references — resolved so\ncontact.update targets and match_suspect_contact_id lines read as people\n(name + current fields), not UUIDs. Current values double as the\n\"before\" side of an update's field changes."},"PackageGoalRef":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"kind":{"type":"string","title":"Kind","default":"client_business_goal"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id"],"title":"PackageGoalRef"},"PackageInstructRequest":{"properties":{"stage":{"type":"string","enum":["a","b","c"],"title":"Stage"},"text":{"type":"string","title":"Text"}},"type":"object","required":["stage","text"],"title":"PackageInstructRequest"},"PackageKickoffRequest":{"properties":{"stage_b_index":{"type":"integer","title":"Stage B Index"},"kind":{"type":"string","enum":["analysis","report","investigation"],"title":"Kind"}},"type":"object","required":["stage_b_index","kind"],"title":"PackageKickoffRequest"},"PackageKillRequest":{"properties":{"events":{"items":{"$ref":"#/components/schemas/PackageSelectionRef"},"type":"array","title":"Events"},"undo":{"type":"boolean","title":"Undo","default":false}},"type":"object","required":["events"],"title":"PackageKillRequest"},"PackageMessagePatchRequest":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"recipients":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Recipients"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"channel":{"anyOf":[{"type":"string","enum":["slack","email"]},{"type":"null"}],"title":"Channel"}},"type":"object","title":"PackageMessagePatchRequest"},"PackagePriorityRef":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"}},"type":"object","required":["id","title"],"title":"PackagePriorityRef","description":"One live priority/initiative — the tasks gate's top-level grouping\nsections (redesign §4)."},"PackageRegenerateRequest":{"properties":{"stage":{"type":"string","enum":["a","b","c","narrative"],"title":"Stage"}},"type":"object","required":["stage"],"title":"PackageRegenerateRequest"},"PackageSelection":{"properties":{"all_valid":{"type":"boolean","title":"All Valid","default":false},"events":{"anyOf":[{"items":{"$ref":"#/components/schemas/PackageSelectionRef"},"type":"array"},{"type":"null"}],"title":"Events"}},"type":"object","title":"PackageSelection"},"PackageSelectionRef":{"properties":{"stage":{"type":"string","enum":["a","b"],"title":"Stage"},"index":{"type":"integer","title":"Index"},"resolution":{"anyOf":[{"type":"string","enum":["create","merge"]},{"type":"null"}],"title":"Resolution"}},"type":"object","required":["stage","index"],"title":"PackageSelectionRef"},"PackageStageCounts":{"properties":{"present":{"type":"boolean","title":"Present","default":false},"error":{"type":"boolean","title":"Error","default":false},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"events":{"type":"integer","title":"Events","default":0},"valid":{"type":"integer","title":"Valid","default":0},"invalid":{"type":"integer","title":"Invalid","default":0},"approved":{"type":"integer","title":"Approved","default":0},"killed":{"type":"integer","title":"Killed","default":0},"stale":{"type":"boolean","title":"Stale","default":false},"sent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sent"},"open_questions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Open Questions"},"observations":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Observations"}},"type":"object","title":"PackageStageCounts","description":"One stage's compact projection (post_call_package.package_summary)."},"PackageTaskRef":{"properties":{"title":{"type":"string","title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"owner_side":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Side"},"killed":{"type":"boolean","title":"Killed","default":false},"priority_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Id"}},"type":"object","required":["title"],"title":"PackageTaskRef","description":"The CURRENT book row a stage-B event targets — resolved so amend/close/\nskip/duplicate refs read as task titles, not UUIDs."},"PageFeedbackIn":{"properties":{"feedback":{"type":"string","minLength":1,"title":"Feedback"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"}},"type":"object","required":["feedback"],"title":"PageFeedbackIn"},"PaginatedPagesOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExternalPageOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"skip":{"type":"integer","title":"Skip"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["items","total","skip","limit"],"title":"PaginatedPagesOut"},"PatchBlocksRequest":{"properties":{"edits":{"items":{"$ref":"#/components/schemas/BlockEdit"},"type":"array","title":"Edits"}},"type":"object","required":["edits"],"title":"PatchBlocksRequest"},"PatchBlocksResponse":{"properties":{"id":{"type":"string","title":"Id"},"blocks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Blocks"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","default":[]},"flipped_block_ids":{"items":{"type":"string"},"type":"array","title":"Flipped Block Ids","default":[]},"edited_block_ids":{"items":{"type":"string"},"type":"array","title":"Edited Block Ids","default":[]}},"type":"object","required":["id","blocks"],"title":"PatchBlocksResponse"},"PatchSetCreateIn":{"properties":{"document_id":{"type":"string","title":"Document Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"markdown_content":{"type":"string","title":"Markdown Content"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"auto_apply":{"type":"boolean","title":"Auto Apply","default":false},"auto_publish":{"type":"boolean","title":"Auto Publish","default":false}},"type":"object","required":["document_id","markdown_content"],"title":"PatchSetCreateIn"},"PendingPageItem":{"properties":{"page_id":{"type":"string","format":"uuid","title":"Page Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"has_buffer":{"type":"boolean","title":"Has Buffer","default":false},"buffer_len":{"type":"integer","title":"Buffer Len","default":0},"base_len":{"type":"integer","title":"Base Len","default":0},"kind":{"type":"string","enum":["new","update"],"title":"Kind"},"effective_ts":{"type":"string","format":"date-time","title":"Effective Ts"}},"type":"object","required":["page_id","slug","title","status","created_at","updated_at","published_at","kind","effective_ts"],"title":"PendingPageItem"},"PendingPagesOut":{"properties":{"page_updates":{"items":{"$ref":"#/components/schemas/PendingPageItem"},"type":"array","title":"Page Updates"},"new_pages":{"items":{"$ref":"#/components/schemas/PendingPageItem"},"type":"array","title":"New Pages"}},"type":"object","title":"PendingPagesOut"},"PerformancePointOut":{"properties":{"ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ts"},"percent":{"type":"number","title":"Percent"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["percent","count"],"title":"PerformancePointOut"},"PerformanceSeriesByModelOut":{"properties":{"chatgpt":{"items":{"$ref":"#/components/schemas/PerformancePointOut"},"type":"array","title":"Chatgpt","default":[]},"gemini":{"items":{"$ref":"#/components/schemas/PerformancePointOut"},"type":"array","title":"Gemini","default":[]},"perplexity":{"items":{"$ref":"#/components/schemas/PerformancePointOut"},"type":"array","title":"Perplexity","default":[]}},"type":"object","title":"PerformanceSeriesByModelOut"},"PersonaAttributionOut":{"properties":{"persona":{"$ref":"#/components/schemas/_PersonaCore"},"visibilityHistory":{"items":{"$ref":"#/components/schemas/_ScorePoint"},"type":"array","title":"Visibilityhistory"},"alignmentHistory":{"items":{"$ref":"#/components/schemas/_ScorePoint"},"type":"array","title":"Alignmenthistory"},"competitorVisibilityHistory":{"anyOf":[{"items":{"$ref":"#/components/schemas/_CompetitorVisibilityPoint"},"type":"array"},{"type":"null"}],"title":"Competitorvisibilityhistory"},"buyingContexts":{"items":{"$ref":"#/components/schemas/_BuyingContextOut"},"type":"array","title":"Buyingcontexts"},"supportingContent":{"$ref":"#/components/schemas/_SupportingContentOut"},"narrative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narrative"}},"type":"object","required":["persona","visibilityHistory","alignmentHistory","competitorVisibilityHistory","buyingContexts","supportingContent"],"title":"PersonaAttributionOut"},"PersonaContextRefOut":{"properties":{"personaId":{"type":"string","title":"Personaid"},"contextId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contextid"}},"type":"object","required":["personaId"],"title":"PersonaContextRefOut","description":"Matches ``PersonaContextRef`` in the mockup."},"PlacementOut":{"properties":{"placement":{"type":"string","title":"Placement"},"status":{"type":"string","title":"Status"},"first_detected_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Detected At"},"last_detected_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Detected At"},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"wording":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wording"},"snippet":{"type":"string","title":"Snippet"}},"type":"object","required":["placement","status","snippet"],"title":"PlacementOut"},"PlanOut":{"properties":{"id":{"type":"string","title":"Id"},"stripe_price_id":{"type":"string","title":"Stripe Price Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"platform_fee_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Platform Fee Cents"},"currency":{"type":"string","title":"Currency"},"active_plan":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active Plan"},"limits":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Limits"},"can_pick_subdomain":{"type":"boolean","title":"Can Pick Subdomain","default":false},"custom_pricing":{"type":"boolean","title":"Custom Pricing","default":false},"overage_credit_price_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overage Credit Price Usd"}},"type":"object","required":["id","stripe_price_id","name","description","currency","active_plan"],"title":"PlanOut"},"PlaygroundAskOut":{"properties":{"answer":{"type":"string","title":"Answer"},"conversation_id":{"type":"string","title":"Conversation Id"},"question":{"type":"string","title":"Question"},"degraded":{"type":"boolean","title":"Degraded","default":false},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"allowance_used":{"type":"integer","title":"Allowance Used"},"allowance_limit":{"type":"integer","title":"Allowance Limit"},"allowance_resets_in_seconds":{"type":"integer","title":"Allowance Resets In Seconds"},"allowance_measured":{"type":"boolean","title":"Allowance Measured","default":true}},"type":"object","required":["answer","conversation_id","question","allowance_used","allowance_limit","allowance_resets_in_seconds"],"title":"PlaygroundAskOut"},"PlaygroundAskRequest":{"properties":{"question":{"type":"string","maxLength":4000,"minLength":1,"title":"Question"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"}},"type":"object","required":["question"],"title":"PlaygroundAskRequest"},"PlaygroundSuggestionsOut":{"properties":{"questions":{"items":{"type":"string"},"type":"array","title":"Questions"},"generated":{"type":"boolean","title":"Generated"},"knowledge_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Knowledge Version"},"allowance_used":{"type":"integer","title":"Allowance Used"},"allowance_limit":{"type":"integer","title":"Allowance Limit"},"allowance_measured":{"type":"boolean","title":"Allowance Measured","default":true}},"type":"object","required":["questions","generated","allowance_used","allowance_limit"],"title":"PlaygroundSuggestionsOut"},"PostCallPackageDetail":{"properties":{"row":{"$ref":"#/components/schemas/PostCallPackageRow"},"package":{"additionalProperties":true,"type":"object","title":"Package"},"task_refs":{"additionalProperties":{"$ref":"#/components/schemas/PackageTaskRef"},"type":"object","title":"Task Refs"},"contact_refs":{"additionalProperties":{"$ref":"#/components/schemas/PackageContactRef"},"type":"object","title":"Contact Refs"},"bulk_approvable":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Bulk Approvable"},"open_tasks":{"items":{"$ref":"#/components/schemas/PackageBookTask"},"type":"array","title":"Open Tasks"},"open_tasks_omitted":{"type":"integer","title":"Open Tasks Omitted","default":0},"priorities":{"items":{"$ref":"#/components/schemas/PackagePriorityRef"},"type":"array","title":"Priorities"},"account_state":{"anyOf":[{"$ref":"#/components/schemas/PackageAccountState"},{"type":"null"}]},"meeting_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Title"},"call_started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Started At"},"apply_result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Apply Result"}},"type":"object","required":["row","package","task_refs"],"title":"PostCallPackageDetail"},"PostCallPackageListResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/PostCallPackageRow"},"type":"array","title":"Rows"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["rows","total"],"title":"PostCallPackageListResponse"},"PostCallPackageRow":{"properties":{"doc_id":{"type":"string","title":"Doc Id"},"title":{"type":"string","title":"Title"},"display_title":{"type":"string","title":"Display Title","default":""},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"doc_created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Created At"},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"call_type_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type Confidence"},"error":{"type":"boolean","title":"Error","default":false},"apply_mode":{"type":"string","title":"Apply Mode","default":"sandbox"},"stage_a":{"$ref":"#/components/schemas/PackageStageCounts"},"stage_b":{"$ref":"#/components/schemas/PackageStageCounts"},"stage_c":{"$ref":"#/components/schemas/PackageStageCounts"},"narrative_present":{"type":"boolean","title":"Narrative Present","default":false},"narrative_error":{"type":"boolean","title":"Narrative Error","default":false}},"type":"object","required":["doc_id","title","stage_a","stage_b","stage_c"],"title":"PostCallPackageRow"},"PredictCostRequest":{"properties":{"kind":{"type":"string","title":"Kind","default":"simulation"},"panel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Panel Id"},"baseline_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Run Id"},"baseline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Id"},"target_competitors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Competitors"},"target_scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Scopes"},"matchups":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Matchups"},"free_text_count":{"type":"integer","title":"Free Text Count","default":0},"trials":{"type":"integer","title":"Trials","default":3},"strength":{"type":"string","title":"Strength","default":"low"},"strategy_count":{"type":"integer","title":"Strategy Count","default":0},"content_count":{"type":"integer","title":"Content Count","default":0},"subject_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Url"}},"type":"object","title":"PredictCostRequest"},"PreviewIn":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"markdown_content":{"type":"string","title":"Markdown Content"},"page_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Type"}},"type":"object","required":["slug","title","markdown_content"],"title":"PreviewIn"},"PriorityAttributionOut":{"properties":{"priority":{"$ref":"#/components/schemas/_PriorityCore"},"evidenceTier":{"type":"string","title":"Evidencetier"},"echoes":{"items":{"$ref":"#/components/schemas/_EchoOut"},"type":"array","title":"Echoes"},"counterexamples":{"items":{"$ref":"#/components/schemas/_EchoOut"},"type":"array","title":"Counterexamples"},"supportingContent":{"$ref":"#/components/schemas/_SupportingContentOut"},"narrative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Narrative"}},"type":"object","required":["priority","evidenceTier","echoes","counterexamples","supportingContent"],"title":"PriorityAttributionOut"},"PriorityBriefOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"dimension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension"}},"type":"object","required":["id","title"],"title":"PriorityBriefOut","description":"Compact priority info embedded in TaskWithPriorityOut."},"PriorityCreateRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"insight":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Insight"},"why_it_matters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters"},"dimension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"products":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Products"}},"type":"object","required":["title"],"title":"PriorityCreateRequest"},"PriorityOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"insight":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Insight"},"why_it_matters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters"},"dimension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension"},"disposition":{"type":"string","title":"Disposition"},"status":{"type":"string","title":"Status"},"audience":{"type":"string","title":"Audience","default":"both"},"products":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Products"},"killed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Killed At"},"dismissed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dismissed At"},"urgency":{"type":"string","title":"Urgency","default":"normal"},"seen_again_count":{"type":"integer","title":"Seen Again Count"},"source_analysis_report_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Analysis Report Id"},"source_priority_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Priority Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"tasks":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__priorities__TaskOut"},"type":"array","title":"Tasks","default":[]},"suggested_tasks":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__priorities__TaskOut"},"type":"array","title":"Suggested Tasks","default":[]},"buyer_agents":{"items":{"$ref":"#/components/schemas/BuyerAgentLinkOut"},"type":"array","title":"Buyer Agents","default":[]}},"type":"object","required":["id","title","disposition","status","seen_again_count"],"title":"PriorityOut"},"PriorityUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"insight":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Insight"},"why_it_matters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters"},"dimension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"products":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Products"}},"type":"object","title":"PriorityUpdateRequest"},"ProbeCreateIn":{"properties":{"question_text":{"type":"string","minLength":3,"title":"Question Text"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"template_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template String"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"rubric":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rubric"},"objective_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Objective Ids"},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},"type":"object","required":["question_text"],"title":"ProbeCreateIn"},"ProbeCreateOut":{"properties":{"id":{"type":"string","title":"Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},"type":"object","required":["id"],"title":"ProbeCreateOut"},"ProbeExecutionOut":{"properties":{"id":{"type":"string","title":"Id"},"probe_id":{"type":"string","title":"Probe Id"},"model":{"type":"string","title":"Model"},"executed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Executed At"},"duration_sec":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Sec"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"response_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Text"},"search_queries":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"},{"type":"null"}],"title":"Search Queries"},"reasoning":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Reasoning"},"citations":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"},{"type":"null"}],"title":"Citations"},"usage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Usage"},"question_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Text"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"objective_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective Id"},"rendered_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rendered Markdown"},"tags":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tags"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"wow_delta":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wow Delta"},"score_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Score Updated At"}},"type":"object","required":["id","probe_id","model"],"title":"ProbeExecutionOut"},"ProbeExecutionQueryOut":{"properties":{"search_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Id"},"results":{"items":{"$ref":"#/components/schemas/ProbeExecutionOut"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"ProbeExecutionQueryOut"},"ProbeOut":{"properties":{"id":{"type":"string","title":"Id"},"question_text":{"type":"string","title":"Question Text"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"probe_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Template Id"},"template_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template String"},"pack_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack Name"},"tags":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tags"},"rubric":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rubric"}},"type":"object","required":["id","question_text","status","created_at"],"title":"ProbeOut"},"ProbePreviewRequest":{"properties":{"template_string":{"type":"string","title":"Template String"},"business_schema":{"additionalProperties":true,"type":"object","title":"Business Schema"}},"type":"object","required":["template_string","business_schema"],"title":"ProbePreviewRequest"},"ProbeScoreOut":{"properties":{"probe_id":{"type":"string","title":"Probe Id"},"probe_execution_id":{"type":"string","title":"Probe Execution Id"},"question_text":{"type":"string","title":"Question Text"},"score":{"type":"integer","title":"Score"},"justification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Justification"},"model":{"type":"string","title":"Model"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["probe_id","probe_execution_id","question_text","score","model"],"title":"ProbeScoreOut"},"ProbeSearchOut":{"properties":{"id":{"type":"string","title":"Id"},"probe_id":{"type":"string","title":"Probe Id"},"model":{"type":"string","title":"Model"},"executed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Executed At"},"duration_sec":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Sec"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"question_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Text"}},"type":"object","required":["id","probe_id","model"],"title":"ProbeSearchOut"},"ProbeSearchResultOut":{"properties":{"search_id":{"type":"string","title":"Search Id"},"results":{"items":{"$ref":"#/components/schemas/ProbeExecutionOut"},"type":"array","title":"Results"}},"type":"object","required":["search_id","results"],"title":"ProbeSearchResultOut"},"ProbeTemplateIn":{"properties":{"template_string":{"type":"string","minLength":1,"title":"Template String"},"pack_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pack Name"}},"type":"object","required":["template_string"],"title":"ProbeTemplateIn"},"ProbeUpdateIn":{"properties":{"question_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Text"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"rubric":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rubric"}},"type":"object","title":"ProbeUpdateIn"},"ProductItem":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"ProductItem"},"ProductOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["id","name","position"],"title":"ProductOut"},"ProductsAndCompetitorsOut":{"properties":{"products":{"items":{"$ref":"#/components/schemas/DomainProductOut"},"type":"array","title":"Products"},"competitors":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__monitoring__CompetitorOut"},"type":"array","title":"Competitors"}},"type":"object","required":["products","competitors"],"title":"ProductsAndCompetitorsOut"},"ProgressEvent":{"properties":{"ts":{"type":"string","title":"Ts"},"type":{"type":"string","title":"Type"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["ts","type","data"],"title":"ProgressEvent"},"PromoteProbeRequest":{"properties":{"baseline_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Run Id"},"baseline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Id"},"situation_id":{"type":"string","title":"Situation Id"},"scope_kind":{"type":"string","title":"Scope Kind","default":"use_case"},"scope_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Label"}},"type":"object","required":["situation_id"],"title":"PromoteProbeRequest"},"PromptOut":{"properties":{"name":{"type":"string","title":"Name"},"content":{"type":"string","title":"Content"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["name","content"],"title":"PromptOut"},"ProposalCreate":{"properties":{"kind":{"type":"string","title":"Kind","description":"\"creation\" or \"edit\""},"chat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Id"},"user_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Message Id"},"assistant_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assistant Message Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"proposed_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed Markdown"},"target_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"anchor_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anchor Text"},"new_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Text"},"new_meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Meta Description"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["kind"],"title":"ProposalCreate"},"ProposalGenerate":{"properties":{"strategy_text":{"type":"string","minLength":1,"title":"Strategy Text"}},"type":"object","required":["strategy_text"],"title":"ProposalGenerate"},"ProposalRefine":{"properties":{"refinement_text":{"type":"string","minLength":1,"title":"Refinement Text"}},"type":"object","required":["refinement_text"],"title":"ProposalRefine"},"ProposalResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"domain_id":{"type":"string","format":"uuid","title":"Domain Id"},"kind":{"type":"string","title":"Kind"},"target_page_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Page Id"},"page_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Slug"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Description"},"proposed_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed Markdown"},"anchor_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anchor Text"},"new_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Text"},"new_meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Meta Description"},"revised_anchor_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Anchor Text"},"revised_new_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised New Text"},"revised_meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Meta Description"},"revised_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Markdown"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"status":{"type":"string","title":"Status"},"chat_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Chat Id"},"user_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Message Id"},"assistant_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assistant Message Id"},"before_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Before Version Id"},"after_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"After Version Id"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"created_at":{"anyOf":[{},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","domain_id","kind","target_page_id","page_slug","title","meta_description","proposed_markdown","anchor_text","new_text","new_meta_description","revised_anchor_text","revised_new_text","revised_meta_description","revised_markdown","summary","status","chat_id","user_message_id","assistant_message_id","before_version_id","after_version_id","created_by","cost","created_at","updated_at"],"title":"ProposalResponse"},"ProposalRevise":{"properties":{"revised_anchor_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Anchor Text"},"revised_new_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised New Text"},"revised_meta_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Meta Description"},"revised_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Markdown"}},"type":"object","title":"ProposalRevise"},"PublicReportAccessStatus":{"properties":{"domain":{"$ref":"#/components/schemas/PublicReportDomainSummary"},"access_granted":{"type":"boolean","title":"Access Granted"},"granted_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted Email"}},"type":"object","required":["domain","access_granted"],"title":"PublicReportAccessStatus"},"PublicReportDomainSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"host":{"type":"string","title":"Host"},"report_count":{"type":"integer","title":"Report Count"},"index_url":{"type":"string","title":"Index Url"}},"type":"object","required":["id","name","host","report_count","index_url"],"title":"PublicReportDomainSummary"},"PublicReportHistoryItem":{"properties":{"id":{"type":"string","title":"Id"},"overall_performance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overall Performance"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"report_url":{"type":"string","title":"Report Url"}},"type":"object","required":["id","report_url"],"title":"PublicReportHistoryItem"},"PublicReportPayload":{"properties":{"version":{"type":"string","title":"Version"},"id":{"type":"string","title":"Id"},"domain_id":{"type":"string","title":"Domain Id"},"company_name":{"type":"string","title":"Company Name"},"report_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Date"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"previous_report_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Report Id"},"index_url":{"type":"string","title":"Index Url"},"report_url":{"type":"string","title":"Report Url"},"body_markdown":{"type":"string","title":"Body Markdown"},"structured_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Data"}},"type":"object","required":["version","id","domain_id","company_name","index_url","report_url","body_markdown"],"title":"PublicReportPayload"},"PublishResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At"},"published_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published By"},"via_gate":{"type":"boolean","title":"Via Gate","default":false}},"type":"object","required":["id","status"],"title":"PublishResponse"},"QueriesListOut":{"properties":{"queries":{"items":{"$ref":"#/components/schemas/QueryOut"},"type":"array","title":"Queries"}},"type":"object","required":["queries"],"title":"QueriesListOut"},"QueryArtifactOut":{"properties":{"artifact_id":{"type":"string","title":"Artifact Id"},"filename":{"type":"string","title":"Filename"},"kind":{"type":"string","title":"Kind"},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"}},"type":"object","required":["artifact_id","filename","kind"],"title":"QueryArtifactOut"},"QueryOut":{"properties":{"id":{"type":"string","title":"Id"},"question":{"type":"string","title":"Question"},"status":{"type":"string","title":"Status"},"response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"research_chat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Research Chat Id"},"artifacts":{"items":{"$ref":"#/components/schemas/QueryArtifactOut"},"type":"array","title":"Artifacts","default":[]}},"type":"object","required":["id","question","status","created_at"],"title":"QueryOut"},"QueryResponse":{"properties":{"query_id":{"type":"string","title":"Query Id"},"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"chat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Id"}},"type":"object","required":["query_id","job_id","status"],"title":"QueryResponse"},"QuoteOut":{"properties":{"model":{"type":"string","title":"Model"},"quote":{"type":"string","title":"Quote"},"driver":{"type":"string","title":"Driver"}},"type":"object","required":["model","quote","driver"],"title":"QuoteOut"},"RebuildMediaStoreIn":{"properties":{"replace":{"type":"boolean","title":"Replace","default":true},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},"type":"object","title":"RebuildMediaStoreIn"},"RebuildProbeStoreIn":{"properties":{"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"replace":{"type":"boolean","title":"Replace","default":true},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},"type":"object","title":"RebuildProbeStoreIn"},"RecentSessionEntry":{"properties":{"email":{"type":"string","title":"Email"},"person_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Name"},"duration_seconds":{"type":"number","title":"Duration Seconds"},"start_time":{"type":"string","title":"Start Time"},"recording_url":{"type":"string","title":"Recording Url"}},"type":"object","required":["email","duration_seconds","start_time","recording_url"],"title":"RecentSessionEntry"},"RecentSessionsResponse":{"properties":{"sessions":{"items":{"$ref":"#/components/schemas/RecentSessionEntry"},"type":"array","title":"Sessions"},"has_next":{"type":"boolean","title":"Has Next","default":false},"next_offset":{"type":"integer","title":"Next Offset","default":0}},"type":"object","required":["sessions"],"title":"RecentSessionsResponse"},"RecommendedObjective":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["name","description"],"title":"RecommendedObjective"},"RecomputeBaselineRequest":{"properties":{"rebuild_boundary_schema":{"type":"boolean","title":"Rebuild Boundary Schema","default":false}},"type":"object","title":"RecomputeBaselineRequest"},"RecrawlQueued":{"properties":{"status":{"type":"string","const":"queued","title":"Status","default":"queued"},"detail":{"type":"string","title":"Detail"},"page":{"anyOf":[{"$ref":"#/components/schemas/CrawlLedgerPageOut"},{"type":"null"}]}},"type":"object","required":["detail"],"title":"RecrawlQueued"},"RedraftRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"new_body":{"type":"string","title":"New Body"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"}},"type":"object","required":["draft_id","new_body"],"title":"RedraftRequest"},"RefreshRequest":{"properties":{"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"}},"type":"object","title":"RefreshRequest"},"RegisterDatasetRequest":{"properties":{"name":{"type":"string","title":"Name"},"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows"},"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schema"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"provenance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provenance"},"supersedes_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supersedes Id"}},"type":"object","required":["name","rows"],"title":"RegisterDatasetRequest"},"RejectRequest":{"properties":{"notes":{"type":"string","title":"Notes"}},"type":"object","required":["notes"],"title":"RejectRequest"},"ReportDetail":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"status":{"type":"string","title":"Status"},"lifecycle":{"type":"string","title":"Lifecycle","default":"deliverable"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"produced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Produced By"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At"},"supersedes_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supersedes Id"},"superseded_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Superseded By Id"},"schema_version":{"type":"integer","title":"Schema Version","default":1},"blocks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Blocks","default":[]},"changes_vs_prior":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Changes Vs Prior"},"provenance":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provenance"},"content_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Text"}},"type":"object","required":["id","title","status"],"title":"ReportDetail"},"ReportListItem":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype"},"status":{"type":"string","title":"Status"},"lifecycle":{"type":"string","title":"Lifecycle","default":"deliverable"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"produced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Produced By"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At"},"supersedes_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supersedes Id"}},"type":"object","required":["id","title","status"],"title":"ReportListItem"},"ReportLocation":{"properties":{"report_id":{"type":"string","title":"Report Id"},"domain_id":{"type":"string","title":"Domain Id"}},"type":"object","required":["report_id","domain_id"],"title":"ReportLocation"},"RequestAnalysisRequest":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"RequestAnalysisRequest"},"RequestSimulationRequest":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"baseline_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Run Id"}},"type":"object","title":"RequestSimulationRequest"},"RerunBaselineRequest":{"properties":{"allow_stale_panel":{"type":"boolean","title":"Allow Stale Panel","default":false}},"type":"object","title":"RerunBaselineRequest"},"RescoreResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"RescoreResponse"},"ResearchInsightOut":{"properties":{"type":{"type":"string","title":"Type"},"text":{"type":"string","title":"Text"}},"type":"object","required":["type","text"],"title":"ResearchInsightOut"},"ResearchRowScoresResponse":{"properties":{"row_id":{"type":"string","title":"Row Id"},"status":{"type":"string","title":"Status"},"competitor_scores":{"items":{"$ref":"#/components/schemas/ResearchScoreOut"},"type":"array","title":"Competitor Scores"}},"type":"object","required":["row_id","status","competitor_scores"],"title":"ResearchRowScoresResponse"},"ResearchRunDetailOut":{"properties":{"id":{"type":"string","title":"Id"},"competitor_id":{"type":"string","title":"Competitor Id"},"competitor_name":{"type":"string","title":"Competitor Name"},"model":{"type":"string","title":"Model"},"status":{"type":"string","title":"Status"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"competitor_scores":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Competitor Scores"},"insights":{"items":{"$ref":"#/components/schemas/ResearchInsightOut"},"type":"array","title":"Insights","default":[]},"turns":{"items":{"$ref":"#/components/schemas/ResearchTurnDetailOut"},"type":"array","title":"Turns","default":[]},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","competitor_id","competitor_name","model","status","created_at"],"title":"ResearchRunDetailOut"},"ResearchRunOut":{"properties":{"id":{"type":"string","title":"Id"},"model":{"type":"string","title":"Model"},"status":{"type":"string","title":"Status"},"overall_assessment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overall Assessment"},"turns":{"items":{"$ref":"#/components/schemas/ResearchTurnOut"},"type":"array","title":"Turns","default":[]},"created_at":{"type":"string","title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","model","status","created_at"],"title":"ResearchRunOut"},"ResearchRunResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"ResearchRunResponse"},"ResearchScoreOut":{"properties":{"competitor_id":{"type":"string","title":"Competitor Id"},"competitor_name":{"type":"string","title":"Competitor Name"},"status":{"type":"string","title":"Status"},"scores":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"object","title":"Scores"},"average_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Average Score"},"reasoning_by_model":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Reasoning By Model","default":{}}},"type":"object","required":["competitor_id","competitor_name","status","scores"],"title":"ResearchScoreOut"},"ResearchTurnDetailOut":{"properties":{"turn_number":{"type":"integer","title":"Turn Number"},"question":{"type":"string","title":"Question"},"response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response"},"citations":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Citations","default":[]},"duration_sec":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Sec"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"}},"type":"object","required":["turn_number","question"],"title":"ResearchTurnDetailOut"},"ResearchTurnOut":{"properties":{"turn_number":{"type":"integer","title":"Turn Number"},"question":{"type":"string","title":"Question"},"response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response"},"citations":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Citations","default":[]},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"},"duration_sec":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Sec"}},"type":"object","required":["turn_number","question"],"title":"ResearchTurnOut"},"ReservationReleaseRequest":{"properties":{"provider_charge_confirmed_absent":{"type":"boolean","title":"Provider Charge Confirmed Absent"},"review_note":{"type":"string","maxLength":1900,"minLength":20,"title":"Review Note"}},"type":"object","required":["provider_charge_confirmed_absent","review_note"],"title":"ReservationReleaseRequest"},"ResetPasswordBody":{"properties":{"password":{"type":"string","title":"Password"},"sign_in":{"type":"boolean","title":"Sign In","default":false}},"type":"object","required":["password"],"title":"ResetPasswordBody"},"RestrictScopeRequest":{"properties":{"scope_key":{"type":"string","title":"Scope Key"},"competitors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitors"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","required":["scope_key"],"title":"RestrictScopeRequest"},"ReviewOut":{"properties":{"id":{"type":"string","title":"Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"answer_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Page Id"},"question_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Text"},"answer_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Excerpt"},"verdict":{"type":"string","title":"Verdict"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"source":{"type":"string","title":"Source"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"status":{"type":"string","title":"Status"},"incorporated_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incorporated Version Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","verdict","source","status"],"title":"ReviewOut"},"RowCreate":{"properties":{"label":{"type":"string","title":"Label"},"selections":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Selections"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"competitor_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitor Ids"},"competitive_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitive Product Ids"}},"type":"object","required":["label"],"title":"RowCreate"},"RowScoreTimeSeriesOut":{"properties":{"row_id":{"type":"string","title":"Row Id"},"model":{"type":"string","title":"Model"},"competitors":{"items":{"$ref":"#/components/schemas/CompetitorTimeSeries"},"type":"array","title":"Competitors"}},"type":"object","required":["row_id","model","competitors"],"title":"RowScoreTimeSeriesOut"},"RowScoresV2HistoricalOut":{"properties":{"row_id":{"type":"string","title":"Row Id"},"row_label":{"type":"string","title":"Row Label"},"date":{"type":"string","title":"Date"},"models":{"items":{"$ref":"#/components/schemas/ModelScoresV2Historical"},"type":"array","title":"Models"}},"type":"object","required":["row_id","row_label","date","models"],"title":"RowScoresV2HistoricalOut"},"RowsCreateBulk":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/RowCreate"},"type":"array","title":"Rows"}},"type":"object","required":["rows"],"title":"RowsCreateBulk"},"RuleTypeOut":{"properties":{"signal_type":{"type":"string","title":"Signal Type"},"rule":{"type":"string","title":"Rule"}},"type":"object","required":["signal_type","rule"],"title":"RuleTypeOut"},"RunAllProbesIn":{"properties":{"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"concurrency":{"type":"integer","title":"Concurrency","default":8},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"},"sample_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample K"}},"type":"object","title":"RunAllProbesIn"},"RunAnalysisResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","run_id","status"],"title":"RunAnalysisResponse"},"RunDateOut":{"properties":{"date":{"type":"string","title":"Date"},"datetime_utc":{"type":"string","title":"Datetime Utc"}},"type":"object","required":["date","datetime_utc"],"title":"RunDateOut"},"RunDetailOut":{"properties":{"run_ref":{"type":"string","title":"Run Ref"},"source":{"type":"string","title":"Source"},"run_type":{"type":"string","title":"Run Type"},"run_type_label":{"type":"string","title":"Run Type Label"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"subject_kind":{"type":"string","title":"Subject Kind"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"},"domain_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Host"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"started":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started"},"completed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"cancel_requested_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Requested At"},"routine_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routine Run Id"},"investigation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investigation Id"},"investigation_question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investigation Question"},"steps":{"items":{"$ref":"#/components/schemas/RunOut"},"type":"array","title":"Steps"},"params":{"anyOf":[{},{"type":"null"}],"title":"Params"},"output":{"anyOf":[{},{"type":"null"}],"title":"Output"},"backing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Backing"},"stages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Stages"},"lineage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Lineage"},"should_run_result":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Should Run Result"},"eval_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Eval Score"}},"type":"object","required":["run_ref","source","run_type","run_type_label","subject_kind"],"title":"RunDetailOut","description":"The per-run drill-in: the list row plus params, a COARSE stage list (NOT\nan event log — Temporal's replay/call-stack is out of scope), outputs, the\nbacking-row glance, and the lineage pointer (the previous comparable run)."},"RunDomainAnalysisIn":{"properties":{"sample_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample K"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},"type":"object","title":"RunDomainAnalysisIn"},"RunEvaluationResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"RunEvaluationResponse"},"RunEvent":{"properties":{"ts":{"type":"string","title":"Ts"},"type":{"type":"string","title":"Type"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["ts","type"],"title":"RunEvent"},"RunGoalResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"RunGoalResponse"},"RunLaneBody":{"properties":{"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"}},"type":"object","title":"RunLaneBody"},"RunListOut":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/InfluentialMediaRunOut"},"type":"array","title":"Runs"}},"type":"object","required":["runs"],"title":"RunListOut"},"RunListResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/RunOut"},"type":"array","title":"Runs"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":25}},"type":"object","required":["runs","total"],"title":"RunListResponse"},"RunObjectiveBody":{"properties":{"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"skip_probe_refresh":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip Probe Refresh"},"skip_probe_rescore":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip Probe Rescore"}},"type":"object","title":"RunObjectiveBody"},"RunOut":{"properties":{"run_ref":{"type":"string","title":"Run Ref"},"source":{"type":"string","title":"Source"},"run_type":{"type":"string","title":"Run Type"},"run_type_label":{"type":"string","title":"Run Type Label"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"subject_kind":{"type":"string","title":"Subject Kind"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"},"domain_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Host"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"started":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started"},"completed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"cancel_requested_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Requested At"},"routine_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routine Run Id"},"investigation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investigation Id"},"investigation_question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Investigation Question"},"steps":{"items":{"$ref":"#/components/schemas/RunOut"},"type":"array","title":"Steps"}},"type":"object","required":["run_ref","source","run_type","run_type_label","subject_kind"],"title":"RunOut","description":"Unified, cross-table run summary (the list row). Carries a derived\n``run_type`` (machine key) + ``run_type_label`` (prominent display), a\nderived subject (account the run is about), and the derived ``duration_seconds``\n/ ``cost`` the backing serializer does not (``serialize_run`` carries\nneither)."},"RunProbeRequest":{"properties":{"question":{"type":"string","title":"Question"},"trials":{"type":"integer","title":"Trials","default":1}},"type":"object","required":["question"],"title":"RunProbeRequest"},"RunRowResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"RunRowResponse"},"SWNarrativeOut":{"properties":{"soundbite":{"type":"string","title":"Soundbite"},"description":{"type":"string","title":"Description","default":""},"channels":{"items":{"type":"string"},"type":"array","title":"Channels","default":[]},"example_urls":{"items":{"type":"string"},"type":"array","title":"Example Urls","default":[]}},"type":"object","required":["soundbite"],"title":"SWNarrativeOut"},"SaveAgentPromptRequest":{"properties":{"content":{"type":"string","maxLength":60000,"title":"Content"}},"type":"object","required":["content"],"title":"SaveAgentPromptRequest"},"SaveDashboardRequest":{"properties":{"title":{"type":"string","title":"Title"},"source":{"type":"string","title":"Source"},"slot":{"type":"string","title":"Slot","default":"home"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"supersedes_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supersedes Id"}},"type":"object","required":["title","source"],"title":"SaveDashboardRequest"},"SaveInitialObjectivesRequest":{"properties":{"objectives":{"items":{"$ref":"#/components/schemas/SuggestedObjective"},"type":"array","title":"Objectives"}},"type":"object","required":["objectives"],"title":"SaveInitialObjectivesRequest"},"SaveInitialObjectivesResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"objective_ids":{"items":{"type":"string"},"type":"array","title":"Objective Ids"}},"type":"object","required":["task_id","objective_ids"],"title":"SaveInitialObjectivesResponse"},"SaveViewRequest":{"properties":{"entity":{"type":"string","title":"Entity"},"name":{"type":"string","title":"Name"},"spec":{"additionalProperties":true,"type":"object","title":"Spec"},"shared":{"type":"boolean","title":"Shared","default":false}},"type":"object","required":["entity","name"],"title":"SaveViewRequest"},"SavedSearchOut":{"properties":{"id":{"type":"string","title":"Id"},"query":{"type":"string","title":"Query"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["id","query","count"],"title":"SavedSearchOut"},"ScoreTimePoint":{"properties":{"ts":{"type":"string","title":"Ts"},"score":{"type":"integer","title":"Score"}},"type":"object","required":["ts","score"],"title":"ScoreTimePoint"},"ScreenArtifactRequest":{"properties":{"page":{"additionalProperties":true,"type":"object","title":"Page"},"queries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Queries"},"baseline_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Run Id"},"baseline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Id"},"target_scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Target Scopes"},"target_tool":{"type":"string","title":"Target Tool","default":"exa"}},"type":"object","required":["page"],"title":"ScreenArtifactRequest"},"SetChannelRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"channel":{"type":"string","title":"Channel"},"recipient_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Email"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"cc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cc"}},"type":"object","required":["draft_id","channel"],"title":"SetChannelRequest","description":"Switch THE message's transport: in_thread ↔ direct_email. Envelope\nfields feed the direct_email side; anything still missing 400s with\nwhat's needed."},"SetDeskWebhookRequest":{"properties":{"webhook_url":{"type":"string","title":"Webhook Url"}},"type":"object","required":["webhook_url"],"title":"SetDeskWebhookRequest"},"SetEmailDigestRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SetEmailDigestRequest"},"SetGithubLoginRequest":{"properties":{"github_login":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Login"},"internal_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internal User Id"}},"type":"object","title":"SetGithubLoginRequest"},"SetLaneRequest":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},"type":"object","required":["thread_id"],"title":"SetLaneRequest","description":"Pin (or clear) a thread's lane — the correction path for a wrong\ntriage call, and the only way to lane organic candidate DMs by hand."},"SetTagRequest":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},"type":"object","required":["thread_id"],"title":"SetTagRequest","description":"The operator's read of the lead — beats triage's, which never overwrites\nit. ``tag=None`` hands the tag back to triage."},"SetupHostingRequest":{"properties":{"subdomain":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","title":"Subdomain","default":"agents"}},"type":"object","title":"SetupHostingRequest"},"SetupInstructionsEmailIn":{"properties":{"to_email":{"type":"string","maxLength":254,"title":"To Email"},"snippet_format":{"type":"string","enum":["visible","llms-txt","sitemap","agents-md","script","meta"],"title":"Snippet Format","default":"visible"},"footer_wording":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Wording"}},"type":"object","required":["to_email"],"title":"SetupInstructionsEmailIn","description":"The ONLY thing a caller may supply is an address.\n\nNo subject, no body, no attachment, no reply-to. The template is rendered from the\ndesk's own records — see `backend/agent_desk/setup_instructions_email.py` for why\nthat fixed shape IS the security model, and why adding a free-text field here\nre-opens the abuse surface this endpoint was designed to close."},"SetupInstructionsEmailOut":{"properties":{"sent":{"type":"boolean","title":"Sent"},"to_email":{"type":"string","title":"To Email"},"included_records":{"type":"integer","title":"Included Records"},"included_snippet":{"type":"boolean","title":"Included Snippet"},"sends_left_today":{"type":"integer","title":"Sends Left Today"}},"type":"object","required":["sent","to_email","included_records","included_snippet","sends_left_today"],"title":"SetupInstructionsEmailOut"},"ShareCallRequest":{"properties":{"media":{"type":"string","enum":["video","audio"],"title":"Media","default":"video"},"gate":{"type":"string","enum":["open","email","email_domains"],"title":"Gate","default":"open"},"allowed_domains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Domains"},"expires_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires Days"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"skip_attendee_check":{"type":"boolean","title":"Skip Attendee Check","default":false}},"additionalProperties":false,"type":"object","title":"ShareCallRequest","description":"Mint a stable external share for a call's archived media — the same\nlane as the ``get_recording_share_link`` MCP tool, exposed on the kind's\nown staff surface. ``extra=\"forbid\"``: unknown keys rejected loudly."},"ShareLinkRequest":{"properties":{"gate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate"},"allowed_domains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Domains"},"expires_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires Days"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","title":"ShareLinkRequest"},"ShareLinkResponse":{"properties":{"url":{"type":"string","title":"Url"},"expires_in_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In Days"},"gate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate"},"revocable":{"type":"boolean","title":"Revocable","default":false}},"type":"object","required":["url","expires_in_days"],"title":"ShareLinkResponse"},"ShareRequest":{"properties":{"passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Passphrase"},"expires_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires Days"}},"type":"object","title":"ShareRequest"},"SignupCostAccountOut":{"properties":{"domain_id":{"type":"string","title":"Domain Id"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"signed_up_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Up At"},"paid":{"type":"boolean","title":"Paid","default":false},"crawl_runs":{"type":"integer","title":"Crawl Runs","default":0},"crawl_pages_classified":{"type":"integer","title":"Crawl Pages Classified","default":0},"crawl_input_tokens":{"type":"integer","title":"Crawl Input Tokens","default":0},"crawl_output_tokens":{"type":"integer","title":"Crawl Output Tokens","default":0},"crawl_cost_usd":{"type":"number","title":"Crawl Cost Usd","default":0.0},"ledger_calls":{"type":"integer","title":"Ledger Calls","default":0},"ledger_input_tokens":{"type":"integer","title":"Ledger Input Tokens","default":0},"ledger_output_tokens":{"type":"integer","title":"Ledger Output Tokens","default":0},"ledger_cost_usd":{"type":"number","title":"Ledger Cost Usd","default":0.0},"total_cost_usd":{"type":"number","title":"Total Cost Usd","default":0.0}},"type":"object","required":["domain_id"],"title":"SignupCostAccountOut","description":"One self-serve signup's model spend since it signed up."},"SignupCostModelOut":{"properties":{"formula":{"type":"string","title":"Formula","default":"total_cost_usd = crawl_cost_usd + ledger_cost_usd. crawl_cost_usd prices desk_crawl_run token sums at READ time (retrieval/config.llm_cost_usd); ledger_cost_usd is SUM(llm_api_call.cost) for the domain, priced when each call ran."},"scope":{"type":"string","title":"Scope","default":"Self-serve desk domains (workspace_mode=agentdesk AND account.intro_source=self_serve) whose account was created inside the window. Spend is counted from signup with no end bound — the question is what the signup has cost, not what it cost in a calendar week."},"known_gaps":{"type":"string","title":"Known Gaps","default":"A FLOOR, in two directions. (1) Content-system onboarding — page summaries and the starter Knowledge Document compile — writes no llm_api_call row, so its model spend is invisible here. (2) The ledger is fire-and-forget: a lost write costs an answer nothing and this number a little. Neither gap can make the figure too HIGH."},"no_double_count":{"type":"string","title":"No Double Count","default":"The crawler's tier classifier writes desk_crawl_run only; the answer path writes llm_api_call (plus per-message aggregates this panel does not read). Every dollar is counted once."}},"type":"object","title":"SignupCostModelOut","description":"How these dollars came to exist, and what they leave out."},"SignupCostTotalsOut":{"properties":{"signups":{"type":"integer","title":"Signups","default":0},"paid_signups":{"type":"integer","title":"Paid Signups","default":0},"total_cost_usd":{"type":"number","title":"Total Cost Usd","default":0.0},"mean_cost_per_signup_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Cost Per Signup Usd"},"max_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Cost Usd"},"unpaid_cost_usd":{"type":"number","title":"Unpaid Cost Usd","default":0.0}},"type":"object","title":"SignupCostTotalsOut"},"SignupCostsOut":{"properties":{"window":{"$ref":"#/components/schemas/CrawlerWindowOut"},"cost_model":{"$ref":"#/components/schemas/SignupCostModelOut"},"totals":{"$ref":"#/components/schemas/SignupCostTotalsOut"},"accounts":{"items":{"$ref":"#/components/schemas/SignupCostAccountOut"},"type":"array","title":"Accounts"},"total":{"type":"integer","title":"Total","default":0},"alert_threshold_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Threshold Usd"}},"type":"object","required":["window"],"title":"SignupCostsOut"},"SignupRequest":{"properties":{"email":{"type":"string","title":"Email"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Url"},"generated_pages_enabled":{"type":"boolean","title":"Generated Pages Enabled","default":true},"account_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Type"}},"type":"object","required":["email"],"title":"SignupRequest"},"SignupResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","message"],"title":"SignupResponse"},"SignupStart":{"properties":{"surface":{"type":"string","enum":["desk","analytics"],"title":"Surface","default":"desk"},"choose_account":{"type":"boolean","title":"Choose Account","default":false}},"additionalProperties":false,"type":"object","title":"SignupStart"},"SignupSurface":{"properties":{"surface":{"type":"string","enum":["desk","analytics"],"title":"Surface","default":"desk"}},"additionalProperties":false,"type":"object","title":"SignupSurface"},"SkipDraftRequest":{"properties":{"draft_id":{"type":"string","title":"Draft Id"}},"type":"object","required":["draft_id"],"title":"SkipDraftRequest"},"SkipDraftResponse":{"properties":{"skipped":{"type":"boolean","title":"Skipped"},"draft_id":{"type":"string","title":"Draft Id"},"thread_id":{"type":"string","title":"Thread Id"},"thread_status":{"type":"string","title":"Thread Status"},"nudge_skipped_forever":{"type":"boolean","title":"Nudge Skipped Forever"}},"type":"object","required":["skipped","draft_id","thread_id","thread_status","nudge_skipped_forever"],"title":"SkipDraftResponse"},"SlackInstallStateResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"connected":{"type":"boolean","title":"Connected"},"team_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Name"},"channel_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Label"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"installed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installed At"}},"type":"object","required":["available","connected"],"title":"SlackInstallStateResponse","description":"No secret ever rides this: workspace/channel display names only."},"SlackInstallUrlResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"SlackInstallUrlResponse"},"SlackNotificationConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"provider":{"type":"string","const":"slack","title":"Provider","default":"slack"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"channel_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Label"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"webhook_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Webhook Enabled"},"webhook_configured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Webhook Configured"},"webhook_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Hint"},"webhook_disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Disabled Reason"},"support_channel_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Support Channel Requested"}},"type":"object","required":["enabled"],"title":"SlackNotificationConfigResponse","description":"What the CLIENT is allowed to see.\n\nThe webhook fields are deliberately derived, not passed through: a Slack\nincoming-webhook URL is a post-anything-to-this-channel credential, so the\nresponse carries ``webhook_configured`` + a masked ``webhook_hint`` and never\nthe URL or its ciphertext. There is no read-back path for the secret — a\ncustomer who loses it pastes a new one.\n\nEvery AGENTDESK-OB(PR-J) field is optional-and-None-by-default so that a\nbot-channel-only config serializes byte-identically to what it did before\nthis lane existed (pinned by\n``test_serialize_slack_notification_config_returns_bot_only_shape``)."},"SlackNotificationConfigUpdate":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"provider":{"anyOf":[{"type":"string","const":"slack"},{"type":"null"}],"title":"Provider"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"channel_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Label"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}},"additionalProperties":false,"type":"object","title":"SlackNotificationConfigUpdate","description":"The customer-writable PATCH surface — the BOT CHANNEL LANE ONLY.\n\n``extra=\"forbid\"`` is the security property here, not a nicety: the webhook\nlane's URL is a credential and its failure counters are the input to the\nauto-disable decision, so neither may be settable through the general\n``PATCH /api/domains/{id}`` body. The webhook lane has its own endpoints\n(``/domains/{id}/agent-desk/notifications/*``) which validate the URL and own\nthe counters. AGENTDESK-OB(PR-J)."},"SlackSendResult":{"properties":{"ok":{"type":"boolean","title":"Ok"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","default":"slack"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"message_ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Ts"},"thread_ts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Ts"}},"type":"object","required":["ok"],"title":"SlackSendResult"},"StartBody":{"properties":{"surface":{"type":"string","title":"Surface"},"return_path":{"type":"string","maxLength":2048,"title":"Return Path","default":"/"},"choose_account":{"type":"boolean","title":"Choose Account","default":false},"provider":{"type":"string","enum":["authkit","GoogleOAuth"],"title":"Provider","default":"authkit"}},"type":"object","required":["surface"],"title":"StartBody"},"StartTestJobRequest":{"properties":{"steps":{"type":"integer","title":"Steps","default":10},"delay_ms":{"type":"integer","title":"Delay Ms","default":500},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","title":"StartTestJobRequest"},"StartTestJobResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["task_id","job_id"],"title":"StartTestJobResponse"},"StarterPagesPublished":{"properties":{"status":{"type":"string","const":"ok","title":"Status","default":"ok"},"published":{"type":"integer","title":"Published"},"failed":{"type":"integer","title":"Failed"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["published","failed","detail"],"title":"StarterPagesPublished"},"StarterPromptListResponse":{"properties":{"prompts":{"items":{"$ref":"#/components/schemas/StarterPromptOut"},"type":"array","title":"Prompts"}},"type":"object","required":["prompts"],"title":"StarterPromptListResponse"},"StarterPromptOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"created_by":{"anyOf":[{"$ref":"#/components/schemas/AdminActorOut"},{"type":"null"}]},"updated_by":{"anyOf":[{"$ref":"#/components/schemas/AdminActorOut"},{"type":"null"}]}},"type":"object","required":["id","title","content"],"title":"StarterPromptOut"},"StatusItem":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"version":{"type":"integer","title":"Version"},"has_pending_proposals":{"type":"boolean","title":"Has Pending Proposals"}},"type":"object","required":["id","slug","title","status","version","has_pending_proposals"],"title":"StatusItem"},"StatusRequest":{"properties":{"ids":{"items":{"type":"string"},"type":"array","title":"Ids"}},"type":"object","required":["ids"],"title":"StatusRequest"},"Step1Request":{"properties":{"account_name":{"type":"string","title":"Account Name"},"domain_url":{"type":"string","title":"Domain Url"},"competitors":{"anyOf":[{"items":{"$ref":"#/components/schemas/CompetitorInput"},"type":"array"},{"type":"null"}],"title":"Competitors"},"user_profiles":{"anyOf":[{"items":{"$ref":"#/components/schemas/UserProfileInput"},"type":"array"},{"type":"null"}],"title":"User Profiles"},"goals":{"anyOf":[{"items":{"$ref":"#/components/schemas/GoalInput"},"type":"array"},{"type":"null"}],"title":"Goals"},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"agents_per_profile":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agents Per Profile"},"threads_per_profile":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Threads Per Profile"},"num_profiles":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Profiles"},"workspace_mode":{"type":"string","title":"Workspace Mode","default":"full"}},"type":"object","required":["account_name","domain_url"],"title":"Step1Request","description":"Step 1: Create account with org and domain.\n\n`agents_per_profile` is the base journey-agent count k per profile for the\nproduction overview run. Competitor comparison agents may be added on top\nwhen relevant. `threads_per_profile` is accepted for backward compatibility\nbut ignored by the single-thread buyer-agent flow. `models` optionally\nlimits the auto-run to a subset of the supported analysis models.\n\nAGENTDESK-P1(PR-6): `workspace_mode` selects the product surface —\n\"full\" (default, today's behavior) or \"agentdesk\" for an AgentDesk-first\nworkspace."},"Step1Response":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"domain_id":{"type":"string","title":"Domain Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["organization_id","domain_id"],"title":"Step1Response"},"StrengthsWeaknessesResultOut":{"properties":{"strengths":{"items":{"$ref":"#/components/schemas/BrandStrengthWeaknessOut"},"type":"array","title":"Strengths","default":[]},"weaknesses":{"items":{"$ref":"#/components/schemas/BrandStrengthWeaknessOut"},"type":"array","title":"Weaknesses","default":[]}},"type":"object","title":"StrengthsWeaknessesResultOut"},"SubPersona":{"properties":{"journey_stage":{"type":"string","title":"Journey Stage","description":"Label from the journey map identifying this buyer's scenario","default":""},"awareness":{"type":"string","title":"Awareness","description":"none | passive_brands | brand_in_context — controls brand awareness injection","default":"none"},"identity_description":{"type":"string","title":"Identity Description","description":"Concrete identity and situation: role, industry, company size, specific challenge"},"current_problem":{"type":"string","title":"Current Problem","description":"The exact problem or question they are coming to the AI assistant to solve right now"},"desired_outcome":{"type":"string","title":"Desired Outcome","description":"What outcome they want from this research session"},"salient_concerns":{"items":{"type":"string"},"type":"array","title":"Salient Concerns","description":"2-4 concerns specific to this person's situation (not a universal evaluation rubric)"},"interaction_style":{"type":"string","title":"Interaction Style","description":"How they tend to ask questions: e.g. skeptical, rushed, exploratory, detail-oriented, terse"},"information_not_volunteered":{"items":{"type":"string"},"type":"array","title":"Information Not Volunteered","description":"1-3 facts they know but would not mention unless asked"}},"type":"object","required":["identity_description","current_problem","desired_outcome","salient_concerns","interaction_style","information_not_volunteered"],"title":"SubPersona","description":"A concrete instance of a buyer persona — one specific person with a\nspecific problem opening an AI assistant right now."},"SubPersonaResponse":{"properties":{"sub_personas":{"items":{"$ref":"#/components/schemas/SubPersona"},"type":"array","title":"Sub Personas"}},"type":"object","required":["sub_personas"],"title":"SubPersonaResponse"},"SubdomainVerifyResponse":{"properties":{"dns_configured":{"type":"boolean","title":"Dns Configured"},"ssl_status":{"type":"string","title":"Ssl Status"},"is_active":{"type":"boolean","title":"Is Active"},"errors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Errors"},"cname_target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cname Target"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"subdomain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subdomain"},"dns_records":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Dns Records"}},"type":"object","required":["dns_configured","ssl_status","is_active"],"title":"SubdomainVerifyResponse"},"SuggestCriteriaRequest":{"properties":{"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"}},"type":"object","title":"SuggestCriteriaRequest"},"SuggestCriteriaResponse":{"properties":{"suggestions":{"items":{"$ref":"#/components/schemas/SuggestedCriteria"},"type":"array","title":"Suggestions"}},"type":"object","required":["suggestions"],"title":"SuggestCriteriaResponse"},"SuggestGoalsResponse":{"properties":{"suggestions":{"items":{"$ref":"#/components/schemas/SuggestedGoal"},"type":"array","title":"Suggestions"}},"type":"object","required":["suggestions"],"title":"SuggestGoalsResponse"},"SuggestedCriteria":{"properties":{"criteria":{"type":"string","title":"Criteria"}},"type":"object","required":["criteria"],"title":"SuggestedCriteria"},"SuggestedGoal":{"properties":{"goal":{"type":"string","title":"Goal"}},"type":"object","required":["goal"],"title":"SuggestedGoal"},"SuggestedObjective":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["name","description"],"title":"SuggestedObjective"},"SummarizeContentRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContentSummaryItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SummarizeContentRequest"},"SupportChannelRequestResponse":{"properties":{"requested":{"type":"boolean","title":"Requested"},"notified":{"type":"boolean","title":"Notified"}},"type":"object","required":["requested","notified"],"title":"SupportChannelRequestResponse"},"SurfaceBody":{"properties":{"surface":{"type":"string","title":"Surface"}},"type":"object","required":["surface"],"title":"SurfaceBody"},"SwitchAccountBody":{"properties":{"surface":{"type":"string","title":"Surface"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"applicant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Applicant Id"},"applicant_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Applicant Completed"},"destination":{"type":"string","enum":["sign-in","sign-up"],"title":"Destination"}},"type":"object","required":["surface","session_id","destination"],"title":"SwitchAccountBody"},"SyncOwnedMediaIn":{"properties":{"use_search_engine":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Search Engine"},"lane":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lane"}},"type":"object","title":"SyncOwnedMediaIn"},"TaskAssigneesResponse":{"properties":{"assignees":{"items":{"type":"string"},"type":"array","title":"Assignees"}},"type":"object","required":["assignees"],"title":"TaskAssigneesResponse"},"TaskAssignersResponse":{"properties":{"assigners":{"items":{"type":"string"},"type":"array","title":"Assigners"}},"type":"object","required":["assigners"],"title":"TaskAssignersResponse"},"TaskCreateInDomainRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"priority_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","default":"not_started"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["title"],"title":"TaskCreateInDomainRequest"},"TaskCreateRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","default":"not_started"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"type":"object","required":["title"],"title":"TaskCreateRequest"},"TaskListResponse":{"properties":{"tasks":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__TaskOut"},"type":"array","title":"Tasks"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":25}},"type":"object","required":["tasks","total"],"title":"TaskListResponse"},"TaskUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"clear_completed_at":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Clear Completed At"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"type":"object","title":"TaskUpdateRequest"},"TaskWithPriorityOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"killed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Killed At"},"position":{"type":"integer","title":"Position"},"source_action_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Action Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"priority":{"$ref":"#/components/schemas/PriorityBriefOut"}},"type":"object","required":["id","title","status","position","priority"],"title":"TaskWithPriorityOut"},"ToggleChecklistRequest":{"properties":{"done":{"type":"boolean","title":"Done"}},"type":"object","required":["done"],"title":"ToggleChecklistRequest"},"ToggleChecklistResponse":{"properties":{"id":{"type":"string","title":"Id"},"block_id":{"type":"string","title":"Block Id"},"item_id":{"type":"string","title":"Item Id"},"done":{"type":"boolean","title":"Done"},"done_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Done By"},"done_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Done At"},"changed":{"type":"boolean","title":"Changed"}},"type":"object","required":["id","block_id","item_id","done","changed"],"title":"ToggleChecklistResponse"},"TokenPair":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenPair"},"TriggerDomainOverviewResponse":{"properties":{"analysis_id":{"type":"string","title":"Analysis Id"},"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"last_overview_analysis_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Overview Analysis At"}},"type":"object","required":["analysis_id","job_id","status"],"title":"TriggerDomainOverviewResponse"},"TriggerEvaluationRequest":{"properties":{"incremental":{"type":"boolean","title":"Incremental","default":true}},"type":"object","title":"TriggerEvaluationRequest"},"UpdateAdminChatRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"}},"type":"object","required":["title"],"title":"UpdateAdminChatRequest"},"UpdateAdminDeskRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"post_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Post Enabled"},"answer_pages_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Answer Pages Enabled"},"retrieval_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieval Mode"},"knowledge_auto_update":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Auto Update"}},"type":"object","title":"UpdateAdminDeskRequest","description":"Every field Optional and applied only when present.\n\nA PATCH that defaulted its fields would turn \"set retrieval_mode\" into \"set\nretrieval_mode and disable answer pages\", which for a live desk is a silent\noutage. Absent means untouched."},"UpdateAnnotationsRequest":{"properties":{"actions":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Actions"},"priorities":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Priorities"}},"type":"object","title":"UpdateAnnotationsRequest"},"UpdateChatRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"}},"type":"object","required":["title"],"title":"UpdateChatRequest"},"UpdateCompetitorProductRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"UpdateCompetitorProductRequest"},"UpdateCompetitorsRequest":{"properties":{"competitor_ids":{"items":{"type":"string"},"type":"array","title":"Competitor Ids"}},"type":"object","required":["competitor_ids"],"title":"UpdateCompetitorsRequest"},"UpdateCustomerEmailIn":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"UpdateCustomerEmailIn"},"UpdateDomainBrandingRequest":{"properties":{"site_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Title"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url"},"brand_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Color"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color"},"text_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Color"},"link_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Color"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"button_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Button Color"},"body_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Font"},"heading_font":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading Font"},"cta_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Text"},"cta_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Url"},"main_site_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Site Url"},"main_site_text":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Main Site Text"},"meta_title_suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Title Suffix"}},"type":"object","title":"UpdateDomainBrandingRequest"},"UpdateDomainCustomCodeRequest":{"properties":{"head_javascript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Javascript"},"body_javascript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Javascript"}},"type":"object","title":"UpdateDomainCustomCodeRequest"},"UpdateFeatureFlagsRequest":{"properties":{"flags":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Flags"}},"type":"object","required":["flags"],"title":"UpdateFeatureFlagsRequest"},"UpdateMonitorRequest":{"properties":{"competitor_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitor Ids"},"competitive_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitive Product Ids"},"rerun":{"type":"boolean","title":"Rerun","default":false}},"type":"object","title":"UpdateMonitorRequest"},"UpdatePanelRequest":{"properties":{"scopes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Scopes"},"competitors":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Competitors"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"matchups":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Matchups"}},"type":"object","title":"UpdatePanelRequest"},"UpdatePersonaRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scenarios":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scenarios"}},"type":"object","title":"UpdatePersonaRequest"},"UpdatePromptRequest":{"properties":{"content":{"type":"string","title":"Content"},"confirm":{"type":"boolean","title":"Confirm","default":false}},"type":"object","required":["content"],"title":"UpdatePromptRequest"},"UpdateStarterPromptRequest":{"properties":{"title":{"type":"string","maxLength":120,"minLength":1,"title":"Title"},"content":{"type":"string","minLength":1,"title":"Content"}},"type":"object","required":["title","content"],"title":"UpdateStarterPromptRequest"},"UpdateTaskRequest":{"properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"attachments":{"anyOf":[{},{"type":"null"}],"title":"Attachments"},"labels":{"anyOf":[{},{"type":"null"}],"title":"Labels"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"subscribers":{"anyOf":[{},{"type":"null"}],"title":"Subscribers"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience"},"visibility_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility Status"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"due_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"killed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Killed At"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"parent_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Task Id"},"priority_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"}},"additionalProperties":false,"type":"object","title":"UpdateTaskRequest","description":"Mirrors the MCP's `_TASK_PATCHABLE` set (no `domain_id`/`org_id` — the\naccount rollup is set once at create). `extra=\"forbid\"` rejects unknown\nfields (the MCP's \"Unknown task fields\" guard). Only fields the caller\nexplicitly sends are applied, so an explicit null CLEARS a value (e.g.\n`killed_at: null` restores a soft-deleted task, `assignee: null` unassigns).\nTask-org L1 fields (owner_side/decision/deps) remain MCP-only. Human\ncontent edits on this internal JWT route implement no-second-accept."},"UpdateUserRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"primary_use_case":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Use Case"},"additional_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Additional Info"}},"type":"object","title":"UpdateUserRequest"},"UpdateWorkflowRequest":{"properties":{"state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"State"}},"type":"object","title":"UpdateWorkflowRequest"},"UrlMapItem":{"properties":{"url":{"type":"string","title":"Url"},"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"}},"type":"object","required":["url","id","slug","title"],"title":"UrlMapItem"},"UserProfileBulkCreate":{"properties":{"profiles":{"items":{"$ref":"#/components/schemas/UserProfileCreate"},"type":"array","title":"Profiles"}},"type":"object","required":["profiles"],"title":"UserProfileBulkCreate"},"UserProfileCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"scenarios":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scenarios"}},"type":"object","required":["name","description"],"title":"UserProfileCreate"},"UserProfileInput":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"scenarios":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scenarios"}},"type":"object","required":["name","description"],"title":"UserProfileInput"},"UserProfileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"domain_id":{"type":"string","format":"uuid","title":"Domain Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"scenarios":{"items":{"type":"string"},"type":"array","title":"Scenarios"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","domain_id","name","description","created_at","updated_at"],"title":"UserProfileResponse"},"UserProfileUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scenarios":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scenarios"}},"type":"object","title":"UserProfileUpdate"},"UserSummary":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"last_login_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Login At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","email"],"title":"UserSummary"},"ValidateRequest":{"properties":{"source":{"type":"string","title":"Source"}},"type":"object","required":["source"],"title":"ValidateRequest"},"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"},"ValueCreate":{"properties":{"label":{"type":"string","title":"Label"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position","default":0}},"type":"object","required":["label"],"title":"ValueCreate"},"ValueUpdate":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"}},"type":"object","title":"ValueUpdate"},"VisitPointOut":{"properties":{"date":{"type":"string","title":"Date"},"visits":{"type":"integer","title":"Visits"}},"type":"object","required":["date","visits"],"title":"VisitPointOut","description":"Matches the ``VisitPoint`` type in the mockup."},"WorkflowListResponse":{"properties":{"workflows":{"items":{"$ref":"#/components/schemas/WorkflowOut"},"type":"array","title":"Workflows"}},"type":"object","required":["workflows"],"title":"WorkflowListResponse"},"WorkflowOut":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"},"state":{"additionalProperties":true,"type":"object","title":"State"},"has_unviewed_update":{"type":"boolean","title":"Has Unviewed Update","default":false},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","state","created_at"],"title":"WorkflowOut"},"WorkspaceBody":{"properties":{"surface":{"type":"string","title":"Surface"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"}},"type":"object","required":["surface","organization_id"],"title":"WorkspaceBody"},"_BuyingContextOut":{"properties":{"scenarioContext":{"type":"string","title":"Scenariocontext"},"visibilityHistory":{"items":{"$ref":"#/components/schemas/_ScorePoint"},"type":"array","title":"Visibilityhistory"},"alignmentHistory":{"items":{"$ref":"#/components/schemas/_ScorePoint"},"type":"array","title":"Alignmenthistory"},"competitorVisibilityHistory":{"anyOf":[{"items":{"$ref":"#/components/schemas/_CompetitorVisibilityPoint"},"type":"array"},{"type":"null"}],"title":"Competitorvisibilityhistory"}},"type":"object","required":["scenarioContext","visibilityHistory","alignmentHistory","competitorVisibilityHistory"],"title":"_BuyingContextOut"},"_CompetitorScore":{"properties":{"name":{"type":"string","title":"Name"},"score":{"type":"number","title":"Score"}},"type":"object","required":["name","score"],"title":"_CompetitorScore"},"_CompetitorVisibilityPoint":{"properties":{"reportId":{"type":"string","title":"Reportid"},"reportDate":{"type":"string","title":"Reportdate"},"brand":{"$ref":"#/components/schemas/_CompetitorScore"},"competitors":{"items":{"$ref":"#/components/schemas/_CompetitorScore"},"type":"array","title":"Competitors"}},"type":"object","required":["reportId","reportDate","brand","competitors"],"title":"_CompetitorVisibilityPoint"},"_ContentItemSlim":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"type":"string","title":"Url"},"sourceKind":{"type":"string","title":"Sourcekind"},"ownership":{"type":"string","title":"Ownership"},"totalVisits":{"type":"integer","title":"Totalvisits"}},"type":"object","required":["id","url","sourceKind","ownership","totalVisits"],"title":"_ContentItemSlim"},"_EchoOut":{"properties":{"citationId":{"type":"string","title":"Citationid"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"quote":{"type":"string","title":"Quote"},"citedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citedat"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"contentItem":{"$ref":"#/components/schemas/_ContentItemSlim"}},"type":"object","required":["citationId","quote","contentItem"],"title":"_EchoOut"},"_PersonaCore":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scenarios":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scenarios"}},"type":"object","required":["id","name"],"title":"_PersonaCore"},"_PriorityCore":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"why_it_matters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why It Matters"},"dimension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dimension"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id","title"],"title":"_PriorityCore"},"_ScorePoint":{"properties":{"reportId":{"type":"string","title":"Reportid"},"reportDate":{"type":"string","title":"Reportdate"},"score":{"type":"number","title":"Score"},"sampleSize":{"type":"integer","title":"Samplesize"}},"type":"object","required":["reportId","reportDate","score","sampleSize"],"title":"_ScorePoint"},"_SupportingContentOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/_ContentItemSlim"},"type":"array","title":"Items"},"mergedVisitsByDay":{"items":{"$ref":"#/components/schemas/_VisitsPoint"},"type":"array","title":"Mergedvisitsbyday"}},"type":"object","required":["items","mergedVisitsByDay"],"title":"_SupportingContentOut"},"_VisitsPoint":{"properties":{"date":{"type":"string","title":"Date"},"visits":{"type":"integer","title":"Visits"}},"type":"object","required":["date","visits"],"title":"_VisitsPoint"},"backend__dashboard_server__routes__admin__AccountDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","title":"Created At"},"has_active_plan":{"type":"boolean","title":"Has Active Plan"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"domains":{"items":{"$ref":"#/components/schemas/DomainSummary"},"type":"array","title":"Domains"},"users":{"items":{"$ref":"#/components/schemas/UserSummary"},"type":"array","title":"Users"}},"type":"object","required":["id","name","created_at","has_active_plan","domains","users"],"title":"AccountDetailResponse"},"backend__dashboard_server__routes__admin__AccountListResponse":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__AccountSummary"},"type":"array","title":"Accounts"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":25}},"type":"object","required":["accounts","total"],"title":"AccountListResponse"},"backend__dashboard_server__routes__admin__AccountSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","title":"Created At"},"has_active_plan":{"type":"boolean","title":"Has Active Plan"},"last_customer_login":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Customer Login"},"domains":{"items":{"$ref":"#/components/schemas/DomainSummary"},"type":"array","title":"Domains"},"user_count":{"type":"integer","title":"User Count"}},"type":"object","required":["id","name","created_at","has_active_plan","domains","user_count"],"title":"AccountSummary"},"backend__dashboard_server__routes__admin__CompetitorOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"position":{"type":"integer","title":"Position"},"products":{"items":{"$ref":"#/components/schemas/CompetitorProductOut"},"type":"array","title":"Products"}},"type":"object","required":["id","name","position","products"],"title":"CompetitorOut"},"backend__dashboard_server__routes__admin__CreateProductRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"CreateProductRequest"},"backend__dashboard_server__routes__admin__MonitorRowOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Name"},"competitor_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitor Ids"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"last_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run At"},"last_run_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run Status"}},"type":"object","required":["id","label"],"title":"MonitorRowOut"},"backend__dashboard_server__routes__admin__MonitoringConfigResponse":{"properties":{"products":{"items":{"$ref":"#/components/schemas/DomainProductOut"},"type":"array","title":"Products"},"competitors":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__admin__CompetitorOut"},"type":"array","title":"Competitors"}},"type":"object","required":["products","competitors"],"title":"MonitoringConfigResponse"},"backend__dashboard_server__routes__admin__UpdateCompetitorRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","title":"UpdateCompetitorRequest"},"backend__dashboard_server__routes__admin__UpdateDomainRequest":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"no_content_features":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No Content Features"}},"type":"object","title":"UpdateDomainRequest"},"backend__dashboard_server__routes__admin__UpdateProductRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"UpdateProductRequest"},"backend__dashboard_server__routes__agent_desk__MessageOut":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"conversation_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Classification"}},"type":"object","required":["id","role","content"],"title":"MessageOut"},"backend__dashboard_server__routes__auth__UserResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"org_id":{"type":"string","title":"Org Id"}},"type":"object","required":["id","email","org_id"],"title":"UserResponse"},"backend__dashboard_server__routes__awareness__TriggerAnalysisRequest":{"properties":{"incremental":{"type":"boolean","title":"Incremental","default":true}},"type":"object","title":"TriggerAnalysisRequest"},"backend__dashboard_server__routes__awareness__TriggerAnalysisResponse":{"properties":{"analysis_id":{"type":"string","title":"Analysis Id"},"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["analysis_id","job_id","status"],"title":"TriggerAnalysisResponse"},"backend__dashboard_server__routes__brand_goals__BrandGoalOut":{"properties":{"id":{"type":"string","title":"Id"},"goal_text":{"type":"string","title":"Goal Text"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["id","goal_text","status","created_at"],"title":"BrandGoalOut"},"backend__dashboard_server__routes__chat__ChatOut":{"properties":{"id":{"type":"string","title":"Id"},"probe_execution_batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Probe Execution Batch Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id"],"title":"ChatOut"},"backend__dashboard_server__routes__chat__MessageOut":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"type":"object","required":["id","role","content"],"title":"MessageOut"},"backend__dashboard_server__routes__chat_generated_pages__DiffResponse":{"properties":{"hunks":{"items":{"$ref":"#/components/schemas/DiffHunk"},"type":"array","title":"Hunks"}},"type":"object","required":["hunks"],"title":"DiffResponse"},"backend__dashboard_server__routes__competitive_intel__TriggerAnalysisRequest":{"properties":{"incremental":{"type":"boolean","title":"Incremental","default":true}},"type":"object","title":"TriggerAnalysisRequest"},"backend__dashboard_server__routes__competitive_intel__TriggerAnalysisResponse":{"properties":{"analysis_id":{"type":"string","title":"Analysis Id"},"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["analysis_id","job_id","status"],"title":"TriggerAnalysisResponse"},"backend__dashboard_server__routes__datasets__QueryRequest":{"properties":{"source":{"type":"string","title":"Source"},"select":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Select"},"where":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Where"},"group_by":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Group By"},"aggregate":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Aggregate"},"order_by":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Order By"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},"type":"object","required":["source"],"title":"QueryRequest"},"backend__dashboard_server__routes__desk_signup__DeskSignupResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"},"next_step":{"type":"string","title":"Next Step"},"claim_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Id"},"verification":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Verification"}},"type":"object","required":["status","message","next_step"],"title":"DeskSignupResponse"},"backend__dashboard_server__routes__domains__UpdateDomainRequest":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"},"completed_personalization_onboarding":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Completed Personalization Onboarding"},"completed_cms_onboarding":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Completed Cms Onboarding"},"selected_personalization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selected Personalization"},"selected_cms":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selected Cms"},"auto_publish_pages":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Publish Pages"},"index_on_google":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Index On Google"},"index_on_bing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Index On Bing"},"generated_pages_utm":{"anyOf":[{"$ref":"#/components/schemas/GeneratedPagesUtmUpdate"},{"type":"null"}]},"default_location":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Default Location"},"api_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Api Only"},"notification_config":{"anyOf":[{"$ref":"#/components/schemas/SlackNotificationConfigUpdate"},{"type":"null"}]},"additional_hosts":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Additional Hosts"}},"type":"object","title":"UpdateDomainRequest"},"backend__dashboard_server__routes__drivers__TriggerAnalysisRequest":{"properties":{"profile_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Profile Ids"},"include_overview":{"type":"boolean","title":"Include Overview","default":true},"incremental":{"type":"boolean","title":"Incremental","default":true}},"type":"object","title":"TriggerAnalysisRequest"},"backend__dashboard_server__routes__drivers__TriggerAnalysisResponse":{"properties":{"analysis_id":{"type":"string","title":"Analysis Id"},"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["analysis_id","job_id","status"],"title":"TriggerAnalysisResponse"},"backend__dashboard_server__routes__generated_pages__DiffResponse":{"properties":{"before_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before Version Id"},"after_version_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Version Id"},"hunks":{"items":{"$ref":"#/components/schemas/DiffHunk"},"type":"array","title":"Hunks"}},"type":"object","required":["before_version_id","after_version_id","hunks"],"title":"DiffResponse"},"backend__dashboard_server__routes__gtm_internal__AccountDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","title":"Created At"},"has_active_plan":{"type":"boolean","title":"Has Active Plan"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"domains":{"items":{"$ref":"#/components/schemas/AccountDomainSummary"},"type":"array","title":"Domains"},"users":{"items":{"$ref":"#/components/schemas/AccountUserSummary"},"type":"array","title":"Users"}},"type":"object","required":["id","name","created_at","has_active_plan","domains","users"],"title":"AccountDetailResponse"},"backend__dashboard_server__routes__gtm_internal__AccountListResponse":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__AccountSummary"},"type":"array","title":"Accounts"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page","default":1},"page_size":{"type":"integer","title":"Page Size","default":25}},"type":"object","required":["accounts","total"],"title":"AccountListResponse"},"backend__dashboard_server__routes__gtm_internal__AccountSummary":{"properties":{"org_id":{"type":"string","title":"Org Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","title":"Created At"},"has_active_plan":{"type":"boolean","title":"Has Active Plan"},"last_customer_login":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Customer Login"},"domains":{"items":{"$ref":"#/components/schemas/AccountDomainSummary"},"type":"array","title":"Domains"},"user_count":{"type":"integer","title":"User Count"}},"type":"object","required":["org_id","name","created_at","has_active_plan","domains","user_count"],"title":"AccountSummary"},"backend__dashboard_server__routes__gtm_internal__BrandGoalOut":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"goal_text":{"type":"string","title":"Goal Text"},"status":{"type":"string","title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","goal_text","status"],"title":"BrandGoalOut"},"backend__dashboard_server__routes__gtm_internal__CompetitorOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"position":{"type":"integer","title":"Position"},"products":{"items":{"$ref":"#/components/schemas/CompetitorProductOut"},"type":"array","title":"Products"}},"type":"object","required":["id","name","position","products"],"title":"CompetitorOut"},"backend__dashboard_server__routes__gtm_internal__CreateProductRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"CreateProductRequest"},"backend__dashboard_server__routes__gtm_internal__GenerateResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"GenerateResponse"},"backend__dashboard_server__routes__gtm_internal__MonitorRowOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Name"},"competitor_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitor Ids"},"competitive_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitive Product Ids"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"last_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run At"},"last_run_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run Status"}},"type":"object","required":["id","label"],"title":"MonitorRowOut"},"backend__dashboard_server__routes__gtm_internal__MonitoringConfigResponse":{"properties":{"products":{"items":{"$ref":"#/components/schemas/ProductOut"},"type":"array","title":"Products"},"competitors":{"items":{"$ref":"#/components/schemas/backend__dashboard_server__routes__gtm_internal__CompetitorOut"},"type":"array","title":"Competitors"}},"type":"object","required":["products","competitors"],"title":"MonitoringConfigResponse"},"backend__dashboard_server__routes__gtm_internal__TaskOut":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"priority_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority Id"},"parent_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Task Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"title":{"type":"string","title":"Title"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"attachments":{"anyOf":[{},{"type":"null"}],"title":"Attachments"},"labels":{"anyOf":[{},{"type":"null"}],"title":"Labels"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"subscribers":{"anyOf":[{},{"type":"null"}],"title":"Subscribers"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience"},"visibility_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility Status"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"due_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"killed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Killed At"},"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"domain_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Host"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"}},"type":"object","required":["id","title"],"title":"TaskOut","description":"Staff serializer — mirrors the MCP `_serialize_task` dict shape and so\nINCLUDES `detail` (staff-internal). The list route also enriches each row\nwith human-readable `domain_host` / `org_name` so the cross-account table\nis not a wall of UUIDs (those two are not Task columns)."},"backend__dashboard_server__routes__gtm_internal__UpdateCompetitorRequest":{"properties":{"name":{"type":"string","title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","required":["name"],"title":"UpdateCompetitorRequest"},"backend__dashboard_server__routes__gtm_internal__UpdateDomainRequest":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"no_content_features":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No Content Features"},"overview_schedule_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Overview Schedule Enabled"},"overview_schedule_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overview Schedule Timezone"},"overview_schedule_day_of_week":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overview Schedule Day Of Week"},"overview_schedule_local_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overview Schedule Local Time"},"overview_schedule_interval_weeks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Overview Schedule Interval Weeks"},"report_delivery_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Report Delivery Enabled"},"report_delivery_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Delivery Timezone"},"report_delivery_local_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Delivery Local Time"},"enable_automatic_content_updates":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Automatic Content Updates"},"content_writing_guidance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Writing Guidance"}},"type":"object","title":"UpdateDomainRequest"},"backend__dashboard_server__routes__gtm_internal__UpdateProductRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"UpdateProductRequest"},"backend__dashboard_server__routes__influential_media__TriggerAnalysisRequest":{"properties":{"incremental":{"type":"boolean","title":"Incremental","default":true}},"type":"object","title":"TriggerAnalysisRequest"},"backend__dashboard_server__routes__mailbox_desk_signup__DeskSignupResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"domain_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Id"},"next_step":{"type":"string","title":"Next Step"},"claim_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claim Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["status","message","next_step"],"title":"DeskSignupResponse"},"backend__dashboard_server__routes__monitoring__CompetitorOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"position":{"type":"integer","title":"Position"},"products":{"items":{"$ref":"#/components/schemas/CompetitorProductOut"},"type":"array","title":"Products","default":[]}},"type":"object","required":["id","name","position"],"title":"CompetitorOut"},"backend__dashboard_server__routes__monitoring__MonitorRowOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"selections":{"additionalProperties":true,"type":"object","title":"Selections"},"competitor_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitor Ids"},"competitive_product_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Competitive Product Ids"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["id","label","selections"],"title":"MonitorRowOut"},"backend__dashboard_server__routes__perception__TriggerAnalysisRequest":{"properties":{"incremental":{"type":"boolean","title":"Incremental","default":true}},"type":"object","title":"TriggerAnalysisRequest"},"backend__dashboard_server__routes__perception__TriggerAnalysisResponse":{"properties":{"analysis_id":{"type":"string","title":"Analysis Id"},"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["analysis_id","job_id","status"],"title":"TriggerAnalysisResponse"},"backend__dashboard_server__routes__priorities__TaskOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"killed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Killed At"},"position":{"type":"integer","title":"Position"},"source_action_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Action Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","title","status","position"],"title":"TaskOut"},"backend__dashboard_server__routes__research_agent__ChatOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"last_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message"},"message_count":{"type":"integer","title":"Message Count","default":0},"visibility":{"type":"string","enum":["public","private"],"title":"Visibility","default":"public"}},"type":"object","required":["id","created_at","updated_at"],"title":"ChatOut"},"backend__dashboard_server__routes__research_agent__QueryRequest":{"properties":{"question":{"type":"string","title":"Question"},"model":{"type":"string","title":"Model","default":"gpt-5.4"},"reasoning_effort":{"type":"string","title":"Reasoning Effort","default":"high"},"max_tool_steps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Max Tool Steps"},"chat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Id"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"}},"type":"object","required":["question"],"title":"QueryRequest"},"backend__dashboard_server__routes__user_profiles__GenerateResponse":{"properties":{"candidates":{"items":{"$ref":"#/components/schemas/GeneratedProfileCandidate"},"type":"array","title":"Candidates"}},"type":"object","required":["candidates"],"title":"GenerateResponse"},"backend__dashboard_server__routes__user_profiles__TriggerAnalysisResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/AnalyzeJobEntry"},"type":"array","title":"Jobs"}},"type":"object","required":["jobs"],"title":"TriggerAnalysisResponse"},"backend__dashboard_server__routes__users__UserResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"org_id":{"type":"string","title":"Org Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"additional_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Additional Info"},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"invitation_delivery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitation Delivery"},"sign_in_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign In Url"},"hosted_invitation_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hosted Invitation Expires At"}},"type":"object","required":["id","email","org_id"],"title":"UserResponse"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/auth/login"}}}}}}