{"openapi":"3.1.0","info":{"title":"Search to Podcast","version":"1.0.0"},"paths":{"/api/voice/register":{"post":{"summary":"Voice Register","description":"A voice worker saying where it is. The rung that survives a pod moving.\n\nThis is the inbound half of PROBLEMS.md §112: the pod knows its own address\nand the app does not, so the pod says, on boot and on a heartbeat. A\nreplaced pod is back in service within one beat and nobody edits a\ndashboard.\n\nThree things make it safe to have at all:\n\n* **It is off unless a secret is set.** No `VOICE_REGISTRY_TOKEN`, no\n  registration - not an open endpoint with a warning. An endpoint that\n  accepts \"the voice is here\" from anybody redirects every script FAM\n  writes to a machine of their choosing, and it would look like the\n  feature working.\n* **A registration is a claim, never a promotion.** Nothing is spoken to\n  because it registered; `voice_control` still verifies it with a real\n  call first, exactly as it does the configured address.\n* **It says nothing back.** The reply names no other worker and no\n  setting: the caller is a GPU on somebody else's network, and it needs to\n  know only whether it was heard.","operationId":"voice_register_api_voice_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Voice Register Api Voice Register Post"}}}}}}},"/api/health":{"get":{"summary":"Health","description":"What this server is running and whether each part of it works.\n\nBuilt in a worker thread (§548): it reads every store, and on the event\nloop each call held up every other request for its whole length.","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Api Health Get"}}}}}}},"/api/auth/me":{"get":{"summary":"Auth Me","description":"Who the server thinks is asking. Cheap, and the only way to find out -\nthe id is not in the page's reach, which is the point of the cookie.","operationId":"auth_me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Me Api Auth Me Get"}}}}}}},"/api/free-month/claim":{"post":{"summary":"Claim Free Month In App","description":"The card's Claim button (§593): the same claim as the emailed link,\nfor the signed-in account, so neither app has to open a browser.","operationId":"claim_free_month_in_app_api_free_month_claim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Claim Free Month In App Api Free Month Claim Post"}}}}}}},"/api/voice/wake":{"post":{"summary":"Voice Wake","description":"The app came back to the foreground: start a GPU booting now (§329).\n\nA phone that leaves the app open in the background never reloads it, so\n`/api/auth/me` is not asked again; this is the open for that case. Costs\nno model call, never blocks, and `REMOTE_VOICE_WAKE_INTERVAL` keeps\nrepeats from queueing jobs. `woke` says whether a wake was asked for, not\nwhether a worker was cold.","operationId":"voice_wake_api_voice_wake_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Voice Wake Api Voice Wake Post"}}}}}}},"/api/auth/signup":{"post":{"summary":"Auth Signup","description":"Attach an account to the identity this listener already has.\n\nNot \"create a user\": they exist already, with a history and possibly mixes\nand echoes. Signing up claims that identity rather than starting a second\none, which is why nothing has to be migrated.","operationId":"auth_signup_api_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Signup Api Auth Signup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"summary":"Auth Login","description":"Verify credentials and move this browser onto that account's identity.\n\nA fresh session token is minted rather than the current one being\nrepointed: reusing it would let a token captured before login keep working\nafter it, which is the session-fixation bug.","operationId":"auth_login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Login Api Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/provider":{"post":{"summary":"Auth Provider","description":"Sign in with Google or Sign in with Apple.\n\nThe app gets an identity token from the platform SDK and posts it here;\n`oauth.verify` checks the signature, issuer, audience and nonce against the\nprovider's published keys. Signing in needs no code exchange and no client\nsecret, because a native app needs neither - which removes the most common\nway this is built wrong. The one exchange is Apple's, after the sign-in has\nverified, and only to keep a token that account deletion can revoke\n(`apple_tokens.py`); its secret is made on the server, never in the app.\n\nThe two failure modes are deliberately different status codes. 503 means\n*this server* cannot verify tokens for that provider - PyJWT is missing, or\nno audience is configured - and is an operator's problem with an operator's\nmessage. 401 means the token was checked and refused.","operationId":"auth_provider_api_auth_provider_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Provider Api Auth Provider Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"summary":"Auth Logout","description":"Drop the session. The next request mints a fresh anonymous one, so the\napp keeps working - as a different listener, with nothing of theirs.","operationId":"auth_logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Logout Api Auth Logout Post"}}}}}}},"/api/auth/password":{"post":{"summary":"Auth Password","description":"Change it, and log every device out - including this one. A password\nchange that leaves old sessions alive does not do what people believe.","operationId":"auth_password_api_auth_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Password Api Auth Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset":{"get":{"summary":"Auth Reset Status","description":"Whether this server can send a reset code, and if not, why. The log-in\nscreen draws \"Forgot password?\" only when it can (§244).","operationId":"auth_reset_status_api_auth_reset_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Reset Status Api Auth Reset Get"}}}}}}},"/api/auth/reset/start":{"post":{"summary":"Auth Reset Start","description":"Email a one-time code to the account at this address (§244).\n\nThe security is in where the code goes: only to the address already on\nthe account, so changing somebody's password needs their inbox, not just\ntheir address. The answer is identical for an address with no account,\nand the mail is sent on its own thread so the time taken is identical\ntoo. Paced like the other auth endpoints, and the store caps codes per\naccount (`accounts.RESET_MAX_CODES`).","operationId":"auth_reset_start_api_auth_reset_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Reset Start Api Auth Reset Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset/finish":{"post":{"summary":"Auth Reset Finish","description":"Set a new password with the emailed code, and sign this device in.\n\nEvery other session on the account ends (`finish_reset`), as a password\nchange does, and the address is told it happened - so a reset the owner\ndid not make is not a silent one.","operationId":"auth_reset_finish_api_auth_reset_finish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetFinishRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Reset Finish Api Auth Reset Finish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/password/set":{"post":{"summary":"Auth Password Set","description":"Add a first password to an account that signed up with Google or Apple.\n\nIts own endpoint rather than a branch inside the change-password one,\nbecause the two have different preconditions: that one proves the current\npassword, and this one is reachable exactly when there is none to prove.\nMerging them would mean a request that omits `current` is sometimes a\nlegitimate first set and sometimes an attempt to skip the check.","operationId":"auth_password_set_api_auth_password_set_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Password Set Api Auth Password Set Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/invite":{"get":{"summary":"Invite Mine","description":"This member's invite link, minted on first ask (§735): the share\nsheet's link on the Friends page, gate on or off.","operationId":"invite_mine_api_invite_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Invite Mine Api Invite Get"}}}}}}},"/api/invite/{code}":{"get":{"summary":"Invite Door","description":"Who an invite link is from (§735, flow 06's \"Sarah saved you a\nseat\"): their name, handle and face, and the topics their own profile\nshows - what they chose to publish, never what they listened to - so the\nperson invited starts with them. **Topics only while the inviter is not\nin private mode**: an invite is their own act, addressed to the person\nthey sent it to, but private mode keeps their interests to followers\n(rule `private-mode`). A code that names nobody, or somebody blocked,\nsuspended or gone, is a 404 and the app opens its ordinary front door.","operationId":"invite_door_api_invite__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invite Door Api Invite  Code  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account":{"get":{"summary":"Account Read","description":"Everything the settings screen shows: who you are, how you get in,\nwhat tier you are on, and where else you are signed in.","operationId":"account_read_api_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Account Read Api Account Get"}}}}}},"post":{"summary":"Account Update","description":"Change the account's own details. Not preferences - those are\n`/api/preferences`, they are not credentials, and they work without an\naccount at all.","operationId":"account_update_api_account_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Account Update Api Account Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Account Delete","description":"Delete the account and everything FAM holds about this listener.\n\nRequired of any app that offers account creation (App Store guideline\n5.1.1(v)), and it has to be reachable *in the app* rather than through a\nsupport address - which is why it is an endpoint and not a mailbox.\n\n`erase_listener` says exactly what is removed, what is anonymised and what\nis deliberately untouched. The session is dropped afterwards, so the next\nrequest mints a fresh anonymous listener and the app keeps working.","operationId":"account_delete_api_account_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Account Delete Api Account Delete"}}}}}}},"/api/activation":{"get":{"summary":"Activation Read","description":"The activation step (§411): whether it is needed, and what its screen\ndraws - the help lines, the gender choices, the counting notice - filled\nwith what the account already holds.","operationId":"activation_read_api_activation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Activation Read Api Activation Get"}}}}}},"post":{"summary":"Activation Write","description":"Finish the activation step (§411): the date of birth (required; under\n13 asked to be confirmed, then the account deleted), the place and gender\n(optional), and - the screen having shown the notice - a yes to being\ncounted, which Settings can turn off (decision 2).","operationId":"activation_write_api_activation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Activation Write Api Activation Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/signout-everywhere":{"post":{"summary":"Account Signout Everywhere","description":"Drop every other session, keeping this one.\n\nThe thing somebody reaches for when they think a device is lost, and it is\nthe reason `sessions_for` reports a count without reporting tokens.","operationId":"account_signout_everywhere_api_account_signout_everywhere_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Account Signout Everywhere Api Account Signout Everywhere Post"}}}}}}},"/api/account/identity":{"delete":{"summary":"Account Unlink","description":"Remove one sign-in route, unless it is the only way in.","operationId":"account_unlink_api_account_identity_delete","parameters":[{"name":"provider","in":"query","required":true,"schema":{"type":"string","maxLength":16,"title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Account Unlink Api Account Identity Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends":{"get":{"summary":"Friends Read","description":"Who this listener follows, who follows them, and who does both.\n\nMutuals are derived rather than stored, and so are friend requests\n(§747): a follow not followed back is one, so there is no second state\nmachine and no way for the two directions to disagree.","operationId":"friends_read_api_friends_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friends Read Api Friends Get"}}}}}}},"/api/friends/requests/accept":{"post":{"summary":"Friend Request Accept","description":"Confirm a friend request (§747): following back makes you friends.","operationId":"friend_request_accept_api_friends_requests_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FriendRequestAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friend Request Accept Api Friends Requests Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/requests/decline":{"post":{"summary":"Friend Request Decline","description":"Delete a friend request (§747): it goes, and leaves nothing pending.","operationId":"friend_request_decline_api_friends_requests_decline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FriendRequestAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friend Request Decline Api Friends Requests Decline Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/remove":{"post":{"summary":"Friend Remove","description":"Remove a friend (§747): neither follows the other afterwards.","operationId":"friend_remove_api_friends_remove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FriendRequestAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friend Remove Api Friends Remove Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/announced":{"post":{"summary":"Friends Announced","description":"The \"started following you\" popup or banner for this person was shown.\n\nOnce, and never again (§142): it used to be remembered in page memory, so\nreopening the app raised the latest follower's popup every time.","operationId":"friends_announced_api_friends_announced_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnouncedRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friends Announced Api Friends Announced Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/seen":{"post":{"summary":"Friends Seen","description":"They opened the Friends tab, so nobody is new any more.\n\nDeliberately *not* done when the follower popup is drawn: a badge that\ncleared itself the moment a popup appeared would be a count nobody ever\ngot to read.","operationId":"friends_seen_api_friends_seen_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friends Seen Api Friends Seen Post"}}}}}}},"/api/person":{"get":{"summary":"Person Profile","description":"Another listener's profile: **only what they have chosen to publish.**\n\nThe rule this endpoint exists under, and the reason it did not exist\nbefore: what somebody has listened to is theirs. There is no play count\nhere, no completion total, no subjects inferred from behaviour and no\nhistory. Four things come back, and each one is something the person\nactively decided to show:\n\n* **public mixes** - a new mix is public by default, and one its owner\n  switched to private never appears here;\n* **vibes** - a vibe *is* the act of showing somebody an episode, so a\n  list of them is a list of things they chose to publish;\n* **interests they have not hidden** - declared in the first run or in\n  Settings, minus anything they turned off in Edit profile;\n* **the place they gave** - city, state, country as typed, under their\n  name (10.7 packet); a profile with none shows none.\n\nThe standing between the two of you comes from the follow graph, which\nboth sides can already see.","operationId":"person_profile_api_person_get","parameters":[{"name":"handle","in":"query","required":false,"schema":{"type":"string","maxLength":25,"default":"","title":"Handle"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Person Profile Api Person Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/places/suggest":{"get":{"summary":"Places Suggest","description":"The places a half-typed \"Where you are\" could mean (§704).\n\nOne box in place of three: the listener types a town and picks it with\nits region and country. An account's own editor, so an account is\nasked for; nothing typed here is stored against the listener.","operationId":"places_suggest_api_places_suggest_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":80,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Places Suggest Api Places Suggest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/people":{"get":{"summary":"People Search","description":"Find somebody by handle or name, to follow or share with.\n\nOnly people who have chosen a handle are findable. Someone who has never\nset one is not hidden from a directory - they are not in one, which is the\ndifference between a private setting and a feature nobody enabled.","operationId":"people_search_api_people_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response People Search Api People Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/suggested":{"get":{"summary":"Friends Suggested","description":"\"Suggested for you\" (§665).\n\nWith `handle` (or a `user_id` from this listener's own graph): the\npeople that person follows, for the row that opens under Follow on\ntheir profile - **only once this listener follows them**, so the row is\nsomething following somebody gives you, never a way to read a\nstranger's graph. Without either: \"Discover people\" - who follows you\nand is not followed back, then who the people you follow follow.\nEach card says why in its own words (`reason`).","operationId":"friends_suggested_api_friends_suggested_get","parameters":[{"name":"handle","in":"query","required":false,"schema":{"type":"string","maxLength":25,"default":"","title":"Handle"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Friends Suggested Api Friends Suggested Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/contacts":{"post":{"summary":"Friends Contacts","description":"\"Your contacts on FAM\" (§665): which of the contacts the listener\npicked have an account, to follow from sign-up's Find your friends step\nand the Friends page.\n\nOnly what the listener's phone handed over after they chose to share it\n(the contact picker, or the native app's Contacts permission). **Nothing\nposted is stored or logged** - not the numbers, not the names; a match is\nreturned with the name it had in *their* address book, and the rest is\nforgotten when the request ends. Who is shown is who search would show:\na handle, not blocked, not suspended, not waitlisted.","operationId":"friends_contacts_api_friends_contacts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friends Contacts Api Friends Contacts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/joined":{"get":{"summary":"Friends Joined","description":"Who joined FAM and has this listener in their contacts (§669), each\nonce: a notice is deleted when its card goes up\n(`POST /api/friends/joined/seen`), so an app closed before it could show\none shows it next time. Only somebody discovery would show (a handle,\nnot blocked, suspended or waitlisted) and whom this listener does not\nfollow yet; any other is deleted here, never to come back.","operationId":"friends_joined_api_friends_joined_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friends Joined Api Friends Joined Get"}}}}}}},"/api/friends/joined/seen":{"post":{"summary":"Friends Joined Seen","description":"The \"just joined\" card went up (§669): forget the notice. Only this\nlistener's own notice can be dropped - the pair is keyed on them.","operationId":"friends_joined_seen_api_friends_joined_seen_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinedSeenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friends Joined Seen Api Friends Joined Seen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/follow":{"post":{"summary":"Friends Follow","operationId":"friends_follow_api_friends_follow_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__FollowRequest__1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Friends Follow Api Friends Follow Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Friends Unfollow","operationId":"friends_unfollow_api_friends_follow_delete","parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Friends Unfollow Api Friends Follow Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/friends/follow-all":{"post":{"summary":"Friends Follow All","description":"One request and one pace for the whole list: a \"Follow all\" sent as\na follow per person ran into `_rate_limit` at the fourth. Whoever cannot\nbe followed - unknown, yourself, blocked, waitlisted - is skipped, and\nthe answer says how many were.","operationId":"friends_follow_all_api_friends_follow_all_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowAllRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Friends Follow All Api Friends Follow All Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages":{"get":{"summary":"Messages Inbox","description":"Every conversation, most recent first, with an unread count each.","operationId":"messages_inbox_api_messages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Messages Inbox Api Messages Get"}}}}}},"post":{"summary":"Messages Send","description":"Send a message, or share an episode into a conversation.\n\nPaced by `_read_limit` rather than `_rate_limit`: this provably makes no\nmodel call - it writes one row pointing at a question - and pacing it at\none every three seconds would make a conversation unusable. The generation\nhappens when the recipient taps, against their own allowance.","operationId":"messages_send_api_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Messages Send Api Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/thread":{"get":{"summary":"Messages Thread","description":"One conversation, and reading it marks it read.\n\nMarking on read rather than on a separate call, because the two would drift\nthe moment a client crashed between them - and a thread that stays unread\nafter somebody has read it is the more annoying direction.\n\n**`since` is what makes an open conversation live** (§107). Messages used\nto appear only when the screen was opened, so two people talking had to\nleave the chat and come back to see each other - which is not a slow chat,\nit is a chat that does not work. A client holding the conversation polls\nwith the highest id it has and gets back only what arrived after it, so\nstaying current costs a primary-key comparison rather than the whole\nhistory every couple of seconds.\n\n`head` is the cursor to send next time, and it is returned whether or not\nanything came back: a client that derived it from the last message would\nhave no cursor at all on an empty poll and would have to fall back to\nre-reading everything - which is the thing being removed.","operationId":"messages_thread_api_messages_thread_get","parameters":[{"name":"with","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"With"}},{"name":"since","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Messages Thread Api Messages Thread Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Messages Delete Thread","description":"Delete a chat - for this listener only (§142).\n\nThe owner's rule: it leaves *their* list, a new message to that person\nstarts a fresh thread without the old history, and the other person is\nunaffected and keeps everything. So nothing is deleted from the table;\n`MessageStore.clear` moves where this listener's view begins.","operationId":"messages_delete_thread_api_messages_thread_delete","parameters":[{"name":"with","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"With"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Messages Delete Thread Api Messages Thread Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/spell":{"post":{"summary":"Spell","description":"Autocorrect for a message or a search, a word at a time (§142).\n\nThe second pass behind the phone's own keyboard, which the owner found\nmisses things. Deliberately cautious - see `autocorrect.py` for why a\ngeneral spell checker rewrites the subjects of half of FAM's searches -\nso the answer is `null` for every word it is not sure about. No account\nneeded: search is the one box everybody types into.","operationId":"spell_api_spell_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpellRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Spell Api Spell Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications":{"get":{"summary":"Notifications","description":"What has happened to this listener since they last asked.\n\nOne endpoint for both kinds of drop-down - a message arriving and somebody\nfollowing you - because the interface asks both questions at the same\nmoment, from the same timer, and two polls to answer one question is two\nthings to keep in step for no benefit.\n\n**The cursor is the client's, and that is the whole design.** A message's\n*read* state is a fact about a conversation somebody opened; whether it\nhas been *announced* is a fact about a banner this client already raised.\nDeriving the second from the first would mean opening one chat silenced\nthe notifications for every other - so the client holds `since` and the\nserver only answers what it was asked.\n\n`bootstrap` is the first call after the app loads: it returns the cursor\nand deliberately nothing else. Without it, opening the app would raise a\nbanner for every message ever sent to this listener, which is the usual\nway this feature is got wrong.\n\nFollows have no id to page on - the graph stores timestamps - so they are\nanswered by the same `new_followers` query the Friends badge already uses,\nwhich is cleared by opening the Friends tab and by nothing else.","operationId":"notifications_api_notifications_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Since"}},{"name":"bootstrap","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Bootstrap"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Notifications Api Notifications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/typing":{"post":{"summary":"Messages Typing","description":"Say \"I am typing to this person\", for the three dots on their side.\n\nHeld in memory for a few seconds and never written anywhere - see\n`typing_indicator.py` for why that is the whole design. Paced like the\nrest of messaging, and a client sends it at most every couple of seconds\nwhile keys are being pressed.","operationId":"messages_typing_api_messages_typing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Messages Typing Api Messages Typing Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/groups":{"post":{"summary":"Messages New Group","description":"Start a group chat with the people picked (10.6 packet #4).\n\nOnly people in this listener's graph, the ones the picker shows: a\ngroup is not a way to message a stranger the one-to-one chat would not.","operationId":"messages_new_group_api_messages_groups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Messages New Group Api Messages Groups Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/groups/{gid}":{"patch":{"summary":"Messages Rename Group","operationId":"messages_rename_group_api_messages_groups__gid__patch","parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"string","title":"Gid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupNameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Messages Rename Group Api Messages Groups  Gid  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Messages Leave Group","description":"Leave a group. The others keep it, and are told in it.","operationId":"messages_leave_group_api_messages_groups__gid__delete","parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"string","title":"Gid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Messages Leave Group Api Messages Groups  Gid  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/groups/{gid}/photo":{"post":{"summary":"Messages Group Photo","description":"A group chat's picture (10.11 packet): anybody in it may set it.\n\nChecked the way a profile picture is - an image from the device, under\nthe size cap, through the photo check - because everybody in the group\nsees it.","operationId":"messages_group_photo_api_messages_groups__gid__photo_post","parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"string","title":"Gid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupPhotoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Messages Group Photo Api Messages Groups  Gid  Photo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/saved":{"get":{"summary":"Saved Read","description":"The shelf, or - with `q` - whether one episode is on it.\n\nThe second form is what draws the save control's state. It is the same\nshape as `/api/vibe`'s, and for the same reason: a control that lights up\nhas to be able to ask whether it is lit without pulling the whole shelf\ndown to find out.","operationId":"saved_read_api_saved_get","parameters":[{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Folder Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":500,"default":"","title":"Q"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":60,"minimum":0,"default":0,"title":"Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saved Read Api Saved Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Saved Save","description":"Save an episode for later. Idempotent, and the whole of the action.\n\nIt used to answer with the offline shelf's capacity, because saving\nraised a popup asking whether to download the episode too. There is no\ndownload and no popup: pressing save saves, and the icon turns green.","operationId":"saved_save_api_saved_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saved Save Api Saved Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Saved Unsave","description":"Un-press the save control, which knows the episode and not a row id.","operationId":"saved_unsave_api_saved_delete","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":500,"title":"Q"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":60,"minimum":0,"default":0,"title":"Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saved Unsave Api Saved Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/saved/{item_id}":{"delete":{"summary":"Saved Remove","operationId":"saved_remove_api_saved__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saved Remove Api Saved  Item Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/saved/{item_id}/played":{"post":{"summary":"Saved Played","description":"Note that a saved episode was played, so the shelf can order itself by\nwhat somebody actually comes back to.","operationId":"saved_played_api_saved__item_id__played_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saved Played Api Saved  Item Id  Played Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/saved/{item_id}/move":{"post":{"summary":"Saved Move","operationId":"saved_move_api_saved__item_id__move_post","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saved Move Api Saved  Item Id  Move Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/saved/folders":{"post":{"summary":"Saved Folder Create","operationId":"saved_folder_create_api_saved_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Saved Folder Create Api Saved Folders Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/saved/folders/{folder_id}":{"post":{"summary":"Saved Folder Rename","operationId":"saved_folder_rename_api_saved_folders__folder_id__post","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saved Folder Rename Api Saved Folders  Folder Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Saved Folder Delete","description":"Remove a folder. Its episodes are unfiled, never deleted - see\n`SavedStore.delete_folder` for why that is the only safe direction.","operationId":"saved_folder_delete_api_saved_folders__folder_id__delete","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Saved Folder Delete Api Saved Folders  Folder Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/targets":{"get":{"summary":"Share Targets","description":"Where an episode can be sent, and what each destination can carry.\n\n`needs_image` is the one that changes what the client does: a story is a\npicture with a link attached, not a sentence with a URL in it, so those\ndestinations take the card from `/api/share/card` instead of the text.","operationId":"share_targets_api_share_targets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Share Targets Api Share Targets Get"}}}}}}},"/api/share":{"post":{"summary":"Share Create","description":"Make a share link and the words to send with it, per destination.\n\nDeliberately reachable without an account: a share link is the cheapest\nroute FAM has to a listener who does not have it yet, and putting a sign-up\nin front of the act of recommending it would be a strange way to grow.\nEverything *kept* still needs an account - which is the settled boundary,\nand a share is an outbound act rather than a shelf.\n\nNothing is posted anywhere. FAM holds no token for any of these platforms\nand asks for none; the phone's share sheet and the platforms' own apps do\nthe posting, with the person looking at it.","operationId":"share_create_api_share_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Share Create Api Share Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/card":{"get":{"summary":"Share Card","description":"The story image, as SVG.\n\nInstagram and Snapchat stories cannot carry a link as text - they are\npictures with a sticker on them - so without this the listener shares a\nscreenshot of a player UI, which is not an invitation to anything.","operationId":"share_card_api_share_card_get","parameters":[{"name":"share","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{share_id}":{"get":{"summary":"Share Read","description":"One share, for anybody holding the link.\n\nThe API behind the landing page, and it exists separately from the page\nfor IOS_APP.md's first rule: every feature is an API before it is a\nscreen. A universal link opening the app has to resolve the same share the\nweb page resolves, and neither client should be reading the other's HTML\nto do it.\n\nUnauthenticated on purpose - a share link is public by construction, which\nis the whole point of sending one. What it returns is therefore exactly\n`sharing.landing_payload`, which carries no `user_id`: authorship is\nprovenance and never identity (PROBLEMS.md 95), and this is the one\nresponse where the listener id sits right next to the data being handed\nto a stranger.","operationId":"share_read_api_share__share_id__get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Share Read Api Share  Share Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{share_id}/open":{"post":{"summary":"Share Opened","description":"Somebody actually looked at a shared episode.\n\nSeparate from serving the page, and that is the whole design. Facebook and\nLinkedIn *fetch* a shared link to build their preview card, so counting\nthe HTML serve would produce a number made mostly of crawlers - and the\nopen count is the only number sharing produces, so a wrong one is worse\nthan none. Crawlers do not run the page's script; this is what the page\ncalls once it is running in front of a person.\n\nThe alternative - a list of crawler user agents - is the shape PROBLEMS.md\n76 settled against: it can always be widened by one more entry, and the\nnext one it misses is already written.","operationId":"share_opened_api_share__share_id__open_post","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Share Opened Api Share  Share Id  Open Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{share_id}/preview.jpg":{"get":{"summary":"Share Preview","description":"The picture a shared link previews with (`link_preview`, §559).\n\nFetched by Messages, WhatsApp, X and the rest when the link is pasted:\nthe episode's picture, square, with FAM's logo and a play button, or\nits title on FAM's ground when it has no picture. Public, like the link.","operationId":"share_preview_api_share__share_id__preview_jpg_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{share_id}/wide.jpg":{"get":{"summary":"Share Wide","description":"The picture a shared link previews with on Facebook (§621): 1200x630,\nthe shape Facebook draws - the picture beside the logo, the title and\nthe play button. Named in the page's head only to Facebook's crawler\n(`sharing.wants_wide`); public, like the link.","operationId":"share_wide_api_share__share_id__wide_jpg_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{share_id}/post.jpg":{"get":{"summary":"Share Post","description":"The episode as a photo somebody posts themselves (§622): 1080x1350,\nthe picture, the title, the episode's one line and where to listen.\nFacebook holds back a post that links out; a photo with the link in the\nfirst comment is not held back. `?download=1` saves it as a file. FAM\nposts nothing ([no-social-posting]): a person downloads and uploads it.\nPublic, like the link.","operationId":"share_post_api_share__share_id__post_jpg_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}},{"name":"download","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{share_id}/sticker.png":{"get":{"summary":"Share Sticker","description":"The player card a FAM link makes in Messages - the preview with the\ntitle and the site under it, rounded, clear outside - for Instagram to\nplace on a story as a sticker (the owner's 11.12 notes).","operationId":"share_sticker_api_share__share_id__sticker_png_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share/{share_id}/story.jpg":{"get":{"summary":"Share Story","description":"The player card centred on a 1080x1920 story, for Snapchat and the\nshare sheet, which take a whole picture (the owner's 11.12 notes).","operationId":"share_story_api_share__share_id__story_jpg_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/s/{share_id}":{"get":{"summary":"Share Open","description":"Where a shared link lands: one episode, and no way into the rest.\n\n**This used to redirect into the web app**, which handed a stranger the\nwhole product - search, myFAM, Explore, an account - when what they were\nsent was one episode. The landing page is the opposite: the only control\nthat works is play, and everything else is a door to the App Store.\n\nThe episode is resolved with no new concept at all. A share row holds the\nquestion and the length, `pipeline.key_for` builds the cache key from\nexactly those, so the page asking `/api/audio` for them gets the sharer's\nown script back out of the shared cache. There is no episode id in this\nproduct and this did not add one; see the note in `sharing.py`.\n\nA dead link still lands here rather than redirecting, because a page that\nsays the link has expired is a better answer than the front door of an app\nthe person did not ask for - and because a crawler following a stale\npreview should get markup, not a bounce.\n\nThe open is not counted here. See `share_opened`.","operationId":"share_open_s__share_id__get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entitlements":{"get":{"summary":"Entitlements Read","description":"What this listener may do, and how much of it is left.\n\nWorks without an account, because an anonymous listener is on a tier too\nand needs to be told what it allows - a limit nobody can see coming is\nindistinguishable from a bug when it arrives.","operationId":"entitlements_read_api_entitlements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Entitlements Read Api Entitlements Get"}}}}}}},"/api/plans":{"get":{"summary":"Plans Read","description":"Every tier and every feature, for a pricing screen.\n\nDeliberately has no prices in it. A number here and a number in App Store\nConnect are two places for one fact, and the one that is wrong is always\nthe one the listener is reading - so the price comes from the store's own\nproduct metadata, which is also the only place it can be right per country.","operationId":"plans_read_api_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Plans Read Api Plans Get"}}}}}}},"/api/billing/student":{"post":{"summary":"Student Start","description":"Email a code to a .edu address (§658). The Student plan is sold only\nto an account that has entered one, for a year at a time.","operationId":"student_start_api_billing_student_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Student Start Api Billing Student Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/student/confirm":{"post":{"summary":"Student Confirm","operationId":"student_confirm_api_billing_student_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Student Confirm Api Billing Student Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/checkout":{"post":{"summary":"Billing Checkout","description":"A Stripe Checkout page for one plan (§656). The app opens the URL; the\nplan changes when Stripe's webhook says it was paid, never on return.","operationId":"billing_checkout_api_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Billing Checkout Api Billing Checkout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/portal":{"post":{"summary":"Billing Portal","description":"Stripe's page for changing card or plan, or cancelling (§656).","operationId":"billing_portal_api_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Billing Portal Api Billing Portal Post"}}}}}}},"/api/billing/webhook":{"post":{"summary":"Billing Webhook","description":"Stripe's events (§656): the only thing that changes a paid plan.\nSigned or refused; a repeat changes nothing.","operationId":"billing_webhook_api_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Billing Webhook Api Billing Webhook Post"}}}}}}},"/api/billing/apple":{"get":{"summary":"Apple Purchase Setup","description":"What the iPhone app needs before it shows Apple's sheet (§657): the\n`appAccountToken` this account buys with, and each plan's product id.","operationId":"apple_purchase_setup_api_billing_apple_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Apple Purchase Setup Api Billing Apple Get"}}}}}},"post":{"summary":"Apple Purchase","description":"A StoreKit 2 transaction the app just bought or restored (§657). The\nJWS is checked against Apple's pinned root, and its `appAccountToken`\nmust be this account's - a transaction from somebody else's phone buys\nnothing.","operationId":"apple_purchase_api_billing_apple_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleTransactionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Apple Purchase Api Billing Apple Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/apple/notifications":{"post":{"summary":"Apple Notifications","description":"App Store Server Notifications v2 (§657): renewals, lapses, refunds.\nSigned or refused; the transaction inside decides the plan.","operationId":"apple_notifications_api_billing_apple_notifications_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Apple Notifications Api Billing Apple Notifications Post"}}}}}}},"/api/billing/fam":{"get":{"summary":"Fam Plan Read","description":"The FAM plan's people, for its payer; or whose plan this account is on.","operationId":"fam_plan_read_api_billing_fam_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Fam Plan Read Api Billing Fam Get"}}}}}}},"/api/billing/fam/invite":{"post":{"summary":"Fam Plan Invite","operationId":"fam_plan_invite_api_billing_fam_invite_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Fam Plan Invite Api Billing Fam Invite Post"}}}}}}},"/api/billing/fam/join":{"post":{"summary":"Fam Plan Join","operationId":"fam_plan_join_api_billing_fam_join_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FamJoinRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Fam Plan Join Api Billing Fam Join Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/fam/leave":{"post":{"summary":"Fam Plan Leave","operationId":"fam_plan_leave_api_billing_fam_leave_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Fam Plan Leave Api Billing Fam Leave Post"}}}}}}},"/api/billing/fam/{member}":{"delete":{"summary":"Fam Plan Remove","description":"The payer takes somebody off their FAM plan.","operationId":"fam_plan_remove_api_billing_fam__member__delete","parameters":[{"name":"member","in":"path","required":true,"schema":{"type":"string","title":"Member"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fam Plan Remove Api Billing Fam  Member  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voices":{"get":{"summary":"Voices","description":"Voices this server can speak in, best first, and this listener's.\n\n`selected` is the voice their searches are spoken in (§147) - chosen on\nthe search page or under Listening in Settings, and nowhere else. Every\nother surface is spoken in a voice drawn from the bank per episode, so\nthis is the only voice a listener ever picks.","operationId":"voices_api_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Voices Api Voices Get"}}}}}}},"/api/voices/choice":{"post":{"summary":"Choose Voice","description":"Keep the voice this listener's searches are spoken in (§147).\n\nKept on the listener's server-minted id, account or not: it is a setting\nabout how search sounds, not something the ranker learns from.","operationId":"choose_voice_api_voices_choice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceChoice"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Choose Voice Api Voices Choice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/totals":{"get":{"summary":"Admin Totals","description":"The totals about groups of listeners (§415): only cells of 100 or more,\nnever a person. Admin only.","operationId":"admin_totals_api_admin_totals_get","parameters":[{"name":"week","in":"query","required":false,"schema":{"type":"string","default":"","title":"Week"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Totals Api Admin Totals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/voices":{"get":{"summary":"Admin Voices","description":"The voice bank as stored. Admin only, like `/api/usage`.","operationId":"admin_voices_api_admin_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Voices Api Admin Voices Get"}}}}}},"post":{"summary":"Admin Add Voice","description":"Add a voice to the bank (§147). `tools/voice_bank.py add` calls this.\n\nA recording that opens in silence or is quiet is trimmed and levelled\nfirst (§328) and `mastered` says by how much; one that passes as it is\nis kept byte for byte and `mastered` is None.","operationId":"admin_add_voice_api_admin_voices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankVoiceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Add Voice Api Admin Voices Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/voices/{slug}":{"delete":{"summary":"Admin Remove Voice","description":"Take a voice out of the bank. Episodes already given it keep their\nkept audio; a play that needs it voiced again draws another (§147).","operationId":"admin_remove_voice_api_admin_voices__slug__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Remove Voice Api Admin Voices  Slug  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/local-news":{"get":{"summary":"Admin Local News","description":"The local news collector (§194): every outlet, its state and why,\ntroubled ones first, and the totals. Admin only.","operationId":"admin_local_news_api_admin_local_news_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Local News Api Admin Local News Get"}}}}}}},"/api/admin/local-news/outlets":{"post":{"summary":"Admin Add Local Outlet","description":"File an outlet for a town or county. Its feed is found on the next\npoll; nothing else needs saying. Admin only.","operationId":"admin_add_local_outlet_api_admin_local_news_outlets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalOutletRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Add Local Outlet Api Admin Local News Outlets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/local-news/exclude":{"post":{"summary":"Admin Exclude Local Outlet","description":"Never read this publisher again - for a publisher who objects.\nAdmin only.","operationId":"admin_exclude_local_outlet_api_admin_local_news_exclude_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalExcludeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Exclude Local Outlet Api Admin Local News Exclude Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations":{"get":{"summary":"Admin Pronunciations","description":"How the voice says hard names (§165): every respelling on file, and\nwho said it - the brief, the writer, or an admin. Admin only.","operationId":"admin_pronunciations_api_admin_pronunciations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Pronunciations Api Admin Pronunciations Get"}}}}}},"post":{"summary":"Admin Set Pronunciation","description":"Fix how the voice says one name. An admin's respelling is never\nreplaced by a model's, and applies from the next sentence spoken.","operationId":"admin_set_pronunciation_api_admin_pronunciations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PronunciationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Set Pronunciation Api Admin Pronunciations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/hear":{"post":{"summary":"Admin Hear Pronunciation","description":"Say one word with the production voice, hear it back with a phoneme\nrecogniser, and compare (§325, `voice_check.py`). Returns the audio too,\nso a person can judge what the comparison only estimates. Changes\nnothing in the lexicon.","operationId":"admin_hear_pronunciation_api_admin_pronunciations_hear_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HearRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Hear Pronunciation Api Admin Pronunciations Hear Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/flags":{"post":{"summary":"Admin Flag Pronunciations","description":"Find the respellings worth a listen (§707, `pronounce_flags.py`):\ncode reads every one now; `hear` and `agent` start the voice's and\nHermione's reads in the background. Changes no respelling.","operationId":"admin_flag_pronunciations_api_admin_pronunciations_flags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlagRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Flag Pronunciations Api Admin Pronunciations Flags Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/verdict":{"post":{"summary":"Admin Pronunciation Verdict","description":"What an admin heard of one name's respelling as it stands (§707):\n\"right\" retires its flags, \"wrong\" keeps it in the queue until the\nrespelling changes. The respelling itself is untouched.","operationId":"admin_pronunciation_verdict_api_admin_pronunciations_verdict_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerdictRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Pronunciation Verdict Api Admin Pronunciations Verdict Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/hear-sentence":{"post":{"summary":"Admin Hear In Sentence","description":"Say one name inside a sentence, as an episode would (§707): the\nsentence it was last met in, else a fixed one. A word alone is where\nthis voice garbles most, so this is the audio to judge by. Keeps\nnothing.","operationId":"admin_hear_in_sentence_api_admin_pronunciations_hear_sentence_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HearRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Hear In Sentence Api Admin Pronunciations Hear Sentence Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/hear-all":{"post":{"summary":"Admin Hear All Pronunciations","description":"Hear every name on file in the background (§325), the ones never\nheard first; at most `voice_check.MAX_PER_RUN` a run.","operationId":"admin_hear_all_pronunciations_api_admin_pronunciations_hear_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Hear All Pronunciations Api Admin Pronunciations Hear All Post"}}}}}}},"/api/admin/hard-words":{"get":{"summary":"Admin Hard Words","description":"Words in recent episodes the voice may not know (§325,\n`hard_words.py`): not in the CMU pronouncing dictionary and not\nrespelled, most used first, with what the voice was heard to say.","operationId":"admin_hard_words_api_admin_hard_words_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Hard Words Api Admin Hard Words Get"}}}}}}},"/api/admin/hard-words/scan":{"post":{"summary":"Admin Scan Hard Words","description":"Read recent episodes for words the voice may not know, in the\nbackground. Never on an episode's path.","operationId":"admin_scan_hard_words_api_admin_hard_words_scan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Scan Hard Words Api Admin Hard Words Scan Post"}}}}}}},"/api/admin/hard-words/ok":{"post":{"summary":"Admin Hard Word Ok","description":"An admin heard this word and it is fine: never listed again.","operationId":"admin_hard_word_ok_api_admin_hard_words_ok_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HearRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Hard Word Ok Api Admin Hard Words Ok Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/hard-words/hear-all":{"post":{"summary":"Admin Hear Hard Words","description":"Hear the most-used listed words in the background (§325).","operationId":"admin_hear_hard_words_api_admin_hard_words_hear_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Hear Hard Words Api Admin Hard Words Hear All Post"}}}}}}},"/api/admin/pronunciations/wikipedia":{"post":{"summary":"Admin Check Pronunciations","description":"Check every name on file against Wikipedia, in the background\n(10.16 #6). A model's guess Wikipedia disagrees with is replaced; an\nadmin's is only shown beside Wikipedia's. Names checked in the last\nmonth are skipped unless `force`.","operationId":"admin_check_pronunciations_api_admin_pronunciations_wikipedia_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Check Pronunciations Api Admin Pronunciations Wikipedia Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Admin Lookup Pronunciation","description":"How Wikipedia says one name, for the admin's form (10.16 #6). Asks\nnow and keeps the answer; changes nothing in the lexicon.","operationId":"admin_lookup_pronunciation_api_admin_pronunciations_wikipedia_get","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","maxLength":60,"title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Lookup Pronunciation Api Admin Pronunciations Wikipedia Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/{name}":{"delete":{"summary":"Admin Remove Pronunciation","description":"Forget one respelling; the voice reads that name as spelled again.","operationId":"admin_remove_pronunciation_api_admin_pronunciations__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Remove Pronunciation Api Admin Pronunciations  Name  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/export":{"get":{"summary":"Admin Export Pronunciations","description":"Every respelling on file as a CSV, with Wikipedia's reading and a\nsentence each name was met in, for a reviewer outside FAM (§549).","operationId":"admin_export_pronunciations_api_admin_pronunciations_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/pronunciations/review-prompt":{"get":{"summary":"Admin Pronunciation Review Prompt","description":"The fixed prompt that goes with a download (§549).","operationId":"admin_pronunciation_review_prompt_api_admin_pronunciations_review_prompt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Pronunciation Review Prompt Api Admin Pronunciations Review Prompt Get"}}}}}}},"/api/admin/pronunciations/import":{"post":{"summary":"Admin Import Pronunciations","description":"Read a reviewer's CSV into proposals beside what is on file (§549).\nChanges nothing: an admin accepts each one, which saves it as theirs.","operationId":"admin_import_pronunciations_api_admin_pronunciations_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PronunciationUpload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Import Pronunciations Api Admin Pronunciations Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/hear-variants":{"post":{"summary":"Admin Hear Stress Variants","description":"Say one name's respelling four ways - as the voice gets it now, and\nthree spellings that might carry its stress - and hear each back (§549).\nKeeps nothing.","operationId":"admin_hear_stress_variants_api_admin_pronunciations_hear_variants_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StressTrialRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Hear Stress Variants Api Admin Pronunciations Hear Variants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pronunciations/hear-caps":{"post":{"summary":"Admin Hear Caps","description":"Say one word in capitals five ways - letters apart, dotted, the\nletters' names, as written and in ordinary case - and hear each back\n(§567), marking the one the voice is handed today. Keeps nothing.","operationId":"admin_hear_caps_api_admin_pronunciations_hear_caps_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsTrialRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Hear Caps Api Admin Pronunciations Hear Caps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback":{"post":{"summary":"File Feedback","description":"Keep one bug report. The listener comes from the session, never the\nbody, and is recorded only for an account; a guest is paced by session\nand kept anonymous.","operationId":"file_feedback_api_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response File Feedback Api Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback":{"get":{"summary":"Admin Feedback","description":"The inbox: reports newest first, open by default, with both counts.","operationId":"admin_feedback_api_admin_feedback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"open","title":"State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Feedback Api Admin Feedback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feedback/{report_id}/resolve":{"post":{"summary":"Admin Resolve Feedback","description":"Mark a report resolved (or `resolved: false` to open it again). The\nreport is kept either way, with the date it was resolved.","operationId":"admin_resolve_feedback_api_admin_feedback__report_id__resolve_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResolve"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Resolve Feedback Api Admin Feedback  Report Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/surveys":{"get":{"summary":"List Surveys","description":"Every survey as the client draws it, for a client that wants to cache\nthem (iOS). Which one to show is `/api/surveys/offer`'s answer.","operationId":"list_surveys_api_surveys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Surveys Api Surveys Get"}}}}}}},"/api/surveys/offer":{"post":{"summary":"Offer Survey","description":"The survey to show at this moment, or `survey: null`.\n\nAsked by the client when it *can* show one - the app came to the front\nwith nothing playing (`open`), or the What's next card is up\n(`episode_end`) - because an answer here is recorded as offered, and the\nsame survey is not offered again for a day.","operationId":"offer_survey_api_surveys_offer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyOffer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Offer Survey Api Surveys Offer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/surveys/answer":{"post":{"summary":"Answer Survey","description":"Keep one response. Every answer is optional; an empty one is refused\nwith a sentence saying so.","operationId":"answer_survey_api_surveys_answer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyAnswer"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Answer Survey Api Surveys Answer Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/surveys/dismiss":{"post":{"summary":"Dismiss Survey","description":"'Not now': offered again in a day, and never after the third.","operationId":"dismiss_survey_api_surveys_dismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyDismiss"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Dismiss Survey Api Surveys Dismiss Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/surveys":{"get":{"summary":"Admin Surveys","description":"Each survey's tallies: offered, put off, answered, and per question.","operationId":"admin_surveys_api_admin_surveys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Surveys Api Admin Surveys Get"}}}}}}},"/api/admin/surveys/{survey_id}.csv":{"get":{"summary":"Admin Surveys Csv","description":"Every response to one survey, one row each, with the listener id so it\ncan be joined to what they did (Ask the database).","operationId":"admin_surveys_csv_api_admin_surveys__survey_id__csv_get","parameters":[{"name":"survey_id","in":"path","required":true,"schema":{"type":"string","title":"Survey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/report":{"get":{"summary":"Report Options","description":"The reasons a report offers and what happens next, in the server's\nwords so every client lists the same reasons.","operationId":"report_options_api_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Report Options Api Report Get"}}}}}},"post":{"summary":"Report Content","description":"Report something offensive. It is hidden from this listener at once\nand a person reviews it (`moderation.py`).","operationId":"report_content_api_report_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Report Content Api Report Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/block":{"post":{"summary":"Block Person","description":"Block somebody: neither of you sees or reaches the other, and any\nfollow between you ends. They are not told.","operationId":"block_person_api_block_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Block Person Api Block Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Unblock Person","description":"Unblock. Nothing that the block ended - a follow - comes back.","operationId":"unblock_person_api_block_delete","parameters":[{"name":"handle","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unblock Person Api Block Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/blocks":{"get":{"summary":"Blocked People","description":"The people this listener blocked, newest first, for Settings.","operationId":"blocked_people_api_blocks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Blocked People Api Blocks Get"}}}}}}},"/api/admin/reports":{"get":{"summary":"Admin Reports","description":"Content reports, oldest open first: the 24-hour promise is kept from\nthe top of this list.","operationId":"admin_reports_api_admin_reports_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"open","title":"State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reports Api Admin Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/reports/{report_id}/resolve":{"post":{"summary":"Admin Resolve Report","description":"Dismiss, remove the content for everybody, or remove it and suspend\nwhoever posted it. Every open report about the same thing is answered.","operationId":"admin_resolve_report_api_admin_reports__report_id__resolve_post","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Resolve Report Api Admin Reports  Report Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/reports/reinstate":{"post":{"summary":"Admin Reinstate","description":"Lift a suspension.","operationId":"admin_reinstate_api_admin_reports_reinstate_post","parameters":[{"name":"handle","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reinstate Api Admin Reports Reinstate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/script":{"post":{"summary":"Script","operationId":"script_api_script_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Script Api Script Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/client-status":{"get":{"summary":"Client Status","description":"What the server makes of the calling client: supported, deprecated\n(works, suggest an update) or retired (update required). A native app asks\nthis at launch; the answer comes from `releases/registry.json`.","operationId":"client_status_api_client_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Client Status Api Client Status Get"}}}}}}},"/v/{version}":{"get":{"summary":"Web Release Root","operationId":"web_release_root_v__version__get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v/{version}/{name}":{"get":{"summary":"Web Release","description":"A kept web release, served whole against this server (§172).\n\nOnly files the release's manifest lists, and nothing from a retired\nrelease: a retired version is one whose API calls are refused, so serving\nits page would only show a screen that cannot work.","operationId":"web_release_v__version___name__get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string","title":"Version"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/attach":{"post":{"summary":"Attach","description":"Extract a document, photo or link once, when it is added.\n\nDeliberately not on the generation path: reading a PDF or fetching a page\nis a round-trip, and the one thing this product will not spend is seconds\nin front of the first word. Doing it here puts the cost while someone is\nstill typing.\n\n**Only a link is paced as a spend.** A document or a photo is read locally\nand costs no model call and no outbound request, so it takes the reader's\nlimit - the rule this file already applies to `/api/audio`, which asks the\ncache before pacing at all. Pacing them as generations meant attaching two\nfiles in a row - which the interface invites, since a search can carry\nseveral - answered the second one with \"Slow down a moment\", from a button\nthat had just asked for it. A limiter that fires on correct use is not\nprotecting anything.\n\nA link is different and stays paced: it is an outbound fetch of whatever\naddress was typed, which is the one thing here somebody else pays for.","operationId":"attach_api_attach_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Attach Api Attach Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Detach","operationId":"detach_api_attach_delete","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Detach Api Attach Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/topics":{"get":{"summary":"Bank","description":"The whole shared bank, for the mix topic picker.\n\n`ranked` answers the question the picker's own heading was already\nclaiming: it said \"Suggested topics\" over the bank in `topic.id` order,\nwhich is alphabetical by slug and suggests nothing. Ranked, it is the same\nranker every personal rail on myFAM uses - `rank_from_history` over\n`taste`, plus the intro's chosen interests for somebody with no history.\n\n**A sort, never a filter.** The whole bank comes back either way, in a\ndifferent order. A picker that hid what it did not rank would be a picker\nsomebody could not find a topic in, and unlike a rail there is no\n\"somewhere else to look\" - this *is* the list. It also does not exclude\nwhat they have played, which a rail does: wanting a mix of subjects you\nalready like is the entire point of a mix.","operationId":"bank_api_topics_get","parameters":[{"name":"ranked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ranked"}},{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes":{"get":{"summary":"List Mixes","description":"This listener's DailyFAM mixes, each with its topics resolved.\n\nAccount-gated along with the rest of /api/mixes: a mix is a thing the\nlistener made and expects to find again, which is the definition this app\nuses for \"needs an account\". See ACCOUNT_REQUIRED.","operationId":"list_mixes_api_mixes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Mix","operationId":"create_mix_api_mixes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MixRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/fresh":{"get":{"summary":"Fresh Mixes","description":"Which of this listener's mixes have a new edition waiting (§550), and\nthe edition it is - the client draws one dot per edition and clears it\nonce the listener has looked. A guest has no mixes: an empty answer,\nnever a 401, because the tab bar asks on every screen.","operationId":"fresh_mixes_api_mixes_fresh_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Fresh Mixes Api Mixes Fresh Get"}}}}}}},"/api/mixes/sample":{"get":{"summary":"Sample Mix","description":"An example DailyFAM playlist for a listener with no account.\n\nBuilt from the evergreen bank (`topics.GUEST_SAMPLE_MIX`), so a guest sees\nwhat a mix *is* - a name, a handful of briefings and a play button -\ninstead of only a wall. Nothing is stored and nothing is written: each\nitem asks for the bank tile's own question at the browse length, the\nsame episode myFAM's tile is, and a guest's tap on it plays only kept\naudio (see `_guest_play_gated`). Open to everybody; the interface asks for\nit only when `/api/mixes` answered 401.","operationId":"sample_mix_api_mixes_sample_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mixes/{mix_id}":{"patch":{"summary":"Update Mix","operationId":"update_mix_api_mixes__mix_id__patch","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Mix","operationId":"delete_mix_api_mixes__mix_id__delete","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/{mix_id}/open":{"post":{"summary":"Open Mix","description":"The mix's screen was opened, or one of its episodes started (§359).\n\nOpening a **dormant** mix - not played, made or edited in\n`DAILY_EDITION_ACTIVE_HOURS` - writes its episodes in the background, so\nthe seconds spent looking at the list are the writer's. A play stamps\nthe mix (`played_at`), which is what keeps it in the morning edition.\nNever waits on a model call.","operationId":"open_mix_api_mixes__mix_id__open_post","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MixOpenRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follow/mix":{"post":{"summary":"Follow Mix","description":"Make the listener's chosen topics their first mix (§696, the owner:\n\"sign-up interests become a first personal mix in myFAM, ready to play\ndaily\"). Once: a listener who already has any mix keeps what they have.\nPublic, as every new mix is (§697) - but marked as made from what they\nfollow, so while they are in private mode only their followers see it\n(`_mix_shown_to`). Each topic is titled by its own name, so no naming\ncall is made. Its subjects are\nwritten ahead as any saved mix's are (`_write_mix_ahead`).","operationId":"follow_mix_api_follow_mix_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Follow Mix Api Follow Mix Post"}}}}}}},"/api/push":{"get":{"summary":"Push Status","description":"Whether this server sends notifications, its public key if so,\nwhether this listener has anywhere to receive one, and their choices.","operationId":"push_status_api_push_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/push/prefs":{"post":{"summary":"Push Prefs","description":"Change what this listener is told and when (§562).","operationId":"push_prefs_api_push_prefs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushPrefs"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/push/subscribe":{"post":{"summary":"Push Subscribe","operationId":"push_subscribe_api_push_subscribe_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSubscription"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Push Unsubscribe","operationId":"push_unsubscribe_api_push_subscribe_delete","parameters":[{"name":"endpoint","in":"query","required":false,"schema":{"type":"string","maxLength":2048,"default":"","title":"Endpoint"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/recommended":{"get":{"summary":"Recommended Topics","description":"\"Recommended topics\" under a mix, in this listener's order (11.7\npacket: \"based on the topics that the user listens to\").\n\nCatalogue subject ids, best match first, from `topics.rank_catalogue`\nover the same taste profile every rail reads. A sort, never a filter -\nthe whole catalogue comes back - and the client drops what the mix\nalready follows. Open to a guest, who has no history and so gets the\ncatalogue's own order (`personalised` false).","operationId":"recommended_topics_api_mixes_recommended_get","parameters":[{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recommended Topics Api Mixes Recommended Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/{mix_id}/invite":{"post":{"summary":"Invite To Mix","description":"The owner's \"Invite collaborators\" (11.7 packet): the link that makes\nwhoever opens it, signed in, a member of this joint mix. The same link\nevery time until the owner turns it off. A private mix can be joint - an\ninvite is not a listing - so nothing here makes it public.","operationId":"invite_to_mix_api_mixes__mix_id__invite_post","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Invite To Mix Api Mixes  Mix Id  Invite Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Stop Joint Mix","description":"The owner makes the mix theirs alone again: the invite stops working\nand every member is taken off. What they added stays.","operationId":"stop_joint_mix_api_mixes__mix_id__invite_delete","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stop Joint Mix Api Mixes  Mix Id  Invite Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/join":{"post":{"summary":"Join Mix","description":"Open an invite: this listener becomes a member of a joint mix, which\nthen sits in their myFAM beside their own. Needs an account, like any\nmix; opening it twice, or your own, changes nothing.","operationId":"join_mix_api_mixes_join_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Join Mix Api Mixes Join Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/{mix_id}/leave":{"post":{"summary":"Leave Mix","description":"A member takes themselves off a joint mix.","operationId":"leave_mix_api_mixes__mix_id__leave_post","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Leave Mix Api Mixes  Mix Id  Leave Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/j/{token}":{"get":{"summary":"Open Mix Invite","description":"Where an invite link lands: the app, which joins the mix once the\nreader is signed in (`openLinkedJoin`).","operationId":"open_mix_invite_j__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/public":{"get":{"summary":"Public Mixes","description":"Other listeners' public mixes, for the search bar at the top of DailyFAM.\n\nEmpty `q` is every public mix, most recently changed first - what the bar\nshows the moment it is tapped. Otherwise each word must be found in the\nmix's name, a topic in it, or its owner's name or handle\n(`mixes.match_score`), so \"gym\", \"AI updates\" and \"@sam\" all work.\n\nNot account-gated: finding and hearing a mix needs no account, the same\nas every other listening surface. Adding one does.","operationId":"public_mixes_api_mixes_public_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":80,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Mixes Api Mixes Public Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/public/{mix_id}":{"get":{"summary":"Public Mix","description":"One public mix, for a search result opened or a shared link followed.\nA private mix answers exactly like one that does not exist.","operationId":"public_mix_api_mixes_public__mix_id__get","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Mix Api Mixes Public  Mix Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/{mix_id}/add":{"post":{"summary":"Add Public Mix","description":"The (+) on somebody else's mix: put it in this listener's DailyFAM.","operationId":"add_public_mix_api_mixes__mix_id__add_post","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Public Mix Api Mixes  Mix Id  Add Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Remove Public Mix","description":"The same (+) tapped again: take that mix back out of this listener's\nDailyFAM. `mix_id` is the original's, as on the add.","operationId":"remove_public_mix_api_mixes__mix_id__add_delete","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Public Mix Api Mixes  Mix Id  Add Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/{mix_id}/share":{"post":{"summary":"Share Mix","description":"Share a whole mix: the link and the words, per destination.\n\nThe same destinations and the same hand-off rules as sharing an episode\n(`sharing.render_mix`), and the same promise - FAM posts nothing and holds\nno token. **Only a public mix can be shared**, because the link opens it\nfor whoever follows it; the interface asks before making a private one\npublic rather than doing it quietly.","operationId":"share_mix_api_mixes__mix_id__share_post","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Share Mix Api Mixes  Mix Id  Share Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/{mix_id}/card":{"get":{"summary":"Mix Card","description":"The story image for a shared mix, as SVG - see `share_card`.","operationId":"mix_card_api_mixes__mix_id__card_get","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/@{handle}":{"get":{"summary":"Open Profile Link","description":"A profile's own link, `familiarize.net/@handle` (§669): for meeting\nsomebody in person - texted, or read off a screen. Like a mix link it is\nthe app, opened on that profile (`/?person=`); whether the handle is\nanybody, and whether the asker may see them, is `/api/person`'s to say,\nso this answers the same for every handle and tells a guest nothing.","operationId":"open_profile_link___handle__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/{mix_id}/preview.jpg":{"get":{"summary":"Mix Preview","description":"The square picture a pasted playlist link previews with (§741).\nPublic, like the link: Messages and the rest have no account.","operationId":"mix_preview_api_mixes__mix_id__preview_jpg_get","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}},{"name":"d","in":"query","required":false,"schema":{"type":"string","maxLength":10,"default":"","title":"D"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mixes/{mix_id}/wide.jpg":{"get":{"summary":"Mix Wide","description":"The wide card for Facebook's crawler (§621, §741). Public.","operationId":"mix_wide_api_mixes__mix_id__wide_jpg_get","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}},{"name":"d","in":"query","required":false,"schema":{"type":"string","maxLength":10,"default":"","title":"D"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/m/{mix_id}":{"get":{"summary":"Open Shared Mix","description":"Where a shared playlist link lands (§741).\n\n**Somebody the app is open to gets the app**, opened on the playlist,\nlive: today's edition, with the (+) that adds it. **Anyone else gets a\npage** - a guest, somebody on the waitlist, and every link previewer,\nwhich has no account: the head names the playlist and its picture, and\nthe body is the edition the link was shared on (`?d=`), of which one\nepisode whose audio is already kept may be played, and then \"Hear more\non FAM\". A private or deleted playlist is a page saying so, never the\nfront door of an app the person did not ask for.","operationId":"open_shared_mix_m__mix_id__get","parameters":[{"name":"mix_id","in":"path","required":true,"schema":{"type":"string","title":"Mix Id"}},{"name":"d","in":"query","required":false,"schema":{"type":"string","maxLength":10,"default":"","title":"D"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/consent":{"get":{"summary":"Consent Read","description":"What this listener was asked and what they said, with the words every\nclient shows, so the app and the web say the same thing.","operationId":"consent_read_api_consent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Consent Read Api Consent Get"}}}}}},"post":{"summary":"Consent Write","description":"Record a yes or a no. Withdrawing is the same call with `allow: false`.","operationId":"consent_write_api_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Consent Write Api Consent Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/preferences":{"get":{"summary":"Read Preferences","description":"What is on offer, and what this listener chose.\n\nThe *choices* are public - the intro is shown before anyone has an account,\nand a picker that cannot list its own options is no picker. What was chosen\ncomes back only for an account, and `saved` says which of the two the\ncaller is looking at, so the interface can tell the listener the truth\nabout whether their answers are being kept.","operationId":"read_preferences_api_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Write Preferences","description":"Store the intro's answers. Account only - see ACCOUNT_REQUIRED.","operationId":"write_preferences_api_preferences_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follow/tree":{"get":{"summary":"Follow Tree","description":"What the follow screen offers (§696): the general topics, the larger\nsubjects under each, and what is under those. The shared vocabulary -\nnothing of the listener in it, no model, no network.","operationId":"follow_tree_api_follow_tree_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Follow Tree Api Follow Tree Get"}}}}}}},"/api/follow/popular":{"get":{"summary":"Follow Popular","description":"The first run's \"Popular on FAM\" (§735): the topics most followed\nhere, each by at least `POPULAR_TOPIC_FOLLOWERS` accounts - a count of\nchoices, never anybody's name. Empty on a young deployment, and the\npicker then says nothing is popular rather than calling a list so.","operationId":"follow_popular_api_follow_popular_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Follow Popular Api Follow Popular Get"}}}}}}},"/api/follow/preview":{"post":{"summary":"Follow Preview","description":"The Made for you tiles these choices would lead with, before they\nare saved (§696): `topics.follow_preview`, what the rail leads with -\nthe watcher's events and live stories naming a chosen subject (§720:\nthe composed \"What's New This Week\" tiles are off the rail). Read from\nmemory; nothing is written, logged or generated.","operationId":"follow_preview_api_follow_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowPreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Follow Preview Api Follow Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follow/suggest":{"get":{"summary":"Follow Suggest","description":"The one subject worth offering to follow after a search, or none\n(§696). Never one already followed; nothing for a guest, whose choices\nare not kept. No model call.","operationId":"follow_suggest_api_follow_suggest_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"What was just searched","default":"","title":"Q"},"description":"What was just searched"},{"name":"subject","in":"query","required":false,"schema":{"type":"string","maxLength":80,"description":"The episode's subject, from /api/next","default":"","title":"Subject"},"description":"The episode's subject, from /api/next"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Follow Suggest Api Follow Suggest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follow":{"post":{"summary":"Follow Topic","description":"Follow one more topic, from anywhere in the app (§696): added to the\nlistener's chosen topics, which never fade (`rule:interests-constant`),\nand logged as a pick as a save from the follow screen is.","operationId":"follow_topic_api_follow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__FollowRequest__2"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Follow Topic Api Follow Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/explore/live":{"get":{"summary":"Explore Live","description":"The top of Explore (§726): a Sports rail above a Markets rail, each\nthe listener's followed teams or stocks first, then what is popular\n(`topics.score_rails`). Read from memory - the held pool and the\nmarkets sweep's quotes - so the page never waits on an outside\nservice, and nothing here asks one (`rule:sweep-on-demand`).","operationId":"explore_live_api_explore_live_get","parameters":[{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Explore Live Api Explore Live Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/live/now":{"get":{"summary":"Live Now","description":"Scores, game lines and prices for a page already on screen (§747):\n`topics.live_now`. The web asks every `LIVE_POLL_MS` while DailyFAM is\nin front, the app as often; read from memory, so nothing here asks an\noutside service (`rule:sweep-on-demand`).","operationId":"live_now_api_live_now_get","parameters":[{"name":"ids","in":"query","required":false,"schema":{"type":"string","maxLength":4000,"default":"","title":"Ids"}},{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Live Now Api Live Now Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/teams/search":{"get":{"summary":"Teams Search","description":"The search beside Explore's Sports rail (§731, the 12.01 packet:\n\"a button even with the word sports where a person can search any team\nthey want and favorite them\"). Every seeded major-league team\n(`category_seed.all_teams`) whose words begin with what was typed, the\nones they already follow lit. The tree's own list: no network, no\nmodel. A team outside the seed is not offered, because following it\nwould put nothing on the rail (`rule:no-dead-controls`). Since §746 the\nsoccer clubs, the WNBA and every college the scoreboard names are\noffered too (`followable_teams.known`, memory only): following one now\nputs its games on the rail.","operationId":"teams_search_api_teams_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":60,"default":"","title":"Q"}},{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Teams Search Api Teams Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/markets/search":{"get":{"summary":"Markets Search","description":"The search beside Explore's Markets rail (§731, the 12.01 packet: \"a\nsearch button ... where someone can search for any stock price\").\nTiingo's own search for the listing (never a guessed ticker, §88), then\nthe top rows' prices in one IEX request; a symbol the sweep priced\nrecently is read from memory instead. Each row says whether it can be\nfollowed (a company, not a fund) and whether it is. Asked only when a\nlistener types; kept a day per query, prices a minute.","operationId":"markets_search_api_markets_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":40,"default":"","title":"Q"}},{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Markets Search Api Markets Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/follow/remove":{"post":{"summary":"Unfollow Topic","description":"Stop following one topic (§731, the 12.01 packet: a card's star\n\"is then unselected if pressed again\"). Every chosen topic that names\nthe same thing goes - \"Nvidia\" and \"nvidia\" are one - and nothing\nelse; a team followed only as part of a wider choice (\"Boston sports\")\nis still followed, and `following` says so.","operationId":"unfollow_topic_api_follow_remove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__FollowRequest__2"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Unfollow Topic Api Follow Remove Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nextup":{"get":{"summary":"Next Up","description":"The four tiles the post-episode popup offers.\n\nCosts no model call - it ranks the same inventory myFAM does, seeded with\nwhat just finished. See topics.rank_next_up for why this is the feed's\nranker rather than a second one, and `topics.browse_inventory` for why\n\"the same inventory\" is a per-listener answer rather than a fixed bank.","operationId":"next_up_api_nextup_get","parameters":[{"name":"topic_id","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"Topic Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":300,"description":"What the finished episode asked","default":"","title":"Q"},"description":"What the finished episode asked"},{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/myfam/section":{"get":{"summary":"Myfam Section","description":"One myFAM rail, at full length, for the screen behind its \"View more\".\n\n**Made for you's cycle** (`cycle=cached`, §286, the owner 10.16): the\nscreen opens on the rail's own tiles (the client holds them and sends\ntheir ids in `seen`), and everything this endpoint deals after them -\nthe rest of the first page and every Refresh - is an episode already\nwritten, on the listener's topics, so nothing on this screen past the\nrail can cause one to be written. When those run out the page is empty\nand `caught_up`, never the first page again. An installed client that\nsends no `cycle` gets what it always got.\n\nWith `page_size` (the app sends `topics.VIEW_MORE_PAGE`, sixteen) it is one\npage of that length: the first tiles of the ranking not in `seen`, which\nis how the screen's refresh deals a page of new ones (§165). Without it, the\nwhole list, as before.\n\nCosts no model call and cannot cause one: this reorders the same fixed\nbank `build_feed` does. Which is the answer to \"how do we fill a whole\nscreen without making episodes nobody asked for\" - the tiles were always\nthere, the rail just showed six of them.\n\nEach tile also says whether its script is **already written**. That is the\nother half of the same answer: a cached tile costs a listener nothing but\nthe audio, so the screen leads with those and says so. It is one local\nSQLite read per tile - the same probe the pacing path already does - and\nnever a model call, so marking them is as free as ranking them.","operationId":"myfam_section_api_myfam_section_get","parameters":[{"name":"key","in":"query","required":true,"schema":{"type":"string","maxLength":32,"title":"Key"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}},{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":40,"minimum":0,"default":0,"title":"Page Size"}},{"name":"seen","in":"query","required":false,"schema":{"type":"string","maxLength":6000,"default":"","title":"Seen"}},{"name":"cycle","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"","title":"Cycle"}},{"name":"taken","in":"query","required":false,"schema":{"type":"string","maxLength":4000,"default":"","title":"Taken"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/listened":{"get":{"summary":"Listened","description":"**Who of your friends listened**, on the player (the owner's 11.11\nnote): the same faces a DailyFAM card shows (`_mark_friends_listened`),\nfor whatever episode is playing, matched by its normalised question the\nway every listen count is. Friends only, an account only, and an empty\nanswer rather than an error: social proof is never worth a page. It\nanswers any question, so a friend's own search shows only if their\nsearches are public (§282) - or anyone could learn what a friend\nsearched by searching it.","operationId":"listened_api_listened_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":600,"description":"The episode's question","default":"","title":"Q"},"description":"The episode's question"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/episode/card":{"get":{"summary":"Episode Card","description":"What the player draws around an episode (§190): its picture, and who\nsearched it.\n\n* `thumb` - the picture for the episode's words, drawn behind the title\n  (`thumbnails.pick_for_player`): the tile's own, else one borrowed from\n  its branch, its facet or a stable choice, so a searched episode never\n  plays over an empty screen. \"\" only when nothing is approved.\n* `fallback` - True when `thumb` was borrowed; the client asks again\n  once the writer's title lands.\n* `searcher` - the handle of the listener whose search wrote it, **only\n  when they have turned on `searches_public`** and it is not the asker:\n  what somebody searched is theirs unless they say otherwise\n  (`op-friend-profile`). Authorship is provenance (`scripts.author`,\n  never in the key); this is the one place it is shown, by the author's\n  choice, and the response carries no id.\n\n`minutes`, `episode` and `context` (all optional) say which episode\nthis is, so its own category picks the picture, as it does on the tile\nthat opened it (§209) - while it is still being written, the category\non its live track (`_playing_category`). `placed` says the picture came\nfrom that category rather than from the words, and the player lets it\nreplace one matched off the words.\n\n`shown` (optional, §751) is the picture the player is showing from the\ntile that opened it. `keeps` says whether that picture is on the placed\nepisode's own branch (`thumbnails.on_branch`): True, the tile's picture\nstays (§742); False, the episode turned out to be about something else\nand the player takes `thumb`. Absent for a picture not placed, or when\nnothing was shown, so an older client reads what it always read.\n\nReads the cache and the profile store; no model call.","operationId":"episode_card_api_episode_card_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":300,"default":"","title":"Q"}},{"name":"title","in":"query","required":false,"schema":{"type":"string","maxLength":300,"default":"","title":"Title"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":0,"default":0,"title":"Minutes"}},{"name":"episode","in":"query","required":false,"schema":{"type":"string","maxLength":80,"default":"","title":"Episode"}},{"name":"context","in":"query","required":false,"schema":{"type":"string","maxLength":300,"default":"","title":"Context"}},{"name":"shown","in":"query","required":false,"schema":{"type":"string","maxLength":400,"default":"","title":"Shown"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Episode Card Api Episode Card Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/episode/topic":{"get":{"summary":"Episode Topic","description":"What TOPIC an episode falls into, for the player's (+) (§181).\n\nThe (+) adds the episode's *topic* to a DailyFAM mix - a mix follows\nsubjects, never episodes (§137) - so the answer is a mix entry exactly as\n`PATCH /api/mixes/{id}` takes it: a followed subject (`f:nfl`,\n`f:nfl~Eagles`, from `topics.episode_subject`), or, when the episode names\nno subject the catalogue knows, the episode's title as a typed topic.\n`label` is what the sheet says: \"Add [label] to a DailyFAM mix\".\nWords in, words out: no model call, no cache read.","operationId":"episode_topic_api_episode_topic_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":300,"default":"","title":"Q"}},{"name":"title","in":"query","required":false,"schema":{"type":"string","maxLength":300,"default":"","title":"Title"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Episode Topic Api Episode Topic Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/myfam/search":{"get":{"summary":"Myfam Search","description":"myFAM's search button (§181): the cached episodes, made by other\nlisteners, most like what was typed.\n\nA read of the shared cache and nothing else - like Explore it cannot\ncause anything to be written, and a result is played replay-only. Every\nsurface's episodes are searched (a myFAM tile somebody else tapped is as\nmuch \"made by others\" as a search), the listener's own are left out, as\nExplore leaves them out, and archived rows never appear (`recent`).\nRanked by `cache.rank_similar`.","operationId":"myfam_search_api_myfam_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":12,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Myfam Search Api Myfam Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/myfam/catalog":{"get":{"summary":"Myfam Catalog","description":"Search DailyFAM before anything is typed (10.2 feedback): every cached\nepisode other listeners made, A to Z by title, each with the `letter` it\nis filed under, so the screen is a catalogue to scroll rather than an\nempty box.\n\nThe same rows and the same rules as `/api/myfam/search` - a read of the\nshared cache, the listener's own left out, archived rows never, played\nreplay-only - in a different order. One row per title: two keys that\nturned out to be the same episode (`title-from-content`) are one entry,\nthe most played.","operationId":"myfam_catalog_api_myfam_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Myfam Catalog Api Myfam Catalog Get"}}}}}}},"/api/categories":{"get":{"summary":"List Categories","description":"Every category a listener can follow on myFAM, and the ones they do.\n\nThe eight facets, each with the tree's first level under it, and `all`:\nevery node with its path, for the picker's search (\"NFL\" is three levels\ndown). `mine` is what this listener follows, each with how many episodes\nwere made in it today. Following is kept for an account (`saved`), like\na mix; anybody may browse.","operationId":"list_categories_api_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Categories Api Categories Get"}}}}}}},"/api/categories/mine":{"post":{"summary":"Follow Categories","description":"Keep the categories this listener follows. Account only - what is\nkept is what an account is for. Writes no event: following a category\nis a list to browse, never a taste signal (§229).","operationId":"follow_categories_api_categories_mine_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryFollowRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Follow Categories Api Categories Mine Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/categories/episodes":{"get":{"summary":"Category Episodes","description":"Today's episodes in one category or anything under it (§229).\n\nCached only - this never causes an episode to be written; a tap plays\nwhat is there (`cached_only`). `sort` is `popular` (plays plus the mixes\nthat follow it), `az` (by title, the catalogue's order) or `recent`\n(newest made first). `q` keeps the titles holding every word typed,\nwhole or begun. Screened for the viewer (`_todays_for`).\n`subcategories` are the categories one level down that have something\ntoday, with how many.\n\n**Explore** (§691): `id=all` is every category at once (at most\n`EXPLORE_ALL_LIMIT` rows), and `sort=trending` puts the Trending\nedition's stories first, in the edition's order, then the rest by\npopularity. Every row says whether it is one of them (`trending`) and\ncarries its one line (`hook`); both are new fields (`old-clients`).","operationId":"category_episodes_api_categories_episodes_get","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"title":"Id"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":12,"default":"popular","title":"Sort"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Category Episodes Api Categories Episodes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/welcome":{"get":{"summary":"Welcome Samples","description":"The sign-up screen's samples: the top of \"Most played episodes today\".\n\nThe same ranking as the rail (`topics.rank_most_played`, total listens in\nthe last twenty-four hours), cut to `WELCOME_SAMPLES`, and only episodes\nwhose **audio is kept**: the person reading this screen has no account\nyet, and a tap here must play at once and wake nothing - the guest rule\n(`_guest_play_gated`) applied before the tap rather than after it. Fewer\nthan three is honest; none means the screen shows no samples at all.\nNo model call, no voice, no listener id in the response. The waitlist's\nlanding page shows the same three (§190), so this is open past the gate.","operationId":"welcome_samples_api_welcome_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Welcome Samples Api Welcome Get"}}}}}}},"/api/waitlist/episodes":{"get":{"summary":"Website Episodes","description":"The homepage's playable episodes (§732): each a share - its link, its\nquestion and episode for the player, its title, chip and picture. Open\npast the waitlist gate like everything under `/api/waitlist/`, and the\naudio is a shared episode's, which the gate already lets anybody play.\nNo listener id in the response; nothing generated.","operationId":"website_episodes_api_waitlist_episodes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Website Episodes Api Waitlist Episodes Get"}}}}}}},"/api/explorenew":{"get":{"summary":"Explore New","description":"Explore New: episodes adjacent to a taste rather than inside it.\n\nThis is `rank_might_like`, which has been written and tested since myFAM\nwas built and shown nowhere since its shelf was removed - the only signal\nin the app that offers anything outside an established taste. Giving it a\nsurface of its own is what makes it worth keeping.","operationId":"explore_new_api_explorenew_get","parameters":[{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/myfam":{"get":{"summary":"Myfam","description":"The four myFAM rails, ranked for this listener.\n\n**Costs no model call and cannot cause one.** Both inventories are already\nbuilt - the evergreen bank is fixed, and the live story pool was composed\nin the background by whichever request found it stale - so this reads,\nranks and returns. That is what \"zero queue\" means here: not that the page\nis fast, but that there is no path from opening it to generating anything.\n\nA listener with no history gets the **startup set** on the first rail -\none time-anchored question per facet, ordered by what FAM's listeners\nactually play - with the rails that would have to invent something\n(friends, what went past you) honestly empty rather than filled with\nfakes. `taste_source` says which of the two ordered the first rail. See\n`startup.py`.\n\n`minutes` is accepted and ignored: every myFAM episode is\n`BROWSE_MINUTES` long (§147), and only searchFAM offers a length. It\nmatters because whether a tile's script is already written depends on the\nlength it would be written at.","operationId":"myfam_api_myfam_get","parameters":[{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}},{"name":"shelves","in":"query","required":false,"schema":{"type":"boolean","description":"Also send a row per followed topic (§713)","default":false,"title":"Shelves"},"description":"Also send a row per followed topic (§713)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/event":{"post":{"summary":"Record Event","description":"Log one interaction. Playback never depends on this succeeding.","operationId":"record_event_api_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"post":{"summary":"Set Me","description":"Name, handle and picture for this device. Not an account - see\n/api/profile.\n\n`avatar` is omitted to leave the current one alone and sent as \"\" to take\nit off, which are different requests: a client that simply never sends the\nfield must not silently delete a picture somebody chose.","operationId":"set_me_api_me_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/echo":{"post":{"summary":"Post Echo","description":"Push a finished episode to the people who follow this listener.\n\nCosts nothing to generate: an echo is a row pointing at a query whose\nscript already exists, which is exactly why the social layer is cheap.","operationId":"post_echo_api_echo_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Echo","operationId":"delete_echo_api_echo_delete","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":300,"default":"","title":"Q"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibe/story/{echo_id}":{"delete":{"summary":"Remove From Story","description":"Take one of your own vibes off your story (10.6 packet #1).\n\nOnly the poster's: matched on the id *and* this listener. The vibe stays\non their profile - it is the story that comes down.","operationId":"remove_from_story_api_vibe_story__echo_id__delete","parameters":[{"name":"echo_id","in":"path","required":true,"schema":{"type":"integer","title":"Echo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove From Story Api Vibe Story  Echo Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/story/note":{"post":{"summary":"Post Note","description":"Put your own words on your story, with no episode (the Birthday\npacket, §297). An account's only: a story is drawn on the faces row,\nwhich only accounts have, and what is kept takes an account.","operationId":"post_note_api_story_note_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Post Note Api Story Note Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/story/note/{note_id}":{"delete":{"summary":"Delete Note","description":"Take one of your own notes off your story. A note is only a story, so\ntaking it down deletes it.","operationId":"delete_note_api_story_note__note_id__delete","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"integer","title":"Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Note Api Story Note  Note Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/close-friends":{"get":{"summary":"Close Friends","description":"The people a \"Close Friends\" story can go to, and who is on the list.\n\nEverybody in this listener's graph, close friends first. Settings draws\nit; the list is theirs and is never shown to anybody on it.","operationId":"close_friends_api_close_friends_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Close Friends Api Close Friends Get"}}}}}},"post":{"summary":"Set Close Friend","operationId":"set_close_friend_api_close_friends_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseFriendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Close Friend Api Close Friends Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibe":{"post":{"summary":"Post Vibe","description":"Vibe an episode. The same act as `/api/echo`, under its product name.","operationId":"post_vibe_api_vibe_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Vibe","description":"Take a vibe back. The same act as `DELETE /api/echo`.","operationId":"delete_vibe_api_vibe_delete","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":300,"default":"","title":"Q"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibe/posts":{"get":{"summary":"Vibe Posts","description":"Somebody's vibes as posts (§547), newest first; no handle is your own.\n\nEach post: the vibe (`id`, question, title, length, `at` - the moment it\nwas vibed, which the post shows), its caption, its `line` (`text` and\n`at` in seconds, or null), the picture the player draws, its likes and\nwhether you liked it, how many replies and the one shown under it, and\n`heard` - which of your friends heard the episode, the player's faces\n(§543) with the same caution: a friend's own search counts only if their\nsearches are public. No ids of people anywhere (`listener-id-server`).","operationId":"vibe_posts_api_vibe_posts_get","parameters":[{"name":"handle","in":"query","required":false,"schema":{"type":"string","maxLength":25,"default":"","title":"Handle"}},{"name":"before","in":"query","required":false,"schema":{"type":"number","minimum":0,"default":0.0,"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":12,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Vibe Posts Api Vibe Posts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibe/{echo_id}/like":{"post":{"summary":"Like Vibe Post","description":"Like a vibe's post, or take the like back (§547). An account's: a\nlike is kept, and kept things take one (`account-gates-kept`).","operationId":"like_vibe_post_api_vibe__echo_id__like_post","parameters":[{"name":"echo_id","in":"path","required":true,"schema":{"type":"integer","title":"Echo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VibeLikeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Like Vibe Post Api Vibe  Echo Id  Like Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibe/{echo_id}/replies":{"get":{"summary":"Vibe Replies","description":"A vibe's replies (§547): most liked first, each with its answers -\nthe comments sheet's shape, minus the blocked and the reported.","operationId":"vibe_replies_api_vibe__echo_id__replies_get","parameters":[{"name":"echo_id","in":"path","required":true,"schema":{"type":"integer","title":"Echo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Vibe Replies Api Vibe  Echo Id  Replies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Vibe Reply","description":"Reply under a vibe (§547). An account's, not a suspended one's.","operationId":"post_vibe_reply_api_vibe__echo_id__replies_post","parameters":[{"name":"echo_id","in":"path","required":true,"schema":{"type":"integer","title":"Echo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VibeReplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Vibe Reply Api Vibe  Echo Id  Replies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibe/replies/{comment_id}/like":{"post":{"summary":"Like Vibe Reply","operationId":"like_vibe_reply_api_vibe_replies__comment_id__like_post","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VibeLikeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Like Vibe Reply Api Vibe Replies  Comment Id  Like Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibe/replies/{comment_id}":{"delete":{"summary":"Delete Vibe Reply","description":"Your own reply, or any reply on your own vibe.","operationId":"delete_vibe_reply_api_vibe_replies__comment_id__delete","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Vibe Reply Api Vibe Replies  Comment Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comments":{"get":{"summary":"Episode Comments","description":"An episode's comments, most liked first, each with its replies.","operationId":"episode_comments_api_comments_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":300,"default":"","title":"Q"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Episode Comments Api Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Comment","operationId":"post_comment_api_comments_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Comment Api Comments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comments/{comment_id}/like":{"post":{"summary":"Like Comment","operationId":"like_comment_api_comments__comment_id__like_post","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentLikeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Like Comment Api Comments  Comment Id  Like Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comments/{comment_id}":{"delete":{"summary":"Delete Comment","operationId":"delete_comment_api_comments__comment_id__delete","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Comment Api Comments  Comment Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibes":{"get":{"summary":"My Vibes","description":"Everything this listener has vibed, newest first.\n\nThe profile's \"My Vibe\" shelf. `/api/profile` already returns the first\ntwelve beside everything else it knows; this is the same list on its own,\nso a shelf that wants all of them does not have to fetch a whole profile\nto get them.","operationId":"my_vibes_api_vibes_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":40,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vibes/file":{"post":{"summary":"File Vibe","description":"Put one of this listener's vibes in one of their vibe folders.","operationId":"file_vibe_api_vibes_file_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VibeFileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response File Vibe Api Vibes File Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile":{"get":{"summary":"Profile","description":"Counts and subjects from this listener's own event log. No model call.\n\n`notes=1` is a client that draws a story with no episode (§297).","operationId":"profile_api_profile_get","parameters":[{"name":"notes","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Notes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/stats":{"get":{"summary":"Profile Stats Read","description":"yourFAM's Listening and Rankings tabs (§727): this listener's own\nnumbers for a week, 30 days or all time. Only ever their own - the\nlistener comes from the session, never a parameter - because what\nsomebody has listened to is theirs (`[op-friend-profile]`). Read from\nthe stores; no model call. A guest has nothing kept (`_remembers`).","operationId":"profile_stats_read_api_profile_stats_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","maxLength":8,"default":"month","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/circle":{"get":{"summary":"Circle","description":"The YourFAM avatar row on its own, for the top of the rails screen.\n\nThe 10.2 packet #1: the faces on YourFAM sit at the top of the screen\nthat shows \"DailyFAM\" (code: myFAM, §185), so what friends have vibed is\nseen first thing and scrolled sideways. The same rows as `/api/profile`'s\n`circle` (`_circle_row`), asked separately so the rails never wait on it.\nA guest has no follow graph and gets an empty row - never strangers.\n`notes=1` (a client that draws stories with no episode, §297) also gets\n`me`: your own face, which leads the row with the (+) to your story.","operationId":"circle_api_circle_get","parameters":[{"name":"notes","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Notes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Circle Api Circle Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/progress":{"post":{"summary":"Progress Write","description":"How far through an episode this listener got, kept on their account.\n\nIt was kept in the browser, so it belonged to the phone rather than the\nperson: it survived a log-out, and the next person on that device was\noffered somebody else's half-heard episodes (§127). A guest's is accepted\nand dropped rather than refused, like `/api/event`, because this is sent\nfrom a playback timer and a timer must never surface an error.","operationId":"progress_write_api_progress_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgressRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Progress Write Api Progress Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Progress","description":"Which of the loading screen's steps the episode being made has finished.\n\nThe audio response cannot carry this: its status line is only sent once\nthe first audio exists, which is after every step. So the loading screen\nasks here while it waits, the same side channel `/api/transcript` and\n`/api/next` already use, keyed the same way.\n\n`steps` is four booleans in waiting order - the brief, the retrieval, the\nwriter's planning, the first sentence written - each set from the mark\nthe pipeline records when that step really finishes, never from a\ntimer. `cached` means the episode is a replay with nothing to write.\n`known` False means this worker is not making it; the interface then\nwalks the list when the audio arrives, since audio means all of it\nhappened.\n\n**It never generates** - it reads the live track and nothing else.","operationId":"progress_api_progress_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"What the listener asked","title":"Q"},"description":"What the listener asked"},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}},{"name":"context","in":"query","required":false,"schema":{"type":"string","description":"Topic the listener just heard","default":"","title":"Context"},"description":"Topic the listener just heard"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Search"}},{"name":"surface","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"","title":"Surface"}},{"name":"topic_id","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"Topic Id"}},{"name":"reading","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Reading"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/history":{"post":{"summary":"History Write","description":"An episode started playing; put it in Recent listening history (§142).\n\nSent by the client at first audio, because only the client knows which\nsurface the tap came from - `/api/audio` sees myFAM and DailyFAM as the\nsame request. Explore is refused by the store, not trusted to the client.\nA guest's is accepted and dropped, like `/api/progress`: history is kept\non an account, and a playback timer must never surface an error.","operationId":"history_write_api_history_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response History Write Api History Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"History Read","description":"Two weeks of listening, newest first, optionally one surface only.","operationId":"history_read_api_history_get","parameters":[{"name":"surface","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"","title":"Surface"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response History Read Api History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/godeeper":{"get":{"summary":"Go Deeper","description":"\"Pick up where you left off\": two things, and nothing else.\n\n1. **Episodes started in the last day and under 60% heard** (`resume`).\n2. **The Go Deeper prompt of an episode finished in the last day**\n   (`threads`) - exactly the follow-up the player's Go Deeper button\n   would have offered on it, so the tile is that episode.\n\nIt used to top itself up with \"similar\" episodes from the feed's next-up\nranking, seeded with the last thing heard. Those were adjacent rather than\ndeeper - a different subject in the same facet - so they are gone, at the\nowner's direction. **Fewer than four is the honest answer** when fewer\nthan four qualify, and a tile closed with its X is replaced only by\nanother that qualifies. `similar` stays in the response, always empty, so\na client that still reads it draws nothing rather than failing.\n\n**Only for an account**, on the same rule as the event log: what somebody\nwas halfway through is part of what FAM remembers about them, and a guest\nsession is a device rather than a person.\n\nCosts nothing: every line here is read, never written. `interests` is\naccepted and unused, for clients that still send it.","operationId":"go_deeper_api_godeeper_get","parameters":[{"name":"interests","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Interests"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/godeeper/dismiss":{"post":{"summary":"Dismiss Go Deeper","description":"The X on a \"Pick up where you left off\" tile: never offer that\nquestion there again. Account only, like the section itself.","operationId":"dismiss_go_deeper_api_godeeper_dismiss_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rate":{"post":{"summary":"Rate Episode","description":"Like or dislike an episode, or take the thumb back (§134).\n\nExplore's thumbs. Costs nothing and generates nothing - a row beside the\nvibe it sits next to on the card, keyed the same way. Returns the card's\nfresh counts so the buttons redraw from the server's numbers rather than\nfrom a guess about everybody else's.","operationId":"rate_episode_api_rate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/episode/stats":{"get":{"summary":"Episode Stats","description":"Plays, vibes, likes and dislikes for one episode, right now (§134).\n\nWhat an Explore card re-reads once its episode has started, so the play\ncount in its corner includes the play that is happening instead of being\na number from whenever the feed was fetched. `key` is the card's own cache\nkey; without one the play count is 0 rather than a guess.","operationId":"episode_stats_api_episode_stats_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":300,"title":"Q"}},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}},{"name":"key","in":"query","required":false,"schema":{"type":"string","maxLength":128,"default":"","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/searches/trending":{"get":{"summary":"Trending Searches","description":"The most searched questions of the last two hours, in order (§190).\n\nDrawn under the search box, so a tap is a search that lands on an\nepisode already written. **Ranked by how many listeners searched it in\n`TRENDING_SEARCHES_WINDOW`** (the owner's, §190; it was most played,\n§182) - distinct listeners, so one person searching the same thing ten\ntimes is one search - with plays breaking ties. **Only what is current**\n(`ttl_for`): a search whose episode a new request would not be served is\nnever offered, which is what keeps a score or a game update off this list\n- an episode built on a sports game that is not over is never current\n(`cache.ttl_for`'s sports rule). Searched episodes only, like Explore; no\nattachment is ever cached, a swearing episode is left off, and an empty\nlist is a fact about the deployment, never filled with anything else.\n\nReads the cache and the event log and nothing else: it costs nothing and\ngenerates nothing.","operationId":"trending_searches_api_searches_trending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Trending Searches Api Searches Trending Get"}}}}}}},"/api/explore":{"get":{"summary":"Explore","description":"Episodes other listeners have already generated, newest first.\n\nThis endpoint costs nothing and, by design, can cause nothing to be\ngenerated: it reads finished scripts out of the cache. Everything in that\ncache passed the personal-query filter before it was written, so it is\nalready safe to show someone else.\n\n**Other people's, and only other people's.** An episode this listener\ngenerated is dropped from their own feed, because Explore's entire premise\nis that these are somebody else's questions - and their own coming back at\nthem reads as the app having nothing to show rather than as a feature.\nIt is a display filter: the entry stays in the shared cache, still replays\ninstantly for them anywhere else, and still appears on everyone else's\nfeed. Entries written before authorship was recorded have no author and\nare shown to everybody, which is what they were already doing.\n\n**The dropdown under the wordmark** (10.12 packet #2, the owner's\nsketch) picks the `feed`: `searching` (What people are searching - the\ndefault, everything below), `made_for_you` and `trending` (that myFAM\nrail's tiles whose episode is already cached, in the rail's order),\n`recent` (every surface's cached episodes, newest first) and `catalog`\n(Explore: the whole cached catalogue, which the client shuffles). Every\nfeed is the shared cache and nothing else - none can cause an episode\nto be written - and none holds the listener's own. `all` (10.31\nnotebook) is every one of them in one shuffled deal\n(`_explore_all_entries`).\n\n**And searched episodes only** (§147). Every surface writes into the one\nshared cache, and Explore is what other listeners *searched* - never a\nmyFAM tile, a DailyFAM edition, a Trending episode or a prefetch guess.\n`scripts.origin` says which surface wrote an entry; one written before\nthat column existed says nothing and is left off.","operationId":"explore_api_explore_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":60,"minimum":1,"default":30,"title":"Limit"}},{"name":"feed","in":"query","required":false,"schema":{"type":"string","maxLength":16,"default":"searching","title":"Feed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/interest":{"get":{"summary":"Interest Episodes","description":"Episodes on one interest, freshest first. **Generates nothing.**\n\nThe Topic screen behind every interest chip on YourFAM, a friend's\nprofile and a chat header. Three inventories, in freshness order: the\nlive story pool, then finished episodes in the shared cache (anybody's -\nthis is a place a listener went looking, like Explore New), then the\nevergreen bank as the tail, because a standing explainer is on-topic but\nis never the freshest thing. `filter=friends` is what their circle\nvibed, and nothing else - the one row that can be empty for a reason\nabout people rather than about content, and it says so.\n\nEvery card is a question and its original length. The screen plays it at\nthe length its own pill is set to, which is the spec's point: the pill\nsets how long a generated episode is, it does not filter by duration.","operationId":"interest_episodes_api_interest_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Id"}},{"name":"label","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Label"}},{"name":"filter","in":"query","required":false,"schema":{"type":"string","pattern":"^(latest|friends)$","default":"latest","title":"Filter"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":24,"minimum":1,"default":6,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Interest Episodes Api Interest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sources":{"get":{"summary":"Episode Sources","description":"Who this episode's facts came from.\n\nRead from the cache under the same key the script is stored under, which\nis why it works on a replay: a cached episode has no `notes` to rebuild\nprovenance from, so it is stored beside the sentences like `thread` is.\n\n**Nothing here has ever been in a prompt.** The evidence packet carries\ngrades and never hostnames, deliberately - a domain in the packet is a\ndomain the voice can read out. This is the display channel, and it must\nstay separate: showing sources in the app is not a reason to let the model\ncite them aloud. See `provenance.py`.","operationId":"episode_sources_api_sources_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"What the listener asked","title":"Q"},"description":"What the listener asked"},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}},{"name":"context","in":"query","required":false,"schema":{"type":"string","description":"Topic the listener just heard","default":"","title":"Context"},"description":"Topic the listener just heard"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Search"}},{"name":"reading","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Reading"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcript":{"get":{"summary":"Episode Transcript","description":"The sentences this episode is made of, for live captions.\n\nRead from the cache under the same key the script is stored under, like\n`/api/sources` and `/api/next` - and for the same reason as both: what an\nepisode *says* is only settled once the script has been written, which is\nafter the audio response headers have gone out.\n\n**It never generates.** Captions that could trigger a write would be a\nsecond full Claude call for every episode somebody chose to read along\nwith - the expensive half of an episode, paid twice for one listen. So the\nhonest states are \"here are the sentences\" and \"not written down yet\", and\n`known` is which. An attachment episode is deliberately never cached, so\nit never has captions; that is a fact about privacy, not a failure.\n\n**It reads the live track first** (§107). The cache is written once, at the\nend, so on a first listen the sentences do not exist under this key until\nafter the last word has been spoken - which is the one moment captions are\nno use. `live_captions` holds what has been handed to the voice so far, so\nthe transcript builds up as it is read rather than arriving whole or not at\nall. Same key, so the two cannot describe different episodes, and the\nfallback order is the only one that can be right: a live track is *this*\ngeneration and the cache may hold an older one under the same key while a\nre-write is in flight.\n\n`done` is what stops the client asking. Without it \"still being written\"\nand \"that was the whole episode\" are the same answer, and the interface\nguessed at the difference with a poll count - six tries over twelve\nseconds, which is roughly a two-minute episode's script and nothing like a\nresearched ten-minute one's, so every long episode read back as having no\ntranscript at all.","operationId":"episode_transcript_api_transcript_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"What the listener asked","title":"Q"},"description":"What the listener asked"},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}},{"name":"context","in":"query","required":false,"schema":{"type":"string","description":"Topic the listener just heard","default":"","title":"Context"},"description":"Topic the listener just heard"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Search"}},{"name":"reading","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Reading"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/next":{"get":{"summary":"Next Thread","description":"The follow-up this listener is most likely to want, and the episode's\nown title.\n\nBoth read from the script cache, so both cost no tokens and no time. Both\nare written by the model on trailing marker lines that are stripped before\nanything is spoken, and both are only known once the script is finished -\nwhich is after the audio response headers have gone out. Hence one lookup\nrather than a header on `/api/audio`.\n\nThe thread is offered as a one-tap suggestion in Go Deeper: an episode that\nends pointed at something specific is only half the job if acting on it\nstill means composing a question into an empty box.\n\nThe title replaces the typed question. Somebody who asked \"what happened\nwith the fed yesterday\" was shown an episode called *What Happened With The\nFed Yesterday* - their own words handed back with capital letters. The\nplayer opens on a provisional title derived from the question and swaps\nthis in when it lands.\n\nAn empty answer for either is normal - the script may not be cached, or the\nmodel may not have written that line - and the interface falls back to what\nit had.","operationId":"next_thread_api_next_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"What the listener asked","title":"Q"},"description":"What the listener asked"},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}},{"name":"context","in":"query","required":false,"schema":{"type":"string","description":"Topic the listener just heard","default":"","title":"Context"},"description":"Topic the listener just heard"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Search"}},{"name":"cached_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Cached Only"}},{"name":"reading","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Reading"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio":{"get":{"summary":"Audio","description":"Stream the episode.\n\n`fmt=wav` prefixes a live-stream WAV header so a plain <audio> tag works.\n`fmt=pcm` sends bare samples for the Web Audio player, which schedules\nchunks itself and therefore starts sooner and seeks better.\n`fmt=opus` (§242) sends the same audio as \"fam-opus v1\" - Opus packets,\nlength-prefixed, then an end marker with the true length\n(`audio_codec`) - when this server can; otherwise PCM, without the\n`X-FAM-Audio-Format: opus` header, which is how the player knows.\n`link=1` with `fmt=opus` (§252): a replay whose Opus is in the bucket is\nanswered with JSON - a signed link to the Ogg Opus file, its length and\ncaptions - and `X-FAM-Audio-Link: 1`; the player reads the file from R2\nand decodes it exactly as it decodes the stream. Anything else streams.","operationId":"audio_api_audio_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","description":"What the listener asked","title":"Q"},"description":"What the listener asked"},{"name":"minutes","in":"query","required":false,"schema":{"type":"number","maximum":10,"minimum":1,"default":1.5,"title":"Minutes"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","pattern":"^(wav|pcm|opus)$","default":"wav","title":"Fmt"}},{"name":"context","in":"query","required":false,"schema":{"type":"string","description":"Topic the listener just heard, for a follow-up","default":"","title":"Context"},"description":"Topic the listener just heard, for a follow-up"},{"name":"voice","in":"query","required":false,"schema":{"type":"string","description":"Voice id from /api/voices","default":"","title":"Voice"},"description":"Voice id from /api/voices"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Force research on (1) or off (0); omit to let the question decide","title":"Search"},"description":"Force research on (1) or off (0); omit to let the question decide"},{"name":"cached_only","in":"query","required":false,"schema":{"type":"boolean","description":"Replay only; never generate. Used by Explore","default":false,"title":"Cached Only"},"description":"Replay only; never generate. Used by Explore"},{"name":"topic_id","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Bank topic id, when played from myFAM","default":"","title":"Topic Id"},"description":"Bank topic id, when played from myFAM"},{"name":"attach","in":"query","required":false,"schema":{"type":"string","maxLength":400,"description":"Attachment ids from /api/attach","default":"","title":"Attach"},"description":"Attachment ids from /api/attach"},{"name":"surface","in":"query","required":false,"schema":{"type":"string","maxLength":16,"description":"Where the tap came from: search, myfam, dailyfam, explore, share or other","default":"","title":"Surface"},"description":"Where the tap came from: search, myfam, dailyfam, explore, share or other"},{"name":"episode","in":"query","required":false,"schema":{"type":"string","maxLength":80,"description":"A heard episode's id (X-FAM-Episode) to replay exactly; never generates (§173)","default":"","title":"Episode"},"description":"A heard episode's id (X-FAM-Episode) to replay exactly; never generates (§173)"},{"name":"own","in":"query","required":false,"schema":{"type":"boolean","description":"The question is the listener's own words (a typed Go Deeper), held to their AI answer like a search","default":false,"title":"Own"},"description":"The question is the listener's own words (a typed Go Deeper), held to their AI answer like a search"},{"name":"link","in":"query","required":false,"schema":{"type":"boolean","description":"With fmt=opus: a replay may be answered with a signed link to its kept audio in the bucket (§252)","default":false,"title":"Link"},"description":"With fmt=opus: a replay may be answered with a signed link to its kept audio in the bucket (§252)"},{"name":"link_failed","in":"query","required":false,"schema":{"type":"boolean","description":"This stream is the fallback for a link that would not play","default":false,"title":"Link Failed"},"description":"This stream is the fallback for a link that would not play"},{"name":"reconnect","in":"query","required":false,"schema":{"type":"boolean","description":"The web player asking again for an episode whose stream broke part-way (§685): the play was recorded by the first request","default":false,"title":"Reconnect"},"description":"The web player asking again for an episode whose stream broke part-way (§685): the play was recorded by the first request"},{"name":"private","in":"query","required":false,"schema":{"type":"boolean","description":"A private search (searchFAM's incognito, §282): the play is not recorded and what it writes is on no feed and names no author","default":false,"title":"Private"},"description":"A private search (searchFAM's incognito, §282): the play is not recorded and what it writes is on no feed and names no author"},{"name":"reading","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Reading"}},{"name":"ask_reading","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ask Reading"}},{"name":"voice_picked","in":"query","required":false,"schema":{"type":"boolean","description":"The voice was picked for this search, not left as it was","default":false,"title":"Voice Picked"},"description":"The voice was picked for this search, not left as it was"},{"name":"mix","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"The mix this is played from","default":"","title":"Mix"},"description":"The mix this is played from"},{"name":"heard","in":"query","required":false,"schema":{"type":"string","maxLength":80,"description":"The id of the episode this follow-up follows","default":"","title":"Heard"},"description":"The id of the episode this follow-up follows"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/memory":{"get":{"summary":"Admin Memory","description":"Where the resident memory is (§331, `memory_report.py`): glibc's\ncount of bytes in use and held free, then a `malloc_trim` and what it\ngave back; with `?census=1`, this project's largest globals. Asked of\nthe running process, by an admin, never on a timer.","operationId":"admin_memory_api_admin_memory_get","parameters":[{"name":"census","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Census"}},{"name":"trim","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Trim"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Memory Api Admin Memory Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/usage":{"get":{"summary":"Usage","description":"The billing and usage report, on demand.\n\nEverything `tools/usage_report.py` prints, as JSON, so the same numbers are\navailable to a dashboard, a finance spreadsheet and a person at a terminal\nwithout three implementations disagreeing about what a month is.\n\nNot paced by `_rate_limit`: it makes no model call, and an operator pulling\na report should not be competing with listeners for the generation budget.","operationId":"usage_api_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","maximum":3650,"exclusiveMinimum":0,"description":"Window, ending now","default":30.0,"title":"Days"},"description":"Window, ending now"},{"name":"top","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"How many top listeners","default":10,"title":"Top"},"description":"How many top listeners"},{"name":"flagged","in":"query","required":false,"schema":{"type":"boolean","description":"Also run the abuse thresholds","default":false,"title":"Flagged"},"description":"Also run the abuse thresholds"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Usage Api Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/episodes":{"get":{"summary":"Admin Episodes","description":"The most-played kept episodes, for choosing what to replay.","operationId":"admin_episodes_api_admin_episodes_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Episodes Api Admin Episodes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Episode Import","description":"Write an exported episode into this deployment's cache.\n\n**Only on a zero-spend deployment.** Production's cache is what listeners\nare served, and an imported episode skips everything that decides what\nbelongs there; staging's cache exists to be filled for testing.","operationId":"admin_episode_import_api_admin_episodes_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Episode Import Api Admin Episodes Post"}}}}}}},"/api/admin/episodes/{key}":{"get":{"summary":"Admin Episode Export","description":"One kept episode, whole: its script row and every voiced copy.","operationId":"admin_episode_export_api_admin_episodes__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Episode Export Api Admin Episodes  Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/login":{"post":{"summary":"Admin Login","description":"The dashboard's sign-in: an admin account's email and password.\n\nOne refusal for every failure - no such account, wrong password, a right\npassword on an account that is not an admin - so the form cannot be used\nto learn which addresses are admins. 404 on a deployment with no admin\naccounts configured, like every other admin path.","operationId":"admin_login_api_admin_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/logout":{"post":{"summary":"Admin Logout","operationId":"admin_logout_api_admin_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/tracker":{"get":{"summary":"Admin Tracker Snapshot","description":"Every headline number, read live from the stores.","operationId":"admin_tracker_snapshot_api_admin_tracker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Tracker Snapshot Api Admin Tracker Get"}}}}}}},"/api/admin/agents":{"get":{"summary":"Admin Agents","description":"The Agents panel (§351): every agent's switch, model, lock, last run,\nspend and fallbacks over a week, holds and the task queue. Read-only -\nswitches stay settings, and nothing here changes one.","operationId":"admin_agents_api_admin_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Agents Api Admin Agents Get"}}}}}}},"/api/admin/categories":{"get":{"summary":"Admin Categories","description":"Nando's training on one page (§503): the answer key's settings and\nagreement, the owner's own agreement with it, and the one-time\ncomparison. Read-only.","operationId":"admin_categories_api_admin_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Categories Api Admin Categories Get"}}}}}}},"/api/admin/categories/tree":{"get":{"summary":"Admin Categories Tree","description":"The whole category tree, drawn on the admin's Categories page\n(11.12). Read-only; no model is asked.","operationId":"admin_categories_tree_api_admin_categories_tree_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Categories Tree Api Admin Categories Tree Get"}}}}}}},"/api/admin/categories/export":{"get":{"summary":"Admin Export Categories","description":"Every node of the tree as a CSV - path, source, episodes filed - for\na reviewer outside FAM (§585), as the pronunciations go out (§549).","operationId":"admin_export_categories_api_admin_categories_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/categories/review-prompt":{"get":{"summary":"Admin Category Review Prompt","description":"The fixed prompt that goes with a tree download (§585).","operationId":"admin_category_review_prompt_api_admin_categories_review_prompt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Category Review Prompt Api Admin Categories Review Prompt Get"}}}}}}},"/api/admin/categories/import":{"post":{"summary":"Admin Import Categories","description":"Read a reviewer's CSV into proposed edits (§585). Changes nothing: an\nadmin accepts each one.","operationId":"admin_import_categories_api_admin_categories_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryUpload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Import Categories Api Admin Categories Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/categories/edit":{"post":{"summary":"Admin Edit Category","description":"One accepted edit, saved as the owner's (§585): nothing that grows the\ntree undoes it.","operationId":"admin_edit_category_api_admin_categories_edit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryEdit"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Edit Category Api Admin Categories Edit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/categories/edits":{"get":{"summary":"Admin Category Edits","description":"The owner's edits to the tree (§585), newest first.","operationId":"admin_category_edits_api_admin_categories_edits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Category Edits Api Admin Categories Edits Get"}}}}}}},"/api/admin/categories/edits/{node}":{"delete":{"summary":"Admin Forget Category Edit","description":"Forget one owner edit: a removed phrase may grow again, a placed node\nmay be moved by the placer. The tree is not changed back.","operationId":"admin_forget_category_edit_api_admin_categories_edits__node__delete","parameters":[{"name":"node","in":"path","required":true,"schema":{"type":"string","title":"Node"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Forget Category Edit Api Admin Categories Edits  Node  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/categories/queue":{"get":{"summary":"Admin Categories Queue","description":"Episodes for the owner to file by hand (§503), disagreements first,\nevery write path in turn. Costs nothing: no model is asked.","operationId":"admin_categories_queue_api_admin_categories_queue_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Categories Queue Api Admin Categories Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/categories/label":{"post":{"summary":"Admin Categories Label","description":"The owner's filing of one episode (§503): kept as their review and as\nthe episode's grade, ahead of any model's. Teaches Nando; never re-files\nthe episode.","operationId":"admin_categories_label_api_admin_categories_label_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryLabel"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Categories Label Api Admin Categories Label Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/categories/calibrate":{"post":{"summary":"Admin Categories Calibrate","description":"Queue the owner's one-time comparison of the answer key against a\nsecond (§503). Refused once it has run, while the amendment to nando.md\nrule 12 is unsigned, or while Nando is off; queued under one key, so it\nis never queued twice.","operationId":"admin_categories_calibrate_api_admin_categories_calibrate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Categories Calibrate Api Admin Categories Calibrate Post"}}}}}}},"/api/admin/schema":{"get":{"summary":"Admin Tracker Schema","description":"Every store, table, column and live row count.","operationId":"admin_tracker_schema_api_admin_schema_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Tracker Schema Api Admin Schema Get"}}}}}}},"/api/admin/ask":{"post":{"summary":"Admin Tracker Ask","description":"A question in words. A built-in recipe when one fits, the model\notherwise; the SQL that produced the answer always comes back with it.","operationId":"admin_tracker_ask_api_admin_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAsk"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Tracker Ask Api Admin Ask Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/query":{"post":{"summary":"Admin Tracker Query","description":"One read-only SELECT, run in the tracker's sandbox.","operationId":"admin_tracker_query_api_admin_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminQuery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Tracker Query Api Admin Query Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/wipe":{"post":{"summary":"Admin Wipe","description":"Take the demonstration data out of a running deployment.\n\nBehind `FAM_ADMIN_TOKEN`, 404 without it, like `/api/usage` and for the\nstronger version of the same reason: that one hands over every listener's\nspending, this one deletes things.\n\n**It exists because the place it is needed has no shell.** A container\nhost is exactly where seeded data ends up stranded - somebody ran\n`seed_demo.py` so the browse surfaces had something to show, and the\nmeasurement they now want is impossible while three invented listeners\nare voting in the taste model. The alternative to this endpoint is not\n\"do it more carefully\", it is redeploying with a wiped disk, which takes\nthe real listeners with it.\n\nThe work is `demo_data.wipe`, which `tools/wipe_demo_data.py` also calls,\nso a command line and an HTTP call cannot come to mean two different\nthings. See that module for what each scope removes and what neither\ntouches (accounts, credentials, the metering ledger).","operationId":"admin_wipe_api_admin_wipe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WipeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Wipe Api Admin Wipe Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/thumbnails":{"get":{"summary":"Admin Thumbnails","description":"Every picture's row (without the bytes), the tree nodes still without\none, what painting them should cost, and what has been spent.","operationId":"admin_thumbnails_api_admin_thumbnails_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Thumbnails Api Admin Thumbnails Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/incidents":{"get":{"summary":"Admin Incidents","description":"Keith's open incidents, worst first, those closed this week, and\nwhether an urgent one can be emailed (§489). Admins only.","operationId":"admin_incidents_api_admin_incidents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Incidents Api Admin Incidents Get"}}}}}}},"/api/admin/fixes":{"get":{"summary":"Admin Fixes","description":"Keith's fix report, answerable at any moment (keith.md always 4):\nwhat he fixed, how he checked it, and what he would have done while a\nfix is off (§490). Admins only.","operationId":"admin_fixes_api_admin_fixes_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","default":7.0,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Fixes Api Admin Fixes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/incidents/fixed":{"post":{"summary":"Admin Incident Fixed","description":"The owner says an incident is fixed: Keith re-checks rather than\nbelieves (keith.md always 11), and says what he found. Admins only;\nchanges nothing but the incident's own row. Who is asking is checked\nbefore the body is read (§495), so anyone else gets the 404 every admin\nroute gives, never a validation error.","operationId":"admin_incident_fixed_api_admin_incidents_fixed_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Incident Fixed Api Admin Incidents Fixed Post"}}}}}}},"/api/admin/quality":{"get":{"summary":"Admin Quality","description":"Every node of the category tree with episodes under it, worst-costing\nfirst, with the grader's calibration and each metric's validity (§309).","operationId":"admin_quality_api_admin_quality_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"number","default":30.0,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Quality Api Admin Quality Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/quality/episode":{"get":{"summary":"Admin Quality Episode","description":"One measured episode, to read: its script, the code's checks, the\ngrade and the owner's own scores so far.","operationId":"admin_quality_episode_api_admin_quality_episode_get","parameters":[{"name":"episode","in":"query","required":false,"schema":{"type":"string","default":"","title":"Episode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Quality Episode Api Admin Quality Episode Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/quality/to-score":{"get":{"summary":"Admin Quality To Score","description":"Episodes the owner has not scored yet, newest first (§310): the list\nworked through so the grader can be checked against a person. `origin`\nnarrows it - `prefetch,dailyfam,trending,startup` for the episodes\nwritten ahead.","operationId":"admin_quality_to_score_api_admin_quality_to_score_get","parameters":[{"name":"origin","in":"query","required":false,"schema":{"type":"string","default":"","title":"Origin"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Quality To Score Api Admin Quality To Score Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/quality/label":{"post":{"summary":"Admin Quality Label","description":"The owner's own scores for one episode (§309). A grade only counts\ntoward a node's standing once it agrees with these.","operationId":"admin_quality_label_api_admin_quality_label_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityLabels"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Quality Label Api Admin Quality Label Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/thumbnails/decide":{"post":{"summary":"Admin Thumbnail Decide","description":"A person's verdict on one picture. Approving is what puts a held\npicture on tiles; rejecting takes a live one off them at once.","operationId":"admin_thumbnail_decide_api_admin_thumbnails_decide_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbnailDecision"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Thumbnail Decide Api Admin Thumbnails Decide Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/thumbnails/run":{"post":{"summary":"Admin Thumbnail Run","description":"Paint pictures now, in the background, inside the daily ceiling.\nReturns at once; the review page polls the list to watch them arrive.","operationId":"admin_thumbnail_run_api_admin_thumbnails_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbnailRun"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Thumbnail Run Api Admin Thumbnails Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/push":{"get":{"summary":"Admin Push","operationId":"admin_push_api_admin_push_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Push Api Admin Push Get"}}}}}}},"/api/admin/push/decide":{"post":{"summary":"Admin Push Decide","description":"Send a big story to everybody, or dismiss it. Sending happens on the\nnext pass, once its episode is written - never from this request.","operationId":"admin_push_decide_api_admin_push_decide_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushDecision"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Push Decide Api Admin Push Decide Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/groups/kit":{"get":{"summary":"Admin Groups Kit","description":"Everything a person sends a community's admin to post one episode\nnatively (§624): the community's own link (for the first comment), the\nphoto (§622), the clip (§623), suggested words, and how many times the\nlink has been opened. Read only: nothing is made, voiced or sent.","operationId":"admin_groups_kit_api_admin_groups_kit_get","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":140,"title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Groups Kit Api Admin Groups Kit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/groups":{"get":{"summary":"Admin Groups","description":"Every lead (to contact first, best first), whether a search can run,\ntoday's searches, the last run, and subjects to suggest.","operationId":"admin_groups_api_admin_groups_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","default":"","title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Groups Api Admin Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/groups/run":{"post":{"summary":"Admin Groups Run","description":"Look for communities now, in the background, inside the ceilings.\nReturns at once; the page polls the list to watch the cards arrive.","operationId":"admin_groups_run_api_admin_groups_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsRun"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Groups Run Api Admin Groups Run Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/groups/send":{"post":{"summary":"Admin Groups Send","description":"Send one community to Egan (§581): looked up through its platform's\nAPI or the web, its public way to the admins worked out, judged and\ndrafted for. Kept as a lead to contact whatever its fit; nothing is sent\nto anybody.","operationId":"admin_groups_send_api_admin_groups_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsSend"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Groups Send Api Admin Groups Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/groups/listen":{"post":{"summary":"Admin Groups Listen","description":"The card's kept episode as a share link FAM owns, to hear before it\ngoes in a message: nobody vouches for audio they have not heard.","operationId":"admin_groups_listen_api_admin_groups_listen_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsLead"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Groups Listen Api Admin Groups Listen Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/share/{share_id}/clip.mp4":{"get":{"summary":"Admin Share Clip","description":"A shared episode's opening as a captioned video to post natively\n(`clip.py`, §623): 15-30 seconds of its kept audio, the words on screen.\n\nAdmin only, where the photo (`share_post`) is public: a clip is seconds\nof processor time to make, so it is not something a stranger's request\nmay start. Cut from kept audio and its measured sentence timings -\nnothing is voiced, written or guessed, so an episode not yet played\nthrough has no clip and the answer says so. FAM posts nothing: the\nperson downloads this and sends or uploads it.","operationId":"admin_share_clip_api_admin_share__share_id__clip_mp4_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/groups/move":{"post":{"summary":"Admin Groups Move","description":"Move a lead along: contacted, replied, invited, joined or passed.\nNothing is sent from here; the person reached the admin themselves.","operationId":"admin_groups_move_api_admin_groups_move_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupsMove"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Groups Move Api Admin Groups Move Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/waitlist/join":{"post":{"summary":"Waitlist Join","description":"Join: the app's own sign-up, then the waitlist half.\n\n**The email alone** - no Terms box and no profile either since §749;\nboth are the app's setup once let in (the owner, PROBLEMS.md §606,\nreversing §571, for the password): the\naccount is made with no password (`passwordless`), as a Google-or-Apple\none is, and the waitlist never asks for one. Let in, the account is\nrecognised - this browser's session, or the let-in link (`/claim/<code>`,\nwhich signs a passwordless account in) - and the app's first step is\nsetting a password (`/api/auth/me` `password_needed`). A join that still\nsends a password (§571's clients) has it checked by the app's rule and\nstored in the INSERT, as before.\n\nThe same account the app will open with later - `ACCOUNTS.sign_up` on the\nsession this browser already has - so granting access changes one column\nand moves nothing. **Joining the waitlist always puts the account on it**\n(10.2 packet), gate on or off: it used to follow `WAITLIST`, so on a\nserver where the switch was not set a join made an active account,\nskipped the line and dropped the person into the app's own sign-up -\nwhich is what the owner hit. The gate still decides only whether the app\nis closed to them.","operationId":"waitlist_join_api_waitlist_join_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistJoinRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Waitlist Join Api Waitlist Join Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/waitlist/me":{"get":{"summary":"Waitlist Me","description":"Everything the status page draws, for the signed-in account.\n\nPlace and \"places until full access\" come from `waitlist.ordered` and the\nadmin's cutoff. Your FAM is this account's friends - mutual follows, the\nsame list the app's Your Friends shows - and invites are the accounts that\njoined with this one's code.","operationId":"waitlist_me_api_waitlist_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Waitlist Me Api Waitlist Me Get"}}}}}}},"/api/waitlist/people":{"get":{"summary":"Waitlist People","description":"Find a friend who is already on the list (the 10.15 packet).\n\nThe status page's search bar: by name or handle (two characters or\nmore, as `/api/people`), or by an email address or phone number typed\nwhole. Only accounts - waitlisted or already in - are found; somebody\nblocked either way never is. Nothing comes back but what the page draws:\nthe name, handle, face and whether they are friends already; an email\nor a number that matched is never echoed. An empty answer is what the\npage's \"invite them\" card is for.","operationId":"waitlist_people_api_waitlist_people_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":80,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Waitlist People Api Waitlist People Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/waitlist/add":{"post":{"summary":"Waitlist Add","description":"Add somebody the search found: a follow, as the app's own Add is.\n\nThey become Your FAM - a friend - when they add you back, as anywhere\nelse in FAM; somebody blocked either way, or suspended, is not there.","operationId":"waitlist_add_api_waitlist_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistAddRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Waitlist Add Api Waitlist Add Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/signup/steps":{"get":{"summary":"Admin Signup Steps","description":"The walkthrough's steps, in the order a new member meets them.","operationId":"admin_signup_steps_api_admin_signup_steps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Signup Steps Api Admin Signup Steps Get"}}}}}}},"/api/admin/signup/preview":{"get":{"summary":"Admin Signup Preview","description":"The follow screen's Made for you preview, for a walkthrough frame:\nwhat `/api/follow/preview` answers, composed in code, nothing written,\nasked as a GET by an admin rather than as the listener the page would\notherwise be.","operationId":"admin_signup_preview_api_admin_signup_preview_get","parameters":[{"name":"interests","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Interests"}},{"name":"topics","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Topics"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Signup Preview Api Admin Signup Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/waitlist":{"get":{"summary":"Admin Waitlist","description":"The whole line, with the summary numbers. Admin only (404 otherwise).","operationId":"admin_waitlist_api_admin_waitlist_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Waitlist Api Admin Waitlist Get"}}}}}}},"/api/admin/waitlist/grant":{"post":{"summary":"Admin Waitlist Grant","description":"Let one person, several, or the top N in. Each is flagged in Viral\nLoops through the outbox, which takes them off its leaderboard.","operationId":"admin_waitlist_grant_api_admin_waitlist_grant_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGrantRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Waitlist Grant Api Admin Waitlist Grant Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/plan":{"post":{"summary":"Admin Set Plan","description":"Move one account between plans (§207).\n\nThere is no checkout, so this is the only way an account leaves `free`:\na tester, a friend of the product, anybody the owner wants past the daily\nceiling while quotas are enforced. `who` is the listener id, email or\nphone number on the account. Takes effect on their next request - the\nplan is read with the session.","operationId":"admin_set_plan_api_admin_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Set Plan Api Admin Plan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/waitlist/cutoff":{"post":{"summary":"Admin Waitlist Cutoff","operationId":"admin_waitlist_cutoff_api_admin_waitlist_cutoff_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCutoffRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Waitlist Cutoff Api Admin Waitlist Cutoff Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/waitlist/free-month":{"post":{"summary":"Admin Waitlist Free Month","description":"The day the whole app goes live, which is the day every earned free\nmonth starts (§577). Until it is set the month is earned and waiting.","operationId":"admin_waitlist_free_month_api_admin_waitlist_free_month_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFreeMonthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Waitlist Free Month Api Admin Waitlist Free Month Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ambassadors":{"get":{"summary":"Admin Ambassadors","description":"Every ambassador code, who holds it and since when. Admin only.","operationId":"admin_ambassadors_api_admin_ambassadors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Ambassadors Api Admin Ambassadors Get"}}}}}},"post":{"summary":"Admin New Ambassador","description":"\"Add new ambassador\": a fresh code for the admin to hand over.","operationId":"admin_new_ambassador_api_admin_ambassadors_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAmbassadorRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin New Ambassador Api Admin Ambassadors Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ambassadors/revoke":{"post":{"summary":"Admin Revoke Ambassador","description":"Take a code back: its account loses the tag and the unlimited plan.","operationId":"admin_revoke_ambassador_api_admin_ambassadors_revoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmbassadorCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Revoke Ambassador Api Admin Ambassadors Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ambassador":{"post":{"summary":"Enter Ambassador Code","description":"The listener enters the code an admin gave them (Settings, or the\nprofile step after being let in). An account's only.","operationId":"enter_ambassador_code_api_ambassador_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmbassadorCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Enter Ambassador Code Api Ambassador Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActivationRequest":{"properties":{"birth_date":{"type":"string","maxLength":10,"title":"Birth Date"},"gender":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Gender"},"city":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"City"},"region":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Region"},"country":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Country"},"confirm_under_13":{"type":"boolean","title":"Confirm Under 13","default":false}},"type":"object","required":["birth_date"],"title":"ActivationRequest","description":"The activation step (§411): date of birth required; the place and\ngender optional, `None` leaving what is there."},"AdminAmbassadorRequest":{"properties":{"name":{"type":"string","maxLength":80,"title":"Name","default":""}},"type":"object","title":"AdminAmbassadorRequest"},"AdminAsk":{"properties":{"question":{"type":"string","maxLength":500,"title":"Question","default":""}},"type":"object","title":"AdminAsk"},"AdminCutoffRequest":{"properties":{"cutoff":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Cutoff"}},"type":"object","required":["cutoff"],"title":"AdminCutoffRequest"},"AdminFreeMonthRequest":{"properties":{"starts":{"type":"number","maximum":10000000000.0,"minimum":0.0,"title":"Starts"}},"type":"object","required":["starts"],"title":"AdminFreeMonthRequest"},"AdminGrantRequest":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","maxItems":5000,"title":"User Ids"},"top":{"type":"integer","maximum":100000.0,"minimum":0.0,"title":"Top","default":0}},"type":"object","title":"AdminGrantRequest"},"AdminLogin":{"properties":{"email":{"type":"string","title":"Email","default":""},"password":{"type":"string","title":"Password","default":""}},"type":"object","title":"AdminLogin"},"AdminPlanRequest":{"properties":{"who":{"type":"string","maxLength":200,"minLength":1,"title":"Who"},"plan":{"type":"string","maxLength":40,"minLength":1,"title":"Plan"}},"type":"object","required":["who","plan"],"title":"AdminPlanRequest"},"AdminQuery":{"properties":{"sql":{"type":"string","maxLength":8000,"title":"Sql","default":""}},"type":"object","title":"AdminQuery"},"AmbassadorCodeRequest":{"properties":{"code":{"type":"string","maxLength":40,"minLength":1,"title":"Code"}},"type":"object","required":["code"],"title":"AmbassadorCodeRequest"},"AnnouncedRequest":{"properties":{"user_id":{"type":"string","maxLength":64,"title":"User Id"}},"type":"object","required":["user_id"],"title":"AnnouncedRequest"},"AppleTransactionRequest":{"properties":{"transaction":{"type":"string","maxLength":20000,"title":"Transaction"}},"type":"object","required":["transaction"],"title":"AppleTransactionRequest"},"AttachRequest":{"properties":{"kind":{"type":"string","pattern":"^(document|image|link)$","title":"Kind"},"name":{"type":"string","maxLength":300,"title":"Name","default":""},"data":{"type":"string","title":"Data","description":"Base64 file contents; documents and photos","default":""},"url":{"type":"string","maxLength":2000,"title":"Url","default":""}},"type":"object","required":["kind"],"title":"AttachRequest"},"BankVoiceRequest":{"properties":{"slug":{"type":"string","maxLength":40,"title":"Slug"},"label":{"type":"string","maxLength":40,"title":"Label"},"description":{"type":"string","maxLength":160,"title":"Description","default":""},"audio":{"type":"string","maxLength":12582912,"title":"Audio"},"rights":{"additionalProperties":true,"type":"object","title":"Rights"},"replace":{"type":"boolean","title":"Replace","default":false}},"type":"object","required":["slug","label","audio","rights"],"title":"BankVoiceRequest"},"BlockRequest":{"properties":{"handle":{"type":"string","maxLength":64,"title":"Handle"}},"type":"object","required":["handle"],"title":"BlockRequest"},"CapsTrialRequest":{"properties":{"word":{"type":"string","maxLength":12,"minLength":2,"pattern":"^\\s*[A-Za-z]{2,12}\\s*$","title":"Word"},"sentence":{"type":"boolean","title":"Sentence","default":false}},"type":"object","required":["word"],"title":"CapsTrialRequest"},"CategoryEdit":{"properties":{"action":{"type":"string","maxLength":20,"minLength":1,"title":"Action"},"node":{"type":"string","maxLength":120,"minLength":1,"title":"Node"},"target":{"type":"string","maxLength":120,"title":"Target","default":""},"reason":{"type":"string","maxLength":200,"title":"Reason","default":""}},"type":"object","required":["action","node"],"title":"CategoryEdit"},"CategoryFollowRequest":{"properties":{"categories":{"items":{"type":"string"},"type":"array","maxItems":24,"title":"Categories"}},"type":"object","required":["categories"],"title":"CategoryFollowRequest","description":"The whole followed list, in order: add, remove and reorder are one\nwrite, like a mix's items."},"CategoryLabel":{"properties":{"key":{"type":"string","maxLength":120,"minLength":1,"title":"Key"},"node":{"type":"string","maxLength":120,"title":"Node","default":""}},"type":"object","required":["key"],"title":"CategoryLabel"},"CategoryUpload":{"properties":{"csv":{"type":"string","maxLength":2000000,"title":"Csv"}},"type":"object","required":["csv"],"title":"CategoryUpload"},"CheckoutRequest":{"properties":{"plan":{"type":"string","maxLength":16,"title":"Plan"}},"type":"object","required":["plan"],"title":"CheckoutRequest"},"CloseFriendRequest":{"properties":{"user_id":{"type":"string","maxLength":64,"title":"User Id"},"on":{"type":"boolean","title":"On","default":true}},"type":"object","required":["user_id"],"title":"CloseFriendRequest"},"CommentLikeRequest":{"properties":{"on":{"type":"boolean","title":"On","default":true}},"type":"object","title":"CommentLikeRequest"},"CommentRequest":{"properties":{"query":{"type":"string","maxLength":300,"title":"Query"},"minutes":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Minutes","default":1.5},"text":{"type":"string","maxLength":2000,"title":"Text"},"parent_id":{"type":"integer","minimum":0.0,"title":"Parent Id","default":0}},"type":"object","required":["query","text"],"title":"CommentRequest"},"ConsentRequest":{"properties":{"scope":{"type":"string","maxLength":16,"title":"Scope","default":"ai"},"allow":{"type":"boolean","title":"Allow"},"version":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Version"}},"type":"object","required":["allow"],"title":"ConsentRequest"},"ContactEntry":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name","default":""},"tel":{"items":{"type":"string","maxLength":120},"type":"array","maxItems":8,"title":"Tel"},"email":{"items":{"type":"string","maxLength":120},"type":"array","maxItems":8,"title":"Email"}},"type":"object","title":"ContactEntry"},"ContactsRequest":{"properties":{"contacts":{"items":{"$ref":"#/components/schemas/ContactEntry"},"type":"array","maxItems":2000,"title":"Contacts"}},"type":"object","title":"ContactsRequest"},"CredentialsRequest":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email","default":""},"phone":{"type":"string","maxLength":40,"title":"Phone","default":""},"password":{"type":"string","maxLength":1024,"title":"Password"},"referral_code":{"type":"string","maxLength":64,"title":"Referral Code","default":""},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"want_token":{"type":"boolean","title":"Want Token","default":false}},"type":"object","required":["password"],"title":"CredentialsRequest","description":"Email **or** phone, plus a password.\n\nBoth optional at the schema level and exactly one required in the handler,\nbecause \"you must send one of these two\" is not a thing a field validator\ncan say clearly, and a 422 from the framework is a worse message than a\nsentence written for the person reading it."},"DismissRequest":{"properties":{"query":{"type":"string","maxLength":300,"minLength":1,"title":"Query"}},"type":"object","required":["query"],"title":"DismissRequest"},"EchoRequest":{"properties":{"query":{"type":"string","maxLength":300,"title":"Query"},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"minutes":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Minutes","default":1.5},"thread":{"type":"string","maxLength":200,"title":"Thread","default":""},"caption":{"type":"string","maxLength":1000,"title":"Caption","default":""},"style":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Style"},"tags":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":10},{"type":"null"}],"title":"Tags"},"audience":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Audience"},"line":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Line"},"line_at":{"anyOf":[{"type":"number","maximum":3600.0,"minimum":0.0},{"type":"null"}],"title":"Line At"},"episode":{"type":"string","maxLength":80,"title":"Episode","default":""}},"type":"object","required":["query"],"title":"EchoRequest"},"EventRequest":{"properties":{"kind":{"type":"string","maxLength":16,"title":"Kind"},"topic_id":{"type":"string","maxLength":64,"title":"Topic Id","default":""},"text":{"type":"string","maxLength":300,"title":"Text","default":""},"thread":{"type":"string","maxLength":200,"title":"Thread","default":""},"minutes":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Minutes","default":0},"episode":{"type":"string","maxLength":80,"title":"Episode","default":""}},"type":"object","required":["kind"],"title":"EventRequest"},"FamJoinRequest":{"properties":{"code":{"type":"string","maxLength":20,"title":"Code"}},"type":"object","required":["code"],"title":"FamJoinRequest"},"FeedbackEpisode":{"properties":{"q":{"type":"string","title":"Q","default":""},"minutes":{"type":"number","title":"Minutes","default":0},"context":{"type":"string","title":"Context","default":""},"title":{"type":"string","title":"Title","default":""},"thumb":{"type":"string","title":"Thumb","default":""},"id":{"type":"string","title":"Id","default":""}},"type":"object","title":"FeedbackEpisode","description":"The episode on the player when a report was typed there: the words it\nwas asked for, keyed the way `/api/next` keys them.\n\nNothing here can refuse the report it rides on: over-long words are cut\n(a key that no longer matches finds nothing, and the report is kept), and\nminutes are whatever the page said, checked when the key is built.\n`title` is accepted from older pages and ignored - what the inbox shows is\nread from the cache, never taken from the page. `thumb` is the picture\nthe player was showing, kept only when it is one of FAM's own\nthumbnails (`feedback.thumb_path`); without it the server picks the\nplayer's picture itself (`_player_picture`)."},"FeedbackRequest":{"properties":{"text":{"type":"string","maxLength":4500,"title":"Text","default":""},"screen":{"type":"string","maxLength":500,"title":"Screen","default":""},"build":{"type":"string","maxLength":500,"title":"Build","default":""},"page":{"type":"string","maxLength":2000,"title":"Page","default":""},"viewport":{"type":"string","maxLength":500,"title":"Viewport","default":""},"episode":{"anyOf":[{"$ref":"#/components/schemas/FeedbackEpisode"},{"type":"null"}]},"playback":{"type":"string","maxLength":200000,"title":"Playback","default":""}},"type":"object","title":"FeedbackRequest"},"FeedbackResolve":{"properties":{"resolved":{"type":"boolean","title":"Resolved","default":true},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Note"}},"type":"object","title":"FeedbackResolve"},"FlagRunRequest":{"properties":{"hear":{"type":"boolean","title":"Hear","default":false},"agent":{"type":"boolean","title":"Agent","default":false}},"type":"object","title":"FlagRunRequest"},"FolderRequest":{"properties":{"name":{"type":"string","maxLength":40,"title":"Name"},"kind":{"type":"string","maxLength":8,"title":"Kind","default":"saved"}},"type":"object","required":["name"],"title":"FolderRequest"},"FollowAllRequest":{"properties":{"handles":{"items":{"type":"string","maxLength":25},"type":"array","maxItems":50,"title":"Handles"},"user_ids":{"items":{"type":"string","maxLength":64},"type":"array","maxItems":50,"title":"User Ids"},"via":{"type":"string","maxLength":32,"title":"Via","default":""}},"type":"object","title":"FollowAllRequest","description":"Follow several at once (§669): \"Follow all\" on your contacts, or on\nthe people in a group chat. By handle or by an id the server gave out,\nexactly as one follow is."},"FollowPreviewRequest":{"properties":{"interests":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Interests"},"topics":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Topics"}},"type":"object","title":"FollowPreviewRequest","description":"What is ticked on the follow screen, not yet saved."},"FriendRequestAnswer":{"properties":{"user_id":{"type":"string","maxLength":64,"title":"User Id","default":""},"handle":{"type":"string","maxLength":25,"title":"Handle","default":""}},"type":"object","title":"FriendRequestAnswer","description":"Who a request is from (or, for Remove friend, who the friend is): an\nid the server gave out on the Friends page, or a handle."},"GroupNameRequest":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name","default":""}},"type":"object","title":"GroupNameRequest"},"GroupPhotoRequest":{"properties":{"avatar":{"type":"string","maxLength":96000,"title":"Avatar","default":""}},"type":"object","title":"GroupPhotoRequest"},"GroupRequest":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","maxItems":32,"title":"User Ids"},"name":{"type":"string","maxLength":200,"title":"Name","default":""}},"type":"object","required":["user_ids"],"title":"GroupRequest"},"GroupsLead":{"properties":{"id":{"type":"string","maxLength":140,"minLength":3,"pattern":"^[a-z]+:[A-Za-z0-9._:-]+$","title":"Id"}},"type":"object","required":["id"],"title":"GroupsLead"},"GroupsMove":{"properties":{"id":{"type":"string","maxLength":140,"minLength":3,"pattern":"^[a-z]+:[A-Za-z0-9._:-]+$","title":"Id"},"status":{"type":"string","pattern":"^(new|contacted|replied|invited|joined|passed)$","title":"Status"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"handle":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Handle"}},"type":"object","required":["id","status"],"title":"GroupsMove"},"GroupsRun":{"properties":{"subjects":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Subjects"},"platforms":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Platforms"}},"type":"object","title":"GroupsRun"},"GroupsSend":{"properties":{"url":{"type":"string","maxLength":500,"minLength":8,"title":"Url"},"subject":{"type":"string","maxLength":80,"title":"Subject","default":""},"note":{"type":"string","maxLength":600,"title":"Note","default":""}},"type":"object","required":["url"],"title":"GroupsSend"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HearRequest":{"properties":{"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"HearRequest"},"HistoryRequest":{"properties":{"query":{"type":"string","maxLength":500,"title":"Query"},"minutes":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Minutes"},"surface":{"type":"string","maxLength":16,"title":"Surface"},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"context":{"type":"string","maxLength":300,"title":"Context","default":""},"retitle":{"type":"boolean","title":"Retitle","default":false},"episode":{"type":"string","maxLength":80,"title":"Episode","default":""}},"type":"object","required":["query","minutes","surface"],"title":"HistoryRequest"},"JoinRequest":{"properties":{"token":{"type":"string","maxLength":64,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"JoinRequest"},"JoinedSeenRequest":{"properties":{"user_id":{"type":"string","maxLength":64,"title":"User Id"}},"type":"object","required":["user_id"],"title":"JoinedSeenRequest"},"LocalExcludeRequest":{"properties":{"host":{"type":"string","maxLength":255,"title":"Host"},"reason":{"type":"string","maxLength":200,"title":"Reason","default":"the publisher asked"}},"type":"object","required":["host"],"title":"LocalExcludeRequest"},"LocalOutletRequest":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name","default":""},"homepage":{"type":"string","maxLength":500,"title":"Homepage"},"town":{"type":"string","maxLength":120,"title":"Town","default":""},"county":{"type":"string","maxLength":120,"title":"County","default":""},"region":{"type":"string","maxLength":120,"title":"Region","default":""},"country":{"type":"string","maxLength":2,"title":"Country","default":"US"},"scope":{"type":"string","maxLength":10,"title":"Scope","default":"town"},"feed_url":{"type":"string","maxLength":500,"title":"Feed Url","default":""}},"type":"object","required":["homepage"],"title":"LocalOutletRequest"},"MixOpenRequest":{"properties":{"played":{"type":"boolean","title":"Played","default":false}},"type":"object","title":"MixOpenRequest"},"MixRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Name"},"topic_ids":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array"},{"type":"null"}],"title":"Topic Ids"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public"},"cover":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover"},"listen_at":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Listen At"},"listen_tz":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Listen Tz"},"add":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"}]},"type":"array","maxItems":20},{"type":"null"}],"title":"Add"},"remove":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Remove"}},"type":"object","title":"MixRequest"},"MoveRequest":{"properties":{"folder_id":{"type":"string","maxLength":64,"title":"Folder Id","default":""}},"type":"object","title":"MoveRequest"},"NewPasswordRequest":{"properties":{"new":{"type":"string","maxLength":1024,"title":"New"}},"type":"object","required":["new"],"title":"NewPasswordRequest","description":"Setting a first password, for an account created with Google or Apple.\n`PasswordChangeRequest` cannot serve this: there is no current password to\nprove, and asking for one would lock those accounts out of ever having\none."},"NoteRequest":{"properties":{"text":{"type":"string","maxLength":2000,"title":"Text","default":""},"style":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Style"}},"type":"object","title":"NoteRequest","description":"A story with no episode (§297): words on a background, and stickers."},"PasswordChangeRequest":{"properties":{"current":{"type":"string","maxLength":1024,"title":"Current"},"new":{"type":"string","maxLength":1024,"title":"New"}},"type":"object","required":["current","new"],"title":"PasswordChangeRequest"},"PersonRequest":{"properties":{"name":{"type":"string","maxLength":40,"title":"Name","default":""},"handle":{"type":"string","maxLength":25,"title":"Handle","default":""},"avatar":{"anyOf":[{"type":"string","maxLength":96000},{"type":"null"}],"title":"Avatar"}},"type":"object","title":"PersonRequest"},"PreferenceRequest":{"properties":{"interests":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Interests"},"language":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Language"},"hidden_interests":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Hidden Interests"},"topics":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":200},{"type":"null"}],"title":"Topics"},"profile_interests":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Profile Interests"},"city":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"City"},"region":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Region"},"country":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Country"},"weekly_recap":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Weekly Recap"},"intro_done":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Intro Done"},"searches_public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Searches Public"},"private_search":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Private Search"},"tour_done":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tour Done"},"private_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Private Mode"}},"type":"object","title":"PreferenceRequest","description":"Every field optional: the intro saves one page at a time, and a\nsettings row writes one flag from a screen that knows nothing about the\nrest."},"ProfileRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"},"birth_date":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Birth Date"},"gender":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Gender"},"confirm_under_13":{"type":"boolean","title":"Confirm Under 13","default":false}},"type":"object","title":"ProfileRequest","description":"Account settings. Every field optional and `None` means \"leave it\" -\nan empty string means \"remove it\", which is a different request."},"ProgressRequest":{"properties":{"query":{"type":"string","maxLength":500,"title":"Query"},"minutes":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Minutes"},"seconds":{"type":"number","maximum":3600.0,"minimum":0.0,"title":"Seconds"},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"context":{"type":"string","maxLength":300,"title":"Context","default":""},"duration":{"type":"number","maximum":3600.0,"minimum":0.0,"title":"Duration","default":0},"episode":{"type":"string","maxLength":80,"title":"Episode","default":""}},"type":"object","required":["query","minutes","seconds"],"title":"ProgressRequest"},"PronunciationRequest":{"properties":{"name":{"type":"string","maxLength":60,"title":"Name"},"say":{"type":"string","maxLength":120,"title":"Say"}},"type":"object","required":["name","say"],"title":"PronunciationRequest"},"PronunciationUpload":{"properties":{"csv":{"type":"string","maxLength":2000000,"title":"Csv"}},"type":"object","required":["csv"],"title":"PronunciationUpload"},"ProviderRequest":{"properties":{"provider":{"type":"string","maxLength":16,"title":"Provider"},"id_token":{"type":"string","maxLength":8192,"title":"Id Token"},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"referral_code":{"type":"string","maxLength":64,"title":"Referral Code","default":""},"nonce":{"type":"string","maxLength":256,"title":"Nonce","default":""},"authorization_code":{"type":"string","maxLength":2048,"title":"Authorization Code","default":""},"want_token":{"type":"boolean","title":"Want Token","default":false}},"type":"object","required":["provider","id_token"],"title":"ProviderRequest","description":"A verified identity token from Google or Apple."},"PushDecision":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id"},"status":{"type":"string","pattern":"^(approved|dismissed)$","title":"Status"}},"type":"object","required":["id","status"],"title":"PushDecision"},"PushPrefs":{"properties":{"daily":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Daily"},"daily_at":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Daily At"},"breaking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Breaking"},"finals":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Finals"},"tz":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"},"moments":{"anyOf":[{"items":{},"type":"array","maxItems":5},{"type":"null"}],"title":"Moments"}},"type":"object","title":"PushPrefs"},"PushSubscription":{"properties":{"subscription":{"additionalProperties":true,"type":"object","title":"Subscription"},"tz":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"}},"type":"object","title":"PushSubscription"},"QualityLabels":{"properties":{"episode":{"type":"string","maxLength":80,"minLength":3,"title":"Episode"},"scores":{"additionalProperties":{"type":"integer"},"type":"object","title":"Scores"}},"type":"object","required":["episode"],"title":"QualityLabels"},"RateRequest":{"properties":{"query":{"type":"string","maxLength":300,"title":"Query"},"minutes":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Minutes","default":1.5},"value":{"type":"integer","maximum":1.0,"minimum":-1.0,"title":"Value"},"key":{"type":"string","maxLength":128,"title":"Key","default":""}},"type":"object","required":["query","value"],"title":"RateRequest"},"ReportDecision":{"properties":{"action":{"type":"string","maxLength":16,"title":"Action"},"note":{"type":"string","maxLength":1000,"title":"Note","default":""}},"type":"object","required":["action"],"title":"ReportDecision"},"ReportRequest":{"properties":{"kind":{"type":"string","maxLength":16,"title":"Kind"},"target":{"type":"string","maxLength":120,"title":"Target","default":""},"query":{"type":"string","maxLength":300,"title":"Query","default":""},"minutes":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Minutes","default":0},"reason":{"type":"string","maxLength":24,"title":"Reason"},"note":{"type":"string","maxLength":1000,"title":"Note","default":""}},"type":"object","required":["kind","reason"],"title":"ReportRequest"},"ResetFinishRequest":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email","default":""},"code":{"type":"string","maxLength":16,"title":"Code","default":""},"new":{"type":"string","maxLength":1024,"title":"New"},"want_token":{"type":"boolean","title":"Want Token","default":false}},"type":"object","required":["new"],"title":"ResetFinishRequest","description":"The emailed code and the password to set with it (§244)."},"ResetStartRequest":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email","default":""}},"type":"object","title":"ResetStartRequest","description":"\"Forgot password?\": the address to send a code to (§244)."},"SaveRequest":{"properties":{"query":{"type":"string","maxLength":500,"title":"Query"},"minutes":{"type":"number","maximum":60.0,"minimum":0.0,"title":"Minutes","default":1.5},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"source":{"type":"string","maxLength":40,"title":"Source","default":""},"folder_id":{"type":"string","maxLength":64,"title":"Folder Id","default":""},"episode":{"type":"string","maxLength":80,"title":"Episode","default":""}},"type":"object","required":["query"],"title":"SaveRequest"},"ScriptRequest":{"properties":{"query":{"type":"string","maxLength":500,"title":"Query"},"minutes":{"type":"number","maximum":10.0,"minimum":1.0,"title":"Minutes"},"search":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Search"}},"type":"object","required":["query","minutes"],"title":"ScriptRequest"},"SendMessageRequest":{"properties":{"to":{"type":"string","maxLength":64,"title":"To"},"text":{"type":"string","maxLength":1000,"title":"Text","default":""},"query":{"type":"string","maxLength":500,"title":"Query","default":""},"minutes":{"type":"number","maximum":60.0,"minimum":0.0,"title":"Minutes","default":0},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"reply":{"type":"boolean","title":"Reply","default":false},"episode":{"type":"string","maxLength":80,"title":"Episode","default":""}},"type":"object","required":["to"],"title":"SendMessageRequest"},"ShareRequest":{"properties":{"query":{"type":"string","maxLength":500,"title":"Query"},"minutes":{"type":"number","maximum":60.0,"minimum":0.0,"title":"Minutes","default":1.5},"title":{"type":"string","maxLength":200,"title":"Title","default":""},"episode":{"type":"string","maxLength":80,"title":"Episode","default":""}},"type":"object","required":["query"],"title":"ShareRequest"},"SpellRequest":{"properties":{"words":{"items":{"type":"string"},"type":"array","maxItems":40,"title":"Words"},"first":{"items":{"type":"boolean"},"type":"array","maxItems":40,"title":"First"}},"type":"object","required":["words"],"title":"SpellRequest"},"StressTrialRequest":{"properties":{"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"},"say":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Say"},"sentence":{"type":"boolean","title":"Sentence","default":false}},"type":"object","required":["name"],"title":"StressTrialRequest"},"StudentConfirm":{"properties":{"code":{"type":"string","maxLength":12,"title":"Code"}},"type":"object","required":["code"],"title":"StudentConfirm"},"StudentStart":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"}},"type":"object","required":["email"],"title":"StudentStart"},"SurveyAnswer":{"properties":{"survey":{"type":"string","maxLength":20,"title":"Survey"},"answers":{"additionalProperties":true,"type":"object","title":"Answers"},"episode":{"anyOf":[{"$ref":"#/components/schemas/SurveyEpisode"},{"type":"null"}]},"build":{"type":"string","maxLength":200,"title":"Build","default":""}},"type":"object","required":["survey"],"title":"SurveyAnswer"},"SurveyDismiss":{"properties":{"survey":{"type":"string","maxLength":20,"title":"Survey"}},"type":"object","required":["survey"],"title":"SurveyDismiss"},"SurveyEpisode":{"properties":{"id":{"type":"string","maxLength":200,"title":"Id","default":""},"title":{"type":"string","maxLength":300,"title":"Title","default":""}},"type":"object","title":"SurveyEpisode"},"SurveyOffer":{"properties":{"moment":{"type":"string","maxLength":20,"title":"Moment","default":"open"}},"type":"object","title":"SurveyOffer"},"ThumbnailDecision":{"properties":{"node":{"type":"string","maxLength":200,"minLength":1,"title":"Node"},"action":{"type":"string","pattern":"^(approve|reject)$","title":"Action"}},"type":"object","required":["node","action"],"title":"ThumbnailDecision"},"ThumbnailRun":{"properties":{"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":10},"nodes":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Nodes"},"regenerate":{"type":"boolean","title":"Regenerate","default":false},"retry_failed":{"type":"boolean","title":"Retry Failed","default":false}},"type":"object","title":"ThumbnailRun"},"TypingRequest":{"properties":{"to":{"type":"string","maxLength":64,"title":"To"}},"type":"object","required":["to"],"title":"TypingRequest"},"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"},"VerdictRequest":{"properties":{"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"},"verdict":{"type":"string","maxLength":10,"title":"Verdict","default":""}},"type":"object","required":["name"],"title":"VerdictRequest"},"VibeFileRequest":{"properties":{"query":{"type":"string","maxLength":300,"title":"Query"},"minutes":{"type":"number","maximum":60.0,"minimum":0.0,"title":"Minutes","default":1.5},"folder_id":{"type":"string","maxLength":64,"title":"Folder Id","default":""}},"type":"object","required":["query"],"title":"VibeFileRequest"},"VibeLikeRequest":{"properties":{"on":{"type":"boolean","title":"On","default":true}},"type":"object","title":"VibeLikeRequest"},"VibeReplyRequest":{"properties":{"text":{"type":"string","maxLength":2000,"title":"Text"},"parent_id":{"type":"integer","minimum":0.0,"title":"Parent Id","default":0}},"type":"object","required":["text"],"title":"VibeReplyRequest"},"VoiceChoice":{"properties":{"voice":{"type":"string","maxLength":80,"title":"Voice"}},"type":"object","required":["voice"],"title":"VoiceChoice"},"WaitlistAddRequest":{"properties":{"user_id":{"type":"string","maxLength":64,"title":"User Id"}},"type":"object","required":["user_id"],"title":"WaitlistAddRequest"},"WaitlistJoinRequest":{"properties":{"email":{"type":"string","maxLength":254,"title":"Email"},"password":{"type":"string","maxLength":1024,"title":"Password","default":""},"referral_code":{"type":"string","maxLength":64,"title":"Referral Code","default":""},"want_token":{"type":"boolean","title":"Want Token","default":false},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"ambassador_code":{"type":"string","maxLength":40,"title":"Ambassador Code","default":""}},"type":"object","required":["email"],"title":"WaitlistJoinRequest"},"WipeRequest":{"properties":{"scope":{"type":"string","pattern":"^(seed|all)$","title":"Scope","default":"seed"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","title":"WipeRequest","description":"What to remove. Nothing is removed unless `dry_run` is explicitly false."},"app__FollowRequest__1":{"properties":{"handle":{"type":"string","maxLength":25,"title":"Handle","default":""},"user_id":{"type":"string","maxLength":64,"title":"User Id","default":""},"via":{"type":"string","maxLength":32,"title":"Via","default":""}},"type":"object","title":"FollowRequest","description":"Who to follow. By handle from a search, or by the id a search returned -\nnever by a listener id the client made up, which is why both come from\nsomewhere the server produced."},"app__FollowRequest__2":{"properties":{"topic":{"type":"string","maxLength":60,"minLength":1,"title":"Topic"},"symbol":{"type":"string","maxLength":12,"pattern":"^[A-Za-z0-9.\\-]*$","title":"Symbol","default":""}},"type":"object","required":["topic"],"title":"FollowRequest"}}}}