{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/conversation":{"get":{"summary":"Conversation","operationId":"conversation_conversation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthcheck":{"get":{"summary":"Healthcheck","operationId":"healthcheck_healthcheck_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/chat":{"post":{"summary":"Chat","operationId":"chat_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"}}}}}}},"/submit":{"post":{"summary":"Submit","operationId":"submit_submit_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SubmitSkipPath"},{"$ref":"#/components/schemas/SubmitFullConversation"}],"title":"Payload"}}},"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"}}}}}}},"/addendum/{addendum_type}":{"get":{"summary":"Addendum","operationId":"addendum_addendum__addendum_type__get","parameters":[{"name":"addendum_type","in":"path","required":true,"schema":{"type":"string","title":"Addendum Type"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/track":{"post":{"summary":"Track","operationId":"track_track_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ChatRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ConversationTurn"},"type":"array","minItems":1,"title":"Messages"},"submission_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Id"}},"type":"object","required":["messages"],"title":"ChatRequest","description":"Request body for POST /chat. Conforms to the Anthropic Messages API\nshape so the transcript can flow into client.messages.stream() without\ntranslation."},"ConversationTurn":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"type":"string","minLength":1,"title":"Content"}},"type":"object","required":["role","content"],"title":"ConversationTurn","description":"One turn of the agent conversation. Role names match the Anthropic\nMessages API so transcripts can flow into client.messages.stream() without\ntranslation."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"SubmitFullConversation":{"properties":{"skip_path":{"type":"boolean","const":false,"title":"Skip Path"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Linkedin Url"},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location"},"messages":{"items":{"$ref":"#/components/schemas/ConversationTurn"},"type":"array","title":"Messages"},"agent_input_tokens":{"type":"integer","title":"Agent Input Tokens"},"agent_output_tokens":{"type":"integer","title":"Agent Output Tokens"},"submission_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Id"}},"type":"object","required":["skip_path","email","messages","agent_input_tokens","agent_output_tokens"],"title":"SubmitFullConversation","description":"Submit request payload for the full-conversation path. Wired in Slice 4."},"SubmitSkipPath":{"properties":{"skip_path":{"type":"boolean","const":true,"title":"Skip Path"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"linkedin_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Linkedin Url"},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location"}},"type":"object","required":["skip_path","email"],"title":"SubmitSkipPath","description":"Submit request payload for the skip path."},"TrackRequest":{"properties":{"cta_type":{"type":"string","enum":["playbook","event_toolkit","event_toolkit_personas","event_toolkit_teaching_references","vibe_coding_primer","vibe_coding_tools_research_prompt","ai_generation_research_prompt","curriculum_deep_dive"],"title":"Cta Type"},"cta_action":{"type":"string","enum":["copy_markdown","print"],"title":"Cta Action"},"submission_id":{"type":"string","title":"Submission Id"},"source":{"type":"string","enum":["","email"],"title":"Source","default":""}},"additionalProperties":false,"type":"object","required":["cta_type","cta_action","submission_id"],"title":"TrackRequest","description":"Request body for POST /track. Records a client-fired CTA action\n(copy_markdown, print). `view` is server-fired and must be rejected here.\n\n`source` is the channel-attribution field, stamped onto the page body by\nthe addendum route from the request's ?source= query param and read back\nby the in-page JS. Defaulting to \"\" keeps stale browser-cached JS (which\nposts the pre-fix shape with no source field) compatible with the\npost-fix route — without the default, a deploy window would 422\nin-flight clicks from any tab still running the old script."},"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"}}}}