{"openapi":"3.1.0","info":{"title":"Claura API","description":"AI-powered software development lifecycle OS workflow","version":"1.0.0"},"paths":{"/agents/{agent_type}/turns/{turn_id}/stream":{"get":{"tags":["Agents"],"summary":"Stream Agent Turn Endpoint","description":"Watch one turn. Reconnectable, and safe to open from a second device.\n\nThe workspace and arc are required rather than derived from the turn id: settling\nclears ``active_turn_id`` so a turn id cannot find its own thread afterwards, and a\nbare turn id could not be authorized against the project owner's org at all.","operationId":"stream_agent_turn_endpoint_agents__agent_type__turns__turn_id__stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_type","in":"path","required":true,"schema":{"type":"string","title":"Agent Type"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","description":"Turn to watch","title":"Turn Id"},"description":"Turn to watch"},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_type}/turns/{turn_id}/stop":{"post":{"tags":["Agents"],"summary":"Stop Agent Turn","operationId":"stop_agent_turn_agents__agent_type__turns__turn_id__stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_type","in":"path","required":true,"schema":{"type":"string","title":"Agent Type"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","description":"Turn to stop","title":"Turn Id"},"description":"Turn to stop"},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_type}/interact/stream":{"post":{"tags":["Agents"],"summary":"Interact With Agent Stream","description":"Open a turn on the agent's thread and stream a reconnectable view of it.","operationId":"interact_with_agent_stream_agents__agent_type__interact_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_type","in":"path","required":true,"schema":{"type":"string","description":"Type of agent to interact with","title":"Agent Type"},"description":"Type of agent to interact with"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_interact_with_agent_stream_agents__agent_type__interact_stream_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_type}/auto-select":{"post":{"tags":["Agents"],"summary":"Auto Select From Session","description":"Perform auto-selection using existing session context.\n\nOne selection is one metered agent-chat action: it runs the same STRONG model a\nturn runs, so it is gated and settled like a turn rather than riding free on the\nsession that authorized it. The workspace and arc charged and recorded are the\nones the authorizer resolved from the session's own binding, never the body's.","operationId":"auto_select_from_session_agents__agent_type__auto_select_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_type","in":"path","required":true,"schema":{"type":"string","description":"Type of agent","title":"Agent Type"},"description":"Type of agent"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoSelectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_type}/interact/edit-message":{"post":{"tags":["Agents"],"summary":"Edit Message","description":"Edit the last user message in a session by marking old messages as aborted and adding new pending message","operationId":"edit_message_agents__agent_type__interact_edit_message_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_type","in":"path","required":true,"schema":{"type":"string","description":"Type of agent","title":"Agent Type"},"description":"Type of agent"}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_edit_message_agents__agent_type__interact_edit_message_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/code/send":{"post":{"tags":["Authentication"],"summary":"Send Auth Code","description":"Email a sign-in code; logging in refuses an address with no account.","operationId":"send_auth_code_api_auth_code_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCodeSendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCodeSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/code/verify":{"post":{"tags":["Authentication"],"summary":"Verify Auth Code","description":"Exchange a correct code for a Firebase custom token, creating the account (with the name typed at\nsign-up) on a first sign-in.","operationId":"verify_auth_code_api_auth_code_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCodeVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCodeVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/admin/register":{"post":{"tags":["Authentication"],"summary":"Admin Register User","description":"Super admin endpoint to register new user with automatic organization assignment\n\nCreates a new user account with email and name; the user signs in by emailed code.\nRequires super admin privileges.","operationId":"admin_register_user_api_auth_admin_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/me":{"get":{"tags":["Authentication"],"summary":"Get Current User Info","description":"Get current authenticated user information\n\nReturns the profile information of the currently authenticated user.\nWorks for users with or without organizations (onboarding users).","operationId":"get_current_user_info_api_auth_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Time-Zone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Time-Zone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Authentication"],"summary":"Update Current User Info","description":"Update current user information\n\nUpdates the user's profile including:\n- name: Display name (syncs to Firebase)\n- job_role: Job title (stored in user_profiles)\n- about: Bio/description (stored in user_profiles)","operationId":"update_current_user_info_api_auth_me_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"job_role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Role"}},{"name":"about","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Authentication"],"summary":"Delete Current User","description":"Delete current user account\n\nBlocks the Claura account and queues durable provider, storage, and SQL cleanup.","operationId":"delete_current_user_api_auth_me_delete","security":[{"HTTPBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/admin/users/{user_email}":{"delete":{"tags":["Authentication"],"summary":"Admin Delete User","description":"Admin endpoint to delete any user account\n\nBlocks the Claura account and queues durable provider, storage, and SQL cleanup.\nRequires admin privileges.","operationId":"admin_delete_user_api_auth_admin_users__user_email__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_email","in":"path","required":true,"schema":{"type":"string","title":"User Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Authentication"],"summary":"Admin Get User","description":"Admin endpoint to get provider details and database-backed authorization.\n\nRequires admin privileges.","operationId":"admin_get_user_api_auth_admin_users__user_email__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_email","in":"path","required":true,"schema":{"type":"string","title":"User Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Authentication"],"summary":"Admin Update User","description":"Super admin endpoint to edit any user.\n\nAllows comprehensive user management including:\n- name: Update display name (Firebase)\n- email: Update email address (Firebase)\n- disabled: Enable/disable account (Firebase)\n- is_super_admin: Grant/revoke the database-backed platform role\n\nRequires super admin privileges.","operationId":"admin_update_user_api_auth_admin_users__user_email__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_email","in":"path","required":true,"schema":{"type":"string","title":"User Email"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/admin/users/{user_email}/admin":{"post":{"tags":["Authentication"],"summary":"Admin Grant Admin Privileges","description":"Admin endpoint to grant admin privileges to an existing user\n\nPersists the platform role in Claura's canonical user record.\nRequires admin privileges.","operationId":"admin_grant_admin_privileges_api_auth_admin_users__user_email__admin_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_email","in":"path","required":true,"schema":{"type":"string","title":"User Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/admin/users/feature-flags":{"post":{"tags":["Authentication"],"summary":"Admin Bulk Set Feature Flag","description":"Super admin endpoint to set a single feature flag for many users at once.\n\nMerges ``{flag: value}`` into each target user's profile feature_flags. Used\nby the Feature Flags admin page for bulk enable/disable and enable-for-everyone.\nRequires super admin privileges.","operationId":"admin_bulk_set_feature_flag_api_auth_admin_users_feature_flags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminBulkFeatureFlagRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/admin/users":{"get":{"tags":["Authentication"],"summary":"Admin List Users","description":"Admin endpoint to list provider accounts with canonical authorization data.\n\nRequires admin privileges.","operationId":"admin_list_users_api_auth_admin_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"max_results","in":"query","required":false,"schema":{"type":"integer","description":"Maximum number of users to return (max 1000)","default":100,"title":"Max Results"},"description":"Maximum number of users to return (max 1000)"},{"name":"page_token","in":"query","required":false,"schema":{"type":"string","description":"Page token for pagination","title":"Page Token"},"description":"Page token for pagination"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/login":{"get":{"tags":["Authentication"],"summary":"Google Login","description":"Initiate Google OAuth2 login flow\n\nReturns the authorization URL for the user to visit\n\nDeliberately NOT gated on account state. Google export is workspace-scoped\n(``google_exports`` resolves the workspace OWNER's org and meters against\nit), but this route has no workspace context, so the only org it could gate\non is the acting user's home org — the wrong tenant. A collaborator whose\nown trial has lapsed may still export on a paying owner's workspace, and\ngating here would block them from connecting the Google account that export\nneeds. The exports themselves are already denied by ``metered_action``.","operationId":"google_login_api_auth_google_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/google/callback":{"get":{"tags":["Authentication"],"summary":"Google Callback","description":"Handle Google OAuth2 callback\n\nThis endpoint is called by Google after user authorization","operationId":"google_callback_api_auth_google_callback_get","parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string","description":"Signed, short-lived OAuth state","title":"State"},"description":"Signed, short-lived OAuth state"},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Authorization code from Google","title":"Code"},"description":"Authorization code from Google"},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Scope parameter from Google","title":"Scope"},"description":"Scope parameter from Google"},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error code Google returns when the flow fails","title":"Error"},"description":"Error code Google returns when the flow fails"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/status":{"get":{"tags":["Authentication"],"summary":"Google Auth Status","description":"Check if the current user is authenticated with Google","operationId":"google_auth_status_api_auth_google_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/google/access-token":{"get":{"tags":["Authentication"],"summary":"Google Access Token","description":"Return the current user's live Google OAuth access token.\n\nUsed by the frontend Google Picker integration: the Picker JS\nauthenticates with the user's own token so the Picker only shows\nfiles that token's scopes can see. The ``drive.file`` scope lets\nthe Picker return any file the user selects and grants Claura\nper-file access to it (that's how custom templates land in the\napp without broader Drive scopes).\n\n``get_credentials`` handles refresh automatically before returning,\nso the token handed out here is always valid.","operationId":"google_access_token_api_auth_google_access_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/google/logout":{"post":{"tags":["Authentication"],"summary":"Google Logout","description":"Logout from Google (clear stored credentials)","operationId":"google_logout_api_auth_google_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/admin/resolve-email":{"get":{"tags":["Authentication"],"summary":"Resolve Email Org","description":"Resolve what organization a new user's email will land in (super admin only).","operationId":"resolve_email_org_api_auth_admin_resolve_email_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","description":"Email address to resolve","title":"Email"},"description":"Email address to resolve"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResolveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/google-exports/docs":{"post":{"tags":["Google Exports"],"summary":"Export To Google Docs","description":"Export document content to Google Docs\n\nThis endpoint saves the provided content as a Google Doc in the user's Google Drive.\nIf the user is not authenticated with Google, it returns an OAuth URL for authentication.","operationId":"export_to_google_docs_api_google_exports_docs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveToGoogleDocsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveToGoogleDocsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/google-exports/slides":{"post":{"tags":["Google Exports"],"summary":"Export To Google Slides","description":"Export document content to Google Slides\n\nThis endpoint converts the provided document content into a Google Slides presentation\nusing the specified template type. If the user is not authenticated, it returns an OAuth URL for authentication.\nPass improvement_instructions to re-export with targeted improvements from the evaluation panel.","operationId":"export_to_google_slides_api_google_exports_slides_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_export_to_google_slides_api_google_exports_slides_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportToSlidesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/google-exports/slides/improve":{"post":{"tags":["Google Exports"],"summary":"Improve Google Slides In Place","description":"Improve an existing Google Slides presentation in-place.\n\nResumes the LangGraph session keyed to the exported_artifact_id so the LLM\nhas context of what it previously generated. For older decks (created before\nsession checkpointing), falls back to a fresh LLM call. Updates the same\npresentation URL and re-triggers evaluation on the same artifact.","operationId":"improve_google_slides_in_place_api_google_exports_slides_improve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImproveToSlidesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImproveToSlidesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/google-exports/wbs/improve":{"post":{"tags":["Google Exports"],"summary":"Improve Wbs In Place","description":"Improve an existing WBS Google Sheet in-place.\n\nRe-generates the WBS via LLM with the provided improvement instructions,\nupdates the existing spreadsheet (same URL), and re-triggers evaluation\non the same artifact.","operationId":"improve_wbs_in_place_api_google_exports_wbs_improve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImproveWBSRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImproveWBSResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/google-exports/sheets":{"post":{"tags":["Google Exports"],"summary":"Export To Google Sheets","description":"Export document content with tables to Google Sheets\n\nThis endpoint extracts tables from the provided document content and creates\na Google Sheets spreadsheet. If the user is not authenticated, it returns an OAuth URL for authentication.","operationId":"export_to_google_sheets_api_google_exports_sheets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportToSheetsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportToSheetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/ui-generation/workspace/{workspace_id}":{"get":{"tags":["Prototype Workspace"],"summary":"Get Ui Workspace Data","description":"Stored prototype files for a workspace (organization-scoped).\n\nService errors pass through typed so the frontend can tell a failed storage read from an empty workspace.","operationId":"get_ui_workspace_data_api_ui_generation_workspace__workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ui-generation/workspace/{workspace_id}/pages":{"get":{"tags":["Prototype Workspace"],"summary":"Get Workspace Pages","description":"Page-generation status for a stored prototype; service errors pass through typed.","operationId":"get_workspace_pages_api_ui_generation_workspace__workspace_id__pages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ui-generation/download/workspace/{workspace_id}":{"get":{"tags":["Prototype Workspace"],"summary":"Download Workspace Files","description":"Stored prototype files and download metadata as a JSON payload; service errors pass through typed.","operationId":"download_workspace_files_api_ui_generation_download_workspace__workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Download Workspace Files Api Ui Generation Download Workspace  Workspace Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ui-generation/health":{"get":{"tags":["Prototype Workspace"],"summary":"Health Check","description":"Health check endpoint for the prototype workspace service.","operationId":"health_check_api_ui_generation_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspaces/":{"post":{"tags":["Workspaces"],"summary":"Create Workspace","description":"Create a new workspace in the current organization","operationId":"create_workspace_api_workspaces__post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Workspaces"],"summary":"Get Workspaces","description":"Get all user's workspaces (owned + shared) with metadata for list views","operationId":"get_workspaces_api_workspaces__get","security":[{"HTTPBearer":[]}],"parameters":[{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceResponse"},"title":"Response Get Workspaces Api Workspaces  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}":{"get":{"tags":["Workspaces"],"summary":"Get Workspace","description":"Get a specific workspace within the current organization, scoped to the active arc.","operationId":"get_workspace_api_workspaces__workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF) — phase content + playbook + WBS are arc-scoped"},"description":"Active arc (POC/MVP/PMF) — phase content + playbook + WBS are arc-scoped"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Workspaces"],"summary":"Update Workspace","description":"Update a workspace within the current organization","operationId":"update_workspace_api_workspaces__workspace_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF) — scopes the re-fetched detail"},"description":"Active arc (POC/MVP/PMF) — scopes the re-fetched detail"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspaces"],"summary":"Delete Workspace","description":"Soft delete a workspace within the current organization. Workspace can be restored later.","operationId":"delete_workspace_api_workspaces__workspace_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/access":{"get":{"tags":["Workspaces"],"summary":"Get Workspace Access","description":"What the caller may do on this workspace: the rules the frontend reads instead of copying.","operationId":"get_workspace_access_api_workspaces__workspace_id__access_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceAccessTable"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/chat-history/{agent_type}":{"get":{"tags":["Workspaces"],"summary":"Get Chat History","description":"Get chat history with documents[] pre-populated.\n\nThe service joins workspace_phases in a single batch query to populate\neach assistant message's documents[] array, so the frontend needs no\nconcurrent per-message calls to attach artifacts.","operationId":"get_chat_history_api_workspaces__workspace_id__chat_history__agent_type__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"agent_type","in":"path","required":true,"schema":{"type":"string","title":"Agent Type"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChatHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/phases/{phase_type}":{"put":{"tags":["Workspaces"],"summary":"Update Phase Content","description":"Update phase content for a workspace phase.\n\nIncludes semantic change detection for user edits that automatically\ntriggers re-evaluation when meaningful changes are detected.","operationId":"update_phase_content_api_workspaces__workspace_id__phases__phase_type__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"phase_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PhaseType"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePhaseContentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePhaseContentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/phases/{phase_type}/versions":{"get":{"tags":["Workspaces"],"summary":"Get Phase Versions","description":"Get all versions of a phase with evaluation scores","operationId":"get_phase_versions_api_workspaces__workspace_id__phases__phase_type__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"phase_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PhaseType"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}],"title":"Document Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PhaseVersionSummary"},"title":"Response Get Phase Versions Api Workspaces  Workspace Id  Phases  Phase Type  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/phases/{phase_type}/versions/{version_number}":{"get":{"tags":["Workspaces"],"summary":"Get Phase Version Content","description":"Get the full content of a specific phase version","operationId":"get_phase_version_content_api_workspaces__workspace_id__phases__phase_type__versions__version_number__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"phase_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PhaseType"}},{"name":"version_number","in":"path","required":true,"schema":{"type":"integer","title":"Version Number"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}],"title":"Document Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhaseVersionDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/phases/{phase_type}/versions/{version_number}/revert":{"post":{"tags":["Workspaces"],"summary":"Revert Phase Version","description":"Revert a phase to a prior version by creating a new version entry.\n\nWhen source_message_id is supplied, the chat history entry for that\nspecific assistant message is re-pointed at the new version so the\noriginating artifact card reflects the revert after a refresh.","operationId":"revert_phase_version_api_workspaces__workspace_id__phases__phase_type__versions__version_number__revert_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"phase_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PhaseType"}},{"name":"version_number","in":"path","required":true,"schema":{"type":"integer","title":"Version Number"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}],"title":"Document Type"}},{"name":"source_message_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhaseVersionSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/phases/{phase_type}/rating":{"post":{"tags":["Workspaces"],"summary":"Submit Phase Rating","description":"Submit a rating for a workspace phase.\n\nFeedback carve-out — not write-guarded (same rationale as\nsubmit_workspace_rating: user sentiment, not project content).","operationId":"submit_phase_rating_api_workspaces__workspace_id__phases__phase_type__rating_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"phase_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PhaseType"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}],"description":"Document type for business plan sub-documents","title":"Document Type"},"description":"Document type for business plan sub-documents"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhaseRatingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRatingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Workspaces"],"summary":"Get Phase Rating","description":"Get the current user's rating for a phase and check if content exists","operationId":"get_phase_rating_api_workspaces__workspace_id__phases__phase_type__rating_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"phase_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PhaseType"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}],"description":"Document type for business plan sub-documents","title":"Document Type"},"description":"Document type for business plan sub-documents"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPhaseRatingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/ratings":{"get":{"tags":["Workspaces"],"summary":"Get Workspace Ratings","description":"Get all user ratings for a workspace (phases and workspace-level) in a single request.\nOptimized to avoid N+1 sequential API calls from multiple artifact cards.","operationId":"get_workspace_ratings_api_workspaces__workspace_id__ratings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRatingsBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/rating":{"post":{"tags":["Workspaces"],"summary":"Submit Workspace Rating","description":"Submit a rating for the entire workspace.\n\nDeliberately NOT write-guarded (the feedback carve-out): a rating is user\nsentiment, not project content, so a VIEW_ONLY/lapsed account may still leave\nfeedback. The carve-out is intentional — a future \"guard every mutation\"\nsweep must not silently close it.","operationId":"submit_workspace_rating_api_workspaces__workspace_id__rating_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhaseRatingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRatingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/members/invite":{"post":{"tags":["Workspaces"],"summary":"Invite Member","description":"Invite a member to the workspace with phase-level permissions (owner only).\n\nView-only-guarded: invite and permission-update both mutate member state, so\nboth are guarded (actionable_owner). Remove-member and delete-workspace stay\nunguarded — a lapsed account can always wind down, the reduce-ops carve-out.","operationId":"invite_member_api_workspaces__workspace_id__members_invite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberInviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberInviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/members/{target_user_id}":{"delete":{"tags":["Workspaces"],"summary":"Remove Member","description":"Remove a member (owner only).","operationId":"remove_member_api_workspaces__workspace_id__members__target_user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/members/{target_user_id}/permissions":{"put":{"tags":["Workspaces"],"summary":"Update Member Permissions","description":"Update member phase permissions (owner only).","operationId":"update_member_permissions_api_workspaces__workspace_id__members__target_user_id__permissions_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberPermissionsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberPermissionsUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Workspaces"],"summary":"Get Member Permissions","description":"Get member phase permissions.","operationId":"get_member_permissions_api_workspaces__workspace_id__members__target_user_id__permissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberPermissionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/deploy-history":{"get":{"tags":["Deploy History"],"summary":"Get Deploy History","description":"Every deploy, newest first: what changed, who changed it, whether it went live, and\nwhich build or request it came from.","operationId":"get_deploy_history_api_workspaces__workspace_id__deploy_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployHistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/deploy-history/{commit_sha}/rollback":{"post":{"tags":["Deploy History"],"summary":"Rollback To Version","description":"Start putting the live build back to an earlier published version.\n\nOwner-gated: changing what is live is a publishing decision and a spend. The old tree\ncomes back as a new commit on the build's branch, confirmed like any other build, so the\nresponse is the build; main is never rewound.","operationId":"rollback_to_version_api_workspaces__workspace_id__deploy_history__commit_sha__rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"commit_sha","in":"path","required":true,"schema":{"type":"string","title":"Commit Sha"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/uploaded-documents":{"post":{"tags":["Uploaded Documents"],"summary":"Upload Workspace Document","description":"Upload a founder document: PDF/image/text raw, office formats stored raw\nfor later Drive conversion by the ingest service.","operationId":"upload_workspace_document_api_workspaces__workspace_id__uploaded_documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_workspace_document_api_workspaces__workspace_id__uploaded_documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadedDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Uploaded Documents"],"summary":"Get Uploaded Documents","description":"List uploaded documents for a workspace + arc.","operationId":"get_uploaded_documents_api_workspaces__workspace_id__uploaded_documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UploadedDocumentResponse"},"title":"Response Get Uploaded Documents Api Workspaces  Workspace Id  Uploaded Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/uploaded-documents/{document_id}/file":{"get":{"tags":["Uploaded Documents"],"summary":"Get Uploaded Document File","description":"Serve the raw bytes for an uploaded document (arc derived from the doc).","operationId":"get_uploaded_document_file_api_workspaces__workspace_id__uploaded_documents__document_id__file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/evaluations/{workspace_id}":{"get":{"tags":["Evaluations"],"summary":"Get Workspace Evaluations","description":"Get all evaluations for a single workspace + arc, including document-level evaluations","operationId":"get_workspace_evaluations_api_evaluations__workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvaluationResponse"},"title":"Response Get Workspace Evaluations Api Evaluations  Workspace Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/evaluations/{workspace_id}/by-id/{evaluation_id}":{"get":{"tags":["Evaluations"],"summary":"Get Workspace Evaluation By Id","description":"Get one exact evaluation, including one attached to a historical phase version.","operationId":"get_workspace_evaluation_by_id_api_evaluations__workspace_id__by_id__evaluation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/evaluations/{workspace_id}/reevaluate/{phase_type}":{"post":{"tags":["Evaluations"],"summary":"Reevaluate Single Phase","description":"Re-evaluate a single phase or specific document(s) for a workspace (requires EDIT permission)","operationId":"reevaluate_single_phase_api_evaluations__workspace_id__reevaluate__phase_type__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"phase_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PhaseType"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"document_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/DocumentType"}},{"type":"null"}],"description":"Specific document type(s) to re-evaluate","title":"Document Type"},"description":"Specific document type(s) to re-evaluate"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationTriggeredResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/evaluations/exports/{exported_artifact_id}":{"post":{"tags":["Evaluations"],"summary":"Evaluate Exported Artifact","description":"Trigger evaluation for an existing exported artifact (slides or WBS spreadsheet).\n\nFor EXPORTED_SLIDES: slide content is read from the LangGraph session checkpoint,\nor extracted from the presentation via the Google Slides API.\n\nFor EXPORTED_WBS: spreadsheet content is read from Google Sheets API using\nthe user's OAuth credentials.\n\nThe caller provides the source document content directly in both cases.","operationId":"evaluate_exported_artifact_api_evaluations_exports__exported_artifact_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"exported_artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Exported Artifact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateExportedArtifactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/drift-detections/scan":{"post":{"tags":["DriftDetections"],"summary":"Trigger Workspace Scan","description":"Trigger a manual workspace-wide drift detection scan.\n\nCreates an IN_PROGRESS detection record and spawns a background task\nthat compares all available documents for inconsistencies.\n\nThe scan trigger is fixed to MANUAL here and is deliberately not a request\nparameter: it is an internal discriminator that also selects the metering\nbranch, so a caller-chosen label bought an unbilled paid scan. Non-manual\ntriggers are service-to-service callers of ``trigger_workspace_scan``.","operationId":"trigger_workspace_scan_api_workspaces__workspace_id__drift_detections_scan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trigger Workspace Scan Api Workspaces  Workspace Id  Drift Detections Scan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/drift-detections/scan/latest":{"get":{"tags":["DriftDetections"],"summary":"Get Latest Workspace Scan","description":"Return the latest workspace-level drift scan with fact-grouped items.","operationId":"get_latest_workspace_scan_api_workspaces__workspace_id__drift_detections_scan_latest_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceDriftDetectionResponse"},{"type":"null"}],"title":"Response Get Latest Workspace Scan Api Workspaces  Workspace Id  Drift Detections Scan Latest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/drift-detections/resolved-facts":{"get":{"tags":["DriftDetections"],"summary":"Get Resolved Facts","description":"Return all previously resolved drift facts across all scans.","operationId":"get_resolved_facts_api_workspaces__workspace_id__drift_detections_resolved_facts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DriftFactResponse"},"title":"Response Get Resolved Facts Api Workspaces  Workspace Id  Drift Detections Resolved Facts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/drift-detections/accessibility":{"get":{"tags":["DriftDetections"],"summary":"Get Drift Accessibility","description":"Check whether the drift detection page is accessible and what the user can do.","operationId":"get_drift_accessibility_api_workspaces__workspace_id__drift_detections_accessibility_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriftAccessibilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/drift-detections/batch-resolve":{"post":{"tags":["DriftDetections"],"summary":"Batch Resolve","description":"Resolve multiple facts simultaneously via a background job.\n\nThe backend groups affected documents by phase, invokes agents in\nparallel, and tracks progress via a polling endpoint.","operationId":"batch_resolve_api_workspaces__workspace_id__drift_detections_batch_resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResolveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/drift-detections/resolution-jobs/active":{"get":{"tags":["DriftDetections"],"summary":"Get Active Resolution Job","description":"Return the active (pending/in_progress) resolution job for a workspace, if any.","operationId":"get_active_resolution_job_api_workspaces__workspace_id__drift_detections_resolution_jobs_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DriftResolutionJobResponse"},{"type":"null"}],"title":"Response Get Active Resolution Job Api Workspaces  Workspace Id  Drift Detections Resolution Jobs Active Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/drift-detections/resolution-jobs/{job_id}":{"get":{"tags":["DriftDetections"],"summary":"Get Resolution Job Status","description":"Poll the status of a batch drift resolution job.","operationId":"get_resolution_job_status_api_workspaces__workspace_id__drift_detections_resolution_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DriftResolutionJobResponse"},{"type":"null"}],"title":"Response Get Resolution Job Status Api Workspaces  Workspace Id  Drift Detections Resolution Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets/generate":{"post":{"tags":["Investment Packets"],"summary":"Generate Packet","operationId":"generate_packet_api_workspaces__workspace_id__packets_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacketStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets/status":{"get":{"tags":["Investment Packets"],"summary":"Get Packet Status","operationId":"get_packet_status_api_workspaces__workspace_id__packets_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PacketStatusResponse"},{"type":"null"}],"title":"Response Get Packet Status Api Workspaces  Workspace Id  Packets Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets/latest":{"get":{"tags":["Investment Packets"],"summary":"Get Latest Packet","operationId":"get_latest_packet_api_workspaces__workspace_id__packets_latest_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PacketDetailResponse"},{"type":"null"}],"title":"Response Get Latest Packet Api Workspaces  Workspace Id  Packets Latest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets":{"get":{"tags":["Investment Packets"],"summary":"List Packet Versions","operationId":"list_packet_versions_api_workspaces__workspace_id__packets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacketListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets/{packet_id}":{"get":{"tags":["Investment Packets"],"summary":"Get Packet By Id","operationId":"get_packet_by_id_api_workspaces__workspace_id__packets__packet_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"packet_id","in":"path","required":true,"schema":{"type":"string","title":"Packet Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacketDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets/{packet_id}/share":{"post":{"tags":["Investment Packets"],"summary":"Share Packet","description":"Generate a share token for the packet (first share action).","operationId":"share_packet_api_workspaces__workspace_id__packets__packet_id__share_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"packet_id","in":"path","required":true,"schema":{"type":"string","title":"Packet Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PacketShareRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacketStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets/{packet_id}/revoke":{"post":{"tags":["Investment Packets"],"summary":"Revoke Packet Link","description":"Revoke a shared packet link so it can no longer be accessed publicly.","operationId":"revoke_packet_link_api_workspaces__workspace_id__packets__packet_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"packet_id","in":"path","required":true,"schema":{"type":"string","title":"Packet Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacketStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets/{packet_id}/regenerate-link":{"post":{"tags":["Investment Packets"],"summary":"Regenerate Packet Link","description":"Generate a new share token, clear revocation, and reset view stats.","operationId":"regenerate_packet_link_api_workspaces__workspace_id__packets__packet_id__regenerate_link_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"packet_id","in":"path","required":true,"schema":{"type":"string","title":"Packet Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PacketShareRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacketStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/packets/{packet_id}/viewed":{"post":{"tags":["Investment Packets"],"summary":"Record Packet Viewed","description":"Record that the founder viewed their own packet.","operationId":"record_packet_viewed_api_workspaces__workspace_id__packets__packet_id__viewed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"packet_id","in":"path","required":true,"schema":{"type":"string","title":"Packet Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packets/public/{share_token}":{"get":{"tags":["public-packets"],"summary":"Get Public Packet","operationId":"get_public_packet_api_packets_public__share_token__get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPacketResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packets/public/{share_token}/artifact/{doc_type}":{"get":{"tags":["public-packets"],"summary":"Get Public Artifact","operationId":"get_public_artifact_api_packets_public__share_token__artifact__doc_type__get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}},{"name":"doc_type","in":"path","required":true,"schema":{"type":"string","title":"Doc Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Public Artifact Api Packets Public  Share Token  Artifact  Doc Type  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/packets/public/{share_token}/mockup":{"get":{"tags":["public-packets"],"summary":"Get Public Mockup","operationId":"get_public_mockup_api_packets_public__share_token__mockup_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Public Mockup Api Packets Public  Share Token  Mockup Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/config/public":{"get":{"tags":["public-config"],"summary":"Get Public Config","operationId":"get_public_config_api_config_public_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConfigResponse"}}}}}}},"/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Stripe Webhook","description":"Receive a Stripe webhook. The raw body is required for signature\nverification, so it is read before any parsing.","operationId":"stripe_webhook_webhooks_stripe_post","parameters":[{"name":"Stripe-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookAck"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/resend":{"post":{"tags":["webhooks"],"summary":"Resend Webhook","operationId":"resend_webhook_webhooks_resend_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookAck"}}}}}}},"/webhooks/bundle-social":{"post":{"tags":["webhooks"],"summary":"Bundle Social Webhook","operationId":"bundle_social_webhook_webhooks_bundle_social_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookAck"}}}}}}},"/webhooks/ads":{"post":{"tags":["webhooks"],"summary":"Ads Vendor Webhook","operationId":"ads_vendor_webhook_webhooks_ads_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookAck"}}}}}}},"/api/checkout/session":{"post":{"tags":["checkout"],"summary":"Create Checkout Session","description":"Create a hosted Stripe Checkout Session for a tier subscription.\n\nThe caller's IP and user-agent are read here rather than in the service: they\nride the session metadata, and the completion webhook has no request of its\nown to read them from.","operationId":"create_checkout_session_api_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/checkout/topup":{"post":{"tags":["checkout"],"summary":"Create Topup Checkout Session","description":"Create a hosted Stripe Checkout Session for a one-off top-up pack.\n\nBody is optional — the pack is a single configured SKU; the only field is\nthe ``return_path`` passthrough. The credits land on the\ncheckout.session.completed (payment mode) webhook, never here.","operationId":"create_topup_checkout_session_api_checkout_topup_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TopupCheckoutRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/checkout/topup/charge":{"post":{"tags":["checkout"],"summary":"Charge Topup","operationId":"charge_topup_api_checkout_topup_charge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupChargeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupChargeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/upgrade":{"post":{"tags":["billing"],"summary":"Upgrade","operationId":"upgrade_api_billing_upgrade_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/downgrade":{"post":{"tags":["billing"],"summary":"Downgrade","operationId":"downgrade_api_billing_downgrade_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TierChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/trial/start-now":{"post":{"tags":["billing"],"summary":"Start Trial Plan Now","description":"End a card-backed trial early and charge the plan's first full month.","operationId":"start_trial_plan_now_api_billing_trial_start_now_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartTrialPlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/cancel":{"post":{"tags":["billing"],"summary":"Cancel","operationId":"cancel_api_billing_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionActionResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/scheduled-change/cancel":{"post":{"tags":["billing"],"summary":"Cancel Scheduled Change","operationId":"cancel_scheduled_change_api_billing_scheduled_change_cancel_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionActionResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/portal":{"post":{"tags":["billing"],"summary":"Billing Portal","description":"Stripe Billing Portal session — update payment method / manage the sub.","operationId":"billing_portal_api_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalSessionResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/waitlist":{"post":{"tags":["billing"],"summary":"Join Waitlist","description":"Join the queue for a plan that is sold out.\n\nOrg-admin, like checkout: joining a waitlist is the first step of buying,\nand members ride the owner's plan rather than choosing it.","operationId":"join_waitlist_api_billing_waitlist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistJoinRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistJoinResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/tiers":{"get":{"tags":["billing"],"summary":"Tiers","description":"The plans catalog: every purchasable tier's price + allowance, FDE seat\navailability, the top-up pack, and the terms of the cardless trial a kickoff starts.\n\nOrg-aware: a tier this org may not buy carries no price. Founder-aware: the\ntrial header is this caller's own answer — only the org's owner starts the\ntrial, and the grant is one per email.","operationId":"tiers_api_billing_tiers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TiersResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/summary":{"get":{"tags":["billing"],"summary":"Summary","description":"Plan + renewal + a single summed balance + the low-credit threshold.","operationId":"summary_api_billing_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingSummaryResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/usage":{"get":{"tags":["billing"],"summary":"Usage","description":"Recent credit consumption grouped by day + action (no tokens/models/prices).","operationId":"usage_api_billing_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/invoices":{"get":{"tags":["billing"],"summary":"Invoices","description":"The org's Stripe-hosted invoices (PDF + hosted-page links). Org-admin only —\nonly the billing screen reads it, and that is already behind OrgAdminGuard.","operationId":"invoices_api_billing_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicesResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/payment-method":{"get":{"tags":["billing"],"summary":"Payment Method","description":"The card on file (brand + last4). Org-admin only — a member has no reason\nto read the org's payment instrument.","operationId":"payment_method_api_billing_payment_method_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/billing/interstitial":{"post":{"tags":["billing"],"summary":"Interstitial","description":"Compute the real consequences of downgrading to ``target_tier``.","operationId":"interstitial_api_billing_interstitial_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterstitialRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterstitialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/workspaces/{workspace_id}/exported-artifacts/":{"get":{"tags":["Exported Artifacts"],"summary":"Get Exported Artifacts","description":"Get exported artifacts for a workspace + arc with pagination support.\n\nThe service assembles the response, `workspace_phase_id` included — that one\nis a read-time join onto `workspace_phases` rather than a column, and the\nrouter does not join.","operationId":"get_exported_artifacts_api_workspaces__workspace_id__exported_artifacts__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExportedArtifactResponse"},"title":"Response Get Exported Artifacts Api Workspaces  Workspace Id  Exported Artifacts  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/exported-artifacts/{artifact_id}":{"delete":{"tags":["Exported Artifacts"],"summary":"Delete Exported Artifact","description":"Remove an exported artifact from the library.\n\nDoes not delete the file from Google Drive — only removes the DB record.\nRequires editor or owner access.","operationId":"delete_exported_artifact_api_workspaces__workspace_id__exported_artifacts__artifact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/onboarding/complete":{"post":{"tags":["Onboarding"],"summary":"Complete Onboarding","description":"Silently provision the authenticated identity from its verified email.","operationId":"complete_onboarding_api_onboarding_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingCompleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/organizations/current":{"get":{"tags":["Organizations"],"summary":"Get Current Organization","description":"Get current user's organization information with their role","operationId":"get_current_organization_api_organizations_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationWithRoleResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Organizations"],"summary":"Update Current Organization","description":"Update current organization details (name, settings; requires org admin)","operationId":"update_current_organization_api_organizations_current_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationUpdate"}}},"required":true},"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"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/organizations/current/members":{"get":{"tags":["Organizations"],"summary":"Get Current Organization Members","description":"Get members of current user's organization (requires org admin)","operationId":"get_current_organization_members_api_organizations_current_members_get","security":[{"HTTPBearer":[]}],"parameters":[{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserOrganizationResponse"},"title":"Response Get Current Organization Members Api Organizations Current Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/current/members/profiles":{"get":{"tags":["Organizations"],"summary":"Get Current Organization Members With Profiles","description":"Get members of current user's organization with profile info (requires org admin)","operationId":"get_current_organization_members_with_profiles_api_organizations_current_members_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberWithProfileResponse"},"title":"Response Get Current Organization Members With Profiles Api Organizations Current Members Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/current/members/{user_id}/role":{"put":{"tags":["Organizations"],"summary":"Update Current Member Role","description":"Update member role in current organization (requires org admin).\n\nView-only-guarded: role changes expand what a member may do, so a lapsed\naccount can't reshape its org permissions. Member REMOVAL below stays\nunguarded (reduce-ops carve-out).","operationId":"update_current_member_role_api_organizations_current_members__user_id__role_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"new_role","in":"query","required":true,"schema":{"$ref":"#/components/schemas/OrganizationRole"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/current/members/{user_id}":{"delete":{"tags":["Organizations"],"summary":"Remove Current Member From Organization","description":"Remove member from current organization (requires org admin)","operationId":"remove_current_member_from_organization_api_organizations_current_members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/admin/":{"get":{"tags":["Organizations"],"summary":"List All Organizations","description":"List all organizations (super admin only)","operationId":"list_all_organizations_api_organizations_admin__get","security":[{"HTTPBearer":[]}],"parameters":[{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationResponse"},"title":"Response List All Organizations Api Organizations Admin  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/admin/{org_id}":{"get":{"tags":["Organizations"],"summary":"Get Organization","description":"Get specific organization (super admin only)","operationId":"get_organization_api_organizations_admin__org_id__get","security":[{"HTTPBearer":[]}],"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/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/admin/{org_id}/members":{"get":{"tags":["Organizations"],"summary":"Get Organization Members Admin","description":"Get organization members with user details (super admin only).","operationId":"get_organization_members_admin_api_organizations_admin__org_id__members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgMemberDetailResponse"},"title":"Response Get Organization Members Admin Api Organizations Admin  Org Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations/admin/{org_id}/workflows":{"patch":{"tags":["Organizations"],"summary":"Set Org Allowed Workflows","description":"Set allowed workflows on an organization (super admin only).","operationId":"set_org_allowed_workflows_api_organizations_admin__org_id__workflows_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_set_org_allowed_workflows_api_organizations_admin__org_id__workflows_patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tokens/summary":{"get":{"tags":["User Token Usage"],"summary":"Get My Token Summary","description":"Get your own token usage summary (all workspaces or filtered by workspace_id)","operationId":"get_my_token_summary_api_tokens_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by specific workspace","title":"Workspace Id"},"description":"Filter by specific workspace"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Number of days to look back","default":30,"title":"Days"},"description":"Number of days to look back"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tokens/export":{"get":{"tags":["User Token Usage"],"summary":"Export My Token Data","description":"Export your own token usage data (all workspaces or filtered by workspace_id)","operationId":"export_my_token_data_api_tokens_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Export format: csv or json","default":"csv","title":"Format"},"description":"Export format: csv or json"},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by specific workspace","title":"Workspace Id"},"description":"Filter by specific workspace"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Number of days to look back","default":30,"title":"Days"},"description":"Number of days to look back"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tokens/workspace/{workspace_id}/sessions":{"get":{"tags":["User Token Usage"],"summary":"Get My Workspace Sessions","description":"Get detailed session breakdown for your own workspace","operationId":"get_my_workspace_sessions_api_tokens_workspace__workspace_id__sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tokens/user/{user_email}/summary":{"get":{"tags":["Admin Token Usage"],"summary":"Get User Token Summary Admin","description":"Get token usage summary for any user by email (admin only)","operationId":"get_user_token_summary_admin_api_admin_tokens_user__user_email__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_email","in":"path","required":true,"schema":{"type":"string","title":"User Email"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by specific workspace","title":"Workspace Id"},"description":"Filter by specific workspace"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Number of days to look back","default":30,"title":"Days"},"description":"Number of days to look back"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tokens/user/{user_email}/export":{"get":{"tags":["Admin Token Usage"],"summary":"Export User Token Data Admin","description":"Export token usage data for any user by email (admin only)","operationId":"export_user_token_data_admin_api_admin_tokens_user__user_email__export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_email","in":"path","required":true,"schema":{"type":"string","title":"User Email"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Export format: csv or json","default":"csv","title":"Format"},"description":"Export format: csv or json"},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by specific workspace","title":"Workspace Id"},"description":"Filter by specific workspace"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Number of days to look back","default":30,"title":"Days"},"description":"Number of days to look back"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/tokens/workspace/{workspace_id}":{"get":{"tags":["Admin Token Usage"],"summary":"Get Workspace Token Breakdown","description":"Get detailed token breakdown for a specific workspace (admin only)","operationId":"get_workspace_token_breakdown_api_admin_tokens_workspace__workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/system-summary":{"get":{"tags":["Admin"],"summary":"Get System Summary","description":"Get comprehensive system summary for super admins.\n\nReturns:\n- Total counts of users, workspaces, organizations\n- Detailed breakdown by user with workspace phase statuses","operationId":"get_system_summary_api_admin_system_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemSummaryResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/hubspot-sync":{"post":{"tags":["Admin"],"summary":"Sync All To Hubspot","description":"Re-sync every organization's HubSpot company and contacts; runs in the background.","operationId":"sync_all_to_hubspot_api_admin_hubspot_sync_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/organizations":{"get":{"tags":["Admin"],"summary":"Get Organizations Summary","description":"Get summary of all organizations","operationId":"get_organizations_summary_api_admin_organizations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/organizations/export":{"get":{"tags":["Admin"],"summary":"Export Organizations","description":"Export organizations summary in CSV or JSON format","operationId":"export_organizations_api_admin_organizations_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format","in":"query","required":false,"schema":{"enum":["csv","json"],"type":"string","description":"Export format: csv or json","default":"csv","title":"Format"},"description":"Export format: csv or json"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/system-summary/export":{"get":{"tags":["Admin"],"summary":"Export System Summary","description":"Export system summary in CSV or JSON format.\n\nCSV format includes:\n- One row per workspace with user and organization info\n- Phase completion status as boolean columns\n\nJSON format includes:\n- Complete structured data from system-summary endpoint","operationId":"export_system_summary_api_admin_system_summary_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format","in":"query","required":false,"schema":{"enum":["csv","json"],"type":"string","description":"Export format: csv or json","default":"csv","title":"Format"},"description":"Export format: csv or json"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/config":{"get":{"tags":["Admin"],"summary":"List Config Values","description":"List every registered runtime-config key with its value and registry classification.","operationId":"list_config_values_api_admin_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ConfigValueResponse"},"type":"array","title":"Response List Config Values Api Admin Config Get"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Admin"],"summary":"Update Config Value","description":"Update one registered runtime-config value (global scope, change-logged).","operationId":"update_config_value_api_admin_config_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigValueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/config/taxonomy":{"get":{"tags":["Admin"],"summary":"List Config Catalog","description":"List the runtime-config group and tag taxonomy, in tab order.\n\nNamed `taxonomy` rather than `tags` because it serves both halves — the\ngroups that drive the tabs and the cross-cutting tags. Registry-derived, so\nit reads no DB state; `db` is still taken because `get_db` yields a lazy\nsession that `require_super_admin` has already checked out, so declaring it\ncosts no extra connection and keeps the service-factory pattern intact. Declared ahead of any future `/config/{key}` route so\na literal path segment can never be captured as a config key.","operationId":"list_config_catalog_api_admin_config_taxonomy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigCatalogResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/margin-report":{"get":{"tags":["Admin Billing"],"summary":"Get Margin Report","description":"Credits debited vs COGS USD per group (super-admin, query-on-demand).","operationId":"get_margin_report_api_admin_margin_report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"since","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Include DEBIT_USAGE at/after this UTC time","title":"Since"},"description":"Include DEBIT_USAGE at/after this UTC time"},{"name":"group_by","in":"query","required":false,"schema":{"enum":["action_type","tier","model"],"type":"string","default":"action_type","title":"Group By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarginReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orgs/{org_id}":{"get":{"tags":["Admin Billing"],"summary":"Get Org Billing","description":"The support view: state, subscription, balance + buckets, ledger line-items.","operationId":"get_org_billing_api_admin_orgs__org_id__get","security":[{"HTTPBearer":[]}],"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/AdminOrgBillingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orgs/{org_id}/comp-credits":{"post":{"tags":["Admin Billing"],"summary":"Comp Credits","description":"Grant comp credits to an org (audited).","operationId":"comp_credits_api_admin_orgs__org_id__comp_credits_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompCreditsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orgs/{org_id}/adjust":{"post":{"tags":["Admin Billing"],"summary":"Adjust Balance","description":"Apply a signed admin balance adjustment (audited, reason required).","operationId":"adjust_balance_api_admin_orgs__org_id__adjust_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orgs/{org_id}/refund":{"post":{"tags":["Admin Billing"],"summary":"Refund Credits","description":"Issue a support refund of credits (audited, reason required).","operationId":"refund_credits_api_admin_orgs__org_id__refund_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orgs/{org_id}/restore":{"post":{"tags":["Admin Billing"],"summary":"Restore Account","description":"Restore a REVOKED (or lapsed) org to ACTIVE — bypasses the retention-cold\ngate that self-serve checkout enforces (audited, reason required).","operationId":"restore_account_api_admin_orgs__org_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orgs/{org_id}/founding-comp":{"post":{"tags":["Admin Billing"],"summary":"Assign Founding Comp","description":"Assign the founding-cohort comp: a Pro-grade comp subscription for\n``duration_months``, plus the org-level founding badge when ``mark_founding``\nis set (audited, reason required).","operationId":"assign_founding_comp_api_admin_orgs__org_id__founding_comp_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundingCompRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundingCompResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/waitlist":{"get":{"tags":["Admin Billing"],"summary":"List Waitlist","description":"Who is waiting on a capped tier, oldest first, with the approval decision.","operationId":"list_waitlist_api_admin_waitlist_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tier","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SubscriptionTier","description":"The capped tier whose queue to read","default":"fde_backed"},"description":"The capped tier whose queue to read"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orgs/{org_id}/fde-approve":{"post":{"tags":["Admin Billing"],"summary":"Approve Fde","description":"Grant an org the right to buy Engineer-Backed (audited, idempotent).","operationId":"approve_fde_api_admin_orgs__org_id__fde_approve_post","security":[{"HTTPBearer":[]}],"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/AdminActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Admin Billing"],"summary":"Withdraw Fde Approval","description":"Withdraw the approval (audited). Any subscription already bought stands.","operationId":"withdraw_fde_approval_api_admin_orgs__org_id__fde_approve_delete","security":[{"HTTPBearer":[]}],"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/AdminActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"tags":["Admin Billing"],"summary":"Search Users","description":"Find a user and the organization id every billing action is keyed on.\n\nSupport has an email, not an org UUID. The Firebase-backed\n``GET /api/auth/admin/users`` listing carries no organization, so it can't\nserve this lookup.","operationId":"search_users_api_admin_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Substring match on email (case-insensitive)","default":"","title":"Q"},"description":"Substring match on email (case-insensitive)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/testing/read-states":{"get":{"tags":["Admin Testing"],"summary":"List Read States","description":"Every state in the table's order, each with the read a tester grades the screen against.","operationId":"list_read_states_api_admin_testing_read_states_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ReadStateSpecResponse"},"type":"array","title":"Response List Read States Api Admin Testing Read States Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/testing/read-states/workspaces":{"get":{"tags":["Admin Testing"],"summary":"List Candidate Workspaces","description":"The live launches the caller owns: the tool writes test data only into the admin's own projects.","operationId":"list_candidate_workspaces_api_admin_testing_read_states_workspaces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReadStateWorkspaceResponse"},"title":"Response List Candidate Workspaces Api Admin Testing Read States Workspaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/testing/read-states/preview":{"post":{"tags":["Admin Testing"],"summary":"Preview Read State","description":"What would happen. Writes nothing — the confirm step is what writes.","operationId":"preview_read_state_api_admin_testing_read_states_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadStateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadStatePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/testing/read-states/apply":{"post":{"tags":["Admin Testing"],"summary":"Apply Read State","description":"Do it. Re-runs every precondition, so this cannot bypass the preview's checks.","operationId":"apply_read_state_api_admin_testing_read_states_apply_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadStateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadStateOutcomeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/admin/engineers/{user_id}/promote":{"post":{"tags":["Claura Engineers"],"summary":"Promote Engineer","description":"Make an account an assignable Claura Engineer. Idempotent — re-running\nreplaces the stored GitHub handle, which is how a typo is corrected.","operationId":"promote_engineer_api_admin_engineers__user_id__promote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteEngineerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/engineers/{user_id}/demote":{"post":{"tags":["Claura Engineers"],"summary":"Demote Engineer","description":"Offboard a Claura Engineer: un-assignable, and every engineer membership\nthey hold is deactivated. The stored GitHub handle survives — it is\nidentity, not entitlement, and grants nothing once the platform role is\ncleared.","operationId":"demote_engineer_api_admin_engineers__user_id__demote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests":{"post":{"tags":["engineer-requests"],"summary":"Create Engineer Request","operationId":"create_engineer_request_api_workspaces__workspace_id__engineer_requests_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerRequestCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["engineer-requests"],"summary":"List Engineer Requests","description":"What has been asked of an engineer on this workspace, and where it stands.\n\nThe one deliberate reversal of the founder-side blackout. Request rows stay\noff the task, dashboard, milestone and risk surfaces; this endpoint and its\ndetail sibling are the single door, and they carry a whitelist rather than a\nrow (see the schema — no engineer identity, no minutes, no audit note).\n\nMember-level, and read-only: a request's status is project state, and every\nmember of a project may see the state of the project. Whether they may ASK is\na different question, and the offers endpoint answers it.","operationId":"list_engineer_requests_api_workspaces__workspace_id__engineer_requests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FounderRequestSummary"},"title":"Response List Engineer Requests Api Workspaces  Workspace Id  Engineer Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-reports":{"post":{"tags":["engineer-requests"],"summary":"Create Engineer Report","description":"Tell us something is wrong.\n\nAny active member, any tier — including view-only and cancelled, which is the\npoint: the founder least able to use the product is the one most likely to\nneed this. So it is gated on membership only, never on a capability.","operationId":"create_engineer_report_api_workspaces__workspace_id__engineer_reports_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerReportCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/hand-back":{"get":{"tags":["engineer-requests"],"summary":"Read Hand Back","operationId":"read_hand_back_api_workspaces__workspace_id__engineer_requests__request_id__hand_back_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FounderHandBackView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Engineer Page"],"summary":"Hand Back Engineer Request","description":"Hand finished work back to the founder.\n\nLives here with the engineer's other five acts, not in the founder-facing\nfile. Same URL, same gate, same actor.\n\nTWO gates, and they are different questions. `Action.STAFF_SURFACE` asks\nwhether this person is Claura staff, and it is a property of the SURFACE.\nWhether this particular request is theirs to speak for is a property of the\nROW, needs the request loaded to answer, and so lives at the service's choke\npoint with the rest of the hand-back's invariants.","operationId":"hand_back_engineer_request_api_workspaces__workspace_id__engineer_requests__request_id__hand_back_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandBackForm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandBackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/document-diff":{"get":{"tags":["engineer-requests"],"summary":"Read Document Diff","operationId":"read_document_diff_api_workspaces__workspace_id__engineer_requests__request_id__document_diff_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDiff"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/accept":{"post":{"tags":["engineer-requests"],"summary":"Accept Hand Back","description":"Accept the work. For a build this IS the publishing confirmation — the\nonly path by which an engineer's commit reaches `main`.","operationId":"accept_hand_back_api_workspaces__workspace_id__engineer_requests__request_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FounderHandBackView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/reject":{"post":{"tags":["engineer-requests"],"summary":"Reject Hand Back","description":"Reject it, with a note saying why. The first rejection reopens the work\nwith the same engineer; the second escalates it to product, by the system.","operationId":"reject_hand_back_api_workspaces__workspace_id__engineer_requests__request_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerdictRejection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FounderHandBackView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/reply":{"post":{"tags":["engineer-requests"],"summary":"Reply To Engineer","operationId":"reply_to_engineer_api_workspaces__workspace_id__engineer_requests__request_id__reply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FounderReplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FounderRequestDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/seen":{"post":{"tags":["engineer-requests"],"summary":"Mark Outcome Seen","description":"Not account-state gated: opening a page is not acting on the request.","operationId":"mark_outcome_seen_api_workspaces__workspace_id__engineer_requests__request_id__seen_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/reviewable-documents":{"get":{"tags":["engineer-requests"],"summary":"List Reviewable Documents","operationId":"list_reviewable_documents_api_workspaces__workspace_id__reviewable_documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ArcType","default":"MVP"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewableDocuments"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-offers":{"get":{"tags":["engineer-requests"],"summary":"Get Engineer Offers","operationId":"get_engineer_offers_api_workspaces__workspace_id__engineer_offers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerOffersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}":{"get":{"tags":["engineer-requests"],"summary":"Get Engineer Request","description":"One request, with the story of how it got where it is.\n\nThe history is status edges and timestamps. Who moved it never crosses: every\nactor a founder could be told about is either themselves or \"a Claura\nengineer\", and the column that would answer it holds a staff user id.","operationId":"get_engineer_request_api_workspaces__workspace_id__engineer_requests__request_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FounderRequestDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engineer/requests":{"get":{"tags":["Engineer Workbench"],"summary":"List Requests","description":"The queue: every open request across every organization, soonest first.\n\n``include_closed`` switches the endpoint to the closed history — the\npaginated look-back view — rather than mixing resolved rows into the queue,\nwhich would serve neither screen.\n\n``assigned_to_me`` resolves from the caller's token and never from a\nclient-supplied id, so one engineer cannot enumerate another's queue.","operationId":"list_requests_api_engineer_requests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EngineerRequestStatus"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/RequestKind"},{"type":"null"}],"title":"Kind"}},{"name":"assigned_to_me","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Assigned To Me"}},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Closed"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EngineerQueueRow"},"title":"Response List Requests Api Engineer Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engineer/reports":{"get":{"tags":["Engineer Workbench"],"summary":"List Reports","description":"The reports lane: unclosed first, then newest. Paginated — reports are\nthe one table here that only grows.","operationId":"list_reports_api_engineer_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EngineerReportRow"},"title":"Response List Reports Api Engineer Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engineer/escalated":{"get":{"tags":["Engineer Workbench"],"summary":"List Escalated","description":"The escalated lane — no automation; a person decides what becomes a ticket.","operationId":"list_escalated_api_engineer_escalated_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EscalatedRow"},"title":"Response List Escalated Api Engineer Escalated Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engineer/summary":{"get":{"tags":["Engineer Workbench"],"summary":"Get Summary","description":"Lane badges in one call.","operationId":"get_summary_api_engineer_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkbenchSummary"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/engineer/engineers":{"get":{"tags":["Engineer Workbench"],"summary":"List Engineers","description":"The assign roster: who can take work, and how much they already hold.","operationId":"list_engineers_api_engineer_engineers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EngineerRosterEntry"},"type":"array","title":"Response List Engineers Api Engineer Engineers Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/engineer/requests/{request_id}/assign":{"post":{"tags":["Engineer Workbench"],"summary":"Assign Request","description":"Assign, or reassign — the lifecycle's self-edges make it the same call.\n\nThis endpoint owns the commit: the lifecycle service deliberately does not\ncommit, because its other callers compose one transaction.","operationId":"assign_request_api_engineer_requests__request_id__assign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerRequestActionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engineer/requests/{request_id}/cannot-take-on":{"post":{"tags":["Engineer Workbench"],"summary":"Cannot Take On","description":"Decline work nobody has started. The note reaches the founder.","operationId":"cannot_take_on_api_engineer_requests__request_id__cannot_take_on_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannotTakeOnRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerRequestActionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engineer/reports/{report_id}/read":{"post":{"tags":["Engineer Workbench"],"summary":"Mark Report Read","description":"Stamp the lane's first sighting. Idempotent.","operationId":"mark_report_read_api_engineer_reports__report_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"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/EngineerReportRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/engineer/reports/{report_id}/close":{"post":{"tags":["Engineer Workbench"],"summary":"Close Report","description":"Close it off. Terminal, and idempotent.","operationId":"close_report_api_engineer_reports__report_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"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/EngineerReportRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-page":{"get":{"tags":["Engineer Page"],"summary":"Get Engineer Page","description":"Everything the page renders, in one round trip.\n\nOne call rather than four because the engineer opens this page to start\nworking — a waterfall of requests, repo card and timeline would show them a\nhalf-drawn screen at the moment they most need the whole picture.","operationId":"get_engineer_page_api_workspaces__workspace_id__engineer_page_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerPageBundle"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/branch-state":{"get":{"tags":["Engineer Page"],"summary":"Get Branch State","description":"The request branch as the remote has it, read on demand.\n\nSeparate from the bundle on purpose: this is a GitHub round trip, and the\npage must draw without one. The card asks when it mounts and when the\nengineer says they pushed.","operationId":"get_branch_state_api_workspaces__workspace_id__engineer_requests__request_id__branch_state_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BranchState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/start":{"post":{"tags":["Engineer Page"],"summary":"Start Work","description":"Pick the work up. The endpoint commits — the lifecycle service must not.","operationId":"start_work_api_workspaces__workspace_id__engineer_requests__request_id__start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerRequestRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/wait-on-founder":{"post":{"tags":["Engineer Page"],"summary":"Wait On Founder","description":"Stop the clock: the founder owes an answer.","operationId":"wait_on_founder_api_workspaces__workspace_id__engineer_requests__request_id__wait_on_founder_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitOnFounderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerRequestRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/resume":{"post":{"tags":["Engineer Page"],"summary":"Resume Work","description":"Back to work; the lifecycle banks the elapsed wait on this edge.","operationId":"resume_work_api_workspaces__workspace_id__engineer_requests__request_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerRequestRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-requests/{request_id}/cannot-do":{"post":{"tags":["Engineer Page"],"summary":"Cannot Do","description":"Terminal, and the founder is told what would be needed instead.","operationId":"cannot_do_api_workspaces__workspace_id__engineer_requests__request_id__cannot_do_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannotDoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerRequestRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/engineer-access":{"post":{"tags":["Claura Engineers"],"summary":"Grant Engineer Access","description":"Give Claura permission to change this project's build.\n\nIdempotent — tapping the prompt twice is not a second decision.","operationId":"grant_engineer_access_api_workspaces__workspace_id__engineer_access_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineerGrantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Claura Engineers"],"summary":"Revoke Engineer Access","description":"Take the permission back and remove the engineer. Work stops; every record stays.\n\nThe request lifecycle's close is composed here rather than inside the grant\nservice: requests are a sibling of engineer access, not a part of it, and\nhaving one call the other costs an import cycle. It runs inside the OWNER\nbind because the rows it closes are the project's, not the acting user's.\n\nOrder is load-bearing. The open work closes first, because `revoke` decides\nwhether to end the engineer's access by asking `has_live_consent`, and that\npredicate counts open requests as well as the grant. Revoking first would\nhave it count the very requests about to be closed and leave access open\nwith nothing holding it.\n\nEvery open request closes, read-only ones included: the founder revokes from\nthe engineer's row to remove the engineer, and an open document review would\notherwise keep the membership alive through `has_live_consent`.","operationId":"revoke_engineer_access_api_workspaces__workspace_id__engineer_access_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trial/user/status":{"get":{"tags":["Trial"],"summary":"Get User Trial Status","description":"Get current user's trial status.","operationId":"get_user_trial_status_api_trial_user_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTrialStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/trial/user/is-trial":{"get":{"tags":["Trial"],"summary":"Is Trial User","description":"Check if current user is on trial.","operationId":"is_trial_user_api_trial_user_is_trial_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsTrialResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/trial/admin/user/{email}/summary":{"get":{"tags":["Trial"],"summary":"Get User Trial Summary","description":"Super admin endpoint to get trial summary for user by email.","operationId":"get_user_trial_summary_api_trial_admin_user__email__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTrialSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/workflow-step-completed":{"post":{"tags":["Analytics Tracking"],"summary":"Track Workflow Step Completed","description":"Track workflow step completion event","operationId":"track_workflow_step_completed_api_analytics_workflow_step_completed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStepCompletedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/workspace-edited":{"post":{"tags":["Analytics Tracking"],"summary":"Track Workspace Edited","description":"Track workspace edit event","operationId":"track_workspace_edited_api_analytics_workspace_edited_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEditedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/agent-suggestion-modified":{"post":{"tags":["Analytics Tracking"],"summary":"Track Agent Suggestion Modified","description":"Track agent suggestion modification event","operationId":"track_agent_suggestion_modified_api_analytics_agent_suggestion_modified_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSuggestionModifiedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/walkthrough-completed":{"post":{"tags":["Analytics Tracking"],"summary":"Track Walkthrough Completed","description":"Track walkthrough completion event","operationId":"track_walkthrough_completed_api_analytics_walkthrough_completed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalkthroughCompletedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/walkthrough-skipped":{"post":{"tags":["Analytics Tracking"],"summary":"Track Walkthrough Skipped","description":"Track walkthrough skip event","operationId":"track_walkthrough_skipped_api_analytics_walkthrough_skipped_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalkthroughSkippedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/improvement-flow-triggered":{"post":{"tags":["Analytics Tracking"],"summary":"Track Improvement Flow Triggered","description":"Track improvement/eval flow trigger event","operationId":"track_improvement_flow_triggered_api_analytics_improvement_flow_triggered_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImprovementFlowTriggeredRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/dashboard-interaction":{"post":{"tags":["Analytics Tracking"],"summary":"Track Dashboard Interaction","description":"Track dashboard widget interaction","operationId":"track_dashboard_interaction_api_analytics_dashboard_interaction_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInteractionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/drift-resolution":{"post":{"tags":["Analytics Tracking"],"summary":"Track Drift Resolution","description":"Track drift resolution action (apply, ignore)","operationId":"track_drift_resolution_api_analytics_drift_resolution_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriftResolutionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/advisor-opened":{"post":{"tags":["Analytics Tracking"],"summary":"Track Advisor Opened","description":"Track a Chat Advisor session open (advisor.opened) — the open-rate\nmetric denominator, carrying the origin (today/modeler).","operationId":"track_advisor_opened_api_analytics_advisor_opened_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorOpenedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/advisor-escalated":{"post":{"tags":["Analytics Tracking"],"summary":"Track Advisor Escalated","description":"Track escalating a staged advisor action to the modeler\n(advisor.escalated_to_modeler) — the hand-off metric.","operationId":"track_advisor_escalated_api_analytics_advisor_escalated_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorEscalatedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/advisor-action-prepared":{"post":{"tags":["Analytics Tracking"],"summary":"Track Advisor Action Prepared","description":"Track the advisor staging a move for confirm (advisor.action_prepared).","operationId":"track_advisor_action_prepared_api_analytics_advisor_action_prepared_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorActionPreparedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/advisor-action-confirmed":{"post":{"tags":["Analytics Tracking"],"summary":"Track Advisor Action Confirmed","description":"Track the founder confirming a staged advisor move\n(advisor.action_confirmed) — the conversation-to-action numerator.","operationId":"track_advisor_action_confirmed_api_analytics_advisor_action_confirmed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorActionConfirmedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/login":{"post":{"tags":["Analytics Tracking"],"summary":"Track Login","description":"Track a real login for the funnel dispatcher.\n\nDedupes on the verified Firebase token's `auth_time` — a session restore\n(cached/refreshed token, same `auth_time`) emits nothing; only a fresh\nsign-in produces a new one. A still-PENDING user never reaches this\nendpoint at all: `get_current_user` requires an ACTIVE account, so that\ncase (\"not a login, that's a signup\") is ruled out by the auth gate itself\nrather than a check here.\n\n`method` prefers the frontend's own body value over the verified Firebase\ntoken's `sign_in_provider` — the frontend distinguishes its sign-in surfaces\n(\"email\"/\"google\") in a vocabulary Firebase's own provider ids (\"password\"/\n\"google.com\") don't share, and the caller's own record of which button the\nfounder clicked is the more direct signal. Firebase remains the fallback\nwhen the body omits it, and a disagreement between the two is logged, not\nrejected — the token is verified but the provider id is still just Firebase's\nlabel for the same event.","operationId":"track_login_api_analytics_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginTrackingRequest","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/onboarding-step":{"post":{"tags":["Analytics Tracking"],"summary":"Track Onboarding Step","description":"Track one onboarding-walkthrough step for the funnel dispatcher.\n\nDedupe key is `{workspace_id}:{step}` — a second workspace's steps count\n(they are real progress for that workspace), but a re-rendered/remounted\nstep in the same workspace does not repeat. The kickoff step is emitted by\nthe backend at kickoff itself (`report_activation_to_meta`), so a report of\nit here dedupes to nothing.","operationId":"track_onboarding_step_api_analytics_onboarding_step_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/user-profile/me":{"get":{"tags":["User Profile"],"summary":"Get Current User Profile","description":"Get current user's profile.\nUsed during onboarding to pre-fill role field for invited users.\nReturns null fields if profile doesn't exist (expected for new users).","operationId":"get_current_user_profile_api_user_profile_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/user-profile/me/landing-idea":{"delete":{"tags":["User Profile"],"summary":"Clear Landing Idea","description":"Forget the claura.co idea after the first read launches successfully, so later projects start empty.","operationId":"clear_landing_idea_api_user_profile_me_landing_idea_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/user-profile/me/walkthrough":{"patch":{"tags":["User Profile"],"summary":"Update Walkthrough Status","description":"Update walkthrough completion flags for the current user.\n\nAnalytics (walkthrough_completed / walkthrough_skipped) are tracked\nvia dedicated /analytics/* endpoints from the frontend, not here.","operationId":"update_walkthrough_status_api_user_profile_me_walkthrough_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalkthroughUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/user-profile/me/walkthrough/reset":{"post":{"tags":["User Profile"],"summary":"Reset Walkthrough","description":"Reset walkthrough flags to allow replaying the tour.","operationId":"reset_walkthrough_api_user_profile_me_walkthrough_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/organization/template/{organization_id}":{"put":{"tags":["Organization Templates"],"summary":"Update Organization Template","description":"Update an existing organization template (requires super admin)","operationId":"update_organization_template_api_organization_template__organization_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationTemplateCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organization/template/{organization_id}/{document_type}/{template_type}":{"get":{"tags":["Organization Templates"],"summary":"Get Organization Template","description":"Get the organization template for a specific document type and template type (requires super admin)","operationId":"get_organization_template_api_organization_template__organization_id___document_type___template_type__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"document_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/DocumentType"}},{"name":"template_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/TemplateType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/pm/{provider}/authorize":{"get":{"tags":["PM Tool OAuth"],"summary":"Get Authorization Url","description":"The OAuth authorization URL the signed-in user visits to connect a PM tool.\n\nThe account-state check is declared on the route, so it runs before the tier gate here: a\nread-only account is told the real reason rather than sent to a plan comparison.","operationId":"get_authorization_url_api_auth_pm__provider__authorize_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PMToolProvider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMOAuthAuthorizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/pm/{provider}/callback":{"get":{"tags":["PM Tool OAuth"],"summary":"Oauth Callback","description":"Handle OAuth callback from PM tool\n\nNote: This endpoint does not require authentication because it's called by the OAuth provider.\nUser information is encoded in the state parameter.\n\nArgs:\n    provider: PM tool provider\n    code: Authorization code\n    state: State parameter containing user info\n    db: Database session\n\nReturns:\n    Redirect to frontend with success/error status","operationId":"oauth_callback_api_auth_pm__provider__callback_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PMToolProvider"}},{"name":"code","in":"query","required":true,"schema":{"type":"string","description":"Authorization code from OAuth provider","title":"Code"},"description":"Authorization code from OAuth provider"},{"name":"state","in":"query","required":true,"schema":{"type":"string","description":"State parameter for CSRF protection","title":"State"},"description":"State parameter for CSRF protection"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/pm/{provider}/status":{"get":{"tags":["PM Tool OAuth"],"summary":"Get Connection Status","description":"Whether the signed-in user is connected to this PM tool, and to which workspace.","operationId":"get_connection_status_api_auth_pm__provider__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PMToolProvider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMOAuthStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/targets/{provider}":{"get":{"tags":["PM Tool Exports"],"summary":"Get Export Targets","description":"Get available export targets (workspaces, pages) for a PM tool.","operationId":"get_export_targets_api_workspaces__workspace_id__pm_exports_targets__provider__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PMToolProvider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMExportTargetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/generate-wbs":{"post":{"tags":["PM Tool Exports"],"summary":"Generate Wbs","description":"On-demand WBS generation for the export wizard.\n\nWhen a workspace has no materialized WBS for the arc, the wizard calls this to\ngenerate + materialize it in-context, then proceeds to export. Edit-class\naction (it writes the execution plan), so it gates on PROJECT_MANAGEMENT/EDIT.","operationId":"generate_wbs_api_workspaces__workspace_id__pm_exports_generate_wbs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateWBSResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/export-sheet":{"post":{"tags":["PM Tool Exports"],"summary":"Export Wbs Sheet","description":"On-demand WBS → Google Sheet export.\n\nRenders the materialized WBS into a sheet via the same machinery as the\nDocs/Slides exports. Returns ``auth_url`` when the user must connect Google\nfirst; ``spreadsheet_url`` once exported.\n\nGated and billed as its ``google_exports.py`` siblings are: it is the same\nexport path, so a founder whose tier does not buy Google export must not\nreach it through the PM router instead. Failure is reported by RETURN VALUE\n(``{\"success\": false, \"auth_url\": ...}``), so the sentinel is what keeps an\nexport that never happened from settling as one.","operationId":"export_wbs_sheet_api_workspaces__workspace_id__pm_exports_export_sheet_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportSheetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/{provider}/delivery-tracker":{"post":{"tags":["PM Tool Exports"],"summary":"Export Delivery Tracker","description":"Export WBS as a Delivery Tracker to PM tool (synchronous, no streaming).\n\nPrefer the /stream variant for production use; this endpoint exists for\nsimple integrations that cannot consume NDJSON.","operationId":"export_delivery_tracker_api_workspaces__workspace_id__pm_exports__provider__delivery_tracker_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PMToolProvider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryTrackerExportConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/{provider}/delivery-tracker/stream":{"post":{"tags":["PM Tool Exports"],"summary":"Stream Export Delivery Tracker","description":"Stream the delivery tracker export with real-time NDJSON progress events.\n\nEach line is a JSON object with step, status, message, and optional\nprogress / result fields.","operationId":"stream_export_delivery_tracker_api_workspaces__workspace_id__pm_exports__provider__delivery_tracker_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PMToolProvider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryTrackerExportConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/{export_id}/retry/stream":{"post":{"tags":["PM Tool Exports"],"summary":"Retry Export Stream","description":"Retry a failed export with streaming NDJSON progress events.\n\nIf the export was cleaned up (external_project_id is null), immediately\nemits an error event with action_hint \"start_fresh\".","operationId":"retry_export_stream_api_workspaces__workspace_id__pm_exports__export_id__retry_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"export_id","in":"path","required":true,"schema":{"type":"string","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/{export_id}/cleanup":{"post":{"tags":["PM Tool Exports"],"summary":"Cleanup Export","description":"Clean up a partial/failed export by deleting created items from the PM tool.\n\nRemoves all items that were created during the export from the external PM tool\nand marks the export record as failed.","operationId":"cleanup_export_api_workspaces__workspace_id__pm_exports__export_id__cleanup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"export_id","in":"path","required":true,"schema":{"type":"string","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CleanupExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/wbs-preview":{"get":{"tags":["PM Tool Exports"],"summary":"Get Wbs Preview","description":"Get WBS preview data from the materialized DB rows for the PM export wizard.\n\nReads the same live source the export path uses (`WBSDbReader`), so the\npreview can't diverge from what actually gets exported.","operationId":"get_wbs_preview_api_workspaces__workspace_id__pm_exports_wbs_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WBSPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/history":{"get":{"tags":["PM Tool Exports"],"summary":"Get Export History","description":"Get export history for a workspace + arc, optionally filtered by provider.","operationId":"get_export_history_api_workspaces__workspace_id__pm_exports_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PMToolProvider"},{"type":"null"}],"title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMExportHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/connection":{"get":{"tags":["PM Tool Exports"],"summary":"Get Active Connection","operationId":"get_active_connection_api_workspaces__workspace_id__pm_exports_connection_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/pm-exports/connection/{provider}/disconnect":{"post":{"tags":["PM Tool Exports"],"summary":"Disconnect Connection","description":"Unhook Claura from the founder's own Jira/Linear account.\n\nDeliberately outside the account-state guard the exports above take: a\nfounder who has stopped paying must still be able to sever our reach into a\nthird-party account of theirs.","operationId":"disconnect_connection_api_workspaces__workspace_id__pm_exports_connection__provider__disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/PMToolProvider"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PMDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications":{"get":{"tags":["Notifications"],"summary":"List Notifications","operationId":"list_notifications_api_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"filter","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NotificationFilter","default":"all"}},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/mark-read":{"post":{"tags":["Notifications"],"summary":"Mark Notifications Read","operationId":"mark_notifications_read_api_notifications_mark_read_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkReadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/notifications/mark-all-read":{"post":{"tags":["Notifications"],"summary":"Mark All Notifications Read","operationId":"mark_all_notifications_read_api_notifications_mark_all_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkReadResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/notifications/{notification_id}/resolve":{"post":{"tags":["Notifications"],"summary":"Resolve Notification Click","operationId":"resolve_notification_click_api_notifications__notification_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationResolveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push-subscriptions":{"post":{"tags":["Push Notifications"],"summary":"Register Push Subscription","operationId":"register_push_subscription_api_push_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPushSubscriptionRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/push-subscriptions/unregister":{"post":{"tags":["Push Notifications"],"summary":"Unregister Push Subscription","operationId":"unregister_push_subscription_api_push_subscriptions_unregister_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnregisterPushSubscriptionRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/workspaces/{workspace_id}/dashboard":{"get":{"tags":["Dashboard"],"summary":"Get Dashboard","operationId":"get_dashboard_api_workspaces__workspace_id__dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/dashboard/activity":{"get":{"tags":["Dashboard"],"summary":"Get Activity Feed","operationId":"get_activity_feed_api_workspaces__workspace_id__dashboard_activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityEventResponse"},"title":"Response Get Activity Feed Api Workspaces  Workspace Id  Dashboard Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/dashboard/overview":{"get":{"tags":["Dashboard"],"summary":"Get Dashboard Overview","operationId":"get_dashboard_overview_api_workspaces__workspace_id__dashboard_overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/dashboard/sync":{"post":{"tags":["Dashboard"],"summary":"Sync Dashboard Now","description":"Founder-triggered \"Sync now\" — runs an inbound sync for the active PM\nconnection and returns the outcome so the client can both refetch fresh\nstatus and give the founder real feedback (synced N / up to date / failed),\nrather than a blind success. Skips the on-open cooldown; a no-op when nothing\nis connected.","operationId":"sync_dashboard_now_api_workspaces__workspace_id__dashboard_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncNowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/health":{"get":{"tags":["Dashboard"],"summary":"Get Workspace Health","operationId":"get_workspace_health_api_workspaces__workspace_id__health_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceHealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/traction-signals":{"post":{"tags":["Dashboard"],"summary":"Log Traction Signal","operationId":"log_traction_signal_api_workspaces__workspace_id__traction_signals_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogTractionSignalRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TractionSignalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Dashboard"],"summary":"List Traction Signals","operationId":"list_traction_signals_api_workspaces__workspace_id__traction_signals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TractionSignalResponse"},"title":"Response List Traction Signals Api Workspaces  Workspace Id  Traction Signals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/dashboard/score-history":{"get":{"tags":["Dashboard"],"summary":"Get Score History","operationId":"get_score_history_api_workspaces__workspace_id__dashboard_score_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/walkthrough/complete":{"post":{"tags":["Dashboard"],"summary":"Complete Walkthrough","operationId":"complete_walkthrough_api_workspaces__workspace_id__walkthrough_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalkthroughCompleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/activity-events":{"post":{"tags":["Dashboard"],"summary":"Create Activity Event","operationId":"create_activity_event_api_workspaces__workspace_id__activity_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateActivityEventRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/scenario-plan":{"get":{"tags":["Scenario Modeler"],"summary":"Get Scenario Plan","operationId":"get_scenario_plan_api_workspaces__workspace_id__scenario_plan_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioPlanBundleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Scenario Modeler"],"summary":"Start Scenario Plan","operationId":"start_scenario_plan_api_workspaces__workspace_id__scenario_plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}},{"name":"origin","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ActivityOrigin"},{"type":"null"}],"description":"Surface attribution for the emitted event (e.g. advisor)","title":"Origin"},"description":"Surface attribution for the emitted event (e.g. advisor)"}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Scenario Modeler"],"summary":"Discard Scenario Plan","operationId":"discard_scenario_plan_api_workspaces__workspace_id__scenario_plan_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/scenario-plan/levers":{"post":{"tags":["Scenario Modeler"],"summary":"Add Scenario Lever","operationId":"add_scenario_lever_api_workspaces__workspace_id__scenario_plan_levers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddLeverRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioLeverResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/scenario-plan/levers/{lever_id}":{"patch":{"tags":["Scenario Modeler"],"summary":"Update Scenario Lever","operationId":"update_scenario_lever_api_workspaces__workspace_id__scenario_plan_levers__lever_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"lever_id","in":"path","required":true,"schema":{"type":"string","title":"Lever Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLeverRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioLeverResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Scenario Modeler"],"summary":"Delete Scenario Lever","operationId":"delete_scenario_lever_api_workspaces__workspace_id__scenario_plan_levers__lever_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"lever_id","in":"path","required":true,"schema":{"type":"string","title":"Lever Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/scenario-plan/apply":{"post":{"tags":["Scenario Modeler"],"summary":"Apply Scenario Plan","operationId":"apply_scenario_plan_api_workspaces__workspace_id__scenario_plan_apply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}},{"name":"origin","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ActivityOrigin"},{"type":"null"}],"description":"Surface attribution for the emitted event (e.g. advisor)","title":"Origin"},"description":"Surface attribution for the emitted event (e.g. advisor)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/scenario-plan/undo":{"post":{"tags":["Scenario Modeler"],"summary":"Undo Scenario Plan","operationId":"undo_scenario_plan_api_workspaces__workspace_id__scenario_plan_undo_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}},{"name":"origin","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ActivityOrigin"},{"type":"null"}],"description":"Surface attribution for the emitted event (e.g. advisor)","title":"Origin"},"description":"Surface attribution for the emitted event (e.g. advisor)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioPlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/criteria/generate-sync":{"post":{"tags":["Criteria & KPIs"],"summary":"Generate Criteria Sync","operationId":"generate_criteria_sync_api_workspaces__workspace_id__criteria_generate_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateCriteriaRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Generate Criteria Sync Api Workspaces  Workspace Id  Criteria Generate Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/criteria/{criterion_id}/agree":{"patch":{"tags":["Criteria & KPIs"],"summary":"Agree Criterion","operationId":"agree_criterion_api_workspaces__workspace_id__criteria__criterion_id__agree_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"criterion_id","in":"path","required":true,"schema":{"type":"string","title":"Criterion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriterionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/criteria/{criterion_id}/modify":{"patch":{"tags":["Criteria & KPIs"],"summary":"Modify Criterion","operationId":"modify_criterion_api_workspaces__workspace_id__criteria__criterion_id__modify_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"criterion_id","in":"path","required":true,"schema":{"type":"string","title":"Criterion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifyCriterionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CriterionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/criteria/auto-accept":{"post":{"tags":["Criteria & KPIs"],"summary":"Auto Accept Criteria","operationId":"auto_accept_criteria_api_workspaces__workspace_id__criteria_auto_accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoAcceptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CriterionResponse"},"title":"Response Auto Accept Criteria Api Workspaces  Workspace Id  Criteria Auto Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/criteria/bulk-accept":{"post":{"tags":["Criteria & KPIs"],"summary":"Bulk Accept","operationId":"bulk_accept_api_workspaces__workspace_id__criteria_bulk_accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAcceptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAcceptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/kpis/{kpi_id}/accept":{"patch":{"tags":["Criteria & KPIs"],"summary":"Accept Kpi","operationId":"accept_kpi_api_workspaces__workspace_id__kpis__kpi_id__accept_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kpi_id","in":"path","required":true,"schema":{"type":"string","title":"Kpi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/kpis/{kpi_id}/reject":{"patch":{"tags":["Criteria & KPIs"],"summary":"Reject Kpi","operationId":"reject_kpi_api_workspaces__workspace_id__kpis__kpi_id__reject_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kpi_id","in":"path","required":true,"schema":{"type":"string","title":"Kpi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/kpis/{kpi_id}":{"patch":{"tags":["Criteria & KPIs"],"summary":"Update Kpi","operationId":"update_kpi_api_workspaces__workspace_id__kpis__kpi_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kpi_id","in":"path","required":true,"schema":{"type":"string","title":"Kpi Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKPIRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/kpis/{kpi_id}/set-north-star":{"post":{"tags":["Criteria & KPIs"],"summary":"Set North Star Kpi","description":"Promote a KPI to north-star for its (workspace, arc).\n\nAtomically clears any existing north-star in the same arc, sets the target,\nand emits a kpi.set_north_star activity event. Idempotent.","operationId":"set_north_star_kpi_api_workspaces__workspace_id__kpis__kpi_id__set_north_star_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kpi_id","in":"path","required":true,"schema":{"type":"string","title":"Kpi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KPIResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/consolidation":{"get":{"tags":["Criteria & KPIs"],"summary":"Get Consolidation Summary","operationId":"get_consolidation_summary_api_workspaces__workspace_id__consolidation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Consolidation Summary Api Workspaces  Workspace Id  Consolidation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/consolidation/sign-off":{"post":{"tags":["Criteria & KPIs"],"summary":"Sign Off","operationId":"sign_off_api_workspaces__workspace_id__consolidation_sign_off_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignOffResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/consolidation/sign-off-stage":{"post":{"tags":["Criteria & KPIs"],"summary":"Sign Off Stage","operationId":"sign_off_stage_api_workspaces__workspace_id__consolidation_sign_off_stage_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageSignOffRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignOffResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/tasks":{"get":{"tags":["Tasks"],"summary":"List Tasks","operationId":"list_tasks_api_workspaces__workspace_id__tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskStatus"},{"type":"null"}],"title":"Status"}},{"name":"milestone_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Milestone Id"}},{"name":"granularity","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskGranularity"},{"type":"null"}],"title":"Granularity"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TaskSource"},{"type":"null"}],"title":"Source"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EnrichedTaskResponse"},"title":"Response List Tasks Api Workspaces  Workspace Id  Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Tasks"],"summary":"Create Task","operationId":"create_task_api_workspaces__workspace_id__tasks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/tasks/{task_id}":{"get":{"tags":["Tasks"],"summary":"Get Task","operationId":"get_task_api_workspaces__workspace_id__tasks__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Tasks"],"summary":"Update Task","operationId":"update_task_api_workspaces__workspace_id__tasks__task_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Tasks"],"summary":"Delete Task","operationId":"delete_task_api_workspaces__workspace_id__tasks__task_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/tasks/bulk-status":{"post":{"tags":["Tasks"],"summary":"Bulk Update Task Status","operationId":"bulk_update_task_status_api_workspaces__workspace_id__tasks_bulk_status_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTaskStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaskResponse"},"title":"Response Bulk Update Task Status Api Workspaces  Workspace Id  Tasks Bulk Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/milestones":{"get":{"tags":["Milestones"],"summary":"List Milestones","operationId":"list_milestones_api_workspaces__workspace_id__milestones_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}},{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Hidden"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EnrichedMilestoneResponse"},"title":"Response List Milestones Api Workspaces  Workspace Id  Milestones Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Milestones"],"summary":"Create Milestone","operationId":"create_milestone_api_workspaces__workspace_id__milestones_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/milestones/{milestone_id}":{"patch":{"tags":["Milestones"],"summary":"Update Milestone","operationId":"update_milestone_api_workspaces__workspace_id__milestones__milestone_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"milestone_id","in":"path","required":true,"schema":{"type":"string","title":"Milestone Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Milestones"],"summary":"Delete Milestone","operationId":"delete_milestone_api_workspaces__workspace_id__milestones__milestone_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"milestone_id","in":"path","required":true,"schema":{"type":"string","title":"Milestone Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/playbook/generate":{"post":{"tags":["Playbook"],"summary":"Generate Playbook","description":"Generate (or, with an instruction, regenerate) the playbook synchronously,\nreplacing its tasks/milestones, then return.","operationId":"generate_playbook_api_workspaces__workspace_id__playbook_generate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratePlaybookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratePlaybookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/risks":{"get":{"tags":["Risks"],"summary":"List Risks","operationId":"list_risks_api_workspaces__workspace_id__risks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RiskResponse"},"title":"Response List Risks Api Workspaces  Workspace Id  Risks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Risks"],"summary":"Create Risk","operationId":"create_risk_api_workspaces__workspace_id__risks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/risks/{risk_id}":{"patch":{"tags":["Risks"],"summary":"Update Risk","operationId":"update_risk_api_workspaces__workspace_id__risks__risk_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"risk_id","in":"path","required":true,"schema":{"type":"string","title":"Risk Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/risks/resolved":{"get":{"tags":["Risks"],"summary":"List Resolved Risks","operationId":"list_resolved_risks_api_workspaces__workspace_id__risks_resolved_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RiskResponse"},"title":"Response List Resolved Risks Api Workspaces  Workspace Id  Risks Resolved Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/risks/{risk_id}/resolve":{"post":{"tags":["Risks"],"summary":"Resolve Risk","operationId":"resolve_risk_api_workspaces__workspace_id__risks__risk_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"risk_id","in":"path","required":true,"schema":{"type":"string","title":"Risk Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveRiskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/budget":{"get":{"tags":["Budget"],"summary":"Get Budget","operationId":"get_budget_api_workspaces__workspace_id__budget_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Budget"],"summary":"Update Budget","operationId":"update_budget_api_workspaces__workspace_id__budget_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/advisor/interact/stream":{"post":{"tags":["Advisor"],"summary":"Advisor Interact Stream","operationId":"advisor_interact_stream_api_workspaces__workspace_id__advisor_interact_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorInteractRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/advisor/actions/confirm":{"post":{"tags":["Advisor"],"summary":"Advisor Confirm Action","description":"Commit a staged advisor action. Same guard stack as the\nconversation endpoint (EDITOR + trial token enforcement); the actual\nwrite goes through the workspace owner's org context (`with access.tenant:`),\nexactly like every other workspace-scoped write.","operationId":"advisor_confirm_action_api_workspaces__workspace_id__advisor_actions_confirm_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ConfirmApplyScenarioPlan"},{"$ref":"#/components/schemas/ConfirmUndoScenarioPlan"},{"$ref":"#/components/schemas/ConfirmUpdateBudget"},{"$ref":"#/components/schemas/ConfirmLogEvidence"},{"$ref":"#/components/schemas/ConfirmUndoEvidence"},{"$ref":"#/components/schemas/ConfirmApproveLaunchMessage"},{"$ref":"#/components/schemas/ConfirmApproveRooms"}],"discriminator":{"propertyName":"action_type","mapping":{"apply_scenario_plan":"#/components/schemas/ConfirmApplyScenarioPlan","undo_scenario_plan":"#/components/schemas/ConfirmUndoScenarioPlan","update_budget":"#/components/schemas/ConfirmUpdateBudget","log_evidence":"#/components/schemas/ConfirmLogEvidence","undo_evidence":"#/components/schemas/ConfirmUndoEvidence","approve_launch_message":"#/components/schemas/ConfirmApproveLaunchMessage","approve_rooms":"#/components/schemas/ConfirmApproveRooms"}},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/advisor/history":{"get":{"tags":["Advisor"],"summary":"Get Advisor History","description":"Load the persisted advisor transcript for this (workspace, arc).\n\nThe advisor is non-phase, so it can't use the generic\n`/chat-history/{agent_type}` endpoint — that maps the agent to a phase and\nenforces phase permission, rejecting `ADVISOR`. These endpoints reuse the\nsame service but with the advisor's workspace-level auth (like the stream).\n\nVIEWER, not EDITOR: reading is the floor every member stands on, and gates\nrestrict what you can do, not what you can see. Requiring EDITOR here is what\nforced the advisor page to bounce a viewer away rather than render read-only.\nThe three mutating advisor routes stay EDITOR.","operationId":"get_advisor_history_api_workspaces__workspace_id__advisor_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetChatHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Advisor"],"summary":"Save Advisor History","description":"Persist the advisor transcript after a turn. EDITOR — matches the\nconversation endpoint that produced it. An empty save is a no-op, to guard against\nraces.","operationId":"save_advisor_history_api_workspaces__workspace_id__advisor_history_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Messages"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveChatHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/materials":{"post":{"tags":["diagnosis"],"summary":"Ingest Materials","description":"Ingest a materials manifest — per-item isolation, 200 with per-item states.\n\nThe one request-level rejection is a 429: the service rate-limits per (actor,\nworkspace), because the per-arc caps bound what a manifest can store, not how\noften one may be submitted.","operationId":"ingest_materials_api_workspaces__workspace_id__diagnosis_materials_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestMaterialsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["diagnosis"],"summary":"List Materials","description":"List the project's diagnosis sources — the FE tray re-hydrates from this on refresh.","operationId":"list_materials_api_workspaces__workspace_id__diagnosis_materials_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis":{"get":{"tags":["diagnosis"],"summary":"Get Diagnosis","description":"The full diagnosis payload. VIEWER-gated — reading a diagnosis spends\nnothing. Typed 404 until a diagnosis row exists.","operationId":"get_diagnosis_api_workspaces__workspace_id__diagnosis_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/state":{"get":{"tags":["diagnosis"],"summary":"Get Diagnosis Flow State","description":"Active job + diagnosis + plan in one read — the placement snapshot.\n\nThe frontend guard derived a founder's position from three separate\nrequests, each keyed off the workspace id so none could start until the\nworkspace list resolved: two serial round-trips before first paint, on\nevery cold load. It also meant the three answers could disagree if a job\ncompleted between them.\n\nEvery field is nullable and this never 404s — absence is the normal state\nfor most of the flow, not an error. VIEWER-gated like the three endpoints\nit replaces, which stay for the screens that need one artifact.\n\nONE-SHOT, NOT A POLL. This answers \"where is this founder\" on a cold load\nand is read once; `GET /jobs/{job_id}` remains the progress poll while a\nrun is in flight. The two are not interchangeable: only the job endpoint\nstamps `last_observed_at`, so a screen that polled this one instead would\nleave every job looking unobserved and email a completion notice to a\nfounder who sat and watched the whole reveal.","operationId":"get_diagnosis_flow_state_api_workspaces__workspace_id__diagnosis_state_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisFlowStateView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/plan":{"get":{"tags":["diagnosis"],"summary":"Get Diagnosis Plan","description":"The plan artifact — content + live task statuses. VIEWER-gated; typed\n404 until a plan exists. Cards are informational; kickoff ships with the\npayment gate.","operationId":"get_diagnosis_plan_api_workspaces__workspace_id__diagnosis_plan_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisPlanView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/materials/{source_id}":{"get":{"tags":["diagnosis"],"summary":"Get Material","description":"One submitted material's full text — what a chat chip for pasted text opens.","operationId":"get_material_api_workspaces__workspace_id__diagnosis_materials__source_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisMaterialContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["diagnosis"],"summary":"Delete Material","description":"Remove one submitted diagnosis source — the intake tray's remove/replace.\n\nEDITOR-gated (it mutates the workspace's materials). Workspace-scoped: a source\nid that isn't found under this project is a typed 404, never a cross-project\ndelete.","operationId":"delete_material_api_workspaces__workspace_id__diagnosis_materials__source_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/jobs":{"post":{"tags":["diagnosis"],"summary":"Launch Diagnosis Job","description":"Launch a durable diagnosis job.\n\nThe read runs server-side and survives disconnects; the FE polls\nGET /jobs/{id}. Idempotent: an active job of the same kind is returned\ninstead of duplicated (double-tap / second device). On the org's free\nonboarding project nothing gates the launch. On a metered project a new\njob is refused with 429 ``billing.credit_edge`` when the owner's org is out\nof credits or has no plan; adopting an active job is never gated. A project\nwith no onboarding mode refuses a new job with 400 ``not_an_onboarding_project``,\nand a kicked-off project with 409 ``onboarding_complete``. A BACKFILL launch\nretries a draft that failed behind a made brand, else 409\n``backfill_not_retryable``; the brand has its own route.","operationId":"launch_diagnosis_job_api_workspaces__workspace_id__diagnosis_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchDiagnosisJobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisJobView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/answers":{"post":{"tags":["diagnosis"],"summary":"Answer Diagnosis Questions","description":"The founder's one round of answers to their read's blockers: stored as a\nfenced source, then a rescore launches. Gated and metered like any read.","operationId":"answer_diagnosis_questions_api_workspaces__workspace_id__diagnosis_answers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisAnswersRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisJobView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/brand":{"post":{"tags":["diagnosis"],"summary":"Launch Brand","description":"Name → Continue: the kickoff. Passes the kickoff gate, then starts the brand\njob and the backfill behind it. Idempotent — an active brand job is adopted.","operationId":"launch_brand_api_workspaces__workspace_id__diagnosis_brand_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisJobView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/kickoff/complete":{"post":{"tags":["diagnosis"],"summary":"Complete Kickoff","description":"Brand → Continue: once the backfill drafted the project, stamp the kickoff,\nreport the activation once, and return where to land the founder.","operationId":"complete_kickoff_api_workspaces__workspace_id__diagnosis_kickoff_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KickoffCompleteRequest","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KickoffCompleteView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/jobs/active":{"get":{"tags":["diagnosis"],"summary":"Get Active Diagnosis Job","description":"The FE re-adoption seam: the most recent queued/running job, else a\ntyped 404 (the FE's 404-tolerance resolves that to 'nothing in flight').","operationId":"get_active_diagnosis_job_api_workspaces__workspace_id__diagnosis_jobs_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisJobView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/jobs/{job_id}":{"get":{"tags":["diagnosis"],"summary":"Get Diagnosis Job","description":"Poll a job — stamps last_observed_at for away detection.","operationId":"get_diagnosis_job_api_workspaces__workspace_id__diagnosis_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisJobView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/diagnosis/jobs/{job_id}/notify":{"post":{"tags":["diagnosis"],"summary":"Notify Diagnosis Job","description":"The 60s escape opt-in — 'email me when it's ready, safe to close'.","operationId":"notify_diagnosis_job_api_workspaces__workspace_id__diagnosis_jobs__job_id__notify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosisJobView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/{surface}/staleness":{"get":{"tags":["builds"],"summary":"Get Build Staleness","description":"What changed since the surface's build was made, for its \"Update to match?\" card.","operationId":"get_build_staleness_api_workspaces__workspace_id__builds__surface__staleness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"arc","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ArcType","default":"MVP"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StalenessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/{surface}/update":{"post":{"tags":["builds"],"summary":"Update Build","description":"The card's button: a build told what changed. Gated like any build.","operationId":"update_build_api_workspaces__workspace_id__builds__surface__update_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"arc","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ArcType","default":"MVP"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBuildResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/prototype/analytics":{"get":{"tags":["builds"],"summary":"Get Prototype Analytics","description":"The app's usage against its activation funnel; looking changes nothing.","operationId":"get_prototype_analytics_api_workspaces__workspace_id__builds_prototype_analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ArcType","default":"MVP"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrototypeAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/prototype/funnel":{"put":{"tags":["builds"],"summary":"Rename Prototype Funnel","description":"The founder renames the steps the app counts; the app counts the new ones from its next build.","operationId":"rename_prototype_funnel_api_workspaces__workspace_id__builds_prototype_funnel_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ArcType","default":"MVP"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrototypeFunnelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrototypeAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/{surface}":{"get":{"tags":["builds"],"summary":"Get Builds","description":"The published page and the build staged on top of it.","operationId":"get_builds_api_workspaces__workspace_id__builds__surface__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"arc","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ArcType","default":"MVP"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["builds"],"summary":"Start Build","description":"Start a build and run its first turn. 201 when it started; 200 when a repeat of the\nrequest got the build already under way back. Gated before anything exists.","operationId":"start_build_api_workspaces__workspace_id__builds__surface__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"arc","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ArcType","default":"MVP"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBuildRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBuildResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/{surface}/deploy":{"post":{"tags":["builds"],"summary":"Deploy Build","description":"Publish the current page again from main. Editor+, because it puts a page live.","operationId":"deploy_build_api_workspaces__workspace_id__builds__surface__deploy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"arc","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ArcType","default":"MVP"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/{surface}/{version_id}/preview":{"get":{"tags":["builds"],"summary":"Get Build Preview Screenshot","description":"Serve one screenshot the builder captured, as PNG.\n\nThe client-echoed path is untrusted, so it is checked against this build's storage prefix first.","operationId":"get_build_preview_screenshot_api_workspaces__workspace_id__builds__surface___version_id__preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","description":"Storage path from a preview_screenshot tool result","title":"Path"},"description":"Storage path from a preview_screenshot tool result"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/{surface}/{version_id}/confirm":{"post":{"tags":["builds"],"summary":"Confirm Build","description":"Publish the build and make it the current page.","operationId":"confirm_build_api_workspaces__workspace_id__builds__surface___version_id__confirm_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmBuildRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/{surface}/{version_id}/retry":{"post":{"tags":["builds"],"summary":"Retry Build","description":"A failed build's retry: a new build asked for the same thing. Gated like any build.","operationId":"retry_build_api_workspaces__workspace_id__builds__surface___version_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBuildResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/builds/{surface}/{version_id}/resolve-stale":{"post":{"tags":["builds"],"summary":"Resolve Stale Build","description":"Hand a build whose branch fell behind main to an engineer — an ask like any other.","operationId":"resolve_stale_build_api_workspaces__workspace_id__builds__surface___version_id__resolve_stale_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"surface","in":"path","required":true,"schema":{"$ref":"#/components/schemas/BuildSurface"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EngineerRequestResponse"},{"type":"null"}],"title":"Response Resolve Stale Build Api Workspaces  Workspace Id  Builds  Surface   Version Id  Resolve Stale Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch":{"get":{"tags":["launch"],"summary":"Get Launch","operationId":"get_launch_api_workspaces__workspace_id__launch_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__launch__LaunchView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/page/recent":{"get":{"tags":["launch"],"summary":"Get Recent Page","operationId":"get_recent_page_api_workspaces__workspace_id__launch_page_recent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchPageRecentView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/message/publish":{"post":{"tags":["launch"],"summary":"Publish Message","operationId":"publish_message_api_workspaces__workspace_id__launch_message_publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagePublishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagePublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/message/draft":{"post":{"tags":["launch"],"summary":"Draft First Message","description":"Before any message: 202 once Claura's first message is on the launch thread or being written (the CMO\nis asked only when neither); 409 ``launch.message_already_approved`` once one is published.","operationId":"draft_first_message_api_workspaces__workspace_id__launch_message_draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/places":{"put":{"tags":["launch"],"summary":"Keep Places","description":"The places the founder keeps, Claura's and their own: the first approval and every edit after.","operationId":"keep_places_api_workspaces__workspace_id__launch_places_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacesView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/places/first":{"post":{"tags":["launch"],"summary":"Find First Places","description":"On a live launch with no places: 202 once Claura's first places are on the launch thread or being found.\nThe CMO is asked at most once; it never refuses, so a page that asks on its own never shows an error.","operationId":"find_first_places_api_workspaces__workspace_id__launch_places_first_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/places/find-more":{"post":{"tags":["launch"],"summary":"Find More Places","description":"Ask the CMO for more places; they arrive as its places card. 409 while it is already looking or at work.","operationId":"find_more_places_api_workspaces__workspace_id__launch_places_find_more_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/posts/{piece_id}/approve":{"post":{"tags":["launch"],"summary":"Approve Post","description":"Founder approval of one post — a new post gets its tracked link here; a redrafted one keeps its link.","operationId":"approve_post_api_workspaces__workspace_id__launch_posts__piece_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"piece_id","in":"path","required":true,"schema":{"type":"string","title":"Piece Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchPieceView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/posts/{piece_id}/posted":{"post":{"tags":["launch"],"summary":"Mark Post Posted","description":"The founder says this post went out: 400 ``piece_not_approved`` on a draft, 409\n``launch.page_not_live`` before the page its link points at is published.","operationId":"mark_post_posted_api_workspaces__workspace_id__launch_posts__piece_id__posted_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"piece_id","in":"path","required":true,"schema":{"type":"string","title":"Piece Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchPieceView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/posts/{piece_id}/media/{position}/retry":{"post":{"tags":["launch"],"summary":"Retry Post Media","description":"Make a post's failed image again; the post comes back with that slot processing. 409\n``post_media.processing`` while it is already being made, ``post_media.posted`` once the post\nis out, and the credit-edge error before anything starts when the account cannot pay for it.","operationId":"retry_post_media_api_workspaces__workspace_id__launch_posts__piece_id__media__position__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"piece_id","in":"path","required":true,"schema":{"type":"string","title":"Piece Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","maximum":32767,"minimum":0,"description":"The media slot's position on the post","title":"Position"},"description":"The media slot's position on the post"},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/posts/{piece_id}/media/{position}/regenerate":{"post":{"tags":["launch"],"summary":"Regenerate Post Media","description":"A new image for the post as its next version; the post comes back with that slot processing. A\npost from before media gets its slot here. 409 ``post_media.processing``, ``post_media.text_only``\nor ``post_media.posted``, and the credit-edge error before anything starts.","operationId":"regenerate_post_media_api_workspaces__workspace_id__launch_posts__piece_id__media__position__regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"piece_id","in":"path","required":true,"schema":{"type":"string","title":"Piece Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","maximum":32767,"minimum":0,"description":"The media slot's position on the post","title":"Position"},"description":"The media slot's position on the post"},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/posts/{piece_id}/media/{position}/edit":{"post":{"tags":["launch"],"summary":"Edit Post Media","description":"The founder's described change applied to the current image, as the next version; the post\ncomes back with that slot processing. 422 ``post_media.prompt_empty`` for a blank change, and the\nsame refusals as a new image.","operationId":"edit_post_media_api_workspaces__workspace_id__launch_posts__piece_id__media__position__edit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"piece_id","in":"path","required":true,"schema":{"type":"string","title":"Piece Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","maximum":32767,"minimum":0,"description":"The media slot's position on the post","title":"Position"},"description":"The media slot's position on the post"},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/posts/{piece_id}/media/{position}/video":{"post":{"tags":["launch"],"summary":"Make Post Media Video","description":"A new clip for a video post, from the image its clip came from, as the slot's next version; the post\ncomes back with the slot processing a video. An image post becomes a video post through its format.\n409 ``post_media.processing``, ``post_media.format_mismatch`` on a post that is not a video post or\n``post_media.posted``, 404 ``media_asset.not_found`` with no image to animate, and the credit-edge error\nbefore anything starts.","operationId":"make_post_media_video_api_workspaces__workspace_id__launch_posts__piece_id__media__position__video_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"piece_id","in":"path","required":true,"schema":{"type":"string","title":"Piece Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","maximum":32767,"minimum":0,"description":"The media slot's position on the post","title":"Position"},"description":"The media slot's position on the post"},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/posts/{piece_id}/media/{position}/use":{"post":{"tags":["launch"],"summary":"Use Post Media Version","description":"An earlier version of the post's format becomes the one it shows at once, with nothing made or\ncharged. 404 ``media_version.not_found`` for a version the slot does not have, 409\n``post_media.format_mismatch`` for an image on a video post or a clip on an image post.","operationId":"use_post_media_version_api_workspaces__workspace_id__launch_posts__piece_id__media__position__use_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"piece_id","in":"path","required":true,"schema":{"type":"string","title":"Piece Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","maximum":32767,"minimum":0,"description":"The media slot's position on the post","title":"Position"},"description":"The media slot's position on the post"},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUseVersionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/calls":{"post":{"tags":["launch"],"summary":"Log Call","description":"Log one call. Append-only evidence — a correction is a new entry, never an edit — and,\nonce the launch has a read, the read is written again with it.","operationId":"log_call_api_workspaces__workspace_id__launch_calls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogCallRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/drift/update-site":{"post":{"tags":["launch"],"summary":"Update Site For Drift","description":"Fix a page that stopped making the message's promise: starts a landing build told which\npromise to keep. Gated like any build.","operationId":"update_site_for_drift_api_workspaces__workspace_id__launch_drift_update_site_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBuildResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/read/next-steps/{step_id}/start":{"post":{"tags":["launch"],"summary":"Start Next Step Change","description":"Start the read's proposed change to the message, places or posts on the CMO's thread.\n409 while the CMO or the page builder is still at work.","operationId":"start_next_step_change_api_workspaces__workspace_id__launch_read_next_steps__step_id__start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartChangeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/read/next-steps/{step_id}/start-page":{"post":{"tags":["launch"],"summary":"Start Next Step Page Change","description":"Start the read's proposed change to the page on the page builder; the live page stays up.\n409 while the CMO or the page builder is still at work.","operationId":"start_next_step_page_change_api_workspaces__workspace_id__launch_read_next_steps__step_id__start_page_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartChangeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/launch/read/next-steps/{step_id}/done":{"post":{"tags":["launch"],"summary":"Mark Next Step Done","description":"The founder did a step Claura cannot see them do — emailing their waitlist the\nprototype, say. Steps Claura can see (a prototype build, enough calls) tick themselves.","operationId":"mark_next_step_done_api_workspaces__workspace_id__launch_read_next_steps__step_id__done_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NextStepView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/plans":{"get":{"tags":["social"],"summary":"List Plans","operationId":"list_plans_api_workspaces__workspace_id__social_plans_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPlansView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["social"],"summary":"Create Plan","operationId":"create_plan_api_workspaces__workspace_id__social_plans_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlanRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPlanDetailView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/plans/{plan_id}":{"get":{"tags":["social"],"summary":"Get Plan","operationId":"get_plan_api_workspaces__workspace_id__social_plans__plan_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPlanDetailView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["social"],"summary":"Delete Plan","operationId":"delete_plan_api_workspaces__workspace_id__social_plans__plan_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/credit-ranges":{"get":{"tags":["social"],"summary":"Get Credit Ranges","operationId":"get_credit_ranges_api_workspaces__workspace_id__social_credit_ranges_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialCreditRangesView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/posts/{post_id}":{"get":{"tags":["social"],"summary":"Get Post","operationId":"get_post_api_workspaces__workspace_id__social_posts__post_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["social"],"summary":"Edit Post","description":"The founder's edit. A new format starts the media it needs and comes back with it processing: 409\n``post_media.processing`` while the post's media is being made, and the credit-edge error before\nanything starts when the account cannot pay for it.","operationId":"edit_post_api_workspaces__workspace_id__social_posts__post_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditPostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/plans/{plan_id}/finish":{"post":{"tags":["social"],"summary":"Finish Plan","operationId":"finish_plan_api_workspaces__workspace_id__social_plans__plan_id__finish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPlanDetailView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/plans/{plan_id}/fill":{"post":{"tags":["social"],"summary":"Fill Day","operationId":"fill_day_api_workspaces__workspace_id__social_plans__plan_id__fill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FillDayRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPlanDetailView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/calendar":{"get":{"tags":["social"],"summary":"Get Calendar","operationId":"get_calendar_api_workspaces__workspace_id__social_calendar_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialCalendarView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/plans/{plan_id}/approve":{"post":{"tags":["social"],"summary":"Approve Posts","operationId":"approve_posts_api_workspaces__workspace_id__social_plans__plan_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovePostsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPlanDetailView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/posts/rewrite":{"post":{"tags":["social"],"summary":"Rewrite Posts","operationId":"rewrite_posts_api_workspaces__workspace_id__social_posts_rewrite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewritePostsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialRewriteView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/posts/{post_id}/remove":{"post":{"tags":["social"],"summary":"Remove Post","operationId":"remove_post_api_workspaces__workspace_id__social_posts__post_id__remove_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/posts/{post_id}/tip/take":{"post":{"tags":["social"],"summary":"Take Tip","operationId":"take_tip_api_workspaces__workspace_id__social_posts__post_id__tip_take_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/posts/{post_id}/tip/dismiss":{"post":{"tags":["social"],"summary":"Dismiss Tip","operationId":"dismiss_tip_api_workspaces__workspace_id__social_posts__post_id__tip_dismiss_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/due":{"get":{"tags":["social"],"summary":"Get Due","operationId":"get_due_api_workspaces__workspace_id__social_due_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialDueView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/brand":{"get":{"tags":["brand"],"summary":"Get Brand","description":"The saved brand, or null when the founder skipped it.","operationId":"get_brand_api_workspaces__workspace_id__brand_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BrandView"},{"type":"null"}],"title":"Response Get Brand Api Workspaces  Workspace Id  Brand Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["brand"],"summary":"Save Brand","description":"Save the whole brand and rebuild the live page in it: 400 ``brand.empty`` with nothing in it,\n400 ``brand.logo_not_ours`` for a logo path this project did not upload, and the billing error when\na tone change cannot be paid for (the brand stays saved).","operationId":"save_brand_api_workspaces__workspace_id__brand_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["brand"],"summary":"Clear Brand","description":"Clear the saved brand so the builders decide the look again. 204 whether or not one was saved.","operationId":"clear_brand_api_workspaces__workspace_id__brand_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/brand/fonts":{"get":{"tags":["brand"],"summary":"Get Brand Fonts","description":"The Google Fonts a brand may use, and Claura's suggested display and body pairs.","operationId":"get_brand_fonts_api_workspaces__workspace_id__brand_fonts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandFontsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/brand/logo":{"get":{"tags":["brand"],"summary":"Get Brand Logo","operationId":"get_brand_logo_api_workspaces__workspace_id__brand_logo_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["brand"],"summary":"Upload Brand Logo","description":"Store a PNG or SVG logo and read its colours. 400 ``brand.logo_type`` for anything else,\n``brand.logo_unsafe`` for an SVG that carries scripts or embedded content.","operationId":"upload_brand_logo_api_workspaces__workspace_id__brand_logo_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_brand_logo_api_workspaces__workspace_id__brand_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/brand/kit":{"post":{"tags":["brand"],"summary":"Read Brand Kit","description":"Read up to five brand files for tone, style and colours, its first PNG or SVG becoming the\nlogo. Refused up front, with nothing stored, when the account cannot afford the read.","operationId":"read_brand_kit_api_workspaces__workspace_id__brand_kit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_read_brand_kit_api_workspaces__workspace_id__brand_kit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ingest/events":{"post":{"tags":["ingest"],"summary":"Ingest Event","description":"Accept one snippet event: 202 for a known key, with exclusion reported in the body.\n\nAn unknown key (400) or an exhausted rate limit (429) is a typed error, being a protocol violation.","operationId":"ingest_event_api_ingest_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestEventRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ingest/leads":{"post":{"tags":["ingest"],"summary":"Ingest Lead","description":"Accept one capture-form signup into ``page_leads``, never ``visitor_events``.\n\nA separate route because it is the one ingest write carrying an identifier; ``form_submit`` arrives via /events.","operationId":"ingest_lead_api_ingest_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestLeadRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestLeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/r/{ingestion_key}":{"get":{"tags":["artifact-redirect"],"summary":"Redirect To Prototype","description":"302 to this workspace's published prototype, or 204 when there is none.\n\nOnly the published build: an unreviewed preview would leak the founder's work to their audience.","operationId":"redirect_to_prototype_api_r__ingestion_key__get","parameters":[{"name":"ingestion_key","in":"path","required":true,"schema":{"type":"string","title":"Ingestion Key"}}],"responses":{"307":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/accounts":{"get":{"tags":["social"],"summary":"List Accounts","operationId":"list_accounts_api_workspaces__workspace_id__social_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAccountsView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/accounts/sync":{"post":{"tags":["social"],"summary":"Sync Accounts","operationId":"sync_accounts_api_workspaces__workspace_id__social_accounts_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialSyncView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/accounts/{platform}/connect":{"post":{"tags":["social"],"summary":"Connect Account","operationId":"connect_account_api_workspaces__workspace_id__social_accounts__platform__connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConnectRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/accounts/{platform}/channel":{"post":{"tags":["social"],"summary":"Choose Channel","operationId":"choose_channel_api_workspaces__workspace_id__social_accounts__platform__channel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialSyncView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/social/accounts/{platform}":{"patch":{"tags":["social"],"summary":"Set Posting","operationId":"set_posting_api_workspaces__workspace_id__social_accounts__platform__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAccountView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["social"],"summary":"Disconnect Account","operationId":"disconnect_account_api_workspaces__workspace_id__social_accounts__platform__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/readiness":{"get":{"tags":["paid-ads"],"summary":"Read Readiness","operationId":"read_readiness_api_workspaces__workspace_id__paid_ads_readiness_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/readiness/override":{"post":{"tags":["paid-ads"],"summary":"Override Readiness","operationId":"override_readiness_api_workspaces__workspace_id__paid_ads_readiness_override_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadinessView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/current":{"get":{"tags":["paid-ads"],"summary":"Read Current Plan","operationId":"read_current_plan_api_workspaces__workspace_id__paid_ads_plans_current_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentPlanView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/start":{"post":{"tags":["paid-ads"],"summary":"Start Plan","operationId":"start_plan_api_workspaces__workspace_id__paid_ads_plans_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"fresh","in":"query","required":false,"schema":{"type":"boolean","description":"Start a new plan even while another is still being set up","default":false,"title":"Fresh"},"description":"Start a new plan even while another is still being set up"},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepOneView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/write":{"post":{"tags":["paid-ads"],"summary":"Write Plan","operationId":"write_plan_api_workspaces__workspace_id__paid_ads_plans__plan_id__write_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeginPlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/estimate":{"get":{"tags":["paid-ads"],"summary":"Estimate Step One","operationId":"estimate_step_one_api_workspaces__workspace_id__paid_ads_plans__plan_id__estimate_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"goal","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AdGoal","description":"The goal being considered"},"description":"The goal being considered"},{"name":"target_value","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Target Value"}},{"name":"target_window_days","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Target Window Days"}},{"name":"monthly_budget","in":"query","required":true,"schema":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Monthly Budget"}},{"name":"currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":3,"maxLength":3},{"type":"null"}],"description":"A currency being considered","title":"Currency"},"description":"A currency being considered"},{"name":"retarget","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/Retarget"},{"type":"null"}],"description":"Why the target is being re-suggested: a goal was chosen (or Claura's own target asked for again), or the budget moved","title":"Retarget"},"description":"Why the target is being re-suggested: a goal was chosen (or Claura's own target asked for again), or the budget moved"},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepOneView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}":{"get":{"tags":["paid-ads"],"summary":"Read Plan","operationId":"read_plan_api_workspaces__workspace_id__paid_ads_plans__plan_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["paid-ads"],"summary":"Discard Plan","operationId":"discard_plan_api_workspaces__workspace_id__paid_ads_plans__plan_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/platforms":{"patch":{"tags":["paid-ads"],"summary":"Set Platform Running","operationId":"set_platform_running_api_workspaces__workspace_id__paid_ads_plans__plan_id__platforms_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/currency":{"patch":{"tags":["paid-ads"],"summary":"Set Plan Currency","operationId":"set_plan_currency_api_workspaces__workspace_id__paid_ads_plans__plan_id__currency_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCurrencyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/platforms/swap":{"post":{"tags":["paid-ads"],"summary":"Swap Platform","operationId":"swap_platform_api_workspaces__workspace_id__paid_ads_plans__plan_id__platforms_swap_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformSwapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/lock":{"post":{"tags":["paid-ads"],"summary":"Lock Plan","operationId":"lock_plan_api_workspaces__workspace_id__paid_ads_plans__plan_id__lock_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/dashboard":{"get":{"tags":["paid-ads","paid-ads"],"summary":"Read Dashboard","operationId":"read_dashboard_api_workspaces__workspace_id__paid_ads_dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DashboardDays","default":7}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/status":{"get":{"tags":["paid-ads","paid-ads"],"summary":"Read Status","operationId":"read_status_api_workspaces__workspace_id__paid_ads_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidAdsStatusView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/ads/{ad_id}":{"get":{"tags":["paid-ads","paid-ads"],"summary":"Read Ad","operationId":"read_ad_api_workspaces__workspace_id__paid_ads_ads__ad_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdPageView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["paid-ads","paid-ads"],"summary":"Remove Ad","operationId":"remove_ad_api_workspaces__workspace_id__paid_ads_ads__ad_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/campaigns/{campaign_id}/pause":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Pause Campaign","operationId":"pause_campaign_api_workspaces__workspace_id__paid_ads_campaigns__campaign_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/campaigns/{campaign_id}/resume":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Resume Campaign","operationId":"resume_campaign_api_workspaces__workspace_id__paid_ads_campaigns__campaign_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/campaigns/{campaign_id}":{"delete":{"tags":["paid-ads","paid-ads"],"summary":"Remove Campaign","operationId":"remove_campaign_api_workspaces__workspace_id__paid_ads_campaigns__campaign_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/campaigns/{campaign_id}/budget":{"put":{"tags":["paid-ads","paid-ads"],"summary":"Set Campaign Budget","operationId":"set_campaign_budget_api_workspaces__workspace_id__paid_ads_campaigns__campaign_id__budget_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/ads/{ad_id}/pause":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Pause Ad","operationId":"pause_ad_api_workspaces__workspace_id__paid_ads_ads__ad_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/ads/{ad_id}/resume":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Resume Ad","operationId":"resume_ad_api_workspaces__workspace_id__paid_ads_ads__ad_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/ads/{ad_id}/resubmit":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Resubmit Ad","operationId":"resubmit_ad_api_workspaces__workspace_id__paid_ads_ads__ad_id__resubmit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/proposals/{proposal_id}/accept":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Accept Proposal","operationId":"accept_proposal_api_workspaces__workspace_id__paid_ads_proposals__proposal_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/proposals/{proposal_id}/dismiss":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Dismiss Proposal","operationId":"dismiss_proposal_api_workspaces__workspace_id__paid_ads_proposals__proposal_id__dismiss_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/calendar":{"get":{"tags":["paid-ads","paid-ads"],"summary":"Read Calendar","operationId":"read_calendar_api_workspaces__workspace_id__paid_ads_calendar_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date","title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date","title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidCalendarView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/create":{"get":{"tags":["paid-ads"],"summary":"Read Create Preview","operationId":"read_create_preview_api_workspaces__workspace_id__paid_ads_plans__plan_id__create_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePreviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["paid-ads"],"summary":"Start Create","operationId":"start_create_api_workspaces__workspace_id__paid_ads_plans__plan_id__create_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StartCreateRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePreviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/campaigns":{"get":{"tags":["paid-ads"],"summary":"Read Campaigns","operationId":"read_campaigns_api_workspaces__workspace_id__paid_ads_plans__plan_id__campaigns_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/create/retry":{"post":{"tags":["paid-ads"],"summary":"Retry Create","operationId":"retry_create_api_workspaces__workspace_id__paid_ads_plans__plan_id__create_retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/review":{"get":{"tags":["paid-ads","paid-ads"],"summary":"Read Review","operationId":"read_review_api_workspaces__workspace_id__paid_ads_plans__plan_id__review_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/ads/{ad_id}":{"patch":{"tags":["paid-ads","paid-ads"],"summary":"Edit Ad","operationId":"edit_ad_api_workspaces__workspace_id__paid_ads_plans__plan_id__ads__ad_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditAdRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["paid-ads","paid-ads"],"summary":"Remove Ad","operationId":"remove_ad_api_workspaces__workspace_id__paid_ads_plans__plan_id__ads__ad_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/ads/{ad_id}/rewrite":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Rewrite Ad","operationId":"rewrite_ad_api_workspaces__workspace_id__paid_ads_plans__plan_id__ads__ad_id__rewrite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/ads/{ad_id}/regenerate":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Regenerate Ad","operationId":"regenerate_ad_api_workspaces__workspace_id__paid_ads_plans__plan_id__ads__ad_id__regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RegenerateAdRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/ads/{ad_id}/media/{position}/regenerate":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Regenerate Ad Media","operationId":"regenerate_ad_media_api_workspaces__workspace_id__paid_ads_plans__plan_id__ads__ad_id__media__position__regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/ads/{ad_id}/media/{position}/retry":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Retry Ad Media","operationId":"retry_ad_media_api_workspaces__workspace_id__paid_ads_plans__plan_id__ads__ad_id__media__position__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/ads/{ad_id}/media/{position}/versions/{version}":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Use Ad Media Version","operationId":"use_ad_media_version_api_workspaces__workspace_id__paid_ads_plans__plan_id__ads__ad_id__media__position__versions__version__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","title":"Ad Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/campaigns/{campaign_id}":{"patch":{"tags":["paid-ads","paid-ads"],"summary":"Rename Campaign","operationId":"rename_campaign_api_workspaces__workspace_id__paid_ads_plans__plan_id__campaigns__campaign_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameCampaignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["paid-ads","paid-ads"],"summary":"Remove Campaign","operationId":"remove_campaign_api_workspaces__workspace_id__paid_ads_plans__plan_id__campaigns__campaign_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/split":{"put":{"tags":["paid-ads","paid-ads"],"summary":"Set Split","operationId":"set_split_api_workspaces__workspace_id__paid_ads_plans__plan_id__split_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SplitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/launch":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Launch Campaigns","operationId":"launch_campaigns_api_workspaces__workspace_id__paid_ads_plans__plan_id__launch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/plans/{plan_id}/campaigns/{campaign_id}/send":{"post":{"tags":["paid-ads","paid-ads"],"summary":"Send Campaign","operationId":"send_campaign_api_workspaces__workspace_id__paid_ads_plans__plan_id__campaigns__campaign_id__send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/accounts":{"get":{"tags":["paid-ads"],"summary":"Read Ad Accounts","operationId":"read_ad_accounts_api_workspaces__workspace_id__paid_ads_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"plan_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountsView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/accounts/sync":{"post":{"tags":["paid-ads"],"summary":"Sync Ad Accounts","operationId":"sync_ad_accounts_api_workspaces__workspace_id__paid_ads_accounts_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountsSyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountsSyncView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/accounts/{platform}/connect":{"post":{"tags":["paid-ads"],"summary":"Connect Ad Account","operationId":"connect_ad_account_api_workspaces__workspace_id__paid_ads_accounts__platform__connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"$ref":"#/components/schemas/AdPlatform"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdsConnectRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdsConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/accounts/{platform}/ad-accounts":{"get":{"tags":["paid-ads"],"summary":"List Ad Account Choices","operationId":"list_ad_account_choices_api_workspaces__workspace_id__paid_ads_accounts__platform__ad_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"$ref":"#/components/schemas/AdPlatform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdAccountChoiceView"},"title":"Response List Ad Account Choices Api Workspaces  Workspace Id  Paid Ads Accounts  Platform  Ad Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/accounts/{platform}/ad-account":{"post":{"tags":["paid-ads"],"summary":"Choose Ad Account","operationId":"choose_ad_account_api_workspaces__workspace_id__paid_ads_accounts__platform__ad_account_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"$ref":"#/components/schemas/AdPlatform"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChooseAdAccountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountsView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/accounts/{platform}/check":{"post":{"tags":["paid-ads"],"summary":"Check Ad Account","operationId":"check_ad_account_api_workspaces__workspace_id__paid_ads_accounts__platform__check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"$ref":"#/components/schemas/AdPlatform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountsSyncView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/paid-ads/accounts/{platform}":{"delete":{"tags":["paid-ads"],"summary":"Disconnect Ad Account","operationId":"disconnect_ad_account_api_workspaces__workspace_id__paid_ads_accounts__platform__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"platform","in":"path","required":true,"schema":{"$ref":"#/components/schemas/AdPlatform"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdAccountsView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/media":{"get":{"tags":["media"],"summary":"List Media","description":"Every version made for the launch's posts on ``arc``, earlier versions and retired posts' included,\nwith the counts and channels the page's filters offer.","operationId":"list_media_api_workspaces__workspace_id__media_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"arc","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ArcType","description":"Active arc (POC/MVP/PMF)"},"description":"Active arc (POC/MVP/PMF)"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MediaKind"},{"type":"null"}],"title":"Kind"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MediaSort","default":"newest"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":96,"minimum":1,"default":48,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAssetPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/media/{asset_id}/content":{"get":{"tags":["media"],"summary":"Get Media Content","operationId":"get_media_content_api_workspaces__workspace_id__media__asset_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/media/{asset_id}/copied":{"post":{"tags":["media"],"summary":"Media Copied","description":"The post was copied to publish by hand, its media on the clipboard (``full``) or saved beside the\ncaption (``fallback``).","operationId":"media_copied_api_workspaces__workspace_id__media__asset_id__copied_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaCopiedRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/media/{asset_id}/downloaded":{"post":{"tags":["media"],"summary":"Media Downloaded","operationId":"media_downloaded_api_workspaces__workspace_id__media__asset_id__downloaded_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/email/unsubscribe":{"get":{"tags":["email"],"summary":"Confirm Unsubscribe","operationId":"confirm_unsubscribe_api_email_unsubscribe_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","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":["email"],"summary":"Unsubscribe","operationId":"unsubscribe_api_email_unsubscribe_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","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"}}}}}}},"/api/email/resubscribe":{"post":{"tags":["email"],"summary":"Resubscribe","operationId":"resubscribe_api_email_resubscribe_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","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"}}}}}}},"/api/email/preferences":{"get":{"tags":["email"],"summary":"Preferences","operationId":"preferences_api_email_preferences_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","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":["email"],"summary":"Set Preference","operationId":"set_preference_api_email_preferences_post","parameters":[{"name":"switch","in":"query","required":true,"schema":{"enum":["daily_brief","all"],"type":"string","title":"Switch"}},{"name":"on","in":"query","required":true,"schema":{"type":"boolean","title":"On"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","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"}}}}}}},"/health/deep":{"get":{"tags":["health"],"summary":"Deep Health Check","operationId":"deep_health_check_health_deep_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","description":"Root endpoint","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/live":{"get":{"summary":"Liveness Check","description":"Liveness probe endpoint — process is up and the event loop responds.\n\nDeliberately does NOT touch the database or any external dependency:\nKubernetes restarts the pod when liveness fails, and a slow DB should\nmake the pod *not ready* (readiness), not get it killed.","operationId":"liveness_check_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health Check","description":"Health check endpoint with database connectivity verification.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AccountStateEnum":{"type":"string","enum":["pending_plan","trial_active","active","grace","view_only","revoked","deleted"],"title":"AccountStateEnum"},"Action":{"type":"string","enum":["public","user.signed_in","user.signed_in_no_org","platform.super_admin","platform.engineer","org.admin","workspace.read","workspace.edit","workspace.manage","workspace.ad_accounts_manage","workspace.fund","workspace.founder_act","engineer.surface","phase.view","phase.edit"],"title":"Action","description":"Who may call. The value is what the frontend's access table keys on."},"ActivityActor":{"type":"string","enum":["ai","founder","system","engineer"],"title":"ActivityActor"},"ActivityEventResponse":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"$ref":"#/components/schemas/ActivityEventType"},"actor":{"$ref":"#/components/schemas/ActivityActor"},"arc":{"$ref":"#/components/schemas/ArcType"},"phase_type":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","actor","arc","created_at"],"title":"ActivityEventResponse","description":"What the founder's client is told about an activity event.\n\n`actor_user_id` is absent here too, and for a different reason: it is a raw\ninternal user id, which for an engineer-authored event is a Conrad Labs\nstaff UUID. It had no consumer — a display name is wanted rather than an id —\nand it also reaches `grounding_snapshot_service._assemble_activity_feed`, which\nbuilds these for the advisor's grounding snapshot, so the ids would land in\nLLM context as well. Resolving `actor` to a display name is the follow-up;\nuntil then the founder is told which KIND of author acted, which is what\nevery current consumer reads."},"ActivityEventType":{"type":"string","enum":["engineer.access_started","engineer.access_ended","engineer.access_granted","engineer.access_revoked","engineer.work","merge.stale_resolved","artifact.generated","artifact.regenerated","artifact.edited","artifact.generation_failed","score.run","criterion.proposed","criterion.modified","criterion.accepted","criterion.auto_accepted","criterion.committed","kpi.proposed","kpi.accepted","kpi.rejected","kpi.swapped","kpi.locked","risk.detected","risk.severity_overridden","risk.resolved","task.added","task.edited","task.completed","task.synced_in","task.unlinked","sync.run_failed","milestone.added","milestone.progress","stage.completed","budget.updated","runway.overridden","walkthrough.completed","arc.switched","kpi.set_north_star","stage.signed_off","packet.generation_triggered","packet.generation_completed","packet.generation_failed","packet.link_opened","packet.link_revoked","packet.refreshed","packet.viewed","health.tier_changed","health.focus_surfaced","health.focus_engaged","traction_signal.logged","traction_signal.unlogged","vital_sign.set","drift.opened","drift.resolved","survival.plan_modeled","survival.plan_applied","survival.plan_undone","agent.action","post_media.generated","post_media.regenerated","post_media.edited","post_media.version_restored","post_media.video_made","post_media.generation_failed","post_media.copied","post_media.downloaded","ad_media.generated","ad_media.generation_failed","ads.launched","ads.paused","ads.resumed","ads.removed","ads.budget_changed","ads.ad_resubmitted","ads.proposal_dismissed","ads.guard_paused","ads.guard_resumed","brief.sent"],"title":"ActivityEventType"},"ActivityOrigin":{"type":"string","enum":["founder","advisor"],"title":"ActivityOrigin","description":"Provenance tag threaded into an activity event's JSON `payload` (never\nthe `actor` column, which stays FOUNDER) — distinguishes a write made\ndirectly on a dashboard surface from one committed via the Chat Advisor's\nconfirm loop. Optional and additive: a caller that never passes `origin`\ngets no `payload[\"origin\"]` key at all, so direct-surface events are\nbyte-for-byte unchanged."},"AdAccountBlock":{"type":"string","enum":["no_payment_method","account_disabled","missing_page","missing_business_account","permissions_not_granted","sign_in_lapsed","no_ad_account"],"title":"AdAccountBlock"},"AdAccountBlockView":{"properties":{"platform":{"$ref":"#/components/schemas/AdPlatform"},"blocking_reason":{"anyOf":[{"$ref":"#/components/schemas/AdAccountBlock"},{"type":"null"}]}},"type":"object","required":["platform"],"title":"AdAccountBlockView"},"AdAccountChoiceView":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"usable":{"type":"boolean","title":"Usable"},"unusable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unusable Reason"},"chosen":{"type":"boolean","title":"Chosen","default":false}},"type":"object","required":["id","usable"],"title":"AdAccountChoiceView"},"AdAccountState":{"type":"string","enum":["not_connected","choose_account","connected","blocked"],"title":"AdAccountState"},"AdAccountView":{"properties":{"platform":{"$ref":"#/components/schemas/AdPlatform"},"connectable":{"type":"boolean","title":"Connectable"},"state":{"$ref":"#/components/schemas/AdAccountState"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"billing_set_up":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Billing Set Up"},"blocking_reason":{"anyOf":[{"$ref":"#/components/schemas/AdAccountBlock"},{"type":"null"}]},"fix_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix Url"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"},"live_campaigns":{"type":"integer","title":"Live Campaigns","default":0},"currency_block":{"anyOf":[{"$ref":"#/components/schemas/CurrencyBlockView"},{"type":"null"}]}},"type":"object","required":["platform","connectable","state"],"title":"AdAccountView"},"AdAccountsSyncRequest":{"properties":{"platform":{"anyOf":[{"$ref":"#/components/schemas/AdPlatform"},{"type":"null"}]},"vendor_return":{"anyOf":[{"additionalProperties":{"type":"string","maxLength":512},"propertyNames":{"maxLength":64},"type":"object","maxProperties":20},{"type":"null"}],"title":"Vendor Return"}},"type":"object","title":"AdAccountsSyncRequest"},"AdAccountsSyncView":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/AdAccountView"},"type":"array","title":"Accounts"},"vendor_notice":{"type":"string","title":"Vendor Notice"},"plan_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Currency"},"currency_switch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Switch"},"outcome":{"anyOf":[{"$ref":"#/components/schemas/ConnectOutcome"},{"type":"null"}]},"choices":{"additionalProperties":{"items":{"$ref":"#/components/schemas/AdAccountChoiceView"},"type":"array"},"propertyNames":{"$ref":"#/components/schemas/AdPlatform"},"type":"object","title":"Choices"}},"type":"object","required":["accounts","vendor_notice"],"title":"AdAccountsSyncView"},"AdAccountsView":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/AdAccountView"},"type":"array","title":"Accounts"},"vendor_notice":{"type":"string","title":"Vendor Notice"},"plan_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Currency"},"currency_switch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Switch"}},"type":"object","required":["accounts","vendor_notice"],"title":"AdAccountsView"},"AdDayView":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"visits":{"type":"integer","title":"Visits"},"signups":{"type":"integer","title":"Signups"},"spend":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Spend"}},"type":"object","required":["day","visits","signups"],"title":"AdDayView"},"AdFormat":{"type":"string","enum":["image","video","search","display"],"title":"AdFormat"},"AdGoal":{"type":"string","enum":["signups","website_traffic","engagement","reach"],"title":"AdGoal"},"AdPageView":{"properties":{"ad":{"$ref":"#/components/schemas/DashboardAdView"},"campaign":{"$ref":"#/components/schemas/DashboardCampaignView"},"monthly_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Total"},"goal":{"$ref":"#/components/schemas/AdGoal"},"goal_label":{"type":"string","title":"Goal Label"},"days_live":{"type":"integer","title":"Days Live"},"figures":{"$ref":"#/components/schemas/FiguresView"},"per_day":{"items":{"$ref":"#/components/schemas/AdDayView"},"type":"array","title":"Per Day"}},"type":"object","required":["ad","campaign","monthly_total","goal","goal_label","days_live","figures","per_day"],"title":"AdPageView"},"AdPill":{"type":"string","enum":["waiting","in_review","rejected","paused","active","not_running"],"title":"AdPill"},"AdPlatform":{"type":"string","enum":["meta","google","tiktok","linkedin","x"],"title":"AdPlatform"},"AdProblem":{"type":"string","enum":["being_rewritten","not_written","media_failed","media_pending","words_dont_fit"],"title":"AdProblem"},"AdState":{"type":"string","enum":["waiting","writing_copy","making_image","making_video","ready","failed"],"title":"AdState"},"AdTag":{"type":"string","enum":["best","worst"],"title":"AdTag"},"AdVerdict":{"type":"string","enum":["scale","keep","remove","too_early"],"title":"AdVerdict"},"AdView":{"properties":{"id":{"type":"string","title":"Id"},"position":{"type":"integer","title":"Position"},"format":{"$ref":"#/components/schemas/AdFormat"},"label":{"type":"string","title":"Label"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"state":{"$ref":"#/components/schemas/AdState"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"picture":{"anyOf":[{"$ref":"#/components/schemas/MediaCurrentView"},{"type":"null"}]}},"type":"object","required":["id","position","format","label","state"],"title":"AdView"},"AddLeverRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"archetype_key":{"type":"string","maxLength":64,"minLength":1,"title":"Archetype Key"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,12}|(?=[\\d.]{1,15}0*$)\\d{0,12}\\.\\d{0,2}0*$)"}],"title":"Amount"},"description":{"type":"string","minLength":1,"title":"Description"},"is_reversible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Reversible"}},"type":"object","required":["arc","archetype_key","amount","description"],"title":"AddLeverRequest"},"AdjustRequest":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount","description":"Signed credit adjustment (+ grant / − deduct)"},"reason":{"type":"string","minLength":1,"title":"Reason"},"operation_id":{"type":"string","maxLength":64,"minLength":1,"title":"Operation Id","description":"Client-minted id for this one operation — a retry with the same id replays instead of applying the change twice"}},"type":"object","required":["amount","reason","operation_id"],"title":"AdjustRequest"},"AdminActionResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance"},"true_balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"True Balance"},"account_state":{"anyOf":[{"$ref":"#/components/schemas/AccountStateEnum"},{"type":"null"}]},"tier":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionTier"},{"type":"null"}]}},"type":"object","required":["organization_id","balance","true_balance"],"title":"AdminActionResponse"},"AdminBucketView":{"properties":{"bucket_type":{"$ref":"#/components/schemas/BucketType"},"original_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Original Amount"},"remaining_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Remaining Amount"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"expired":{"type":"boolean","title":"Expired"}},"type":"object","required":["bucket_type","original_amount","remaining_amount","expired"],"title":"AdminBucketView"},"AdminBulkFeatureFlagRequest":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"minItems":1,"title":"User Ids","description":"Claura user IDs to update"},"flag":{"type":"string","minLength":1,"title":"Flag","description":"Feature flag key to set"},"value":{"type":"boolean","title":"Value","description":"Enable (true) or disable (false)"}},"type":"object","required":["user_ids","flag","value"],"title":"AdminBulkFeatureFlagRequest","description":"Request for setting one feature flag on multiple Claura users."},"AdminLedgerLine":{"properties":{"entry_type":{"$ref":"#/components/schemas/LedgerEntryType"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"balance_after":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance After"},"action_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["entry_type","amount","balance_after","created_at"],"title":"AdminLedgerLine"},"AdminOrgBillingResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"account_state":{"anyOf":[{"$ref":"#/components/schemas/AccountStateEnum"},{"type":"null"}]},"state_entered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"State Entered At"},"state_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"State Expires At"},"view_only_origin":{"anyOf":[{"$ref":"#/components/schemas/ViewOnlyOrigin"},{"type":"null"}]},"is_founding_member":{"type":"boolean","title":"Is Founding Member","default":false},"subscription":{"anyOf":[{"$ref":"#/components/schemas/AdminSubscriptionView"},{"type":"null"}]},"balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance"},"true_balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"True Balance"},"buckets":{"items":{"$ref":"#/components/schemas/AdminBucketView"},"type":"array","title":"Buckets"},"ledger":{"items":{"$ref":"#/components/schemas/AdminLedgerLine"},"type":"array","title":"Ledger"}},"type":"object","required":["organization_id","balance","true_balance"],"title":"AdminOrgBillingResponse","description":"The support view of one org's billing state."},"AdminSubscriptionView":{"properties":{"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"is_comp":{"type":"boolean","title":"Is Comp","default":false},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"}},"type":"object","required":["tier","status"],"title":"AdminSubscriptionView"},"AdminTrialSummaryResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Always true for successful responses","default":true},"email":{"type":"string","title":"Email","description":"User email"},"user_id":{"type":"string","title":"User Id","description":"User ID"},"is_trial":{"type":"boolean","title":"Is Trial","description":"Whether user is on trial"}},"type":"object","required":["email","user_id","is_trial"],"title":"AdminTrialSummaryResponse","description":"Response for admin trial summary."},"AdminUserResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Canonical Claura user ID"},"status":{"$ref":"#/components/schemas/UserStatus","description":"Canonical Claura account lifecycle status"},"platform_role":{"$ref":"#/components/schemas/PlatformRole","description":"Database-backed Claura platform role"},"email":{"type":"string","title":"Email","description":"User email address"},"name":{"type":"string","title":"Name","description":"User display name"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Account creation timestamp"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization ID"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"User role in organization"},"is_personal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Personal","description":"Whether current organization is a personal organization"},"analytics_mute_level":{"type":"string","enum":["full","replays-only","none"],"title":"Analytics Mute Level","description":"Effective analytics policy for this email","default":"full"},"firebase_uid":{"type":"string","title":"Firebase Uid","description":"Firebase authentication subject"}},"type":"object","required":["id","status","platform_role","email","name","firebase_uid"],"title":"AdminUserResponse","description":"Claura user response for authentication administration."},"AdminUserSearchHit":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"}},"type":"object","required":["user_id","organization_id"],"title":"AdminUserSearchHit","description":"One row of the support user-search dropdown. Carries the organization id\nevery billing action is keyed on, which the Firebase-backed /admin/users\nlisting does not have."},"AdminUserSearchResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/AdminUserSearchHit"},"type":"array","title":"Users"}},"type":"object","title":"AdminUserSearchResponse"},"AdminUserUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"User's display name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"User's email address"},"disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disabled","description":"Whether the account is disabled"},"is_super_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Super Admin","description":"Grant or revoke super admin status"},"feature_flags":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Feature Flags","description":"Feature flags to merge into user profile"}},"type":"object","title":"AdminUserUpdateRequest","description":"Request for super-admin user edits."},"AdsConnectRequest":{"properties":{"return_to":{"$ref":"#/components/schemas/AdsReturnTo","default":"connect"},"platforms":{"items":{"$ref":"#/components/schemas/AdPlatform"},"type":"array","maxItems":5,"title":"Platforms"},"plan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Id"}},"type":"object","title":"AdsConnectRequest"},"AdsConnectResponse":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","title":"AdsConnectResponse"},"AdsReadinessFix":{"type":"string","enum":["launch_website","go_to_social","finish_business_plan"],"title":"AdsReadinessFix"},"AdsReadinessKey":{"type":"string","enum":["website_live","posted_organically","business_plan_ready"],"title":"AdsReadinessKey"},"AdsReturnTo":{"type":"string","enum":["connect","plan","accounts"],"title":"AdsReturnTo"},"AdsStage":{"type":"string","enum":["to_do","setting_up","making_ads","ready_to_review","running","paused"],"title":"AdsStage"},"AdvisorActionConfirmedRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"arc":{"type":"string","title":"Arc","description":"Active arc (MVP, POC, PMF)"},"action_type":{"type":"string","title":"Action Type","description":"Confirmed action type"}},"type":"object","required":["workspace_id","arc","action_type"],"title":"AdvisorActionConfirmedRequest","description":"Request model for advisor.action_confirmed — the founder confirmed a\nstaged move (actor = founder; conversation-to-action numerator)."},"AdvisorActionPreparedRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"arc":{"type":"string","title":"Arc","description":"Active arc (MVP, POC, PMF)"},"action_type":{"type":"string","title":"Action Type","description":"Staged action type"},"reversible":{"type":"boolean","title":"Reversible","description":"Whether the staged move is reversible"}},"type":"object","required":["workspace_id","arc","action_type","reversible"],"title":"AdvisorActionPreparedRequest","description":"Request model for advisor.action_prepared — the advisor staged a move\n(actor = ai)."},"AdvisorActionType":{"type":"string","enum":["apply_scenario_plan","undo_scenario_plan","update_budget","log_evidence","undo_evidence","approve_launch_message","approve_rooms"],"title":"AdvisorActionType","description":"Moves an agent can PROPOSE and the founder must CONFIRM. Code-only — never a\nDB column, so this needs no migration; `advisor_receipts.action_type` stores the\n`.value` as a plain string for idempotency lookups.\n\nThe name is narrower than the thing: the propose→confirm→commit loop is the\nChat Advisor's, and it is reused by the CMO for loop 2 because an approval a\nfounder gives should be an explicit act on a card and not a sentence in a\nchat. Renaming the mechanism to match is a follow-up; cloning it would have\nbeen the wrong way to avoid the awkward name."},"AdvisorEscalatedRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"arc":{"type":"string","title":"Arc","description":"Active arc (MVP, POC, PMF)"},"action_type":{"type":"string","title":"Action Type","description":"Staged action type being escalated"}},"type":"object","required":["workspace_id","arc","action_type"],"title":"AdvisorEscalatedRequest","description":"Request model for escalating a staged advisor action to the modeler."},"AdvisorInteractRequest":{"properties":{"message":{"type":"string","minLength":1,"title":"Message"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"type":"object","required":["message"],"title":"AdvisorInteractRequest"},"AdvisorOpenedRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"arc":{"type":"string","title":"Arc","description":"Active arc (MVP, POC, PMF)"},"origin":{"type":"string","title":"Origin","description":"Where the advisor was opened from (today, modeler)"},"health_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health Tier","description":"Founder's health-tier context at open (calm|watch|alert)"},"lead_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Tier","description":"Deprecated — use health_tier. Accepted for one release."}},"type":"object","required":["workspace_id","arc","origin"],"title":"AdvisorOpenedRequest","description":"Request model for a Chat Advisor session open (advisor.opened)."},"AgentSuggestionModifiedRequest":{"properties":{"phase_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Type","description":"PhaseType enum value (e.g. BUSINESS_PLAN). Preferred over step_name."},"step_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Name","description":"Deprecated — legacy Mixpanel step slug (e.g. business_plan). Use phase_type."},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"workspace_name":{"type":"string","title":"Workspace Name","description":"Workspace name"},"modification_type":{"type":"string","title":"Modification Type","description":"Modification type (example_edited, custom_added)"},"text":{"additionalProperties":true,"type":"object","title":"Text","description":"Text modification data"}},"type":"object","required":["workspace_id","workspace_name","modification_type","text"],"title":"AgentSuggestionModifiedRequest","description":"Request model for agent suggestion modification tracking","example":{"modification_type":"example_edited","phase_type":"TECHNICAL_ARCHITECTURE","text":{"changed":"Modified by user","original":"Original AI suggestion"},"workspace_id":"proj_123456789","workspace_name":"My SaaS App"}},"AgentType":{"type":"string","enum":["BUSINESS_ANALYST","PRODUCT_OWNER","TECHNICAL_ARCHITECT","PROJECT_MANAGER","GTM_SPECIALIST","STRATEGY_ADVISOR","SALES_LEAD","MOCKUP_DESIGNER","PLAYBOOK_ARCHITECT","ADVISOR","DIAGNOSIS","CMO","CHIEF_OF_STAFF","UI_PLANNER","UI_DEVELOPER","UI_VALIDATOR","PROTOTYPE_BUILDER","LANDING_BUILDER","RESEARCH","CONTEXT_SUMMARIZER","SLIDES_CONVERTER","VALIDATION_FIXER","SPECS_PLANNER","DRIFT_DETECTOR","CRITERIA_GENERATOR","SEMANTIC_CHANGE_DETECTOR","VERDICT_WRITER","EVALUATION_JUDGE","WBS_GENERATOR"],"title":"AgentType","description":"Enum for all agent types (chatbot + UI)"},"AggregatePoint":{"properties":{"aggregate_score":{"type":"number","title":"Aggregate Score"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"phases_scored":{"type":"integer","title":"Phases Scored"}},"type":"object","required":["aggregate_score","timestamp","phases_scored"],"title":"AggregatePoint"},"ApplyPlanResponse":{"properties":{"baseline_runway":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Baseline Runway"},"new_runway":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"New Runway"},"survival_tier_after":{"$ref":"#/components/schemas/HealthTier"}},"type":"object","required":["baseline_runway","new_runway","survival_tier_after"],"title":"ApplyPlanResponse"},"ApplyScenarioPlanParams":{"properties":{"expected_baseline_runway":{"type":"string","title":"Expected Baseline Runway"},"expected_projected_runway":{"type":"string","title":"Expected Projected Runway"}},"type":"object","required":["expected_baseline_runway","expected_projected_runway"],"title":"ApplyScenarioPlanParams"},"ApproveLaunchMessageParams":{"properties":{"who":{"type":"string","title":"Who"},"problem":{"type":"string","title":"Problem"},"promise":{"type":"string","title":"Promise"},"ask":{"type":"string","title":"Ask"},"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"},"expected_consequence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Expected Consequence"}},"type":"object","required":["who","problem","promise","ask"],"title":"ApproveLaunchMessageParams","description":"The four fields, echoed back on confirm exactly as the founder read them: re-deriving them\nat commit could write words the founder never approved."},"ApprovePostsRequest":{"properties":{"post_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Post Ids"}},"type":"object","required":["post_ids"],"title":"ApprovePostsRequest"},"ApproveRoomsParams":{"properties":{"rooms":{"items":{"oneOf":[{"$ref":"#/components/schemas/PlatformPlace"},{"$ref":"#/components/schemas/RoomInput"}]},"type":"array","maxItems":11,"minItems":1,"title":"Rooms"},"expected_consequence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Expected Consequence"}},"type":"object","required":["rooms"],"title":"ApproveRoomsParams","description":"How many may be kept is a config value, so the service checks it, not this schema."},"ArcType":{"type":"string","enum":["POC","MVP","PMF"],"title":"ArcType"},"ArtifactType":{"type":"string","enum":["exported_document","exported_slides","exported_sheets","exported_wbs","exported_app"],"title":"ArtifactType","description":"Enum for exported artifact types"},"AssignRequest":{"properties":{"engineer_user_id":{"type":"string","minLength":1,"title":"Engineer User Id"}},"type":"object","required":["engineer_user_id"],"title":"AssignRequest","description":"Who to give it to. The actor is the caller's token, never a field."},"AudienceGender":{"type":"string","enum":["all","female","male"],"title":"AudienceGender"},"AudienceView":{"properties":{"countries":{"items":{"type":"string"},"type":"array","title":"Countries"},"age_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Min"},"age_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Max"},"gender":{"$ref":"#/components/schemas/AudienceGender"},"matched":{"items":{"type":"string"},"type":"array","title":"Matched"},"unmatched":{"items":{"type":"string"},"type":"array","title":"Unmatched"},"interests_used":{"type":"boolean","title":"Interests Used"}},"type":"object","required":["countries","gender","matched","unmatched","interests_used"],"title":"AudienceView"},"AuthCodeIntent":{"type":"string","enum":["login","signup"],"title":"AuthCodeIntent","description":"Which page asked for the code: logging in needs an account to exist, signing up may make one."},"AuthCodeSendRequest":{"properties":{"email":{"type":"string","maxLength":1024,"title":"Email"},"intent":{"$ref":"#/components/schemas/AuthCodeIntent"}},"type":"object","required":["email","intent"],"title":"AuthCodeSendRequest"},"AuthCodeSendResponse":{"properties":{"resend_after":{"type":"integer","title":"Resend After"}},"type":"object","required":["resend_after"],"title":"AuthCodeSendResponse"},"AuthCodeVerifyRequest":{"properties":{"email":{"type":"string","maxLength":1024,"title":"Email"},"code":{"type":"string","maxLength":1024,"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"}},"type":"object","required":["email","code"],"title":"AuthCodeVerifyRequest"},"AuthCodeVerifyResponse":{"properties":{"custom_token":{"type":"string","title":"Custom Token"}},"type":"object","required":["custom_token"],"title":"AuthCodeVerifyResponse"},"AutoAcceptRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"phase_type":{"$ref":"#/components/schemas/PhaseType"}},"type":"object","required":["arc","phase_type"],"title":"AutoAcceptRequest"},"AutoSelectRequest":{"properties":{"session_id":{"type":"string","title":"Session Id","description":"Session ID for existing conversation"},"question":{"type":"string","title":"Question","description":"Question to ask for selection"},"examples":{"items":{"type":"string"},"type":"array","title":"Examples","description":"Array of example options"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id","description":"Workspace ID for database persistence"}},"type":"object","required":["session_id","question","examples"],"title":"AutoSelectRequest","description":"Request model for auto-selection endpoint"},"BandMoveView":{"properties":{"from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"},"because":{"type":"string","title":"Because"}},"type":"object","required":["because"],"title":"BandMoveView"},"BatchFactResolution":{"properties":{"fact_fingerprint":{"type":"string","title":"Fact Fingerprint"},"field":{"type":"string","title":"Field"},"chosen_value_label":{"type":"string","maxLength":200,"title":"Chosen Value Label"},"chosen_value_source":{"$ref":"#/components/schemas/DocumentType"},"item_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Item Ids"}},"type":"object","required":["fact_fingerprint","field","chosen_value_label","chosen_value_source","item_ids"],"title":"BatchFactResolution","description":"A single fact selection within a batch resolve request."},"BatchResolveRequest":{"properties":{"document_type_a":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}]},"resolutions":{"items":{"$ref":"#/components/schemas/BatchFactResolution"},"type":"array","maxItems":50,"minItems":1,"title":"Resolutions"}},"type":"object","required":["resolutions"],"title":"BatchResolveRequest","description":"Request body for batch-resolving multiple facts simultaneously."},"BatchResolveResponse":{"properties":{"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"total_tasks":{"type":"integer","title":"Total Tasks","default":0},"affected_phases":{"items":{"type":"string"},"type":"array","title":"Affected Phases"},"items_resolved":{"type":"integer","title":"Items Resolved","default":0},"skipped_documents":{"items":{"$ref":"#/components/schemas/SkippedDocument"},"type":"array","title":"Skipped Documents"}},"type":"object","title":"BatchResolveResponse","description":"Returned immediately after starting a batch resolution job."},"BeginPlanRequest":{"properties":{"goal":{"$ref":"#/components/schemas/AdGoal"},"target_value":{"type":"integer","exclusiveMinimum":0.0,"title":"Target Value"},"target_window_days":{"type":"integer","exclusiveMinimum":0.0,"title":"Target Window Days"},"monthly_budget":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Monthly Budget"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency"}},"type":"object","required":["goal","target_value","target_window_days","monthly_budget","currency"],"title":"BeginPlanRequest"},"BillingSummaryResponse":{"properties":{"tier":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionTier"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"renewal_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Renewal Date"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"scheduled_tier":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionTier"},{"type":"null"}]},"is_comp":{"type":"boolean","title":"Is Comp","default":false},"is_unlimited":{"type":"boolean","title":"Is Unlimited","default":false},"balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance"},"reset_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reset Date"},"low_threshold_pct":{"type":"integer","title":"Low Threshold Pct"},"account_state":{"anyOf":[{"$ref":"#/components/schemas/AccountStateEnum"},{"type":"null"}]},"state_entered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"State Entered At"},"state_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"State Expires At"},"view_only_origin":{"anyOf":[{"$ref":"#/components/schemas/ViewOnlyOrigin"},{"type":"null"}]},"is_founding_member":{"type":"boolean","title":"Is Founding Member","default":false},"billing_enabled":{"type":"boolean","title":"Billing Enabled","default":true},"restore_eligible":{"type":"boolean","title":"Restore Eligible","default":false},"topup_reserve_balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Topup Reserve Balance","default":"0"},"topup_reserve_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Topup Reserve Expires At"},"topup_reserve_granted":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Topup Reserve Granted","default":"0"},"topup_reserve_buckets":{"items":{"$ref":"#/components/schemas/TopupReserveBucket"},"type":"array","title":"Topup Reserve Buckets"},"period_grant":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Period Grant","default":"0"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"tier_labels":{"additionalProperties":{"type":"string"},"propertyNames":{"$ref":"#/components/schemas/SubscriptionTier"},"type":"object","title":"Tier Labels"},"capability_upsell":{"additionalProperties":{"$ref":"#/components/schemas/SubscriptionTier"},"type":"object","title":"Capability Upsell"},"trial":{"anyOf":[{"$ref":"#/components/schemas/TrialInfo"},{"type":"null"}]},"trial_available":{"type":"boolean","title":"Trial Available","description":"Whether this caller's next kickoff starts the org's trial","default":false}},"type":"object","required":["balance","low_threshold_pct"],"title":"BillingSummaryResponse"},"BlockingAdView":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"ad_id":{"type":"string","title":"Ad Id"},"problem":{"$ref":"#/components/schemas/AdProblem"}},"type":"object","required":["campaign_id","ad_id","problem"],"title":"BlockingAdView"},"Body_edit_message_agents__agent_type__interact_edit_message_post":{"properties":{"session_id":{"type":"string","title":"Session Id","description":"Session ID"}},"type":"object","required":["session_id"],"title":"Body_edit_message_agents__agent_type__interact_edit_message_post"},"Body_export_to_google_slides_api_google_exports_slides_post":{"properties":{"document_title":{"type":"string","title":"Document Title","description":"Document title"},"document_content":{"type":"string","title":"Document Content","description":"Document content"},"document_type":{"$ref":"#/components/schemas/DocumentType","description":"Document type for slides","default":"business_plan"},"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType","description":"Arc type for the exported artifact"},"improvement_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Improvement Instructions","description":"Optional improvement instructions for re-export flow"}},"type":"object","required":["document_title","document_content","workspace_id","arc"],"title":"Body_export_to_google_slides_api_google_exports_slides_post"},"Body_interact_with_agent_stream_agents__agent_type__interact_stream_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files","description":"PDF files to upload","default":[]},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"User message for interaction"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"Session ID for existing conversation"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name","description":"Name of the workspace/company"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id","description":"Workspace ID for database persistence"},"include_phase_input_documents":{"type":"boolean","title":"Include Phase Input Documents","description":"Auto-include input documents for this phase from workflow config","default":false},"workflow_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Type","description":"Workflow type for document lookup (e.g., 'sales', 'founder')"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}],"description":"Active arc (POC/MVP/PMF)"},"improvement_request":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Improvement Request","description":"JSON-encoded ImprovementRequestPayload. When source='drift', the backend fetches both documents and prepends a drift-improvement instruction block."},"message_decorations":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Decorations","description":"JSON-encoded MessageDecorations — how the thread should DRAW this message (a skip request, a regeneration) rather than anything the model reads."},"instrumentation_disclosure_ack":{"type":"boolean","title":"Instrumentation Disclosure Ack","description":"The founder acknowledged the instrumentation disclosure; required before a workspace's first build.","default":false},"hub_page":{"anyOf":[{"$ref":"#/components/schemas/HubPage"},{"type":"null"}],"description":"The Marketing hub page the founder is asking from"}},"type":"object","title":"Body_interact_with_agent_stream_agents__agent_type__interact_stream_post"},"Body_read_brand_kit_api_workspaces__workspace_id__brand_kit_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_read_brand_kit_api_workspaces__workspace_id__brand_kit_post"},"Body_set_org_allowed_workflows_api_organizations_admin__org_id__workflows_patch":{"properties":{"allowed_workflows":{"items":{"type":"string"},"type":"array","title":"Allowed Workflows"}},"type":"object","required":["allowed_workflows"],"title":"Body_set_org_allowed_workflows_api_organizations_admin__org_id__workflows_patch"},"Body_upload_brand_logo_api_workspaces__workspace_id__brand_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_brand_logo_api_workspaces__workspace_id__brand_logo_post"},"Body_upload_workspace_document_api_workspaces__workspace_id__uploaded_documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_workspace_document_api_workspaces__workspace_id__uploaded_documents_post"},"BranchState":{"properties":{"exists":{"type":"boolean","title":"Exists"},"head_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Sha"},"ahead":{"type":"integer","title":"Ahead"},"behind":{"type":"integer","title":"Behind"}},"type":"object","required":["exists","head_sha","ahead","behind"],"title":"BranchState","description":"The request branch as the remote has it right now. Read on demand, never\non the bundle, so the page load makes no GitHub call."},"BrandDraftResponse":{"properties":{"logo_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Path"},"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background"},"tone":{"items":{"$ref":"#/components/schemas/BrandTone"},"type":"array","title":"Tone"},"style":{"anyOf":[{"$ref":"#/components/schemas/BrandStyle"},{"type":"null"}]},"font_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Display"},"font_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Body"},"font_substituted_from":{"anyOf":[{"$ref":"#/components/schemas/FontSubstitution"},{"type":"null"}]},"kit_source":{"$ref":"#/components/schemas/BrandKitSource"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["kit_source"],"title":"BrandDraftResponse","description":"What a brand kit said, to prefill the step; nothing is saved until the brand is. ``message``\nsays why every field is empty when the kit had nothing to read."},"BrandFontsResponse":{"properties":{"families":{"items":{"$ref":"#/components/schemas/GoogleFontView"},"type":"array","title":"Families"},"pairs":{"items":{"$ref":"#/components/schemas/FontPairView"},"type":"array","title":"Pairs"}},"type":"object","required":["families","pairs"],"title":"BrandFontsResponse","description":"The Google Fonts a brand may use, most popular first, and Claura's suggested pairs from them."},"BrandKitSource":{"properties":{"files":{"items":{"type":"string"},"type":"array","title":"Files"},"read_at":{"type":"string","format":"date-time","title":"Read At"}},"type":"object","required":["files","read_at"],"title":"BrandKitSource","description":"Which kit files a brand was read from, and when."},"BrandStyle":{"type":"string","enum":["clean","soft","bold"],"title":"BrandStyle"},"BrandTone":{"type":"string","enum":["friendly","direct","calm","playful","expert"],"title":"BrandTone"},"BrandUpdateRequest":{"properties":{"logo_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Path"},"accent":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Accent"},"text":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Text"},"background":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Background"},"tone":{"items":{"$ref":"#/components/schemas/BrandTone"},"type":"array","maxItems":2,"title":"Tone"},"style":{"anyOf":[{"$ref":"#/components/schemas/BrandStyle"},{"type":"null"}]},"font_display":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Font Display"},"font_body":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Font Body"},"kit_source":{"anyOf":[{"$ref":"#/components/schemas/BrandKitSource"},{"type":"null"}]}},"type":"object","title":"BrandUpdateRequest","description":"The whole brand, as the founder leaves it: an absent field is cleared."},"BrandView":{"properties":{"logo_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Path"},"has_logo":{"type":"boolean","title":"Has Logo"},"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background"},"tone":{"items":{"$ref":"#/components/schemas/BrandTone"},"type":"array","title":"Tone"},"style":{"anyOf":[{"$ref":"#/components/schemas/BrandStyle"},{"type":"null"}]},"font_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Display"},"font_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Body"},"fonts_href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fonts Href"},"kit_source":{"anyOf":[{"$ref":"#/components/schemas/BrandKitSource"},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["has_logo","updated_at"],"title":"BrandView"},"BucketType":{"type":"string","enum":["trial","cycle","topup"],"title":"BucketType"},"BudgetBoundsView":{"properties":{"minimum":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Minimum"},"maximum":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Maximum"},"step":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Step"}},"type":"object","required":["minimum","maximum","step"],"title":"BudgetBoundsView"},"BudgetRequest":{"properties":{"daily_budget":{"anyOf":[{"type":"number","maximum":1000000000.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Daily Budget"}},"type":"object","required":["daily_budget"],"title":"BudgetRequest"},"BudgetResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"total_budget":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Budget"},"current_spend":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Current Spend"},"weekly_burn":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Weekly Burn"},"runway_weeks_override":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runway Weeks Override"},"runway_weeks":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runway Weeks"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","arc","created_at","updated_at"],"title":"BudgetResponse"},"BudgetUpdateRequest":{"properties":{"total_budget":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Budget"},"current_spend":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Current Spend"},"weekly_burn":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Weekly Burn"},"runway_weeks_override":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runway Weeks Override"}},"type":"object","title":"BudgetUpdateRequest"},"BuildStatus":{"type":"string","enum":["building","awaiting_input","awaiting_confirm","published","failed","discarded"],"title":"BuildStatus","description":"``building -> awaiting_input | awaiting_confirm -> published``, with ``failed`` and\n``discarded`` as the two ways a build ends without going live."},"BuildSurface":{"type":"string","enum":["landing_page","prototype"],"title":"BuildSurface"},"BuildTrigger":{"type":"string","enum":["founder","drift_fix","prototype_update","engineer","rollback","brand_update","message_publish"],"title":"BuildTrigger"},"BuildView":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"surface":{"$ref":"#/components/schemas/BuildSurface"},"version_number":{"type":"integer","title":"Version Number"},"is_current":{"type":"boolean","title":"Is Current"},"status":{"$ref":"#/components/schemas/BuildStatus"},"trigger":{"$ref":"#/components/schemas/BuildTrigger"},"attempt":{"type":"integer","title":"Attempt"},"turn_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turn Id"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"deploy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deploy Url"},"commit_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Sha"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","arc","surface","version_number","is_current","status","trigger","attempt","created_at"],"title":"BuildView"},"BuilderLoopState":{"properties":{"exists":{"type":"boolean","title":"Exists","default":false},"delivered":{"type":"boolean","title":"Delivered","default":false}},"type":"object","title":"BuilderLoopState","description":"One build surface's state for the active arc — the FE's phase locking/redirect input.\n``exists`` = any build at all (a failed attempt still means the phase was triggered);\n``delivered`` = at least one published build."},"BuildsResponse":{"properties":{"current":{"anyOf":[{"$ref":"#/components/schemas/BuildView"},{"type":"null"}]},"staged":{"anyOf":[{"$ref":"#/components/schemas/BuildView"},{"type":"null"}]}},"type":"object","title":"BuildsResponse","description":"The published page and the build staged on top of it; either may be absent."},"BulkAcceptRequest":{"properties":{"agree_criterion_ids":{"items":{"type":"string"},"type":"array","title":"Agree Criterion Ids","default":[]},"accept_kpi_ids":{"items":{"type":"string"},"type":"array","title":"Accept Kpi Ids","default":[]},"reject_kpi_ids":{"items":{"type":"string"},"type":"array","title":"Reject Kpi Ids","default":[]}},"type":"object","title":"BulkAcceptRequest"},"BulkAcceptResponse":{"properties":{"criteria_agreed":{"type":"integer","title":"Criteria Agreed"},"kpis_accepted":{"type":"integer","title":"Kpis Accepted"},"kpis_rejected":{"type":"integer","title":"Kpis Rejected"}},"type":"object","required":["criteria_agreed","kpis_accepted","kpis_rejected"],"title":"BulkAcceptResponse"},"BulkTaskStatusRequest":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Task Ids"},"status":{"$ref":"#/components/schemas/TaskStatus"}},"type":"object","required":["task_ids","status"],"title":"BulkTaskStatusRequest"},"CalendarCampaignView":{"properties":{"id":{"type":"string","title":"Id"},"plan_id":{"type":"string","title":"Plan Id"},"platform":{"$ref":"#/components/schemas/AdPlatform"},"label":{"type":"string","title":"Label"},"name":{"type":"string","title":"Name"},"pill":{"$ref":"#/components/schemas/AdPill"},"pending":{"type":"boolean","title":"Pending"},"ads_rejected":{"type":"boolean","title":"Ads Rejected"},"paused_by":{"anyOf":[{"$ref":"#/components/schemas/PausedBy"},{"type":"null"}]},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"sync_error":{"anyOf":[{"$ref":"#/components/schemas/SendErrorView"},{"type":"null"}]},"daily_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Daily Budget"},"currency":{"type":"string","title":"Currency"},"currency_mismatch":{"type":"boolean","title":"Currency Mismatch"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At"},"removed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Removed At"},"spent_days":{"items":{"type":"string","format":"date"},"type":"array","title":"Spent Days"},"month":{"$ref":"#/components/schemas/CalendarMonthView"}},"type":"object","required":["id","plan_id","platform","label","name","pill","pending","ads_rejected","reasons","daily_budget","currency","currency_mismatch","sent_at","spent_days","month"],"title":"CalendarCampaignView"},"CalendarKind":{"type":"string","enum":["posted","claura_posts","you_post","needs_approval","missed"],"title":"CalendarKind"},"CalendarMonthView":{"properties":{"starts_on":{"type":"string","format":"date","title":"Starts On"},"renews_on":{"type":"string","format":"date","title":"Renews On"},"spend":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Spend"},"share":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Share"}},"type":"object","required":["starts_on","renews_on","share"],"title":"CalendarMonthView"},"CallAudienceResponse":{"properties":{"clicked_to_book":{"type":"integer","title":"Clicked To Book"},"leads":{"type":"integer","title":"Leads"},"lead_emails":{"items":{"type":"string"},"type":"array","title":"Lead Emails"},"logged_calls":{"type":"integer","title":"Logged Calls","default":0},"questions":{"items":{"type":"string"},"type":"array","title":"Questions"},"outreach_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outreach Note"},"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"}},"type":"object","required":["clicked_to_book","leads"],"title":"CallAudienceResponse","description":"Who to talk to, from the two stores that never join.\n\n``clicked_to_book`` is distinct visitors who clicked the call tier — an intention, not a\nbooking, which happens on the founder's own calendar. ``leads`` is everyone who left an\nemail; the click is anonymous, so the two cannot be subtracted."},"CampaignState":{"type":"string","enum":["blocked","ready","sending","failed","unconfirmed","sent"],"title":"CampaignState"},"CampaignView":{"properties":{"id":{"type":"string","title":"Id"},"platform":{"$ref":"#/components/schemas/AdPlatform"},"label":{"type":"string","title":"Label"},"name":{"type":"string","title":"Name"},"audience":{"type":"string","title":"Audience"},"monthly_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Budget"},"daily_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Daily Budget"},"currency":{"type":"string","title":"Currency"},"ads":{"items":{"$ref":"#/components/schemas/AdView"},"type":"array","title":"Ads"}},"type":"object","required":["id","platform","label","name","audience","monthly_budget","daily_budget","currency","ads"],"title":"CampaignView"},"CannotDoRequest":{"properties":{"note":{"type":"string","maxLength":4000,"minLength":1,"title":"Note"},"needed_instead":{"type":"string","maxLength":4000,"minLength":1,"title":"Needed Instead"}},"type":"object","required":["note","needed_instead"],"title":"CannotDoRequest","description":"Why it can't be done, and what would be needed instead — the founder is owed\nboth, so neither is optional."},"CannotTakeOnRequest":{"properties":{"note":{"type":"string","maxLength":4000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"CannotTakeOnRequest"},"ChangeMarkerView":{"properties":{"step":{"$ref":"#/components/schemas/LaunchStep"},"page":{"$ref":"#/components/schemas/HubPage"},"at":{"type":"string","format":"date-time","title":"At"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"type":"object","required":["step","page","at"],"title":"ChangeMarkerView","description":"One change to the launch: the step, the hub page it was made on, when, and the document version\n(None for a post)."},"ChannelChoice":{"properties":{"channel_id":{"type":"string","maxLength":128,"minLength":1,"title":"Channel Id"}},"type":"object","required":["channel_id"],"title":"ChannelChoice"},"ChannelChoiceView":{"properties":{"platform":{"$ref":"#/components/schemas/SocialPlatform"},"channels":{"items":{"$ref":"#/components/schemas/SocialChannelView"},"type":"array","title":"Channels"}},"type":"object","required":["platform","channels"],"title":"ChannelChoiceView"},"CheckoutSessionRequest":{"properties":{"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"source_surface":{"type":"string","maxLength":100,"title":"Source Surface","default":"billing_screen"},"return_path":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Return Path"},"ga_session_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ga Session Id"},"ga_client_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ga Client Id"}},"type":"object","required":["tier"],"title":"CheckoutSessionRequest"},"CheckoutSessionResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CheckoutSessionResponse"},"ChooseAdAccountRequest":{"properties":{"ad_account_id":{"type":"string","maxLength":64,"minLength":1,"title":"Ad Account Id"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["ad_account_id"],"title":"ChooseAdAccountRequest"},"CitationSourceRef":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"kind":{"$ref":"#/components/schemas/DiagnosisSourceKind"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"document_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Url"}},"type":"object","required":["id","label","kind"],"title":"CitationSourceRef","description":"The material behind a citation — what opens on tap.\n\n``url`` is set for link sources (opens in a new tab); ``document_url``\nfor file sources (the existing uploaded-document serving endpoint, with\nthe page in the citation's ``location``); text sources carry neither —\ntheir quote panel is the whole reference."},"ClauraPlace":{"properties":{"kind":{"type":"string","const":"space","title":"Kind","default":"space"},"platform":{"type":"string","title":"Platform","description":"The platform, e.g. \"reddit\", \"slack\", \"discord\", \"email\"."},"room":{"type":"string","title":"Room","description":"The specific place, verbatim — e.g. \"r/smallbusiness\" or \"Indie Hackers #launch\"."},"why":{"type":"string","title":"Why","description":"One line on why the people there are the people in the message."},"evidence_tier":{"$ref":"#/components/schemas/RoomEvidenceTier","description":"How well you checked THIS place. 'verified' only if you opened the community's own page and read its rules there — a login wall or a page that does not name the community is NOT verification. 'reported' if you could not open it but read a third-party source that names it and describes its rules. 'founder_named' if the founder named it and you checked nothing."},"rules":{"type":"string","title":"Rules","description":"The promotion rules, in plain words — whether posting is allowed, and any thread, day, karma or approval requirement. Never guess this; it comes from what you read."},"posting_rule":{"$ref":"#/components/schemas/RoomPostingRule","description":"The friction, classified: 'open', 'thread_only' (promo confined to a thread or day), 'approval_required' (mods gate it, or a karma/age minimum), 'banned'. Never propose a place whose rule is 'banned' — the post is removed within the hour and the run is wasted."},"source_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Source Url","description":"The page you actually read. Required for 'verified' (and it must be on the community's own platform) and for 'reported'. Never set it for 'founder_named' — do not attach a source you did not read."},"source_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Date","description":"When the third-party source was written or last updated. Required for 'reported', so the founder can judge how stale a second-hand claim is."},"activity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity","description":"The liveness fact, if you have one — \"240 comments last week\", \"1.9M members\". Leave empty when the platform gave you no number; never invent one."},"source":{"type":"string","const":"claura","title":"Source","default":"claura"}},"type":"object","required":["platform","room","why","evidence_tier","rules","posting_rule"],"title":"ClauraPlace","description":"A place Claura found (the CMO or an engineer), kept with the research that found it."},"CleanupExportResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"items_deleted":{"type":"integer","title":"Items Deleted","default":0},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["success"],"title":"CleanupExportResponse","description":"Response from cleanup operation"},"CombineMode":{"type":"string","enum":["single_pdf","separate_pdfs","combined_pdf"],"title":"CombineMode","description":"How a phase's input documents are packaged when they pass to the next phase."},"ComingSoonOffer":{"properties":{"treatment":{"$ref":"#/components/schemas/OfferTreatment","default":"coming_soon"}},"type":"object","title":"ComingSoonOffer","description":"Something we intend to offer and do not yet.\n\nCarries a treatment rather than being implied by presence, so the frontend\nrenders every offer through one switch on ``treatment``."},"CompCreditsRequest":{"properties":{"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount","description":"Credits to grant (positive)"},"cycle_id":{"type":"string","minLength":1,"title":"Cycle Id","description":"Comp cycle id (idempotency scope)"},"reason":{"type":"string","minLength":1,"title":"Reason","description":"Why — recorded on the audit row"}},"type":"object","required":["amount","cycle_id","reason"],"title":"CompCreditsRequest"},"ConfigCatalogResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ConfigTaxonomyEntryResponse"},"type":"array","title":"Groups"},"tags":{"items":{"$ref":"#/components/schemas/ConfigTaxonomyEntryResponse"},"type":"array","title":"Tags"}},"type":"object","required":["groups","tags"],"title":"ConfigCatalogResponse","description":"The runtime-config taxonomy: groups in tab order, plus the cross-cutting\ntags. Served so tab ordering and labels live in this repo only, rather than\nbeing duplicated in the frontend where they would drift."},"ConfigChoiceResponse":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"ConfigChoiceResponse","description":"One dropdown option for a constrained config key."},"ConfigGroup":{"type":"string","enum":["billing","payments","lifecycle","ai_models","delivery","workspace_health","advisor","quality_gates","marketing","platform"],"title":"ConfigGroup","description":"The admin Configuration tab a key lives under, exactly one per key; declaration order is\ntab order."},"ConfigTag":{"type":"string","enum":["feature_flag","stripe"],"title":"ConfigTag","description":"What to know before changing a key, independent of its group; optional, and a key may\ncarry several. There is no restart-required tag: a value that needs a restart is a setting in\ninfra/env-registry.yaml, not runtime config."},"ConfigTaxonomyEntryResponse":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"}},"type":"object","required":["value","label","description"],"title":"ConfigTaxonomyEntryResponse","description":"One selectable group or tag, with the copy the admin UI renders."},"ConfigUpdateRequest":{"properties":{"key":{"type":"string","maxLength":128,"minLength":1,"title":"Key"},"value":{"title":"Value"}},"type":"object","required":["key","value"],"title":"ConfigUpdateRequest","description":"One registered runtime-config key with its new value."},"ConfigValueResponse":{"properties":{"key":{"type":"string","title":"Key"},"value":{"title":"Value"},"value_type":{"$ref":"#/components/schemas/ConfigValueType"},"group":{"$ref":"#/components/schemas/ConfigGroup"},"tags":{"items":{"$ref":"#/components/schemas/ConfigTag"},"type":"array","title":"Tags"},"description":{"type":"string","title":"Description"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConfigChoiceResponse"},"type":"array"},{"type":"null"}],"title":"Options"}},"type":"object","required":["key","value","value_type","group","tags","description","updated_at"],"title":"ConfigValueResponse","description":"Current state of one runtime-config entry: its stored value plus the\nregistry classification the admin UI groups and badges it by.\n\nDeliberately no ``from_attributes``: ``group``/``tags`` are not columns, so\n``model_validate(row)`` cannot produce a valid instance. ``from_row`` is the\nonly way in."},"ConfigValueType":{"type":"string","enum":["int","float","bool","str","json"],"title":"ConfigValueType","description":"Value types a runtime-config entry can hold (app_config.value_type)."},"ConfirmActionResponse":{"properties":{"action_token":{"type":"string","title":"Action Token"},"action_type":{"$ref":"#/components/schemas/AdvisorActionType"},"arc":{"$ref":"#/components/schemas/ArcType"},"status":{"type":"string","enum":["confirmed","noop"],"title":"Status"},"result":{"additionalProperties":true,"type":"object","title":"Result"}},"type":"object","required":["action_token","action_type","arc","status","result"],"title":"ConfirmActionResponse"},"ConfirmApplyScenarioPlan":{"properties":{"action_token":{"type":"string","minLength":1,"title":"Action Token"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}]},"action_type":{"type":"string","const":"apply_scenario_plan","title":"Action Type"},"params":{"$ref":"#/components/schemas/ApplyScenarioPlanParams"}},"type":"object","required":["action_token","action_type","params"],"title":"ConfirmApplyScenarioPlan"},"ConfirmApproveLaunchMessage":{"properties":{"action_token":{"type":"string","minLength":1,"title":"Action Token"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}]},"action_type":{"type":"string","const":"approve_launch_message","title":"Action Type"},"params":{"$ref":"#/components/schemas/ApproveLaunchMessageParams"}},"type":"object","required":["action_token","action_type","params"],"title":"ConfirmApproveLaunchMessage"},"ConfirmApproveRooms":{"properties":{"action_token":{"type":"string","minLength":1,"title":"Action Token"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}]},"action_type":{"type":"string","const":"approve_rooms","title":"Action Type"},"params":{"$ref":"#/components/schemas/ApproveRoomsParams"}},"type":"object","required":["action_token","action_type","params"],"title":"ConfirmApproveRooms"},"ConfirmBuildRequest":{"properties":{"escalated":{"type":"boolean","title":"Escalated","default":false}},"additionalProperties":false,"type":"object","title":"ConfirmBuildRequest","description":"``escalated`` acknowledges an irreversible publish, such as over a live address."},"ConfirmLogEvidence":{"properties":{"action_token":{"type":"string","minLength":1,"title":"Action Token"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}]},"action_type":{"type":"string","const":"log_evidence","title":"Action Type"},"params":{"$ref":"#/components/schemas/LogEvidenceParams"}},"type":"object","required":["action_token","action_type","params"],"title":"ConfirmLogEvidence"},"ConfirmUndoEvidence":{"properties":{"action_token":{"type":"string","minLength":1,"title":"Action Token"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}]},"action_type":{"type":"string","const":"undo_evidence","title":"Action Type"},"params":{"$ref":"#/components/schemas/UndoEvidenceParams"}},"type":"object","required":["action_token","action_type","params"],"title":"ConfirmUndoEvidence"},"ConfirmUndoScenarioPlan":{"properties":{"action_token":{"type":"string","minLength":1,"title":"Action Token"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}]},"action_type":{"type":"string","const":"undo_scenario_plan","title":"Action Type"},"params":{"$ref":"#/components/schemas/UndoScenarioPlanParams"}},"type":"object","required":["action_token","action_type","params"],"title":"ConfirmUndoScenarioPlan"},"ConfirmUpdateBudget":{"properties":{"action_token":{"type":"string","minLength":1,"title":"Action Token"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}]},"action_type":{"type":"string","const":"update_budget","title":"Action Type"},"params":{"$ref":"#/components/schemas/UpdateBudgetParams"}},"type":"object","required":["action_token","action_type","params"],"title":"ConfirmUpdateBudget"},"ConnectOutcome":{"type":"string","enum":["connected","cancelled","permissions_not_granted","no_ad_account","missing_page","failed"],"title":"ConnectOutcome"},"ConnectRequest":{"properties":{"business_access":{"type":"boolean","title":"Business Access","default":false}},"type":"object","title":"ConnectRequest"},"ConnectResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"ConnectResponse"},"ConnectionState":{"type":"string","enum":["connected","disconnected","broken"],"title":"ConnectionState","description":"Connection lifecycle state for a PM tool integration (orthogonal to export run status)."},"ConnectionSummary":{"properties":{"provider":{"$ref":"#/components/schemas/PMToolProvider"},"connection_state":{"anyOf":[{"$ref":"#/components/schemas/ConnectionState"},{"type":"null"}]},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"board_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board Url"},"stale":{"type":"boolean","title":"Stale","default":false},"can_reconnect":{"type":"boolean","title":"Can Reconnect","default":false},"sync_halt":{"anyOf":[{"$ref":"#/components/schemas/SyncHaltReason"},{"type":"null"}]}},"type":"object","required":["provider"],"title":"ConnectionSummary","description":"Per-connection freshness summary for the overview header."},"ContestDirection":{"type":"string","enum":["calls_say_yes","calls_say_no"],"title":"ContestDirection","description":"Which way the calls point against the page."},"CreateActivityEventRequest":{"properties":{"event_type":{"$ref":"#/components/schemas/ActivityEventType"},"actor":{"$ref":"#/components/schemas/ActivityActor"},"arc":{"$ref":"#/components/schemas/ArcType"},"phase_type":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"}},"type":"object","required":["event_type","actor","arc"],"title":"CreateActivityEventRequest","description":"What a client may state about an activity event.\n\n`actor_user_id` is deliberately ABSENT. This schema is bound to\n`POST /workspaces/{workspace_id}/activity-events`, which is EDITOR-gated and\nreachable by any collaborator with edit rights — so accepting a named person\nhere would let an editor forge who did the work in the founder's own\nhistory. Attribution taken from the caller is not attribution.\n\nFor the same reason the three remaining fields a client CAN state are each\nnarrowed below. Exposing the whole `ActivityEventType` vocabulary let an\neditor mint a `HEALTH_TIER_CHANGED` row, which `health_tier_service` reads\nback as real decision state; exposing the whole `ActivityActor` set let them\nsign it as SYSTEM or AI; and an unbounded `payload` reaches the advisor's\ngrounding snapshot, so it is untrusted text in an LLM prompt. The server-side\nwriters set `actor_user_id` from the authenticated principal and record every\nother event type directly, so nothing legitimate loses a route here."},"CreateCampaignView":{"properties":{"platform":{"$ref":"#/components/schemas/AdPlatform"},"label":{"type":"string","title":"Label"},"goal_label":{"type":"string","title":"Goal Label"},"name":{"type":"string","title":"Name"},"why":{"type":"string","title":"Why"},"monthly_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Budget"},"daily_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Daily Budget"},"currency":{"type":"string","title":"Currency"},"ads":{"items":{"$ref":"#/components/schemas/PlannedAdView"},"type":"array","title":"Ads"}},"type":"object","required":["platform","label","goal_label","name","why","monthly_budget","daily_budget","currency","ads"],"title":"CreateCampaignView"},"CreatePlanRequest":{"properties":{"post_count":{"type":"integer","title":"Post Count"},"timezone":{"type":"string","title":"Timezone"}},"type":"object","required":["post_count","timezone"],"title":"CreatePlanRequest"},"CreatePreviewView":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"campaigns":{"items":{"$ref":"#/components/schemas/CreateCampaignView"},"type":"array","title":"Campaigns"},"credits":{"$ref":"#/components/schemas/CreditRangeView"},"affordable":{"type":"boolean","title":"Affordable"},"balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance"},"site":{"type":"string","title":"Site"},"connected":{"type":"boolean","title":"Connected"},"unconnected":{"items":{"$ref":"#/components/schemas/AdPlatform"},"type":"array","title":"Unconnected"},"blocked":{"items":{"$ref":"#/components/schemas/AdAccountBlockView"},"type":"array","title":"Blocked"},"directions":{"items":{"$ref":"#/components/schemas/DirectionView"},"type":"array","title":"Directions"},"suggested_direction":{"$ref":"#/components/schemas/GraphicDirection"},"chosen_direction":{"anyOf":[{"$ref":"#/components/schemas/GraphicDirection"},{"type":"null"}]}},"type":"object","required":["plan_id","campaigns","credits","affordable","balance","site","connected","unconnected","blocked","directions","suggested_direction"],"title":"CreatePreviewView"},"CreateRunView":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"state":{"$ref":"#/components/schemas/CreateState"},"ready":{"type":"integer","title":"Ready"},"total":{"type":"integer","title":"Total"},"reviewable":{"type":"boolean","title":"Reviewable","default":false},"campaigns":{"items":{"$ref":"#/components/schemas/CampaignView"},"type":"array","title":"Campaigns"}},"type":"object","required":["plan_id","state","ready","total","campaigns"],"title":"CreateRunView"},"CreateState":{"type":"string","enum":["not_started","writing","making_media","ready","unfinished"],"title":"CreateState"},"CreditContext":{"additionalProperties":true,"type":"object"},"CreditRangeView":{"properties":{"low":{"type":"integer","title":"Low"},"high":{"type":"integer","title":"High"}},"type":"object","required":["low","high"],"title":"CreditRangeView"},"CriterionResponse":{"properties":{"id":{"type":"string","title":"Id"},"phase_type":{"$ref":"#/components/schemas/PhaseType"},"arc":{"$ref":"#/components/schemas/ArcType"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"status":{"$ref":"#/components/schemas/CriterionStatus"},"founder_action":{"$ref":"#/components/schemas/FounderAction"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","phase_type","arc","title","description","status","founder_action","created_at","updated_at"],"title":"CriterionResponse"},"CriterionScore":{"properties":{"max_score":{"type":"number","title":"Max Score","description":"Maximum possible score (always 10.0 for 1-10 scale)","default":10.0},"score":{"type":"number","title":"Score","description":"Score on 1.0-10.0 scale"},"evidence":{"type":"string","title":"Evidence","description":"Supporting evidence from the artifacts"}},"type":"object","required":["score","evidence"],"title":"CriterionScore","description":"Detailed score breakdown for a single criterion"},"CriterionStatus":{"type":"string","enum":["generating","proposed","committed","outdated","failed"],"title":"CriterionStatus"},"CurrencyBlockKind":{"type":"string","enum":["outside_list","disagrees","other_than_plan"],"title":"CurrencyBlockKind"},"CurrencyBlockView":{"properties":{"kind":{"$ref":"#/components/schemas/CurrencyBlockKind"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["kind","detail"],"title":"CurrencyBlockView"},"CurrentPlanView":{"properties":{"plan":{"anyOf":[{"$ref":"#/components/schemas/PlanView"},{"type":"null"}]},"step_one":{"anyOf":[{"$ref":"#/components/schemas/StepOneView"},{"type":"null"}]}},"type":"object","title":"CurrentPlanView","description":"What the founder is in the middle of: a written plan, or step 1 still being answered."},"DashboardAdView":{"properties":{"id":{"type":"string","title":"Id"},"campaign_id":{"type":"string","title":"Campaign Id"},"format":{"$ref":"#/components/schemas/AdFormat"},"format_label":{"type":"string","title":"Format Label"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"creative":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Creative"},"media":{"items":{"$ref":"#/components/schemas/PostMediaView"},"type":"array","title":"Media"},"pill":{"$ref":"#/components/schemas/AdPill"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"figures":{"$ref":"#/components/schemas/FiguresView"},"verdict":{"anyOf":[{"$ref":"#/components/schemas/AdVerdict"},{"type":"null"}]},"tag":{"anyOf":[{"$ref":"#/components/schemas/AdTag"},{"type":"null"}]}},"type":"object","required":["id","campaign_id","format","format_label","media","pill","reasons","figures"],"title":"DashboardAdView"},"DashboardCampaignView":{"properties":{"id":{"type":"string","title":"Id"},"plan_id":{"type":"string","title":"Plan Id"},"platform":{"$ref":"#/components/schemas/AdPlatform"},"label":{"type":"string","title":"Label"},"name":{"type":"string","title":"Name"},"daily_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Daily Budget"},"budget_synced":{"type":"boolean","title":"Budget Synced"},"currency":{"type":"string","title":"Currency"},"currency_mismatch":{"type":"boolean","title":"Currency Mismatch"},"pill":{"$ref":"#/components/schemas/AdPill"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"paused_by":{"anyOf":[{"$ref":"#/components/schemas/PausedBy"},{"type":"null"}]},"sync_error":{"anyOf":[{"$ref":"#/components/schemas/SendErrorView"},{"type":"null"}]},"figures":{"$ref":"#/components/schemas/FiguresView"},"ads":{"items":{"$ref":"#/components/schemas/DashboardAdView"},"type":"array","title":"Ads"},"audience":{"anyOf":[{"$ref":"#/components/schemas/AudienceView"},{"type":"null"}]},"released":{"type":"boolean","title":"Released","default":false},"ads_manager_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ads Manager Url"}},"type":"object","required":["id","plan_id","platform","label","name","daily_budget","budget_synced","currency","currency_mismatch","pill","reasons","figures","ads"],"title":"DashboardCampaignView"},"DashboardDays":{"type":"integer","enum":[7,30],"title":"DashboardDays"},"DashboardInteractionRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"arc":{"type":"string","title":"Arc","description":"Active arc (MVP, POC, PMF)"},"component":{"type":"string","title":"Component","description":"Dashboard component interacted with"},"action":{"type":"string","title":"Action","description":"Interaction type (deep_link, edit, switch, filter, expand)"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data","description":"Event-specific structured data"}},"type":"object","required":["workspace_id","arc","component","action"],"title":"DashboardInteractionRequest","description":"Request model for dashboard widget interaction tracking"},"DashboardPlanView":{"properties":{"id":{"type":"string","title":"Id"},"goal":{"$ref":"#/components/schemas/AdGoal"},"goal_label":{"type":"string","title":"Goal Label"},"currency":{"type":"string","title":"Currency"},"monthly_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Total"},"min_daily_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Min Daily Budget"},"min_monthly_total":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Min Monthly Total"},"max_monthly_total":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Max Monthly Total"},"period_spend":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Period Spend"},"restarts_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Restarts On"},"target_line":{"$ref":"#/components/schemas/TargetLineView"},"campaigns":{"items":{"$ref":"#/components/schemas/DashboardCampaignView"},"type":"array","title":"Campaigns"}},"type":"object","required":["id","goal","goal_label","currency","monthly_total","min_daily_budget","max_monthly_total","target_line","campaigns"],"title":"DashboardPlanView"},"DashboardResponse":{"properties":{"phases":{"items":{"$ref":"#/components/schemas/PhaseScore"},"type":"array","title":"Phases"},"aggregate_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aggregate Score"},"aggregate_trend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aggregate Trend"},"aggregate_trend_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aggregate Trend Window"},"phases_scored":{"type":"integer","title":"Phases Scored"},"phases_total":{"type":"integer","title":"Phases Total"}},"type":"object","required":["phases","phases_scored","phases_total"],"title":"DashboardResponse"},"DashboardView":{"properties":{"days":{"type":"integer","title":"Days"},"has_sent":{"type":"boolean","title":"Has Sent"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Synced At"},"totals":{"$ref":"#/components/schemas/FiguresView"},"previous_totals":{"anyOf":[{"$ref":"#/components/schemas/FiguresView"},{"type":"null"}]},"platforms":{"items":{"$ref":"#/components/schemas/PlatformCardView"},"type":"array","title":"Platforms"},"plans":{"items":{"$ref":"#/components/schemas/DashboardPlanView"},"type":"array","title":"Plans"},"unlaunched_plans":{"items":{"$ref":"#/components/schemas/UnlaunchedPlanView"},"type":"array","title":"Unlaunched Plans"},"read":{"$ref":"#/components/schemas/ReadView"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"}},"type":"object","required":["days","has_sent","totals","platforms","plans","unlaunched_plans","read"],"title":"DashboardView"},"DeliverableKind":{"type":"string","enum":["document","build"],"title":"DeliverableKind","description":"What a request is ABOUT, as opposed to what came back (`HandBackResultType`).\n\nResolved server-side from the deliverable the request names, never from the\nkind alone: a review of a business plan is about a document, a review of the\nlanding page is about a build. `None` is a request about nothing in\nparticular — a research question, an open-ended ask."},"DeliveryFailure":{"type":"string","enum":["blocked","unreachable","http_error"],"title":"DeliveryFailure","description":"What the snippet OBSERVED when its primary send failed — evidence, not a\nconclusion. The server maps these to an ``ExclusionReason``.\n\nThe snippet cannot know for certain that an ad blocker is responsible: a\nrejected ``fetch`` also means CSP, CORS, DNS or TLS failure. So it reports\nwhat it actually saw and lets the distinction survive to the audit, rather\nthan asserting \"blocked\" for every failure."},"DeliveryOutcome":{"type":"string","enum":["live","merged_not_live"],"title":"DeliveryOutcome","description":"What the accept's publish came to, for the founder.\n\nThe absence of a value is a third meaning, as with `RequestVerdict`: NULL is\n\"no publish was attempted\", which is the honest answer for a document result\nand for work not yet accepted. It must not be read as a failure.\n\n`MERGED_NOT_LIVE` is deliberately not an error. The merge already landed, so\nthe change IS in main; only the deploy is behind. The recovery is redeploying\nthe same sha, never unmerging — so the founder is told the truth rather than\nshown a failure over a merge that succeeded."},"DeliveryTrackerExportConfig":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType","description":"Arc whose materialized WBS to export. Required — provided by the frontend, never defaulted."},"target_parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Parent Id","description":"Target parent location in the PM tool (e.g. Notion page ID or Linear team ID)"}},"type":"object","required":["arc"],"title":"DeliveryTrackerExportConfig","description":"Configuration for Delivery Tracker export"},"DeployAuthorKind":{"type":"string","enum":["agent","engineer","system"],"title":"DeployAuthorKind","description":"Who changed the live version — resolved from the entity that claimed the commit, never\nfrom the activity event's `actor`, which is always the founder who confirmed."},"DeployHistoryEntry":{"properties":{"commit_sha":{"type":"string","title":"Commit Sha"},"deployed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deployed At"},"author_kind":{"$ref":"#/components/schemas/DeployAuthorKind"},"deploy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deploy Url"},"state":{"$ref":"#/components/schemas/DeployState"},"commit_message":{"type":"string","title":"Commit Message"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"}},"additionalProperties":false,"type":"object","required":["commit_sha","author_kind","state","commit_message"],"title":"DeployHistoryEntry","description":"One commit on main, with everything known about how it got there."},"DeployHistoryPage":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/DeployHistoryEntry"},"type":"array","title":"Entries"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["entries"],"title":"DeployHistoryPage","description":"Cursor-paged over GitHub's commit list: a `total` would cost a second full walk of\nGitHub's API for a number nothing renders."},"DeployState":{"type":"string","enum":["live","deploying","not_deployed","failed"],"title":"DeployState","description":"Where a merged commit got to. Each state is one the founder acts on differently, so none\ncollapses into absence."},"DiagnosisAnswer":{"properties":{"question_id":{"type":"string","maxLength":64,"title":"Question Id"},"option_id":{"anyOf":[{"type":"string","enum":["a","b","c"]},{"type":"null"}],"title":"Option Id"},"text":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Text"}},"type":"object","required":["question_id"],"title":"DiagnosisAnswer","description":"One blocker's answer: one of Claura's options, or the founder's own words."},"DiagnosisAnswersRequest":{"properties":{"answers":{"items":{"$ref":"#/components/schemas/DiagnosisAnswer"},"type":"array","maxItems":5,"minItems":1,"title":"Answers"}},"type":"object","required":["answers"],"title":"DiagnosisAnswersRequest","description":"POST /diagnosis/answers — every blocker answered, once."},"DiagnosisBackfillSummary":{"properties":{"drafted":{"items":{"type":"string"},"type":"array","title":"Drafted"},"failed":{"items":{"type":"string"},"type":"array","title":"Failed"},"work_breakdown_failed":{"type":"boolean","title":"Work Breakdown Failed","default":false}},"type":"object","title":"DiagnosisBackfillSummary","description":"Which stages drafted and which didn't. A partial backfill is surfaced\nhonestly rather than reported as a clean success."},"DiagnosisBrandEvent":{"properties":{"type":{"type":"string","const":"brand","title":"Type"},"message":{"$ref":"#/components/schemas/GeneratedBrandMessage"}},"additionalProperties":true,"type":"object","required":["type","message"],"title":"DiagnosisBrandEvent","description":"The brand job's first look: the saved brand and the launch words it proposed."},"DiagnosisCitationView":{"properties":{"id":{"type":"string","title":"Id"},"quote":{"type":"string","title":"Quote"},"evidence_kind":{"$ref":"#/components/schemas/EvidenceKind","default":"quote"},"location":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Location"},"source":{"$ref":"#/components/schemas/CitationSourceRef"}},"type":"object","required":["id","quote","source"],"title":"DiagnosisCitationView"},"DiagnosisCriterionView":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"met":{"type":"boolean","title":"Met"}},"type":"object","required":["id","text","met"],"title":"DiagnosisCriterionView"},"DiagnosisDoneEvent":{"properties":{"type":{"type":"string","const":"done","title":"Type"},"diagnosis_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Diagnosis Id"},"questions_pending":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Questions Pending"},"plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id"},"summary":{"anyOf":[{"$ref":"#/components/schemas/DiagnosisBackfillSummary"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["type"],"title":"DiagnosisDoneEvent","description":"Terminal success. ``plan_id`` on a plan run, ``summary`` on a backfill."},"DiagnosisErrorEvent":{"properties":{"type":{"type":"string","const":"error","title":"Type"},"error":{"additionalProperties":true,"type":"object","title":"Error"}},"additionalProperties":true,"type":"object","required":["type","error"],"title":"DiagnosisErrorEvent","description":"Terminal failure. ``error`` is always a ``streaming_error_dict`` payload\n— one envelope for one event type, carrying the request_id and the retry\naction the FE needs."},"DiagnosisFlowStateView":{"properties":{"job":{"anyOf":[{"$ref":"#/components/schemas/DiagnosisJobView"},{"type":"null"}]},"diagnosis":{"anyOf":[{"$ref":"#/components/schemas/DiagnosisView"},{"type":"null"}]},"plan":{"anyOf":[{"$ref":"#/components/schemas/DiagnosisPlanView"},{"type":"null"}]},"brand_job":{"anyOf":[{"$ref":"#/components/schemas/DiagnosisJobView"},{"type":"null"}]},"backfill_job":{"anyOf":[{"$ref":"#/components/schemas/DiagnosisJobView"},{"type":"null"}]},"kickoff_requested":{"type":"boolean","title":"Kickoff Requested","default":false}},"type":"object","title":"DiagnosisFlowStateView","description":"One snapshot of everything the placement guard needs.\n\nThe frontend derived a founder's position by firing three separate\nrequests — active job, diagnosis, plan — each keyed off the workspace id,\nso none could start until the workspace list resolved. That is two serial\nround-trips before first paint, and the three answers could disagree if a\njob completed between them.\n\nEvery field is nullable by design: absence is the normal state for most of\nthe flow, not an error. Unlike the individual endpoints, this never 404s\nfor a missing artifact.\n\n``job`` is the newest job in flight, of any kind; ``brand_job`` is the\nnewest brand job whatever its status, so the Brand step resumes on any\ndevice. ``kickoff_requested`` says Brand → Continue was pressed before the\nproject was set up, and ``backfill_job`` is the newest set-up run, so a return\nlands on the set-up screen it was pressed into."},"DiagnosisInterpretiveEvent":{"properties":{"type":{"type":"string","const":"interpretive","title":"Type"},"text":{"type":"string","title":"Text"}},"additionalProperties":true,"type":"object","required":["type","text"],"title":"DiagnosisInterpretiveEvent","description":"A hedged observation from the model — never stated as fact."},"DiagnosisJobKind":{"type":"string","enum":["read","plan","brand","backfill"],"title":"DiagnosisJobKind","description":"What the job runs (read / plan / brand / backfill)."},"DiagnosisJobStatus":{"type":"string","enum":["queued","running","completed","failed"],"title":"DiagnosisJobStatus","description":"Lifecycle — QUEUED until the global slot is acquired, then RUNNING."},"DiagnosisJobView":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"$ref":"#/components/schemas/DiagnosisJobKind"},"status":{"$ref":"#/components/schemas/DiagnosisJobStatus"},"queue_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Queue Position"},"attempt":{"type":"integer","title":"Attempt"},"notify_on_complete":{"type":"boolean","title":"Notify On Complete"},"events":{"items":{"oneOf":[{"$ref":"#/components/schemas/DiagnosisPhaseEvent"},{"$ref":"#/components/schemas/DiagnosisVerifiedEvent"},{"$ref":"#/components/schemas/DiagnosisInterpretiveEvent"},{"$ref":"#/components/schemas/DiagnosisRetryEvent"},{"$ref":"#/components/schemas/DiagnosisPlacementEvent"},{"$ref":"#/components/schemas/DiagnosisQuestionEvent"},{"$ref":"#/components/schemas/DiagnosisBrandEvent"},{"$ref":"#/components/schemas/DiagnosisPlanSectionEvent"},{"$ref":"#/components/schemas/DiagnosisTotalEvent"},{"$ref":"#/components/schemas/DiagnosisDoneEvent"},{"$ref":"#/components/schemas/DiagnosisErrorEvent"}],"discriminator":{"propertyName":"type","mapping":{"brand":"#/components/schemas/DiagnosisBrandEvent","done":"#/components/schemas/DiagnosisDoneEvent","error":"#/components/schemas/DiagnosisErrorEvent","interpretive":"#/components/schemas/DiagnosisInterpretiveEvent","phase":"#/components/schemas/DiagnosisPhaseEvent","placement":"#/components/schemas/DiagnosisPlacementEvent","plan_section":"#/components/schemas/DiagnosisPlanSectionEvent","question":"#/components/schemas/DiagnosisQuestionEvent","retry":"#/components/schemas/DiagnosisRetryEvent","total":"#/components/schemas/DiagnosisTotalEvent","verified":"#/components/schemas/DiagnosisVerifiedEvent"}}},"type":"array","title":"Events"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","kind","status","attempt","notify_on_complete","events","created_at"],"title":"DiagnosisJobView","description":"One durable diagnosis job as the FE poller sees it.\n\n``events`` is the monotonic wire-event log — replaying it through the\npaced reveal reproduces exactly what a live watcher saw. ``queue_position``\nis the honest FIFO position while QUEUED, null otherwise. Failures surface\nthrough the terminal ``error`` event, not a separate field."},"DiagnosisMaterial":{"properties":{"kind":{"type":"string","title":"Kind"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Url"},"content":{"anyOf":[{"type":"string","maxLength":102400},{"type":"null"}],"title":"Content"},"client_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Client Id"}},"type":"object","required":["kind"],"title":"DiagnosisMaterial","description":"One manifest item: {kind:\"file\", document_id} | {kind:\"link\", url} | {kind:\"text\", content}.\n\n``kind`` is a plain string on purpose — an unknown kind must become an\nhonest per-item failure, not a request-level 422. The LENGTH bounds are\nthe exception: ``url`` and ``content`` are stored verbatim, so an unbounded\none is a write of arbitrary size, and the honest answer to it is a 422\nrather than a chip."},"DiagnosisMaterialContent":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"kind":{"type":"string","title":"Kind"},"content":{"type":"string","title":"Content"}},"type":"object","required":["id","label","kind","content"],"title":"DiagnosisMaterialContent","description":"One material's full text — what a chat chip for pasted text opens."},"DiagnosisPhaseEvent":{"properties":{"type":{"type":"string","const":"phase","title":"Type"},"phase":{"type":"string","title":"Phase"}},"additionalProperties":true,"type":"object","required":["type","phase"],"title":"DiagnosisPhaseEvent","description":"Stream moved to a new phase — drives the diagnosis stepper."},"DiagnosisPlacementEvent":{"properties":{"type":{"type":"string","const":"placement","title":"Type"},"stage":{"type":"string","title":"Stage"},"evidenced":{"type":"boolean","title":"Evidenced"}},"additionalProperties":true,"type":"object","required":["type","stage","evidenced"],"title":"DiagnosisPlacementEvent","description":"One stage's placement verdict."},"DiagnosisPlanSectionEvent":{"properties":{"type":{"type":"string","const":"plan_section","title":"Type"},"title":{"type":"string","title":"Title"},"order":{"type":"integer","title":"Order"}},"additionalProperties":true,"type":"object","required":["type","title","order"],"title":"DiagnosisPlanSectionEvent","description":"One plan task landing, in order."},"DiagnosisPlanTaskView":{"properties":{"task_id":{"type":"string","title":"Task Id"},"title":{"type":"string","title":"Title"},"why":{"type":"string","title":"Why"},"phase_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Type"},"owner":{"type":"string","title":"Owner"},"order":{"type":"integer","title":"Order"},"status":{"type":"string","title":"Status"},"time_expectation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Expectation"},"locked":{"type":"boolean","title":"Locked","default":false},"unlocks_after":{"items":{"type":"string"},"type":"array","title":"Unlocks After"}},"type":"object","required":["task_id","title","why","owner","order","status"],"title":"DiagnosisPlanTaskView","description":"One plan task card: the spec + the live status of its real Task row.\n``time_expectation`` is nullable for plans stored before it existed.\n``locked`` marks a not-yet-started launch task whose inputs the diagnosis\ndoesn't evidence; ``unlocks_after`` names those inputs (empty when the\ndiagnosis can't be read)."},"DiagnosisPlanView":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"the_call":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"The Call"},"what_you_will_have":{"items":{"$ref":"#/components/schemas/PlanDeliverable"},"type":"array","title":"What You Will Have"},"what_we_would_watch":{"items":{"type":"string"},"type":"array","title":"What We Would Watch"},"tasks":{"items":{"$ref":"#/components/schemas/DiagnosisPlanTaskView"},"type":"array","title":"Tasks"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","status","tasks","created_at","updated_at"],"title":"DiagnosisPlanView","description":"GET /diagnosis/plan — what the plan screen renders.\n\nThe narrative fields are nullable for tolerance of plans generated\nbefore they existed."},"DiagnosisQuestionEvent":{"properties":{"type":{"type":"string","const":"question","title":"Type"},"question_id":{"type":"string","title":"Question Id"},"score":{"type":"number","title":"Score"},"blocker":{"type":"boolean","title":"Blocker"}},"additionalProperties":true,"type":"object","required":["type","question_id","score","blocker"],"title":"DiagnosisQuestionEvent","description":"One read question scored — ticks the reading checklist."},"DiagnosisQuestionView":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"score":{"type":"number","title":"Score"},"previous_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Previous Score"},"blocker":{"type":"boolean","title":"Blocker"},"because":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Because"},"criteria":{"items":{"$ref":"#/components/schemas/DiagnosisCriterionView"},"type":"array","title":"Criteria"},"citations":{"items":{"$ref":"#/components/schemas/DiagnosisCitationView"},"type":"array","title":"Citations"},"followup":{"anyOf":[{"$ref":"#/components/schemas/SynthesisFollowup"},{"type":"null"}]},"answered":{"type":"boolean","title":"Answered","default":false}},"type":"object","required":["id","title","score","blocker","criteria","citations"],"title":"DiagnosisQuestionView","description":"One read question as the Score screen shows it. ``previous_score`` is\nset only on a rescored read."},"DiagnosisRetryEvent":{"properties":{"type":{"type":"string","const":"retry","title":"Type"},"text":{"type":"string","title":"Text"}},"additionalProperties":true,"type":"object","required":["type","text"],"title":"DiagnosisRetryEvent","description":"The runner is retrying after a transient failure."},"DiagnosisSourceKind":{"type":"string","enum":["file","link","text"],"title":"DiagnosisSourceKind","description":"What the founder handed us."},"DiagnosisStatus":{"type":"string","enum":["reading","placed","scored","failed"],"title":"DiagnosisStatus","description":"Diagnosis lifecycle — reading → placed → scored; failed on any error."},"DiagnosisTotalEvent":{"properties":{"type":{"type":"string","const":"total","title":"Type"},"count":{"type":"integer","title":"Count"},"documents":{"items":{"type":"string"},"type":"array","title":"Documents"}},"additionalProperties":true,"type":"object","required":["type","count"],"title":"DiagnosisTotalEvent","description":"How many units this run will produce — the honest progress denominator."},"DiagnosisVerifiedEvent":{"properties":{"type":{"type":"string","const":"verified","title":"Type"},"text":{"type":"string","title":"Text"},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document"}},"additionalProperties":true,"type":"object","required":["type","text"],"title":"DiagnosisVerifiedEvent","description":"A concrete thing we confirmed (\"Read your deck\")."},"DiagnosisView":{"properties":{"id":{"type":"string","title":"Id"},"status":{"$ref":"#/components/schemas/DiagnosisStatus"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"verdict_sub":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict Sub"},"composite_score":{"type":"number","title":"Composite Score"},"previous_composite_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Previous Composite Score"},"questions":{"items":{"$ref":"#/components/schemas/DiagnosisQuestionView"},"type":"array","title":"Questions"},"questions_pending":{"items":{"type":"string"},"type":"array","title":"Questions Pending"},"name_suggestions":{"items":{"type":"string"},"type":"array","title":"Name Suggestions"},"sources_read":{"type":"integer","title":"Sources Read","default":0}},"type":"object","required":["id","status","composite_score","questions","questions_pending"],"title":"DiagnosisView","description":"The scored read (GET /diagnosis). ``questions_pending`` lists the\nblockers still waiting for the founder's answers; it is empty once they\nanswered (one round only) or when there were none."},"DirectionView":{"properties":{"key":{"$ref":"#/components/schemas/GraphicDirection"},"name":{"type":"string","title":"Name"},"blurb":{"type":"string","title":"Blurb"},"makes":{"items":{"type":"string"},"type":"array","title":"Makes"}},"type":"object","required":["key","name","blurb","makes"],"title":"DirectionView"},"DocumentDependency":{"properties":{"source_phase":{"$ref":"#/components/schemas/PhaseType"},"document_types":{"items":{"$ref":"#/components/schemas/DocumentType"},"type":"array","title":"Document Types"},"combine_mode":{"$ref":"#/components/schemas/CombineMode"},"pdf_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Title"}},"type":"object","required":["source_phase","document_types","combine_mode"],"title":"DocumentDependency","description":"Specifies which documents from previous phases feed into a phase."},"DocumentDiff":{"properties":{"title":{"type":"string","title":"Title"},"before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"},"after":{"type":"string","title":"After"},"version_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Before"},"version_after":{"type":"integer","title":"Version After"}},"type":"object","required":["title","before","after","version_before","version_after"],"title":"DocumentDiff","description":"The document either side of an engineer's edit (founder surfaces, verdict).\n\nBoth texts, not a computed diff: rendering is the client's job and a diff\ncomputed here would have to pick a granularity the founder cannot change.\n`before` is null when the engineer's version is the first — there is nothing\nto compare it against, and an empty string would render as \"everything was\nadded\"."},"DocumentType":{"type":"string","enum":["business_plan","poc_plan","mvp_plan","product_requirements","technical_architecture","delivery_plan","gtm_strategy","mockup","strategy_document","sales_pitch","launch_message","landing_page","prototype_plan","openapi_specifications","playbook","wbs"],"title":"DocumentType","description":"Enum for document types within workspace phases"},"DriftAccessibilityResponse":{"properties":{"accessible":{"type":"boolean","title":"Accessible"},"can_scan":{"type":"boolean","title":"Can Scan","default":false},"can_resolve":{"type":"boolean","title":"Can Resolve","default":false},"editable_document_types":{"items":{"type":"string"},"type":"array","title":"Editable Document Types"}},"type":"object","required":["accessible"],"title":"DriftAccessibilityResponse","description":"Response for the drift page accessibility check."},"DriftDetectionItemResponse":{"properties":{"id":{"type":"string","title":"Id"},"drift_detection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drift Detection Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"fact_fingerprint":{"type":"string","title":"Fact Fingerprint"},"field":{"type":"string","title":"Field"},"category":{"type":"string","title":"Category"},"document_type_a":{"$ref":"#/components/schemas/DocumentType"},"document_type_b":{"$ref":"#/components/schemas/DocumentType"},"phase_id_a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Id A"},"phase_id_b":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Id B"},"value_a":{"type":"string","title":"Value A"},"value_b":{"type":"string","title":"Value B"},"value_label_a":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Label A"},"value_label_b":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Label B"},"severity":{"type":"string","title":"Severity"},"status":{"$ref":"#/components/schemas/DriftItemStatus"},"status_changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Status Changed At"},"status_changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Changed By"},"resolved_phase_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Phase Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","fact_fingerprint","field","category","document_type_a","document_type_b","value_a","value_b","severity","status","created_at"],"title":"DriftDetectionItemResponse","description":"API response for a single drift detection item."},"DriftDetectionStatus":{"type":"string","enum":["pending","in_progress","completed","failed"],"title":"DriftDetectionStatus","description":"Lifecycle of a drift detection background task."},"DriftFactResponse":{"properties":{"fact_fingerprint":{"type":"string","title":"Fact Fingerprint"},"field":{"type":"string","title":"Field"},"category":{"type":"string","title":"Category"},"severity":{"type":"string","title":"Severity","description":"Highest severity across all conflicts."},"items":{"items":{"$ref":"#/components/schemas/DriftDetectionItemResponse"},"type":"array","title":"Items"},"pending_count":{"type":"integer","title":"Pending Count"},"total_count":{"type":"integer","title":"Total Count"},"value_options":{"items":{"$ref":"#/components/schemas/DriftFactValueOption"},"type":"array","title":"Value Options"},"resolved_value_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Value Label","description":"The canonical value that was applied when this fact was resolved."},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At","description":"When this fact was resolved."},"resolved_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By Name","description":"Display name of the user who resolved this fact."}},"type":"object","required":["fact_fingerprint","field","category","severity","items","pending_count","total_count"],"title":"DriftFactResponse","description":"A contested fact with all its cross-document conflicts, for API responses."},"DriftFactValueOption":{"properties":{"label":{"type":"string","title":"Label","description":"Short canonical value label, e.g., '7-day trial'."},"source_documents":{"items":{"type":"string"},"type":"array","title":"Source Documents","description":"Document types that have this value."},"item_ids":{"items":{"type":"string"},"type":"array","title":"Item Ids","description":"Drift item IDs that carry this value."},"target_documents":{"items":{"type":"string"},"type":"array","title":"Target Documents","description":"Document types that would be UPDATED if this value is chosen (i.e., docs that disagree)."},"disabled":{"type":"boolean","title":"Disabled","description":"True if the current user cannot edit any of the target documents.","default":false},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason","description":"Human-readable reason why this option is disabled."}},"type":"object","required":["label","source_documents","item_ids"],"title":"DriftFactValueOption","description":"One distinct value choice within a fact group, used for value-based resolution."},"DriftItemStatus":{"type":"string","enum":["pending","applied","pushed","ignored","superseded"],"title":"DriftItemStatus","description":"Lifecycle of an individual drift item."},"DriftResolutionJobResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"status":{"type":"string","title":"Status"},"total_tasks":{"type":"integer","title":"Total Tasks"},"completed_tasks":{"type":"integer","title":"Completed Tasks"},"failed_tasks":{"type":"integer","title":"Failed Tasks"},"tasks":{"items":{"$ref":"#/components/schemas/DriftResolutionTaskStatus"},"type":"array","title":"Tasks"},"re_detection_status":{"anyOf":[{"type":"string","enum":["pending","in_progress","completed","failed"]},{"type":"null"}],"title":"Re Detection Status"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","workspace_id","status","total_tasks","completed_tasks","failed_tasks","created_at"],"title":"DriftResolutionJobResponse","description":"Polling response for a drift resolution job."},"DriftResolutionRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"workspace_name":{"type":"string","title":"Workspace Name","description":"Workspace name"},"phase_type":{"type":"string","title":"Phase Type","description":"Phase where resolution was applied (PhaseType enum value)"},"document_type":{"type":"string","title":"Document Type","description":"Document type being resolved"},"resolution_type":{"type":"string","title":"Resolution Type","description":"Resolution action (apply, ignore)"}},"type":"object","required":["workspace_id","workspace_name","phase_type","document_type","resolution_type"],"title":"DriftResolutionRequest","description":"Request model for drift resolution tracking"},"DriftResolutionTaskStatus":{"properties":{"target_document_type":{"type":"string","title":"Target Document Type"},"target_phase_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Phase Id"},"display_name":{"type":"string","title":"Display Name"},"status":{"type":"string","enum":["pending","in_progress","completed","failed"],"title":"Status"},"stage":{"type":"string","enum":["queued","generating","evaluating","checking_drift","done","re_detection_failed","failed","permission_denied"],"title":"Stage","default":"queued"},"resolved_facts_count":{"type":"integer","title":"Resolved Facts Count","default":0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["target_document_type","display_name","status"],"title":"DriftResolutionTaskStatus","description":"Per-document task status within a resolution job."},"DriftScanTrigger":{"type":"string","enum":["manual","auto_post_resolution","initial","launch_publish"],"title":"DriftScanTrigger","description":"What initiated a drift detection scan."},"DriftStatus":{"type":"string","enum":["pending","flagged","clean","unchecked"],"title":"DriftStatus","description":"Whether the live page still makes the approved message's promise. ``PENDING`` while\nthe check runs, ``UNCHECKED`` when it could not run — which routes like ``FLAGGED``,\nbecause a page nobody could check is not a page known to agree."},"EditAdRequest":{"properties":{"creative":{"additionalProperties":true,"type":"object","title":"Creative"}},"type":"object","required":["creative"],"title":"EditAdRequest"},"EditMessageResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Edit status (e.g. 'edited')"},"message":{"type":"string","title":"Message","description":"Success message"}},"type":"object","required":["status","message"],"title":"EditMessageResponse","description":"Response from editing a message in a session."},"EditPostRequest":{"properties":{"copy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Copy"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"hashtags":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":30},{"type":"null"}],"title":"Hashtags"},"format":{"anyOf":[{"$ref":"#/components/schemas/PostFormat"},{"type":"null"}]},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"}},"type":"object","title":"EditPostRequest"},"EmailResolveResponse":{"properties":{"type":{"$ref":"#/components/schemas/EmailResolveType"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name","description":"Org name (only for existing_org)"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id","description":"Org ID (only for existing_org)"},"allowed_workflows":{"items":{"type":"string"},"type":"array","title":"Allowed Workflows","description":"Current or default workflows"},"user_already_exists":{"type":"boolean","title":"User Already Exists","description":"Whether a user with this email already exists","default":false}},"type":"object","required":["type"],"title":"EmailResolveResponse","description":"Response for resolving what organization a new user's email will enter."},"EmailResolveType":{"type":"string","enum":["new_personal","existing_org","new_team"],"title":"EmailResolveType","description":"Outcome type when resolving an email's target organization"},"EngineerGrantResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"is_active":{"type":"boolean","title":"Is Active"},"granted_at":{"type":"string","format":"date-time","title":"Granted At"},"engineer_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engineer User Id"}},"type":"object","required":["workspace_id","is_active","granted_at"],"title":"EngineerGrantResponse"},"EngineerOffersResponse":{"properties":{"kinds":{"additionalProperties":{"$ref":"#/components/schemas/KindOffer"},"propertyNames":{"$ref":"#/components/schemas/RequestKind"},"type":"object","title":"Kinds"},"build_review":{"$ref":"#/components/schemas/KindOffer"},"report":{"$ref":"#/components/schemas/ReportOffer"},"posting_on_behalf":{"$ref":"#/components/schemas/ComingSoonOffer"},"viewer_can_ask":{"type":"boolean","title":"Viewer Can Ask"}},"type":"object","required":["kinds","build_review","viewer_can_ask"],"title":"EngineerOffersResponse","description":"Every engineer offer for one workspace, decided by the backend."},"EngineerPageBundle":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"requests":{"items":{"$ref":"#/components/schemas/EngineerRequestRow"},"type":"array","title":"Requests"},"repo":{"anyOf":[{"$ref":"#/components/schemas/RepoCard"},{"type":"null"}]},"viewer_has_workspace_access":{"type":"boolean","title":"Viewer Has Workspace Access"}},"type":"object","required":["workspace_id","requests","repo","viewer_has_workspace_access"],"title":"EngineerPageBundle","description":"One round trip: the requests, the repository, nothing else to wait for."},"EngineerQueueRow":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"organization_id":{"type":"string","title":"Organization Id"},"kind":{"$ref":"#/components/schemas/RequestKind"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"assigned_engineer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Engineer Id"},"tier":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionTier"},{"type":"null"}]},"is_late":{"type":"boolean","title":"Is Late"}},"type":"object","required":["id","workspace_id","workspace_name","organization_id","kind","status","due_date","assigned_engineer_id","tier","is_late"],"title":"EngineerQueueRow","description":"One request as it appears in the cross-workspace queue."},"EngineerReportCreate":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"},"origin_screen":{"type":"string","maxLength":128,"minLength":1,"title":"Origin Screen"}},"type":"object","required":["body","origin_screen"],"title":"EngineerReportCreate"},"EngineerReportResponse":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Confirmed At"}},"type":"object","required":["id","created_at","confirmed_at"],"title":"EngineerReportResponse"},"EngineerReportRow":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"organization_id":{"type":"string","title":"Organization Id"},"reporter_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reporter User Id"},"origin_screen":{"type":"string","title":"Origin Screen"},"tier_at_submit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier At Submit"},"body":{"type":"string","title":"Body"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"}},"type":"object","required":["id","workspace_id","organization_id","reporter_user_id","origin_screen","tier_at_submit","body","created_at","read_at","closed_at"],"title":"EngineerReportRow","description":"One report in the daily lane."},"EngineerRequestActionResult":{"properties":{"id":{"type":"string","title":"Id"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"assigned_engineer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Engineer Id"},"close_reason":{"anyOf":[{"$ref":"#/components/schemas/RequestCloseReason"},{"type":"null"}]},"close_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Note"}},"type":"object","required":["id","status","assigned_engineer_id","close_reason","close_note"],"title":"EngineerRequestActionResult","description":"What the tool needs to redraw the row after an act."},"EngineerRequestCreate":{"properties":{"kind":{"$ref":"#/components/schemas/RequestKind"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"arc":{"anyOf":[{"$ref":"#/components/schemas/ArcType"},{"type":"null"}]},"founder_note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Founder Note"},"check_rooms":{"items":{"type":"string"},"type":"array","maxItems":6,"title":"Check Rooms"}},"type":"object","required":["kind"],"title":"EngineerRequestCreate","description":"One shape for every kind a founder may ask for; which fields are\nrequired depends on the\nkind, and that is enforced in the service rather than here — the rules read\nas a table there instead of as five near-identical models. The one exception is a\nplaces ask's ``arc``: it names the launch, and a launch has no default arc."},"EngineerRequestResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"kind":{"$ref":"#/components/schemas/RequestKind"},"arc":{"$ref":"#/components/schemas/ArcType"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"document_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Version"},"founder_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Founder Note"},"grant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grant Id"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","kind","arc","status","document_id","document_version","founder_note","grant_id","due_at","created_at"],"title":"EngineerRequestResponse"},"EngineerRequestRow":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"$ref":"#/components/schemas/RequestKind"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"founder_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Founder Note"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"document_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Version"},"document_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Title"},"document_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Content"},"assigned_engineer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Engineer Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At"},"deliverable":{"anyOf":[{"$ref":"#/components/schemas/DeliverableKind"},{"type":"null"}]},"surface":{"anyOf":[{"$ref":"#/components/schemas/BuildSurface"},{"type":"null"}]},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"branch_stale_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Branch Stale At"},"reopen_count":{"type":"integer","title":"Reopen Count","default":0},"latest_work":{"anyOf":[{"$ref":"#/components/schemas/WorkSummary"},{"type":"null"}]},"questions":{"items":{"$ref":"#/components/schemas/RequestQuestion"},"type":"array","title":"Questions","default":[]},"context":{"anyOf":[{"$ref":"#/components/schemas/PlacesAskContext"},{"type":"null"}]}},"type":"object","required":["id","kind","status","due_date","founder_note","document_id","document_version","assigned_engineer_id","started_at","paused_at"],"title":"EngineerRequestRow","description":"One request as the working engineer sees it."},"EngineerRequestStatus":{"type":"string","enum":["not_started","assigned","in_progress","waiting_on_founder","handed_back","reopened","accepted","cannot_do","closed_unconfirmed","escalated_to_product","cancelled"],"title":"EngineerRequestStatus"},"EngineerResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"platform_role":{"type":"string","title":"Platform Role"},"github_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Username"}},"type":"object","required":["user_id","email","platform_role"],"title":"EngineerResponse","description":"The engineer identity after a promote.\n\n``created_at``/``updated_at`` are deliberately absent: the account's own\ntimestamps answer a different question (when the user signed up, not when the\nhandle was set). The audit row written by ``promote`` is the record of when\nthis happened."},"EngineerRosterEntry":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"has_github_username":{"type":"boolean","title":"Has Github Username"},"open_request_count":{"type":"integer","title":"Open Request Count"},"is_on_duty":{"type":"boolean","title":"Is On Duty"}},"type":"object","required":["user_id","email","has_github_username","open_request_count","is_on_duty"],"title":"EngineerRosterEntry","description":"An assignable engineer, with the two facts the picker needs."},"EnrichedMilestoneResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Target Date"},"target_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Week"},"source":{"$ref":"#/components/schemas/MilestoneSource"},"workspace_phase_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Phase Id"},"phase_type":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"is_hidden":{"type":"boolean","title":"Is Hidden"},"completion_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Pct"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"external_provider":{"anyOf":[{"$ref":"#/components/schemas/PMToolProvider"},{"type":"null"}]},"link_state":{"anyOf":[{"$ref":"#/components/schemas/LinkState"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"flag_status":{"anyOf":[{"$ref":"#/components/schemas/FlagStatus"},{"type":"null"}]},"flag_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag Reason"},"sync":{"anyOf":[{"$ref":"#/components/schemas/ItemSync"},{"type":"null"}]}},"type":"object","required":["id","workspace_id","arc","name","source","is_hidden","created_at","updated_at"],"title":"EnrichedMilestoneResponse","description":"MilestoneResponse for the list-read path, with derived live-status fields."},"EnrichedTaskResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"granularity":{"$ref":"#/components/schemas/TaskGranularity"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"milestone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Milestone Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"workstream":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workstream"},"effort_days":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Effort Days"},"priority":{"$ref":"#/components/schemas/TaskPriority"},"week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Week"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"status":{"$ref":"#/components/schemas/TaskStatus"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"source":{"$ref":"#/components/schemas/TaskSource"},"owner_type":{"$ref":"#/components/schemas/TaskOwnerType","default":"founder"},"phase_type":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"workspace_phase_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Phase Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"external_provider":{"anyOf":[{"$ref":"#/components/schemas/PMToolProvider"},{"type":"null"}]},"link_state":{"anyOf":[{"$ref":"#/components/schemas/LinkState"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"flag_status":{"anyOf":[{"$ref":"#/components/schemas/FlagStatus"},{"type":"null"}]},"flag_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag Reason"},"sync":{"anyOf":[{"$ref":"#/components/schemas/ItemSync"},{"type":"null"}]}},"type":"object","required":["id","workspace_id","arc","granularity","title","priority","status","source","created_at","updated_at"],"title":"EnrichedTaskResponse","description":"TaskResponse for the list-read path, with derived live-status fields."},"EscalatedRow":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"organization_id":{"type":"string","title":"Organization Id"},"kind":{"$ref":"#/components/schemas/RequestKind"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"escalated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Escalated At"}},"type":"object","required":["id","workspace_id","workspace_name","organization_id","kind","status","escalated_at"],"title":"EscalatedRow","description":"A request a person now has to turn into a product decision."},"EstimateBasis":{"type":"string","enum":["measured","assumed"],"title":"EstimateBasis"},"EstimateView":{"properties":{"low":{"type":"integer","title":"Low"},"high":{"type":"integer","title":"High"},"basis":{"$ref":"#/components/schemas/EstimateBasis"}},"type":"object","required":["low","high","basis"],"title":"EstimateView"},"EvaluateExportedArtifactRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"source_document_content":{"type":"string","title":"Source Document Content"}},"type":"object","required":["workspace_id","source_document_content"],"title":"EvaluateExportedArtifactRequest","description":"Request body for evaluating an exported artifact (slides or WBS)."},"EvaluationResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_phase_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Phase Id"},"exported_artifact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exported Artifact Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"phase_type":{"$ref":"#/components/schemas/PhaseType"},"document_type":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}]},"overall_score":{"type":"number","title":"Overall Score"},"score_breakdown":{"additionalProperties":{"$ref":"#/components/schemas/CriterionScore"},"type":"object","title":"Score Breakdown"},"analysis":{"type":"string","title":"Analysis"},"improvements":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Improvements"},"evaluation_status":{"$ref":"#/components/schemas/EvaluationStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","workspace_id","phase_type","overall_score","score_breakdown","analysis","improvements","evaluation_status","created_at","completed_at"],"title":"EvaluationResponse","description":"API response model for evaluations"},"EvaluationStatus":{"type":"string","enum":["pending","in_progress","completed","failed"],"title":"EvaluationStatus","description":"Enum for evaluation status values"},"EvaluationTriggeredResponse":{"additionalProperties":true,"type":"object"},"EvidenceKind":{"type":"string","enum":["quote","image_description","live_url"],"title":"EvidenceKind","description":"What a citation's quote is: words from the source, a description of an image source, or (for a\nlink) the fact that a live product answers there."},"ExclusionReason":{"type":"string","enum":["bot_datacenter","bot_headless","bot_no_interaction","founder_self","events_blocked","delivery_failed"],"title":"ExclusionReason","description":"Why an ingested event was excluded from the verdict's aggregates —\nstored WITH the row, never silently dropped. ``None`` on the column means\n\"counted\". Grouped bot / founder-own / instrumentation as the three\nexclusion classes."},"ExpectedReadAfterCallsResponse":{"properties":{"headline":{"type":"string","title":"Headline"},"below_floor":{"type":"boolean","title":"Below Floor"},"visitors_counted":{"type":"integer","title":"Visitors Counted"},"next_steps":{"items":{"$ref":"#/components/schemas/ExpectedStepResponse"},"type":"array","title":"Next Steps"}},"type":"object","required":["headline","below_floor","visitors_counted","next_steps"],"title":"ExpectedReadAfterCallsResponse"},"ExpectedReadResponse":{"properties":{"headline":{"type":"string","title":"Headline"},"below_floor":{"type":"boolean","title":"Below Floor"},"visitors_counted":{"type":"integer","title":"Visitors Counted"},"next_steps":{"items":{"$ref":"#/components/schemas/ExpectedStepResponse"},"type":"array","title":"Next Steps"},"after_calls":{"anyOf":[{"$ref":"#/components/schemas/ExpectedReadAfterCallsResponse"},{"type":"null"}]}},"type":"object","required":["headline","below_floor","visitors_counted","next_steps","after_calls"],"title":"ExpectedReadResponse"},"ExpectedStepResponse":{"properties":{"kind":{"$ref":"#/components/schemas/NextStepKind"},"move":{"anyOf":[{"$ref":"#/components/schemas/LaunchMove"},{"type":"null"}]},"target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target"},"one_more":{"type":"boolean","title":"One More"}},"type":"object","required":["kind","move","target","one_more"],"title":"ExpectedStepResponse"},"ExportSheetResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"spreadsheet_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spreadsheet Url"},"auth_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Url"}},"type":"object","required":["success"],"title":"ExportSheetResponse","description":"Result of an on-demand WBS → Google Sheet export."},"ExportToSheetsRequest":{"properties":{"document_title":{"type":"string","title":"Document Title"},"document_content":{"type":"string","title":"Document Content"},"workspace_id":{"type":"string","title":"Workspace Id"},"document_type":{"$ref":"#/components/schemas/DocumentType"},"arc":{"$ref":"#/components/schemas/ArcType"}},"type":"object","required":["document_title","document_content","workspace_id","document_type","arc"],"title":"ExportToSheetsRequest"},"ExportToSheetsResponse":{"additionalProperties":true,"type":"object"},"ExportToSlidesResponse":{"additionalProperties":true,"type":"object"},"ExportedArtifactResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"title":{"type":"string","title":"Title"},"artifact_type":{"$ref":"#/components/schemas/ArtifactType"},"document_type":{"$ref":"#/components/schemas/DocumentType"},"external_url":{"type":"string","title":"External Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"workspace_phase_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Phase Id"}},"type":"object","required":["id","workspace_id","title","artifact_type","document_type","external_url","created_at","user_id","workspace_phase_id"],"title":"ExportedArtifactResponse","description":"Response model for exported artifact"},"FiguresView":{"properties":{"spend":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Spend"},"impressions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Impressions"},"clicks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Clicks"},"click_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Click Rate"},"visits":{"type":"integer","title":"Visits","default":0},"signups":{"type":"integer","title":"Signups","default":0},"cost_per_signup":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Per Signup"},"cost_per_visit":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Per Visit"},"cost_per_thousand":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Per Thousand"}},"type":"object","title":"FiguresView"},"FillDayRequest":{"properties":{"date":{"type":"string","format":"date","title":"Date"}},"type":"object","required":["date"],"title":"FillDayRequest"},"FlagStatus":{"type":"string","enum":["delayed","at_risk"],"title":"FlagStatus","description":"Per-entity dashboard flag derived from open risks. DELAYED outranks AT_RISK."},"FocusKind":{"type":"string","enum":["survival","traction","drift_high","drift_med","gate","all_calm"],"title":"FocusKind","description":"What the focus cascade resolved to — persisted into event payloads\n(health.tier_changed driver, health.focus_surfaced focus_type)."},"FollowupOption":{"properties":{"id":{"type":"string","enum":["a","b","c"],"title":"Id"},"text":{"type":"string","title":"Text"}},"type":"object","required":["id","text"],"title":"FollowupOption"},"FontPairView":{"properties":{"display":{"type":"string","title":"Display"},"body":{"type":"string","title":"Body"}},"type":"object","required":["display","body"],"title":"FontPairView"},"FontSubstitution":{"properties":{"display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"}},"type":"object","title":"FontSubstitution","description":"The kit's own font names where Google has no such family and the closest one stands in."},"FounderAction":{"type":"string","enum":["pending","agreed","modified","auto_accepted"],"title":"FounderAction"},"FounderHandBackView":{"properties":{"request_id":{"type":"string","title":"Request Id"},"kind":{"$ref":"#/components/schemas/RequestKind"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"cycle":{"type":"integer","title":"Cycle"},"what_was_wrong":{"type":"string","title":"What Was Wrong"},"what_changed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What Changed"},"nothing_changed":{"type":"boolean","title":"Nothing Changed"},"document_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Version"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"handed_back_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Handed Back At"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"verdict_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verdict At"},"result_type":{"anyOf":[{"$ref":"#/components/schemas/HandBackResultType"},{"type":"null"}]},"preview_urls":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Preview Urls"},"delivery":{"anyOf":[{"$ref":"#/components/schemas/DeliveryOutcome"},{"type":"null"}]},"published_urls":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Published Urls"},"places":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Places"}},"type":"object","required":["request_id","kind","status","cycle","what_was_wrong","what_changed","nothing_changed","document_version","preview_url","handed_back_at","verdict","verdict_at"],"title":"FounderHandBackView","description":"What the FOUNDER sees of a hand-back.\n\nA separate schema from `HandBackResponse` rather than the same one with\nfields stripped. `hours_spent` and `agent_would_have_needed` are internal\nand simply have no field here — so a future column cannot leak by being\nforgotten in a redaction list."},"FounderPlace":{"properties":{"source":{"type":"string","const":"founder","title":"Source"},"platform":{"anyOf":[{"$ref":"#/components/schemas/SocialPlatform"},{"type":"null"}]},"room":{"type":"string","maxLength":200,"minLength":1,"title":"Room"},"rules":{"type":"string","maxLength":1000,"title":"Rules","default":""},"link":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Link"}},"type":"object","required":["source","room"],"title":"FounderPlace","description":"A place the founder added: the platform they picked, their name for it, how to post there and, if they\nhave one, its link. Without a platform, the link's host names it."},"FounderReplyRequest":{"properties":{"note":{"type":"string","maxLength":4000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"FounderReplyRequest"},"FounderRequestDetail":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"$ref":"#/components/schemas/RequestKind"},"arc":{"$ref":"#/components/schemas/ArcType"},"kind_label":{"type":"string","title":"Kind Label"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"document_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Version"},"founder_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Founder Note"},"close_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Note"},"needed_instead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Needed Instead"},"outcome_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Outcome Seen At"},"cycle":{"type":"integer","title":"Cycle"},"deliverable":{"anyOf":[{"$ref":"#/components/schemas/DeliverableKind"},{"type":"null"}]},"surface":{"anyOf":[{"$ref":"#/components/schemas/BuildSurface"},{"type":"null"}]},"surface_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surface Label"},"deliverable_phase_type":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"preview_urls":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Preview Urls"},"history":{"items":{"$ref":"#/components/schemas/FounderRequestStatusEdge"},"type":"array","title":"History"},"questions":{"items":{"$ref":"#/components/schemas/RequestQuestion"},"type":"array","title":"Questions"}},"type":"object","required":["id","kind","arc","kind_label","status","created_at","due_at","document_id","document_version","founder_note","close_note","needed_instead","outcome_seen_at","cycle","history","questions"],"title":"FounderRequestDetail","description":"One request, with its story."},"FounderRequestStatusEdge":{"properties":{"from_status":{"anyOf":[{"$ref":"#/components/schemas/EngineerRequestStatus"},{"type":"null"}]},"to_status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"at":{"type":"string","format":"date-time","title":"At"}},"type":"object","required":["from_status","to_status","at"],"title":"FounderRequestStatusEdge","description":"One step in the request's story, as the founder may see it.\n\nEdges and timestamps only. Who moved it is deliberately absent: every actor\na founder could be told about is either themselves or \"a Claura engineer\",\nand the column that would answer it holds a staff user id."},"FounderRequestSummary":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"$ref":"#/components/schemas/RequestKind"},"arc":{"$ref":"#/components/schemas/ArcType"},"kind_label":{"type":"string","title":"Kind Label"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due At"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"document_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Version"},"founder_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Founder Note"},"close_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Note"},"needed_instead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Needed Instead"},"outcome_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Outcome Seen At"},"cycle":{"type":"integer","title":"Cycle"},"deliverable":{"anyOf":[{"$ref":"#/components/schemas/DeliverableKind"},{"type":"null"}]},"surface":{"anyOf":[{"$ref":"#/components/schemas/BuildSurface"},{"type":"null"}]},"surface_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surface Label"},"deliverable_phase_type":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"preview_urls":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Preview Urls"}},"type":"object","required":["id","kind","arc","kind_label","status","created_at","due_at","document_id","document_version","founder_note","close_note","needed_instead","outcome_seen_at","cycle"],"title":"FounderRequestSummary","description":"One request on the founder's own project."},"FoundingCompRequest":{"properties":{"duration_months":{"type":"integer","maximum":60.0,"exclusiveMinimum":0.0,"title":"Duration Months","description":"Comp term in months from now; the account moves to View-Only(COMP_END) at the end"},"mark_founding":{"type":"boolean","title":"Mark Founding","description":"Also set the org-level founding-member badge","default":false},"reason":{"type":"string","minLength":1,"title":"Reason"}},"type":"object","required":["duration_months","reason"],"title":"FoundingCompRequest","description":"Assign the founding-cohort comp: a Pro-grade comp subscription with a hard\nterm, and optionally the org-level founding badge.\n\n``mark_founding`` is explicit rather than implied because the badge is\norg-level and deliberately NOT implied by a comp — support can comp any\naccount without minting one (see ``create_comp_subscription``)."},"FoundingCompResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"comp_end_date":{"type":"string","format":"date-time","title":"Comp End Date"},"is_founding_member":{"type":"boolean","title":"Is Founding Member"},"balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance"},"true_balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"True Balance"}},"type":"object","required":["organization_id","tier","comp_end_date","is_founding_member","balance","true_balance"],"title":"FoundingCompResponse"},"GenerateCriteriaRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"phase_type":{"$ref":"#/components/schemas/PhaseType"},"force":{"type":"boolean","title":"Force","default":false},"notify_on_complete":{"type":"boolean","title":"Notify On Complete","default":false},"include_criteria":{"type":"boolean","title":"Include Criteria","default":true},"include_kpis":{"type":"boolean","title":"Include Kpis","default":true},"source":{"type":"string","title":"Source","default":"stage_end"}},"type":"object","required":["arc","phase_type"],"title":"GenerateCriteriaRequest"},"GeneratePlaybookRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"mode":{"$ref":"#/components/schemas/PlaybookMode","default":"edit"},"instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instruction","description":"Refinement instruction (EDIT mode). Ignored for REGENERATE."}},"type":"object","required":["arc"],"title":"GeneratePlaybookRequest","description":"Trigger a (re)generation of the playbook for an arc.\n\n`mode` controls how the result reconciles with the existing plan:\n- EDIT (default): cumulatively merge — preserve ids + completion status on\n  matched tasks/milestones, insert new ones, keep the rest. Pair with an\n  `instruction` to refine the plan mid-execution.\n- REGENERATE (Restart): rebuild from upstream docs, replacing all\n  playbook-sourced rows (progress resets); manual rows are preserved.\n\nA first-ever generation works in either mode (nothing to merge/replace yet)."},"GeneratePlaybookResponse":{"additionalProperties":true,"type":"object"},"GenerateWBSResponse":{"additionalProperties":true,"type":"object"},"GeneratedBrandMessage":{"properties":{"who":{"type":"string","title":"Who"},"problem":{"type":"string","title":"Problem"},"promise":{"type":"string","title":"Promise"},"ask":{"type":"string","title":"Ask"}},"type":"object","required":["who","problem","promise","ask"],"title":"GeneratedBrandMessage"},"GetChatHistoryResponse":{"properties":{"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages","description":"Chat messages with documents attached"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"The graph session this thread runs on"}},"type":"object","title":"GetChatHistoryResponse","description":"Response containing chat history messages."},"GetPhaseRatingResponse":{"properties":{"has_content":{"type":"boolean","title":"Has Content","description":"Whether the phase has content"},"rating":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rating","description":"User's rating for the phase"}},"type":"object","required":["has_content"],"title":"GetPhaseRatingResponse","description":"Response containing phase rating and content status."},"GoalOfferView":{"properties":{"goal":{"$ref":"#/components/schemas/AdGoal"},"label":{"type":"string","title":"Label"},"unit":{"type":"string","title":"Unit"},"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["goal","label","unit","available"],"title":"GoalOfferView"},"GoogleFontCategory":{"type":"string","enum":["sans-serif","serif","display","handwriting","monospace"],"title":"GoogleFontCategory"},"GoogleFontView":{"properties":{"family":{"type":"string","title":"Family"},"category":{"$ref":"#/components/schemas/GoogleFontCategory"}},"type":"object","required":["family","category"],"title":"GoogleFontView"},"GraphicDirection":{"type":"string","enum":["real_life","type_illustration","cinematic","see_it_work"],"title":"GraphicDirection"},"GuideProgress":{"properties":{"version":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Version"},"status":{"type":"string","enum":["in_progress","completed","dismissed"],"title":"Status"},"step":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Step","default":0}},"type":"object","required":["version","status"],"title":"GuideProgress","description":"Versioned progress, independent of the retired walkthrough flags."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandBackForm":{"properties":{"what_was_wrong":{"type":"string","title":"What Was Wrong"},"what_changed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What Changed"},"nothing_changed":{"type":"boolean","title":"Nothing Changed","default":false},"hours_spent":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Hours Spent"},"agent_would_have_needed":{"type":"string","title":"Agent Would Have Needed"},"result":{"$ref":"#/components/schemas/HandBackResult"}},"type":"object","required":["what_was_wrong","hours_spent","agent_would_have_needed","result"],"title":"HandBackForm","description":"The engineer's account of one hand-back.\n\n`hours_spent` and `agent_would_have_needed` are internal — they are\ncollected here and never returned on any founder-facing surface."},"HandBackResponse":{"properties":{"id":{"type":"string","title":"Id"},"request_id":{"type":"string","title":"Request Id"},"cycle":{"type":"integer","title":"Cycle"},"status":{"$ref":"#/components/schemas/EngineerRequestStatus"},"what_was_wrong":{"type":"string","title":"What Was Wrong"},"what_changed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"What Changed"},"nothing_changed":{"type":"boolean","title":"Nothing Changed"},"hours_spent":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Hours Spent"},"agent_would_have_needed":{"type":"string","title":"Agent Would Have Needed"},"result_document_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Result Document Version"},"result_commit_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Commit Sha"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"handed_back_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Handed Back At"}},"type":"object","required":["id","request_id","cycle","status","what_was_wrong","what_changed","nothing_changed","hours_spent","agent_would_have_needed","result_document_version","result_commit_sha","preview_url","handed_back_at"],"title":"HandBackResponse","description":"The ENGINEER's view of what they just filed.\n\nSafe to carry the internal fields: this is only ever returned to the person\nwho wrote them. The founder's view of the same hand-back is a different\nschema entirely, and that one excludes them."},"HandBackResult":{"properties":{"type":{"$ref":"#/components/schemas/HandBackResultType"},"updated_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated Content","description":"The document's new content. Required when type is 'document'."},"places":{"anyOf":[{"items":{"$ref":"#/components/schemas/RoomInput"},"type":"array"},{"type":"null"}],"title":"Places","description":"The places to post. Required when type is 'places'."}},"type":"object","required":["type"],"title":"HandBackResult","description":"What the engineer produced. Drives the pipeline."},"HandBackResultType":{"type":"string","enum":["document","build","places","none"],"title":"HandBackResultType","description":"What the engineer actually produced.\n\nThis, not the request kind, drives the hand-back pipeline: a review of a\nlanding page is code on a branch, a review of a PRD is document content, and\n\"nothing needed changing\" is neither. The kind only constrains which of\nthese is an honest answer to what was asked."},"HealthBlock":{"properties":{"block":{"$ref":"#/components/schemas/HealthTierBlock"},"health_tier":{"$ref":"#/components/schemas/HealthTier"},"drivers":{"additionalProperties":true,"type":"object","title":"Drivers"}},"type":"object","required":["block","health_tier","drivers"],"title":"HealthBlock"},"HealthDelta":{"properties":{"prefix":{"type":"string","title":"Prefix"},"items":{"items":{"type":"string"},"type":"array","title":"Items"},"more_count":{"type":"integer","title":"More Count"}},"type":"object","required":["prefix","items","more_count"],"title":"HealthDelta"},"HealthFocus":{"properties":{"kind":{"$ref":"#/components/schemas/FocusKind"},"prescriptive":{"type":"boolean","title":"Prescriptive"},"detail":{"type":"string","title":"Detail"},"own_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Own Detail"}},"type":"object","required":["kind","prescriptive","detail"],"title":"HealthFocus"},"HealthStatusLine":{"properties":{"mode":{"$ref":"#/components/schemas/StatusLineMode"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"text":{"type":"string","title":"Text"}},"type":"object","required":["mode","key","text"],"title":"HealthStatusLine"},"HealthTier":{"type":"string","enum":["calm","watch","alert"],"title":"HealthTier","description":"Computed self-clearing health level for a Today block (the engine output).\nNot a thrown error (`exception`) and not a risk's `severity`."},"HealthTierBlock":{"type":"string","enum":["survival","traction","focus"],"title":"HealthTierBlock","description":"The three Today blocks the engine resolves a HealthTier for."},"HubPage":{"type":"string","enum":["brand","website","social","marketing"],"title":"HubPage","description":"A Marketing hub page, in the hub's order; the value is its route under the workspace."},"ImproveToSlidesRequest":{"properties":{"exported_artifact_id":{"type":"string","title":"Exported Artifact Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"document_content":{"type":"string","title":"Document Content"},"improvement_instructions":{"type":"string","title":"Improvement Instructions"}},"type":"object","required":["exported_artifact_id","workspace_id","document_content","improvement_instructions"],"title":"ImproveToSlidesRequest"},"ImproveToSlidesResponse":{"additionalProperties":true,"type":"object"},"ImproveWBSRequest":{"properties":{"exported_artifact_id":{"type":"string","title":"Exported Artifact Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"document_content":{"type":"string","title":"Document Content"},"improvement_instructions":{"type":"string","title":"Improvement Instructions"}},"type":"object","required":["exported_artifact_id","workspace_id","document_content","improvement_instructions"],"title":"ImproveWBSRequest"},"ImproveWBSResponse":{"additionalProperties":true,"type":"object"},"ImprovementFlowTriggeredRequest":{"properties":{"phase_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Type","description":"PhaseType enum value (e.g. BUSINESS_PLAN). Preferred over step_name."},"step_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Name","description":"Deprecated — legacy Mixpanel step slug (e.g. business_plan). Use phase_type."},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"workspace_name":{"type":"string","title":"Workspace Name","description":"Workspace name"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type","description":"Specific document being improved — sub-document (business_plan, mvp_plan, poc_plan), single-doc phase value (prd, technical_architecture, ...), or exported artifact type (exported_slides, exported_wbs). Optional."}},"type":"object","required":["workspace_id","workspace_name"],"title":"ImprovementFlowTriggeredRequest","description":"Request model for improvement/eval flow trigger tracking","example":{"document_type":"mvp_plan","phase_type":"BUSINESS_PLAN","workspace_id":"proj_123456789","workspace_name":"My SaaS App"}},"IngestEventRequest":{"properties":{"key":{"type":"string","maxLength":64,"minLength":1,"title":"Key"},"event_type":{"$ref":"#/components/schemas/VisitorEventType"},"loop_type":{"anyOf":[{"$ref":"#/components/schemas/BuildSurface"},{"type":"null"}]},"channel":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Channel"},"event_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Event Id"},"dwell_ms":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Dwell Ms"},"cta_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Cta Id"},"claura_self":{"type":"boolean","title":"Claura Self","default":false},"delivery_failure":{"anyOf":[{"$ref":"#/components/schemas/DeliveryFailure"},{"type":"null"}]},"click_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Click Id"},"click_channel":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Click Channel"}},"additionalProperties":false,"type":"object","required":["key","event_type"],"title":"IngestEventRequest"},"IngestEventResponse":{"properties":{"accepted":{"type":"boolean","title":"Accepted"},"excluded_reason":{"anyOf":[{"$ref":"#/components/schemas/ExclusionReason"},{"type":"null"}]},"stored":{"type":"boolean","title":"Stored","default":true}},"type":"object","required":["accepted"],"title":"IngestEventResponse","description":"Deliberately minimal — the snippet doesn't branch on this, but the\nexclusion reason is useful for the founder's own debugging/QA."},"IngestItemState":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"status":{"type":"string","title":"Status"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},"type":"object","required":["id","label","status"],"title":"IngestItemState"},"IngestLeadRequest":{"properties":{"key":{"type":"string","maxLength":64,"minLength":1,"title":"Key"},"email":{"type":"string","format":"email","title":"Email"},"source":{"$ref":"#/components/schemas/PageLeadSource","default":"waitlist"}},"additionalProperties":false,"type":"object","required":["key","email"],"title":"IngestLeadRequest","description":"The capture form's other write: the founder-owned contact. The key is the credential,\nas for events, and unknown fields are refused at parse time."},"IngestLeadResponse":{"properties":{"accepted":{"type":"boolean","title":"Accepted"},"stored":{"type":"boolean","title":"Stored","default":true}},"type":"object","required":["accepted"],"title":"IngestLeadResponse"},"IngestMaterialsRequest":{"properties":{"materials":{"items":{"$ref":"#/components/schemas/DiagnosisMaterial"},"type":"array","maxItems":30,"title":"Materials"}},"type":"object","required":["materials"],"title":"IngestMaterialsRequest"},"IngestResult":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IngestItemState"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"IngestResult"},"InterstitialConsequence":{"properties":{"kind":{"type":"string","title":"Kind"},"title":{"type":"string","title":"Title"},"items":{"items":{"type":"string"},"type":"array","title":"Items"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"}},"type":"object","required":["kind","title"],"title":"InterstitialConsequence"},"InterstitialRequest":{"properties":{"target_tier":{"$ref":"#/components/schemas/SubscriptionTier"}},"type":"object","required":["target_tier"],"title":"InterstitialRequest"},"InterstitialResponse":{"properties":{"target_tier":{"$ref":"#/components/schemas/SubscriptionTier"},"has_consequences":{"type":"boolean","title":"Has Consequences"},"consequences":{"items":{"$ref":"#/components/schemas/InterstitialConsequence"},"type":"array","title":"Consequences"}},"type":"object","required":["target_tier","has_consequences"],"title":"InterstitialResponse"},"InvoiceSummary":{"properties":{"id":{"type":"string","title":"Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created"},"amount_paid":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Paid"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"hosted_invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosted Invoice Url"},"invoice_pdf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Pdf"}},"type":"object","required":["id"],"title":"InvoiceSummary"},"InvoicesResponse":{"properties":{"invoices":{"items":{"$ref":"#/components/schemas/InvoiceSummary"},"type":"array","title":"Invoices"}},"type":"object","title":"InvoicesResponse"},"IsTrialResponse":{"properties":{"is_trial":{"type":"boolean","title":"Is Trial","description":"Whether user is on trial"},"user_id":{"type":"string","title":"User Id","description":"User ID"}},"type":"object","required":["is_trial","user_id"],"title":"IsTrialResponse","description":"Response for is-trial check."},"ItemSync":{"properties":{"provider":{"$ref":"#/components/schemas/PMToolProvider"},"deep_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deep Link"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"link_state":{"$ref":"#/components/schemas/LinkState"}},"type":"object","required":["provider","link_state"],"title":"ItemSync","description":"Per-item live PM-tool link reflection; null on manual items."},"KPIResponse":{"properties":{"id":{"type":"string","title":"Id"},"phase_type":{"$ref":"#/components/schemas/PhaseType"},"arc":{"$ref":"#/components/schemas/ArcType"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Value"},"target_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Min"},"target_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Max"},"target_comparison":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Comparison"},"current_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"status":{"$ref":"#/components/schemas/KPIStatus"},"is_north_star":{"type":"boolean","title":"Is North Star"},"swapped_from_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Swapped From Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","phase_type","arc","name","description","target_value","target_min","target_max","target_comparison","current_value","unit","status","is_north_star","swapped_from_id","created_at","updated_at"],"title":"KPIResponse"},"KPIStatus":{"type":"string","enum":["proposed","accepted","rejected","locked","outdated"],"title":"KPIStatus"},"KickoffCompleteRequest":{"properties":{"event_source_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Event Source Url","description":"Page URL the founder completed onboarding from. Meta requires it for web events; only the browser knows it. Tolerated, never validated."}},"type":"object","title":"KickoffCompleteRequest"},"KickoffCompleteView":{"properties":{"meta_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Event Id"}},"type":"object","title":"KickoffCompleteView","description":"The Meta conversion id the browser mirrors (set only on the founder's first completion)."},"KindOffer":{"properties":{"treatment":{"$ref":"#/components/schemas/OfferTreatment"},"reason":{"anyOf":[{"$ref":"#/components/schemas/OfferReason"},{"type":"null"}]},"upsell_tier":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionTier"},{"type":"null"}]},"seats_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Seats Available"},"turnaround":{"anyOf":[{"$ref":"#/components/schemas/OfferTurnaround"},{"type":"null"}]}},"type":"object","required":["treatment"],"title":"KindOffer","description":"The offer for one kind of engineer work."},"LaunchBlock":{"type":"string","enum":["ads_incomplete","no_website","launching","nothing_to_send"],"title":"LaunchBlock"},"LaunchCallsView":{"properties":{"logged":{"type":"integer","title":"Logged","default":0},"would_pay_yes":{"type":"integer","title":"Would Pay Yes","default":0},"would_pay_no":{"type":"integer","title":"Would Pay No","default":0}},"type":"object","title":"LaunchCallsView"},"LaunchDiagnosisJobRequest":{"properties":{"kind":{"type":"string","title":"Kind"}},"type":"object","required":["kind"],"title":"LaunchDiagnosisJobRequest","description":"POST /diagnosis/jobs body.\n\n``kind`` is a plain string on purpose — an unknown kind becomes a typed\n400 problem, not a request-level 422."},"LaunchMessageView":{"properties":{"fields":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Fields"},"rooms":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rooms"},"activation":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Activation"},"version_number":{"type":"integer","title":"Version Number"}},"type":"object","required":["fields","rooms","version_number"],"title":"LaunchMessageView","description":"The approved words, the places and the funnel riding on them, and which version they are."},"LaunchMove":{"type":"string","enum":["post_elsewhere","fix_message","fix_site","new_posts"],"title":"LaunchMove","description":"The one change a read recommends, named by the step it changes."},"LaunchPageRecentView":{"properties":{"since":{"type":"string","format":"date-time","title":"Since"},"visits":{"type":"integer","title":"Visits"},"waitlist":{"type":"integer","title":"Waitlist"},"call_clicks":{"type":"integer","title":"Call Clicks"}},"type":"object","required":["since","visits","waitlist","call_clicks"],"title":"LaunchPageRecentView","description":"The live page's last seven days. ``call_clicks`` is distinct visitors who clicked the call link:\nbookings happen on the founder's own calendar, which Claura cannot see."},"LaunchPageView":{"properties":{"live_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Live Url"},"drift":{"anyOf":[{"$ref":"#/components/schemas/MessageDriftView"},{"type":"null"}]}},"type":"object","title":"LaunchPageView","description":"The published page the posts point at, and whether it still makes the message's promise."},"LaunchPieceStatus":{"type":"string","enum":["draft","approved","replaced","planned"],"title":"LaunchPieceStatus","description":"``draft`` until the founder approves the exact words; approval mints the tracked link\nthe first time. A change to the words or the places sends an unposted piece back to\n``draft``, link kept, to be rewritten and approved again. ``replaced`` is a piece retired\nbefore it was posted: kept, so a link that was already minted still resolves to its row."},"LaunchPieceView":{"properties":{"id":{"type":"string","title":"Id"},"channel":{"type":"string","title":"Channel"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"text":{"type":"string","title":"Text"},"status":{"type":"string","title":"Status"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"posted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posted At"}},"type":"object","required":["id","channel","room","text","status","link","posted_at"],"title":"LaunchPieceView","description":"One launch piece as the posts step renders it.\n\n``link`` is the absolute tracked URL the founder pastes into a post, present only once\napproved: nothing unapproved goes out with attribution, and a post back in draft is\napproved again first."},"LaunchPostView":{"properties":{"id":{"type":"string","title":"Id"},"channel":{"type":"string","title":"Channel"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"text":{"type":"string","title":"Text"},"status":{"type":"string","title":"Status"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"posted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posted At"},"visitors":{"type":"integer","title":"Visitors","default":0},"redrafted":{"type":"boolean","title":"Redrafted","default":false}},"type":"object","required":["id","channel","room","text","status","link","posted_at"],"title":"LaunchPostView","description":"A post on the launch, with the distinct visitors its tracked link has brought, and whether it\nwas sent back to draft by a change to the words or the places."},"LaunchStep":{"type":"string","enum":["message","landing_page","where_to_post","posts","brand"],"title":"LaunchStep","description":"A step of the launch the founder can change at any time. Its identity only: the founder makes it on\nthe Marketing hub page ``LAUNCH_STEP_HUB_PAGE`` names."},"LedgerEntryType":{"type":"string","enum":["grant_trial","grant_cycle","grant_topup","grant_comp","debit_usage","refund_failed_action","refund_support","expire_cycle","expire_topup","expire_trial","adjust_admin","clawback"],"title":"LedgerEntryType"},"LeverArchetypeResponse":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"prompt":{"type":"string","title":"Prompt"},"impact_type":{"$ref":"#/components/schemas/LeverImpactType"},"sign":{"type":"integer","enum":[-1,1],"title":"Sign"},"default_reversible":{"type":"boolean","title":"Default Reversible"}},"type":"object","required":["key","label","prompt","impact_type","sign","default_reversible"],"title":"LeverArchetypeResponse"},"LeverImpactType":{"type":"string","enum":["recurring_burn_delta","recurring_revenue","one_time_cash"],"title":"LeverImpactType","description":"Which term of the runway projection a lever moves (sign convention in the scenario service)."},"LeverMetric":{"type":"string","enum":["survival"],"title":"LeverMetric","description":"Metric a lever models against — SURVIVAL only for now; schema stays metric-agnostic."},"LinkState":{"type":"string","enum":["linked","unlinked","broken"],"title":"LinkState","description":"Per-row link state for tasks/milestones linked to an external PM tool entity."},"LogCallRequest":{"properties":{"problem":{"type":"string","maxLength":2000,"minLength":1,"title":"Problem"},"would_pay":{"$ref":"#/components/schemas/WouldPay"},"would_pay_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Would Pay Note"},"surprised":{"type":"string","maxLength":2000,"minLength":1,"title":"Surprised"},"quote":{"type":"string","maxLength":2000,"minLength":1,"title":"Quote"},"lead_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Lead Id"}},"type":"object","required":["problem","would_pay","surprised","quote"],"title":"LogCallRequest","description":"The call-note fields, short and structured so the verdict can reason over them."},"LogEvidenceParams":{"properties":{"signal_type":{"type":"string","title":"Signal Type"},"description":{"type":"string","title":"Description"}},"type":"object","required":["signal_type","description"],"title":"LogEvidenceParams"},"LogTractionSignalRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"signal_type":{"$ref":"#/components/schemas/TractionSignalType"},"description":{"type":"string","title":"Description"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"}},"type":"object","required":["arc","signal_type","description"],"title":"LogTractionSignalRequest"},"LoginMethod":{"type":"string","enum":["email","google"],"title":"LoginMethod","description":"The frontend's own vocabulary for how the founder authenticated —\ndistinct from Firebase's `sign_in_provider` (\"custom\"/\"google.com\"),\nwhich is why `POST /analytics/login` keeps both and prefers the body's."},"LoginTrackingRequest":{"properties":{"method":{"anyOf":[{"$ref":"#/components/schemas/LoginMethod"},{"type":"null"}],"description":"How the founder authenticated, from the frontend's own sign-in flow. Falls back to the verified Firebase token's `sign_in_provider` when omitted."}},"type":"object","title":"LoginTrackingRequest","description":"Request model for the funnel dispatcher's `login` event."},"LogoDraftResponse":{"properties":{"logo_path":{"type":"string","title":"Logo Path"},"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background"}},"type":"object","required":["logo_path"],"title":"LogoDraftResponse","description":"An uploaded logo and the colours read from it; nothing is saved until the brand is."},"MarginReportResponse":{"properties":{"since":{"type":"string","format":"date-time","title":"Since"},"group_by":{"type":"string","title":"Group By"},"rows":{"items":{"$ref":"#/components/schemas/MarginReportRow"},"type":"array","title":"Rows"}},"type":"object","required":["since","group_by"],"title":"MarginReportResponse"},"MarginReportRow":{"properties":{"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group"},"credits_debited":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Credits Debited"},"cogs_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Cogs Usd"},"cogs_per_credit_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cogs Per Credit Usd"}},"type":"object","required":["credits_debited","cogs_usd"],"title":"MarginReportRow"},"MarkReadRequest":{"properties":{"notification_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Notification Ids"}},"type":"object","required":["notification_ids"],"title":"MarkReadRequest"},"MarkReadResponse":{"properties":{"marked":{"type":"integer","title":"Marked","description":"Number of notifications marked as read"}},"type":"object","required":["marked"],"title":"MarkReadResponse"},"MediaAssetAdView":{"properties":{"ad_id":{"type":"string","title":"Ad Id"},"plan_id":{"type":"string","title":"Plan Id"},"platform":{"$ref":"#/components/schemas/AdPlatform"},"format":{"$ref":"#/components/schemas/AdFormat"},"sent":{"type":"boolean","title":"Sent"}},"type":"object","required":["ad_id","plan_id","platform","format","sent"],"title":"MediaAssetAdView"},"MediaAssetFacets":{"properties":{"total":{"type":"integer","title":"Total"},"images":{"type":"integer","title":"Images"},"videos":{"type":"integer","title":"Videos"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels"}},"type":"object","required":["total","images","videos","channels"],"title":"MediaAssetFacets","description":"The counts and accounts the page's filters offer, over every listed version whatever is filtered."},"MediaAssetItem":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"kind":{"$ref":"#/components/schemas/MediaKind"},"version":{"type":"integer","title":"Version"},"is_current":{"type":"boolean","title":"Is Current"},"origin":{"$ref":"#/components/schemas/MediaOrigin"},"name":{"type":"string","title":"Name"},"channel":{"type":"string","title":"Channel"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"mime":{"type":"string","title":"Mime"},"created_at":{"type":"string","title":"Created At"},"post":{"anyOf":[{"$ref":"#/components/schemas/MediaAssetPostView"},{"type":"null"}]},"ad":{"anyOf":[{"$ref":"#/components/schemas/MediaAssetAdView"},{"type":"null"}]}},"type":"object","required":["asset_id","kind","version","is_current","origin","name","channel","room","width","height","duration_ms","mime","created_at"],"title":"MediaAssetItem","description":"One version on the Assets page; ``name`` is its search key and its download's filename."},"MediaAssetPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MediaAssetItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"facets":{"$ref":"#/components/schemas/MediaAssetFacets"}},"type":"object","required":["items","next_cursor","facets"],"title":"MediaAssetPage"},"MediaAssetPostView":{"properties":{"piece_id":{"type":"string","title":"Piece Id"},"status":{"$ref":"#/components/schemas/LaunchPieceStatus"},"posted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posted At"}},"type":"object","required":["piece_id","status","posted_at"],"title":"MediaAssetPostView","description":"The post a version was made for. ``status`` is ``replaced`` for a post retired before it went out."},"MediaCopiedRequest":{"properties":{"mode":{"$ref":"#/components/schemas/MediaCopyMode"}},"type":"object","required":["mode"],"title":"MediaCopiedRequest"},"MediaCopyMode":{"type":"string","enum":["full","fallback"],"title":"MediaCopyMode","description":"How \"Copy post + link\" carried the media: on the clipboard, or saved beside the copied caption."},"MediaCurrentView":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"kind":{"$ref":"#/components/schemas/MediaKind"},"version":{"type":"integer","title":"Version"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["asset_id","kind","version","width","height","duration_ms"],"title":"MediaCurrentView"},"MediaEditRequest":{"properties":{"prompt":{"type":"string","maxLength":1000,"title":"Prompt"}},"type":"object","required":["prompt"],"title":"MediaEditRequest","description":"The founder's words for a change to the post's current image."},"MediaKind":{"type":"string","enum":["image","video"],"title":"MediaKind"},"MediaOrigin":{"type":"string","enum":["drafted","regenerated","edited","video"],"title":"MediaOrigin"},"MediaSlotState":{"type":"string","enum":["processing","ready","failed"],"title":"MediaSlotState"},"MediaSort":{"type":"string","enum":["newest","oldest"],"title":"MediaSort","description":"The Assets page's order, by when each version was made."},"MediaUseVersionRequest":{"properties":{"version":{"type":"integer","maximum":32767.0,"minimum":1.0,"title":"Version"}},"type":"object","required":["version"],"title":"MediaUseVersionRequest"},"MediaVersionView":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"kind":{"$ref":"#/components/schemas/MediaKind"},"version":{"type":"integer","title":"Version"},"origin":{"$ref":"#/components/schemas/MediaOrigin"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["asset_id","kind","version","origin","created_at"],"title":"MediaVersionView"},"MemberWithProfileResponse":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"role":{"$ref":"#/components/schemas/OrganizationRole"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","user_id","role","joined_at","is_active"],"title":"MemberWithProfileResponse","description":"Organization member with basic profile information"},"MessageDriftView":{"properties":{"status":{"$ref":"#/components/schemas/DriftStatus"},"promise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promise"},"page_says":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Says"},"detected_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected At"},"check_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check Id"},"out_of_credits":{"type":"boolean","title":"Out Of Credits","default":false}},"type":"object","required":["status"],"title":"MessageDriftView"},"MessageEdits":{"properties":{"who":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Who"},"problem":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Problem"},"promise":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Promise"},"ask":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Ask"},"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"}},"additionalProperties":false,"type":"object","title":"MessageEdits","description":"The fields the founder changed on the Website page; a field left out keeps its published value.\nThe first approval sends all four words. A word is never null, since a message missing one reads back\nas no message at all; an empty or null booking link removes it."},"MessagePublishRequest":{"properties":{"fields":{"$ref":"#/components/schemas/MessageEdits"}},"type":"object","required":["fields"],"title":"MessagePublishRequest"},"MessagePublishResponse":{"properties":{"message":{"$ref":"#/components/schemas/LaunchMessageView"},"redrafted":{"$ref":"#/components/schemas/RedraftedView"},"rebuild_started":{"type":"boolean","title":"Rebuild Started"}},"type":"object","required":["message","redrafted","rebuild_started"],"title":"MessagePublishResponse"},"MilestoneCreateRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"name":{"type":"string","maxLength":256,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target_date":{"type":"string","format":"date-time","title":"Target Date"}},"type":"object","required":["arc","name","target_date"],"title":"MilestoneCreateRequest"},"MilestoneResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Target Date"},"target_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Week"},"source":{"$ref":"#/components/schemas/MilestoneSource"},"workspace_phase_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Phase Id"},"phase_type":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"is_hidden":{"type":"boolean","title":"Is Hidden"},"completion_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Pct"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"external_provider":{"anyOf":[{"$ref":"#/components/schemas/PMToolProvider"},{"type":"null"}]},"link_state":{"anyOf":[{"$ref":"#/components/schemas/LinkState"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","arc","name","source","is_hidden","created_at","updated_at"],"title":"MilestoneResponse"},"MilestoneSource":{"type":"string","enum":["playbook","stage_target","diagnosis_plan","manual","wbs"],"title":"MilestoneSource"},"MilestoneUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Target Date"},"is_hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Hidden"},"completion_pct":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Completion Pct"}},"type":"object","title":"MilestoneUpdateRequest"},"ModifyCriterionRequest":{"properties":{"description":{"type":"string","title":"Description"}},"type":"object","required":["description"],"title":"ModifyCriterionRequest"},"NextMove":{"type":"string","enum":["build","use_it","improve","contested","more_evidence"],"title":"NextMove","description":"Which way an answered read points the founder.\n\nA read can decline to point anywhere, so there are four outcomes, not two."},"NextStepKind":{"type":"string","enum":["build_prototype","send_prototype","log_call","change_something"],"title":"NextStepKind"},"NextStepView":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"position":{"type":"integer","title":"Position","default":0},"status":{"type":"string","title":"Status"},"acted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acted At"}},"type":"object","required":["id","kind","status"],"title":"NextStepView","description":"One row of a read's \"Your next steps\". ``params`` is the kind's own model\n(``LogCallParams``, ``ChangeSomethingParams``, or empty); an unknown kind still renders as a\nplain row on the frontend."},"NotificationFilter":{"type":"string","enum":["all","read","unread"],"title":"NotificationFilter"},"NotificationListResponse":{"properties":{"notifications":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Notifications"},"unread_count":{"type":"integer","title":"Unread Count","description":"Total unread count regardless of active filter"},"total":{"type":"integer","title":"Total","description":"Total notifications matching the current filter"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["notifications","unread_count","total","limit","offset"],"title":"NotificationListResponse"},"NotificationResolveResponse":{"properties":{"status":{"type":"string","title":"Status","description":"ok, gone, forbidden, expired, or unavailable"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["status"],"title":"NotificationResolveResponse"},"NotificationResourceType":{"type":"string","enum":["engineer_request","workspace","prototype","export","playbook","drift","sync","investment_packet","diagnosis","build","social_plan","launch_piece","social","ad_plan","ad_account"],"title":"NotificationResourceType"},"NotificationResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"recipient_user_id":{"type":"string","title":"Recipient User Id"},"actor_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Id"},"type":{"$ref":"#/components/schemas/NotificationType"},"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"resource_type":{"anyOf":[{"$ref":"#/components/schemas/NotificationResourceType"},{"type":"null"}]},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Url"},"status":{"anyOf":[{"$ref":"#/components/schemas/NotificationStatus"},{"type":"null"}]},"read":{"type":"boolean","title":"Read"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","recipient_user_id","actor_user_id","type","title","message","workspace_id","resource_type","resource_id","action_url","read","created_at"],"title":"NotificationResponse"},"NotificationStatus":{"type":"string","enum":["success","failed"],"title":"NotificationStatus","description":"Outcome status for notifications that can succeed or fail.\n\nSet on creation by helpers like notify_export_ready / notify_build_failed\nso the FE can branch on a typed value instead of string-matching the title.\nNull for notifications without a success/failure dimension (PERMISSION_CHANGE)."},"NotificationType":{"type":"string","enum":["PERMISSION_CHANGE","PROTOTYPE_READY","EXPORT_READY","PLAYBOOK_REMINDER","DRIFT_DETECTED","CRITERIA_OUTDATED","CRITERIA_REFRESHED","DRIFT_RESOLUTION_PENDING","DRIFT_RESOLUTION_TASK_COMPLETED","DRIFT_RESOLUTION_JOB_COMPLETED","PACKET_READY","DIAGNOSIS_READY","LOOP_READY_FOR_REVIEW","LOOP_ANSWER_READY","LOOP_FAILED","LOOP_UPDATED_FROM_MAIN","ENGINEER_REQUEST_PICKED_UP","ENGINEER_REQUEST_NEEDS_YOU","ENGINEER_REQUEST_CANNOT_DO","ENGINEER_REQUEST_CLOSED","ENGINEER_HANDED_BACK","ENGINEER_CONFIRM_REMINDER","ENGINEER_REQUEST_CLOSED_UNCONFIRMED","ENGINEER_REQUEST_ESCALATED","FDE_APPROVED","SOCIAL_WEEK_READY","POSTING_DUE","SOCIAL_POST_FAILED","SOCIAL_ACCOUNT_NEEDS_RECONNECT","ADS_READY_FOR_REVIEW","ADS_AD_REJECTED","ADS_BUDGET_WARNING","ADS_BUDGET_PAUSED","ADS_BUDGET_RESUMED","AD_ACCOUNT_NEEDS_ATTENTION","ADS_CAMPAIGNS_PAUSED_DISCONNECT","ADS_CAMPAIGNS_RELEASED"],"title":"NotificationType"},"OfferReason":{"type":"string","enum":["account_state_blocked","capability_denied","payment_required"],"title":"OfferReason","description":"Why an offer is not simply available.\n\nDeliberately NOT ``EntitlementDenialReason``: two of that enum's four\nmembers cannot decide an offer (asking an engineer buys a person's time, not\nmetered credit — see ``ask_decision``), and one reason here has no\nentitlement counterpart at all. Its own closed vocabulary, mapped from the\nentitlement reasons in exactly one place, keeps the offers contract from\nimplying ``check_entitlement`` can return something it never returns."},"OfferTreatment":{"type":"string","enum":["available","upsell","coming_soon","hidden"],"title":"OfferTreatment","description":"How one engineer offer renders for this organization.\n\nThe backend decides; the frontend only renders. A client that worked out\n\"may they ask, and if not what do we sell them\" from tier and state would\nre-derive the eligibility rules in TypeScript, and the two copies would\ndisagree the first time a rule moved."},"OfferTurnaround":{"properties":{"promise_working_days":{"type":"integer","title":"Promise Working Days"},"timezone":{"type":"string","title":"Timezone"}},"type":"object","required":["promise_working_days","timezone"],"title":"OfferTurnaround","description":"How long this kind of work takes, as the founder is told it."},"OnboardingCompleteRequest":{"properties":{"channel":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[A-Za-z0-9_.\\-]{1,100}$"},{"type":"null"}],"title":"Channel","description":"Attribution channel/UTM tag captured at landing; defaults to 'direct' when absent"},"fbp":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Fbp","description":"Meta _fbp browser cookie, sent raw (never hashed)"},"fbc":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Fbc","description":"Meta _fbc click cookie derived from fbclid, sent raw (never hashed)"},"event_source_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Event Source Url","description":"Page URL the founder completed signup on; required by Meta for web events"},"ga_client_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ga Client Id","description":"GA4 `_ga` client id; passed through to the funnel event, never persisted"},"ga_session_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ga Session Id","description":"GA4 `_ga_<stream>` session id; passed through to the funnel event, never persisted"},"utm_source":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Utm Campaign"},"utm_term":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Utm Term"},"utm_content":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Utm Content"},"gclid":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Gclid","description":"Google Ads click id, forwarded into the `sign_up` event's properties alongside the utm_* tags; never persisted onto the user row"},"landing_idea":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Landing Idea","description":"The idea the visitor typed on claura.co before signing up; stored on the profile to prefill onboarding, never logged or sent to analytics, and scrubbed from Sentry"}},"type":"object","title":"OnboardingCompleteRequest","description":"Optional acquisition context for silent identity provisioning."},"OnboardingCompleteResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether onboarding completed successfully"},"organization":{"additionalProperties":true,"type":"object","title":"Organization","description":"Organization information"},"membership":{"additionalProperties":true,"type":"object","title":"Membership","description":"User membership information"},"is_trial":{"type":"boolean","title":"Is Trial","description":"Whether user is on trial (determined after transaction commit)"},"meta_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Event Id","description":"event_id of the CompleteRegistration conversion the server reported to Meta. The browser fires its copy with this same id so Meta merges them into one conversion. Null when no event was reported (muted account, repeat provisioning, or Meta not configured)."}},"type":"object","required":["success","organization","membership","is_trial"],"title":"OnboardingCompleteResponse","description":"Response returned when completing onboarding."},"OnboardingMode":{"type":"string","enum":["free","metered"],"title":"OnboardingMode","description":"How a project's onboarding is billed; recorded once, when a FOUNDER project is created.\n\nA NULL ``workspaces.onboarding_mode`` means the project was not created into\nper-project onboarding (SALES, a clone, or before this change), and it can't\nrun a diagnosis."},"OnboardingStep":{"type":"string","enum":["intake","reading","diagnosis","plan","kickoff"],"title":"OnboardingStep","description":"The FE walkthrough's own vocabulary (`constants/flow.ts`), duplicated here\nonly for request validation — this backend has no other reason to know the\nstep names, and the frontend remains the source of truth for their order."},"OnboardingStepRequest":{"properties":{"step":{"$ref":"#/components/schemas/OnboardingStep"},"step_index":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Step Index","description":"1-indexed position of `step`, as the frontend's own walkthrough state counts it. Optional for back-compat; when present it must agree with `step` — the endpoint rejects a mismatch rather than silently trusting one or the other."},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"}},"type":"object","required":["step","workspace_id"],"title":"OnboardingStepRequest","description":"Request model for the funnel dispatcher's `onboarding_step_completed` event."},"OrgMemberDetailResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"$ref":"#/components/schemas/OrganizationRole"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["user_id","role","joined_at","is_active"],"title":"OrgMemberDetailResponse","description":"Enriched member response for admin organization management."},"OrganizationResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"allowed_workflows":{"items":{"$ref":"#/components/schemas/WorkflowType"},"type":"array","title":"Allowed Workflows","description":"Allowed workflow types for this org"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"is_system":{"type":"boolean","title":"Is System","default":false}},"type":"object","required":["id","name","domain","settings","created_at","updated_at","is_active"],"title":"OrganizationResponse"},"OrganizationRole":{"type":"string","enum":["owner","admin","member"],"title":"OrganizationRole","description":"Organization-level roles"},"OrganizationTemplateCreate":{"properties":{"template_id":{"type":"string","title":"Template Id"},"template_type":{"$ref":"#/components/schemas/TemplateType"},"document_type":{"$ref":"#/components/schemas/DocumentType"}},"type":"object","required":["template_id","template_type","document_type"],"title":"OrganizationTemplateCreate","description":"Request model for creating/updating organization template"},"OrganizationTemplateResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"document_type":{"$ref":"#/components/schemas/DocumentType"},"template_type":{"$ref":"#/components/schemas/TemplateType"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["organization_id","document_type","template_type"],"title":"OrganizationTemplateResponse","description":"Response model for template information"},"OrganizationUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Organization name"},"settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Settings","description":"Organization settings"}},"type":"object","title":"OrganizationUpdate","description":"Editable organization details.\n\n``domain`` is absent on purpose: it is set once, by provisioning, from an email\naddress the identity provider verified. Accepting one here let any org admin claim\nanother company's domain and collect its future signups."},"OrganizationWithRoleResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"allowed_workflows":{"items":{"$ref":"#/components/schemas/WorkflowType"},"type":"array","title":"Allowed Workflows","description":"Allowed workflow types for this org"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"is_system":{"type":"boolean","title":"Is System","default":false},"user_role":{"$ref":"#/components/schemas/OrganizationRole"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"is_super_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Super Admin","default":false},"free_onboarding_available":{"type":"boolean","title":"Free Onboarding Available","description":"Whether the org's next FOUNDER project onboards free"}},"type":"object","required":["id","name","domain","settings","created_at","updated_at","is_active","user_role","joined_at","free_onboarding_available"],"title":"OrganizationWithRoleResponse","description":"Organization details with current user's role"},"OverviewBudget":{"properties":{"id":{"type":"string","title":"Id"},"total_budget":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Budget"},"current_spend":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Current Spend"},"weekly_burn":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Weekly Burn"},"runway_weeks_override":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runway Weeks Override"},"runway_weeks":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runway Weeks"}},"type":"object","required":["id"],"title":"OverviewBudget"},"OverviewCriticalDate":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"target_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Date"},"target_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Week"},"source":{"$ref":"#/components/schemas/MilestoneSource"},"phase_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Type"},"completion_pct":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Pct"},"is_hidden":{"type":"boolean","title":"Is Hidden"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","source","is_hidden"],"title":"OverviewCriticalDate"},"OverviewKpi":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"target_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Value"},"target_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Min"},"target_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Max"},"target_comparison":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Comparison"},"current_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"phase_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Type"},"status":{"$ref":"#/components/schemas/KPIStatus"},"is_north_star":{"type":"boolean","title":"Is North Star"},"trend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trend"}},"type":"object","required":["id","name","status","is_north_star"],"title":"OverviewKpi"},"OverviewNorthStar":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"target_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Value"},"target_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Min"},"target_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Target Max"},"target_comparison":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Comparison"},"current_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"trend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trend"}},"type":"object","required":["id","name"],"title":"OverviewNorthStar"},"OverviewResponse":{"properties":{"phases":{"items":{"$ref":"#/components/schemas/PhaseScore"},"type":"array","title":"Phases"},"awaiting_founder":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Awaiting Founder","default":{}},"aggregate_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aggregate Score"},"aggregate_trend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aggregate Trend"},"aggregate_trend_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aggregate Trend Window"},"phases_scored":{"type":"integer","title":"Phases Scored"},"phases_total":{"type":"integer","title":"Phases Total"},"kpis":{"items":{"$ref":"#/components/schemas/OverviewKpi"},"type":"array","title":"Kpis"},"north_star":{"anyOf":[{"$ref":"#/components/schemas/OverviewNorthStar"},{"type":"null"}]},"risks":{"items":{"$ref":"#/components/schemas/OverviewRisk"},"type":"array","title":"Risks"},"risks_stale":{"type":"boolean","title":"Risks Stale","default":false},"budget":{"$ref":"#/components/schemas/OverviewBudget"},"critical_dates":{"items":{"$ref":"#/components/schemas/OverviewCriticalDate"},"type":"array","title":"Critical Dates"},"current_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Week"},"total_weeks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Weeks"},"execution_start_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Start Date"},"connections":{"items":{"$ref":"#/components/schemas/ConnectionSummary"},"type":"array","title":"Connections","default":[]},"needs_walkthrough":{"type":"boolean","title":"Needs Walkthrough"},"walkthrough_phases_missing":{"items":{"type":"string"},"type":"array","title":"Walkthrough Phases Missing"},"has_pending_review":{"type":"boolean","title":"Has Pending Review"},"walkthrough_mode":{"anyOf":[{"$ref":"#/components/schemas/WalkthroughMode"},{"type":"null"}]}},"type":"object","required":["phases","phases_scored","phases_total","kpis","risks","budget","critical_dates","needs_walkthrough","walkthrough_phases_missing","has_pending_review"],"title":"OverviewResponse"},"OverviewRisk":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"$ref":"#/components/schemas/RiskSource"},"detector_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detector Key"},"signal_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Ref"},"system_severity":{"anyOf":[{"$ref":"#/components/schemas/RiskSeverity"},{"type":"null"}]},"founder_severity":{"anyOf":[{"$ref":"#/components/schemas/RiskSeverity"},{"type":"null"}]},"effective_severity":{"anyOf":[{"$ref":"#/components/schemas/RiskSeverity"},{"type":"null"}]},"resolution_state":{"$ref":"#/components/schemas/RiskResolutionState"}},"type":"object","required":["id","title","source","resolution_state"],"title":"OverviewRisk"},"PMConnectionResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"export_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Id"},"external_project_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Project Url"},"connection_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection State"}},"type":"object","required":["connected"],"title":"PMConnectionResponse","description":"Response for active connection status"},"PMDisconnectResponse":{"properties":{"disconnected":{"type":"boolean","title":"Disconnected"},"items_unlinked":{"type":"integer","title":"Items Unlinked","default":0}},"type":"object","required":["disconnected"],"title":"PMDisconnectResponse","description":"Response from disconnect operation"},"PMExportFailedItem":{"properties":{"wbs_code":{"type":"string","title":"Wbs Code"},"item_type":{"type":"string","title":"Item Type"},"name":{"type":"string","title":"Name"},"reason":{"type":"string","title":"Reason"},"error_category":{"type":"string","title":"Error Category","default":"unknown"},"action_hint":{"type":"string","title":"Action Hint","default":"retry"},"is_retryable":{"type":"boolean","title":"Is Retryable","default":true},"retry_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After"},"auth_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Url"}},"type":"object","required":["wbs_code","item_type","name","reason"],"title":"PMExportFailedItem","description":"Details of an item that failed to export"},"PMExportHistoryItem":{"properties":{"id":{"type":"string","title":"Id"},"provider":{"$ref":"#/components/schemas/PMToolProvider"},"export_type":{"$ref":"#/components/schemas/PMExportType"},"source_artifact_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Artifact Type"},"external_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Project Id"},"external_project_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Project Url"},"external_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Workspace Id"},"exported_by":{"type":"string","title":"Exported By"},"exported_at":{"type":"string","format":"date-time","title":"Exported At"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"status":{"$ref":"#/components/schemas/PMExportStatus"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"items_count":{"type":"integer","title":"Items Count","default":0}},"type":"object","required":["id","provider","export_type","exported_by","exported_at","status"],"title":"PMExportHistoryItem","description":"Historical export record"},"PMExportHistoryResponse":{"properties":{"exports":{"items":{"$ref":"#/components/schemas/PMExportHistoryItem"},"type":"array","title":"Exports"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["exports","total"],"title":"PMExportHistoryResponse","description":"Response containing export history"},"PMExportResponse":{"additionalProperties":true,"type":"object"},"PMExportStatus":{"type":"string","enum":["pending","in_progress","completed","failed","partial"],"title":"PMExportStatus","description":"Enum for PM export status"},"PMExportTarget":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["id","name","type"],"title":"PMExportTarget","description":"Available export target in PM tool"},"PMExportTargetsResponse":{"properties":{"targets":{"items":{"$ref":"#/components/schemas/PMExportTarget"},"type":"array","title":"Targets"},"provider":{"$ref":"#/components/schemas/PMToolProvider"}},"type":"object","required":["targets","provider"],"title":"PMExportTargetsResponse","description":"Response containing available export targets"},"PMExportType":{"type":"string","enum":["delivery_tracker"],"title":"PMExportType","description":"Enum for PM export types"},"PMOAuthAuthorizationResponse":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"},"provider":{"$ref":"#/components/schemas/PMToolProvider"}},"type":"object","required":["authorization_url","provider"],"title":"PMOAuthAuthorizationResponse","description":"Response containing OAuth authorization URL"},"PMOAuthStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"provider":{"$ref":"#/components/schemas/PMToolProvider"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["connected","provider"],"title":"PMOAuthStatusResponse","description":"Response for OAuth connection status"},"PMToolProvider":{"type":"string","enum":["notion","linear","jira"],"title":"PMToolProvider","description":"Enum for PM tool providers"},"PacketBadge":{"type":"string","enum":["INVESTOR_READY","IN_PROGRESS"],"title":"PacketBadge"},"PacketDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"packet_type":{"$ref":"#/components/schemas/PacketType"},"version_number":{"type":"integer","title":"Version Number"},"status":{"$ref":"#/components/schemas/PacketStatus"},"badge":{"anyOf":[{"$ref":"#/components/schemas/PacketBadge"},{"type":"null"}]},"badge_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Badge Score"},"summary":{"anyOf":[{"$ref":"#/components/schemas/PacketSummary"},{"type":"null"}]},"triggered_by":{"type":"string","title":"Triggered By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Url"},"total_views":{"type":"integer","title":"Total Views","default":0},"first_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Viewed At"},"last_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Viewed At"},"link_revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Link Revoked At"},"visible_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Visible Sections"},"state_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"State Snapshot"}},"type":"object","required":["id","arc","packet_type","version_number","status","triggered_by","created_at","updated_at"],"title":"PacketDetailResponse"},"PacketListResponse":{"properties":{"packets":{"items":{"$ref":"#/components/schemas/PacketStatusResponse"},"type":"array","title":"Packets"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["packets","total"],"title":"PacketListResponse"},"PacketShareRequest":{"properties":{"visible_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Visible Sections"}},"type":"object","title":"PacketShareRequest"},"PacketStatus":{"type":"string","enum":["GENERATING","COMPLETED","FAILED"],"title":"PacketStatus"},"PacketStatusResponse":{"properties":{"id":{"type":"string","title":"Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"packet_type":{"$ref":"#/components/schemas/PacketType"},"version_number":{"type":"integer","title":"Version Number"},"status":{"$ref":"#/components/schemas/PacketStatus"},"badge":{"anyOf":[{"$ref":"#/components/schemas/PacketBadge"},{"type":"null"}]},"badge_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Badge Score"},"summary":{"anyOf":[{"$ref":"#/components/schemas/PacketSummary"},{"type":"null"}]},"triggered_by":{"type":"string","title":"Triggered By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Url"},"total_views":{"type":"integer","title":"Total Views","default":0},"first_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Viewed At"},"last_viewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Viewed At"},"link_revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Link Revoked At"},"visible_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Visible Sections"}},"type":"object","required":["id","arc","packet_type","version_number","status","triggered_by","created_at","updated_at"],"title":"PacketStatusResponse"},"PacketSummary":{"properties":{"stages_completed":{"type":"integer","title":"Stages Completed"},"avg_score":{"type":"number","title":"Avg Score"},"corrections_resolved":{"type":"integer","title":"Corrections Resolved"},"advisory_flags":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Advisory Flags","default":[]}},"type":"object","required":["stages_completed","avg_score","corrections_resolved"],"title":"PacketSummary"},"PacketType":{"type":"string","enum":["INVESTOR"],"title":"PacketType"},"PageInfo":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"}},"type":"object","required":["id","title"],"title":"PageInfo","description":"Individual page information"},"PageLeadSource":{"type":"string","enum":["waitlist","call_click"],"title":"PageLeadSource","description":"Which ask produced a page lead: joined the waitlist, or clicked out to book a call. The\nverdict needs the two conversion rates apart."},"PaidAdsStatusView":{"properties":{"stage":{"$ref":"#/components/schemas/AdsStage"},"review_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Plan Id"}},"type":"object","required":["stage"],"title":"PaidAdsStatusView"},"PaidCalendarView":{"properties":{"campaigns":{"items":{"$ref":"#/components/schemas/CalendarCampaignView"},"type":"array","title":"Campaigns"},"has_sent":{"type":"boolean","title":"Has Sent"},"synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Synced At"}},"type":"object","required":["campaigns","has_sent"],"title":"PaidCalendarView"},"PausedBy":{"type":"string","enum":["founder","guard","disconnect"],"title":"PausedBy"},"PaymentMethodResponse":{"properties":{"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last4"},"exp_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Month"},"exp_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Year"}},"type":"object","title":"PaymentMethodResponse"},"PhaseAccess":{"type":"string","enum":["edit","view","none"],"title":"PhaseAccess","description":"What a caller may do with one phase, as the access table reports it."},"PhasePermissionInput":{"properties":{"phase_type":{"$ref":"#/components/schemas/PhaseType","description":"Phase type"},"permission_level":{"$ref":"#/components/schemas/PhasePermissionLevel","description":"Permission level (view or edit)"}},"type":"object","required":["phase_type","permission_level"],"title":"PhasePermissionInput","description":"Input model for phase permission"},"PhasePermissionLevel":{"type":"string","enum":["view","edit"],"title":"PhasePermissionLevel","description":"Phase-level permission levels"},"PhaseRatingInfo":{"properties":{"phase_type":{"$ref":"#/components/schemas/PhaseType"},"document_type":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}]},"rating":{"type":"boolean","title":"Rating"},"rated_at":{"type":"string","format":"date-time","title":"Rated At"}},"type":"object","required":["phase_type","rating","rated_at"],"title":"PhaseRatingInfo","description":"Simplified rating info for batched response"},"PhaseRatingRequest":{"properties":{"rating":{"type":"boolean","title":"Rating"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"}},"type":"object","required":["rating"],"title":"PhaseRatingRequest"},"PhaseScore":{"properties":{"phase":{"$ref":"#/components/schemas/PhaseType"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"trend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trend"},"status":{"$ref":"#/components/schemas/PhaseScoreStatus"}},"type":"object","required":["phase","status"],"title":"PhaseScore"},"PhaseScoreStatus":{"type":"string","enum":["scored","complete","in_progress","not_started"],"title":"PhaseScoreStatus"},"PhaseStatus":{"properties":{"business_plan":{"type":"boolean","title":"Business Plan","default":false},"mvp_plan":{"type":"boolean","title":"Mvp Plan","default":false},"poc_plan":{"type":"boolean","title":"Poc Plan","default":false},"product_requirements":{"type":"boolean","title":"Product Requirements","default":false},"technical_architecture":{"type":"boolean","title":"Technical Architecture","default":false},"project_management":{"type":"boolean","title":"Project Management","default":false},"sales_pitch":{"type":"boolean","title":"Sales Pitch","default":false}},"type":"object","title":"PhaseStatus","description":"Status of a workspace phase"},"PhaseType":{"type":"string","enum":["BUSINESS_PLAN","PRODUCT_REQUIREMENTS","TECHNICAL_ARCHITECTURE","PROJECT_MANAGEMENT","GO_TO_MARKET","MOCKUP","STRATEGY_ADVISOR","SALES_PITCH","VALIDATION","LANDING_PAGE","PROTOTYPE","PLAYBOOK","DELIVERY"],"title":"PhaseType","description":"Enum for workspace phase types"},"PhaseVersionDetail":{"properties":{"id":{"type":"string","title":"Id"},"version_number":{"type":"integer","title":"Version Number"},"version_source":{"type":"string","title":"Version Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"is_current":{"type":"boolean","title":"Is Current"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content"},"evaluation_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Evaluation Score"},"evaluation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluation Id"}},"type":"object","required":["id","version_number","version_source","created_at","is_current","content"],"title":"PhaseVersionDetail","description":"Full content of a specific phase version"},"PhaseVersionSummary":{"properties":{"id":{"type":"string","title":"Id"},"version_number":{"type":"integer","title":"Version Number"},"version_source":{"type":"string","title":"Version Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"is_current":{"type":"boolean","title":"Is Current"},"evaluation_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Evaluation Score"},"evaluation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluation Id"}},"type":"object","required":["id","version_number","version_source","created_at","is_current"],"title":"PhaseVersionSummary","description":"Summary of a single phase version for version history display"},"PickState":{"type":"string","enum":["picked","not_picked"],"title":"PickState"},"PlaceKind":{"type":"string","enum":["space","platform"],"title":"PlaceKind"},"PlaceSource":{"type":"string","enum":["claura","founder"],"title":"PlaceSource","description":"Who put a place on the list: Claura's research (the CMO or an engineer), or the founder."},"PlaceView":{"properties":{"source":{"$ref":"#/components/schemas/PlaceSource","default":"claura"},"kind":{"$ref":"#/components/schemas/PlaceKind","default":"space"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"why":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why"},"rules":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rules"},"posting_rule":{"anyOf":[{"$ref":"#/components/schemas/RoomPostingRule"},{"type":"null"}]},"evidence_tier":{"anyOf":[{"$ref":"#/components/schemas/RoomEvidenceTier"},{"type":"null"}]},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"source_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Date"},"activity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"posting":{"type":"string","enum":["claura_posts","you_post"],"title":"Posting"}},"type":"object","required":["posting"],"title":"PlaceView","description":"An approved place, with who posts there: Claura, on an account of the founder's it posts to, or the\nfounder themselves."},"PlacesAskContext":{"properties":{"who":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Who"},"problem":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem"},"promise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promise"},"ask":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ask"},"picks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Picks","default":[]},"places_approved":{"type":"boolean","title":"Places Approved","default":false},"check_rooms":{"items":{"type":"string"},"type":"array","title":"Check Rooms","default":[]}},"type":"object","title":"PlacesAskContext","description":"What the engineer works from on a places ask, frozen when the founder asked."},"PlacesRequest":{"properties":{"places":{"items":{"oneOf":[{"$ref":"#/components/schemas/ClauraPlace"},{"$ref":"#/components/schemas/FounderPlace"},{"$ref":"#/components/schemas/PlatformPlace"}]},"type":"array","title":"Places"}},"type":"object","required":["places"],"title":"PlacesRequest","description":"``PUT /launch/places``: the whole list the founder keeps, first approval or any edit after."},"PlacesView":{"properties":{"places":{"items":{"$ref":"#/components/schemas/PlaceView"},"type":"array","title":"Places"}},"type":"object","required":["places"],"title":"PlacesView"},"PlanCurrencyRequest":{"properties":{"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency"}},"type":"object","required":["currency"],"title":"PlanCurrencyRequest"},"PlanDeliverable":{"properties":{"title":{"type":"string","title":"Title"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["title"],"title":"PlanDeliverable","description":"One \"what you'll have\" outcome: a bold lead + an optional muted\nqualifier (\"A live website\" — \"on your domain, or ours until you have\none\")."},"PlanView":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"state":{"$ref":"#/components/schemas/app__constants__ads__PlanState"},"goal":{"$ref":"#/components/schemas/AdGoal"},"goal_label":{"type":"string","title":"Goal Label"},"goal_unit":{"type":"string","title":"Goal Unit"},"target_value":{"type":"integer","title":"Target Value"},"target_window_days":{"type":"integer","title":"Target Window Days"},"monthly_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Budget"},"currency":{"type":"string","title":"Currency"},"platforms_considered":{"type":"integer","title":"Platforms Considered"},"picked":{"items":{"$ref":"#/components/schemas/PlatformView"},"type":"array","title":"Picked"},"not_picked":{"items":{"$ref":"#/components/schemas/PlatformView"},"type":"array","title":"Not Picked"},"estimate":{"$ref":"#/components/schemas/EstimateView"},"locked":{"type":"boolean","title":"Locked"},"max_platforms":{"type":"integer","title":"Max Platforms"}},"type":"object","required":["plan_id","state","goal","goal_label","goal_unit","target_value","target_window_days","monthly_budget","currency","platforms_considered","picked","not_picked","estimate","locked","max_platforms"],"title":"PlanView"},"PlannedAdView":{"properties":{"position":{"type":"integer","title":"Position"},"format":{"$ref":"#/components/schemas/AdFormat"},"label":{"type":"string","title":"Label"}},"type":"object","required":["position","format","label"],"title":"PlannedAdView"},"PlatformCardView":{"properties":{"platform":{"$ref":"#/components/schemas/AdPlatform"},"label":{"type":"string","title":"Label"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"running_ads":{"type":"integer","title":"Running Ads"},"other_ads":{"type":"integer","title":"Other Ads"},"figures":{"$ref":"#/components/schemas/FiguresView"},"sync_error":{"anyOf":[{"$ref":"#/components/schemas/SendErrorView"},{"type":"null"}]},"ads_manager_url":{"type":"string","title":"Ads Manager Url"}},"type":"object","required":["platform","label","running_ads","other_ads","figures","ads_manager_url"],"title":"PlatformCardView"},"PlatformPlace":{"properties":{"kind":{"type":"string","const":"platform","title":"Kind"},"platform":{"$ref":"#/components/schemas/SocialPlatform"},"room":{"type":"null","title":"Room"}},"type":"object","required":["kind","platform"],"title":"PlatformPlace"},"PlatformRole":{"type":"string","enum":["user","super_admin","engineer"],"title":"PlatformRole","description":"Cross-organization platform roles owned by Claura."},"PlatformRunRequest":{"properties":{"platform":{"$ref":"#/components/schemas/AdPlatform"},"running":{"type":"boolean","title":"Running","default":false}},"type":"object","required":["platform"],"title":"PlatformRunRequest"},"PlatformSwapRequest":{"properties":{"swap_out":{"$ref":"#/components/schemas/AdPlatform"},"swap_in":{"$ref":"#/components/schemas/AdPlatform"}},"type":"object","required":["swap_out","swap_in"],"title":"PlatformSwapRequest"},"PlatformView":{"properties":{"platform":{"$ref":"#/components/schemas/AdPlatform"},"label":{"type":"string","title":"Label"},"pick_state":{"$ref":"#/components/schemas/PickState"},"kept":{"type":"boolean","title":"Kept"},"reason":{"type":"string","title":"Reason"},"position":{"type":"integer","title":"Position"},"budget_share_pct":{"type":"integer","title":"Budget Share Pct"},"budget_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Budget Amount"},"campaign_count":{"type":"integer","title":"Campaign Count"},"ad_count":{"type":"integer","title":"Ad Count"},"format_mix":{"additionalProperties":{"type":"integer"},"type":"object","title":"Format Mix"},"estimate":{"anyOf":[{"$ref":"#/components/schemas/EstimateView"},{"type":"null"}]},"reports_goal":{"type":"boolean","title":"Reports Goal"},"can_swap_in":{"type":"boolean","title":"Can Swap In"}},"type":"object","required":["platform","label","pick_state","kept","reason","position","budget_share_pct","budget_amount","campaign_count","ad_count","format_mix","reports_goal","can_swap_in"],"title":"PlatformView"},"PlaybookMode":{"type":"string","enum":["regenerate","edit"],"title":"PlaybookMode","description":"How a playbook (re)generation reconciles with the existing plan.\n\nREGENERATE (Restart): discard the current playbook-sourced tasks/milestones\nand rebuild from upstream docs — progress resets, manual rows are kept.\nEDIT: cumulatively merge the regenerated plan into the existing one,\npreserving ids + completion status on matched rows."},"PortalSessionResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"PortalSessionResponse"},"PostFormat":{"type":"string","enum":["text_only","image","video"],"title":"PostFormat"},"PostMediaCredits":{"properties":{"new":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"New"},"edit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Edit"}},"type":"object","required":["new","edit"],"title":"PostMediaCredits"},"PostMediaView":{"properties":{"position":{"type":"integer","title":"Position"},"state":{"$ref":"#/components/schemas/MediaSlotState"},"processing_kind":{"anyOf":[{"$ref":"#/components/schemas/MediaKind"},{"type":"null"}]},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"retryable":{"type":"boolean","title":"Retryable"},"current":{"anyOf":[{"$ref":"#/components/schemas/MediaCurrentView"},{"type":"null"}]},"versions":{"items":{"$ref":"#/components/schemas/MediaVersionView"},"type":"array","title":"Versions"}},"type":"object","required":["position","state","processing_kind","failure_reason","retryable","current","versions"],"title":"PostMediaView","description":"One slot: its state, the version the post shows now, and every version made into it, oldest first.\n``current`` is null on a text-only post. ``processing_kind`` (image or video) is the kind of the\nattempt in flight or of the attempt that failed, and null on a ready slot; ``failure_reason`` (a short\ncode) is set only on a failed slot, and ``retryable`` says whether a retry is offered for it."},"PostingUpdate":{"properties":{"posting_enabled":{"type":"boolean","title":"Posting Enabled"}},"type":"object","required":["posting_enabled"],"title":"PostingUpdate"},"PromoteEngineerRequest":{"properties":{"github_username":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Github Username","description":"The engineer's work GitHub account — what repository access is granted to."}},"type":"object","title":"PromoteEngineerRequest"},"ProposalKind":{"type":"string","enum":["add_budget","pause_ad","move_budget"],"title":"ProposalKind"},"ProposalView":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"$ref":"#/components/schemas/ProposalKind"},"title":{"type":"string","title":"Title"},"reason":{"type":"string","title":"Reason"},"action":{"type":"string","title":"Action"}},"type":"object","required":["id","kind","title","reason","action"],"title":"ProposalView"},"PrototypeAnalyticsResponse":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/PrototypeAnalyticsStepView"},"type":"array","title":"Steps"}},"type":"object","required":["steps"],"title":"PrototypeAnalyticsResponse"},"PrototypeAnalyticsStepView":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"week":{"type":"integer","title":"Week"},"all_time":{"type":"integer","title":"All Time"}},"type":"object","required":["key","label","week","all_time"],"title":"PrototypeAnalyticsStepView","description":"One step of the app's usage read, in the founder's own words (the label comes from\ntheir approved activation funnel). Two rolling cuts, no window: an app is not an experiment."},"PrototypeFunnelRequest":{"properties":{"key_action":{"type":"string","maxLength":80,"minLength":1,"title":"Key Action"},"signup":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Signup"}},"type":"object","required":["key_action"],"title":"PrototypeFunnelRequest","description":"The founder's own words for the steps the app counts."},"PublicConfigResponse":{"properties":{"signup_enabled":{"type":"boolean","title":"Signup Enabled","description":"Whether the signup form and Google sign-in are offered"},"trial_window_days":{"type":"integer","title":"Trial Window Days","description":"Days a trial lasts once a plan is chosen"},"paid_ads_enabled":{"type":"boolean","title":"Paid Ads Enabled","description":"Whether Paid Ads is switched on in this environment"}},"type":"object","required":["signup_enabled","trial_window_days","paid_ads_enabled"],"title":"PublicConfigResponse"},"PublicPacketResponse":{"properties":{"badge":{"anyOf":[{"$ref":"#/components/schemas/PacketBadge"},{"type":"null"}]},"badge_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Badge Score"},"generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Generated At"},"state_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"State Snapshot"},"visible_sections":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Visible Sections"}},"type":"object","title":"PublicPacketResponse"},"PublicationFailure":{"type":"string","enum":["connection_lapsed","page_not_live","media_invalid","text_too_long","missed_slot","rejected","not_enough_credits"],"title":"PublicationFailure"},"PublicationStatus":{"type":"string","enum":["scheduled","submitted","posted","failed","cancelled"],"title":"PublicationStatus"},"PublicationView":{"properties":{"status":{"$ref":"#/components/schemas/PublicationStatus"},"vendor_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Status"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"failure_reason":{"anyOf":[{"$ref":"#/components/schemas/PublicationFailure"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["status"],"title":"PublicationView"},"ReadNextMoveView":{"properties":{"kind":{"$ref":"#/components/schemas/NextMove"},"points_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Points At"},"weak_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weak Step"},"posts_settled":{"type":"boolean","title":"Posts Settled","default":false}},"type":"object","required":["kind"],"title":"ReadNextMoveView","description":"Which way the read points; ``points_at`` and ``weak_step`` are null on the moves that name nothing."},"ReadState":{"type":"string","enum":["proposals","too_early","nothing"],"title":"ReadState"},"ReadStateGroup":{"type":"string","enum":["thin","one_way","contested","reset"],"title":"ReadStateGroup","description":"How a state's evidence leans, so the catalog can group its cards."},"ReadStateOutcomeResponse":{"properties":{"plan":{"$ref":"#/components/schemas/ReadStatePlanResponse"},"events_written":{"type":"integer","title":"Events Written"},"leads_captured":{"type":"integer","title":"Leads Captured"},"calls_logged":{"type":"integer","title":"Calls Logged"},"deleted":{"additionalProperties":{"type":"integer"},"type":"object","title":"Deleted"},"clears":{"additionalProperties":{"type":"integer"},"type":"object","title":"Clears"},"read_written":{"type":"boolean","title":"Read Written"},"why_no_read":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why No Read"},"next_steps":{"items":{"type":"string"},"type":"array","title":"Next Steps"}},"type":"object","required":["plan","events_written","leads_captured","calls_logged","deleted","clears","read_written","why_no_read","next_steps"],"title":"ReadStateOutcomeResponse"},"ReadStatePlanResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"live_at":{"type":"string","format":"date-time","title":"Live At"},"action":{"$ref":"#/components/schemas/SeedAction"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"channel":{"type":"string","title":"Channel"},"channel_is_launch_code":{"type":"boolean","title":"Channel Is Launch Code"},"traffic_age_hours":{"type":"integer","title":"Traffic Age Hours"},"traffic_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Traffic Since"},"visitors":{"type":"integer","title":"Visitors"},"leads":{"type":"integer","title":"Leads"},"call_clicks":{"type":"integer","title":"Call Clicks"},"calls":{"type":"integer","title":"Calls"},"own_visits":{"type":"integer","title":"Own Visits"},"visitors_scroll":{"type":"boolean","title":"Visitors Scroll"},"calls_would_pay":{"anyOf":[{"$ref":"#/components/schemas/WouldPay"},{"type":"null"}]},"events":{"type":"integer","title":"Events"},"read":{"type":"string","title":"Read"},"reads_remaining":{"type":"integer","title":"Reads Remaining"},"deletes":{"additionalProperties":{"type":"integer"},"type":"object","title":"Deletes"},"clears":{"additionalProperties":{"type":"integer"},"type":"object","title":"Clears"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["workspace_id","arc","live_at","action","state","channel","channel_is_launch_code","traffic_age_hours","traffic_since","visitors","leads","call_clicks","calls","own_visits","visitors_scroll","calls_would_pay","events","read","reads_remaining","deletes","clears","warnings"],"title":"ReadStatePlanResponse"},"ReadStateRequest":{"properties":{"workspace_id":{"type":"string","minLength":1,"title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"action":{"$ref":"#/components/schemas/SeedAction"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"drop_reads":{"type":"boolean","title":"Drop Reads","default":false}},"type":"object","required":["workspace_id","arc","action"],"title":"ReadStateRequest"},"ReadStateSpecResponse":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"group":{"$ref":"#/components/schemas/ReadStateGroup"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"visitors":{"type":"integer","title":"Visitors"},"leads":{"type":"integer","title":"Leads"},"call_clicks":{"type":"integer","title":"Call Clicks"},"calls":{"type":"integer","title":"Calls"},"own_visits":{"type":"integer","title":"Own Visits"},"visitors_scroll":{"type":"boolean","title":"Visitors Scroll"},"calls_would_pay":{"$ref":"#/components/schemas/WouldPay"},"traffic_age_hours":{"type":"integer","title":"Traffic Age Hours"},"read":{"type":"string","title":"Read"},"expected":{"anyOf":[{"$ref":"#/components/schemas/ExpectedReadResponse"},{"type":"null"}]}},"type":"object","required":["key","title","group","note","visitors","leads","call_clicks","calls","own_visits","visitors_scroll","calls_would_pay","traffic_age_hours","read","expected"],"title":"ReadStateSpecResponse","description":"One state in the catalog — what it seeds and the read it should then show."},"ReadStateWorkspaceResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"organization_id":{"type":"string","title":"Organization Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"live_at":{"type":"string","format":"date-time","title":"Live At"},"has_read":{"type":"boolean","title":"Has Read"}},"type":"object","required":["workspace_id","name","organization_id","arc","live_at","has_read"],"title":"ReadStateWorkspaceResponse","description":"One live launch: a workspace and an arc whose landing page has been published."},"ReadView":{"properties":{"state":{"$ref":"#/components/schemas/ReadState"},"proposals":{"items":{"$ref":"#/components/schemas/ProposalView"},"type":"array","title":"Proposals"},"read_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Read On"}},"type":"object","required":["state","proposals"],"title":"ReadView"},"ReadinessItemView":{"properties":{"key":{"$ref":"#/components/schemas/AdsReadinessKey"},"passed":{"type":"boolean","title":"Passed"},"label":{"type":"string","title":"Label"},"detail":{"type":"string","title":"Detail"},"fix_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix Label"},"fix":{"anyOf":[{"$ref":"#/components/schemas/AdsReadinessFix"},{"type":"null"}]}},"type":"object","required":["key","passed","label","detail"],"title":"ReadinessItemView"},"ReadinessView":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ReadinessItemView"},"type":"array","title":"Items"},"ready":{"type":"boolean","title":"Ready"},"overridden":{"type":"boolean","title":"Overridden"}},"type":"object","required":["items","ready","overridden"],"title":"ReadinessView"},"RealismBand":{"type":"string","enum":["comfortable","realistic","stretch"],"title":"RealismBand"},"RedraftedView":{"properties":{"count":{"type":"integer","title":"Count"},"linked":{"type":"integer","title":"Linked"}},"type":"object","required":["count","linked"],"title":"RedraftedView","description":"The approved posts the publish sent back to draft, and how many of them keep a tracked link."},"RefundRequest":{"properties":{"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount","description":"Credits to refund (positive)"},"reason":{"type":"string","minLength":1,"title":"Reason"},"operation_id":{"type":"string","maxLength":64,"minLength":1,"title":"Operation Id","description":"Client-minted id for this one operation — a retry with the same id replays instead of applying the change twice"}},"type":"object","required":["amount","reason","operation_id"],"title":"RefundRequest"},"RegenerateAdRequest":{"properties":{"instruction":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Instruction"}},"type":"object","title":"RegenerateAdRequest"},"RegisterPushSubscriptionRequest":{"properties":{"fcm_token":{"type":"string","title":"Fcm Token"},"browser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Browser"}},"type":"object","required":["fcm_token"],"title":"RegisterPushSubscriptionRequest"},"RenameCampaignRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"RenameCampaignRequest"},"RepoCard":{"properties":{"repo_name":{"type":"string","title":"Repo Name"},"default_branch":{"type":"string","title":"Default Branch"},"full_name":{"type":"string","title":"Full Name"},"clone_url_ssh":{"type":"string","title":"Clone Url Ssh"},"clone_url_https":{"type":"string","title":"Clone Url Https"},"work_dirs":{"additionalProperties":{"type":"string"},"type":"object","title":"Work Dirs"}},"type":"object","required":["repo_name","default_branch","full_name","clone_url_ssh","clone_url_https","work_dirs"],"title":"RepoCard","description":"Where the work happens. Absent until the workspace has a repository."},"ReportOffer":{"properties":{"available":{"type":"boolean","title":"Available","default":true}},"type":"object","title":"ReportOffer","description":"Telling us something is wrong is not an ask, and is never gated.\n\nModelled as an object with one field rather than a bare bool so the day a\nreport acquires a rate-limit state or a cooldown, this grows a field instead\nof the payload growing a shape."},"RequestCloseReason":{"type":"string","enum":["access_revoked","cannot_take_on","account_departed"],"title":"RequestCloseReason","description":"Why a request closed as CANCELLED. These are close reasons rather than\nstatuses because the founder-facing state is the same in all three cases —\nthe work stopped and was not delivered."},"RequestKind":{"type":"string","enum":["review","find_real_place","find_better_places","open_ended","conflict_resolution"],"title":"RequestKind","description":"What the founder asked an engineer for."},"RequestQuestion":{"properties":{"question":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question"},"asked_at":{"type":"string","format":"date-time","title":"Asked At"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer"},"answered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Answered At"},"ended_in":{"anyOf":[{"$ref":"#/components/schemas/EngineerRequestStatus"},{"type":"null"}]}},"type":"object","required":["asked_at"],"title":"RequestQuestion"},"ResolveRiskRequest":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"ResolveRiskRequest"},"RestoreRequest":{"properties":{"reason":{"type":"string","minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"RestoreRequest"},"Retarget":{"type":"string","enum":["goal","budget"],"title":"Retarget","description":"Why a target is being re-suggested, which decides where the number comes from: GOAL is a\ngoal being chosen or Claura's own target asked for again, BUDGET is the slider moving."},"ReviewAdView":{"properties":{"id":{"type":"string","title":"Id"},"position":{"type":"integer","title":"Position"},"format":{"$ref":"#/components/schemas/AdFormat"},"label":{"type":"string","title":"Label"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"creative":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Creative"},"image_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Line"},"state":{"$ref":"#/components/schemas/AdState"},"problem":{"anyOf":[{"$ref":"#/components/schemas/AdProblem"},{"type":"null"}]},"rewriting":{"type":"boolean","title":"Rewriting","default":false},"regenerate_credits":{"anyOf":[{"$ref":"#/components/schemas/CreditRangeView"},{"type":"null"}]},"rejected":{"type":"boolean","title":"Rejected","default":false},"rejection_reasons":{"items":{"type":"string"},"type":"array","title":"Rejection Reasons","default":[]},"media":{"items":{"$ref":"#/components/schemas/PostMediaView"},"type":"array","title":"Media"}},"type":"object","required":["id","position","format","label","state","media"],"title":"ReviewAdView"},"ReviewCampaignView":{"properties":{"id":{"type":"string","title":"Id"},"platform":{"$ref":"#/components/schemas/AdPlatform"},"label":{"type":"string","title":"Label"},"name":{"type":"string","title":"Name"},"audience":{"type":"string","title":"Audience"},"goal":{"$ref":"#/components/schemas/AdGoal"},"goal_label":{"type":"string","title":"Goal Label"},"monthly_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Budget"},"daily_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Daily Budget"},"suggested_monthly_budget":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Suggested Monthly Budget"},"currency":{"type":"string","title":"Currency"},"state":{"$ref":"#/components/schemas/CampaignState"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"send_error":{"anyOf":[{"$ref":"#/components/schemas/SendErrorView"},{"type":"null"}]},"button_options":{"items":{"type":"string"},"type":"array","title":"Button Options"},"dropped_format":{"anyOf":[{"$ref":"#/components/schemas/AdFormat"},{"type":"null"}]},"targeting":{"anyOf":[{"$ref":"#/components/schemas/TargetingView"},{"type":"null"}]},"ads":{"items":{"$ref":"#/components/schemas/ReviewAdView"},"type":"array","title":"Ads"}},"type":"object","required":["id","platform","label","name","audience","goal","goal_label","monthly_budget","daily_budget","currency","state","button_options","ads"],"title":"ReviewCampaignView"},"ReviewView":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"monthly_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Budget"},"currency":{"type":"string","title":"Currency"},"platform_min_budget":{"type":"integer","title":"Platform Min Budget"},"run_live":{"type":"boolean","title":"Run Live"},"launch":{"$ref":"#/components/schemas/app__schemas__ads__LaunchView"},"campaigns":{"items":{"$ref":"#/components/schemas/ReviewCampaignView"},"type":"array","title":"Campaigns"}},"type":"object","required":["plan_id","monthly_budget","currency","platform_min_budget","run_live","launch","campaigns"],"title":"ReviewView"},"ReviewableDocument":{"properties":{"document_id":{"type":"string","title":"Document Id"},"phase_type":{"$ref":"#/components/schemas/PhaseType"},"document_type":{"$ref":"#/components/schemas/DocumentType"},"label":{"type":"string","title":"Label"},"version_number":{"type":"integer","title":"Version Number"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"first_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Line"}},"type":"object","required":["document_id","phase_type","document_type","label","version_number","updated_at"],"title":"ReviewableDocument","description":"One deliverable the founder can point a review at (the ask sheet).\n\nShaped for RECOGNITION rather than recall, which is what the picker is for:\nthe founder is choosing among things they wrote, so the name, where it sits\nin the journey, how recent it is and how it scored are what identify it —\nnot an id they have never seen."},"ReviewableDocuments":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/ReviewableDocument"},"type":"array","title":"Documents"}},"type":"object","required":["documents"],"title":"ReviewableDocuments","description":"Ordered by the workflow's own phase order, so the picker reads as the\nfounder's journey rather than as whatever the database returned."},"RewritePostsRequest":{"properties":{"post_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Post Ids"},"instruction":{"type":"string","title":"Instruction"}},"type":"object","required":["post_ids","instruction"],"title":"RewritePostsRequest"},"RiskCreateRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"title":{"type":"string","maxLength":512,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"severity":{"$ref":"#/components/schemas/RiskSeverity","default":"medium"}},"type":"object","required":["arc","title"],"title":"RiskCreateRequest"},"RiskResolutionState":{"type":"string","enum":["open","resolved"],"title":"RiskResolutionState"},"RiskResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"$ref":"#/components/schemas/RiskSource"},"detector_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detector Key"},"signal_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signal Ref"},"system_severity":{"anyOf":[{"$ref":"#/components/schemas/RiskSeverity"},{"type":"null"}]},"founder_severity":{"anyOf":[{"$ref":"#/components/schemas/RiskSeverity"},{"type":"null"}]},"effective_severity":{"anyOf":[{"$ref":"#/components/schemas/RiskSeverity"},{"type":"null"}]},"resolution_state":{"$ref":"#/components/schemas/RiskResolutionState"},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"},"last_signal_present_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Signal Present At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","arc","title","source","resolution_state","created_at","updated_at"],"title":"RiskResponse"},"RiskSeverity":{"type":"string","enum":["high","medium","low"],"title":"RiskSeverity"},"RiskSource":{"type":"string","enum":["auto","manual"],"title":"RiskSource"},"RiskUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"founder_severity":{"anyOf":[{"$ref":"#/components/schemas/RiskSeverity"},{"type":"null"}]}},"type":"object","title":"RiskUpdateRequest"},"RollbackRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"surface":{"$ref":"#/components/schemas/BuildSurface"}},"additionalProperties":false,"type":"object","required":["arc","surface"],"title":"RollbackRequest","description":"Which build to put back. Explicit because one commit on main can carry both surfaces."},"RoomEvidenceTier":{"type":"string","enum":["verified","reported","founder_named"],"title":"RoomEvidenceTier","description":"How well a proposed community was actually checked.\n\nNever earned by an HTTP 200: fetching ``linkedin.com/groups/12345/`` succeeds\nand returns 34 characters of login wall. VERIFIED requires that the content\nidentified the community AND stated its rules — a judgment the tool cannot\nobserve, so the prompt carries it.\n\nReddit can only ever be REPORTED: search finds subreddits, but nothing can\nread one (Exa 403s, a raw fetch is blocked), so a real subreddit and a fake\none are indistinguishable by retrieval."},"RoomInput":{"properties":{"kind":{"type":"string","const":"space","title":"Kind","default":"space"},"platform":{"type":"string","title":"Platform","description":"The platform, e.g. \"reddit\", \"slack\", \"discord\", \"email\"."},"room":{"type":"string","title":"Room","description":"The specific place, verbatim — e.g. \"r/smallbusiness\" or \"Indie Hackers #launch\"."},"why":{"type":"string","title":"Why","description":"One line on why the people there are the people in the message."},"evidence_tier":{"$ref":"#/components/schemas/RoomEvidenceTier","description":"How well you checked THIS place. 'verified' only if you opened the community's own page and read its rules there — a login wall or a page that does not name the community is NOT verification. 'reported' if you could not open it but read a third-party source that names it and describes its rules. 'founder_named' if the founder named it and you checked nothing."},"rules":{"type":"string","title":"Rules","description":"The promotion rules, in plain words — whether posting is allowed, and any thread, day, karma or approval requirement. Never guess this; it comes from what you read."},"posting_rule":{"$ref":"#/components/schemas/RoomPostingRule","description":"The friction, classified: 'open', 'thread_only' (promo confined to a thread or day), 'approval_required' (mods gate it, or a karma/age minimum), 'banned'. Never propose a place whose rule is 'banned' — the post is removed within the hour and the run is wasted."},"source_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Source Url","description":"The page you actually read. Required for 'verified' (and it must be on the community's own platform) and for 'reported'. Never set it for 'founder_named' — do not attach a source you did not read."},"source_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Date","description":"When the third-party source was written or last updated. Required for 'reported', so the founder can judge how stale a second-hand claim is."},"activity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity","description":"The liveness fact, if you have one — \"240 comments last week\", \"1.9M members\". Leave empty when the platform gave you no number; never invent one."}},"type":"object","required":["platform","room","why","evidence_tier","rules","posting_rule"],"title":"RoomInput","description":"One place to post, and how well we actually checked it. The confirm path validates the same\nshape, which is why it lives with the schemas rather than the tool."},"RoomPostingRule":{"type":"string","enum":["open","thread_only","approval_required","banned"],"title":"RoomPostingRule","description":"Posting friction, as a field rather than prose.\n\nBANNED is a hard gate, not a low score: post somewhere that forbids promotion\nand the run reads \"nobody arrived\", blaming the channel when we were never\nseen at all."},"SaveChatHistoryResponse":{"properties":{"message":{"type":"string","title":"Message","description":"Success message"},"chat_history_id":{"type":"string","title":"Chat History Id","description":"ID of the saved chat history"}},"type":"object","required":["message","chat_history_id"],"title":"SaveChatHistoryResponse","description":"Response from saving chat history."},"SaveToGoogleDocsRequest":{"properties":{"filename":{"type":"string","title":"Filename"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"document_type":{"$ref":"#/components/schemas/DocumentType"},"arc":{"$ref":"#/components/schemas/ArcType"},"workspace_id":{"type":"string","title":"Workspace Id"},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"}},"type":"object","required":["filename","title","content","document_type","arc","workspace_id"],"title":"SaveToGoogleDocsRequest"},"SaveToGoogleDocsResponse":{"additionalProperties":true,"type":"object"},"ScenarioBudgetResponse":{"properties":{"total_budget":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Budget"},"current_spend":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Current Spend"},"weekly_burn":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Weekly Burn"},"runway_weeks_override":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Runway Weeks Override"}},"type":"object","required":["total_budget","current_spend","weekly_burn","runway_weeks_override"],"title":"ScenarioBudgetResponse"},"ScenarioLeverResponse":{"properties":{"id":{"type":"string","title":"Id"},"archetype_key":{"type":"string","title":"Archetype Key"},"impact_type":{"$ref":"#/components/schemas/LeverImpactType"},"metric":{"$ref":"#/components/schemas/LeverMetric"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"description":{"type":"string","title":"Description"},"is_reversible":{"type":"boolean","title":"Is Reversible"},"is_enabled":{"type":"boolean","title":"Is Enabled"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","archetype_key","impact_type","metric","amount","description","is_reversible","is_enabled","created_at"],"title":"ScenarioLeverResponse"},"ScenarioPlanBundleResponse":{"properties":{"catalog":{"items":{"$ref":"#/components/schemas/LeverArchetypeResponse"},"type":"array","title":"Catalog"},"plan":{"anyOf":[{"$ref":"#/components/schemas/ScenarioPlanResponse"},{"type":"null"}]},"budget":{"anyOf":[{"$ref":"#/components/schemas/ScenarioBudgetResponse"},{"type":"null"}]},"thresholds":{"$ref":"#/components/schemas/ScenarioThresholdsResponse"}},"type":"object","required":["catalog","plan","budget","thresholds"],"title":"ScenarioPlanBundleResponse"},"ScenarioPlanResponse":{"properties":{"id":{"type":"string","title":"Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"status":{"$ref":"#/components/schemas/ScenarioPlanStatus"},"baseline_runway_weeks":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Baseline Runway Weeks"},"projected_runway_weeks":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Projected Runway Weeks"},"applied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Applied At"},"levers":{"items":{"$ref":"#/components/schemas/ScenarioLeverResponse"},"type":"array","title":"Levers"}},"type":"object","required":["id","arc","status","baseline_runway_weeks","projected_runway_weeks","applied_at","levers"],"title":"ScenarioPlanResponse"},"ScenarioPlanStatus":{"type":"string","enum":["draft","applied"],"title":"ScenarioPlanStatus","description":"Lifecycle of a scenario plan: drafted in the modeler, applied to the budget."},"ScenarioThresholdsResponse":{"properties":{"runway_alert_weeks":{"type":"integer","title":"Runway Alert Weeks"},"runway_calm_weeks":{"type":"integer","title":"Runway Calm Weeks"}},"type":"object","required":["runway_alert_weeks","runway_calm_weeks"],"title":"ScenarioThresholdsResponse"},"ScoreHistoryResponse":{"properties":{"per_phase":{"additionalProperties":{"items":{"$ref":"#/components/schemas/ScorePoint"},"type":"array"},"type":"object","title":"Per Phase"},"aggregate":{"items":{"$ref":"#/components/schemas/AggregatePoint"},"type":"array","title":"Aggregate"},"trend":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trend"},"trend_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trend Window"},"baseline_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Baseline Score"},"current_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Score"}},"type":"object","required":["per_phase","aggregate"],"title":"ScoreHistoryResponse"},"ScorePoint":{"properties":{"score":{"type":"number","title":"Score"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["score","timestamp"],"title":"ScorePoint"},"SeedAction":{"type":"string","enum":["seed","clean"],"title":"SeedAction","description":"What a caller is asking for.\n\nTwo verbs, not one per state: `calm` removes evidence, so the service branches on the state."},"SendErrorView":{"properties":{"type":{"type":"string","title":"Type"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["type","detail"],"title":"SendErrorView"},"SignOffResponse":{"properties":{"criteria_committed":{"type":"integer","title":"Criteria Committed"},"kpis_locked":{"type":"integer","title":"Kpis Locked"},"signed_off_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Signed Off At"}},"type":"object","required":["criteria_committed","kpis_locked","signed_off_at"],"title":"SignOffResponse"},"SkipConfig":{"properties":{"description":{"type":"string","title":"Description"},"benefits":{"items":{"type":"string"},"type":"array","title":"Benefits"}},"type":"object","required":["description","benefits"],"title":"SkipConfig","description":"Configuration for skippable phases."},"SkippedDocument":{"properties":{"document_type":{"type":"string","title":"Document Type"},"display_name":{"type":"string","title":"Display Name"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["document_type","display_name","reason"],"title":"SkippedDocument","description":"A document that was skipped during resolution due to permissions."},"SlidesExportConfig":{"properties":{"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source_document_types":{"items":{"$ref":"#/components/schemas/DocumentType"},"type":"array","title":"Source Document Types"},"target_document_type":{"$ref":"#/components/schemas/DocumentType"}},"type":"object","required":["label","source_document_types","target_document_type"],"title":"SlidesExportConfig","description":"Configuration for Google Slides export from a phase.\n\nUnlike PDF/Docs exports, a slides export needs a document-type-specific template (per\norganization) and conversion prompt (``slide_converter.py``).\n\n``label`` and ``description`` are the export button's text and tooltip;\n``source_document_types`` are the phase's documents combined into the export; and\n``target_document_type`` chooses the slide template and conversion prompt."},"SocialAccountState":{"type":"string","enum":["not_connected","connected","needs_reconnect"],"title":"SocialAccountState"},"SocialAccountView":{"properties":{"platform":{"$ref":"#/components/schemas/SocialPlatform"},"state":{"$ref":"#/components/schemas/SocialAccountState"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"channel_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Name"},"posting_enabled":{"type":"boolean","title":"Posting Enabled","default":false}},"type":"object","required":["platform","state"],"title":"SocialAccountView"},"SocialAccountsView":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/SocialAccountView"},"type":"array","title":"Accounts"},"x_needs_paid_plan":{"type":"boolean","title":"X Needs Paid Plan"}},"type":"object","required":["accounts","x_needs_paid_plan"],"title":"SocialAccountsView"},"SocialCalendarView":{"properties":{"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"posts":{"items":{"$ref":"#/components/schemas/SocialPostView"},"type":"array","title":"Posts"}},"type":"object","required":["timezone","posts"],"title":"SocialCalendarView"},"SocialChannelView":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id"],"title":"SocialChannelView"},"SocialCreditRange":{"properties":{"low":{"type":"integer","title":"Low"},"high":{"type":"integer","title":"High"}},"type":"object","required":["low","high"],"title":"SocialCreditRange"},"SocialCreditRangesView":{"properties":{"weeks":{"items":{"$ref":"#/components/schemas/SocialWeekCreditRange"},"type":"array","title":"Weeks"},"fill":{"$ref":"#/components/schemas/SocialCreditRange"}},"type":"object","required":["weeks","fill"],"title":"SocialCreditRangesView"},"SocialDueView":{"properties":{"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"posts":{"items":{"$ref":"#/components/schemas/SocialPostView"},"type":"array","title":"Posts"}},"type":"object","required":["timezone","posts"],"title":"SocialDueView"},"SocialPlanCounts":{"properties":{"planned":{"type":"integer","title":"Planned","default":0},"draft":{"type":"integer","title":"Draft","default":0},"approved":{"type":"integer","title":"Approved","default":0},"posted":{"type":"integer","title":"Posted","default":0}},"type":"object","title":"SocialPlanCounts"},"SocialPlanDetailView":{"properties":{"plan":{"$ref":"#/components/schemas/SocialPlanView"},"posts":{"items":{"$ref":"#/components/schemas/SocialPostView"},"type":"array","title":"Posts"}},"type":"object","required":["plan","posts"],"title":"SocialPlanDetailView"},"SocialPlanView":{"properties":{"id":{"type":"string","title":"Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"post_count":{"type":"integer","title":"Post Count"},"state":{"$ref":"#/components/schemas/app__constants__social__PlanState"},"started":{"type":"boolean","title":"Started"},"ended":{"type":"boolean","title":"Ended"},"writing":{"type":"boolean","title":"Writing"},"counts":{"$ref":"#/components/schemas/SocialPlanCounts"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","starts_at","ends_at","post_count","state","started","ended","writing","counts","created_at"],"title":"SocialPlanView"},"SocialPlansView":{"properties":{"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"plans":{"items":{"$ref":"#/components/schemas/SocialPlanView"},"type":"array","title":"Plans"}},"type":"object","required":["timezone","plans"],"title":"SocialPlansView"},"SocialPlatform":{"type":"string","enum":["x","linkedin","facebook_page","facebook_group","instagram","reddit","tiktok","community"],"title":"SocialPlatform"},"SocialPostView":{"properties":{"id":{"type":"string","title":"Id"},"plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id"},"platform":{"anyOf":[{"$ref":"#/components/schemas/SocialPlatform"},{"type":"null"}]},"channel":{"type":"string","title":"Channel"},"room":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room"},"place":{"type":"string","title":"Place"},"format":{"$ref":"#/components/schemas/PostFormat"},"copy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Copy"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"hashtags":{"items":{"type":"string"},"type":"array","title":"Hashtags"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"suggested_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Suggested For"},"status":{"$ref":"#/components/schemas/LaunchPieceStatus"},"posted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Posted At"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"link_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Link Length"},"edited":{"type":"boolean","title":"Edited"},"locked":{"type":"boolean","title":"Locked"},"needs_reapproval":{"type":"boolean","title":"Needs Reapproval"},"written_before_message":{"type":"boolean","title":"Written Before Message"},"tip":{"anyOf":[{"$ref":"#/components/schemas/SocialTipView"},{"type":"null"}]},"media":{"items":{"$ref":"#/components/schemas/PostMediaView"},"type":"array","title":"Media"},"media_credits":{"$ref":"#/components/schemas/PostMediaCredits"},"calendar_kind":{"anyOf":[{"$ref":"#/components/schemas/CalendarKind"},{"type":"null"}]},"held_for_plan":{"type":"boolean","title":"Held For Plan"},"publication":{"anyOf":[{"$ref":"#/components/schemas/PublicationView"},{"type":"null"}]},"visitors":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Visitors"}},"type":"object","required":["id","plan_id","platform","channel","room","place","format","copy","title","hashtags","scheduled_for","suggested_for","status","posted_at","link","link_length","edited","locked","needs_reapproval","written_before_message","tip","media_credits","calendar_kind","held_for_plan","visitors"],"title":"SocialPostView"},"SocialRewriteView":{"properties":{"posts":{"items":{"$ref":"#/components/schemas/SocialPostView"},"type":"array","title":"Posts"}},"type":"object","required":["posts"],"title":"SocialRewriteView"},"SocialSyncView":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/SocialAccountView"},"type":"array","title":"Accounts"},"x_needs_paid_plan":{"type":"boolean","title":"X Needs Paid Plan"},"needs_channel":{"items":{"$ref":"#/components/schemas/SocialPlatform"},"type":"array","title":"Needs Channel"},"channel_choices":{"items":{"$ref":"#/components/schemas/ChannelChoiceView"},"type":"array","title":"Channel Choices"}},"type":"object","required":["accounts","x_needs_paid_plan"],"title":"SocialSyncView"},"SocialTipView":{"properties":{"kind":{"type":"string","title":"Kind"},"text":{"type":"string","title":"Text"},"suggested_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Suggested For"}},"type":"object","required":["kind","text"],"title":"SocialTipView"},"SocialWeekCreditRange":{"properties":{"low":{"type":"integer","title":"Low"},"high":{"type":"integer","title":"High"},"post_count":{"type":"integer","title":"Post Count"}},"type":"object","required":["low","high","post_count"],"title":"SocialWeekCreditRange"},"SplitRequest":{"properties":{"amounts":{"additionalProperties":{"anyOf":[{"type":"number","maximum":1000000000.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}]},"type":"object","title":"Amounts"}},"type":"object","required":["amounts"],"title":"SplitRequest"},"StageSignOffRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"phase_type":{"$ref":"#/components/schemas/PhaseType"}},"type":"object","required":["arc","phase_type"],"title":"StageSignOffRequest"},"StaleReason":{"type":"string","enum":["funnel","brand","promise"],"title":"StaleReason","description":"What changed since a build was made, that it does not reflect yet. A landing page is only\never behind on the brand and the promise."},"StalenessResponse":{"properties":{"reasons":{"items":{"$ref":"#/components/schemas/StaleReason"},"type":"array","title":"Reasons"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"}},"type":"object","title":"StalenessResponse","description":"What changed since a build was made: ``funnel``, ``brand``, ``promise`` for the prototype,\n``brand`` and ``promise`` for the landing page. ``direction`` is the founder's line that asks a build waiting on\nthem for it, sent through the builder's chat like any answer; None when nothing changed."},"StandalonePageConfig":{"properties":{"page_id":{"type":"string","title":"Page Id"},"title":{"type":"string","title":"Title"},"section_group":{"type":"string","title":"Section Group"},"enabled_after_phases":{"items":{"$ref":"#/components/schemas/PhaseType"},"type":"array","title":"Enabled After Phases"}},"type":"object","required":["page_id","title","section_group","enabled_after_phases"],"title":"StandalonePageConfig","description":"Configuration for a standalone page that is not a formal phase.\n\nStandalone pages appear in the sidebar under a section group but do not\nhave agents, chat, or document outputs. They unlock once all\n``enabled_after_phases`` have content."},"StartBuildRequest":{"properties":{"direction":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Direction"},"instrumentation_disclosure_ack":{"type":"boolean","title":"Instrumentation Disclosure Ack","default":false}},"additionalProperties":false,"type":"object","title":"StartBuildRequest"},"StartBuildResponse":{"properties":{"build":{"$ref":"#/components/schemas/BuildView"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["build","created"],"title":"StartBuildResponse","description":"``created`` is False when a repeat of the request returned the build already under way."},"StartChangeResponse":{"properties":{"step":{"$ref":"#/components/schemas/LaunchStep"},"page":{"$ref":"#/components/schemas/HubPage"}},"type":"object","required":["step","page"],"title":"StartChangeResponse","description":"The step a started change is made on, and its hub page, for the founder to watch it there."},"StartCreateRequest":{"properties":{"direction":{"anyOf":[{"$ref":"#/components/schemas/GraphicDirection"},{"type":"null"}]}},"type":"object","title":"StartCreateRequest"},"StartTrialPlanRequest":{"properties":{"tier":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionTier"},{"type":"null"}]}},"type":"object","title":"StartTrialPlanRequest"},"StatusLineMode":{"type":"string","enum":["calm","lead","cold_start"],"title":"StatusLineMode","description":"Which copy family the status line renders (mirrors the pool's `mode`)."},"StepOneView":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"goal":{"$ref":"#/components/schemas/AdGoal"},"goal_reason":{"type":"string","title":"Goal Reason"},"target_value":{"type":"integer","title":"Target Value"},"target_window_days":{"type":"integer","title":"Target Window Days"},"monthly_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Budget"},"currency":{"type":"string","title":"Currency"},"currencies":{"items":{"type":"string"},"type":"array","title":"Currencies"},"currency_fixed":{"type":"boolean","title":"Currency Fixed","default":false},"suggested_goal":{"$ref":"#/components/schemas/AdGoal"},"suggested_target":{"type":"integer","title":"Suggested Target"},"suggested_target_window_days":{"type":"integer","title":"Suggested Target Window Days"},"suggested_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Suggested Budget"},"suggestion_source":{"$ref":"#/components/schemas/SuggestionSource"},"estimate":{"$ref":"#/components/schemas/EstimateView"},"verdict":{"$ref":"#/components/schemas/app__schemas__ads__VerdictView"},"goals":{"items":{"$ref":"#/components/schemas/GoalOfferView"},"type":"array","title":"Goals"},"budget":{"$ref":"#/components/schemas/BudgetBoundsView"},"window_min_days":{"type":"integer","title":"Window Min Days"},"window_max_days":{"type":"integer","title":"Window Max Days"},"max_platforms":{"type":"integer","title":"Max Platforms"}},"type":"object","required":["plan_id","goal","goal_reason","target_value","target_window_days","monthly_budget","currency","currencies","suggested_goal","suggested_target","suggested_target_window_days","suggested_budget","suggestion_source","estimate","verdict","goals","budget","window_min_days","window_max_days","max_platforms"],"title":"StepOneView"},"StopTurnResponse":{"properties":{"status":{"type":"string","title":"Status","description":"The turn's status after the request"}},"type":"object","required":["status"],"title":"StopTurnResponse","description":"Stop is idempotent: a turn that already finished reports its real status rather\nthan pretending it was stopped."},"SubmitRatingResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the rating was submitted"},"message":{"type":"string","title":"Message","description":"Success message"},"rating":{"additionalProperties":true,"type":"object","title":"Rating","description":"The submitted rating data"}},"type":"object","required":["success","message","rating"],"title":"SubmitRatingResponse","description":"Response from submitting a rating."},"SubscriptionActionResponse":{"properties":{"status":{"type":"string","title":"Status"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"scheduled_tier":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionTier"},{"type":"null"}]}},"type":"object","required":["status","tier","cancel_at_period_end"],"title":"SubscriptionActionResponse"},"SubscriptionStatus":{"type":"string","enum":["pending_plan","trial_active","active","grace","view_only","revoked","deleted"],"title":"SubscriptionStatus"},"SubscriptionTier":{"type":"string","enum":["founder","founder_pro","fde_backed"],"title":"SubscriptionTier"},"SuccessResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"SuccessResponse","description":"Standard response for actions that don't return a resource."},"SuggestionSource":{"type":"string","enum":["model","fallback"],"title":"SuggestionSource"},"SyncHaltReason":{"type":"string","enum":["account_state","capability"],"title":"SyncHaltReason","description":"Why PM sync is stopped for an org, when it is.\n\nNames the two independent halts the sync choke point applies\n(``InboundSyncService.sync_for_connection``) so the read surfaces can say\nwhich one is in force instead of inferring it. Ordered the same way\n``EntitlementDenialReason`` is — the state gate is more fundamental than the\ncapability gate, so an org failing both reports ``ACCOUNT_STATE``.\n\nA halt is reversible and never touches the connection: restoring the account\n(or regaining the tier) resumes sync whole, with no reconnect."},"SyncNowResponse":{"properties":{"updated":{"type":"integer","title":"Updated","default":0},"unlinked":{"type":"integer","title":"Unlinked","default":0},"skipped":{"type":"boolean","title":"Skipped","default":false},"failed":{"type":"boolean","title":"Failed","default":false}},"type":"object","title":"SyncNowResponse","description":"Outcome of a founder-triggered 'Sync now' so the UI can give real feedback\ninstead of a blind success — count of changes, or that it failed/was a no-op."},"SynthesisFollowup":{"properties":{"prompt":{"type":"string","title":"Prompt"},"options":{"items":{"$ref":"#/components/schemas/FollowupOption"},"type":"array","title":"Options"},"suggested":{"type":"string","enum":["a","b","c"],"title":"Suggested"}},"type":"object","required":["prompt","options","suggested"],"title":"SynthesisFollowup"},"SystemSummaryResponse":{"properties":{"total_users":{"type":"integer","title":"Total Users"},"total_workspaces":{"type":"integer","title":"Total Workspaces"},"total_organizations":{"type":"integer","title":"Total Organizations"},"users":{"items":{"$ref":"#/components/schemas/UserSummary"},"type":"array","title":"Users"}},"type":"object","required":["total_users","total_workspaces","total_organizations","users"],"title":"SystemSummaryResponse","description":"Complete system summary response"},"TargetLineView":{"properties":{"goal":{"$ref":"#/components/schemas/AdGoal"},"unit":{"type":"string","title":"Unit"},"target":{"type":"integer","title":"Target"},"achieved":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Achieved"},"days_left":{"type":"integer","title":"Days Left"},"ended_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ended On"},"left_out":{"items":{"type":"string"},"type":"array","title":"Left Out","default":[]}},"type":"object","required":["goal","unit","target","days_left"],"title":"TargetLineView"},"TargetingView":{"properties":{"countries":{"items":{"type":"string"},"type":"array","title":"Countries"},"age_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Min"},"age_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Max"},"gender":{"$ref":"#/components/schemas/AudienceGender"},"interests":{"items":{"type":"string"},"type":"array","title":"Interests"}},"type":"object","required":["countries","gender","interests"],"title":"TargetingView"},"TaskCreateRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"title":{"type":"string","maxLength":512,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"workstream":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Workstream"},"effort_days":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Effort Days"},"priority":{"$ref":"#/components/schemas/TaskPriority","default":"medium"},"week":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Week"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"granularity":{"$ref":"#/components/schemas/TaskGranularity","default":"task"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"milestone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Milestone Id"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"tracked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tracked"}},"type":"object","required":["arc","title"],"title":"TaskCreateRequest"},"TaskGranularity":{"type":"string","enum":["task","epic"],"title":"TaskGranularity"},"TaskOwnerType":{"type":"string","enum":["founder","claura"],"title":"TaskOwnerType","description":"Who does the work: the founder, or Claura (a phase the platform runs).\n\nValues must stay equal to the diagnosis-plan owner strings persisted in\n``diagnosis_plans.content[\"task_specs\"][].owner`` — the backfill migration\nand the plan materialization both round-trip through them."},"TaskPriority":{"type":"string","enum":["critical","high","medium","low","lowest"],"title":"TaskPriority"},"TaskResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"granularity":{"$ref":"#/components/schemas/TaskGranularity"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"milestone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Milestone Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"workstream":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workstream"},"effort_days":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Effort Days"},"priority":{"$ref":"#/components/schemas/TaskPriority"},"week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Week"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"status":{"$ref":"#/components/schemas/TaskStatus"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"source":{"$ref":"#/components/schemas/TaskSource"},"owner_type":{"$ref":"#/components/schemas/TaskOwnerType","default":"founder"},"phase_type":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"workspace_phase_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Phase Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"external_provider":{"anyOf":[{"$ref":"#/components/schemas/PMToolProvider"},{"type":"null"}]},"link_state":{"anyOf":[{"$ref":"#/components/schemas/LinkState"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","arc","granularity","title","priority","status","source","created_at","updated_at"],"title":"TaskResponse"},"TaskSource":{"type":"string","enum":["playbook","manual","wbs","diagnosis_plan"],"title":"TaskSource"},"TaskStatus":{"type":"string","enum":["not_started","in_progress","completed","blocked","cancelled"],"title":"TaskStatus"},"TaskUpdateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"workstream":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Workstream"},"effort_days":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Effort Days"},"priority":{"anyOf":[{"$ref":"#/components/schemas/TaskPriority"},{"type":"null"}]},"week":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Week"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"status":{"anyOf":[{"$ref":"#/components/schemas/TaskStatus"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"milestone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Milestone Id"},"tracked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tracked"}},"type":"object","title":"TaskUpdateRequest"},"TemplateType":{"type":"string","enum":["GOOGLE_DOCS","GOOGLE_SLIDES","GOOGLE_SHEETS"],"title":"TemplateType","description":"Enum for template types"},"TierChangeRequest":{"properties":{"tier":{"$ref":"#/components/schemas/SubscriptionTier"}},"type":"object","required":["tier"],"title":"TierChangeRequest"},"TierInfo":{"properties":{"id":{"$ref":"#/components/schemas/SubscriptionTier"},"monthly_price_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Monthly Price Usd"},"monthly_allowance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Allowance"},"seats_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Seats Available"},"waitlist_joined":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Waitlist Joined"}},"type":"object","required":["id"],"title":"TierInfo"},"TiersResponse":{"properties":{"tiers":{"items":{"$ref":"#/components/schemas/TierInfo"},"type":"array","title":"Tiers"},"topup":{"$ref":"#/components/schemas/TopupInfo"},"trial_available":{"type":"boolean","title":"Trial Available"},"trial_window_days":{"type":"integer","title":"Trial Window Days"},"trial_grant_credits":{"type":"integer","title":"Trial Grant Credits"}},"type":"object","required":["tiers","topup","trial_available","trial_window_days","trial_grant_credits"],"title":"TiersResponse"},"TopupChargeRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"return_path":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Return Path"}},"type":"object","required":["request_id"],"title":"TopupChargeRequest"},"TopupChargeResponse":{"properties":{"status":{"$ref":"#/components/schemas/TopupChargeStatus"},"credits":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Credits"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["status"],"title":"TopupChargeResponse"},"TopupChargeStatus":{"type":"string","enum":["charged","checkout"],"title":"TopupChargeStatus"},"TopupCheckoutRequest":{"properties":{"return_path":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Return Path"}},"type":"object","title":"TopupCheckoutRequest"},"TopupInfo":{"properties":{"credits":{"type":"integer","title":"Credits"},"price_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Price Usd"},"shelf_life_months":{"type":"integer","title":"Shelf Life Months"}},"type":"object","required":["credits","price_usd","shelf_life_months"],"title":"TopupInfo"},"TopupReserveBucket":{"properties":{"credits":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Credits"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["credits","expires_at"],"title":"TopupReserveBucket"},"TractionSignalResponse":{"properties":{"id":{"type":"string","title":"Id"},"arc":{"$ref":"#/components/schemas/ArcType"},"signal_type":{"$ref":"#/components/schemas/TractionSignalType"},"description":{"type":"string","title":"Description"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"}},"type":"object","required":["id","arc","signal_type","description","occurred_at","created_at","created_by_user_id"],"title":"TractionSignalResponse"},"TractionSignalType":{"type":"string","enum":["conversation","signup","loi"],"title":"TractionSignalType","description":"Kind of founder-logged real-world traction (launch set)."},"TrialInfo":{"properties":{"tier":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionTier"},{"type":"null"}]},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"grant_credits":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Grant Credits"},"window_days":{"type":"integer","title":"Window Days"},"card_on_file":{"type":"boolean","title":"Card On File"}},"type":"object","required":["tier","ends_at","grant_credits","window_days","card_on_file"],"title":"TrialInfo"},"UndoEvidenceParams":{"properties":{"signal_id":{"type":"string","title":"Signal Id"}},"type":"object","required":["signal_id"],"title":"UndoEvidenceParams"},"UndoScenarioPlanParams":{"properties":{"expected_projected_runway":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Projected Runway"}},"type":"object","title":"UndoScenarioPlanParams"},"UnlaunchedPlanView":{"properties":{"id":{"type":"string","title":"Id"},"goal_label":{"type":"string","title":"Goal Label"},"monthly_budget":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Budget"},"currency":{"type":"string","title":"Currency"},"partly_sent":{"type":"boolean","title":"Partly Sent"},"left_at_goal":{"type":"boolean","title":"Left At Goal"}},"type":"object","required":["id","goal_label","monthly_budget","currency","partly_sent","left_at_goal"],"title":"UnlaunchedPlanView"},"UnregisterPushSubscriptionRequest":{"properties":{"fcm_token":{"type":"string","title":"Fcm Token"}},"type":"object","required":["fcm_token"],"title":"UnregisterPushSubscriptionRequest"},"UpdateBudgetParams":{"properties":{"total_budget":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Budget"},"current_spend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Spend"},"weekly_burn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weekly Burn"},"runway_weeks_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runway Weeks Override"}},"type":"object","title":"UpdateBudgetParams"},"UpdateKPIRequest":{"properties":{"current_value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Current Value"},"target_value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Target Value"},"target_min":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Target Min"},"target_max":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Target Max"},"target_comparison":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Comparison"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"UpdateKPIRequest"},"UpdateLeverRequest":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,12}|(?=[\\d.]{1,15}0*$)\\d{0,12}\\.\\d{0,2}0*$)"},{"type":"null"}],"title":"Amount"},"description":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Description"},"is_reversible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Reversible"},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled"}},"type":"object","required":["arc"],"title":"UpdateLeverRequest"},"UpdatePhaseContentRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content"},"document_type":{"anyOf":[{"$ref":"#/components/schemas/DocumentType"},{"type":"null"}]}},"type":"object","required":["content"],"title":"UpdatePhaseContentRequest"},"UpdatePhaseContentResponse":{"additionalProperties":true,"type":"object"},"UploadedDocumentResponse":{"properties":{"id":{"type":"string","title":"Id"},"filename":{"type":"string","title":"Filename"},"page_count":{"type":"integer","title":"Page Count"},"file_size_bytes":{"type":"integer","title":"File Size Bytes"},"agent_type":{"type":"string","title":"Agent Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","filename","page_count","file_size_bytes","agent_type","created_at"],"title":"UploadedDocumentResponse","description":"Response model for uploaded document (without content)."},"UsageDayAction":{"properties":{"date":{"type":"string","title":"Date"},"action_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Type"},"credits":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Credits"}},"type":"object","required":["date","credits"],"title":"UsageDayAction"},"UsageResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/UsageDayAction"},"type":"array","title":"Entries"}},"type":"object","title":"UsageResponse"},"UserCreate":{"properties":{"email":{"type":"string","title":"Email","description":"User email address"},"name":{"type":"string","title":"Name","description":"User display name"}},"type":"object","required":["email","name"],"title":"UserCreate","description":"Request for creating a Firebase-backed Claura account."},"UserOrganizationResponse":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"organization_id":{"type":"string","title":"Organization Id"},"role":{"$ref":"#/components/schemas/OrganizationRole"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"is_active":{"type":"boolean","title":"Is Active"},"organization":{"anyOf":[{"$ref":"#/components/schemas/OrganizationResponse"},{"type":"null"}]}},"type":"object","required":["id","user_id","organization_id","role","joined_at","is_active"],"title":"UserOrganizationResponse"},"UserResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Canonical Claura user ID"},"status":{"$ref":"#/components/schemas/UserStatus","description":"Canonical Claura account lifecycle status"},"platform_role":{"$ref":"#/components/schemas/PlatformRole","description":"Database-backed Claura platform role"},"email":{"type":"string","title":"Email","description":"User email address"},"name":{"type":"string","title":"Name","description":"User display name"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Account creation timestamp"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization ID"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"User role in organization"},"is_personal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Personal","description":"Whether current organization is a personal organization"},"analytics_mute_level":{"type":"string","enum":["full","replays-only","none"],"title":"Analytics Mute Level","description":"Effective analytics policy for this email","default":"full"}},"type":"object","required":["id","status","platform_role","email","name"],"title":"UserResponse","description":"Canonical Claura user response."},"UserStatus":{"type":"string","enum":["pending","active","suspended","deleting","deleted"],"title":"UserStatus","description":"Claura account lifecycle states."},"UserSummary":{"properties":{"user_id":{"type":"string","title":"User Id"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"type":"string","title":"Organization Name"},"workspace_count":{"type":"integer","title":"Workspace Count"},"workspaces":{"items":{"$ref":"#/components/schemas/WorkspaceSummary"},"type":"array","title":"Workspaces"}},"type":"object","required":["user_id","organization_id","organization_name","workspace_count","workspaces"],"title":"UserSummary","description":"Summary of a user with their workspaces"},"UserTrialStatusResponse":{"properties":{"is_trial":{"type":"boolean","title":"Is Trial","description":"Whether user is on trial"},"user_id":{"type":"string","title":"User Id","description":"User ID"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At","description":"When trial started"},"converted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Converted At","description":"When trial was converted"},"conversion_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversion Reason","description":"Reason for conversion"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At","description":"Last trial activity"}},"type":"object","required":["is_trial","user_id"],"title":"UserTrialStatusResponse","description":"Response for user trial status."},"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"},"VerdictAuditView":{"properties":{"channels":{"items":{"$ref":"#/components/schemas/VerdictChannelRow"},"type":"array","title":"Channels"}},"type":"object","required":["channels"],"title":"VerdictAuditView","description":"Where the read's people came from, place by place."},"VerdictChannelRow":{"properties":{"channel":{"type":"string","title":"Channel"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["channel","counts","total"],"title":"VerdictChannelRow","description":"One channel's counts, with BOTH its raw key and its founder-facing name.\n\n``channel`` is what arrived on the event — a launch piece's link code for tracked\ntraffic — so the audit reconciles against the rows. ``label`` is what the card shows;\noptional because stored payloads may lack it, and the card falls back to the key."},"VerdictFunnelStepView":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"points_at":{"type":"string","title":"Points At"}},"type":"object","required":["key","label","points_at"],"title":"VerdictFunnelStepView"},"VerdictFunnelView":{"properties":{"here":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Here"},"steps":{"items":{"$ref":"#/components/schemas/VerdictFunnelStepView"},"type":"array","title":"Steps","default":[]}},"type":"object","title":"VerdictFunnelView","description":"Which step of the funnel broke, and what each step points at.\n\n`here` is None when every step fired — there is no single break to name, and\ninventing one would send the founder to change something that is working."},"VerdictQuoteView":{"properties":{"quote":{"type":"string","title":"Quote"},"logged_at":{"type":"string","title":"Logged At"}},"type":"object","required":["quote","logged_at"],"title":"VerdictQuoteView","description":"One logged call's quote — the \"what people said\" block on the full read.\n\nServed alongside the stored payload rather than baked into it: call notes\nare append-only evidence, so the read shows whatever has been logged by the\ntime it is opened, without rewriting the verdict-of-record."},"VerdictRejection":{"properties":{"note":{"type":"string","title":"Note"}},"type":"object","required":["note"],"title":"VerdictRejection","description":"A rejection carries why. Required, and not defaulted — the reopened\nengineer needs it, and a second rejection escalates carrying it."},"VerdictTileView":{"properties":{"event_type":{"type":"string","title":"Event Type"},"label":{"type":"string","title":"Label"},"value":{"type":"integer","title":"Value"},"broken":{"type":"boolean","title":"Broken"}},"type":"object","required":["event_type","label","value","broken"],"title":"VerdictTileView"},"ViewOnlyOrigin":{"type":"string","enum":["trial_end","grace_exhausted","cancel","refund","comp_end","trial_payment_failed"],"title":"ViewOnlyOrigin"},"VisitorEventType":{"type":"string","enum":["page_view","scroll_depth","cta_click","form_submit","key_action"],"title":"VisitorEventType","description":"The snippet's wire vocabulary — the closed set the in-template capture\nmodules emit, shared by the snippet's payload validation, storage, and\naggregation's per-type breakdown. The first four are every page's generic\nfunnel (the read's \"four numbers\"); KEY_ACTION is the app's own activation\nstep (loop 3) — the control the builder marks ``data-claura-key-action``\nper the founder-approved funnel. Landing pages never emit it, and the\nvalidation read's tiles never render it (``_TILE_ORDER`` stays the four)."},"WBSItem":{"properties":{"wbs_code":{"type":"string","title":"Wbs Code"},"deliverable":{"type":"string","title":"Deliverable"},"effort_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Effort Days"},"cost_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Band"},"pricing_band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Band"},"raci":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raci"},"risk_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Level"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"parent_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Code"},"level":{"type":"integer","title":"Level"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"acceptance_criteria":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acceptance Criteria"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["wbs_code","deliverable","level"],"title":"WBSItem","description":"Work Breakdown Structure item"},"WBSPreviewResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WBSItem"},"type":"array","title":"Items"},"total_items":{"type":"integer","title":"Total Items"},"stats":{"$ref":"#/components/schemas/WBSPreviewStats"}},"type":"object","required":["items","total_items","stats"],"title":"WBSPreviewResponse","description":"Response for WBS preview data from Google Sheets"},"WBSPreviewStats":{"properties":{"milestones":{"type":"integer","title":"Milestones"},"epics":{"type":"integer","title":"Epics"},"stories":{"type":"integer","title":"Stories"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["milestones","epics","stories","total"],"title":"WBSPreviewStats","description":"Summary statistics for WBS preview"},"WaitOnFounderRequest":{"properties":{"question":{"type":"string","maxLength":4000,"minLength":1,"title":"Question"}},"type":"object","required":["question"],"title":"WaitOnFounderRequest"},"WaitlistEntryRow":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"tier":{"$ref":"#/components/schemas/SubscriptionTier"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By"}},"type":"object","required":["organization_id","tier","created_at"],"title":"WaitlistEntryRow","description":"One org waiting on a capped tier, with the approval decision if one was\nmade. ``organization_name`` is carried because an admin recognises the\ncompany, not the UUID every billing action is keyed on."},"WaitlistJoinRequest":{"properties":{"tier":{"$ref":"#/components/schemas/SubscriptionTier","default":"fde_backed"}},"type":"object","title":"WaitlistJoinRequest"},"WaitlistJoinResponse":{"properties":{"joined":{"type":"boolean","title":"Joined","default":true}},"type":"object","title":"WaitlistJoinResponse"},"WaitlistListResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/WaitlistEntryRow"},"type":"array","title":"Entries"},"seats_sold":{"type":"integer","title":"Seats Sold","default":0},"seat_cap":{"type":"integer","title":"Seat Cap","default":0}},"type":"object","title":"WaitlistListResponse","description":"The approval queue, with the capacity the decision is made against."},"WalkthroughCompleteResponse":{"properties":{"auto_accepted_count":{"type":"integer","title":"Auto Accepted Count"},"total_criteria":{"type":"integer","title":"Total Criteria"},"kpis_locked":{"type":"integer","title":"Kpis Locked"}},"type":"object","required":["auto_accepted_count","total_criteria","kpis_locked"],"title":"WalkthroughCompleteResponse"},"WalkthroughCompletedRequest":{"properties":{"walkthrough_type":{"type":"string","title":"Walkthrough Type","description":"Walkthrough type (arrival, evidence)"}},"type":"object","required":["walkthrough_type"],"title":"WalkthroughCompletedRequest","description":"Request model for walkthrough completion tracking","example":{"walkthrough_type":"arrival"}},"WalkthroughMode":{"type":"string","enum":["setup","review"],"title":"WalkthroughMode","description":"Which guided-walkthrough prompt the dashboard should surface, if any."},"WalkthroughSkippedRequest":{"properties":{"walkthrough_type":{"type":"string","title":"Walkthrough Type","description":"Walkthrough type (arrival, evidence)"}},"type":"object","required":["walkthrough_type"],"title":"WalkthroughSkippedRequest","description":"Request model for walkthrough skip tracking","example":{"walkthrough_type":"arrival"}},"WalkthroughUpdateRequest":{"properties":{"app_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"App Completed"},"workspace_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Workspace Completed"},"dashboard_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dashboard Completed"},"guides":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/GuideProgress"},"propertyNames":{"enum":["arrival","today","studio","studio_build","studio_share","studio_results","evidence","tasks"]},"type":"object"},{"type":"null"}],"title":"Guides"}},"type":"object","title":"WalkthroughUpdateRequest","description":"Schema for partial walkthrough config updates."},"WebhookAck":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},"type":"object","required":["status"],"title":"WebhookAck","description":"Acknowledgement returned to Stripe for a webhook delivery.\n\n`status` is always present; the optional fields qualify it:\nignored → `reason`, duplicate/processed → `event_id` (+ `event_type`)."},"WorkSummary":{"properties":{"cycle":{"type":"integer","title":"Cycle"},"result_type":{"$ref":"#/components/schemas/HandBackResultType"},"check_passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Passed"},"check_failures":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Check Failures"},"preview_urls":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Preview Urls"},"handed_back_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Handed Back At"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"verdict_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verdict At"},"verdict_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict Note"},"places":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Places"}},"type":"object","required":["cycle","result_type","check_passed","check_failures","preview_urls","handed_back_at","verdict","verdict_at","verdict_note"],"title":"WorkSummary","description":"What came of the latest hand-back, as the engineer may see it on reload.\n\nA whitelist, like the founder's view: `hours_spent` and\n`agent_would_have_needed` are on the record and have no field here."},"WorkbenchSummary":{"properties":{"open":{"type":"integer","title":"Open"},"late":{"type":"integer","title":"Late"},"unread_reports":{"type":"integer","title":"Unread Reports"},"escalated":{"type":"integer","title":"Escalated"}},"type":"object","required":["open","late","unread_reports","escalated"],"title":"WorkbenchSummary","description":"The lane badges, in one call rather than four."},"WorkflowConfig":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"phases":{"items":{"$ref":"#/components/schemas/WorkflowPhaseConfig"},"type":"array","title":"Phases"},"standalone_pages":{"items":{"$ref":"#/components/schemas/StandalonePageConfig"},"type":"array","title":"Standalone Pages","default":[]},"metadata":{"anyOf":[{"$ref":"#/components/schemas/WorkflowMetadata"},{"type":"null"}]}},"type":"object","required":["id","name","description","phases"],"title":"WorkflowConfig","description":"Complete workflow definition."},"WorkflowMetadata":{"properties":{"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","default":1},"is_custom":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Custom","default":false}},"type":"object","title":"WorkflowMetadata","description":"Metadata for workflow versioning."},"WorkflowPhaseConfig":{"properties":{"phase_type":{"$ref":"#/components/schemas/PhaseType"},"agent_type":{"$ref":"#/components/schemas/AgentType"},"route":{"type":"string","title":"Route"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"is_optional":{"type":"boolean","title":"Is Optional"},"default_skip":{"type":"boolean","title":"Default Skip"},"input_documents":{"items":{"$ref":"#/components/schemas/DocumentDependency"},"type":"array","title":"Input Documents"},"output_document_types":{"items":{"$ref":"#/components/schemas/DocumentType"},"type":"array","title":"Output Document Types"},"slides_export":{"anyOf":[{"$ref":"#/components/schemas/SlidesExportConfig"},{"type":"null"}]},"skip_config":{"anyOf":[{"$ref":"#/components/schemas/SkipConfig"},{"type":"null"}]},"is_subphase":{"type":"boolean","title":"Is Subphase","default":false},"section_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section Group"},"unlock_after_phase":{"anyOf":[{"$ref":"#/components/schemas/PhaseType"},{"type":"null"}]},"unlock_after_phases":{"items":{"$ref":"#/components/schemas/PhaseType"},"type":"array","title":"Unlock After Phases"}},"type":"object","required":["phase_type","agent_type","route","title","description","is_optional","default_skip","input_documents","output_document_types"],"title":"WorkflowPhaseConfig","description":"Configuration for a single phase within a workflow.\n\n``output_document_types`` are the documents the phase produces (Business Plan produces\nthree). ``slides_export``, when set, enables the slides export button. ``is_subphase``\nrenders the phase as a top-level sidebar item, and ``section_group`` groups it under a\ncollapsible sidebar section with that label.\n\n``unlock_after_phase`` and ``unlock_after_phases`` gate the phase behind every named phase\nhaving produced real content — enforced by the sidebar lock and server-side\n(``app/utils/phase_access.py``), so moving a gate is a config change only."},"WorkflowStepCompletedRequest":{"properties":{"phase_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Type","description":"PhaseType enum value (e.g. BUSINESS_PLAN). Preferred over step_name."},"step_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Name","description":"Deprecated — legacy Mixpanel step slug (e.g. business_plan). Use phase_type."},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"workspace_name":{"type":"string","title":"Workspace Name","description":"Workspace name"}},"type":"object","required":["workspace_id","workspace_name"],"title":"WorkflowStepCompletedRequest","description":"Request model for workflow step completion tracking","example":{"phase_type":"BUSINESS_PLAN","workspace_id":"proj_123456789","workspace_name":"My SaaS App"}},"WorkflowType":{"type":"string","enum":["SALES","FOUNDER"],"title":"WorkflowType","description":"Enum for available workflow types.\nUsing str, Enum allows direct JSON serialization and DB storage."},"WorkspaceAccessTable":{"properties":{"role":{"$ref":"#/components/schemas/WorkspaceRole"},"actions":{"additionalProperties":{"type":"boolean"},"propertyNames":{"$ref":"#/components/schemas/Action"},"type":"object","title":"Actions"},"phases":{"additionalProperties":{"$ref":"#/components/schemas/PhaseAccess"},"propertyNames":{"$ref":"#/components/schemas/PhaseType"},"type":"object","title":"Phases"}},"type":"object","required":["role","actions","phases"],"title":"WorkspaceAccessTable"},"WorkspaceCreate":{"properties":{"name":{"type":"string","title":"Name","description":"Workspace name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Workspace description"},"founder_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Founder Bio","description":"Founder bio - optional text field where founder can paste their bio"},"workflow_type":{"type":"string","title":"Workflow Type","description":"Workflow type - determines which phases are in the workspace workflow"}},"type":"object","required":["name","workflow_type"],"title":"WorkspaceCreate"},"WorkspaceDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"founder_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Founder Bio"},"workflow_type":{"type":"string","title":"Workflow Type","description":"Workflow type - determines which phases are in the workspace workflow"},"workflow_config":{"anyOf":[{"$ref":"#/components/schemas/WorkflowConfig"},{"type":"null"}],"description":"Full workflow configuration - inlined to avoid sequential API calls"},"is_demo":{"type":"boolean","title":"Is Demo","description":"Whether this is a demo workspace","default":false},"user_role":{"type":"string","title":"User Role","description":"User's role in this workspace: owner, editor, viewer, custom or engineer"},"artifact_count":{"type":"integer","title":"Artifact Count","description":"Number of completed artifacts"},"completed_phases":{"items":{"type":"string"},"type":"array","title":"Completed Phases","description":"List of completed phase names"},"phases_with_messages":{"items":{"type":"string"},"type":"array","title":"Phases With Messages","description":"List of phases that have chat messages"},"kickoff_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Kickoff Completed At","description":"When a kickoff's backfill last completed — null if this workspace has never been kicked off"},"launch_documents":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhaseType"},"type":"array"},{"type":"null"}],"title":"Launch Documents","description":"The documents the launch waits on, covering what the read is missing; empty when the read can write the marketing site's brief; null with no read, when the workflow's own gate applies"},"launch_timeline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch Timeline","description":"The founder's launch timeline, verbatim"},"onboarding_mode":{"anyOf":[{"$ref":"#/components/schemas/OnboardingMode"},{"type":"null"}],"description":"free or metered for a project created into per-project onboarding; null when it wasn't (SALES, a clone, or before this change)"},"members":{"items":{"$ref":"#/components/schemas/WorkspaceMemberResponse"},"type":"array","title":"Members","description":"Workspace members"},"business_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Plan","description":"Business plan content"},"mvp_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mvp Plan","description":"MVP plan content"},"poc_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poc Plan","description":"POC plan content"},"product_requirements":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Requirements","description":"Product requirements content"},"technical_specification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technical Specification","description":"Technical specification content"},"workspace_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Plan","description":"Workspace management plan content"},"gtm_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gtm Strategy","description":"Go-to-Market Strategy content"},"launch_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launch Message","description":"Launch message content (loop 2)"},"sales_pitch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Pitch","description":"Sales pitch content"},"ui_design":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ui Design","description":"UI design completion status"},"strategy_document":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Strategy Document","description":"Strategy advisor document content"},"mockup":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mockup","description":"Mockup wireframe content"},"playbook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Playbook","description":"Execution playbook JSON content"},"wbs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wbs","description":"Work Breakdown Structure preview JSON for the arc, or null if not materialized"},"document_phase_ids":{"additionalProperties":{"type":"string"},"propertyNames":{"$ref":"#/components/schemas/DocumentType"},"type":"object","title":"Document Phase Ids","description":"The current workspace_phases row id per document type for the arc"},"builder_loops":{"additionalProperties":{"$ref":"#/components/schemas/BuilderLoopState"},"type":"object","title":"Builder Loops","description":"Per-surface build state for the active arc: {surface: {exists, delivered}}"},"launch_live_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Launch Live At","description":"When the active arc's launch went live — its landing page's first publish"}},"type":"object","required":["id","name","description","created_at","updated_at","workflow_type","user_role","artifact_count","onboarding_mode"],"title":"WorkspaceDetailResponse","description":"Response model for single workspace with full phase content"},"WorkspaceDriftDetectionResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"scan_trigger":{"anyOf":[{"$ref":"#/components/schemas/DriftScanTrigger"},{"type":"null"}]},"document_types_scanned":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Document Types Scanned"},"status":{"$ref":"#/components/schemas/DriftDetectionStatus"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"detected_from":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Detected From"},"skipped_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skipped Reason"},"total_items":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Items"},"facts":{"items":{"$ref":"#/components/schemas/DriftFactResponse"},"type":"array","title":"Facts"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","workspace_id","status","created_at"],"title":"WorkspaceDriftDetectionResponse","description":"API response for workspace-level drift detection scans (all-peers model)."},"WorkspaceEditedRequest":{"properties":{"phase_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase Type","description":"PhaseType enum value (e.g. BUSINESS_PLAN). Preferred over step_name."},"step_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Name","description":"Deprecated — legacy Mixpanel step slug (e.g. business_plan). Use phase_type."},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"workspace_name":{"type":"string","title":"Workspace Name","description":"Workspace name"},"edit_type":{"type":"string","title":"Edit Type","description":"Edit type (regenerate, manual_input)"}},"type":"object","required":["workspace_id","workspace_name","edit_type"],"title":"WorkspaceEditedRequest","description":"Request model for workspace edit event tracking","example":{"edit_type":"manual_input","phase_type":"PRODUCT_REQUIREMENTS","workspace_id":"proj_123456789","workspace_name":"My SaaS App"}},"WorkspaceHealthResponse":{"properties":{"arc":{"$ref":"#/components/schemas/ArcType"},"headline":{"type":"string","title":"Headline"},"headline_tier":{"$ref":"#/components/schemas/HealthTier"},"lead_block":{"anyOf":[{"$ref":"#/components/schemas/HealthTierBlock"},{"type":"null"}]},"streak_weeks":{"type":"integer","title":"Streak Weeks"},"status_line":{"$ref":"#/components/schemas/HealthStatusLine"},"blocks":{"items":{"$ref":"#/components/schemas/HealthBlock"},"type":"array","title":"Blocks"},"focus":{"$ref":"#/components/schemas/HealthFocus"},"delta":{"anyOf":[{"$ref":"#/components/schemas/HealthDelta"},{"type":"null"}]}},"type":"object","required":["arc","headline","headline_tier","lead_block","streak_weeks","status_line","blocks","focus"],"title":"WorkspaceHealthResponse"},"WorkspaceMemberInviteRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address to invite"},"role":{"$ref":"#/components/schemas/WorkspaceRole","description":"Workspace role to grant (editor, viewer or custom)"},"phase_permissions":{"items":{"$ref":"#/components/schemas/PhasePermissionInput"},"type":"array","title":"Phase Permissions","description":"Phase permissions - one entry per phase"}},"type":"object","required":["email","role","phase_permissions"],"title":"WorkspaceMemberInviteRequest","description":"Request model for inviting a workspace member with phase permissions.","example":{"email":"member@example.com","phase_permissions":[{"permission_level":"edit","phase_type":"BUSINESS_PLAN"},{"permission_level":"view","phase_type":"PRODUCT_REQUIREMENTS"}],"role":"custom"}},"WorkspaceMemberInviteResponse":{"properties":{"existing_user":{"type":"boolean","title":"Existing User","description":"Whether the invited user already existed"},"user_id":{"type":"string","title":"User Id","description":"User ID of the invited member"}},"type":"object","required":["existing_user","user_id"],"title":"WorkspaceMemberInviteResponse","description":"Response from inviting a member."},"WorkspaceMemberPermissionsResponse":{"properties":{"user_id":{"type":"string","title":"User Id","description":"User ID of the member"},"role":{"type":"string","title":"Role","description":"Computed role (editor, viewer, custom)"},"phase_permissions":{"additionalProperties":{"type":"string"},"type":"object","title":"Phase Permissions","description":"Phase type to permission level mapping"}},"type":"object","required":["user_id","role","phase_permissions"],"title":"WorkspaceMemberPermissionsResponse","description":"Response containing member permissions."},"WorkspaceMemberPermissionsUpdate":{"properties":{"role":{"$ref":"#/components/schemas/WorkspaceRole","description":"Workspace role to grant (editor, viewer or custom)"},"phase_permissions":{"items":{"$ref":"#/components/schemas/PhasePermissionInput"},"type":"array","title":"Phase Permissions","description":"Updated phase permissions"}},"type":"object","required":["role","phase_permissions"],"title":"WorkspaceMemberPermissionsUpdate","description":"Request model for updating member phase permissions"},"WorkspaceMemberPermissionsUpdateResponse":{"properties":{"message":{"type":"string","title":"Message","description":"Success message"},"role":{"type":"string","title":"Role","description":"New computed role"},"phase_permissions":{"additionalProperties":true,"type":"object","title":"Phase Permissions","description":"Updated phase permissions"}},"type":"object","required":["message","role","phase_permissions"],"title":"WorkspaceMemberPermissionsUpdateResponse","description":"Response from updating member permissions."},"WorkspaceMemberResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"role":{"$ref":"#/components/schemas/WorkspaceRole"},"added_at":{"type":"string","format":"date-time","title":"Added At"},"added_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By"},"is_active":{"type":"boolean","title":"Is Active"},"is_owner":{"type":"boolean","title":"Is Owner","default":false},"phase_permissions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Phase Permissions"}},"type":"object","required":["workspace_id","user_id","role","added_at","added_by","is_active"],"title":"WorkspaceMemberResponse"},"WorkspacePagesResponse":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/PageInfo"},"type":"array","title":"Pages"},"selected_page_ids":{"items":{"type":"string"},"type":"array","title":"Selected Page Ids"},"generated_page_ids":{"items":{"type":"string"},"type":"array","title":"Generated Page Ids"},"status":{"type":"string","title":"Status"},"workspace_id":{"type":"string","title":"Workspace Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"workspace_structure":{"type":"string","title":"Workspace Structure","default":"unknown"}},"type":"object","required":["pages","selected_page_ids","generated_page_ids","status","workspace_id"],"title":"WorkspacePagesResponse","description":"Response schema for /workspace/{id}/pages endpoint"},"WorkspaceRatingResponse":{"properties":{"id":{"type":"string","title":"Id"},"rating":{"type":"boolean","title":"Rating"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"},"rated_at":{"type":"string","format":"date-time","title":"Rated At"}},"type":"object","required":["id","rating","feedback","rated_at"],"title":"WorkspaceRatingResponse"},"WorkspaceRatingsBatchResponse":{"properties":{"phase_ratings":{"items":{"$ref":"#/components/schemas/PhaseRatingInfo"},"type":"array","title":"Phase Ratings"},"workspace_rating":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceRatingResponse"},{"type":"null"}]}},"type":"object","required":["phase_ratings"],"title":"WorkspaceRatingsBatchResponse","description":"Response model for batched ratings for an entire workspace"},"WorkspaceResponse":{"additionalProperties":true,"type":"object"},"WorkspaceRole":{"type":"string","enum":["owner","editor","viewer","custom","engineer"],"title":"WorkspaceRole","description":"Workspace-level roles"},"WorkspaceSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active"},"phases":{"$ref":"#/components/schemas/PhaseStatus"}},"type":"object","required":["id","name","description","created_at","updated_at","is_active","phases"],"title":"WorkspaceSummary","description":"Summary of a single workspace"},"WorkspaceUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Workspace name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Workspace description"},"founder_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Founder Bio","description":"Founder bio - optional text field where founder can paste their bio"},"execution_start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Execution Start Date","description":"When execution begins — drives week counter on dashboard"},"launch_timeline":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Launch Timeline","description":"The founder's launch timeline, verbatim — a preset label or their own words"}},"type":"object","title":"WorkspaceUpdate"},"WouldPay":{"type":"string","enum":["yes","no","unsure"],"title":"WouldPay"},"app__constants__ads__PlanState":{"type":"string","enum":["writing","ready","unfinished","locked"],"title":"PlanState"},"app__constants__social__PlanState":{"type":"string","enum":["writing","unfinished","ready","scheduled"],"title":"PlanState"},"app__schemas__ads__LaunchView":{"properties":{"ready":{"type":"boolean","title":"Ready"},"blockers":{"items":{"$ref":"#/components/schemas/LaunchBlock"},"type":"array","title":"Blockers"},"blocking_ads":{"items":{"$ref":"#/components/schemas/BlockingAdView"},"type":"array","title":"Blocking Ads"}},"type":"object","required":["ready","blockers","blocking_ads"],"title":"LaunchView"},"app__schemas__ads__VerdictView":{"properties":{"band":{"$ref":"#/components/schemas/RealismBand"},"budget_needed":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Budget Needed"},"reachable_on_slider":{"type":"boolean","title":"Reachable On Slider"}},"type":"object","required":["band","reachable_on_slider"],"title":"VerdictView"},"app__schemas__launch__LaunchView":{"properties":{"message":{"anyOf":[{"$ref":"#/components/schemas/LaunchMessageView"},{"type":"null"}]},"places":{"items":{"$ref":"#/components/schemas/PlaceView"},"type":"array","title":"Places"},"max_places":{"type":"integer","title":"Max Places"},"live_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Live At"},"page":{"$ref":"#/components/schemas/LaunchPageView"},"posts":{"items":{"$ref":"#/components/schemas/LaunchPostView"},"type":"array","title":"Posts"},"audience":{"$ref":"#/components/schemas/CallAudienceResponse"},"read":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__verdict__VerdictView"},{"type":"null"}]},"next_steps":{"items":{"$ref":"#/components/schemas/NextStepView"},"type":"array","title":"Next Steps"},"calls":{"$ref":"#/components/schemas/LaunchCallsView"},"timeline":{"items":{"$ref":"#/components/schemas/ChangeMarkerView"},"type":"array","title":"Timeline"},"agent_working":{"type":"boolean","title":"Agent Working","default":false},"agent_working_on":{"anyOf":[{"$ref":"#/components/schemas/LaunchStep"},{"type":"null"}]},"agent_working_on_page":{"anyOf":[{"$ref":"#/components/schemas/HubPage"},{"type":"null"}]},"brand_approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Brand Approved At"}},"type":"object","required":["max_places","page","audience","calls"],"title":"LaunchView","description":"``GET /workspaces/{id}/launch`` — everything the wizard and the Marketing page read about\nthe one launch: live from ``live_at``, every step editable at any time. ``read`` is the read\nof the evidence as it is now, None until someone has visited the live page."},"app__schemas__verdict__VerdictView":{"properties":{"band":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Band"},"below_floor":{"type":"boolean","title":"Below Floor","default":false},"band_moved":{"anyOf":[{"$ref":"#/components/schemas/BandMoveView"},{"type":"null"}]},"revised_because":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revised Because"},"logged_calls":{"type":"integer","title":"Logged Calls","default":0},"contested":{"type":"boolean","title":"Contested","default":false},"headline":{"type":"string","title":"Headline"},"because":{"type":"string","title":"Because"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"},"tiles":{"items":{"$ref":"#/components/schemas/VerdictTileView"},"type":"array","title":"Tiles"},"funnel":{"anyOf":[{"$ref":"#/components/schemas/VerdictFunnelView"},{"type":"null"}]},"audit":{"$ref":"#/components/schemas/VerdictAuditView"},"total_events":{"type":"integer","title":"Total Events"},"total_raw_events":{"type":"integer","title":"Total Raw Events"},"generated_at":{"type":"string","title":"Generated At"},"total_counted_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Counted Rows"},"next_move":{"anyOf":[{"$ref":"#/components/schemas/ReadNextMoveView"},{"type":"null"}]},"contested_direction":{"anyOf":[{"$ref":"#/components/schemas/ContestDirection"},{"type":"null"}]},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"},"visitors_needed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Visitors Needed"},"calls_needed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Calls Needed"},"what_people_said":{"items":{"$ref":"#/components/schemas/VerdictQuoteView"},"type":"array","title":"What People Said","default":[]}},"type":"object","required":["headline","because","tiles","audit","total_events","total_raw_events","generated_at"],"title":"VerdictView","description":"The stored read as the card renders it. ``visitors_needed`` and ``calls_needed`` are what is\nstill missing to clear the floor, and ``what_people_said`` the call quotes on record now: all\nthree are derived when served, never stored."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}