{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/detect":{"post":{"summary":"Detect","description":"Return which candidate content items appear in an utterance.\n\nBody: { utterance: str, candidates: [{content_type, content_id, surface,\nreading?, formation?}], min_confidence?: float, language?: str }.\n`language` selects the matcher (default Japanese; \"korean\"/\"ko\" for /ko).\nOptional X-Detect-Secret header, checked against DETECT_SHARED_SECRET if set.","operationId":"detect_detect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tts/hint":{"post":{"summary":"Synthesize Hint","description":"Return a WAV pronunciation for one contextual-hint target phrase.\n\nThis is a stateless server-to-server endpoint called by the authenticated\nlearner API. It is separate from the live conversation pipeline, but resolves\nTTS settings from that pipeline so provider, voice, language, rate, and style\nremain identical. A later GCS cache can use the exact text + returned voice\nid as its stable key.","operationId":"synthesize_hint_tts_hint_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tts/replay":{"post":{"summary":"Replay Bot Utterance","description":"Return one private, already-generated roleplay utterance as WAV.\n\nThe learner-facing Node API authenticates the user and proxies this request.\nOnly the opaque deterministic key crosses the browser boundary; GCS bucket\nand object names remain private to this service.","operationId":"replay_bot_utterance_tts_replay_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/offer":{"post":{"summary":"Offer","operationId":"offer_api_offer_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Offer Ice Candidate","description":"Accept trickled ICE candidates from the client for an existing peer\nconnection. The updated small-webrtc client PATCHes candidates it gathers\nafter the initial SDP offer/answer; without this route they'd 405 and the\nconnection would fall back to whatever candidates were in the first SDP.","operationId":"offer_ice_candidate_api_offer_patch","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connect":{"post":{"summary":"Bot Connect","operationId":"bot_connect_connect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Bot Connect Connect Post"}}}}}}}},"components":{"schemas":{"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"}}}}