{"openapi":"3.1.0","info":{"title":"BugManager","version":"0.1.0"},"paths":{"/v1/reports":{"post":{"tags":["ingest"],"summary":"Ingest Report","operationId":"ingest_report_v1_reports_post","parameters":[{"name":"origin","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportAccepted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/reports/direct":{"post":{"tags":["ingest"],"summary":"Ingest Report Direct","operationId":"ingest_report_direct_v1_reports_direct_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportAccepted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/config":{"get":{"tags":["auth"],"summary":"Public Auth Config","description":"Not secret — the OAuth client ID is meant to be embedded in\nfrontend JS. Lets the dashboard initialize Google Identity Services\nwithout hardcoding it into a static file.","operationId":"public_auth_config_api_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Public Auth Config Api Auth Config Get"}}}}}}},"/api/auth/google":{"post":{"tags":["auth"],"summary":"Google Sign In","operationId":"google_sign_in_api_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSignIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","operationId":"get_me_api_auth_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_auth_logout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/portal":{"post":{"tags":["account"],"summary":"Create Portal Session","operationId":"create_portal_session_api_account_portal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/delete":{"post":{"tags":["account"],"summary":"Request Account Deletion","operationId":"request_account_deletion_api_account_delete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeletionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/delete/cancel":{"post":{"tags":["account"],"summary":"Cancel Account Deletion","operationId":"cancel_account_deletion_api_account_delete_cancel_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeletionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/export":{"get":{"tags":["account"],"summary":"Export Account Data","description":"Everything the account owns, as one JSON document — a structured,\nmachine-readable format is the standard shape for this kind of export\n(GDPR Art. 20 / CCPA-style requests both expect exactly this).\n\nDeliberately excluded: password (none exists — Google authenticates),\nAPI key/secret material (we only ever store a one-way hash — the\nkey_prefix here is the same partial value already shown in Settings,\nnever the full key), other users' data, and internal fields like\nidp_subject or session tokens that don't belong to \"your data\" in any\nmeaningful sense — they're how we recognize you, not things about you.\n\nDelivered as a direct authenticated download rather than emailed:\ninstant, no size limit to worry about, and it never touches a third\nparty (the SMTP provider) with what could be the customer's entire\nbug-tracking history.","operationId":"export_account_data_api_account_export_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/config":{"get":{"tags":["billing"],"summary":"Billing Config","operationId":"billing_config_api_billing_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Billing Config Api Billing Config Get"}}}}}}},"/api/billing/founding-availability":{"get":{"tags":["billing"],"summary":"Founding Availability","description":"Public — the landing page and dashboard billing view both need this\nbefore a user signs in or picks a plan, to know whether to offer the\nfounding-annual card at all.","operationId":"founding_availability_api_billing_founding_availability_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Founding Availability Api Billing Founding Availability Get"}}}}}}},"/api/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout Session","operationId":"create_checkout_session_api_billing_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/stripe":{"post":{"tags":["billing"],"summary":"Stripe Webhook","operationId":"stripe_webhook_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/refund-quote":{"get":{"tags":["billing"],"summary":"Refund Quote","operationId":"refund_quote_api_billing_refund_quote_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundQuote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/refund-requests":{"post":{"tags":["billing"],"summary":"Create Refund Request","operationId":"create_refund_request_api_billing_refund_requests_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["billing"],"summary":"List Own Refund Requests","operationId":"list_own_refund_requests_api_billing_refund_requests_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RefundRequestOut"},"title":"Response List Own Refund Requests Api Billing Refund Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/refund-requests":{"get":{"tags":["billing"],"summary":"List Refund Requests","operationId":"list_refund_requests_api_refund_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RefundRequestAdminOut"},"title":"Response List Refund Requests Api Refund Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/refund-requests/{request_id}/approve":{"post":{"tags":["billing"],"summary":"Approve Refund Request","operationId":"approve_refund_request_api_refund_requests__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/refund-requests/{request_id}/deny":{"post":{"tags":["billing"],"summary":"Deny Refund Request","operationId":"deny_refund_request_api_refund_requests__request_id__deny_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects":{"post":{"tags":["dashboard"],"summary":"Create Project","operationId":"create_project_api_projects_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreatedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dashboard"],"summary":"List Projects","operationId":"list_projects_api_projects_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectOut"},"title":"Response List Projects Api Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}":{"get":{"tags":["dashboard"],"summary":"Get Project","operationId":"get_project_api_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["dashboard"],"summary":"Update Project","operationId":"update_project_api_projects__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/keys":{"post":{"tags":["dashboard"],"summary":"Create Key","operationId":"create_key_api_projects__project_id__keys_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","pattern":"^(publishable|secret)$","title":"Kind"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/keys/{key_id}":{"delete":{"tags":["dashboard"],"summary":"Revoke Key","operationId":"revoke_key_api_projects__project_id__keys__key_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/categories":{"get":{"tags":["dashboard"],"summary":"List Categories","operationId":"list_categories_api_projects__project_id__categories_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryOut"},"title":"Response List Categories Api Projects  Project Id  Categories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/reports":{"get":{"tags":["dashboard"],"summary":"List Reports","operationId":"list_reports_api_projects__project_id__reports_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"category_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportOut"},"title":"Response List Reports Api Projects  Project Id  Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/reports/{report_id}":{"get":{"tags":["dashboard"],"summary":"Get Report","operationId":"get_report_api_projects__project_id__reports__report_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/reports/{report_id}/status":{"patch":{"tags":["dashboard"],"summary":"Update Report Status","operationId":"update_report_status_api_projects__project_id__reports__report_id__status_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/agent-runs":{"get":{"tags":["dashboard"],"summary":"List Agent Runs","operationId":"list_agent_runs_api_projects__project_id__agent_runs_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentRunOut"},"title":"Response List Agent Runs Api Projects  Project Id  Agent Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-runs":{"get":{"tags":["dashboard"],"summary":"List Ops Runs","description":"Ops agents run with project_id=NULL — this is the 'ran my business'\nfeed, operator-only. Customers never see this: it's not their data.","operationId":"list_ops_runs_api_agent_runs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentRunOut"},"title":"Response List Ops Runs Api Agent Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/notification-rules":{"get":{"tags":["dashboard"],"summary":"List Notification Rules","operationId":"list_notification_rules_api_projects__project_id__notification_rules_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRuleOut"},"title":"Response List Notification Rules Api Projects  Project Id  Notification Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dashboard"],"summary":"Create Notification Rule","operationId":"create_notification_rule_api_projects__project_id__notification_rules_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRuleCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRuleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{project_id}/notification-rules/{rule_id}":{"delete":{"tags":["dashboard"],"summary":"Delete Notification Rule","operationId":"delete_notification_rule_api_projects__project_id__notification_rules__rule_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support":{"post":{"tags":["support"],"summary":"Submit Support Message","operationId":"submit_support_message_api_support_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportMessageIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-messages":{"get":{"tags":["support"],"summary":"List Support Messages","operationId":"list_support_messages_api_support_messages_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SupportMessageOut"},"title":"Response List Support Messages Api Support Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/support-messages/{message_id}/send":{"post":{"tags":["support"],"summary":"Send Support Reply","operationId":"send_support_reply_api_support_messages__message_id__send_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportMessageSend"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/cron/retention":{"post":{"tags":["internal"],"summary":"Run Retention","operationId":"run_retention_internal_cron_retention_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Retention Internal Cron Retention Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/cron/account-deletion":{"post":{"tags":["internal"],"summary":"Run Account Deletion","operationId":"run_account_deletion_internal_cron_account_deletion_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Account Deletion Internal Cron Account Deletion Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/cron/digest":{"post":{"tags":["internal"],"summary":"Run Digest","operationId":"run_digest_internal_cron_digest_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Digest Internal Cron Digest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/cron/churn-watch":{"post":{"tags":["internal"],"summary":"Run Churn Watch","operationId":"run_churn_watch_internal_cron_churn_watch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Churn Watch Internal Cron Churn Watch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/cron/health":{"post":{"tags":["internal"],"summary":"Run Health","operationId":"run_health_internal_cron_health_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Run Health Internal Cron Health Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/legal/{slug}":{"get":{"tags":["legal"],"summary":"Legal Document","operationId":"legal_document_legal__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/status":{"get":{"summary":"Healthz","operationId":"healthz_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Healthz Status Get"}}}}}}}},"components":{"schemas":{"AccountDeletionOut":{"properties":{"scheduled_deletion_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Deletion At"}},"type":"object","required":["scheduled_deletion_at"],"title":"AccountDeletionOut"},"AgentRunOut":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"agent":{"type":"string","title":"Agent"},"trigger":{"type":"string","title":"Trigger"},"decision":{"type":"string","title":"Decision"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"autonomous":{"type":"boolean","title":"Autonomous"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Usd"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","project_id","agent","trigger","decision","rationale","autonomous","model","cost_usd","created_at"],"title":"AgentRunOut"},"CategoryOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"suggested_fix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Fix"},"report_count":{"type":"integer","title":"Report Count"},"status":{"type":"string","title":"Status"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","description","severity","suggested_fix","report_count","status","updated_at"],"title":"CategoryOut"},"CheckoutRequest":{"properties":{"plan":{"type":"string","title":"Plan"}},"type":"object","required":["plan"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CheckoutResponse"},"GoogleSignIn":{"properties":{"id_token":{"type":"string","title":"Id Token"}},"type":"object","required":["id_token"],"title":"GoogleSignIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeyCreated":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"key_prefix":{"type":"string","title":"Key Prefix"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","kind","key_prefix","revoked_at","created_at","key"],"title":"KeyCreated"},"KeyOut":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"key_prefix":{"type":"string","title":"Key Prefix"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","key_prefix","revoked_at","created_at"],"title":"KeyOut"},"NotificationRuleCreate":{"properties":{"trigger_type":{"type":"string","title":"Trigger Type"},"threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Threshold"},"window_minutes":{"type":"integer","title":"Window Minutes","default":60},"channel":{"type":"string","title":"Channel"},"target":{"type":"string","title":"Target"},"cooldown_minutes":{"type":"integer","title":"Cooldown Minutes","default":60}},"type":"object","required":["trigger_type","channel","target"],"title":"NotificationRuleCreate"},"NotificationRuleOut":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"trigger_type":{"type":"string","title":"Trigger Type"},"threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Threshold"},"window_minutes":{"type":"integer","title":"Window Minutes"},"channel":{"type":"string","title":"Channel"},"target":{"type":"string","title":"Target"},"cooldown_minutes":{"type":"integer","title":"Cooldown Minutes"},"last_fired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Fired At"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["id","project_id","trigger_type","threshold","window_minutes","channel","target","cooldown_minutes","last_fired_at","enabled"],"title":"NotificationRuleOut"},"PortalResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"PortalResponse"},"ProjectCreate":{"properties":{"name":{"type":"string","title":"Name"},"allowed_origins":{"items":{"type":"string"},"type":"array","title":"Allowed Origins"}},"type":"object","required":["name"],"title":"ProjectCreate"},"ProjectCreatedOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"allowed_origins":{"items":{"type":"string"},"type":"array","title":"Allowed Origins"},"retention_days":{"type":"integer","title":"Retention Days"},"capture_storage":{"type":"boolean","title":"Capture Storage"},"storage_key_allowlist":{"items":{"type":"string"},"type":"array","title":"Storage Key Allowlist"},"max_categories":{"type":"integer","title":"Max Categories"},"monthly_budget_usd":{"type":"number","title":"Monthly Budget Usd"},"spend_current_period":{"type":"number","title":"Spend Current Period"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"api_keys":{"items":{"$ref":"#/components/schemas/KeyCreated"},"type":"array","title":"Api Keys"}},"type":"object","required":["id","name","allowed_origins","retention_days","capture_storage","storage_key_allowlist","max_categories","monthly_budget_usd","spend_current_period","created_at","api_keys"],"title":"ProjectCreatedOut","description":"Returned only from project creation — the one moment the full key\nvalues exist outside the client. They can't be recovered afterwards,\nonly rotated (POST .../keys) since we store just the hash."},"ProjectDetailOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"allowed_origins":{"items":{"type":"string"},"type":"array","title":"Allowed Origins"},"retention_days":{"type":"integer","title":"Retention Days"},"capture_storage":{"type":"boolean","title":"Capture Storage"},"storage_key_allowlist":{"items":{"type":"string"},"type":"array","title":"Storage Key Allowlist"},"max_categories":{"type":"integer","title":"Max Categories"},"monthly_budget_usd":{"type":"number","title":"Monthly Budget Usd"},"spend_current_period":{"type":"number","title":"Spend Current Period"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"api_keys":{"items":{"$ref":"#/components/schemas/KeyOut"},"type":"array","title":"Api Keys"}},"type":"object","required":["id","name","allowed_origins","retention_days","capture_storage","storage_key_allowlist","max_categories","monthly_budget_usd","spend_current_period","created_at","api_keys"],"title":"ProjectDetailOut"},"ProjectOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"allowed_origins":{"items":{"type":"string"},"type":"array","title":"Allowed Origins"},"retention_days":{"type":"integer","title":"Retention Days"},"capture_storage":{"type":"boolean","title":"Capture Storage"},"storage_key_allowlist":{"items":{"type":"string"},"type":"array","title":"Storage Key Allowlist"},"max_categories":{"type":"integer","title":"Max Categories"},"monthly_budget_usd":{"type":"number","title":"Monthly Budget Usd"},"spend_current_period":{"type":"number","title":"Spend Current Period"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","allowed_origins","retention_days","capture_storage","storage_key_allowlist","max_categories","monthly_budget_usd","spend_current_period","created_at"],"title":"ProjectOut"},"ProjectUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"allowed_origins":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Origins"},"retention_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retention Days"},"capture_storage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Capture Storage"},"storage_key_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Storage Key Allowlist"},"max_categories":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Categories"}},"type":"object","title":"ProjectUpdate"},"RefundQuote":{"properties":{"eligible":{"type":"boolean","title":"Eligible"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"unused_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unused Ratio"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"}},"type":"object","required":["eligible"],"title":"RefundQuote"},"RefundRequestAdminOut":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"plan":{"type":"string","title":"Plan"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"unused_ratio":{"type":"number","title":"Unused Ratio"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"type":"string","title":"Status"},"payment_intent_id":{"type":"string","title":"Payment Intent Id"},"stripe_refund_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Refund Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"user_email":{"type":"string","title":"User Email"}},"type":"object","required":["id","user_id","plan","amount_cents","currency","unused_ratio","note","status","payment_intent_id","stripe_refund_id","created_at","decided_at","user_email"],"title":"RefundRequestAdminOut"},"RefundRequestCreate":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","title":"RefundRequestCreate"},"RefundRequestOut":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"plan":{"type":"string","title":"Plan"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"unused_ratio":{"type":"number","title":"Unused Ratio"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"type":"string","title":"Status"},"payment_intent_id":{"type":"string","title":"Payment Intent Id"},"stripe_refund_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Refund Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"}},"type":"object","required":["id","user_id","plan","amount_cents","currency","unused_ratio","note","status","payment_intent_id","stripe_refund_id","created_at","decided_at"],"title":"RefundRequestOut"},"ReportAccepted":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","status"],"title":"ReportAccepted"},"ReportDetailOut":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"category_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"triage_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Triage Tier"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"release":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"frontend_state":{"type":"object","title":"Frontend State"},"category":{"anyOf":[{"$ref":"#/components/schemas/CategoryOut"},{"type":"null"}]},"copy_for_ai":{"type":"string","title":"Copy For Ai"}},"type":"object","required":["id","project_id","category_id","description","status","triage_tier","confidence","release","created_at","frontend_state","category","copy_for_ai"],"title":"ReportDetailOut"},"ReportIn":{"properties":{"description":{"type":"string","maxLength":2000,"title":"Description"},"url":{"type":"string","title":"Url","default":""},"consoleErrors":{"items":{"type":"string"},"type":"array","title":"Consoleerrors"},"viewport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewport"},"userAgent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Useragent"},"release":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release"},"localStorage":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Localstorage"},"sessionStorage":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Sessionstorage"}},"type":"object","required":["description"],"title":"ReportIn"},"ReportOut":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"category_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Id"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"triage_tier":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Triage Tier"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"release":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","project_id","category_id","description","status","triage_tier","confidence","release","created_at"],"title":"ReportOut"},"ReportStatusUpdate":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"ReportStatusUpdate"},"SessionOut":{"properties":{"token":{"type":"string","title":"Token"},"user":{"$ref":"#/components/schemas/UserOut"}},"type":"object","required":["token","user"],"title":"SessionOut"},"SupportMessageIn":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"type":"string","maxLength":254,"title":"Email"},"message":{"type":"string","maxLength":4000,"minLength":1,"title":"Message"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["email","message"],"title":"SupportMessageIn"},"SupportMessageOut":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"type":"string","title":"Email"},"message":{"type":"string","title":"Message"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"draft_reply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Reply"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["id","project_id","name","email","message","category","draft_reply","status","created_at","resolved_at"],"title":"SupportMessageOut"},"SupportMessageSend":{"properties":{"reply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply"}},"type":"object","title":"SupportMessageSend"},"UserOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"is_operator":{"type":"boolean","title":"Is Operator","default":false},"plan":{"type":"string","title":"Plan","default":"free"},"plan_status":{"type":"string","title":"Plan Status","default":"active"},"scheduled_deletion_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Deletion At"}},"type":"object","required":["id","email","display_name"],"title":"UserOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}