{"openapi":"3.1.0","info":{"title":"AskYourAds.app","version":"0.1.0"},"paths":{"/chat/session/{session_id}":{"get":{"summary":"Load Session","description":"Render a full session's messages into the chat pane.","operationId":"load_session_chat_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Session","description":"Delete a session and its messages. HTMX swaps the sidebar row to empty.","operationId":"delete_session_chat_session__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/session/{session_id}/edit":{"get":{"summary":"Edit Session Item","description":"Return the session item in 'editing' mode (form).","operationId":"edit_session_item_chat_session__session_id__edit_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"active_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/session/{session_id}/item":{"get":{"summary":"Get Session Item","description":"Return the session item in normal mode.","operationId":"get_session_item_chat_session__session_id__item_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"active_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/session/{session_id}/title":{"patch":{"summary":"Update Session Title","description":"Update title and return the normal session item.","operationId":"update_session_title_chat_session__session_id__title_patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_session_title_chat_session__session_id__title_patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/status/{turn_id}":{"get":{"summary":"Chat Status","description":"Return the current step label for a turn, or empty.\n\nFrontend polls this every ~600ms while a /chat/ask request is in\nflight; the empty response is a valid 'still working' signal.","operationId":"chat_status_chat_status__turn_id__get","parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/ask":{"post":{"summary":"Ask","operationId":"ask_chat_ask_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_ask_chat_ask_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/download/{file_id}":{"get":{"summary":"Download Pptx","description":"Stream the user's PPTX deck from GCS.\n\nObject name embeds the authenticated user's id, so cross-user access\nis impossible — even when a guess of someone else's `file_id` would\nmiss the path entirely. Decks live until the GCS bucket lifecycle\nrule (matching CHAT_RETENTION_DAYS) deletes them, or until the\nreferencing session is explicitly removed.","operationId":"download_pptx_chat_download__file_id__get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/csv/{file_id}":{"get":{"summary":"Download Csv","description":"Stream the user's CSV export from GCS.\n\nSame shape as `download_pptx`: object name embeds the authenticated\nuser's id, so cross-user access is impossible. CSVs live until the\nGCS bucket lifecycle rule (matching CHAT_RETENTION_DAYS) deletes\nthem, or until the referencing session is explicitly removed.","operationId":"download_csv_chat_csv__file_id__get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sync-knowledge":{"post":{"tags":["admin"],"summary":"Sync Knowledge Docs","description":"Re-embed and upsert markdown knowledge chunks into `knowledge_docs`.","operationId":"sync_knowledge_docs_admin_sync_knowledge_post","parameters":[{"name":"X-Admin-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/connect/{platform}":{"get":{"tags":["oauth"],"summary":"Connect","operationId":"connect_oauth_connect__platform__get","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/callback/meta":{"get":{"tags":["oauth"],"summary":"Meta Callback","operationId":"meta_callback_oauth_callback_meta_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/disconnect/{conn_id}":{"delete":{"tags":["oauth"],"summary":"Disconnect","operationId":"disconnect_oauth_disconnect__conn_id__delete","parameters":[{"name":"conn_id","in":"path","required":true,"schema":{"type":"string","title":"Conn Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google/login":{"get":{"tags":["auth"],"summary":"Google Login","operationId":"google_login_auth_google_login_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"get":{"tags":["auth"],"summary":"Logout","operationId":"logout_auth_logout_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/about":{"get":{"tags":["pages"],"summary":"About","operationId":"about_about_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/faq":{"get":{"tags":["pages"],"summary":"Faq","operationId":"faq_faq_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/team":{"get":{"tags":["pages"],"summary":"Team","operationId":"team_team_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/metrics":{"get":{"tags":["pages"],"summary":"Metrics Explorer","description":"Public catalogue of supported dimensions and metrics per platform.","operationId":"metrics_explorer_metrics_get","parameters":[{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/metrics/table":{"get":{"tags":["pages"],"summary":"Metrics Explorer Table","description":"HTMX partial swapped in when the platform select changes.","operationId":"metrics_explorer_table_metrics_table_get","parameters":[{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/privacy-policy":{"get":{"tags":["pages"],"summary":"Privacy Policy","operationId":"privacy_policy_privacy_policy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms-of-service":{"get":{"tags":["pages"],"summary":"Terms Of Service","operationId":"terms_of_service_terms_of_service_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/sitemap.xml":{"get":{"tags":["pages"],"summary":"Sitemap","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"tags":["pages"],"summary":"Robots","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/tracking-health":{"get":{"tags":["tracking"],"summary":"Tracking Health","operationId":"tracking_health_tracking_health_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tracking-health/monitors/new":{"get":{"tags":["tracking"],"summary":"New Monitor Form","operationId":"new_monitor_form_tracking_health_monitors_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/tracking-health/monitors/{monitor_id}/edit":{"get":{"tags":["tracking"],"summary":"Edit Monitor Form","operationId":"edit_monitor_form_tracking_health_monitors__monitor_id__edit_get","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracking-health/monitors":{"post":{"tags":["tracking"],"summary":"Create Monitor","operationId":"create_monitor_tracking_health_monitors_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_monitor_tracking_health_monitors_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracking-health/monitors/{monitor_id}":{"put":{"tags":["tracking"],"summary":"Update Monitor","operationId":"update_monitor_tracking_health_monitors__monitor_id__put","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_monitor_tracking_health_monitors__monitor_id__put"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tracking"],"summary":"Delete Monitor","operationId":"delete_monitor_tracking_health_monitors__monitor_id__delete","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracking-health/monitors/{monitor_id}/run":{"post":{"tags":["tracking"],"summary":"Run Monitor","description":"Manual rerun: flip the row to 'Checking now…', fire a background\nscan, and return the updated row. The pending row self-polls (see\nthe row template) until the scan lands a real status.","operationId":"run_monitor_tracking_health_monitors__monitor_id__run_post","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tracking-health/monitors/{monitor_id}/row":{"get":{"tags":["tracking"],"summary":"Monitor Row","description":"Single-row fragment — used by the pending row's poll to refresh\nitself until the scan completes.","operationId":"monitor_row_tracking_health_monitors__monitor_id__row_get","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/picker":{"get":{"tags":["exports"],"summary":"Exports Picker","operationId":"exports_picker_exports_picker_get","parameters":[{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/picker/recompute":{"post":{"tags":["exports"],"summary":"Exports Picker Recompute","operationId":"exports_picker_recompute_exports_picker_recompute_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/exports":{"get":{"tags":["exports"],"summary":"Exports Home","description":"Manage page: every scheduled export with status, config, and actions.\nThe creation wizard lives at /exports/new.","operationId":"exports_home_exports_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/exports/new":{"get":{"tags":["exports"],"summary":"Exports New","operationId":"exports_new_exports_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/exports/source":{"post":{"tags":["exports"],"summary":"Exports Set Source","operationId":"exports_set_source_exports_source_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_exports_set_source_exports_source_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/account":{"post":{"tags":["exports"],"summary":"Exports Set Account","operationId":"exports_set_account_exports_account_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_exports_set_account_exports_account_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/destination":{"post":{"tags":["exports"],"summary":"Exports Set Destination","operationId":"exports_set_destination_exports_destination_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_exports_set_destination_exports_destination_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/reset":{"post":{"tags":["exports"],"summary":"Exports Reset","operationId":"exports_reset_exports_reset_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/exports/fields/recompute":{"post":{"tags":["exports"],"summary":"Exports Fields Recompute","operationId":"exports_fields_recompute_exports_fields_recompute_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/exports/create":{"post":{"tags":["exports"],"summary":"Exports Create","operationId":"exports_create_exports_create_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_exports_create_exports_create_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/{export_id}/row":{"get":{"tags":["exports"],"summary":"Exports Row","description":"Row refresh — polled every 3s while last_status == 'pending'.","operationId":"exports_row_exports__export_id__row_get","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/{export_id}/runs":{"get":{"tags":["exports"],"summary":"Exports Runs","description":"Run-history partial, lazy-loaded when the row's details expand.","operationId":"exports_runs_exports__export_id__runs_get","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/{export_id}/toggle":{"post":{"tags":["exports"],"summary":"Exports Toggle","operationId":"exports_toggle_exports__export_id__toggle_post","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/{export_id}/run":{"post":{"tags":["exports"],"summary":"Exports Run Now","operationId":"exports_run_now_exports__export_id__run_post","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/exports/{export_id}":{"delete":{"tags":["exports"],"summary":"Exports Delete","operationId":"exports_delete_exports__export_id__delete","parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/sharing":{"get":{"tags":["sharing"],"summary":"Sharing Page","operationId":"sharing_page_settings_sharing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/sharing/invite":{"post":{"tags":["sharing"],"summary":"Invite","operationId":"invite_sharing_invite_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_invite_sharing_invite_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sharing/{share_id}":{"delete":{"tags":["sharing"],"summary":"Revoke","operationId":"revoke_sharing__share_id__delete","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/share/accept":{"get":{"tags":["sharing"],"summary":"Accept","operationId":"accept_share_accept_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"}}}}}}},"/env/switch":{"get":{"tags":["sharing"],"summary":"Env Switch","operationId":"env_switch_env_switch_get","parameters":[{"name":"owner","in":"query","required":false,"schema":{"type":"string","default":"","title":"Owner"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/env/reset":{"get":{"tags":["sharing"],"summary":"Env Reset","operationId":"env_reset_env_reset_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"","title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/ai-assistant":{"get":{"summary":"Ai Assistant","operationId":"ai_assistant_ai_assistant_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/me/timezone":{"post":{"summary":"Pin My Timezone","description":"Fire-and-forget beacon from any authenticated page: pin the viewer's\nbrowser timezone on `users/{uid}.timezone` if it isn't set yet.\n\nHistorically the TZ was pinned ONLY on the first `/chat/ask`, so a user\nwho only used Tracking Health or the assistant page (never sent a chat)\nhad no stored TZ — and both the token-budget reset clock and the nightly\nscan schedule fell back to UTC. This beacon closes that gap for every\nauthenticated surface.\n\n`pin_timezone_if_missing` writes only when the field is absent, so this\ncan't be used to flip TZ for a fresh daily quota. And we pin the viewer's\nOWN account (`real_id`) only — NEVER while impersonating a shared owner\naccount (`is_impersonating`), so a viewer's browser TZ can't overwrite an\nowner's pinned zone.","operationId":"pin_my_timezone_me_timezone_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_pin_my_timezone_me_timezone_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_ask_chat_ask_post":{"properties":{"prompt":{"type":"string","title":"Prompt"},"timezone":{"type":"string","title":"Timezone","default":"UTC"},"session_id":{"type":"string","title":"Session Id","default":""},"force_chart":{"type":"boolean","title":"Force Chart","default":false},"force_table":{"type":"boolean","title":"Force Table","default":false},"output_format":{"type":"string","title":"Output Format","default":"summary"},"turn_id":{"type":"string","title":"Turn Id","default":""}},"type":"object","required":["prompt"],"title":"Body_ask_chat_ask_post"},"Body_create_monitor_tracking_health_monitors_post":{"properties":{"url":{"type":"string","title":"Url","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"notify_emails":{"type":"string","title":"Notify Emails","default":""},"scan_scope":{"type":"string","title":"Scan Scope","default":"single"},"sitemap_url":{"type":"string","title":"Sitemap Url","default":""},"check_consent":{"type":"string","title":"Check Consent","default":""},"timezone":{"type":"string","title":"Timezone","default":""}},"type":"object","title":"Body_create_monitor_tracking_health_monitors_post"},"Body_exports_create_exports_create_post":{"properties":{"name":{"type":"string","title":"Name","default":""},"start_date":{"type":"string","title":"Start Date","default":""},"schedule_hour":{"type":"integer","title":"Schedule Hour","default":6},"timezone":{"type":"string","title":"Timezone","default":"UTC"}},"type":"object","title":"Body_exports_create_exports_create_post"},"Body_exports_set_account_exports_account_post":{"properties":{"account":{"type":"string","title":"Account","default":""}},"type":"object","title":"Body_exports_set_account_exports_account_post"},"Body_exports_set_destination_exports_destination_post":{"properties":{"spreadsheet_url":{"type":"string","title":"Spreadsheet Url","default":""},"tab_name":{"type":"string","title":"Tab Name","default":""}},"type":"object","title":"Body_exports_set_destination_exports_destination_post"},"Body_exports_set_source_exports_source_post":{"properties":{"source":{"type":"string","title":"Source","default":""}},"type":"object","title":"Body_exports_set_source_exports_source_post"},"Body_invite_sharing_invite_post":{"properties":{"email":{"type":"string","title":"Email","default":""}},"type":"object","title":"Body_invite_sharing_invite_post"},"Body_pin_my_timezone_me_timezone_post":{"properties":{"timezone":{"type":"string","title":"Timezone","default":""}},"type":"object","title":"Body_pin_my_timezone_me_timezone_post"},"Body_update_monitor_tracking_health_monitors__monitor_id__put":{"properties":{"url":{"type":"string","title":"Url","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"notify_emails":{"type":"string","title":"Notify Emails","default":""},"scan_scope":{"type":"string","title":"Scan Scope","default":"single"},"sitemap_url":{"type":"string","title":"Sitemap Url","default":""},"check_consent":{"type":"string","title":"Check Consent","default":""},"timezone":{"type":"string","title":"Timezone","default":""}},"type":"object","title":"Body_update_monitor_tracking_health_monitors__monitor_id__put"},"Body_update_session_title_chat_session__session_id__title_patch":{"properties":{"title":{"type":"string","title":"Title"},"active_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Session Id"}},"type":"object","required":["title"],"title":"Body_update_session_title_chat_session__session_id__title_patch"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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"}}}}