{"openapi":"3.1.0","info":{"title":"Cuba Research Project API","description":"The public read API of the **Cuba Research Project** archive: Cuban\ngenealogical and demographic records — civil registrations,\nparish books, cemetery and burial registers, censuses and electoral rolls,\nschool lists and military service files — with every person named in them\nindexed and searchable.\n\nEverything documented under **search** and **meta** is public: no key, no\naccount, `GET` only. The remaining tags cover the members' area (family trees,\ntranscription, messaging) and need a session.\n\n* Human API guide: <https://cubaresearchproject.com/developers/>\n* Guide for automated readers: <https://cubaresearchproject.com/llms.txt>\n* This document: <https://cubaresearchproject.com/api/openapi.json>\n\nNames are matched without regard to accent or case, so `Valdes` and `Valdes`\nwith an acute return the same people. Search results come 24 to a page.\n\nPlease identify your client with a descriptive `User-Agent`, keep request rates\ncivil, and credit Cuba Research Project when you publish anything built on it.\n","contact":{"name":"Cuba Research Project","url":"https://cubaresearchproject.com/contact"},"license":{"name":"Free for research and personal use","url":"https://cubaresearchproject.com/terms-of-service/"},"version":"1.0.0"},"servers":[{"url":"https://cubaresearchproject.com","description":"Production"}],"paths":{"/api/auth/login":{"post":{"tags":["auth"],"summary":"Auth:Cookie-Db.Login","operationId":"auth_cookie_db_login_api_auth_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_auth_cookie_db_login_api_auth_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"LOGIN_BAD_CREDENTIALS":{"summary":"Bad credentials or the user is inactive.","value":{"detail":"LOGIN_BAD_CREDENTIALS"}},"LOGIN_USER_NOT_VERIFIED":{"summary":"The user is not verified.","value":{"detail":"LOGIN_USER_NOT_VERIFIED"}}}}}},"204":{"description":"No Content"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Auth:Cookie-Db.Logout","operationId":"auth_cookie_db_logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing token or inactive user."},"204":{"description":"No Content"}},"security":[{"APIKeyCookie":[]}]}},"/api/auth/register":{"post":{"tags":["auth"],"summary":"Register:Register","operationId":"register_register_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"REGISTER_USER_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"REGISTER_USER_ALREADY_EXISTS"}},"REGISTER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"REGISTER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/request-verify-token":{"post":{"tags":["auth"],"summary":"Verify:Request-Token","operationId":"verify_request_token_api_auth_request_verify_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_verify_request_token_api_auth_request_verify_token_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify":{"post":{"tags":["auth"],"summary":"Verify:Verify","operationId":"verify_verify_api_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_verify_verify_api_auth_verify_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"VERIFY_USER_BAD_TOKEN":{"summary":"Bad token, not existing user ornot the e-mail currently set for the user.","value":{"detail":"VERIFY_USER_BAD_TOKEN"}},"VERIFY_USER_ALREADY_VERIFIED":{"summary":"The user is already verified.","value":{"detail":"VERIFY_USER_ALREADY_VERIFIED"}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Reset:Forgot Password","operationId":"reset_forgot_password_api_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reset_forgot_password_api_auth_forgot_password_post"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset:Reset Password","operationId":"reset_reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reset_reset_password_api_auth_reset_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"RESET_PASSWORD_BAD_TOKEN":{"summary":"Bad or expired token.","value":{"detail":"RESET_PASSWORD_BAD_TOKEN"}},"RESET_PASSWORD_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"RESET_PASSWORD_INVALID_PASSWORD","reason":"Password should be at least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify-login":{"post":{"tags":["auth"],"summary":"Verify And Login","description":"Confirm the address in the emailed token, then set the session cookie.\n\nAlready-verified is not an error the member can act on — they clicked a link\ntwice — so it answers 409 and the page sends them to sign in rather than\nsilently opening a session off a link that may be sitting in an old inbox.","operationId":"verify_and_login_api_auth_verify_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/consent":{"post":{"tags":["auth"],"summary":"Record Consent","description":"The welcome's first step: the terms, and whether to email new collections.\n\nThe terms are required unless the register form already recorded them; a\nGoogle or Facebook member cannot finish this step without them. The alerts\nare optional and only ever added here, never taken away: unsubscribing is\nthe newsletter's own link. Answering clears consent_pending for good.","operationId":"record_consent_api_auth_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/auth/oauth/unlink":{"post":{"tags":["auth"],"summary":"Unlink Oauth","description":"Cut the account loose from whichever provider opens it, and post a reset link.\n\nThis is the only way off a provider, so it has to leave a working account\nbehind: the hash on it is the random one from the OAuth signup, which\nnobody knows, so the reset email *is* the new way in. It is sent to the\naddress already on the account — the same one the provider vouched for.\n\nOne route rather than one per provider, because an account has at most one\nlink (associate_by_email is off) and the member is not choosing between\nthem — they are leaving the only arrangement they have.\n\nThe current session stays open. Signing out before following the emailed\nlink would otherwise lock them out of their own account.","operationId":"unlink_oauth_api_auth_oauth_unlink_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/auth/facebook/deauthorize":{"post":{"tags":["auth"],"summary":"Deauthorize","description":"Meta pings this when someone removes the app from their Facebook account.\n\nAnswers 200 in every case it can. Meta retries a failure and eventually\ndisables the callback, and \"this Facebook user was never a member here\" is\nnot a failure — it is the commonest outcome of all, since anyone who\nunlinked from their account page reaches Facebook's screen afterwards.","operationId":"deauthorize_api_auth_facebook_deauthorize_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_deauthorize_api_auth_facebook_deauthorize_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/facebook/data-deletion":{"post":{"tags":["auth"],"summary":"Data Deletion","description":"Meta's \"delete my data\" request. Deletes the account behind the link.\n\nThe response shape is Meta's, not ours: a URL the person can open to see\nwhat happened, and a confirmation code that names this request. Both are\nshown to them inside Facebook.\n\nDeleting the whole account is the honest reading of the request here. An\naccount reached through Facebook Login exists *because* of Facebook, and\nkeeping the trees and uploads while dropping only the link would answer\n\"delete my data\" by deleting the least of it.","operationId":"data_deletion_api_auth_facebook_data_deletion_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_data_deletion_api_auth_facebook_data_deletion_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/facebook/data-deletion/{code}":{"get":{"tags":["auth"],"summary":"Deletion Status","description":"What the status page reads. Deliberately says almost nothing.\n\nAnyone with the code can call this, so it carries no email, no name and no\naccount id — only that a request under this code was received, and when it\nwas finished. That is all Meta asks the page to show, and all a code alone\nshould be able to prove.","operationId":"deletion_status_api_auth_facebook_data_deletion__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me":{"get":{"tags":["users"],"summary":"Users:Current User","operationId":"users_current_user_api_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."}},"security":[{"APIKeyCookie":[]}]},"patch":{"tags":["users"],"summary":"Users:Patch Current User","operationId":"users_patch_current_user_api_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"UPDATE_USER_EMAIL_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"UPDATE_USER_EMAIL_ALREADY_EXISTS"}},"UPDATE_USER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"UPDATE_USER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/users/{id}":{"get":{"tags":["users"],"summary":"Users:User","operationId":"users_user_api_users__id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["users"],"summary":"Users:Patch User","operationId":"users_patch_user_api_users__id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"400":{"content":{"application/json":{"examples":{"UPDATE_USER_EMAIL_ALREADY_EXISTS":{"summary":"A user with this email already exists.","value":{"detail":"UPDATE_USER_EMAIL_ALREADY_EXISTS"}},"UPDATE_USER_INVALID_PASSWORD":{"summary":"Password validation failed.","value":{"detail":{"code":"UPDATE_USER_INVALID_PASSWORD","reason":"Password should beat least 3 characters"}}}},"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Users:Delete User","operationId":"users_delete_user_api_users__id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing token or inactive user."},"403":{"description":"Not a superuser."},"404":{"description":"The user does not exist."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/authorize":{"get":{"tags":["auth"],"summary":"Oauth:Google.Cookie-Db-Oauth.Authorize","operationId":"oauth_google_cookie_db_oauth_authorize_api_auth_google_authorize_get","parameters":[{"name":"scopes","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Scopes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AuthorizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/callback":{"get":{"tags":["auth"],"summary":"Oauth:Google.Cookie-Db-Oauth.Callback","description":"The response varies based on the authentication backend used.","operationId":"oauth_google_cookie_db_oauth_callback_api_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"code_verifier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Verifier"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"examples":{"INVALID_STATE_TOKEN":{"summary":"Invalid state token."},"LOGIN_BAD_CREDENTIALS":{"summary":"User is inactive.","value":{"detail":"LOGIN_BAD_CREDENTIALS"}}},"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/facebook/authorize":{"get":{"tags":["auth"],"summary":"Oauth:Facebook.Cookie-Db-Oauth.Authorize","operationId":"oauth_facebook_cookie_db_oauth_authorize_api_auth_facebook_authorize_get","parameters":[{"name":"scopes","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Scopes"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AuthorizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/facebook/callback":{"get":{"tags":["auth"],"summary":"Oauth:Facebook.Cookie-Db-Oauth.Callback","description":"The response varies based on the authentication backend used.","operationId":"oauth_facebook_cookie_db_oauth_callback_api_auth_facebook_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"code_verifier","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Verifier"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"examples":{"INVALID_STATE_TOKEN":{"summary":"Invalid state token."},"LOGIN_BAD_CREDENTIALS":{"summary":"User is inactive.","value":{"detail":"LOGIN_BAD_CREDENTIALS"}}},"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/meta":{"get":{"tags":["search"],"summary":"Meta","operationId":"meta_api_meta_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/random":{"get":{"tags":["search"],"summary":"Random Record","description":"A random searchable person — powers the 'Surprise me' discovery button.","operationId":"random_record_api_random_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/suggest":{"get":{"tags":["search"],"summary":"Suggest","description":"Typeahead: distinct names matching the query, most frequent first.\nPowers the home-page search autocomplete.\n\nAccepts either a free-text `q` (matched against the whole name) or the\nstructured given / surname / surname2 trio the hero box now sends; when\nseveral are given they are ANDed, exactly like /api/search.","operationId":"suggest_api_suggest_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"given","in":"query","required":false,"schema":{"type":"string","default":"","title":"Given"}},{"name":"surname","in":"query","required":false,"schema":{"type":"string","default":"","title":"Surname"}},{"name":"surname2","in":"query","required":false,"schema":{"type":"string","default":"","title":"Surname2"}},{"name":"match","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections":{"get":{"tags":["search"],"summary":"Collections","description":"Full dataset listing for the Collections page; each links to its on-site\npage (wp_url) so collections point to the collections on this site.\n\nServed from the in-process cache. A cache older than the TTL is still\nserved — the refresh happens behind the response — so the only request that\nwaits for aggregation is one that arrives before the boot warm-up has\nfinished.","operationId":"collections_api_collections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/collections/{slug}/content":{"get":{"tags":["search"],"summary":"Collection Content","description":"Collection copy follows the same visibility rules as its records.","operationId":"collection_content_api_collections__slug__content_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","pattern":"^(en|es)$","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{dataset_id}/values":{"get":{"tags":["search"],"summary":"Collection Values","description":"Every distinct place (hometowns and ports), ship name or birthplace\n(\"native of\") in one collection, most common first. Feeds the typeahead on its search form.","operationId":"collection_values_api_collections__dataset_id__values_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}},{"name":"field","in":"query","required":true,"schema":{"type":"string","pattern":"^(place|ship|native)$","title":"Field"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/search":{"get":{"tags":["search"],"summary":"Search","operationId":"search_api_search_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"given","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given"}},{"name":"surname","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surname"}},{"name":"surname2","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surname2"}},{"name":"place","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place"}},{"name":"ship","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ship"}},{"name":"native","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native"}},{"name":"detail","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},{"name":"has","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Has"}},{"name":"person","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Person"}},{"name":"principal_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Principal Only"}},{"name":"overlap","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overlap"}},{"name":"dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dataset"}},{"name":"within","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Within"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Type"}},{"name":"yfrom","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Yfrom"}},{"name":"yto","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Yto"}},{"name":"bfrom","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bfrom"}},{"name":"bto","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bto"}},{"name":"dfrom","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dfrom"}},{"name":"dto","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dto"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"relevance","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"","title":"Source"}},{"name":"match","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match"}},{"name":"facets","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Facets"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/search/suggestions":{"get":{"tags":["search"],"summary":"Search Suggestions","operationId":"search_suggestions_api_search_suggestions_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"given","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given"}},{"name":"surname","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surname"}},{"name":"surname2","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surname2"}},{"name":"match","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match"}},{"name":"place","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place"}},{"name":"ship","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ship"}},{"name":"native","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native"}},{"name":"dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dataset"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Type"}},{"name":"yfrom","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Yfrom"}},{"name":"yto","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Yto"}},{"name":"bfrom","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bfrom"}},{"name":"bto","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bto"}},{"name":"dfrom","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dfrom"}},{"name":"dto","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dto"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/record/{record_id}":{"get":{"tags":["search"],"summary":"Record","operationId":"record_api_record__record_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}},{"name":"person_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Person Id"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/record/{record_id}/companions":{"get":{"tags":["search"],"summary":"Record Companions","description":"The other people on the same voyage.\n\nThe ship-passenger collection groups its rows by an internal ship code, and\nfinding relatives who travelled together is how the source was meant to be\nread. Returns the companions on the same code in the same collection, the\nprincipal first per record, capped so a 900-passenger steamer does not\nbecome the page.\nMembers only, like the rest of the record (an empty list signed out,\nunless a share link opens this record).","operationId":"record_companions_api_record__record_id__companions_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/person/{person_id}/main-record":{"get":{"tags":["search"],"summary":"Person Main Record","operationId":"person_main_record_api_person__person_id__main_record_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/stats/imports":{"get":{"tags":["search"],"summary":"Import Stats","operationId":"import_stats_api_stats_imports_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/favorites":{"get":{"tags":["user"],"summary":"List Favorites","operationId":"list_favorites_api_favorites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["user"],"summary":"Add Favorite","operationId":"add_favorite_api_favorites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/favorites/export":{"get":{"tags":["user"],"summary":"Export Favorites","description":"Saved records with the source behind each, for a spreadsheet or a list\nof citations. A paid-plan feature (allowance.EXPORT_PLANS); the browser\nwrites the file, so the record types and collection titles come out in\nthe reader's language through the same helpers the saved list uses.","operationId":"export_favorites_api_favorites_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/account/supporter-badge":{"put":{"tags":["user"],"summary":"Set Supporter Badge","description":"Show or hide the Supporter mark beside this member's name.","operationId":"set_supporter_badge_api_account_supporter_badge_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupporterBadgeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/favorites/ids":{"get":{"tags":["user"],"summary":"Favorite Ids","operationId":"favorite_ids_api_favorites_ids_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/favorites/{record_id}/note":{"put":{"tags":["user"],"summary":"Set Favorite Note","description":"Write, change or clear the note on a saved record.\n\nThe saved list was a flat list of names ordered by when they were kept,\nwith a filter over it — no way to say why any of them was kept. For\ngenealogy that is the thing most worth writing down: which ancestor this\nmight be, what it agrees with, what to check next.\n\nAn empty note clears the row's note rather than storing an empty string, so\nthe list has one state for \"nothing written\" and the filter never matches\nwhitespace. Scoped to the member's own rows by user_id, so a record id\nguessed from elsewhere reaches nothing.","operationId":"set_favorite_note_api_favorites__record_id__note_put","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteNoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/favorites/{record_id}":{"delete":{"tags":["user"],"summary":"Remove Favorite","operationId":"remove_favorite_api_favorites__record_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/submissions":{"post":{"tags":["user"],"summary":"Create Submission","operationId":"create_submission_api_submissions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/submissions/mine":{"get":{"tags":["user"],"summary":"My Submissions","operationId":"my_submissions_api_submissions_mine_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/profiles/{user_id}":{"get":{"tags":["user"],"summary":"Public Profile","operationId":"public_profile_api_profiles__user_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/research/connections":{"get":{"tags":["user"],"summary":"Research Connections","operationId":"research_connections_api_research_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/research/add":{"post":{"tags":["user"],"summary":"Add Research","description":"Add to the member's research without touching the rest of it.\n\nMerged here rather than in the browser: two taps in quick succession would\neach send what the page last knew, and the second would undo the first.\nThe row lock makes them queue instead.","operationId":"add_research_api_research_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchAdditions"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/research/suggestions":{"get":{"tags":["user"],"summary":"Research Suggestions","description":"Surnames the member has already worked on, for them to confirm or ignore.\n\nNothing here is saved: it is a list of candidates, each with where it was\nseen, and only a tap on one adds it. Read from the member's own trees (every\nperson, living and private included — this is the owner looking at their\nown work), the records they saved, and the people extracted from documents\nthey transcribed; never the sample document every account is given.\n\nPlaces are not derived. \"Santa Clara\" in a tree is any of three towns, and\npicking one would be a guess; a province is one tap for the member instead.","operationId":"research_suggestions_api_research_suggestions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/users/{user_id}/usage/{kind}":{"get":{"tags":["admin"],"summary":"User Usage","operationId":"user_usage_api_admin_users__user_id__usage__kind__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["trees","favorites","submissions","messages","documents","photos","comments","signins","storage","charges"],"type":"string","title":"Kind"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Q"}},{"name":"window","in":"query","required":false,"schema":{"enum":["all","30d","90d"],"type":"string","default":"all","title":"Window"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["newest","oldest","largest"],"type":"string","default":"newest","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/transcription":{"get":{"tags":["admin"],"summary":"Transcription Overview","description":"Everything the dashboard draws, for one range.","operationId":"transcription_overview_api_admin_analytics_transcription_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":3650,"minimum":1},{"type":"null"}],"default":30,"title":"Days"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/transcription/documents":{"get":{"tags":["admin"],"summary":"Transcription Documents","description":"The documents behind any figure on the dashboard, filtered the way the\nfigure was: a bar's day, a plan, a status, a step that failed.","operationId":"transcription_documents_api_admin_analytics_transcription_documents_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":3650,"minimum":1},{"type":"null"}],"default":30,"title":"Days"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"}},{"name":"bucket","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Bucket"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"step_failed","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Failed"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"uploaded","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":5,"default":25,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/transcription/documents/{document_id}":{"get":{"tags":["admin"],"summary":"Transcription Document","description":"One document's whole run: every job, every step on one clock, every\nDatalab request, and what each cost.","operationId":"transcription_document_api_admin_analytics_transcription_documents__document_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics/transcription/documents/{document_id}/exclude":{"post":{"tags":["admin"],"summary":"Exclude Document","description":"Leave a document out of every analytics figure, or count it again.\n\nOnly the analytics read this mark. The document itself, its pages and\nthe member's view of it are untouched.","operationId":"exclude_document_api_admin_analytics_transcription_documents__document_id__exclude_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExcludeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/support-decisions":{"get":{"tags":["admin"],"summary":"Command Center","operationId":"command_center_api_admin_support_decisions_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":7,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/support-cards":{"get":{"tags":["admin"],"summary":"Support Cards","description":"The card experiment's results and the schedule that decides showings.\nWithout `days` it counts from the day the cards went live, and no window\nreaches back before then: earlier control views were shown under another\nschedule and would skew the comparison.","operationId":"support_cards_api_admin_support_cards_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":90,"minimum":1},{"type":"null"}],"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversion-funnel":{"get":{"tags":["admin"],"summary":"Report","operationId":"report_api_admin_conversion_funnel_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":180,"minimum":7,"default":30,"title":"Days"}},{"name":"page","in":"query","required":false,"schema":{"enum":["all","record","collection","tree","research","transcription","other"],"type":"string","default":"all","title":"Page"}},{"name":"plan","in":"query","required":false,"schema":{"enum":["all","unknown","hobbyist","researcher","archive"],"type":"string","default":"all","title":"Plan"}},{"name":"lang","in":"query","required":false,"schema":{"enum":["all","en","es"],"type":"string","default":"all","title":"Lang"}},{"name":"device","in":"query","required":false,"schema":{"enum":["all","mobile","tablet","desktop","unknown"],"type":"string","default":"all","title":"Device"}},{"name":"exposure","in":"query","required":false,"schema":{"enum":["all","seen","unseen"],"type":"string","default":"all","title":"Exposure"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/share-clicks":{"get":{"tags":["admin"],"summary":"Share Click Counts","operationId":"share_click_counts_api_admin_share_clicks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/hint-trial/trees":{"get":{"tags":["admin","admin"],"summary":"Trial Trees","operationId":"trial_trees_api_admin_hint_trial_trees_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Q"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/hint-trial/mappings":{"get":{"tags":["admin","admin"],"summary":"Mappings","operationId":"mappings_api_admin_hint_trial_mappings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/hint-trial/runs":{"post":{"tags":["admin","admin"],"summary":"Start","operationId":"start_api_admin_hint_trial_runs_post","security":[{"APIKeyCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrialBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","admin"],"summary":"Runs","operationId":"runs_api_admin_hint_trial_runs_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"query","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Tree Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/hint-trial/active-run":{"get":{"tags":["admin","admin"],"summary":"Active Run","operationId":"active_run_api_admin_hint_trial_active_run_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/hint-trial/runs/{run_id}/cancel":{"post":{"tags":["admin","admin"],"summary":"Cancel","operationId":"cancel_api_admin_hint_trial_runs__run_id__cancel_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/hint-trial/runs/{run_id}":{"get":{"tags":["admin","admin"],"summary":"Read","operationId":"read_api_admin_hint_trial_runs__run_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/hint-trial/results/{result_id}/review":{"post":{"tags":["admin","admin"],"summary":"Review","operationId":"review_api_admin_hint_trial_results__result_id__review_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"result_id","in":"path","required":true,"schema":{"type":"integer","title":"Result Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/normalization/summary":{"get":{"tags":["admin","admin"],"summary":"Summary","operationId":"summary_api_admin_normalization_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/normalization/values":{"get":{"tags":["admin","admin"],"summary":"Values","operationId":"values_api_admin_normalization_values_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["date","place"],"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"one or more, comma-separated; default: the review queue","title":"Status"},"description":"one or more, comma-separated; default: the review queue"},{"name":"decided_by","in":"query","required":false,"schema":{"anyOf":[{"enum":["auto","ai","admin"],"type":"string"},{"type":"null"}],"title":"Decided By"}},{"name":"reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},{"name":"collection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/normalization/values/{value_id}/decision":{"post":{"tags":["admin","admin"],"summary":"Decide","operationId":"decide_api_admin_normalization_values__value_id__decision_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"integer","title":"Value Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Decision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/normalization/places":{"get":{"tags":["admin","admin"],"summary":"Search Places","operationId":"search_places_api_admin_normalization_places_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":120,"title":"Q"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/normalization/runs":{"get":{"tags":["admin","admin"],"summary":"Runs","operationId":"runs_api_admin_normalization_runs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["admin","admin"],"summary":"Start Run","operationId":"start_run_api_admin_normalization_runs_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/normalization/overlay/record/{record_id}":{"get":{"tags":["admin","admin"],"summary":"Record Overlay","description":"Read only: what each date and place of one record was normalized to, and\nhow it compares with the tree people who cite the record.","operationId":"record_overlay_api_admin_normalization_overlay_record__record_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/normalization/overlay/places":{"get":{"tags":["admin","admin"],"summary":"Places Overlay","description":"Read only: the headline place reading of several records, for search cards.","operationId":"places_overlay_api_admin_normalization_overlay_places_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","maxLength":2000,"description":"record ids, comma-separated (60 at most)","title":"Ids"},"description":"record ids, comma-separated (60 at most)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/normalization/overlay/tree/{tree_id}/{person_id}":{"get":{"tags":["admin","admin"],"summary":"Tree Overlay","description":"Read only: a tree person's dates and places as the normalizer reads them.","operationId":"tree_overlay_api_admin_normalization_overlay_tree__tree_id___person_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/normalization/reasons":{"get":{"tags":["admin","admin"],"summary":"Reasons","operationId":"reasons_api_admin_normalization_reasons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/vector-chat":{"get":{"tags":["admin"],"summary":"Vector Chat Status","operationId":"vector_chat_status_api_admin_vector_chat_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["admin"],"summary":"Vector Chat","operationId":"vector_chat_api_admin_vector_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ask"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/vector-chat/stream":{"post":{"tags":["admin"],"summary":"Vector Chat Stream","description":"The same answer, sent as it is written: one JSON line with the search\n(\"meta\"), then the answer in checked pieces (\"text\"), then the checked\nwhole and the timings (\"done\"), which the box keeps.","operationId":"vector_chat_stream_api_admin_vector_chat_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ask"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/vector-chat/feedback":{"post":{"tags":["admin"],"summary":"Vector Chat Feedback","description":"The reader's verdict on one of their own answers, and what was wrong with it.","operationId":"vector_chat_feedback_api_admin_vector_chat_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/vector-chat/log":{"get":{"tags":["admin"],"summary":"Vector Chat Log","description":"The question log, newest first, for review: filter by one person\n(user_id), by outcome\n(answered, error, refused, abandoned), feedback (1, -1), a flag (no_exact:\nanswered with nothing exact found; invented: citations the check removed;\nset_aside: planted text in a source) or words in the question; page with\n`before` (the last id seen).","operationId":"vector_chat_log_api_admin_vector_chat_log_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"}},{"name":"feedback","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feedback"}},{"name":"flag","in":"query","required":false,"schema":{"anyOf":[{"enum":["no_exact","invented","set_aside"],"type":"string"},{"type":"null"}],"title":"Flag"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Before"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/vector-chat/log/summary":{"get":{"tags":["admin"],"summary":"Vector Chat Log Summary","description":"How the chat did over the last `days`: questions by outcome, verdicts,\nthe review flags, spend and the typical wait. The log keeps LOG_KEEP.","operationId":"vector_chat_log_summary_api_admin_vector_chat_log_summary_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/vector-chat/users/{user_id}":{"get":{"tags":["admin"],"summary":"Vector Chat User","description":"One member's Ask the archive at a glance, for their admin page: what\ntheir plan allows and has used this month, their pack, and what their\nquestions cost over 30 days. The questions themselves stay in the log\n(filter it by this member).","operationId":"vector_chat_user_api_admin_vector_chat_users__user_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/cloudflare-ai-search-sync":{"get":{"tags":["admin"],"summary":"Sync Status","operationId":"sync_status_api_admin_cloudflare_ai_search_sync_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/stats":{"get":{"tags":["admin"],"summary":"Stats","operationId":"stats_api_admin_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/overview/reset":{"post":{"tags":["admin"],"summary":"Reset Overview","description":"Start the overview's counts from now. Nothing is deleted.","operationId":"reset_overview_api_admin_overview_reset_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/presence":{"get":{"tags":["admin"],"summary":"Member Presence","operationId":"member_presence_api_admin_presence_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/overview":{"get":{"tags":["admin"],"summary":"Overview","description":"Everything the admin overview shows, for one period.\n\nThree kinds of figure, kept apart because they answer different questions:\n`summary` is what happened in the period (with the period before it, for\ndirection); `totals` is what exists right now; `attention` is what is\nwaiting on an administrator. Archive records and tree people stay separate\nthroughout: tree people are user-supplied genealogy, not archival evidence.","operationId":"overview_api_admin_overview_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"string","default":"30d","title":"Window"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/activity":{"get":{"tags":["admin"],"summary":"Activity Feed","description":"Everything that happened on the site, newest first.\n\nSign-ins are left out unless asked for by name: there are many more of\nthem than of anything else, and an unfiltered feed of logins buries the\ntree someone deleted this morning.","operationId":"activity_feed_api_admin_activity_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Kind"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/trees":{"get":{"tags":["admin"],"summary":"Trees","description":"Every family tree that exists, with its owner and its size.","operationId":"trees_api_admin_trees_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"visibility","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(public|private)$"},{"type":"null"}],"title":"Visibility"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(updated|created|people|title)$","default":"updated","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/deleted":{"get":{"tags":["admin"],"summary":"Deleted","description":"What has been deleted, what it was, and who deleted it.","operationId":"deleted_api_admin_deleted_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(tree_deleted|account_deleted|document_deleted|photo_deleted)$"},{"type":"null"}],"title":"Kind"}},{"name":"cause","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(owner|admin|account|facebook|self)$"},{"type":"null"}],"title":"Cause"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/transcribe-settings":{"get":{"tags":["admin"],"summary":"Get Transcribe Settings","description":"Current cleanup prompt and the models used by future transcribe jobs.","operationId":"get_transcribe_settings_api_admin_transcribe_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"put":{"tags":["admin"],"summary":"Update Transcribe Settings","description":"Persist settings for future cleanup and demographic-extraction runs.","operationId":"update_transcribe_settings_api_admin_transcribe_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscribeSettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/datalab-settings":{"get":{"tags":["admin"],"summary":"Get Datalab Settings","operationId":"get_datalab_settings_api_admin_datalab_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"put":{"tags":["admin"],"summary":"Update Datalab Settings","operationId":"update_datalab_settings_api_admin_datalab_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatalabSettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/transcribe-jobs":{"get":{"tags":["admin"],"summary":"Transcribe Jobs","description":"Recent transcription jobs with their recorded steps.\n\nOne query per page of jobs plus one for their steps, rather than a join —\na job has a handful of steps and folding them client-side keeps the row\ncount honest for pagination.","operationId":"transcribe_jobs_api_admin_transcribe_jobs_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/transcribe-jobs/{job_id}/retry":{"post":{"tags":["admin"],"summary":"Retry Transcribe Job","description":"Put a failed job back on the queue.\n\nAttempts reset to zero: an admin retrying by hand has usually just fixed\nwhatever made it fail, and should get the full retry budget again.","operationId":"retry_transcribe_job_api_admin_transcribe_jobs__job_id__retry_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/transcribe-jobs/{job_id}/cancel":{"post":{"tags":["admin"],"summary":"Cancel Datalab Job","description":"Stop an Advanced Detection run. Pages already saved stay saved.\n\nCancelling does not stop a conversion Datalab has already accepted and\nwill already bill: what it stops is CRP waiting for it, and any chunk not\nyet submitted. Requests still open are marked so the rate limiter stops\ncounting them against the concurrency allowance.","operationId":"cancel_datalab_job_api_admin_transcribe_jobs__job_id__cancel_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/datalab-jobs":{"get":{"tags":["admin"],"summary":"Datalab Jobs","description":"Advanced Detection runs: chunks, timings, errors and what was billed.\n\nThe cost here is Datalab's own `cost_breakdown`, recorded per chunk as each\nresult came back, so this states a charge rather than estimating one from\nelapsed GPU time the way the self-hosted predecessor had to. A chunk whose\nresult did not report a cost contributes nothing, and the job is then\nmarked partial rather than quietly under-reported.","operationId":"datalab_jobs_api_admin_datalab_jobs_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/datalab-status":{"get":{"tags":["admin"],"summary":"Datalab Status","description":"What the provider connection looks like right now.\n\nCredentials are never returned, only whether each is present. The two\ncounters are the live state of the limits: how many calls the whole\ndeployment has made in the last sixty seconds, and how many conversions\nare open at Datalab this second.","operationId":"datalab_status_api_admin_datalab_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/users/{user_id}/documents":{"get":{"tags":["admin"],"summary":"User Documents","operationId":"user_documents_api_admin_users__user_id__documents_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/documents/{doc_id}":{"get":{"tags":["admin"],"summary":"Document Detail","description":"The document, every page in all three versions, and its jobs.\n\nOpening someone's family papers is written into their account history, so\nthe member's record shows who looked. Once an hour per admin and document:\nthe page refetches on focus, and each refetch is not a new look.","operationId":"document_detail_api_admin_documents__doc_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/documents/{doc_id}/file":{"get":{"tags":["admin"],"summary":"Document File","description":"The original scan, as the member uploaded it.","operationId":"document_file_api_admin_documents__doc_id__file_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"tags":["admin"],"summary":"Users","description":"The member list, and the four questions it gets asked about a row.\n\nHow did they get in, what are they paying for, have they confirmed their\naddress, and are they staff. All four were answerable only by opening each\naccount one at a time, which for \"who never confirmed their email\" meant\nopening all of them.\n\nThe joins are LEFT and every one of them has a default, because none of the\nthree tables is guaranteed to hold a row: an account has no oauth_account\nunless it came in through a provider, no transcribe_allowance until it\ntouches transcription, and no billing_accounts until it reaches checkout.\nAn INNER join here would quietly shorten the list.","operationId":"users_api_admin_users_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(password|google|facebook)$"},{"type":"null"}],"title":"Provider"}},{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(free|hobbyist|researcher|archive)$"},{"type":"null"}],"title":"Plan"}},{"name":"verified","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(yes|no)$"},{"type":"null"}],"title":"Verified"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(admin|member)$"},{"type":"null"}],"title":"Role"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(active|disabled)$"},{"type":"null"}],"title":"Status"}},{"name":"subscription","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(yes|no)$"},{"type":"null"}],"title":"Subscription"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/ids":{"get":{"tags":["admin"],"summary":"User Ids","description":"Every id the list's current filters match, across all pages — what\n\"select all\" takes when the answer runs longer than one page.","operationId":"user_ids_api_admin_users_ids_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(password|google|facebook)$"},{"type":"null"}],"title":"Provider"}},{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(free|hobbyist|researcher|archive)$"},{"type":"null"}],"title":"Plan"}},{"name":"verified","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(yes|no)$"},{"type":"null"}],"title":"Verified"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(admin|member)$"},{"type":"null"}],"title":"Role"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(active|disabled)$"},{"type":"null"}],"title":"Status"}},{"name":"subscription","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(yes|no)$"},{"type":"null"}],"title":"Subscription"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}":{"get":{"tags":["admin"],"summary":"User Detail","operationId":"user_detail_api_admin_users__user_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Update User","operationId":"update_user_api_admin_users__user_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete User","description":"Delete the account and everything it owns. Not reversible.\n\nThe purge itself is UserManager.on_before_delete — the same one a member\ndeleting themselves goes through, so the two can never disagree about what\n\"everything\" means. A live Stripe subscription is cancelled first: deleting\nthe account without it would leave Stripe charging a card for a member who\nno longer exists here to use or cancel it.","operationId":"delete_user_api_admin_users__user_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUser"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/allowance":{"get":{"tags":["admin"],"summary":"Read Allowance","description":"This account's allowance, plus the ledger behind it — the audit trail.","operationId":"read_allowance_api_admin_users__user_id__allowance_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Update Allowance","operationId":"update_allowance_api_admin_users__user_id__allowance_patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowancePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/sign-out":{"post":{"tags":["admin"],"summary":"Sign Out Everywhere","description":"End every open session. For a shared or lost device, or a password that\nmay have leaked — they can sign straight back in with the right one.","operationId":"sign_out_everywhere_api_admin_users__user_id__sign_out_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/password-reset":{"post":{"tags":["admin"],"summary":"Send Password Reset","description":"Mail the member the same reset link \"Forgot password\" would.\n\nNobody here ever sets or sees a password. An account opened through Google\nor Facebook has none, and is refused rather than sent the directions email\nthe public form sends it — an admin asking for this has the wrong idea about\nthe account, and should be told so.","operationId":"send_password_reset_api_admin_users__user_id__password_reset_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/verification-email":{"post":{"tags":["admin"],"summary":"Resend Verification","operationId":"resend_verification_api_admin_users__user_id__verification_email_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/bulk":{"post":{"tags":["admin"],"summary":"Bulk Users","description":"One action on many accounts, by running the single-account route once\nper id. Its refusals (already confirmed, disabled, signs in with Google,\nyourself) come back per account as the reason it was skipped, instead of\nstopping the rest; each account commits on its own, audit line included.\nDeleting is deliberately not offered: that one stays a typed-back\nconfirmation on the member's own page.","operationId":"bulk_users_api_admin_users_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUsers"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/submissions":{"get":{"tags":["admin"],"summary":"Submissions","operationId":"submissions_api_admin_submissions_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/submissions/{sid}":{"patch":{"tags":["admin"],"summary":"Update Submission","operationId":"update_submission_api_admin_submissions__sid__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"integer","title":"Sid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/message-reports":{"get":{"tags":["admin"],"summary":"Message Reports","operationId":"message_reports_api_admin_message_reports_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/message-reports/{rid}":{"patch":{"tags":["admin"],"summary":"Update Message Report","operationId":"update_message_report_api_admin_message_reports__rid__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"integer","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/review-queue":{"get":{"tags":["admin"],"summary":"Review Queue","operationId":"review_queue_api_admin_review_queue_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"minimum":1,"default":1,"title":"Page"}},{"name":"dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Dataset"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":10,"default":25,"title":"Page Size"}},{"name":"reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/records/{rid}/resolve-review":{"post":{"tags":["admin"],"summary":"Resolve Review","operationId":"resolve_review_api_admin_records__rid__resolve_review_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"integer","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/me":{"get":{"tags":["admin"],"summary":"Whoami","operationId":"whoami_api_admin_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/faces":{"get":{"tags":["admin"],"summary":"Faces Status","description":"What the face pass has looked at, found, and been asked about.\n\n`probe=1` loads the model to find out whether it is really there — slow the\nfirst time (it downloads the pack), so it is a button in the panel rather\nthan something the page does on its own.","operationId":"faces_status_api_admin_faces_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"probe","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Probe"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/faces/run":{"post":{"tags":["admin"],"summary":"Faces Run","description":"Start a pass now, exactly as 3 AM would.\n\n`rescan=1` throws away every face already found and looks at the whole\nlibrary again — what a change of model pack needs, and nothing else.\nReturns once the work is QUEUED; the queue is where it actually happens,\nand the Jobs tab is where it can be watched.","operationId":"faces_run_api_admin_faces_run_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"rescan","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Rescan"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/insights":{"get":{"tags":["admin"],"summary":"Insights Status","description":"How many trees qualify for insights, and how many are carrying a full\nset of cards for the current build.","operationId":"insights_status_api_admin_insights_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/insights/requeue":{"post":{"tags":["admin"],"summary":"Insights Requeue","description":"Mark every entitled tree due for a check now.\n\nNot a force: a tree whose facts and prompts are unchanged costs one hash\nand no model call, so pressing this after a deploy rewrites exactly the\ncards the deploy actually moved. Returns immediately — the sweeper drains\nthe queue a few trees at a time, and the Jobs tab is where it can be\nwatched.","operationId":"insights_requeue_api_admin_insights_requeue_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/ask/status":{"get":{"tags":["ask"],"summary":"Ask Status","description":"Whether the chat is on, what it covers, and what this reader may do.","operationId":"ask_status_api_ask_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/ask/pack/{checkout_id}":{"get":{"tags":["ask"],"summary":"Ask Pack Status","description":"Whether the pack bought in this Stripe checkout has been credited to\nthis reader yet: the box asks after coming back from paying, so it says\n\"ready\" for this purchase, not for questions already there.","operationId":"ask_pack_status_api_ask_pack__checkout_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"checkout_id","in":"path","required":true,"schema":{"type":"string","title":"Checkout Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask/history":{"get":{"tags":["ask"],"summary":"Ask History","description":"The reader's conversations, newest first: the first question of each,\nwhen, how many exact matches, and how many follow-ups.","operationId":"ask_history_api_ask_history_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask/history/{log_id}":{"get":{"tags":["ask"],"summary":"Ask History Thread","description":"One conversation, as the box draws it: each saved answer with its\nsources' cards read again from the index (so a record corrected since shows\nas it is now), leaving out any collection this reader may not see.","operationId":"ask_history_thread_api_ask_history__log_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"log_id","in":"path","required":true,"schema":{"type":"integer","title":"Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask":{"post":{"tags":["ask"],"summary":"Vector Chat","operationId":"vector_chat_api_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ask"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/ask/stream":{"post":{"tags":["ask"],"summary":"Vector Chat Stream","description":"The same answer, sent as it is written: one JSON line with the search\n(\"meta\"), then the answer in checked pieces (\"text\"), then the checked\nwhole and the timings (\"done\"), which the box keeps.","operationId":"vector_chat_stream_api_ask_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ask"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/ask/feedback":{"post":{"tags":["ask"],"summary":"Vector Chat Feedback","description":"The reader's verdict on one of their own answers, and what was wrong with it.","operationId":"vector_chat_feedback_api_ask_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Feedback"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/index-desk/documents":{"get":{"tags":["index-desk"],"summary":"List Documents","operationId":"list_documents_api_admin_index_desk_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/index-desk/documents/{doc_id}":{"get":{"tags":["index-desk"],"summary":"Get Document","operationId":"get_document_api_admin_index_desk_documents__doc_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/index-desk/documents/{doc_id}/export":{"get":{"tags":["index-desk"],"summary":"Export Document","operationId":"export_document_api_admin_index_desk_documents__doc_id__export_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/index-desk/documents/{doc_id}/finalization-preview":{"get":{"tags":["index-desk"],"summary":"Preview Finalization","operationId":"preview_finalization_api_admin_index_desk_documents__doc_id__finalization_preview_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/index-desk/documents/{doc_id}/finalization-requests":{"get":{"tags":["index-desk"],"summary":"List Finalization Requests","operationId":"list_finalization_requests_api_admin_index_desk_documents__doc_id__finalization_requests_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["index-desk"],"summary":"Request Finalization","operationId":"request_finalization_api_admin_index_desk_documents__doc_id__finalization_requests_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizationInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/index-desk/documents/{doc_id}/finalization-requests/{request_id}/export":{"get":{"tags":["index-desk"],"summary":"Export Finalization","operationId":"export_finalization_api_admin_index_desk_documents__doc_id__finalization_requests__request_id__export_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/index-desk/documents/{doc_id}/scans/{page}":{"get":{"tags":["index-desk"],"summary":"Scan","operationId":"scan_api_admin_index_desk_documents__doc_id__scans__page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/index-desk/documents/{doc_id}/reviews":{"post":{"tags":["index-desk"],"summary":"Save Review","operationId":"save_review_api_admin_index_desk_documents__doc_id__reviews_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/index-desk/documents/{doc_id}/boxes":{"post":{"tags":["index-desk"],"summary":"Save Box","operationId":"save_box_api_admin_index_desk_documents__doc_id__boxes_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoxInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/access":{"get":{"tags":["project-desk"],"summary":"Access","operationId":"access_api_project_desk_access_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/project-desk/projects":{"get":{"tags":["project-desk"],"summary":"List Projects","operationId":"list_projects_api_project_desk_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["project-desk"],"summary":"Create Project","operationId":"create_project_api_project_desk_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Details"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/project-desk/projects/{project_id}":{"patch":{"tags":["project-desk"],"summary":"Edit Project","operationId":"edit_project_api_project_desk_projects__project_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Details"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["project-desk"],"summary":"Get Project","operationId":"get_project_api_project_desk_projects__project_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/folders":{"post":{"tags":["project-desk"],"summary":"Create Folder","operationId":"create_folder_api_project_desk_projects__project_id__folders_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Details"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/folders/{folder_id}":{"patch":{"tags":["project-desk"],"summary":"Edit Folder","operationId":"edit_folder_api_project_desk_projects__project_id__folders__folder_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"integer","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Details"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/members":{"post":{"tags":["project-desk"],"summary":"Assign Member","operationId":"assign_member_api_project_desk_projects__project_id__members_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/invitations":{"get":{"tags":["project-desk"],"summary":"Invitations","operationId":"invitations_api_project_desk_invitations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/project-desk/invitations/{project_id}/accept":{"post":{"tags":["project-desk"],"summary":"Accept Invitation","operationId":"accept_invitation_api_project_desk_invitations__project_id__accept_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/invitations/{project_id}":{"delete":{"tags":["project-desk"],"summary":"Decline Invitation","operationId":"decline_invitation_api_project_desk_invitations__project_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/members/{member_id}":{"delete":{"tags":["project-desk"],"summary":"Remove Member","operationId":"remove_member_api_project_desk_projects__project_id__members__member_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"integer","title":"Member Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents":{"post":{"tags":["project-desk"],"summary":"Upload Document","operationId":"upload_document_api_project_desk_projects__project_id__documents_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_api_project_desk_projects__project_id__documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["project-desk"],"summary":"List Documents","description":"One page of files, newest first, with the total so the browser can page honestly.","operationId":"list_documents_api_project_desk_projects__project_id__documents_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"view","in":"query","required":false,"schema":{"type":"string","maxLength":20,"default":"files","title":"View"}},{"name":"folder","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Folder"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":24,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/batch":{"post":{"tags":["project-desk"],"summary":"Batch Documents","description":"Move, trash, restore or permanently delete files. All or nothing: one file\nthe caller may not touch, or one still being transcribed, refuses the whole request.","operationId":"batch_documents_api_project_desk_projects__project_id__documents_batch_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/folder":{"patch":{"tags":["project-desk"],"summary":"Move Document","operationId":"move_document_api_project_desk_projects__project_id__documents__doc_id__folder_patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Move"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/transcribe":{"post":{"tags":["project-desk"],"summary":"Start Transcription","operationId":"start_transcription_api_project_desk_projects__project_id__documents__doc_id__transcribe_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/transcribe-manually":{"post":{"tags":["project-desk"],"summary":"Start Manual Transcription","description":"One empty, editable page for every page of the scan. No provider, no job,\nno allowance. The document row lock serialises racing calls, and pages that\nalready exist are left exactly as they are, so repeating it never touches text.","operationId":"start_manual_transcription_api_project_desk_projects__project_id__documents__doc_id__transcribe_manually_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/review-all":{"post":{"tags":["project-desk"],"summary":"Review Document","description":"Mark every page of a document reviewed, in one transaction. Text is never changed and\nnothing is transcribed: an untranscribed document gets empty page records and stays\n'uploaded'. Pages already reviewed are left alone (so repeating it changes nothing), and\nthe pages it does mark get a new updated_at, so an editor holding an older copy of one of\nthem must reload before saving, as with any other concurrent page change.","operationId":"review_document_api_project_desk_projects__project_id__documents__doc_id__review_all_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/reopen-review":{"post":{"tags":["project-desk"],"summary":"Reopen Document Review","description":"Send every reviewed page of a document back to Needs review. Only the review flags\nchange: text, annotations and the transcription status stay as they are, and no job\nstarts. Repeating it changes nothing; marked pages get a new updated_at like any edit.","operationId":"reopen_document_review_api_project_desk_projects__project_id__documents__doc_id__reopen_review_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}":{"get":{"tags":["project-desk"],"summary":"Get Document","operationId":"get_document_api_project_desk_projects__project_id__documents__doc_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/thumbnail":{"get":{"tags":["project-desk"],"summary":"Get Thumbnail","operationId":"get_thumbnail_api_project_desk_projects__project_id__documents__doc_id__thumbnail_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/file":{"get":{"tags":["project-desk"],"summary":"Get File","operationId":"get_file_api_project_desk_projects__project_id__documents__doc_id__file_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"preview","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Preview"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/pages/{page_id}":{"patch":{"tags":["project-desk"],"summary":"Save Page","operationId":"save_page_api_project_desk_projects__project_id__documents__doc_id__pages__page_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/mention-preferences":{"get":{"tags":["project-desk"],"summary":"Mention Preferences","operationId":"mention_preferences_api_project_desk_projects__project_id__mention_preferences_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["project-desk"],"summary":"Set Mention Preferences","operationId":"set_mention_preferences_api_project_desk_projects__project_id__mention_preferences_patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MentionPreference"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/mention-members":{"get":{"tags":["project-desk"],"summary":"Mention Members","operationId":"mention_members_api_project_desk_projects__project_id__mention_members_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/comments":{"get":{"tags":["project-desk"],"summary":"List Comments","operationId":"list_comments_api_project_desk_projects__project_id__comments_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Id"}},{"name":"annotation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Annotation Id"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Before"}},{"name":"target","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["project-desk"],"summary":"Add Comment","operationId":"add_comment_api_project_desk_projects__project_id__comments_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/notes":{"get":{"tags":["project-desk"],"summary":"List Notes","description":"Newest first, a page at a time. `note` opens the page that holds that note,\nso a search result or shared link to an older note still lands on it.","operationId":"list_notes_api_project_desk_projects__project_id__notes_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"note","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Note"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["project-desk"],"summary":"Create Note","operationId":"create_note_api_project_desk_projects__project_id__notes_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/notes/{note_id}":{"patch":{"tags":["project-desk"],"summary":"Edit Note","operationId":"edit_note_api_project_desk_projects__project_id__notes__note_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"integer","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/search":{"get":{"tags":["project-desk"],"summary":"Search Project","operationId":"search_project_api_project_desk_projects__project_id__search_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":200,"title":"Q"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/tasks":{"get":{"tags":["project-desk"],"summary":"List Tasks","operationId":"list_tasks_api_project_desk_projects__project_id__tasks_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["project-desk"],"summary":"Create Task","operationId":"create_task_api_project_desk_projects__project_id__tasks_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/tasks/{task_id}":{"patch":{"tags":["project-desk"],"summary":"Edit Task","operationId":"edit_task_api_project_desk_projects__project_id__tasks__task_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"integer","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/tasks/{task_id}/actions":{"post":{"tags":["project-desk"],"summary":"Act On Task","operationId":"act_on_task_api_project_desk_projects__project_id__tasks__task_id__actions_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"integer","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskAction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/annotations":{"get":{"tags":["project-desk"],"summary":"List Annotations","operationId":"list_annotations_api_project_desk_projects__project_id__documents__doc_id__annotations_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["project-desk"],"summary":"Add Annotation","operationId":"add_annotation_api_project_desk_projects__project_id__documents__doc_id__annotations_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Annotation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/documents/{doc_id}/annotations/{annotation_id}":{"patch":{"tags":["project-desk"],"summary":"Resolve Annotation","operationId":"resolve_annotation_api_project_desk_projects__project_id__documents__doc_id__annotations__annotation_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"annotation_id","in":"path","required":true,"schema":{"type":"integer","title":"Annotation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resolve"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["project-desk"],"summary":"Delete Annotation","operationId":"delete_annotation_api_project_desk_projects__project_id__documents__doc_id__annotations__annotation_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"annotation_id","in":"path","required":true,"schema":{"type":"integer","title":"Annotation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/activity":{"get":{"tags":["project-desk"],"summary":"Activity","operationId":"activity_api_project_desk_projects__project_id__activity_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/uploads":{"post":{"tags":["project-desk"],"summary":"Initiate Upload","operationId":"initiate_upload_api_project_desk_projects__project_id__uploads_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadIntent"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/uploads/{upload_id}/complete":{"post":{"tags":["project-desk"],"summary":"Complete Upload","operationId":"complete_upload_api_project_desk_projects__project_id__uploads__upload_id__complete_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upload Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/file-requests":{"get":{"tags":["project-desk"],"summary":"List Links","operationId":"list_links_api_project_desk_projects__project_id__file_requests_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["project-desk"],"summary":"Create Link","operationId":"create_link_api_project_desk_projects__project_id__file_requests_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/file-requests/{request_id}/revoke":{"post":{"tags":["project-desk"],"summary":"Revoke Link","operationId":"revoke_link_api_project_desk_projects__project_id__file_requests__request_id__revoke_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/file-requests/submissions":{"get":{"tags":["project-desk"],"summary":"List Submissions","operationId":"list_submissions_api_project_desk_projects__project_id__file_requests_submissions_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","pattern":"^(pending|history)$","default":"pending","title":"State"}},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Request Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":24,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/file-requests/submissions/{sid}/thumbnail":{"get":{"tags":["project-desk"],"summary":"Submission Thumbnail","operationId":"submission_thumbnail_api_project_desk_projects__project_id__file_requests_submissions__sid__thumbnail_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/file-requests/submissions/{sid}/file":{"get":{"tags":["project-desk"],"summary":"Submission File","operationId":"submission_file_api_project_desk_projects__project_id__file_requests_submissions__sid__file_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/file-requests/submissions/{sid}/accept":{"post":{"tags":["project-desk"],"summary":"Accept Submission","operationId":"accept_submission_api_project_desk_projects__project_id__file_requests_submissions__sid__accept_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accept"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/project-desk/projects/{project_id}/file-requests/submissions/{sid}/reject":{"post":{"tags":["project-desk"],"summary":"Reject Submission","operationId":"reject_submission_api_project_desk_projects__project_id__file_requests_submissions__sid__reject_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/file-requests/current":{"get":{"tags":["file-requests"],"summary":"Public Request","description":"What the visitor may see: the request's own words and its expiry. Nothing\nabout the project, its members, its files or other submissions.","operationId":"public_request_api_file_requests_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/file-requests/uploads":{"post":{"tags":["file-requests"],"summary":"Start Upload","operationId":"start_upload_api_file_requests_uploads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Intent"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/file-requests/uploads/{sid}/file":{"put":{"tags":["file-requests"],"summary":"Local Upload","description":"Development fallback only: production bytes go straight to private Spaces.","operationId":"local_upload_api_file_requests_uploads__sid__file_put","parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/file-requests/uploads/{sid}/complete":{"post":{"tags":["file-requests"],"summary":"Complete Upload","operationId":"complete_upload_api_file_requests_uploads__sid__complete_post","parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desk-merge/limits":{"get":{"tags":["project-desk"],"summary":"Limits","operationId":"limits_api_desk_merge_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/desk-merge/batches":{"post":{"tags":["project-desk"],"summary":"Start","operationId":"start_api_desk_merge_batches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Start"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/desk-merge/batches/{bid}/sources/{index}":{"put":{"tags":["project-desk"],"summary":"Upload","operationId":"upload_api_desk_merge_batches__bid__sources__index__put","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desk-merge/batches/{bid}/sources/{index}/ticket":{"post":{"tags":["project-desk"],"summary":"Upload Ticket","operationId":"upload_ticket_api_desk_merge_batches__bid__sources__index__ticket_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desk-merge/batches/{bid}/sources/{index}/complete":{"post":{"tags":["project-desk"],"summary":"Complete Source","operationId":"complete_source_api_desk_merge_batches__bid__sources__index__complete_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desk-merge/batches/{bid}/draft":{"put":{"tags":["project-desk"],"summary":"Save Draft","operationId":"save_draft_api_desk_merge_batches__bid__draft_put","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desk-merge/batches/{bid}/append":{"post":{"tags":["project-desk"],"summary":"Append Sources","operationId":"append_sources_api_desk_merge_batches__bid__append_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Append"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desk-merge/batches/{bid}":{"get":{"tags":["project-desk"],"summary":"Status","operationId":"status_api_desk_merge_batches__bid__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["project-desk"],"summary":"Cancel","operationId":"cancel_api_desk_merge_batches__bid__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desk-merge/batches/{bid}/sources/{index}/pages/{page}":{"get":{"tags":["project-desk"],"summary":"Thumbnail","operationId":"thumbnail_api_desk_merge_batches__bid__sources__index__pages__page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desk-merge/batches/{bid}/combine":{"post":{"tags":["project-desk"],"summary":"Combine","operationId":"combine_api_desk_merge_batches__bid__combine_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Finish"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share-links/access":{"get":{"tags":["share-links"],"summary":"Link Access","operationId":"link_access_api_share_links_access_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","minLength":32,"maxLength":64,"title":"Token"}},{"name":"record_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Record Id"}},{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dataset Id"}},{"name":"page_path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Path"}},{"name":"document","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/share-links":{"get":{"tags":["admin"],"summary":"List Links","description":"Active capabilities. Tokens are hashed, so saved URLs cannot be recovered.","operationId":"list_links_api_admin_share_links_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Link","operationId":"create_link_api_admin_share_links_post","security":[{"APIKeyCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewLink"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/share-links/{link_id}":{"delete":{"tags":["admin"],"summary":"Revoke Link","operationId":"revoke_link_api_admin_share_links__link_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/financial/tiers":{"get":{"tags":["admin"],"summary":"Membership Tiers","description":"The same current entitlement and account population as /admin/users.","operationId":"membership_tiers_api_admin_financial_tiers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/financial":{"get":{"tags":["admin"],"summary":"Financial","operationId":"financial_api_admin_financial_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$","title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/financial/trend":{"get":{"tags":["admin"],"summary":"Financial Trend","operationId":"financial_trend_api_admin_financial_trend_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"month","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}$","title":"Month"}},{"name":"months","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":1,"default":6,"title":"Months"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/records/{record_id}/edits":{"get":{"tags":["admin"],"summary":"Record Edits","description":"What has been corrected on this record, most recent first.","operationId":"record_edits_api_admin_records__record_id__edits_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/records/{record_id}":{"patch":{"tags":["admin"],"summary":"Patch Record","operationId":"patch_record_api_admin_records__record_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/records/{record_id}/persons/{person_id}":{"patch":{"tags":["admin"],"summary":"Patch Person","operationId":"patch_person_api_admin_records__record_id__persons__person_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__record_edit__PersonPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/collections/{dataset_id}/template.csv":{"get":{"tags":["collection contributions"],"summary":"Template","operationId":"template_api_contributor_collections__dataset_id__template_csv_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/collections/{dataset_id}/import-csv":{"post":{"tags":["collection contributions"],"summary":"Import Csv","operationId":"import_csv_api_contributor_collections__dataset_id__import_csv_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_csv_api_contributor_collections__dataset_id__import_csv_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/trees":{"get":{"tags":["collection contributions"],"summary":"Owned Public Trees","operationId":"owned_public_trees_api_contributor_trees_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/collections":{"get":{"tags":["collection contributions"],"summary":"My Collections","operationId":"my_collections_api_contributor_collections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/users/{user_id}/collection-access":{"get":{"tags":["collection contributions"],"summary":"Grants","operationId":"grants_api_admin_users__user_id__collection_access_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/collection-access/{dataset_id}":{"put":{"tags":["collection contributions"],"summary":"Grant","operationId":"grant_api_admin_users__user_id__collection_access__dataset_id__put","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collection contributions"],"summary":"Revoke","operationId":"revoke_api_admin_users__user_id__collection_access__dataset_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries":{"get":{"tags":["collection contributions"],"summary":"Entries","description":"A page of contributions, newest change first, with counts for the filters around it.\n\nStatus counts ignore the status chosen and collection counts ignore the\ncollection chosen, so each filter shows what choosing another would give;\n`total` is what all the filters together match.","operationId":"entries_api_contributor_entries_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"review","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Review"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Status"}},{"name":"collection","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Collection"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries/{entry_id}":{"get":{"tags":["collection contributions"],"summary":"One Entry","operationId":"one_entry_api_contributor_entries__entry_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["collection contributions"],"summary":"Update","description":"Save changes to a contribution, or with `submit=true` save and submit them in one step.\n\nA published record stays in the archive as it was approved; the saved\nchanges are a working revision until they are approved in turn.","operationId":"update_api_contributor_entries__entry_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"submit","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Submit"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collection contributions"],"summary":"Delete Entry","description":"Move a contribution to the trash. It can be restored for TRASH_DAYS days.","operationId":"delete_entry_api_contributor_entries__entry_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"revision","in":"query","required":true,"schema":{"type":"integer","title":"Revision"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/summary":{"get":{"tags":["collection contributions"],"summary":"Summary","description":"The signed-in person's own contributions at a glance, for their account page.\n\n`next` is what they can act on now (returned first, then newest), and\n`recent` the latest other changes, so the two lists never repeat a row.\nDrafts in a collection whose access has ended are counted as `blocked`,\nnot offered as next steps.","operationId":"summary_api_contributor_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/contributor/collections/{dataset_id}/entries":{"post":{"tags":["collection contributions"],"summary":"Create","description":"Save a new contribution as a draft, or with `submit=true` save and submit it in one step.","operationId":"create_api_contributor_collections__dataset_id__entries_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}},{"name":"submit","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Submit"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries/{entry_id}/submit":{"post":{"tags":["collection contributions"],"summary":"Submit","operationId":"submit_api_contributor_entries__entry_id__submit_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries/{entry_id}/restore":{"post":{"tags":["collection contributions"],"summary":"Restore Entry","description":"Bring a deleted contribution back. One that was in review comes back as a\ndraft, to be submitted again, rather than silently re-entering the queue.","operationId":"restore_entry_api_contributor_entries__entry_id__restore_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries/{entry_id}/withdraw":{"post":{"tags":["collection contributions"],"summary":"Withdraw Entry","description":"Take a contribution out of review and back to a draft, keeping what was\nwritten. For a published record the published version stays as it is; the\nchanges can then be edited, submitted again, or discarded.","operationId":"withdraw_entry_api_contributor_entries__entry_id__withdraw_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries/{entry_id}/discard":{"post":{"tags":["collection contributions"],"summary":"Discard Changes","description":"Drop the unpublished changes to a published record.","operationId":"discard_changes_api_contributor_entries__entry_id__discard_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/trash":{"get":{"tags":["collection contributions"],"summary":"Trash","description":"The member's own deleted contributions that can still be restored, newest first.","operationId":"trash_api_contributor_trash_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/collection-entries/{entry_id}/review":{"post":{"tags":["collection contributions"],"summary":"Review","operationId":"review_api_admin_collection_entries__entry_id__review_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Review"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{dataset_id}/family-trees":{"get":{"tags":["collection contributions"],"summary":"Linked Trees","operationId":"linked_trees_api_collections__dataset_id__family_trees_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/collections/{dataset_id}/family-trees/{tree_id}":{"delete":{"tags":["collection contributions"],"summary":"Unlink Tree","operationId":"unlink_tree_api_admin_collections__dataset_id__family_trees__tree_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}},{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries/{entry_id}/documents":{"get":{"tags":["collection contributions"],"summary":"Documents","operationId":"documents_api_contributor_entries__entry_id__documents_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collection contributions"],"summary":"Upload Document","operationId":"upload_document_api_contributor_entries__entry_id__documents_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_api_contributor_entries__entry_id__documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries/{entry_id}/history":{"get":{"tags":["collection contributions"],"summary":"Entry History","description":"What happened to one contribution in this workflow: saves, edits, documents, submissions and reviews.\n\nOnly its author and administrators may read it. Other changes to a\npublished record (an administrator's correction, for example) are not part\nof this history.","operationId":"entry_history_api_contributor_entries__entry_id__history_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contributor/entries/{entry_id}/documents/{document_id}":{"delete":{"tags":["collection contributions"],"summary":"Remove Document","operationId":"remove_document_api_contributor_entries__entry_id__documents__document_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}},{"name":"revision","in":"query","required":true,"schema":{"type":"integer","title":"Revision"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/record/{record_id}/contributed-documents":{"get":{"tags":["collection contributions"],"summary":"Record Documents","operationId":"record_documents_api_record__record_id__contributed_documents_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collection-documents/{document_id}":{"get":{"tags":["collection contributions"],"summary":"Open Document","operationId":"open_document_api_collection_documents__document_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/stats":{"get":{"tags":["mailer"],"summary":"Stats","operationId":"stats_api_admin_mailer_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/mailer/purge-bounced":{"post":{"tags":["mailer"],"summary":"Purge Bounced","description":"Take every bounced address off every list. Sends already skip them; this\nis so list sizes count people who can actually be mailed. The subscriber\nrecord stays, marked bounced, so past campaigns still name who they went to\nand a later signup from the address goes through confirmation again.","operationId":"purge_bounced_api_admin_mailer_purge_bounced_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/mailer/signups":{"get":{"tags":["mailer"],"summary":"Signups","description":"How many people signed up for the newsletter in a period, and when.\n\nCounted by the day each row was created, in UTC, grouped by day for a\nperiod of up to three months and by month beyond that.","operationId":"signups_api_admin_mailer_signups_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"string","default":"30d","title":"Window"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/lists":{"get":{"tags":["mailer"],"summary":"Lists","operationId":"lists_api_admin_mailer_lists_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/mailer/audience-count":{"get":{"tags":["mailer"],"summary":"Audience Count","description":"Preview the exact deduplicated audience a send would use.\n\nThis is deliberately read-only and uses the same subscriber and membership\nstatus requirements as ``send_campaign``. It lets the review screen be\nhonest when one person belongs to more than one selected list.","operationId":"audience_count_api_admin_mailer_audience_count_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"list_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"integer"},"title":"List Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/subscribers":{"get":{"tags":["mailer"],"summary":"Subscribers","operationId":"subscribers_api_admin_mailer_subscribers_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"list","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"List"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/subscribers/{subscriber_id}":{"get":{"tags":["mailer"],"summary":"Subscriber Detail","description":"One person: who they are, the lists they are on, and every newsletter\nsent to them with what happened to each copy.","operationId":"subscriber_detail_api_admin_mailer_subscribers__subscriber_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"subscriber_id","in":"path","required":true,"schema":{"type":"integer","title":"Subscriber Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/campaigns":{"get":{"tags":["mailer"],"summary":"Campaigns","operationId":"campaigns_api_admin_mailer_campaigns_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"list","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"List"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/campaigns/{campaign_id}":{"get":{"tags":["mailer"],"summary":"Campaign Detail","operationId":"campaign_detail_api_admin_mailer_campaigns__campaign_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"integer","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/campaigns/{campaign_id}/recipients":{"get":{"tags":["mailer"],"summary":"Campaign Recipients","operationId":"campaign_recipients_api_admin_mailer_campaigns__campaign_id__recipients_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"integer","title":"Campaign Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/campaigns/{campaign_id}/events":{"get":{"tags":["mailer"],"summary":"Campaign Events","operationId":"campaign_events_api_admin_mailer_campaigns__campaign_id__events_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"integer","title":"Campaign Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mailer/campaigns/send":{"post":{"tags":["mailer"],"summary":"Send Campaign","operationId":"send_campaign_api_admin_mailer_campaigns_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/mailer/campaigns/{campaign_id}/throttle":{"post":{"tags":["mailer"],"summary":"Change Throttle","description":"Pause, resume, or change the rate of a campaign sent at a set rate. A new\nrate counts from the next step; a step already sending finishes first.","operationId":"change_throttle_api_admin_mailer_campaigns__campaign_id__throttle_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"integer","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThrottleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/checkout-followups":{"get":{"tags":["checkout follow-ups"],"summary":"Overview","operationId":"overview_api_admin_checkout_followups_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|ready|sent|held|excluded|unknown)$","default":"all","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/checkout-followups/{followup_id}":{"get":{"tags":["checkout follow-ups"],"summary":"Detail","operationId":"detail_api_admin_checkout_followups__followup_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"followup_id","in":"path","required":true,"schema":{"type":"integer","title":"Followup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/checkout-followups/enabled":{"post":{"tags":["checkout follow-ups"],"summary":"Set Enabled","operationId":"set_enabled_api_admin_checkout_followups_enabled_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnabledIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/checkout-followups/scan":{"post":{"tags":["checkout follow-ups"],"summary":"Scan Now","operationId":"scan_now_api_admin_checkout_followups_scan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/checkout-followups/{followup_id}/exclude":{"post":{"tags":["checkout follow-ups"],"summary":"Exclude","operationId":"exclude_api_admin_checkout_followups__followup_id__exclude_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"followup_id","in":"path","required":true,"schema":{"type":"integer","title":"Followup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/checkout-followups/{followup_id}/restore":{"post":{"tags":["checkout follow-ups"],"summary":"Restore","operationId":"restore_api_admin_checkout_followups__followup_id__restore_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"followup_id","in":"path","required":true,"schema":{"type":"integer","title":"Followup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/checkout-followups/unsubscribe":{"get":{"tags":["checkout follow-ups"],"summary":"Optout Status","operationId":"optout_status_api_checkout_followups_unsubscribe_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","maxLength":2048,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["checkout follow-ups"],"summary":"Optout","operationId":"optout_api_checkout_followups_unsubscribe_post","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","maxLength":2048,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer-automation/lists":{"get":{"tags":["mailer automation"],"summary":"List Audiences","operationId":"list_audiences_api_mailer_automation_lists_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"MailerCredential":[]}]}},"/api/mailer-automation/drafts":{"get":{"tags":["mailer automation"],"summary":"Draft History","description":"Bounded automation history; never exposes unrelated legacy audiences.","operationId":"draft_history_api_mailer_automation_drafts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"MailerCredential":[]}]},"post":{"tags":["mailer automation"],"summary":"Prepare","operationId":"prepare_api_mailer_automation_drafts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"MailerCredential":[]}]}},"/api/mailer-automation/drafts/{draft_id}":{"get":{"tags":["mailer automation"],"summary":"Preview","operationId":"preview_api_mailer_automation_drafts__draft_id__get","security":[{"MailerCredential":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer-automation/drafts/{draft_id}/approve":{"post":{"tags":["mailer automation"],"summary":"Approve","operationId":"approve_api_mailer_automation_drafts__draft_id__approve_post","security":[{"MailerCredential":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer-automation/drafts/{draft_id}/revoke":{"post":{"tags":["mailer automation"],"summary":"Revoke","operationId":"revoke_api_mailer_automation_drafts__draft_id__revoke_post","security":[{"MailerCredential":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer-automation/drafts/{draft_id}/send":{"post":{"tags":["mailer automation"],"summary":"Send","operationId":"send_api_mailer_automation_drafts__draft_id__send_post","security":[{"MailerCredential":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"tags":["mailer connection"],"summary":"Authorization Metadata","operationId":"authorization_metadata__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-protected-resource/api/mailer-mcp/mcp":{"get":{"tags":["mailer connection"],"summary":"Resource Metadata","operationId":"resource_metadata__well_known_oauth_protected_resource_api_mailer_mcp_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mailer-mcp/authorize":{"get":{"tags":["mailer connection"],"summary":"Authorize Browser","operationId":"authorize_browser_api_mailer_mcp_authorize_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/mailer-mcp/authorize/{code_id}":{"post":{"tags":["mailer connection"],"summary":"Consent Browser","operationId":"consent_browser_api_mailer_mcp_authorize__code_id__post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"code_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Code Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer-mcp/token":{"post":{"tags":["mailer connection"],"summary":"Exchange Token","operationId":"exchange_token_api_mailer_mcp_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mailer-mcp/revoke":{"post":{"tags":["mailer connection"],"summary":"Revoke Token","operationId":"revoke_token_api_mailer_mcp_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mailer-mcp/mcp":{"get":{"tags":["mailer connection"],"summary":"No Stream","operationId":"no_stream_api_mailer_mcp_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["mailer connection"],"summary":"Mcp","operationId":"mcp_api_mailer_mcp_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mailer-mcp/review/{ticket_id}":{"get":{"tags":["mailer connection"],"summary":"Review Browser","operationId":"review_browser_api_mailer_mcp_review__ticket_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mailer connection"],"summary":"Confirm Review","operationId":"confirm_review_api_mailer_mcp_review__ticket_id__post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer-mcp/connections":{"get":{"tags":["mailer connection"],"summary":"Connections","operationId":"connections_api_mailer_mcp_connections_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page_number","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Page Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer-mcp/connections/{grant_id}/revoke":{"post":{"tags":["mailer connection"],"summary":"Revoke Browser","operationId":"revoke_browser_api_mailer_mcp_connections__grant_id__revoke_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer/subscribe":{"post":{"tags":["mailer"],"summary":"Subscribe","operationId":"subscribe_api_mailer_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscribeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer/confirm":{"post":{"tags":["mailer"],"summary":"Confirm Subscription","description":"Click target of the confirmation email: flip every pending list row for\nthis subscriber to 'subscribed'. The token stays valid so a second click\nreads as \"already confirmed\" instead of a broken link.","operationId":"confirm_subscription_api_mailer_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mailer/unsubscribe":{"get":{"tags":["mailer"],"summary":"Unsubscribe Status","description":"What the unsubscribe page shows before the click: which lists, and\nwhether this address is already off them.","operationId":"unsubscribe_status_api_mailer_unsubscribe_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["mailer"],"summary":"Unsubscribe","operationId":"unsubscribe_api_mailer_unsubscribe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mailer/resubscribe":{"post":{"tags":["mailer"],"summary":"Resubscribe","description":"The \"unsubscribed by mistake?\" button. Only undoes an unsubscribe: the\naddress was confirmed before, so no new opt-in is needed, but a list row\nthat was never confirmed stays unconfirmed and a bounced address stays off.","operationId":"resubscribe_api_mailer_resubscribe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/mailer/webhooks/resend":{"post":{"tags":["mailer"],"summary":"Resend Webhook","operationId":"resend_webhook_api_mailer_webhooks_resend_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trees":{"get":{"tags":["trees"],"summary":"My Trees","operationId":"my_trees_api_trees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["trees"],"summary":"Create Tree","operationId":"create_tree_api_trees_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreeCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/trees/import":{"post":{"tags":["trees"],"summary":"Import Tree","description":"DEPRECATED: create a tree from GEDCOM already parsed in the browser.\n\nSuperseded by POST /import/upload, which uploads the raw file and parses it\nserver-side in the background. Kept only so a stale SPA cached in someone's\nbrowser keeps working; delete once the logs show no hits. Large payloads are\nrefused because parsing them client-side is what crashed the tab.","operationId":"import_tree_api_trees_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreeImport"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/trees/import/upload":{"post":{"tags":["trees"],"summary":"Upload Gedcom","description":"Queue a GEDCOM for background import. Returns as soon as the file is on\ndisk — the actual parse + insert happens in tree_import.py, and the owner\ngets a WebSocket notification when it finishes.\n\nThe file is streamed to disk in chunks so a 50 MB upload never sits in\nmemory, and lands under UPLOAD_DIR (outside the deploy rsync path) so an\nin-flight job survives a restart. ZIP and GEDZIP archives are accepted too;\ntheir one GEDCOM is extracted and the archive discarded. Content is checked\nso a valid export with an unexpected filename can still be imported.","operationId":"upload_gedcom_api_trees_import_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_gedcom_api_trees_import_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/trees/imports":{"get":{"tags":["trees"],"summary":"My Imports","description":"Import jobs still running, plus anything that finished in the last day —\nso a user who closed the tab mid-import still sees how it went.","operationId":"my_imports_api_trees_imports_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/trees/imports/{job_id}":{"get":{"tags":["trees"],"summary":"My Import","operationId":"my_import_api_trees_imports__job_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/stats":{"get":{"tags":["trees"],"summary":"Tree Stats","description":"The home page's family-tree counter. Totals only, public and private\ntrees alike: no name, tree or owner can be read out of these numbers.\n\nAdditions come from import_events, the ledger every save already writes\n(the same one behind the admin overview), so \"added in the last 7 days\"\ncounts people as they were added, including any since removed. `daily` is\nthat figure per day, oldest first, for the week's bars.","operationId":"tree_stats_api_trees_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/trees/public":{"get":{"tags":["trees"],"summary":"Public Trees","description":"The community directory. Every aggregate on a card — people, birth\nyears, surnames — is measured over the people a visitor can open, the same\nprivacy rule as the counts, so no living relative leaks through a summary.\n\nA signed-out visitor sees the directory but not who keeps each tree: the\nowner comes back as a same-length stand-in the page draws blurred, with no\nid or picture, and searching by an owner's name finds nothing for them.","operationId":"public_trees_api_trees_public_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"match","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}":{"get":{"tags":["trees"],"summary":"Get Tree","operationId":"get_tree_api_trees__tree_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["trees"],"summary":"Save Tree","operationId":"save_tree_api_trees__tree_id__put","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreeSave"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["trees"],"summary":"Delete Tree","operationId":"delete_tree_api_trees__tree_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/export.ged":{"get":{"tags":["trees"],"summary":"Export Tree Gedcom","description":"Download one's own tree as GEDCOM 5.5.1.\n\n`/import` has existed since trees shipped and nothing came back out, so a\nmember's own work — 12,732 people added across all trees in the 30 days to\n2026-11-09, nearly all typed by hand — had exactly one copy, ours. This is\nthe way out.\n\nOwner only, and never redacted: unlike `GET /{tree_id}`, which serves a\npublic tree to strangers with private people stripped, this is the owner\nasking for their own file and it would be a worse copy than the one they\ncan see on screen if anything were held back. A member's privacy marks are\ncarried through as GEDCOM's own RESN, so the people they chose not to\npublish stay marked in whatever program they open it in.\n\nBuilt in the request rather than queued: a 10,000-person GEDCOM is a couple\nof megabytes of text, which is nothing like the PDF renders that need jobs.","operationId":"export_tree_gedcom_api_trees__tree_id__export_ged_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/persons/{person_id}/citations":{"get":{"tags":["trees"],"summary":"Person Citations","description":"List a person's fact citations. Owner always; others only if the tree is public.","operationId":"person_citations_api_trees__tree_id__persons__person_id__citations_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["trees"],"summary":"Add Citation","operationId":"add_citation_api_trees__tree_id__persons__person_id__citations_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreeCitationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/citations/{cid}":{"delete":{"tags":["trees"],"summary":"Delete Citation","operationId":"delete_citation_api_trees__tree_id__citations__cid__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/uploads":{"post":{"tags":["trees"],"summary":"Upload Document","description":"Store a supporting document (image or PDF) for a citation. Owner-only.\nReturns a served URL to hand back on the citation as file_url.","operationId":"upload_document_api_trees__tree_id__uploads_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_api_trees__tree_id__uploads_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/persons/{person_id}/copy-preview":{"get":{"tags":["trees"],"summary":"Copy Preview","operationId":"copy_preview_api_trees__tree_id__persons__person_id__copy_preview_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"into","in":"query","required":true,"schema":{"type":"integer","title":"Into"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/copy":{"post":{"tags":["trees"],"summary":"Copy Person","operationId":"copy_person_api_trees__tree_id__copy_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/insights":{"get":{"tags":["trees"],"summary":"Get Insights","description":"The cached cards, plus enough state for the page to show its freshness.\n\nNever blocks on the model: a tree with no cards yet is scheduled and comes\nback as `running`, and the page polls.","operationId":"get_insights_api_trees__tree_id__insights_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/insights/refresh":{"post":{"tags":["trees"],"summary":"Refresh Insights","description":"Owner-only \"check now\". Not forced: it rewrites only the cards whose facts\nmoved since the last run, so pressing it on an unchanged tree costs nothing.","operationId":"refresh_insights_api_trees__tree_id__insights_refresh_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/persons/{person_id}/links":{"get":{"tags":["tree links"],"summary":"Person Links","description":"The other trees this person has been linked to. Same visibility rule as\na person's citations: the owner always, anyone else only on a public tree\nand only for a person that tree is not hiding.","operationId":"person_links_api_trees__tree_id__persons__person_id__links_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/trees/{tree_id}/links/{link_id}":{"delete":{"tags":["tree links"],"summary":"Delete Link","description":"Remove only the link, preserving copied facts and attached sources.","operationId":"delete_link_api_trees__tree_id__links__link_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/unread":{"get":{"tags":["messages"],"summary":"Unread","operationId":"unread_api_messages_unread_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/messages/conversations":{"get":{"tags":["messages"],"summary":"Conversations","operationId":"conversations_api_messages_conversations_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"folder","in":"query","required":false,"schema":{"type":"string","default":"inbox","title":"Folder"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/conversations/{cid}":{"get":{"tags":["messages"],"summary":"Conversation","operationId":"conversation_api_messages_conversations__cid__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["messages"],"summary":"Delete For Me","description":"Delete-for-me: hide the thread and its history until a new message arrives.","operationId":"delete_for_me_api_messages_conversations__cid__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages":{"post":{"tags":["messages"],"summary":"Compose","operationId":"compose_api_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/messages/conversations/{cid}/messages":{"post":{"tags":["messages"],"summary":"Reply","operationId":"reply_api_messages_conversations__cid__messages_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/conversations/{cid}/read":{"post":{"tags":["messages"],"summary":"Mark Read","operationId":"mark_read_api_messages_conversations__cid__read_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/conversations/{cid}/accept":{"post":{"tags":["messages"],"summary":"Accept Request","operationId":"accept_request_api_messages_conversations__cid__accept_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/conversations/{cid}/folder":{"post":{"tags":["messages"],"summary":"Set Folder","operationId":"set_folder_api_messages_conversations__cid__folder_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/blocks":{"get":{"tags":["messages"],"summary":"List Blocks","operationId":"list_blocks_api_messages_blocks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["messages"],"summary":"Block User","operationId":"block_user_api_messages_blocks_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Body"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/messages/blocks/{user_id}":{"delete":{"tags":["messages"],"summary":"Unblock User","operationId":"unblock_user_api_messages_blocks__user_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/reports":{"post":{"tags":["messages"],"summary":"Report","operationId":"report_api_messages_reports_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/messages/users/search":{"get":{"tags":["messages"],"summary":"Search Users","operationId":"search_users_api_messages_users_search_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","description":"The bell's whole contents: the recent rows and how many are unread.","operationId":"list_notifications_api_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"delete":{"tags":["notifications"],"summary":"Clear All","description":"\"Clear all\". The rows are gone; the documents and trees they pointed at\nare untouched, which is the whole reason this is a delete and not an\narchive — there is nothing here to keep.","operationId":"clear_all_api_notifications_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/notifications/read":{"post":{"tags":["notifications"],"summary":"Mark All Read","description":"Opening the bell is reading it — the badge goes out, the list stays.","operationId":"mark_all_read_api_notifications_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/email-prefs/unsubscribe":{"get":{"tags":["email"],"summary":"Unsubscribe Page","description":"Ask, don't act. A mail scanner opening this has unsubscribed nobody.","operationId":"unsubscribe_page_api_email_prefs_unsubscribe_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["email"],"summary":"Unsubscribe","description":"The button on that page, and the mail client's own one-click button.","operationId":"unsubscribe_api_email_prefs_unsubscribe_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/email-prefs":{"get":{"tags":["email"],"summary":"Read Prefs","operationId":"read_prefs_api_email_prefs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPrefs"}}}}},"security":[{"APIKeyCookie":[]}]},"put":{"tags":["email"],"summary":"Write Prefs","operationId":"write_prefs_api_email_prefs_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPrefs"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPrefs"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/comments":{"get":{"tags":["comments"],"summary":"List Comments","description":"Every comment on a page, threaded, subject to page access.\n\nWhat an author researches depends on who is reading, so the answer is\nnever one a shared cache may hand to the next reader.","operationId":"list_comments_api_comments_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":300,"title":"Page Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["comments"],"summary":"Create Comment","description":"Leave a comment, or a reply to one. Signing in is what it takes.","operationId":"create_comment_api_comments_post","security":[{"APIKeyCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comments/counts":{"get":{"tags":["comments"],"summary":"Comment Counts","description":"How many comments each page has, for listings. `keys` is comma-separated.\n\nWithout `keys` it answers for the public pages only: a list of every tree\nperson with a comment would say which private trees are being discussed.\nAsked by key, a record or a tree person is counted only for a reader who\ncould open its thread.","operationId":"comment_counts_api_comments_counts_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"keys","in":"query","required":false,"schema":{"type":"string","maxLength":8000,"default":"","title":"Keys"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comments/recent":{"get":{"tags":["comments"],"summary":"Recent Comments","description":"The newest comments anyone may read, for the strips on the home page and\non a collection page.\n\nWith `page_key` (and the collection's `dataset_id`), only that page's thread\nand the comments on its records. The answer is the same for every visitor:\na not-yet-published collection's records are left out for everyone, so the\nstrip never depends on who is looking.","operationId":"recent_comments_api_comments_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":6,"title":"Limit"}},{"name":"page_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Page Key"}},{"name":"dataset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":32767,"minimum":1},{"type":"null"}],"title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comments/watch":{"get":{"tags":["comments"],"summary":"Watch State","description":"Whether the member hears about new comments on this page, and why.","operationId":"watch_state_api_comments_watch_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":300,"title":"Page Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["comments"],"summary":"Set Watch","description":"Start or stop watching a page's comments.","operationId":"set_watch_api_comments_watch_put","security":[{"APIKeyCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comments/{comment_id}":{"patch":{"tags":["comments"],"summary":"Edit Comment","description":"Change your own comment. It is marked as edited from then on.","operationId":"edit_comment_api_comments__comment_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["comments"],"summary":"Delete Comment","description":"Remove your own comment (an admin may remove any).\n\nA comment with replies under it leaves a tombstone: deleting it outright\nwould take the answers with it, and those belong to the people who wrote\nthem. A comment nobody replied to is removed completely.","operationId":"delete_comment_api_comments__comment_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents":{"get":{"tags":["transcribe"],"summary":"List Documents","description":"Every document this user has uploaded, newest first, with page progress.","operationId":"list_documents_api_transcribe_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["transcribe"],"summary":"Upload","description":"Accept a scan, store it outside the web root, and start the pipeline.","operationId":"upload_api_transcribe_documents_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_api_transcribe_documents_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/transcribe/allowance":{"get":{"tags":["transcribe"],"summary":"Get Allowance","description":"What this account has left. Read by the transcribe page before uploading.\n\nThe size limit travels with it so the browser checks the number the API\nactually enforces. It used to be worked out on both sides from the same\nrule, which is two places to change and one of them to forget.","operationId":"get_allowance_api_transcribe_allowance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/transcribe/documents/{doc_id}":{"get":{"tags":["transcribe"],"summary":"Get Document","operationId":"get_document_api_transcribe_documents__doc_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["transcribe"],"summary":"Update Document Meta","description":"Edit what the document is called, and what it is.\n\nClearing a field stores an empty string rather than NULL, which is how the\npipeline knows the member meant it: the description pass only ever fills a\nfield that is NULL, so a summary deleted on purpose stays deleted.","operationId":"update_document_meta_api_transcribe_documents__doc_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentMeta"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["transcribe"],"summary":"Delete Document","operationId":"delete_document_api_transcribe_documents__doc_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/describe":{"post":{"tags":["transcribe"],"summary":"Describe Document","description":"Ask for the summary, period and place to be written again.\n\nDeliberate, so it overwrites: a member who presses this wants the model's\nreading of the text as it stands now. The title is never touched — that one\nis only ever the filename or what they typed.","operationId":"describe_document_api_transcribe_documents__doc_id__describe_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/file":{"get":{"tags":["transcribe"],"summary":"Get Document File","description":"Stream the original scan. Authenticated: uploads are never served\nstatically, unlike everything under /wp-content/uploads.","operationId":"get_document_file_api_transcribe_documents__doc_id__file_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/thumbnail":{"get":{"tags":["transcribe"],"summary":"Get Document Thumbnail","description":"A small picture of the first page, made once and kept beside the scan.\n\nA list of scans is otherwise thirty identical marks; what tells one parish\nregister from the next at a glance is the paper it is written on. Built on\nthe first request rather than at upload, so it costs nothing for a document\nnobody ever lists, and 404s rather than failing loudly — the list falls\nback to the mark it drew before.","operationId":"get_document_thumbnail_api_transcribe_documents__doc_id__thumbnail_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/pages":{"get":{"tags":["transcribe"],"summary":"List Pages","operationId":"list_pages_api_transcribe_documents__doc_id__pages_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/pages/{page_id}":{"patch":{"tags":["transcribe"],"summary":"Update Page","description":"Save the user's edits and/or the reviewed flag for one page.","operationId":"update_page_api_transcribe_pages__page_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/webhooks/datalab":{"post":{"tags":["transcribe"],"summary":"Datalab Webhook","description":"Record that one submitted chunk has finished.\n\nDatalab waits up to thirty seconds for a response and retries on a 5xx or a\ntimeout, so this does as little as possible: it marks the row and returns.\nThe job that submitted the chunk is still running and collects it within a\ncouple of seconds; a job whose worker died is requeued by the sweeper and\nfinds the same mark waiting.\n\nDeliberately idempotent. They document that duplicate deliveries happen,\nand a second callback for a chunk already collected changes nothing.","operationId":"datalab_webhook_api_transcribe_webhooks_datalab_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/transcribe/glossaries":{"get":{"tags":["glossary"],"summary":"List Glossaries","description":"Every glossary this member owns, alphabetically, with its size.","operationId":"list_glossaries_api_transcribe_glossaries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["glossary"],"summary":"Create Glossary","operationId":"create_glossary_api_transcribe_glossaries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlossaryIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/transcribe/glossaries/{gid}":{"get":{"tags":["glossary"],"summary":"Get Glossary","operationId":"get_glossary_api_transcribe_glossaries__gid__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"integer","title":"Gid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["glossary"],"summary":"Update Glossary","operationId":"update_glossary_api_transcribe_glossaries__gid__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"integer","title":"Gid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlossaryPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["glossary"],"summary":"Delete Glossary","description":"Deleting takes the terms with it, and detaches it from every document —\nboth by cascade, so a document never keeps a dangling attachment.","operationId":"delete_glossary_api_transcribe_glossaries__gid__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"integer","title":"Gid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/glossaries/{gid}/entries":{"get":{"tags":["glossary"],"summary":"List Entries","operationId":"list_entries_api_transcribe_glossaries__gid__entries_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"integer","title":"Gid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["glossary"],"summary":"Create Entry","operationId":"create_entry_api_transcribe_glossaries__gid__entries_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"integer","title":"Gid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/glossaries/{gid}/entries/bulk":{"post":{"tags":["glossary"],"summary":"Create Entries","description":"Import a list of terms in one transaction.\n\nThe whole file arrives at once rather than a request per row: a 400-term\nglossary imported one POST at a time is 400 round trips, and a browser tab\nclosed halfway through leaves half a glossary behind.","operationId":"create_entries_api_transcribe_glossaries__gid__entries_bulk_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"gid","in":"path","required":true,"schema":{"type":"integer","title":"Gid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntriesIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/glossary-entries/{eid}":{"patch":{"tags":["glossary"],"summary":"Update Entry","operationId":"update_entry_api_transcribe_glossary_entries__eid__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"eid","in":"path","required":true,"schema":{"type":"integer","title":"Eid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["glossary"],"summary":"Delete Entry","operationId":"delete_entry_api_transcribe_glossary_entries__eid__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"eid","in":"path","required":true,"schema":{"type":"integer","title":"Eid"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/glossaries":{"get":{"tags":["glossary"],"summary":"List Document Glossaries","operationId":"list_document_glossaries_api_transcribe_documents__doc_id__glossaries_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["glossary"],"summary":"Set Document Glossaries","description":"Replace the attached set wholesale. Sending the desired list rather than\nadd/remove calls means a fast double-click cannot leave the document in a\nstate neither click asked for.","operationId":"set_document_glossaries_api_transcribe_documents__doc_id__glossaries_put","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlossaryIds"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/glossary-entries":{"get":{"tags":["glossary"],"summary":"List Document Entries","description":"Every term from the glossaries attached to this document, flat. This is\nthe one request the editor makes to build its highlights.","operationId":"list_document_entries_api_transcribe_documents__doc_id__glossary_entries_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/share":{"get":{"tags":["transcribe"],"summary":"Get Share","description":"The live link for this document, or null when it is not shared.","operationId":"get_share_api_transcribe_documents__doc_id__share_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["transcribe"],"summary":"Create Share","description":"Turn sharing on. Idempotent: an existing live link is returned as it is,\nso a second click never silently breaks the link already sent.","operationId":"create_share_api_transcribe_documents__doc_id__share_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["transcribe"],"summary":"Revoke Share","operationId":"revoke_share_api_transcribe_documents__doc_id__share_delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared/{token}":{"get":{"tags":["transcribe"],"summary":"Read Shared","description":"Everything the read-only page draws, in one answer.\n\nThe session is read for one thing only: whether the reader is the owner,\nwho gets a way back to the editor. It changes nothing else, so the owner\nchecking their link sees exactly what a stranger does.","operationId":"read_shared_api_shared__token__get","security":[{"APIKeyCookie":[]}],"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/shared/{token}/file":{"get":{"tags":["transcribe"],"summary":"Read Shared File","operationId":"read_shared_file_api_shared__token__file_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/transcribe/documents/{doc_id}/extract":{"post":{"tags":["transcribe"],"summary":"Start Extraction","description":"Kick off (or re-run) extraction. Returns immediately; poll the GET.","operationId":"start_extraction_api_transcribe_documents__doc_id__extract_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/extraction":{"get":{"tags":["transcribe"],"summary":"Get Extraction","description":"Everyone found in this document, plus the relationships and the\nsame-person suggestions. The panel polls this while status is 'running'.","operationId":"get_extraction_api_transcribe_documents__doc_id__extraction_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/extracted-persons/{person_id}":{"patch":{"tags":["transcribe"],"summary":"Patch Person","description":"Fix a misread name or date before it reaches the tree.","operationId":"patch_person_api_transcribe_extracted_persons__person_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__extract__PersonPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["transcribe"],"summary":"Delete Person","description":"Drop someone the model invented, or a duplicate the user doesn't want.","operationId":"delete_person_api_transcribe_extracted_persons__person_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"integer","title":"Person Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/tree-matches/{tree_id}":{"get":{"tags":["transcribe"],"summary":"Tree Matches","description":"For each extracted person, the people already in this tree who look like\nthem — so an import attaches to an existing person instead of duplicating.","operationId":"tree_matches_api_transcribe_documents__doc_id__tree_matches__tree_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/in-tree/{tree_id}":{"get":{"tags":["transcribe"],"summary":"In Tree","description":"Which of this document's people an earlier import already put in the tree:\n{extracted id: tree person id}. The same answer to_tree acts on, so what the\npanel marks as \"in your tree\" is exactly what an import would update rather\nthan add.","operationId":"in_tree_api_transcribe_documents__doc_id__in_tree__tree_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/to-tree":{"post":{"tags":["transcribe"],"summary":"To Tree","description":"Merge the selected people and relationships into a family tree.\n\nAdditive by design: existing people keep every value they already have, and\nan existing relationship is never rewritten. Re-importing the same document\nupdates the people it created rather than duplicating them, because their\ntree ids are derived from the extracted row ids.","operationId":"to_tree_api_transcribe_documents__doc_id__to_tree_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToTreeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/export":{"post":{"tags":["transcribe"],"summary":"Start Export","description":"Queue a PDF of the whole document, or of one page of it. A paid-plan\nfeature (allowance.EXPORT_PLANS), like every export; a PDF built before\nstays downloadable, so only starting one is gated.","operationId":"start_export_api_transcribe_documents__doc_id__export_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/exports":{"get":{"tags":["transcribe"],"summary":"List Exports","description":"Every PDF built from this document that is still downloadable.","operationId":"list_exports_api_transcribe_documents__doc_id__exports_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/exports/{export_id}":{"get":{"tags":["transcribe"],"summary":"Get Export","description":"Where one export has got to. The socket announces the finish; this is\nthe fallback for a tab that was closed while it built.","operationId":"get_export_api_transcribe_exports__export_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"integer","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["transcribe"],"summary":"Delete Export","operationId":"delete_export_api_transcribe_exports__export_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"integer","title":"Export Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/exports/{export_id}/file":{"get":{"tags":["transcribe"],"summary":"Download Export","description":"Hand back the built PDF. Authenticated, like the scan it came from.","operationId":"download_export_api_transcribe_exports__export_id__file_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"integer","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/download":{"get":{"tags":["transcribe"],"summary":"Download Transcription","description":"The whole transcription, or one page of it, as Word or plain text.","operationId":"download_transcription_api_transcribe_documents__doc_id__download_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"format","in":"query","required":true,"schema":{"enum":["txt","docx"],"type":"string","title":"Format"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Page"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}},{"name":"translation","in":"query","required":false,"schema":{"anyOf":[{"enum":["en","es"],"type":"string"},{"type":"null"}],"title":"Translation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/translations":{"get":{"tags":["transcribe"],"summary":"List Translations","operationId":"list_translations_api_transcribe_documents__doc_id__translations_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"target","in":"query","required":true,"schema":{"enum":["en","es"],"type":"string","title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/transcribe/documents/{doc_id}/translate":{"post":{"tags":["transcribe"],"summary":"Start Translation","description":"Queue the pages asked for. A page whose translation is current is left\nalone, so asking for the whole document again only pays for what changed.","operationId":"start_translation_api_transcribe_documents__doc_id__translate_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/interest":{"get":{"tags":["billing"],"summary":"List Interest","description":"Admin view: the demand signal, newest first, plus a per-plan tally.","operationId":"list_interest_api_billing_interest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["billing"],"summary":"Record Interest","description":"Record that someone wants a plan. Returns {ok: true} — nothing is charged.","operationId":"record_interest_api_billing_interest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Interest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/config":{"get":{"tags":["billing"],"summary":"Billing Config","description":"Whether checkout exists at all. Read by the pricing page on load.\n\nPublic: it says nothing an anonymous visitor could not infer from whether\nthe buttons work, and the pricing page is shown before sign-in.","operationId":"billing_config_api_billing_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/subscription":{"get":{"tags":["billing"],"summary":"My Subscription","description":"This account's plan, in the terms the account page shows it.","operationId":"my_subscription_api_billing_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/checkout":{"post":{"tags":["billing"],"summary":"Start Checkout","description":"Open a Stripe Checkout session and hand back its URL.\n\nSign-in is required, and not only for the obvious reason: a subscription has\nto attach to an account, and letting an anonymous visitor pay first would\ncreate a payment with nowhere to put it.","operationId":"start_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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/portal":{"post":{"tags":["billing"],"summary":"Open Portal","description":"A link into Stripe's billing portal for securely changing card details.","operationId":"open_portal_api_billing_portal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/history":{"get":{"tags":["billing"],"summary":"Billing History","description":"The member's invoices, read from Stripe rather than checkout redirects.\n\nStripe creates invoices for subscriptions and for our one-time page packs.\nOnly the authenticated account's customer id is used; callers cannot pick a\ncustomer or an invoice belonging to somebody else.","operationId":"billing_history_api_billing_history_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/cancel":{"post":{"tags":["billing"],"summary":"Cancel Subscription","operationId":"cancel_subscription_api_billing_cancel_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/renew":{"post":{"tags":["billing"],"summary":"Renew Subscription","operationId":"renew_subscription_api_billing_renew_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/change-plan/undo":{"post":{"tags":["billing"],"summary":"Undo Plan Change","operationId":"undo_plan_change_api_billing_change_plan_undo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/change-options":{"get":{"tags":["billing"],"summary":"Change Options","operationId":"change_options_api_billing_change_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/change-preview":{"post":{"tags":["billing"],"summary":"Change Preview","operationId":"change_preview_api_billing_change_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/change-plan":{"post":{"tags":["billing"],"summary":"Change Plan","operationId":"change_plan_api_billing_change_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/billing/stripe/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","description":"Stripe's callback. The only path in the app that can grant a paid plan.\n\nOpens its own session rather than taking the dependency: the body has to be\nread as raw bytes for the signature check, and this must answer Stripe\nquickly whatever the rest of the request pipeline is doing.\n\nAlways answers 200 once the signature is good, even if the handler failed.\nA 500 makes Stripe retry the same event for three days; where a retry could\nhelp, the failure is logged loudly and the event id is left unrecorded so\nthe retry is actually reprocessed.","operationId":"stripe_webhook_api_billing_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/contributions/config":{"get":{"tags":["contributions"],"summary":"Contribution Config","description":"Whether contributions can be taken, and at what amounts.\n\nPublic, and asked on page load. Only the secret key is needed — there is no\nprice object to find, which is why this asks `stripe_api.enabled()` rather\nthan `stripe_prices.enabled()` as the pricing page does.","operationId":"contribution_config_api_contributions_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/contributions/checkout":{"post":{"tags":["contributions"],"summary":"Start Contribution","description":"Open a Stripe Checkout session for a one-time gift and hand back its URL.","operationId":"start_contribution_api_contributions_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContributionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/admin/contributions":{"get":{"tags":["contributions"],"summary":"List Contributions","description":"Paid one-time gifts recorded by the signed Stripe webhook, newest first.","operationId":"list_contributions_api_admin_contributions_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nudge/activity":{"post":{"tags":["nudge"],"summary":"Record Activity","operationId":"record_activity_api_nudge_activity_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityEvent"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/nudge/decision":{"post":{"tags":["nudge"],"summary":"Decide","operationId":"decide_api_nudge_decision_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionContext"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/nudge":{"post":{"tags":["nudge"],"summary":"Record","description":"Record a showing's display or answer. An answer to the latest showing\nsets when the card may show next; a late answer from an older tab is kept\nfor the report but changes no schedule.","operationId":"record_api_nudge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NudgeEvent"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/conversion/event":{"post":{"tags":["conversion"],"summary":"Record Event","operationId":"record_event_api_conversion_event_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/presence/heartbeat":{"post":{"tags":["presence"],"summary":"Heartbeat","operationId":"heartbeat_api_presence_heartbeat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Heartbeat"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/media/albums":{"get":{"tags":["media"],"summary":"List Albums","description":"Albums with their item count and up to three recent photographs each.\n\nThree rather than one: a shelf of single covers says nothing about what is\ninside an album, and a card that shows a little of its contents is read as\na pile of photographs rather than as a folder icon. Only images are\neligible — a PDF has no picture to show.\n\n`cover` is the photograph the member chose, while it is still theirs and\nstill an image, and the newest photograph otherwise.","operationId":"list_albums_api_media_albums_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]},"post":{"tags":["media"],"summary":"Create Album","operationId":"create_album_api_media_albums_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlbumBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/media/albums/{album_id}":{"patch":{"tags":["media"],"summary":"Update Album","description":"Rename, describe or choose a cover, in any combination.","operationId":"update_album_api_media_albums__album_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"album_id","in":"path","required":true,"schema":{"type":"integer","title":"Album Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlbumPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["media"],"summary":"Delete Album","description":"Delete the album only. Its photos fall back to unfiled (ON DELETE SET NULL).","operationId":"delete_album_api_media_albums__album_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"album_id","in":"path","required":true,"schema":{"type":"integer","title":"Album Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media":{"get":{"tags":["media"],"summary":"List Media","description":"The owner's library, optionally narrowed to one album (or the unfiled\nones). Each item carries the people it is attached to, so the grid can show\nthat without a request per tile.","operationId":"list_media_api_media_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"album_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Album Id"}},{"name":"unfiled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unfiled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/upload":{"post":{"tags":["media"],"summary":"Upload Media","description":"Store one file in the owner's library.\n\nThe same bytes from the same member are not stored twice. A shoebox gets\nscanned in sessions, a phone's camera roll gets uploaded again after a\nreinstall, and the second copy of a photograph is a tile that has to be\ntagged twice and is billed twice. So a file whose fingerprint is already in\nthis library is not stored at all: the reply is the photo they already\nhave, marked `duplicate`, and nothing is written. `allow_duplicate=1` is\nthe member saying \"yes, I meant to\", and stores it as usual.","operationId":"upload_media_api_media_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_media_api_media_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/media/people":{"get":{"tags":["media"],"summary":"My People","description":"Everyone in every tree the member owns, in one list, with how many\nphotos each already has. This is what a picker that says \"who is this?\"\nneeds, and asking per tree meant a request for each before the member\ncould type a name.\n\nOwner-only, so nobody is redacted: these are the member's own relatives,\nliving ones included, exactly as their own tree shows them.","operationId":"my_people_api_media_people_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/media/bulk":{"post":{"tags":["media"],"summary":"Bulk Media","description":"One change to many photos: file them, date them, attach them to a\nperson, or delete them.\n\nAll or nothing on ownership. If any id is not the member's, nothing\nchanges at all, rather than the ones that were theirs changing and the\nreply having to explain which.","operationId":"bulk_media_api_media_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/media/download":{"get":{"tags":["media"],"summary":"Download Library","description":"The member's photographs as one ZIP, with a photos.csv that says what\neach one is: the title, caption and date they typed, the album, and who is\nin it. The library is theirs, and taking it away again has to be as easy\nas putting it in.\n\nOne of: the listed `ids`, an album, the unfiled photos, or (with nothing)\nthe whole library. Streamed as it is built, so the server holds one\nphotograph at a time however large the archive. Stored, not compressed:\na JPEG does not get smaller, and the time would be spent for nothing.","operationId":"download_library_api_media_download_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"album_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Album Id"}},{"name":"unfiled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unfiled"}},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/{media_id}":{"patch":{"tags":["media"],"summary":"Update Media","operationId":"update_media_api_media__media_id__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"integer","title":"Media Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["media"],"summary":"Delete Media","description":"Drop the row, its links (ON DELETE CASCADE) and the file on disk.\n\nAlso takes the photo off any person still wearing it as a profile picture.\nThat used to be missed, and it showed: deleting a photo left every person\nit had been made the portrait of pointing at a file that no longer existed,\nso their tree card and person page rendered a broken image with no way for\nthe owner to work out which photo had done it.","operationId":"delete_media_api_media__media_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"integer","title":"Media Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/{media_id}/download":{"get":{"tags":["media"],"summary":"Download Media","description":"The original file, exactly as uploaded, under a name a person can read.\n\nThe URL the library shows is the random storage name, and a browser's\n\"save\" on it gives the member a file called something like\nXq3v9KpL2mZt.jpg. This hands it over as what it was called. From object\nstorage that is a short-lived signed link that carries the name, so the\nbytes do not pass through a worker; on disk they are sent from here.","operationId":"download_media_api_media__media_id__download_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"integer","title":"Media Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/{media_id}/links":{"post":{"tags":["media"],"summary":"Link Media","description":"Attach one of your photos to a person in one of your trees, optionally\ntagging where in the frame they are. Both sides must be yours — a photo\ncan't be pinned onto someone else's tree.\n\nset_portrait in the reply tells the caller this person had no photo and no\npicture of their own before now, so this one should become their profile\npicture (the caller then POSTs the cropped face to /portrait).","operationId":"link_media_api_media__media_id__links_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"integer","title":"Media Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/{media_id}/portrait":{"post":{"tags":["media"],"summary":"Set Portrait","description":"Make this photo the person's profile picture. The caller may send a\ncropped face (the tag box, squared off) as `file`; without one the whole\nphoto is used. The avatar is a plain URL on the person's tree data, which\nis what the person page and the chart cards already read.","operationId":"set_portrait_api_media__media_id__portrait_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"integer","title":"Media Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_set_portrait_api_media__media_id__portrait_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/{media_id}/links/{tree_id}/{person_id}":{"delete":{"tags":["media"],"summary":"Unlink Media","operationId":"unlink_media_api_media__media_id__links__tree_id___person_id__delete","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"integer","title":"Media Id"}},{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/persons/{tree_id}/{person_id}":{"get":{"tags":["media"],"summary":"Person Media","description":"Photos attached to a person. Owner always; anyone else only when the\ntree is public — the same rule the person's citations follow.","operationId":"person_media_api_media_persons__tree_id___person_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"tree_id","in":"path","required":true,"schema":{"type":"integer","title":"Tree Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/faces":{"get":{"tags":["faces"],"summary":"My Faces","description":"The suggestions waiting for this member, and how the scan is doing.","operationId":"my_faces_api_media_faces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/media/faces/groups/{group_id}/tag":{"post":{"tags":["faces"],"summary":"Tag Group","description":"\"Yes, that's them\" — tag every face in the group as one person.\n\nThis is the only thing in the feature that writes to a tree, and it writes\nexactly what a member drawing each box by hand would have written: one\nmedia_links row per photo, with the face's own box on it.","operationId":"tag_group_api_media_faces_groups__group_id__tag_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/faces/groups/{group_id}/dismiss":{"post":{"tags":["faces"],"summary":"Dismiss Group","description":"\"Don't suggest this person again\", and mean it.\n\nThe mute lives on the faces, so tonight's pass cannot rebuild the same\ngroup from the same faces and offer it back. Undo is the member's own, for\nas long as they can see the row — see restore below.","operationId":"dismiss_group_api_media_faces_groups__group_id__dismiss_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/faces/groups/{group_id}/restore":{"post":{"tags":["faces"],"summary":"Restore Group","description":"Undo a dismissal, while the row is still on screen.","operationId":"restore_group_api_media_faces_groups__group_id__restore_post","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/avatar":{"post":{"tags":["profile"],"summary":"Upload Avatar","description":"Set the signed-in member's profile picture.\n\nReturns as soon as the bytes are on disk and the row is written. The\npicture is live at that moment — full size, which is why the job exists.","operationId":"upload_avatar_api_profile_avatar_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_avatar_api_profile_avatar_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]},"delete":{"tags":["profile"],"summary":"Delete Avatar","description":"Remove the picture. Falls back to the initial, as an account with no\npicture always has.","operationId":"delete_avatar_api_profile_avatar_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/profile/storage":{"get":{"tags":["profile"],"summary":"My Storage","description":"The signed-in member's own usage.","operationId":"my_storage_api_profile_storage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/support":{"post":{"tags":["support"],"summary":"Send Support Request","operationId":"send_support_request_api_support_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_send_support_request_api_support_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/geo/whereami":{"get":{"tags":["geo"],"summary":"Whereami","description":"The visitor's country, as Cloudflare already knows it.\n\nCloudflare stamps every request to the origin with CF-IPCountry when IP\nGeolocation is on for the zone, so this costs no lookup and no wait —\nunlike `lookup()` above, which uses cached City Plus results. Two letters,\nuppercase, or None when the header is absent\n(local development, a direct hit on the origin, geolocation switched off\nin the dashboard) and for Cloudflare's own \"unknown address\" markers.\n\nPublic on purpose: it tells the caller nothing it did not already send.","operationId":"whereami_api_geo_whereami_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Whereami Api Geo Whereami Get"}}}}}}},"/api/share-click":{"post":{"tags":["sharing"],"summary":"Record Share Click","operationId":"record_share_click_api_share_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareClick"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-deletion/request":{"post":{"tags":["deletion"],"summary":"Request Deletion","description":"Take the form and mail the address a confirmation link.\n\nAnswers the same way whether or not an account exists: the form is public,\nand telling a stranger which addresses are registered here would make it a\nmembership oracle. The person is told to expect the email either way, which\nis true either way — the mail goes to the address, not to the account.","operationId":"request_deletion_api_data_deletion_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/data-deletion/confirm":{"post":{"tags":["deletion"],"summary":"Confirm Deletion","description":"Click target of the confirmation email. This is what reaches the inbox.\n\nA second click reads as \"already confirmed\" rather than a broken link, and\nsends nothing twice: the row is only forwarded on the transition.","operationId":"confirm_deletion_api_data_deletion_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmIn"}}},"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/deletions":{"get":{"tags":["deletion"],"summary":"List Requests","description":"Every request, newest first, each one answering the two questions that\ndecide what to do with it: is there an account under this address, and did\nthe address itself confirm the request?\n\nThe account is looked up live rather than stored, because it is a fact\nabout now — the point of the row is that it may still need acting on, and\na hit recorded last week would only say what was true then.","operationId":"list_requests_api_admin_deletions_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/deletions/{rid}":{"patch":{"tags":["deletion"],"summary":"Set Status","description":"Record that a confirmed request has been dealt with, or put it back.\n\n'pending' is never set from here — it means \"the address has not answered\",\nwhich is not something an administrator can decide.","operationId":"set_status_api_admin_deletions__rid__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"integer","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contact":{"post":{"tags":["contact"],"summary":"Send Contact Message","operationId":"send_contact_message_api_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/donations/start":{"post":{"tags":["donations"],"summary":"Start Donation","description":"Take the form, write it down, and hand back one upload URL per file.","operationId":"start_donation_api_donations_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/donations/{donation_id}/file/{file_id}":{"post":{"tags":["donations"],"summary":"Upload Through Api","description":"The fallback path, for a deployment with no Spaces.\n\nThe body is the raw file. Capped by nginx long before it is capped here,\nwhich is the whole reason production does not use this.\n\nClosed wherever Spaces IS configured, and not merely unused there: this\nwrites through `storage.put`, which grants public-read per object, so\nleaving it open would have let somebody who started a donation store a\npublicly readable file in the Space by calling it instead of the presigned\nURL they were given. With Spaces on, the presigned PUT is the only way in.","operationId":"upload_through_api_api_donations__donation_id__file__file_id__post","parameters":[{"name":"donation_id","in":"path","required":true,"schema":{"type":"integer","title":"Donation Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/donations/complete":{"post":{"tags":["donations"],"summary":"Complete Donation","description":"The browser says the uploads are done; check that they really are.\n\nEvery file is confirmed with a HEAD against the bucket, so what the\ndonation ends up recording is what is actually there. An object over the\nper-file ceiling is deleted rather than kept: a presigned PUT cannot carry\na maximum, so this is where that limit is really enforced.","operationId":"complete_donation_api_donations_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteIn"}}},"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/donations":{"get":{"tags":["donations"],"summary":"List Donations","description":"Every donation, newest first, with its files.\n\n'uploading' rows are included rather than hidden: a donation that never\nfinished is worth seeing, because it usually means somebody's connection\ngave out on a large scan and they are worth writing to.","operationId":"list_donations_api_admin_donations_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/donations/{did}":{"patch":{"tags":["donations"],"summary":"Set Donation Status","description":"Where a donation goes after somebody has looked at it.\n\n'uploading' is never set from here: it describes files in flight, which is\nnot a decision an administrator makes.","operationId":"set_donation_status_api_admin_donations__did__patch","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"did","in":"path","required":true,"schema":{"type":"integer","title":"Did"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DonationPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/donations/files/{fid}/link":{"get":{"tags":["donations"],"summary":"Donation File Link","description":"A link that opens one donated file, and stops working a quarter of an\nhour later.\n\nThis is the only way the bytes come back out. The object itself stays\nprivate, so there is no URL that keeps working if this one is forwarded.","operationId":"donation_file_link_api_admin_donations_files__fid__link_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"fid","in":"path","required":true,"schema":{"type":"integer","title":"Fid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/{token}/versions":{"get":{"tags":["library"],"summary":"Document Versions","description":"Both sizes of a book, for the download page to offer: {\"original\", \"lite\"}\nin bytes, `lite` null when there is only the original.","operationId":"document_versions_api_library__token__versions_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/{token}":{"get":{"tags":["library"],"summary":"Open Document","description":"Serve a member or a holder of this document's article capability.","operationId":"open_document_api_library__token__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}},{"name":"original","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Original"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["library"],"summary":"Open Document","description":"Serve a member or a holder of this document's article capability.","operationId":"open_document_api_library__token__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}},{"name":"original","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Original"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/roloff/pages/{page}":{"get":{"tags":["roloff"],"summary":"Book Page","operationId":"book_page_api_roloff_pages__page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["roloff"],"summary":"Book Page","operationId":"book_page_api_roloff_pages__page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scans/{scan_set}/{volume}/{page}":{"get":{"tags":["scans"],"summary":"Scan Page","operationId":"scan_page_api_scans__scan_set___volume___page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"scan_set","in":"path","required":true,"schema":{"type":"string","title":"Scan Set"}},{"name":"volume","in":"path","required":true,"schema":{"type":"string","title":"Volume"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["scans"],"summary":"Scan Page","operationId":"scan_page_api_scans__scan_set___volume___page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"scan_set","in":"path","required":true,"schema":{"type":"string","title":"Scan Set"}},{"name":"volume","in":"path","required":true,"schema":{"type":"string","title":"Volume"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario/stats":{"get":{"tags":["diario"],"summary":"Stats","description":"Counts for the signed-out page. Numbers only: no dates, titles or text, so it\nis public. `pages_searchable` is pages whose words are indexed, not every page.","operationId":"stats_api_diario_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/diario/summary":{"get":{"tags":["diario"],"summary":"Summary","operationId":"summary_api_diario_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/diario/search":{"get":{"tags":["diario"],"summary":"Search","description":"Find issues by date, edition and, once indexed, the words inside them.\n\nA date written in `q` fills any date part not given; what is left is the word\nquery. Word search covers only issues whose text has been indexed (`scope` says so).","operationId":"search_api_diario_search_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"year","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"}},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":12,"minimum":1},{"type":"null"}],"title":"Month"}},{"name":"day","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":31,"minimum":1},{"type":"null"}],"title":"Day"}},{"name":"edition","in":"query","required":false,"schema":{"type":"string","default":"","title":"Edition"}},{"name":"newest","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Newest"}},{"name":"same_page","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Same Page"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"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/diario/file/{ident}":{"get":{"tags":["diario"],"summary":"Open File","description":"Send a signed-in reader to a short-lived URL for this issue's PDF.","operationId":"open_file_api_diario_file__ident__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario/access":{"get":{"tags":["diario"],"summary":"Access","description":"204 for a reader who may open scans, 401/403 for anyone else.\n\nThe edge cache (deploy/cloudflare-diario/worker.js) asks this before it hands out\na cached scan, so who may read stays decided here, by this router's own\ndependencies, and the Worker never holds a copy of the rule.","operationId":"access_api_diario_access_get","responses":{"204":{"description":"Successful Response"}},"security":[{"APIKeyCookie":[]}]}},"/api/diario/pdf/{ident}":{"get":{"tags":["diario"],"summary":"Read Pdf","description":"The issue's PDF from this site's own address, with byte ranges.\n\nThe page viewer (pdf.js) asks for just the bytes of the pages being looked at,\nwhich is why a 70 MB newspaper opens at once. Served from here, and not by\nredirecting to the storage host, so no cross-origin rule is needed and the\nviewer works the same everywhere. A signed-in reader only.\n\nThe lighter copy is sent when there is one, and the original when there is not\nor when the reader asks for it with ?original=1. X-Diario-Copy says which.","operationId":"read_pdf_api_diario_pdf__ident__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"original","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Original"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario/thumb/{ident}":{"get":{"tags":["diario"],"summary":"Read Thumb","description":"The issue's front page as a small WebP, for lists. 404 until it is made.","operationId":"read_thumb_api_diario_thumb__ident__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario/pagethumb/{ident}/{page}":{"get":{"tags":["diario"],"summary":"Read Page Thumb","description":"One page as a small WebP, for the list of pages a word matched. 404 until it is made.","operationId":"read_page_thumb_api_diario_pagethumb__ident___page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario/ocr/{ident}/{page}":{"get":{"tags":["diario"],"summary":"Ocr Words","description":"One page's OCR words as [x, y, w, h, text], each a fraction of the page.\nA word the search also finds under other spellings (diario_ocrfix) carries\nthem as a sixth item, so the reader marks it for those searches too.","operationId":"ocr_words_api_diario_ocr__ident___page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario/record/{record_id}":{"get":{"tags":["diario"],"summary":"Record In Issue","operationId":"record_in_issue_api_diario_record__record_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario/pagefile/{ident}/{page}":{"get":{"tags":["diario"],"summary":"Download Page","description":"One page of an issue, cut from the original scan, as a PDF to save.\n\nThe reader's Download offers this beside the whole issue (/file/...?download=true),\nso a reader who wants the page in view need not fetch every page of the issue.","operationId":"download_page_api_diario_pagefile__ident___page__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-record/{record_id}":{"get":{"tags":["diario"],"summary":"Member Record Place","description":"The record's issue, page and box, as for readers, without the issue's other copies.","operationId":"member_record_place_api_diario_record__record_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-record/{record_id}/page.pdf":{"get":{"tags":["diario"],"summary":"Member Record Page","description":"The one page of the Diario this record sits on, as a one-page PDF.","operationId":"member_record_page_api_diario_record__record_id__page_pdf_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-public/stats":{"get":{"tags":["diario"],"summary":"Public Stats","description":"Issues and days on the site, the years they span, and their scanned pages\n(summed from each file's count; `pages_uncounted` issues could not be counted).","operationId":"public_stats_api_diario_public_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/diario-ocr/claim":{"post":{"tags":["diario-ocr"],"summary":"Claim","description":"The next queued issue, leased to this worker, with its two links.","operationId":"claim_api_diario_ocr_claim_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hello"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-ocr/heartbeat":{"post":{"tags":["diario-ocr"],"summary":"Heartbeat","operationId":"heartbeat_api_diario_ocr_heartbeat_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRef"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-ocr/done":{"post":{"tags":["diario-ocr"],"summary":"Done","description":"Recorded only once the OCR file is in the Space.","operationId":"done_api_diario_ocr_done_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Done"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-ocr/fail":{"post":{"tags":["diario-ocr"],"summary":"Fail","operationId":"fail_api_diario_ocr_fail_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failed"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-ocr/status":{"get":{"tags":["diario-ocr"],"summary":"Status","description":"Progress, speed, workers, failures and quality for a run (the newest by default).","operationId":"status_api_diario_ocr_status_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"run","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-ocr/requeue":{"post":{"tags":["diario-ocr"],"summary":"Requeue","operationId":"requeue_api_diario_ocr_requeue_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Requeue"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyCookie":[]}]}},"/api/diario-share/{share_id}":{"get":{"tags":["diario-share"],"summary":"Open Share","operationId":"open_share_api_diario_share__share_id__get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["diario-share"],"summary":"Unlock","operationId":"unlock_api_diario_share__share_id__post","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_unlock_api_diario_share__share_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-share/{share_id}/{key}/links.txt":{"get":{"tags":["diario-share"],"summary":"Links","description":"The aria2c input file: one address per file, and where to save it.","operationId":"links_api_diario_share__share_id___key__links_txt_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"only","in":"query","required":false,"schema":{"type":"string","default":"","title":"Only"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diario-share/{share_id}/{key}/f/{path}":{"get":{"tags":["diario-share"],"summary":"Fetch File","description":"Log the request and send it on to a one-hour signed URL for that one file.","operationId":"fetch_file_api_diario_share__share_id___key__f__path__get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/record-images/{image_id}":{"get":{"tags":["record-images"],"summary":"Open Image","operationId":"open_image_api_record_images__image_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","title":"Image Id"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["record-images"],"summary":"Open Image","operationId":"open_image_api_record_images__image_id__get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"integer","title":"Image Id"}},{"name":"share","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{dataset_id}/insights":{"get":{"tags":["insights"],"summary":"Collection Insights","description":"What this collection's rows add up to; empty cards without a builder.","operationId":"collection_insights_api_collections__dataset_id__insights_get","security":[{"APIKeyCookie":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"integer","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/havana-1870":{"get":{"tags":["havana-1870"],"summary":"Havana 1870","description":"Every entry of the 1870 directory, with where it stood where that is known.","operationId":"havana_1870_api_havana_1870_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/havana-map-pass/verify":{"post":{"tags":["havana-1870"],"summary":"Verify Pass","operationId":"verify_pass_api_havana_map_pass_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PassRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api":{"get":{"tags":["meta"],"summary":"Service index","description":"The one URL an agent needs to find everything else.\n\nLists the public endpoints and the machine-readable descriptions of the\nsite, so a client that lands on /api can reach the OpenAPI document, the\ndocumentation and llms.txt without guessing at paths.","operationId":"api_index_api_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"tags":["meta"],"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/config":{"get":{"tags":["meta"],"summary":"Config","description":"Public feature flags the frontend needs at load (e.g. which auth\nproviders are available).","operationId":"config_api_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Accept":{"properties":{"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"use_default_folder":{"type":"boolean","title":"Use Default Folder","default":true}},"type":"object","title":"Accept"},"ActivityEvent":{"properties":{"page":{"type":"string","enum":["home","record","collection","tree","research","support"],"title":"Page"},"action":{"type":"string","enum":["view","engaged_30s"],"title":"Action"}},"type":"object","required":["page","action"],"title":"ActivityEvent"},"AdminUserPatch":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string","maxLength":320,"minLength":3},{"type":"null"}],"title":"Email"},"lang":{"anyOf":[{"type":"string","pattern":"^(en|es)$"},{"type":"null"}],"title":"Lang"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_superuser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser"},"is_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Verified"}},"type":"object","title":"AdminUserPatch"},"AlbumBody":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"AlbumBody"},"AlbumPatch":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"cover_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cover Id"}},"type":"object","title":"AlbumPatch","description":"A change to an album. Only the fields actually sent are touched: a\nrename must not clear a description the form never showed, and choosing a\ncover must not need the title sent back with it."},"AllowancePatch":{"properties":{"plan":{"anyOf":[{"type":"string","pattern":"^(free|hobbyist|researcher|archive)$"},{"type":"null"}],"title":"Plan"},"bonus_pages":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":0.0},{"type":"null"}],"title":"Bonus Pages"},"unlimited":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unlimited"},"reset_period":{"type":"boolean","title":"Reset Period","default":false}},"type":"object","title":"AllowancePatch","description":"The only way an account gets more pages while billing does not exist."},"Annotation":{"properties":{"kind":{"type":"string","enum":["general","uncertain"],"title":"Kind","default":"general"},"quoted_text":{"type":"string","maxLength":10000,"title":"Quoted Text","default":""},"mentions":{"items":{"$ref":"#/components/schemas/Mention"},"type":"array","maxItems":100,"title":"Mentions"},"page_number":{"type":"integer","minimum":1.0,"title":"Page Number"},"points":{"items":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},"type":"array","maxItems":200,"minItems":3,"title":"Points"},"body":{"type":"string","maxLength":10000,"title":"Body","default":""}},"type":"object","required":["page_number","points"],"title":"Annotation"},"Append":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","maxItems":50,"minItems":1,"title":"Sources"}},"additionalProperties":false,"type":"object","required":["id","revision","sources"],"title":"Append"},"ApproveIn":{"properties":{"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"audience_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Audience Sha256"},"payload_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Payload Sha256"},"expires_in_seconds":{"type":"integer","maximum":3600.0,"minimum":60.0,"title":"Expires In Seconds","default":3600}},"additionalProperties":false,"type":"object","required":["content_sha256","audience_sha256","payload_sha256"],"title":"ApproveIn"},"Ask":{"properties":{"question":{"type":"string","maxLength":500,"minLength":1,"title":"Question"},"mode":{"type":"string","enum":["answer","search"],"title":"Mode","default":"answer"},"year_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year From"},"year_to":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year To"},"page_lang":{"anyOf":[{"type":"string","enum":["en","es"]},{"type":"null"}],"title":"Page Lang"},"earlier":{"items":{"type":"string","maxLength":500},"type":"array","maxItems":2,"title":"Earlier"},"earlier_ids":{"items":{"type":"integer"},"type":"array","maxItems":4,"title":"Earlier Ids"},"earlier_filters":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Earlier Filters"}},"type":"object","required":["question"],"title":"Ask"},"Batch":{"properties":{"action":{"type":"string","enum":["move","trash","restore","delete"],"title":"Action"},"document_ids":{"items":{"type":"integer"},"type":"array","maxItems":200,"minItems":1,"title":"Document Ids"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["action","document_ids"],"title":"Batch"},"Body_auth_cookie_db_login_api_auth_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"password"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_auth_cookie_db_login_api_auth_login_post"},"Body_data_deletion_api_auth_facebook_data_deletion_post":{"properties":{"signed_request":{"type":"string","title":"Signed Request"}},"type":"object","required":["signed_request"],"title":"Body_data_deletion_api_auth_facebook_data_deletion_post"},"Body_deauthorize_api_auth_facebook_deauthorize_post":{"properties":{"signed_request":{"type":"string","title":"Signed Request"}},"type":"object","required":["signed_request"],"title":"Body_deauthorize_api_auth_facebook_deauthorize_post"},"Body_import_csv_api_contributor_collections__dataset_id__import_csv_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_import_csv_api_contributor_collections__dataset_id__import_csv_post"},"Body_reset_forgot_password_api_auth_forgot_password_post":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"Body_reset_forgot_password_api_auth_forgot_password_post"},"Body_reset_reset_password_api_auth_reset_password_post":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"}},"type":"object","required":["token","password"],"title":"Body_reset_reset_password_api_auth_reset_password_post"},"Body_send_support_request_api_support_post":{"properties":{"message":{"type":"string","title":"Message"},"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files","default":[]}},"type":"object","required":["message"],"title":"Body_send_support_request_api_support_post"},"Body_set_portrait_api_media__media_id__portrait_post":{"properties":{"tree_id":{"type":"integer","title":"Tree Id"},"person_id":{"type":"string","title":"Person Id"},"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File"}},"type":"object","required":["tree_id","person_id"],"title":"Body_set_portrait_api_media__media_id__portrait_post"},"Body_unlock_api_diario_share__share_id__post":{"properties":{"password":{"type":"string","maxLength":200,"title":"Password","default":""}},"type":"object","title":"Body_unlock_api_diario_share__share_id__post"},"Body_upload_api_transcribe_documents_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"detection_mode":{"type":"string","title":"Detection Mode","default":"normal"},"ocr_provider":{"type":"string","title":"Ocr Provider","default":""}},"type":"object","required":["file"],"title":"Body_upload_api_transcribe_documents_post"},"Body_upload_avatar_api_profile_avatar_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_avatar_api_profile_avatar_post"},"Body_upload_document_api_contributor_entries__entry_id__documents_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"title":{"type":"string","title":"Title"},"citation":{"type":"string","title":"Citation"},"fact_key":{"type":"string","title":"Fact Key","default":""},"revision":{"type":"integer","title":"Revision"}},"type":"object","required":["file","title","citation","revision"],"title":"Body_upload_document_api_contributor_entries__entry_id__documents_post"},"Body_upload_document_api_project_desk_projects__project_id__documents_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["file"],"title":"Body_upload_document_api_project_desk_projects__project_id__documents_post"},"Body_upload_document_api_trees__tree_id__uploads_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_document_api_trees__tree_id__uploads_post"},"Body_upload_gedcom_api_trees_import_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"title":{"type":"string","title":"Title","default":""},"visibility":{"type":"string","title":"Visibility","default":""}},"type":"object","required":["file"],"title":"Body_upload_gedcom_api_trees_import_upload_post"},"Body_upload_media_api_media_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"album_id":{"type":"string","title":"Album Id","default":""},"title":{"type":"string","title":"Title","default":""},"allow_duplicate":{"type":"string","title":"Allow Duplicate","default":""}},"type":"object","required":["file"],"title":"Body_upload_media_api_media_upload_post"},"Body_verify_request_token_api_auth_request_verify_token_post":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"Body_verify_request_token_api_auth_request_verify_token_post"},"Body_verify_verify_api_auth_verify_post":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"Body_verify_verify_api_auth_verify_post"},"Box":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"w":{"type":"number","title":"W"},"h":{"type":"number","title":"H"}},"type":"object","required":["x","y","w","h"],"title":"Box","description":"A tag box on the photo, as fractions of the image (0..1)."},"BoxInput":{"properties":{"rowId":{"type":"string","maxLength":160,"minLength":1,"title":"Rowid"},"box":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Box"},"sourceSha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Sourcesha256"},"expectedRevision":{"type":"integer","minimum":0.0,"title":"Expectedrevision"}},"type":"object","required":["rowId","box","sourceSha256","expectedRevision"],"title":"BoxInput"},"BulkBody":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"},"action":{"type":"string","enum":["move","date","link","delete"],"title":"Action"},"album_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Album Id"},"taken_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taken On"},"tree_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tree Id"},"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"}},"type":"object","required":["ids","action"],"title":"BulkBody"},"BulkUsers":{"properties":{"action":{"type":"string","enum":["verification_email","password_reset","sign_out","disable","enable"],"title":"Action"},"ids":{"items":{"type":"integer"},"type":"array","maxItems":1000,"minItems":1,"title":"Ids"}},"type":"object","required":["action","ids"],"title":"BulkUsers"},"CampaignIn":{"properties":{"list_ids":{"items":{"type":"integer"},"type":"array","title":"List Ids"},"subject":{"type":"string","title":"Subject"},"html":{"type":"string","title":"Html"},"preheader":{"type":"string","title":"Preheader","default":""},"confirm":{"type":"string","title":"Confirm"},"per_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Hour"}},"type":"object","required":["list_ids","subject","html","confirm"],"title":"CampaignIn"},"CancelRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"CancelRequest"},"CheckoutRequest":{"properties":{"plan":{"type":"string","title":"Plan"},"period":{"type":"string","title":"Period","default":"monthly"},"lang":{"type":"string","title":"Lang","default":"en"},"blocks":{"type":"integer","title":"Blocks","default":1},"ga_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ga Client Id"},"ga_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ga Session Id"},"twclid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twclid"},"x_purchase_consent":{"type":"boolean","title":"X Purchase Consent","default":false},"conversion_context":{"anyOf":[{"$ref":"#/components/schemas/Context"},{"type":"null"}]},"promotion_code":{"anyOf":[{"type":"string","const":"CRP15"},{"type":"null"}],"title":"Promotion Code"}},"type":"object","required":["plan"],"title":"CheckoutRequest"},"Comment":{"properties":{"mentions":{"items":{"$ref":"#/components/schemas/Mention"},"type":"array","maxItems":100,"title":"Mentions"},"body":{"type":"string","maxLength":10000,"minLength":1,"title":"Body"},"document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Id"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"annotation_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Annotation Id"}},"type":"object","required":["body"],"title":"Comment"},"CommentEdit":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"CommentEdit"},"CommentIn":{"properties":{"page_key":{"type":"string","maxLength":300,"minLength":1,"title":"Page Key"},"parent_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parent Id"},"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"type":"object","required":["page_key","body"],"title":"CommentIn"},"CompleteIn":{"properties":{"id":{"type":"integer","title":"Id"},"token":{"type":"string","title":"Token"}},"type":"object","required":["id","token"],"title":"CompleteIn"},"ComposeIn":{"properties":{"to_user_id":{"type":"integer","title":"To User Id"},"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"type":"object","required":["to_user_id","body"],"title":"ComposeIn"},"ConfirmIn":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"ConfirmIn"},"ConsentBody":{"properties":{"accept_terms":{"type":"boolean","title":"Accept Terms","default":false},"collection_alerts":{"type":"boolean","title":"Collection Alerts","default":false},"alert_langs":{"items":{"type":"string","enum":["en","es"]},"type":"array","title":"Alert Langs","default":[]}},"type":"object","title":"ConsentBody"},"ContactIn":{"properties":{"name":{"type":"string","title":"Name","default":""},"email":{"type":"string","title":"Email","default":""},"message":{"type":"string","title":"Message","default":""},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false},"lang":{"type":"string","title":"Lang","default":"en"}},"type":"object","title":"ContactIn"},"Context":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"page":{"type":"string","enum":["record","collection","tree","research","transcription","support","other"],"title":"Page","default":"other"},"lang":{"type":"string","enum":["en","es"],"title":"Lang","default":"en"},"device":{"type":"string","enum":["mobile","tablet","desktop","unknown"],"title":"Device","default":"unknown"},"moment":{"type":"string","enum":["none","transcription_ready","insights_ready","allowance_used","people_requested","insights_requested","export_requested"],"title":"Moment","default":"none"}},"type":"object","required":["session_id"],"title":"Context"},"ContributionRequest":{"properties":{"amount_cents":{"type":"integer","title":"Amount Cents"},"lang":{"type":"string","title":"Lang","default":"en"},"ga_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ga Client Id"},"ga_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ga Session Id"},"support_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Source"}},"type":"object","required":["amount_cents"],"title":"ContributionRequest"},"CopyAttach":{"properties":{"to":{"type":"string","title":"To"},"relation":{"type":"string","title":"Relation"}},"type":"object","required":["to","relation"],"title":"CopyAttach"},"CopyBody":{"properties":{"source_tree":{"type":"integer","title":"Source Tree"},"source_person":{"type":"string","title":"Source Person"},"merge_into":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merge Into"},"take":{"items":{"type":"string"},"type":"array","title":"Take","default":[]},"attach":{"anyOf":[{"$ref":"#/components/schemas/CopyAttach"},{"type":"null"}]},"relatives":{"items":{"$ref":"#/components/schemas/CopyRelative"},"type":"array","title":"Relatives","default":[]}},"type":"object","required":["source_tree","source_person"],"title":"CopyBody"},"CopyRelative":{"properties":{"source_id":{"type":"string","title":"Source Id"},"match":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match"}},"type":"object","required":["source_id"],"title":"CopyRelative"},"DatalabSettingsPatch":{"properties":{"mode":{"type":"string","enum":["balanced","accurate"],"title":"Mode"},"pipeline_id":{"type":"string","maxLength":64,"pattern":"^$|^pl_[A-Za-z0-9_-]+$","title":"Pipeline Id","default":""},"pipeline_version":{"type":"integer","maximum":10000.0,"minimum":-1.0,"title":"Pipeline Version","default":-1},"crop_mode":{"type":"string","enum":["auto","off","left","right"],"title":"Crop Mode"},"crop_side_width":{"type":"number","maximum":1.0,"minimum":0.55,"title":"Crop Side Width","default":0.9},"preprocess_mode":{"type":"string","enum":["off","balanced"],"title":"Preprocess Mode"},"render_long_edge":{"type":"integer","maximum":4000.0,"minimum":1200.0,"title":"Render Long Edge","default":2400},"jpeg_quality":{"type":"integer","maximum":98.0,"minimum":70.0,"title":"Jpeg Quality","default":88},"chunk_pages":{"type":"integer","maximum":7000.0,"minimum":1.0,"title":"Chunk Pages"},"requests_per_minute":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Requests Per Minute"},"max_concurrent_requests":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Max Concurrent Requests"},"block_bboxes":{"type":"boolean","title":"Block Bboxes"},"word_bboxes":{"type":"boolean","title":"Word Bboxes"},"keep_page_headers":{"type":"boolean","title":"Keep Page Headers"},"keep_page_footers":{"type":"boolean","title":"Keep Page Footers"},"request_timeout_seconds":{"type":"integer","maximum":21600.0,"minimum":120.0,"title":"Request Timeout Seconds"},"fallback_poll_seconds":{"type":"integer","maximum":600.0,"minimum":5.0,"title":"Fallback Poll Seconds"}},"type":"object","required":["mode","crop_mode","preprocess_mode","chunk_pages","requests_per_minute","max_concurrent_requests","block_bboxes","word_bboxes","keep_page_headers","keep_page_footers","request_timeout_seconds","fallback_poll_seconds"],"title":"DatalabSettingsPatch"},"Decision":{"properties":{"action":{"type":"string","enum":["place","date","not_applicable","stated_unknown","revoke"],"title":"Action"},"scope":{"type":"string","enum":["context","everywhere"],"title":"Scope","default":"context"},"place_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Place Id"},"date_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date To"},"precision":{"anyOf":[{"type":"string","enum":["day","month","year","range","decade","century"]},{"type":"null"}],"title":"Precision"},"note":{"type":"string","maxLength":1000,"title":"Note","default":""}},"type":"object","required":["action"],"title":"Decision"},"DecisionContext":{"properties":{"page":{"type":"string","enum":["home","record","collection","tree","research","support","workflow","account","auth","admin","other"],"title":"Page"},"plan":{"type":"string","enum":["free","hobbyist","researcher","archive","unknown"],"title":"Plan"},"active_seconds":{"type":"integer","maximum":3600.0,"minimum":0.0,"title":"Active Seconds"},"moment":{"type":"string","enum":["none","transcription_ready","insights_ready","allowance_used","people_requested","insights_requested"],"title":"Moment","default":"none"}},"type":"object","required":["page","plan","active_seconds"],"title":"DecisionContext"},"DeleteUser":{"properties":{"confirm_email":{"type":"string","title":"Confirm Email"}},"type":"object","required":["confirm_email"],"title":"DeleteUser"},"Details":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"type":"string","maxLength":10000,"title":"Description","default":""}},"type":"object","required":["title"],"title":"Details"},"DocumentMeta":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"time_period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Period"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},"type":"object","title":"DocumentMeta","description":"The catalogue card. Every field is optional: the editor saves one at a\ntime, and an omitted key leaves that field alone."},"DonationPatch":{"properties":{"status":{"type":"string","title":"Status"},"admin_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Note"}},"type":"object","required":["status"],"title":"DonationPatch"},"Done":{"properties":{"worker":{"type":"string","maxLength":80,"title":"Worker"},"run":{"type":"string","maxLength":80,"title":"Run"},"issue":{"type":"string","maxLength":40,"title":"Issue"},"seconds":{"type":"number","title":"Seconds"},"pages":{"items":{"$ref":"#/components/schemas/PageStats"},"type":"array","title":"Pages"}},"type":"object","required":["worker","run","issue","seconds","pages"],"title":"Done"},"Draft":{"properties":{"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"filename":{"type":"string","maxLength":200,"title":"Filename"},"order":{"items":{"$ref":"#/components/schemas/Page"},"type":"array","maxItems":300,"title":"Order"}},"additionalProperties":false,"type":"object","required":["revision","filename","order"],"title":"Draft"},"EmailPrefs":{"properties":{"messages":{"type":"boolean","title":"Messages"}},"type":"object","required":["messages"],"title":"EmailPrefs","description":"True means \"send me these\" — the account page reads as a switch that is\non, while the table stores the refusals."},"EnabledIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"EnabledIn"},"EntriesIn":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/EntryIn"},"type":"array","title":"Entries"}},"type":"object","required":["entries"],"title":"EntriesIn","description":"A whole CSV in one request. Duplicates within the file, and terms the\nglossary already carries, are skipped rather than rejected — importing the\nsame list twice should be a no-op, not an error."},"EntryIn":{"properties":{"term":{"type":"string","maxLength":255,"minLength":1,"title":"Term"},"definition":{"type":"string","minLength":1,"title":"Definition"}},"type":"object","required":["term","definition"],"title":"EntryIn"},"EntryInput":{"properties":{"kind":{"type":"string","enum":["record","tree","document"],"title":"Kind"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/Evidence"},{"type":"null"}]},"tree_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Tree Id"},"target_record_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Target Record Id"},"reason":{"type":"string","maxLength":2000,"title":"Reason","default":""}},"additionalProperties":false,"type":"object","required":["kind"],"title":"EntryInput"},"EntryPatch":{"properties":{"term":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Term"},"definition":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Definition"}},"type":"object","title":"EntryPatch"},"EntryUpdate":{"properties":{"kind":{"type":"string","enum":["record","tree","document"],"title":"Kind"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/Evidence"},{"type":"null"}]},"tree_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Tree Id"},"target_record_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Target Record Id"},"reason":{"type":"string","maxLength":2000,"title":"Reason","default":""},"revision":{"type":"integer","exclusiveMinimum":0.0,"title":"Revision"}},"additionalProperties":false,"type":"object","required":["kind","revision"],"title":"EntryUpdate"},"ErrorModel":{"properties":{"detail":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorModel"},"Event":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"page":{"type":"string","enum":["record","collection","tree","research","transcription","support","other"],"title":"Page","default":"other"},"lang":{"type":"string","enum":["en","es"],"title":"Lang","default":"en"},"device":{"type":"string","enum":["mobile","tablet","desktop","unknown"],"title":"Device","default":"unknown"},"moment":{"type":"string","enum":["none","transcription_ready","insights_ready","allowance_used","people_requested","insights_requested","export_requested"],"title":"Moment","default":"none"},"event":{"type":"string","enum":["research_engaged","pricing_view","plan_selected","benefit_preview","value_moment"],"title":"Event"},"plan":{"type":"string","enum":["free","hobbyist","researcher","archive","pack","unknown"],"title":"Plan","default":"unknown"}},"type":"object","required":["session_id","event"],"title":"Event"},"Evidence":{"properties":{"given_name":{"type":"string","maxLength":100,"minLength":1,"title":"Given Name"},"paternal_surname":{"type":"string","maxLength":100,"title":"Paternal Surname","default":""},"maternal_surname":{"type":"string","maxLength":100,"title":"Maternal Surname","default":""},"source_name":{"type":"string","maxLength":255,"minLength":1,"title":"Source Name"},"contribution_citation":{"type":"string","maxLength":2000,"minLength":1,"title":"Contribution Citation"},"contribution_text":{"type":"string","maxLength":20000,"minLength":1,"title":"Contribution Text"},"contribution_kind":{"type":"string","enum":["Family testimony","Correspondence","Document","Obituary","Photograph","Community register","Other"],"title":"Contribution Kind","default":"Document"},"contribution_credit":{"type":"string","maxLength":255,"title":"Contribution Credit","default":""},"contribution_url":{"type":"string","maxLength":2000,"title":"Contribution Url","default":""},"contribution_basis":{"type":"string","maxLength":2000,"minLength":1,"title":"Contribution Basis"},"contribution_notes":{"type":"string","maxLength":4000,"title":"Contribution Notes","default":""},"contribution_birth_date":{"type":"string","maxLength":100,"title":"Contribution Birth Date","default":""},"contribution_birth_place":{"type":"string","maxLength":255,"title":"Contribution Birth Place","default":""},"contribution_death_date":{"type":"string","maxLength":100,"title":"Contribution Death Date","default":""},"contribution_death_place":{"type":"string","maxLength":255,"title":"Contribution Death Place","default":""},"contribution_residence":{"type":"string","maxLength":255,"title":"Contribution Residence","default":""}},"additionalProperties":false,"type":"object","required":["given_name","source_name","contribution_citation","contribution_text","contribution_basis"],"title":"Evidence"},"ExcludeBody":{"properties":{"excluded":{"type":"boolean","title":"Excluded"}},"type":"object","required":["excluded"],"title":"ExcludeBody"},"ExportRequest":{"properties":{"scope":{"type":"string","title":"Scope","default":"all"},"page_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Number"},"lang":{"type":"string","title":"Lang","default":"en"},"translation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translation"}},"type":"object","title":"ExportRequest"},"Failed":{"properties":{"worker":{"type":"string","maxLength":80,"title":"Worker"},"run":{"type":"string","maxLength":80,"title":"Run"},"issue":{"type":"string","maxLength":40,"title":"Issue"},"error":{"type":"string","maxLength":4000,"title":"Error"}},"type":"object","required":["worker","run","issue","error"],"title":"Failed"},"FavoriteIn":{"properties":{"record_id":{"type":"integer","title":"Record Id"},"person_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Person Id"}},"type":"object","required":["record_id"],"title":"FavoriteIn"},"FavoriteNoteIn":{"properties":{"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","title":"FavoriteNoteIn"},"Feedback":{"properties":{"id":{"type":"integer","title":"Id"},"vote":{"type":"integer","enum":[1,-1],"title":"Vote"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","vote"],"title":"Feedback"},"FileIn":{"properties":{"filename":{"type":"string","title":"Filename","default":""},"content_type":{"type":"string","title":"Content Type","default":""},"bytes":{"type":"integer","title":"Bytes","default":0}},"type":"object","title":"FileIn"},"FinalizationInput":{"properties":{"expectedDigest":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Expecteddigest"},"confirm":{"type":"boolean","const":true,"title":"Confirm"}},"type":"object","required":["expectedDigest","confirm"],"title":"FinalizationInput"},"Finish":{"properties":{"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"filename":{"type":"string","maxLength":200,"minLength":1,"title":"Filename"},"order":{"items":{"$ref":"#/components/schemas/Page"},"type":"array","maxItems":300,"minItems":1,"title":"Order"}},"additionalProperties":false,"type":"object","required":["revision","filename","order"],"title":"Finish"},"FolderIn":{"properties":{"folder":{"type":"string","pattern":"^(inbox|archived)$","title":"Folder"}},"type":"object","required":["folder"],"title":"FolderIn"},"GlossaryIds":{"properties":{"glossary_ids":{"items":{"type":"integer"},"type":"array","title":"Glossary Ids"}},"type":"object","required":["glossary_ids"],"title":"GlossaryIds"},"GlossaryIn":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"GlossaryIn"},"GlossaryPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"GlossaryPatch"},"GrantInput":{"properties":{"preapproved":{"type":"boolean","title":"Preapproved","default":false}},"type":"object","title":"GrantInput"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Heartbeat":{"properties":{"idle_seconds":{"type":"number","maximum":300.0,"minimum":0.0,"title":"Idle Seconds"}},"type":"object","required":["idle_seconds"],"title":"Heartbeat"},"Hello":{"properties":{"worker":{"type":"string","maxLength":80,"title":"Worker"},"gpu":{"type":"string","maxLength":120,"title":"Gpu","default":""}},"type":"object","required":["worker"],"title":"Hello"},"Intent":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","maximum":524288000.0,"exclusiveMinimum":0.0,"title":"Size Bytes"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"message":{"type":"string","maxLength":2000,"title":"Message","default":""}},"type":"object","required":["filename","mime_type","size_bytes"],"title":"Intent"},"Interest":{"properties":{"plan":{"type":"string","title":"Plan"},"period":{"type":"string","title":"Period","default":"monthly"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"lang":{"type":"string","title":"Lang","default":"en"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["plan"],"title":"Interest"},"ItemBody":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"taken_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taken On"},"album_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Album Id"},"move":{"type":"boolean","title":"Move","default":false}},"type":"object","title":"ItemBody"},"JobRef":{"properties":{"worker":{"type":"string","maxLength":80,"title":"Worker"},"run":{"type":"string","maxLength":80,"title":"Run"},"issue":{"type":"string","maxLength":40,"title":"Issue"}},"type":"object","required":["worker","run","issue"],"title":"JobRef"},"LinkBody":{"properties":{"tree_id":{"type":"integer","title":"Tree Id"},"person_id":{"type":"string","title":"Person Id"},"box":{"anyOf":[{"$ref":"#/components/schemas/Box"},{"type":"null"}]}},"type":"object","required":["tree_id","person_id"],"title":"LinkBody"},"Member":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"Member"},"Mention":{"properties":{"user_id":{"type":"integer","exclusiveMinimum":0.0,"title":"User Id"},"start":{"type":"integer","minimum":0.0,"title":"Start"},"end":{"type":"integer","exclusiveMinimum":0.0,"title":"End"}},"additionalProperties":false,"type":"object","required":["user_id","start","end"],"title":"Mention"},"MentionPreference":{"properties":{"email":{"type":"boolean","title":"Email"}},"type":"object","required":["email"],"title":"MentionPreference"},"Move":{"properties":{"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","title":"Move"},"NewLink":{"properties":{"kind":{"type":"string","title":"Kind"},"dataset_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dataset Id"},"record_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"title":"Record Ids"},"page_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Path"},"expires_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires On"}},"type":"object","required":["kind"],"title":"NewLink"},"Note":{"properties":{"mentions":{"items":{"$ref":"#/components/schemas/Mention"},"type":"array","maxItems":100,"title":"Mentions"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":50000,"minLength":1,"title":"Body"}},"type":"object","required":["title","body"],"title":"Note"},"NoteEdit":{"properties":{"mentions":{"items":{"$ref":"#/components/schemas/Mention"},"type":"array","maxItems":100,"title":"Mentions"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":50000,"minLength":1,"title":"Body"},"expected_updated_at":{"type":"string","format":"date-time","title":"Expected Updated At"}},"type":"object","required":["title","body","expected_updated_at"],"title":"NoteEdit"},"NudgeEvent":{"properties":{"action":{"type":"string","enum":["impression","dismissed","acted"],"title":"Action"},"card":{"anyOf":[{"type":"string","enum":["1c_offer","1c_contribute","transcription_inline","2a_gift","2b_count","2c_tools","2d_note","2e_compact"]},{"type":"null"}],"title":"Card"},"invitation":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Invitation"},"target":{"anyOf":[{"type":"string","enum":["plan","contribute"]},{"type":"null"}],"title":"Target"}},"type":"object","required":["action"],"title":"NudgeEvent"},"OAuth2AuthorizeResponse":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"}},"type":"object","required":["authorization_url"],"title":"OAuth2AuthorizeResponse"},"Page":{"properties":{"source":{"type":"integer","exclusiveMaximum":50.0,"minimum":0.0,"title":"Source"},"page":{"type":"integer","exclusiveMaximum":300.0,"minimum":0.0,"title":"Page"},"rotation":{"type":"integer","enum":[0,90,180,270],"title":"Rotation","default":0}},"additionalProperties":false,"type":"object","required":["source","page"],"title":"Page"},"PageEdit":{"properties":{"edited_text":{"anyOf":[{"type":"string","maxLength":2000000},{"type":"null"}],"title":"Edited Text"},"is_reviewed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Reviewed"},"expected_updated_at":{"type":"string","format":"date-time","title":"Expected Updated At"}},"type":"object","required":["expected_updated_at"],"title":"PageEdit"},"PageStats":{"properties":{"page":{"type":"integer","title":"Page"},"lines":{"type":"integer","title":"Lines"},"words":{"type":"integer","title":"Words"},"mean_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Score"},"low_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Low Share"},"lexicon_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lexicon Share"},"near_cap":{"type":"boolean","title":"Near Cap","default":false},"old_words":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Old Words"},"old_lexicon_share":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Old Lexicon Share"},"agreement_f1":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Agreement F1"},"ocr_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ocr Seconds"}},"type":"object","required":["page","lines","words"],"title":"PageStats"},"PageUpdate":{"properties":{"edited_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Text"},"is_reviewed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Reviewed"}},"type":"object","title":"PageUpdate"},"PassRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"PassRequest"},"PlanChange":{"properties":{"plan":{"type":"string","title":"Plan"},"period":{"type":"string","title":"Period"},"proration_date":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Proration Date"},"expected_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Amount"}},"type":"object","required":["plan","period"],"title":"PlanChange"},"PortalRequest":{"properties":{"lang":{"type":"string","title":"Lang","default":"en"}},"type":"object","title":"PortalRequest"},"PrepareIn":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id","description":"Unique UUID for this campaign attempt. Reuse the same UUID only when retrying the exact same draft; a label or slug is not valid."},"list_ids":{"items":{"type":"integer"},"type":"array","maxItems":10,"minItems":1,"title":"List Ids"},"subject":{"type":"string","maxLength":300,"minLength":1,"title":"Subject"},"preheader":{"type":"string","maxLength":300,"title":"Preheader","default":""},"html":{"type":"string","maxLength":500000,"minLength":1,"title":"Html"}},"additionalProperties":false,"type":"object","required":["request_id","list_ids","subject","html"],"title":"PrepareIn"},"RecordPatch":{"properties":{"event_day":{"anyOf":[{"type":"integer","maximum":31.0,"minimum":1.0},{"type":"null"}],"title":"Event Day"},"event_month":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Event Month"},"event_year":{"anyOf":[{"type":"integer","maximum":2999.0,"minimum":1.0},{"type":"null"}],"title":"Event Year"},"event_certainty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Certainty"},"place_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Text"},"page_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Ref"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"needs_review":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Review"},"details":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Details"}},"type":"object","title":"RecordPatch","description":"Only the fields present in the body are changed."},"ReplyIn":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"ReplyIn"},"ReportIn":{"properties":{"reported_user_id":{"type":"integer","title":"Reported User Id"},"conversation_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Conversation Id"},"message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Id"},"reason":{"type":"string","pattern":"^(spam|harassment|scam|hate|other)$","title":"Reason"},"details":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Details"}},"type":"object","required":["reported_user_id","reason"],"title":"ReportIn"},"ReportPatch":{"properties":{"status":{"type":"string","pattern":"^(open|reviewed|resolved)$","title":"Status"},"admin_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Note"}},"type":"object","required":["status"],"title":"ReportPatch"},"RequestBody":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"instructions":{"type":"string","maxLength":4000,"title":"Instructions","default":""},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["title"],"title":"RequestBody"},"RequestIn":{"properties":{"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name","default":""},"note":{"type":"string","title":"Note","default":""},"lang":{"type":"string","title":"Lang","default":"en"}},"type":"object","required":["email"],"title":"RequestIn"},"Requeue":{"properties":{"run":{"type":"string","title":"Run"},"issues":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Issues"}},"type":"object","required":["run"],"title":"Requeue"},"ResearchAdditions":{"properties":{"surnames":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Surnames"},"place_ids":{"items":{"type":"string"},"type":"array","maxItems":40,"title":"Place Ids"}},"type":"object","title":"ResearchAdditions"},"Resolve":{"properties":{"resolved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resolved"},"expected_version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Expected Version"},"resolution_note":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Resolution Note"},"kind":{"anyOf":[{"type":"string","enum":["general","uncertain"]},{"type":"null"}],"title":"Kind"},"quoted_text":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Quoted Text"},"body":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Body"},"mentions":{"anyOf":[{"items":{"$ref":"#/components/schemas/Mention"},"type":"array","maxItems":100},{"type":"null"}],"title":"Mentions"}},"type":"object","title":"Resolve"},"Review":{"properties":{"revision":{"type":"integer","exclusiveMinimum":0.0,"title":"Revision"},"decision":{"type":"string","enum":["approved","rejected"],"title":"Decision"},"note":{"type":"string","maxLength":4000,"title":"Note","default":""}},"type":"object","required":["revision","decision"],"title":"Review"},"ReviewBody":{"properties":{"label":{"type":"string","enum":["likely_match","different_person","relative","uncertain","duplicate"],"title":"Label"},"reason":{"type":"string","maxLength":1000,"title":"Reason","default":""},"reason_codes":{"items":{"type":"string","enum":["source_checked","family_agrees","missing_evidence","different_parents","event_mismatch","date_conflict","place_conflict","possible_relative","copied_tree","duplicate_evidence"]},"type":"array","maxItems":10,"title":"Reason Codes"}},"type":"object","required":["label"],"title":"ReviewBody"},"ReviewInput":{"properties":{"rowId":{"type":"string","maxLength":160,"minLength":1,"title":"Rowid"},"decision":{"type":"string","enum":["edited","kept","accepted","unclear","unreviewed"],"title":"Decision"},"reading":{"type":"string","maxLength":2000,"title":"Reading","default":""},"expectedRevision":{"type":"integer","minimum":0.0,"title":"Expectedrevision"}},"type":"object","required":["rowId","decision","expectedRevision"],"title":"ReviewInput"},"Revision":{"properties":{"revision":{"type":"integer","exclusiveMinimum":0.0,"title":"Revision"}},"type":"object","required":["revision"],"title":"Revision"},"SendIn":{"properties":{"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Content Sha256"},"audience_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Audience Sha256"},"payload_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Payload Sha256"},"confirm":{"type":"string","pattern":"^SEND$","title":"Confirm"}},"additionalProperties":false,"type":"object","required":["content_sha256","audience_sha256","payload_sha256","confirm"],"title":"SendIn"},"ShareClick":{"properties":{"platform":{"type":"string","enum":["facebook","whatsapp","twitter","copy"],"title":"Platform"},"path":{"type":"string","maxLength":512,"title":"Path"}},"type":"object","required":["platform","path"],"title":"ShareClick"},"Source":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"size":{"type":"integer","maximum":524288000.0,"exclusiveMinimum":0.0,"title":"Size"}},"additionalProperties":false,"type":"object","required":["filename","size"],"title":"Source"},"Start":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","maxItems":50,"minItems":2,"title":"Sources"},"name":{"type":"string","maxLength":200,"title":"Name","default":""},"email":{"type":"string","maxLength":254,"title":"Email","default":""},"message":{"type":"string","maxLength":2000,"title":"Message","default":""}},"additionalProperties":false,"type":"object","required":["id","sources"],"title":"Start"},"StartIn":{"properties":{"name":{"type":"string","title":"Name","default":""},"email":{"type":"string","title":"Email","default":""},"description":{"type":"string","title":"Description","default":""},"attribution":{"type":"string","title":"Attribution","default":"public"},"attribution_name":{"type":"string","title":"Attribution Name","default":""},"rights_ok":{"type":"boolean","title":"Rights Ok","default":false},"lang":{"type":"string","title":"Lang","default":"en"},"files":{"items":{"$ref":"#/components/schemas/FileIn"},"type":"array","title":"Files","default":[]},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"}},"type":"object","title":"StartIn"},"StatusPatch":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"StatusPatch"},"SubmissionIn":{"properties":{"record_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Record Id"},"kind":{"type":"string","pattern":"^(correction|addition|question)$","title":"Kind","default":"correction"},"message":{"type":"string","maxLength":4000,"minLength":3,"title":"Message"}},"type":"object","required":["message"],"title":"SubmissionIn"},"SubmissionPatch":{"properties":{"status":{"type":"string","pattern":"^(open|reviewed|resolved)$","title":"Status"},"admin_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Note"}},"type":"object","required":["status"],"title":"SubmissionPatch"},"SubscribeIn":{"properties":{"email":{"type":"string","title":"Email"},"lang":{"type":"string","title":"Lang","default":"en"},"topic":{"type":"string","title":"Topic","default":"news"}},"type":"object","required":["email"],"title":"SubscribeIn"},"SupporterBadgeIn":{"properties":{"visible":{"type":"boolean","title":"Visible"}},"type":"object","required":["visible"],"title":"SupporterBadgeIn"},"TagBody":{"properties":{"tree_id":{"type":"integer","title":"Tree Id"},"person_id":{"type":"string","title":"Person Id"}},"type":"object","required":["tree_id","person_id"],"title":"TagBody"},"TaskAction":{"properties":{"action":{"type":"string","enum":["claim","release","complete","reopen"],"title":"Action"},"expected_updated_at":{"type":"string","format":"date-time","title":"Expected Updated At"}},"type":"object","required":["action","expected_updated_at"],"title":"TaskAction"},"TaskBody":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":10000,"title":"Body","default":""},"assignee_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assignee Id"},"document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Id"}},"type":"object","required":["title"],"title":"TaskBody"},"TaskEdit":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":10000,"title":"Body","default":""},"assignee_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assignee Id"},"document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Document Id"},"expected_updated_at":{"type":"string","format":"date-time","title":"Expected Updated At"}},"type":"object","required":["title","expected_updated_at"],"title":"TaskEdit"},"ThrottleIn":{"properties":{"per_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Hour"},"paused":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Paused"}},"type":"object","title":"ThrottleIn"},"ToTreeBody":{"properties":{"tree_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tree Id"},"new_tree_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Tree Title"},"person_ids":{"items":{"type":"integer"},"type":"array","title":"Person Ids","default":[]},"relationship_ids":{"items":{"type":"integer"},"type":"array","title":"Relationship Ids","default":[]},"merges":{"additionalProperties":{"type":"integer"},"type":"object","title":"Merges","default":{}},"links":{"additionalProperties":{"type":"string"},"type":"object","title":"Links","default":{}}},"type":"object","title":"ToTreeBody"},"TranscribeSettingsPatch":{"properties":{"cleanup_model":{"type":"string","maxLength":120,"minLength":1,"title":"Cleanup Model"},"extract_model":{"type":"string","maxLength":120,"minLength":1,"title":"Extract Model"},"cleanup_prompt":{"type":"string","maxLength":20000,"minLength":100,"title":"Cleanup Prompt"}},"type":"object","required":["cleanup_model","extract_model","cleanup_prompt"],"title":"TranscribeSettingsPatch"},"TranslateRequest":{"properties":{"target":{"type":"string","enum":["en","es"],"title":"Target"},"pages":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Pages"}},"type":"object","required":["target"],"title":"TranslateRequest"},"TreeCitationBody":{"properties":{"fact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fact"},"record_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Record Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url"},"file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Name"}},"type":"object","title":"TreeCitationBody"},"TreeCreate":{"properties":{"title":{"type":"string","title":"Title","default":"My family tree"},"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility"}},"type":"object","title":"TreeCreate"},"TreeImport":{"properties":{"title":{"type":"string","title":"Title","default":"Imported tree"},"data":{"items":{},"type":"array","title":"Data","default":[]},"gedcom_raw":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gedcom Raw"}},"type":"object","title":"TreeImport"},"TreeSave":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"data":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Data"},"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","title":"TreeSave"},"TrialBody":{"properties":{"tree_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Tree Id"},"use_ai":{"type":"boolean","title":"Use Ai","default":false}},"type":"object","required":["tree_id"],"title":"TrialBody"},"UploadIntent":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","maximum":524288000.0,"exclusiveMinimum":0.0,"title":"Size Bytes"},"folder_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["filename","mime_type","size_bytes"],"title":"UploadIntent"},"UserCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","default":true},"is_superuser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser","default":false},"is_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Verified","default":false},"display_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Display Name"},"lang":{"type":"string","title":"Lang","default":"en"},"accept_terms":{"type":"boolean","title":"Accept Terms","default":false}},"type":"object","required":["email","password"],"title":"UserCreate"},"UserRead":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"is_verified":{"type":"boolean","title":"Is Verified","default":false},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"lang":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lang"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"research_profile":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Research Profile"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"oauth_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Provider"},"terms_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terms Accepted At"},"consent_pending":{"type":"boolean","title":"Consent Pending","default":false},"diario_reader":{"type":"boolean","title":"Diario Reader","default":false}},"type":"object","required":["id","email"],"title":"UserRead"},"UserUpdate":{"properties":{"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_superuser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superuser"},"is_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Verified"},"display_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Display Name"},"bio":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Bio"},"lang":{"anyOf":[{"type":"string","enum":["en","es"]},{"type":"null"}],"title":"Lang"},"research_profile":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Research Profile"}},"type":"object","title":"UserUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyBody":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"VerifyBody"},"WatchIn":{"properties":{"page_key":{"type":"string","maxLength":300,"minLength":1,"title":"Page Key"},"watching":{"type":"boolean","title":"Watching"},"dataset_id":{"anyOf":[{"type":"integer","maximum":32767.0,"minimum":1.0},{"type":"null"}],"title":"Dataset Id"}},"type":"object","required":["page_key","watching"],"title":"WatchIn"},"app__extract__PersonPatch":{"properties":{"given_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given Name"},"surname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surname"},"surname2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surname2"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"birth_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Birth Date"},"birth_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Birth Place"},"death_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Death Date"},"death_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Death Place"},"occupation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occupation"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"PersonPatch","description":"Any extracted field the user wants to correct before importing."},"app__record_edit__PersonPatch":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"name_as_recorded":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name As Recorded"},"age_as_recorded":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age As Recorded"},"given_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Given Name"},"paternal_surname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paternal Surname"},"maternal_surname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maternal Surname"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex"},"birth_year":{"anyOf":[{"type":"integer","maximum":2999.0,"minimum":1.0},{"type":"null"}],"title":"Birth Year"},"birth_certainty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Birth Certainty"},"death_year":{"anyOf":[{"type":"integer","maximum":2999.0,"minimum":1.0},{"type":"null"}],"title":"Death Year"},"death_certainty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Death Certainty"}},"type":"object","title":"PersonPatch","description":"Only the fields present in the body are changed.\n\n`full_name` is a generated column: the three name parts are the input, and\nthe database composes the name from them."}},"securitySchemes":{"APIKeyCookie":{"type":"apiKey","in":"cookie","name":"crpsession"},"MailerCredential":{"type":"http","scheme":"bearer"}}},"tags":[{"name":"meta","description":"Service index, health, and the shape of the archive."},{"name":"search","description":"Public search over every indexed person, and the records behind the hits."},{"name":"auth","description":"Registration and sign-in."},{"name":"trees","description":"Family trees (members)."},{"name":"transcribe","description":"Document transcription (members)."}]}