{"openapi":"3.1.0","info":{"title":"AI 佛學導師 API","description":"佛學問答 AI 後端服務 — 混合推論架構","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["Health"],"summary":"Health Check","description":"回傳服務狀態。監控服務（Uptime Robot 用 HEAD）與 health probe 會打這裡。","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"tags":["Health"],"summary":"Health Check","description":"回傳服務狀態。監控服務（Uptime Robot 用 HEAD）與 health probe 會打這裡。","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/chat":{"post":{"tags":["Chat"],"summary":"Chat Endpoint","description":"佛學問答 — Streaming Response\n\n回傳 Server-Sent Events (SSE) 格式：\n  data: {\"type\": \"token\", \"data\": \"空\"}\n  data: {\"type\": \"token\", \"data\": \"性\"}\n  data: {\"type\": \"done\", \"meta\": {\"inference_type\": \"cloud\", \"latency_ms\": 1234}}","operationId":"chat_endpoint_api_v1_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account":{"delete":{"tags":["Account"],"summary":"Delete Account","description":"刪除使用者帳號 — 從 Firebase Auth 永久移除\n\n費曼比喻：\n  施主要離開寺廟，把登記簿上的資料全部擦掉，\n  之後這個身份就不存在了。","operationId":"delete_account_api_v1_account_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/jesus/chat":{"post":{"tags":["Jesus AI"],"summary":"Jesus Chat Endpoint","description":"基督教信仰陪伴 — Streaming Response（SSE）\n\n回傳格式：\n  data: {\"type\": \"token\", \"data\": \"...\"}\n  data: {\"type\": \"done\", \"meta\": {\"inference_type\": \"cloud\", \"latency_ms\": 1234}}","operationId":"jesus_chat_endpoint_api_v1_jesus_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JesusChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jesus/daily-verse":{"get":{"tags":["Jesus AI"],"summary":"Jesus Daily Verse","description":"每日經文 — MVP stub。\n\nPhase 6 改為讀預先生成的 verse_pool.json（366 天輪播）；\n目前先回固定一節，App 端可以正常打通流程。","operationId":"jesus_daily_verse_api_v1_jesus_daily_verse_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"zh","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyVerseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ChatRequest":{"properties":{"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"content":{"type":"string","maxLength":2000,"minLength":1,"title":"Content"},"prefer_local":{"type":"boolean","title":"Prefer Local","default":false},"lang":{"type":"string","title":"Lang","default":"zh"}},"type":"object","required":["content"],"title":"ChatRequest","description":"使用者發送的聊天訊息"},"DailyVerseResponse":{"properties":{"reference":{"type":"string","title":"Reference"},"text":{"type":"string","title":"Text"},"translation":{"type":"string","title":"Translation"},"reflection":{"type":"string","title":"Reflection"},"date":{"type":"string","title":"Date"}},"type":"object","required":["reference","text","translation","reflection","date"],"title":"DailyVerseResponse","description":"每日經文（MVP 階段 stub，後續改讀靜態檔）"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JesusChatRequest":{"properties":{"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"content":{"type":"string","maxLength":2000,"minLength":1,"title":"Content"},"denomination":{"type":"string","title":"Denomination","default":"neutral"},"lang":{"type":"string","title":"Lang","default":"zh"}},"type":"object","required":["content"],"title":"JesusChatRequest","description":"Jesus AI 對話請求"},"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"}}}}