{"openapi":"3.1.0","info":{"title":"dmwithme","version":"0.1.0"},"paths":{"/apple-touch-icon-152x152-precomposed.png":{"get":{"summary":"Apple Touch Icon","description":"Serve default apple touch icon","operationId":"apple_touch_icon_apple_touch_icon_152x152_precomposed_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/apple-touch-icon-152x152.png":{"get":{"summary":"Apple Touch Icon","description":"Serve default apple touch icon","operationId":"apple_touch_icon_apple_touch_icon_152x152_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/apple-touch-icon-120x120-precomposed.png":{"get":{"summary":"Apple Touch Icon","description":"Serve default apple touch icon","operationId":"apple_touch_icon_apple_touch_icon_120x120_precomposed_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/apple-touch-icon-120x120.png":{"get":{"summary":"Apple Touch Icon","description":"Serve default apple touch icon","operationId":"apple_touch_icon_apple_touch_icon_120x120_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/apple-touch-icon-precomposed.png":{"get":{"summary":"Apple Touch Icon","description":"Serve default apple touch icon","operationId":"apple_touch_icon_apple_touch_icon_precomposed_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/apple-touch-icon.png":{"get":{"summary":"Apple Touch Icon","description":"Serve default apple touch icon","operationId":"apple_touch_icon_apple_touch_icon_png_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","description":"Serve the main HTML page. no-cache: browsers must recheck it on every load, so\nafter a deploy nobody keeps running the old frontend from cache.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/gifts/catalog":{"get":{"summary":"Get Gift Catalog Endpoint","operationId":"get_gift_catalog_endpoint_api_gifts_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/favicon.ico":{"get":{"summary":"Favicon","operationId":"favicon_favicon_ico_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth":{"post":{"summary":"Auth User","description":"Single endpoint for both login and registration","operationId":"auth_user_api_auth_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Auth Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verify":{"get":{"summary":"Verify Email Link","operationId":"verify_email_link_verify_get","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}},{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/verify":{"post":{"summary":"Verify Code","operationId":"verify_code_api_verify_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Verification Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reply":{"get":{"summary":"Email Reply Link","description":"The \"Reply\" button in Elise's emails. Logs the user in (no code needed) and opens\nthe chat. Stores the session the same way login.js does (localStorage authToken +\ncurrentUser), so it also replaces whoever was signed in on this browser.\nInvalid or expired link: just open the site (normal login).","operationId":"email_reply_link_reply_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dev/reengagement-email":{"post":{"summary":"Dev Send Reengagement Email","description":"DEV_MODE only: send yourself Elise's email right now (kind: day | yesterday) and add\nits line to your chat. Ignores timing, the 48h limit and the schedule table.","operationId":"dev_send_reengagement_email_api_dev_reengagement_email_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"day","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/resend-verification":{"post":{"summary":"Resend Verification","description":"Resend verification email - auto-detects login vs registration","operationId":"resend_verification_api_resend_verification_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile":{"get":{"summary":"Get Profile","operationId":"get_profile_api_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/account/delete":{"post":{"summary":"Delete User Account","operationId":"delete_user_account_api_account_delete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/purchase/gift":{"post":{"summary":"Purchase Gift","operationId":"purchase_gift_api_purchase_gift_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Gift Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dm/opener":{"get":{"summary":"Get Dm Opener","description":"Elise texts first when the app opens. Free.\n- New user or just reset the chat: prompts.FIRST_MESSAGE.\n- Returning user: a line picking up something from the last conversation\n  (null if the chat is still fresh or she'd be double-texting).\n`tz`: the browser's timezone, sent on every page load; saved for all prompts.","operationId":"get_dm_opener_api_dm_opener_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tz","in":"query","required":false,"schema":{"type":"string","title":"Tz"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dm/send":{"post":{"summary":"Send Private Message","description":"Send a DM. Each user message costs 1 credit and earns 1 xp.","operationId":"send_private_message_api_dm_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateMessageCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dm/save":{"post":{"summary":"Save Dm Without Reply","description":"Store a user message that gets no reply of its own (sent while Elise is \"away\";\nher already-pending reply covers it). Free. Becomes context for her next reply.","operationId":"save_dm_without_reply_api_dm_save_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateMessageCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dm/reset":{"post":{"summary":"Reset User Dms","description":"Clear the user's DM history and Elise's notes about them","operationId":"reset_user_dms_api_dm_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dm/silence-nudge":{"post":{"summary":"Dm Silence Nudge","description":"Re-engagement nudge when the user goes silent. Called once per silence gap.","operationId":"dm_silence_nudge_api_dm_silence_nudge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/dm/my-messages":{"get":{"summary":"Get My Dm Messages","description":"Current user's DM conversation, oldest first.","operationId":"get_my_dm_messages_api_dm_my_messages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/stripe/create-payment-intent":{"post":{"summary":"Create Stripe Payment Intent","description":"Start an in-app card payment for a credit package","operationId":"create_stripe_payment_intent_api_stripe_create_payment_intent_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Purchase"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/stripe/complete-payment":{"post":{"summary":"Complete Stripe Payment","description":"Grant the credits right after the card is charged (the webhook is the backup)","operationId":"complete_stripe_payment_api_stripe_complete_payment_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/stripe/webhook":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_api_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/blog/":{"get":{"summary":"Blog List","description":"Blog listing page","operationId":"blog_list_blog__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/blog/{slug}":{"get":{"summary":"Blog Article","description":"Individual blog article","operationId":"blog_article_blog__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sitemap_index.xml":{"get":{"summary":"Get Sitemap Index","description":"Redirect to main sitemap (for crawlers that look for sitemap_index.xml)","operationId":"get_sitemap_index_sitemap_index_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sitemap.xml":{"get":{"summary":"Get Sitemap","description":"Built from the loaded posts, so a new or updated post shows up on the next deploy\nwith the right <lastmod>. (Replaces the hand-edited sitemap.xml file.)","operationId":"get_sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/llms.txt":{"get":{"summary":"Get Llms Txt","description":"Plain-text summary for LLM crawlers (llmstxt.org format), with every blog post listed.","operationId":"get_llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"summary":"Get Robots","operationId":"get_robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/legal":{"get":{"summary":"Legal","operationId":"legal_legal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/unsubscribe":{"get":{"summary":"Unsubscribe Get","description":"Unsubscribe landing page. Processes the unsubscribe immediately on GET.","operationId":"unsubscribe_get_unsubscribe_get","parameters":[{"name":"email","in":"query","required":false,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Unsubscribe Post","description":"RFC 8058 one-click unsubscribe (used by Gmail/Postmark List-Unsubscribe-Post header).","operationId":"unsubscribe_post_unsubscribe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/music/random":{"get":{"summary":"Get Next Song","description":"Songs play in alphabetical order (song000, song001, ...), looping, from the CDN.\n`after`: the filename the client just played (e.g. \"music/song001.mp3\");\nomitted or unknown -> the first song.","operationId":"get_next_song_api_music_random_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"string","title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/music/next":{"get":{"summary":"Get Next Song","description":"Songs play in alphabetical order (song000, song001, ...), looping, from the CDN.\n`after`: the filename the client just played (e.g. \"music/song001.mp3\");\nomitted or unknown -> the first song.","operationId":"get_next_song_api_music_next_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"string","title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PrivateMessageCreate":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"PrivateMessageCreate"},"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"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}