{"openapi":"3.1.0","info":{"title":"GrantsMaster","version":"0.1.0"},"paths":{"/":{"get":{"tags":["public"],"summary":"Landing","description":"The front door, and the only page here whose job is to argue rather than list.\n\nIt sends people to the two things the free tier does well - the directory and the\neligibility filter - and to nothing else. There is no signup wall: the founding\ncomplaint is a directory that published guesses as facts, and a landing page that\nwithheld the working directory behind an account would be a worse version of that.\n\nServer-rendered like everything on this tree, and it carries no script at all: the\nargument, the numbers and both calls to action must survive with JavaScript off.\n\nIt renders real grant cards, so it needs the programs and an empty filter profile\nfor the hero search. Every count below is derived from the corpus in this request -\nnothing on the page is a number somebody typed. The preview leads with what is open,\nbecause an open cycle is the thing a visitor can act on today.","operationId":"landing__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/directory":{"get":{"tags":["public"],"summary":"Directory","operationId":"directory_directory_get","parameters":[{"name":"age","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"student","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student"}},{"name":"solo","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"yes","title":"Solo"}},{"name":"domains","in":"query","required":false,"schema":{"type":"string","default":"","title":"Domains"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"deadline","title":"Sort"}},{"name":"education","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education"}},{"name":"experience","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience"}},{"name":"gender","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/eligibility":{"get":{"tags":["public"],"summary":"Eligibility","operationId":"eligibility_eligibility_get","parameters":[{"name":"age","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"student","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Student"}},{"name":"solo","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"yes","title":"Solo"}},{"name":"domains","in":"query","required":false,"schema":{"type":"string","default":"","title":"Domains"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"deadline","title":"Sort"}},{"name":"education","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education"}},{"name":"experience","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience"}},{"name":"gender","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/programs/{slug}":{"get":{"tags":["public"],"summary":"Program Detail","operationId":"program_detail_programs__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/news":{"get":{"tags":["public"],"summary":"News","operationId":"news_news_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/news/{slug}":{"get":{"tags":["public"],"summary":"Post Detail","operationId":"post_detail_news__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/news.xml":{"get":{"tags":["public"],"summary":"News Feed","operationId":"news_feed_news_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy":{"get":{"tags":["public"],"summary":"Privacy","operationId":"privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/terms":{"get":{"tags":["public"],"summary":"Terms","operationId":"terms_terms_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/robots.txt":{"get":{"tags":["public"],"summary":"Robots","description":"The directory is meant to be indexed - that is the acquisition strategy.\n\nThe workspace and admin trees are not, and neither is the eligibility endpoint,\nwhose query string carries an applicant's age, country and student status.","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/sitemap.xml":{"get":{"tags":["public"],"summary":"Sitemap","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ux/events":{"post":{"tags":["usage"],"summary":"Client Events","operationId":"client_events_ux_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientBatch"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/help":{"get":{"tags":["usage"],"summary":"Help Form","operationId":"help_form_help_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["usage"],"summary":"Send Help","operationId":"send_help_help_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_send_help_help_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"tags":["public"],"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Healthz Healthz Get"}}}}}}},"/auth/request":{"post":{"tags":["auth","auth"],"summary":"Request Link","description":"Request a magic link.\n\nAlways reports success, whether or not the address is known. Anything else turns\nthis endpoint into an account-existence oracle.","operationId":"request_link_auth_request_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_request_link_auth_request_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequested"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/callback":{"get":{"tags":["auth","auth"],"summary":"Callback","operationId":"callback_auth_callback_get","parameters":[{"name":"token","in":"query","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"}}}}}}},"/auth/logout":{"post":{"tags":["auth","auth"],"summary":"Logout","operationId":"logout_auth_logout_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Logout Auth Logout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google/start":{"get":{"tags":["auth","auth"],"summary":"Google Start","operationId":"google_start_auth_google_start_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/google/callback":{"get":{"tags":["auth","auth"],"summary":"Google Callback","operationId":"google_callback_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"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"}},{"name":"gm_oauth","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Oauth"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/signin":{"get":{"tags":["auth","auth"],"summary":"Signin Page","description":"The sign-in page: Google when it is configured, email code always.","operationId":"signin_page_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/email/request":{"post":{"tags":["auth","auth"],"summary":"Email Code Request","description":"Ask for a 6-digit code.\n\nThe success page is identical whatever the address is, so this endpoint is\nnever an account-existence oracle. Rate limits are a 429 page; a transport\nthat cannot send is a 503 page.","operationId":"email_code_request_auth_email_request_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_email_code_request_auth_email_request_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/email/verify":{"post":{"tags":["auth","auth"],"summary":"Email Code Verify","description":"Exchange a correct code for the same ``gm_session`` cookie Google grants.","operationId":"email_code_verify_auth_email_verify_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_email_code_verify_auth_email_verify_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/":{"get":{"tags":["workspace"],"summary":"Dashboard","description":"Everything open, with what each one is actually waiting on.","operationId":"dashboard_app__get","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app":{"get":{"tags":["workspace"],"summary":"Dashboard","description":"Everything open, with what each one is actually waiting on.","operationId":"dashboard_app_get","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications/{application_id}":{"get":{"tags":["workspace"],"summary":"Application Detail","description":"Every field of one form, its real limit, and what is in it.\n\nThe whole point of the page: the funder's exact wording beside the answer, so an\napplicant is never writing against a remembered version of the question.","operationId":"application_detail_app_applications__application_id__get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"drafted","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Drafted"}},{"name":"drafted_count","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Drafted Count"}},{"name":"failed","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Failed"}},{"name":"done","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Done"}},{"name":"promoted","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promoted"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"note","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},{"name":"answered","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Answered"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications/{application_id}/answers":{"post":{"tags":["workspace"],"summary":"Answer Questions","description":"Store what the applicant gave for this form's missing questions, then fill from them.\n\nOnly keys this form still asks for are read; any other posted field is ignored, so a\ncrafted post cannot store a fact the form did not ask for. Blank answers are not stored,\nand a boolean question accepts only ``yes`` or ``no``, the two options the page offers.","operationId":"answer_questions_app_applications__application_id__answers_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications/{application_id}/copy":{"get":{"tags":["workspace"],"summary":"Application Copy","description":"Every field in order, with its saved text, for listening to and pasting out.\n\nPlain HTML first: it reads and copies with JavaScript off. Tenant scoping and 404\ncome from the same helpers as the application page.","operationId":"application_copy_app_applications__application_id__copy_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications/{application_id}/fields/{field_ordinal}":{"post":{"tags":["workspace"],"summary":"Save Field","description":"Write one field.\n\n``confirm`` is what turns generated text into an answer, and it is a separate control\non purpose. Saving an edit and saying \"I have read this\" are different claims, and\ncollapsing them would let a person clear the submit gate by tabbing past a box.","operationId":"save_field_app_applications__application_id__fields__field_ordinal__post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"field_ordinal","in":"path","required":true,"schema":{"type":"integer","title":"Field Ordinal"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_save_field_app_applications__application_id__fields__field_ordinal__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications/{application_id}/fields/{field_ordinal}/draft":{"post":{"tags":["workspace"],"summary":"Draft One","description":"Generate one field, grounded, and store it as unread.\n\nLands as ``placeholder`` / ``generated`` like every other path into this state, so the\npage shows it as unconfirmed and the submit gate keeps holding. ``sensitive`` is\noff by default and per field (D45): composing \"financial need\" means sending somebody's\nhousehold income to a third-party API, and that is a decision per answer rather than\na setting.\n\nTakes the whole ``Tenant`` rather than its id because ``build_runner`` needs to know\nwhether this caller may use the operator's own subscription.","operationId":"draft_one_app_applications__application_id__fields__field_ordinal__draft_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"field_ordinal","in":"path","required":true,"schema":{"type":"integer","title":"Field Ordinal"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_draft_one_app_applications__application_id__fields__field_ordinal__draft_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/opportunities":{"get":{"tags":["workspace"],"summary":"Opportunities","description":"One page: what you can win, how much of each you can already answer, when it opens.\n\nLive programs sort by **what you can already answer**, highest first. The cheapest\nreal application to finish is the one to start, and that ordering is the entire payoff\nof holding answers once instead of retyping them into six boxes.\n\nThe percentage is readiness, never eligibility - see `services.matching`.","operationId":"opportunities_app_opportunities_get","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/profile":{"get":{"tags":["workspace"],"summary":"Profile","description":"What we hold, and what the programs you are applying to still need.\n\n**The question set comes from your open applications, not from an eligible set.**\nEligibility is computed from age, country and student status - which are themselves\ndata points - so generating the questionnaire from it would ask you to answer\nquestions in order to find out which questions to answer. Applying to something is an\nunambiguous statement that you want it, and it needs no bootstrapping.\n\nOrdering is coverage-weighted (the service's, not this page's): the question that\nunlocks the most of *your* programs first, sensitive ones last within a tier. Someone\nwho stops halfway is then able to apply somewhere, rather than being two-thirds\nthrough everything and finished with nothing.","operationId":"profile_app_profile_get","parameters":[{"name":"saved","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Saved"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"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":["workspace"],"summary":"Save Profile Answer","description":"Answer one held fact, or decline it.\n\n``refuse`` is a first-class outcome and not a skip. A refusal *counts as coverage* -\nthe applicant has decided, and the platform must never ask again (D33). That is why\nit is a button here rather than an empty box: leaving a field blank means \"not yet\",\nand the difference is one the product is required to respect.","operationId":"save_profile_answer_app_profile_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_save_profile_answer_app_profile_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/start":{"get":{"tags":["workspace"],"summary":"Start Form","description":"Every question is optional; held answers come back filled in.\n\nA held country code is shown back as its name. The country inputs are suggestion\nlists, not constraints: what is typed is still stored as typed and resolved downstream.","operationId":"start_form_app_start_get","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"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":["workspace"],"summary":"Save Start","description":"Store each answer given. A blank field is left alone, not cleared.\n\nOnly the start keys are read from the form, so nothing else can be written here.\nA country picked by name (or typed as a code in any case) is stored as its ISO alpha-2\ncode, because matching reads codes. An unreadable country, and every other answer, is\nstored as typed: the matching layer reports it as unresolved rather than this page\nguessing what was meant.","operationId":"save_start_app_start_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/start/results":{"get":{"tags":["workspace"],"summary":"Start Results","description":"How many programs are open to you now, the first ten to act on, and the near misses.","operationId":"start_results_app_start_results_get","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/account/export":{"post":{"tags":["workspace"],"summary":"Email My Data","description":"Email a link to this account's data - at most once every 30 days.\n\nThe copy is not handed back here: it goes to the address on the account, as a link\nthat works for a week while signed in. A second request inside the month is a 429\nthat names the day it may be asked again.","operationId":"email_my_data_app_account_export_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/account/export/{token}":{"get":{"tags":["workspace"],"summary":"Download My Export","description":"The emailed copy: this account's own data, for an unexpired link it was sent.\n\nAnother account's link, an unknown or expired one, are all the same 404.","operationId":"download_my_export_app_account_export__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/account/delete":{"post":{"tags":["workspace"],"summary":"Delete My Account","description":"Delete the account, gated on typing its email back.\n\nThe mismatch case is a page, not an exception: the person typed something, it just\nwas not the email of this account, and nothing has been changed. On a match the\ndeletion happens before the redirect, and the session cookie is cleared with the\nsame name and path sign-in set, so the browser does not carry a session the\ndatabase no longer knows.","operationId":"delete_my_account_app_account_delete_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_delete_my_account_app_account_delete_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications/{application_id}/draft-all":{"post":{"tags":["workspace"],"summary":"Draft All","description":"Draft every field that can be drafted, in one action.\n\nLinked fields (``draftable()``) are drafted from the applicant's held facts. Unanswered\none-off fields linked to no data point are attempted too, after them, through the\nquestion path in ``draft_field``: it composes from the funder's own question and\nrefuses when nothing held fits (D44 still holds - nothing is invented). Such a refusal\nis a field left for the applicant to fill in, not a failure.\n\nFailures are counted, not swallowed: the redirect reports how many were written and\nhow many could not be, so a batch that half-worked never reads as a batch that worked.\nEach field is a separate model call, so a later failure never rolls back an earlier\nsuccess - the applicant keeps what was written.","operationId":"draft_all_app_applications__application_id__draft_all_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_draft_all_app_applications__application_id__draft_all_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications/{application_id}/next":{"get":{"tags":["workspace"],"summary":"Next Field","description":"Jump to the next thing standing between this application and being sendable.\n\n\"Lead me through them one at a time\" without a wizard: the page already shows every\nfield, and this puts the cursor on the one that matters. A wizard would hide the rest,\nand an applicant who cannot see the whole form cannot tell whether an answer they are\nwriting belongs in this box or the next one.","operationId":"next_field_app_applications__application_id__next_get","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications/{application_id}/promote":{"post":{"tags":["workspace"],"summary":"Promote Answer","description":"Keep this answer as a fact about you, for every form after this one.\n\nA button rather than an automatic write, because promoting over a held value that\ndiffers is a judgement: the applicant may have worded it for one funder on purpose.\n`promotable()` reports the conflict; only this applies it.","operationId":"promote_answer_app_applications__application_id__promote_post","parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Application Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_promote_answer_app_applications__application_id__promote_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/changes":{"get":{"tags":["workspace"],"summary":"Changes","description":"Where an application says something you no longer say.\n\nSent applications especially. A live one can be re-drafted; a submitted one cannot be\nchanged at all, and its applicant is the one who might be asked about it out loud.","operationId":"changes_app_changes_get","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/documents":{"get":{"tags":["workspace"],"summary":"Documents Page","description":"Paste what you have already written, and let it fill the profile.\n\nThe fastest way to fill a profile is not a questionnaire - it is the CV the applicant\nwrote last year. Everything read out of it lands as a **proposal** with the span it\ncame from, and nothing becomes a fact until they say so.","operationId":"documents_page_app_documents_get","parameters":[{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"read","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"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":["workspace"],"summary":"Add Document Route","description":"Keep a document. An uploaded file wins over pasted text; its name is the blank title.","operationId":"add_document_route_app_documents_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_document_route_app_documents_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/documents/{document_id}/read":{"post":{"tags":["workspace"],"summary":"Read Document Route","description":"Read it on the **cheap** tier. Pulling structured fields out of text somebody else\nalready wrote is mechanical work, which is exactly what spec §16 routes away from the\nfrontier model.","operationId":"read_document_route_app_documents__document_id__read_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/documents/findings/{finding_id}":{"post":{"tags":["workspace"],"summary":"Decide Finding","operationId":"decide_finding_app_documents_findings__finding_id__post","parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_decide_finding_app_documents_findings__finding_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/applications":{"post":{"tags":["workspace"],"summary":"Start Application","operationId":"start_application_app_applications_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_start_application_app_applications_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/billing":{"get":{"tags":["billing"],"summary":"Billing Page","description":"Your plan, the owner's prices, and the one way to change it.","operationId":"billing_page_app_billing_get","parameters":[{"name":"country","in":"query","required":false,"schema":{"type":"string","default":"","title":"Country"}},{"name":"retry","in":"query","required":false,"schema":{"type":"string","default":"","title":"Retry"}},{"name":"method","in":"query","required":false,"schema":{"type":"string","default":"","title":"Method"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/billing/checkout":{"post":{"tags":["billing"],"summary":"Billing Checkout","description":"Record a pending payment, then hand the buyer to Stripe Checkout.\n\nThe adapter is built **first**: a configuration failure must stop here, with no\npayment row written and no key text shown. Validation precedes it, so a bad form\nnever produces a pending row either.","operationId":"billing_checkout_app_billing_checkout_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_billing_checkout_app_billing_checkout_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/billing/momo":{"post":{"tags":["billing"],"summary":"Billing Momo","description":"Start a mobile-money payment in local currency, then send the buyer to the return page.\n\nRefusals come before any row is written: a bad period, a country we cannot price, a phone\npawaPay cannot match, or our own missing token. The deposit's answer is recorded through the\nledger; anything still unanswered stays pending for the worker's poll to settle.","operationId":"billing_momo_app_billing_momo_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_billing_momo_app_billing_momo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/billing/local":{"post":{"tags":["billing"],"summary":"Billing Local","description":"Start a Flutterwave hosted checkout (Nigeria NGN, Kenya KES), then send the buyer there.\n\nRefusals come before any row is written: a bad period, a country without a local price, or\nour own missing key. If Flutterwave cannot start the checkout, the row is recorded as failed\n(nothing was charged) and the buyer sees the unavailable page.","operationId":"billing_local_app_billing_local_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_billing_local_app_billing_local_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/billing/hub":{"post":{"tags":["billing"],"summary":"Billing Hub","description":"Start a prepaid Workspace payment through the hub, never around it.\n\nRefusals are decided before any row or client call; a configuration failure is our\n503, never a buyer-facing error. The phone number is only ever passed to the hub and\nnever written into a row, a log, or the usage trail.","operationId":"billing_hub_app_billing_hub_post","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_billing_hub_app_billing_hub_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/billing/return":{"get":{"tags":["billing"],"summary":"Billing Return","description":"Back from Stripe: re-check the session, then credit at most once.\n\nThe redirect carries only pointers. Whatever it says, the answer is Stripe's\n``fetch_result`` re-check, and what the ledger does with it - so a repeat visit,\na refresh, or an attacker-edited URL changes nothing.","operationId":"billing_return_app_billing_return_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}},{"name":"session","in":"query","required":false,"schema":{"type":"string","default":"","title":"Session"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/webhook/stripe":{"post":{"tags":["billing"],"summary":"Stripe Webhook","description":"Stripe's own word about a checkout, after verifying the signature it came with.\n\nAn unverified body never touches a plan. Verified, the checkout event is still only\na pointer: the payment is matched to a tenant's ledger row, then re-checked against\nStripe with the same ``fetch_result`` the return page uses, and the ledger credits\nonce. Anything that is not one of ours answers ``{\"matched\": false}`` - a 200,\nbecause Stripe reads bodies as failures and would redeliver forever.","operationId":"stripe_webhook_billing_webhook_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing/hub-events":{"post":{"tags":["billing"],"summary":"Hub Events","description":"The hub's own word about a payment, verified before it touches the ledger.\n\nThe raw body is read before any JSON parsing so the signature covers exactly the\nbytes the hub sent. Anything that is not one of ours answers ``{\"matched\": false}``\nwith a 200 (the hub reads bodies as failures and would redeliver forever). A match\nis answered only after the ledger transaction has committed; an exception here is a\n5xx, so the hub retries. Dedupe is by payment, never by event id.","operationId":"hub_events_billing_hub_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/spend":{"get":{"tags":["admin"],"summary":"Spend","description":"Model spend grouped by task and tier.\n\nGrouped this way because that is the shape of the decision it informs: the routing\npolicy is per task, so a task on the frontier tier that could sit on the cheap one\nis visible immediately rather than buried in a monthly total.","operationId":"spend_admin_spend_get","parameters":[{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants/{tenant_id}/plan":{"post":{"tags":["admin"],"summary":"Set Plan","description":"Move a tenant onto a plan by hand.\n\nNot a stopgap for the undecided processor alone: comped accounts, the seed\ncampaign's own tenant, and anyone paying by a rail the processor does not reach all\nneed this permanently.","operationId":"set_plan_admin_tenants__tenant_id__plan_post","parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tenant Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Set Plan Admin Tenants  Tenant Id  Plan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/automatic-updates":{"get":{"tags":["admin"],"summary":"Automatic Updates","description":"The operator's view of every automatic update, fresh from the read-only reader.\n\nA `?status=` confirmation from a redirect is rendered as plain text if it is a\nstrict known outcome and otherwise ignored - a query string never invents a result.\nRows claim nothing beyond the current state: only a still-current update gets a\nlive undo button, and each token is bound to this operator and this very session.","operationId":"automatic_updates_admin_automatic_updates_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/source-approvals":{"get":{"tags":["admin"],"summary":"Source Approvals","operationId":"source_approvals_admin_source_approvals_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/source-approvals/{program_slug}":{"get":{"tags":["admin"],"summary":"Source Approval Detail","operationId":"source_approval_detail_admin_source_approvals__program_slug__get","parameters":[{"name":"program_slug","in":"path","required":true,"schema":{"type":"string","title":"Program Slug"}},{"name":"source_url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/source-approvals/{program_slug}/confirm":{"post":{"tags":["admin"],"summary":"Confirm Source Approval","operationId":"confirm_source_approval_admin_source_approvals__program_slug__confirm_post","parameters":[{"name":"program_slug","in":"path","required":true,"schema":{"type":"string","title":"Program Slug"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_confirm_source_approval_admin_source_approvals__program_slug__confirm_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/source-approvals/{program_slug}/{vouch_id}/revoke":{"post":{"tags":["admin"],"summary":"Revoke Source Approval","operationId":"revoke_source_approval_admin_source_approvals__program_slug___vouch_id__revoke_post","parameters":[{"name":"program_slug","in":"path","required":true,"schema":{"type":"string","title":"Program Slug"}},{"name":"vouch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vouch Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_revoke_source_approval_admin_source_approvals__program_slug___vouch_id__revoke_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/automatic-updates/{proposal_id}/undo":{"post":{"tags":["admin"],"summary":"Undo Automatic Update","description":"Undone one automatic update exactly once, on the operator's explicit request.","operationId":"undo_automatic_update_admin_automatic_updates__proposal_id__undo_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}},{"name":"gm_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gm Session"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_undo_automatic_update_admin_automatic_updates__proposal_id__undo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/control":{"get":{"tags":["extension"],"summary":"Get Control","description":"The kill switch. Unauthenticated, and it must stay that way.\n\nEvery installed copy asks before it acts. A copy that cannot reach this, or cannot\nparse the answer, does nothing at all - which is what makes the switch effective\nagainst a version we shipped and can no longer change.","operationId":"get_control_api_ext_control_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Control Api Ext Control Get"}}}}}}},"/api/ext/hello":{"get":{"tags":["extension"],"summary":"Hello","description":"Identity check for the popup. Deliberately says nothing about the applicant.\n\nNo name, no answers, no program list - only that the token works and what it may\ndo. The popup renders on a funder's tab and does not need any of that.","operationId":"hello_api_ext_hello_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hello Api Ext Hello Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/site":{"get":{"tags":["extension"],"summary":"Site","description":"Which program a page belongs to, if any.\n\nReturns 200 with ``program_slug: null`` for an unknown host rather than a 404. Not\nrecognising a page is a normal outcome on most of the web, and an error status\nwould push the client into a failure path for the common case.","operationId":"site_api_ext_site_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","maxLength":2000,"title":"Url"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Site Api Ext Site Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/plan":{"post":{"tags":["extension"],"summary":"Plan","description":"The fill plan: one decision per detected field, computed here.\n\nA ``prohibited`` funder yields no values at all, so a client bug cannot fill a form\nthe funder forbade filling. A ``disclosure_required`` funder yields nothing until\n``acknowledged_disclosure`` arrives with the request.","operationId":"plan_api_ext_plan_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Plan Api Ext Plan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/placeholders":{"get":{"tags":["extension"],"summary":"Held Placeholders","description":"Data points holding unconfirmed text, across every form.\n\nThe popup shows these as an errand list. Distinct from a plan's ``submit_lock.refs``,\nwhich is only the placeholders that landed on the page in front of you.","operationId":"held_placeholders_api_ext_placeholders_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Held Placeholders Api Ext Placeholders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/harvest":{"post":{"tags":["extension"],"summary":"Harvest","description":"File captured field metadata for review. Never the applicant's answers.\n\n202, not 201: this is queued for a human, not applied. The applicant's browser has\nreported what a page asks; whether that becomes a captured schema is an operator's\ncall (D17).","operationId":"harvest_api_ext_harvest_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HarvestIn"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Harvest Api Ext Harvest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/draft-field":{"post":{"tags":["extension"],"summary":"Draft Field Endpoint","description":"Draft one answer for a live form field, grounded in the applicant's own held data.\n\nThis is the fallback the operator asked for when auto-fill has nothing to offer - a field\nthe matcher deliberately left alone (D35), or a free-text question that needs *composing*\nrather than *matching*. It reuses the workspace draft engine wholesale, so every rule that\nprotects a generated answer still holds:\n\n- **It never invents.** ``draft_field`` composes only from held facts and refuses, naming\n  what is missing, when it cannot (D44). A refusal here is a first-class result, not an\n  error - it tells the applicant which profile answer to fill.\n- **It never truncates over a limit** (D36), and it uses the applicant's own frontier\n  runner (their subscription, D66), because this is their answer under their name.\n- **Nothing is auto-applied.** The draft is returned for the applicant to read and paste,\n  and stored as an unconfirmed ``placeholder`` exactly like every other draft path (D33).\n- **Only the facts this question needs travel** (D94). Contact details and links are never\n  composed from at all, and the rest is ranked against the question and capped. What was\n  held back comes back in ``not_sent``, so minimisation is checkable rather than claimed.\n\nThe question is the funder's own wording rather than a captured-schema match: a live label\nrarely resembles our hand-summarised capture, so composing from the question is sturdier\nthan matching to a field (D92).","operationId":"draft_field_endpoint_api_ext_draft_field_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftFieldIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Draft Field Endpoint Api Ext Draft Field Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/research":{"post":{"tags":["extension"],"summary":"Research","description":"Score a page's links, and optionally extract its facts, for a human-led session.\n\nThe operator navigates; the server decides. Scoring, dedupe and the confidence\nceiling all live here rather than in the client, because the extension holds no\npolicy (D34) and a rule shipped inside a browser is one nobody can update.\n\n**Authority caps confidence, it never sets it.** A click establishes that a page\nbelongs to the funder; it establishes nothing about whether the extractor read it\ncorrectly. Effective confidence is the weaker of the two.","operationId":"research_api_ext_research_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Research Api Ext Research Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/visit":{"get":{"tags":["extension"],"summary":"Visit","description":"When a page was last researched for a program, and its stored content hash.\n\nThe scan path (`/research`) already reports changed/unchanged because it has the fresh\npage in hand. This is the lighter question the panel asks on *activate* - opening on a\npage without scanning it - to show \"last researched {date}\" without reading the page. It\nreturns the stored hash too, so a caller that does have the current page's hash can\ncompare and decide \"changed\" for itself.\n\nReturns ``visited: false`` for a page never opened (or only ever seen as a link), which\nis the common case across the web and must not be an error status.","operationId":"visit_api_ext_visit_get","parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","maxLength":128,"title":"Slug"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","maxLength":2000,"title":"Url"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Visit Api Ext Visit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/worklist":{"post":{"tags":["extension"],"summary":"Add To Worklist","description":"Add pasted rows to the queue. Re-uploading a list tops it up, never doubles it.","operationId":"add_to_worklist_api_ext_worklist_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorklistIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add To Worklist Api Ext Worklist Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["extension"],"summary":"Read Worklist","operationId":"read_worklist_api_ext_worklist_get","parameters":[{"name":"batch","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Batch"}},{"name":"queue_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Queue Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Worklist Api Ext Worklist Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/worklist/upload":{"post":{"tags":["extension"],"summary":"Upload Worklist File","description":"The same queue, from a CSV or xlsx rather than a paste.","operationId":"upload_worklist_file_api_ext_worklist_upload_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_worklist_file_api_ext_worklist_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Worklist File Api Ext Worklist Upload Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/worklist/export":{"get":{"tags":["extension"],"summary":"Export Worklist","description":"The worklist as a spreadsheet, regenerated from the table on demand.\n\nThe operator's original file was an *input*. This is the report - nothing ever writes\nback into a workbook they may have open.","operationId":"export_worklist_api_ext_worklist_export_get","parameters":[{"name":"batch","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Batch"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/suggestions":{"get":{"tags":["extension"],"summary":"Sitemap Suggestions","description":"New pages a sitemap diff turned up, and what the classifier thinks they are.","operationId":"sitemap_suggestions_api_ext_suggestions_get","parameters":[{"name":"slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sitemap Suggestions Api Ext Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/suggestions/accept":{"post":{"tags":["extension"],"summary":"Accept Suggestion","description":"Approve one. A page is queued; a **schema gap is only ever marked read**.\n\nThere is deliberately no path from here to `schemas/program.py`. A directory whose\nshape a model can widen on its own is a directory nobody can reason about.","operationId":"accept_suggestion_api_ext_suggestions_accept_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Suggestion Api Ext Suggestions Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/suggestions/dismiss":{"post":{"tags":["extension"],"summary":"Dismiss Suggestion","operationId":"dismiss_suggestion_api_ext_suggestions_dismiss_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dismiss Suggestion Api Ext Suggestions Dismiss Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/changed":{"get":{"tags":["extension"],"summary":"Changed Pages","description":"Researched pages whose visible text has moved since (D86).\n\nA hash proves the bytes changed and nothing more, so each row says that and stops.\nWhat changed is not known until the page is read again.","operationId":"changed_pages_api_ext_changed_get","parameters":[{"name":"slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Changed Pages Api Ext Changed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/changed/recheck":{"post":{"tags":["extension"],"summary":"Recheck Changed","description":"\"Review diff → update\": put the changed page back on the worklist to be re-read.\n\nRe-reading rather than diffing is deliberate - the server holds a hash, not the page,\nand storing every funder's text to diff against is a different product. The proposals\nthat come back land against exactly the fields that moved, because `propose()` logs a\nfinding matching the record as `verified_unchanged` rather than queueing it.","operationId":"recheck_changed_api_ext_changed_recheck_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshnessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Recheck Changed Api Ext Changed Recheck Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/changed/dismiss":{"post":{"tags":["extension"],"summary":"Dismiss Changed","description":"It was a cookie banner. Recorded as a judgement somebody made, never deleted.","operationId":"dismiss_changed_api_ext_changed_dismiss_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreshnessIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dismiss Changed Api Ext Changed Dismiss Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/changed/sweep":{"post":{"tags":["extension"],"summary":"Sweep Changed","description":"Re-queue every outstanding changed page at once.\n\nForty changed pages is not forty decisions; it is one.","operationId":"sweep_changed_api_ext_changed_sweep_post","parameters":[{"name":"slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sweep Changed Api Ext Changed Sweep Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run/start":{"post":{"tags":["extension"],"summary":"Start Run","description":"Open a budgeted run over the worklist.","operationId":"start_run_api_ext_run_start_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunStartIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Run Api Ext Run Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run/estimate":{"get":{"tags":["extension"],"summary":"Estimate Run","description":"What a run would cost, before a page is read. Starts nothing, spends nothing.\n\nThe figure that decides which model to pick, next to the picker that decides it. It\nreports its own basis, because a measured average and a bound derived from the\nextractor's character cap are not the same claim.","operationId":"estimate_run_api_ext_run_estimate_get","parameters":[{"name":"batch","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Batch"}},{"name":"runner","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Runner"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Model"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Estimate Run Api Ext Run Estimate Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run/next":{"get":{"tags":["extension"],"summary":"Next In Run","description":"The next page for the browser to open, or the reason there is not one.\n\nA run at its cap pauses **here**, before the spend, which is what makes a cap a cap.","operationId":"next_in_run_api_ext_run_next_get","parameters":[{"name":"run_id","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Next In Run Api Ext Run Next Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run/page":{"post":{"tags":["extension"],"summary":"Run Page","description":"Put one rendered page through the existing extract pipeline.\n\nThe extractor, the guards and the review gate are unchanged - the browser supplies the\nrendering the server cannot do, and nothing else. **Nothing is applied**: findings\nleave through `propose()` exactly as a hand-clicked page's do.","operationId":"run_page_api_ext_run_page_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunPageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Page Api Ext Run Page Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run/pause":{"post":{"tags":["extension"],"summary":"Pause Run","operationId":"pause_run_api_ext_run_pause_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunResumeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Pause Run Api Ext Run Pause Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run/resume":{"post":{"tags":["extension"],"summary":"Resume Run","description":"Continue a paused run, optionally raising the cap that stopped it.","operationId":"resume_run_api_ext_run_resume_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunResumeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resume Run Api Ext Run Resume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run/cancel":{"post":{"tags":["extension"],"summary":"Cancel Run","operationId":"cancel_run_api_ext_run_cancel_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunResumeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Run Api Ext Run Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run/report":{"get":{"tags":["extension"],"summary":"Run Report","description":"What the run did, what it cost, and what is left.\n\nAvailable at any point, not only at the end: a paused run's report is what the operator\nreads to decide whether to raise the cap.","operationId":"run_report_api_ext_run_report_get","parameters":[{"name":"run_id","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Run Report Api Ext Run Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/run":{"get":{"tags":["extension"],"summary":"List Runs","description":"Runs the operator could still act on, so a panel re-opening finds its own run.","operationId":"list_runs_api_ext_run_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Runs Api Ext Run Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/models":{"get":{"tags":["extension"],"summary":"Models","description":"The model picker: the provider's live free models, and the one free runner.\n\n**Every card here is a model this product may actually call**, and every one of them\nis free: the documented zero-retention allowlist, intersected with the provider's own\nlive list so a withdrawn model is reported rather than offered. There is no paid\noption and no subscription option - there is one runner, and it is free.\n\n**The configured default is validated against that list on every call** and reported\nas unavailable if it has gone: a renamed or withdrawn model should surface here, next\nto a working search, rather than as a failure from inside the first extraction of the\nevening.","operationId":"models_api_ext_models_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Models Api Ext Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/rank-links":{"post":{"tags":["extension"],"summary":"Rank Links Endpoint","description":"Model-rank a page's links, one call over the whole list (D83 follow-up).\n\nAn opt-in enrichment over the arithmetic scorer: it asks a cheap model to score every\nlink toward what deep research needs - the funder's own thinking, their programme detail,\ntheir grantees. It **gates nothing** (the operator has a checkbox per link), so a model\nthat misjudges only changes a default, never what may be acted on.","operationId":"rank_links_endpoint_api_ext_rank_links_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RankLinksIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rank Links Endpoint Api Ext Rank Links Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/revise":{"post":{"tags":["extension"],"summary":"Revise Span","description":"Revise the span the applicant highlighted, following the instruction they wrote.\n\n**The narrowest editing operation there is**, and deliberately so: only the highlight\nis replaced, and the surrounding text goes to the model as context it may not return.\nA model handed the whole field and asked to improve it would silently discard edits the\napplicant made outside the selection, and they would notice only by rereading.\n\nThe result comes back **unread**. A revision the applicant asked for is still text they\nhave not read, so the caller re-marks the field and the submit gate closes again (D33).\n\nGated on the same kill switch and the same `fill` scope as `/plan`: this writes into a\nfunder's form, so turning filling off must turn this off too.","operationId":"revise_span_api_ext_revise_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revise Span Api Ext Revise Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/programs":{"post":{"tags":["extension"],"summary":"Capture Program","description":"Capture a funder the directory does not have, from the page the operator is on.\n\n**Operator-only, and checked here rather than trusted from the token.** The `curate`\nscope is only ever issued to the operator's own build, but a scope is a claim made\nwhen the token was minted and this endpoint writes a row the public directory serves\n- so the tenant is re-checked against `is_operator` on every call. A stolen curate\ntoken belonging to a customer must not be able to put a name in front of every\nvisitor.\n\nWrites a **stub**: a slug, a name, a URL, and nothing else. Every other field stays\nabsent, which the schema reads as `unknown` and the directory renders as a visible\n*unknown*. Inventing an amount or a deadline from a landing page is the failure that\nstarted this product.","operationId":"capture_program_api_ext_programs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Capture Program Api Ext Programs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/discover":{"post":{"tags":["extension"],"summary":"Discover Start","description":"Judge a curator's page and propose the funders behind it.\n\n**Proposes and stops.** Nothing here reaches the worklist: a classification is not\nauthority (D34), so every candidate waits for `/discover/accept` and carries the\nevidence that makes accepting a decision rather than a rubber stamp.","operationId":"discover_start_api_ext_discover_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discover Start Api Ext Discover Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/discover/candidates":{"get":{"tags":["extension"],"summary":"Discover Candidates","description":"Everything proposed and not yet decided on, newest run first if none is named.","operationId":"discover_candidates_api_ext_discover_candidates_get","parameters":[{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discover Candidates Api Ext Discover Candidates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/discover/accept":{"post":{"tags":["extension"],"summary":"Discover Accept","description":"The human gate. Accepted funder URLs become worklist rows and nothing else.","operationId":"discover_accept_api_ext_discover_accept_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discover Accept Api Ext Discover Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/discover/reject":{"post":{"tags":["extension"],"summary":"Discover Reject","description":"Recorded, never deleted, so the same round-up does not re-offer it next pass.","operationId":"discover_reject_api_ext_discover_reject_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discover Reject Api Ext Discover Reject Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/ask":{"post":{"tags":["extension"],"summary":"Ask Box","description":"Read this page, think once, and hand back a report plus buttons.\n\n**One model call.** Clicking a chip afterwards calls its endpoint directly, so a\nmisunderstanding costs a re-read rather than a wrong write.\n\nThe tool list is filtered by the token's scopes *before* the model sees it, so it\ncannot offer a button this token could not press. Anything it names outside that list\nis dropped by name rather than surfaced as an error it could work around.","operationId":"ask_box_api_ext_ask_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ask Box Api Ext Ask Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ext/footprint/refresh":{"post":{"tags":["extension"],"summary":"Footprint Refresh","description":"Walk a program's footprint: check the pinned pages, and say what moved.\n\nThe one-click intent the whole footprint was built to make possible. Tier 3 only -\n**no model call** - because a re-read is a separate, costed decision and burying it\ninside a button called \"refresh\" would make spending invisible.","operationId":"footprint_refresh_api_ext_footprint_refresh_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Footprint Refresh Api Ext Footprint Refresh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AskIn":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":1,"title":"Question"},"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title","default":""},"text":{"type":"string","title":"Text","description":"Visible text of the rendered page.","default":""},"program_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Slug","description":"Only when the client already resolved it. The server re-resolves from the URL regardless - a slug from a client is a claim, not an answer."},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Overrides the default. The operator picks (D127)."}},"additionalProperties":false,"type":"object","required":["question","url"],"title":"AskIn","description":"What the operator typed, and the page they typed it on."},"Body_add_document_route_app_documents_post":{"properties":{"title":{"type":"string","title":"Title","default":""},"body":{"type":"string","title":"Body","default":""},"kind":{"type":"string","title":"Kind","default":"other"},"source_url":{"type":"string","title":"Source Url","default":""},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"}},"type":"object","title":"Body_add_document_route_app_documents_post"},"Body_billing_checkout_app_billing_checkout_post":{"properties":{"period":{"type":"string","title":"Period","default":""},"method":{"type":"string","title":"Method","default":""}},"type":"object","title":"Body_billing_checkout_app_billing_checkout_post"},"Body_billing_hub_app_billing_hub_post":{"properties":{"period":{"type":"string","title":"Period","default":""},"method":{"type":"string","title":"Method","default":""},"country":{"type":"string","title":"Country","default":""},"phone":{"type":"string","title":"Phone","default":""}},"type":"object","title":"Body_billing_hub_app_billing_hub_post"},"Body_billing_local_app_billing_local_post":{"properties":{"period":{"type":"string","title":"Period","default":""},"country":{"type":"string","title":"Country","default":""}},"type":"object","title":"Body_billing_local_app_billing_local_post"},"Body_billing_momo_app_billing_momo_post":{"properties":{"period":{"type":"string","title":"Period","default":""},"phone":{"type":"string","title":"Phone","default":""}},"type":"object","title":"Body_billing_momo_app_billing_momo_post"},"Body_confirm_source_approval_admin_source_approvals__program_slug__confirm_post":{"properties":{"source_url":{"type":"string","title":"Source Url","default":""},"reason":{"type":"string","title":"Reason","default":""},"official_confirmation":{"type":"string","title":"Official Confirmation","default":""},"csrf_token":{"type":"string","title":"Csrf Token","default":""}},"type":"object","title":"Body_confirm_source_approval_admin_source_approvals__program_slug__confirm_post"},"Body_decide_finding_app_documents_findings__finding_id__post":{"properties":{"decision":{"type":"string","title":"Decision","default":"accept"}},"type":"object","title":"Body_decide_finding_app_documents_findings__finding_id__post"},"Body_delete_my_account_app_account_delete_post":{"properties":{"confirm":{"type":"string","title":"Confirm","default":""}},"type":"object","title":"Body_delete_my_account_app_account_delete_post"},"Body_draft_all_app_applications__application_id__draft_all_post":{"properties":{"sensitive":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sensitive"}},"type":"object","title":"Body_draft_all_app_applications__application_id__draft_all_post"},"Body_draft_one_app_applications__application_id__fields__field_ordinal__draft_post":{"properties":{"sensitive":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sensitive"}},"type":"object","title":"Body_draft_one_app_applications__application_id__fields__field_ordinal__draft_post"},"Body_email_code_request_auth_email_request_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_email_code_request_auth_email_request_post"},"Body_email_code_verify_auth_email_verify_post":{"properties":{"email":{"type":"string","title":"Email"},"code":{"type":"string","title":"Code"}},"type":"object","required":["email","code"],"title":"Body_email_code_verify_auth_email_verify_post"},"Body_promote_answer_app_applications__application_id__promote_post":{"properties":{"key":{"type":"string","title":"Key","default":""},"value":{"type":"string","title":"Value","default":""}},"type":"object","title":"Body_promote_answer_app_applications__application_id__promote_post"},"Body_request_link_auth_request_post":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"Body_request_link_auth_request_post"},"Body_revoke_source_approval_admin_source_approvals__program_slug___vouch_id__revoke_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token","default":""},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"Body_revoke_source_approval_admin_source_approvals__program_slug___vouch_id__revoke_post"},"Body_save_field_app_applications__application_id__fields__field_ordinal__post":{"properties":{"value":{"type":"string","title":"Value","default":""},"confirm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm"}},"type":"object","title":"Body_save_field_app_applications__application_id__fields__field_ordinal__post"},"Body_save_profile_answer_app_profile_post":{"properties":{"key":{"type":"string","title":"Key","default":""},"value":{"type":"string","title":"Value","default":""},"refuse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refuse"}},"type":"object","title":"Body_save_profile_answer_app_profile_post"},"Body_send_help_help_post":{"properties":{"message":{"type":"string","title":"Message","default":""},"email":{"type":"string","title":"Email","default":""}},"type":"object","title":"Body_send_help_help_post"},"Body_start_application_app_applications_post":{"properties":{"program_slug":{"type":"string","title":"Program Slug","default":""}},"type":"object","title":"Body_start_application_app_applications_post"},"Body_undo_automatic_update_admin_automatic_updates__proposal_id__undo_post":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token","default":""}},"type":"object","title":"Body_undo_automatic_update_admin_automatic_updates__proposal_id__undo_post"},"Body_upload_worklist_file_api_ext_worklist_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"batch":{"type":"string","title":"Batch","default":""},"authority":{"type":"string","title":"Authority","default":"official"}},"type":"object","required":["file"],"title":"Body_upload_worklist_file_api_ext_worklist_upload_post"},"CaptureIn":{"properties":{"url":{"type":"string","maxLength":2000,"title":"Url"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Slug"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["url"],"title":"CaptureIn"},"ClientBatch":{"properties":{"events":{"items":{"$ref":"#/components/schemas/ClientEvent"},"type":"array","maxItems":50,"title":"Events"}},"type":"object","required":["events"],"title":"ClientBatch"},"ClientEvent":{"properties":{"kind":{"type":"string","enum":["step","click","submit","invalid","js_error","api","stall","retry"],"title":"Kind"},"name":{"type":"string","maxLength":2000,"title":"Name"},"detail":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Detail"},"duration_ms":{"anyOf":[{"type":"integer","maximum":86400000.0,"minimum":0.0},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["kind","name"],"title":"ClientEvent"},"DetectedFieldIn":{"properties":{"ref":{"type":"string","maxLength":200,"title":"Ref"},"label":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Label"},"name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Type"},"maxlength":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Maxlength"},"required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Required"}},"additionalProperties":false,"type":"object","required":["ref"],"title":"DetectedFieldIn","description":"What the content script found. **There is no value field, by construction.**\n\nThe extension never reads back what is already typed on a page. Adding a value here\nwould turn an autofill tool into a recorder of every form the applicant opens, and\n``extra=\"forbid\"`` means a client that tries gets a 422 rather than a silent write."},"DiscoverDecisionIn":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Ids"},"note":{"type":"string","maxLength":500,"title":"Note","default":""},"batch":{"type":"string","maxLength":120,"title":"Batch","default":"discovery"}},"additionalProperties":false,"type":"object","title":"DiscoverDecisionIn"},"DiscoverIn":{"properties":{"seeds":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Seeds"},"depth":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Depth","default":1},"label":{"type":"string","maxLength":200,"title":"Label","default":""},"html":{"type":"string","maxLength":2000000,"title":"Html","default":""},"text":{"type":"string","maxLength":500000,"title":"Text","default":""}},"additionalProperties":false,"type":"object","title":"DiscoverIn","description":"Start a discovery pass from the browser.\n\n``html``/``text`` are how the extension hands over **a page Chrome has already\nrendered**, which is the whole reason discovery is reachable from here at all: the\nserver's plain fetch reads a client-rendered round-up as an empty shell, and several of\nthe funder sites in this corpus refuse it outright. When they are present the seed page\nis not re-fetched."},"DraftFieldIn":{"properties":{"program_slug":{"type":"string","maxLength":128,"minLength":1,"title":"Program Slug"},"field_label":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Field Label"},"field_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Field Name"},"maxlength":{"anyOf":[{"type":"integer","maximum":200000.0,"minimum":1.0},{"type":"null"}],"title":"Maxlength"},"project":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Project"},"widen":{"type":"boolean","title":"Widen","default":false}},"additionalProperties":false,"type":"object","required":["program_slug"],"title":"DraftFieldIn","description":"One live form field the applicant wants drafted.\n\nNo value ever comes in - the applicant's held answers live server-side and are the only\nsource the draft may use (D44). The client sends the *question*, not an answer."},"FieldType":{"type":"string","enum":["short_text","long_text","email","phone","url","number","money","date","select","multiselect","checkbox","file","unknown"],"title":"FieldType"},"FreshnessIn":{"properties":{"signal_id":{"type":"string","title":"Signal Id"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["signal_id"],"title":"FreshnessIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HarvestFieldIn":{"properties":{"ordinal":{"type":"integer","minimum":0.0,"title":"Ordinal"},"prompt":{"type":"string","maxLength":4000,"title":"Prompt"},"type":{"$ref":"#/components/schemas/FieldType","default":"unknown"},"required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Required"},"limit_unit":{"$ref":"#/components/schemas/LimitUnit","default":"unknown"},"limit_max":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Limit Max"},"help_text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Help Text"},"conditional_on":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Conditional On"}},"additionalProperties":false,"type":"object","required":["ordinal","prompt"],"title":"HarvestFieldIn","description":"Field metadata only. Same construction rule as :class:`DetectedFieldIn`."},"HarvestIn":{"properties":{"url":{"type":"string","maxLength":2000,"title":"Url"},"program_slug":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Program Slug"},"page":{"type":"integer","minimum":1.0,"title":"Page","default":1},"page_title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Page Title"},"fields":{"items":{"$ref":"#/components/schemas/HarvestFieldIn"},"type":"array","maxItems":400,"minItems":1,"title":"Fields"}},"additionalProperties":false,"type":"object","required":["url","fields"],"title":"HarvestIn"},"LimitUnit":{"type":"string","enum":["characters","words","none","unknown"],"title":"LimitUnit"},"LoginRequested":{"properties":{"sent":{"type":"boolean","title":"Sent"},"email":{"type":"string","format":"email","title":"Email"},"dev_login_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dev Login Url"}},"type":"object","required":["sent","email"],"title":"LoginRequested"},"Plan":{"type":"string","enum":["free","workspace","pro"],"title":"Plan","description":"Free is complete and uncapped - it is the acquisition surface, not a trial."},"PlanChangeRequest":{"properties":{"plan":{"$ref":"#/components/schemas/Plan"}},"type":"object","required":["plan"],"title":"PlanChangeRequest"},"PlanIn":{"properties":{"url":{"type":"string","maxLength":2000,"title":"Url"},"program_slug":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Program Slug"},"fields":{"items":{"$ref":"#/components/schemas/DetectedFieldIn"},"type":"array","maxItems":400,"title":"Fields"},"acknowledged_disclosure":{"type":"boolean","title":"Acknowledged Disclosure","default":false}},"additionalProperties":false,"type":"object","required":["url"],"title":"PlanIn"},"RankLinkIn":{"properties":{"url":{"type":"string","title":"Url"},"text":{"type":"string","title":"Text","default":""}},"additionalProperties":false,"type":"object","required":["url"],"title":"RankLinkIn"},"RankLinksIn":{"properties":{"program_slug":{"type":"string","title":"Program Slug"},"url":{"type":"string","title":"Url"},"links":{"items":{"$ref":"#/components/schemas/RankLinkIn"},"type":"array","maxItems":200,"title":"Links"}},"additionalProperties":false,"type":"object","required":["program_slug","url"],"title":"RankLinksIn","description":"A page's links, for the model to re-rank in one call."},"RefreshIn":{"properties":{"slug":{"type":"string","maxLength":128,"minLength":1,"title":"Slug"}},"additionalProperties":false,"type":"object","required":["slug"],"title":"RefreshIn"},"ResearchIn":{"properties":{"program_slug":{"type":"string","title":"Program Slug"},"url":{"type":"string","title":"Url"},"html":{"type":"string","title":"Html","description":"Outer HTML of the rendered page, for link harvesting."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Visible text. Only read when include_content is true; the server extracts its own text from html when this is omitted."},"text_hash":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Text Hash","description":"SHA-256 hex of the page's visible text, computed in the browser. Sent on every scan, content or not - it is a digest, not the text, so it reveals nothing while letting a re-opened page be reported as changed or unchanged since last time."},"authority":{"type":"string","title":"Authority","description":"official | curator | unknown. What the operator vouched for.","default":"unknown"},"include_content":{"type":"boolean","title":"Include Content","description":"Send the page's facts to the extractor. Defaults to FALSE: taking links from a page risks nothing, taking facts from an aggregator is how a directory starts lying.","default":false},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"additionalProperties":false,"type":"object","required":["program_slug","url","html"],"title":"ResearchIn","description":"One page the operator is looking at, sent for scoring and maybe extraction."},"ReviseIn":{"properties":{"text":{"type":"string","maxLength":20000,"title":"Text"},"start":{"type":"integer","minimum":0.0,"title":"Start"},"end":{"type":"integer","minimum":0.0,"title":"End"},"instruction":{"type":"string","maxLength":500,"title":"Instruction"},"limit":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Limit"}},"type":"object","required":["text","start","end","instruction"],"title":"ReviseIn"},"RunPageIn":{"properties":{"run_id":{"type":"string","title":"Run Id"},"item_id":{"type":"string","title":"Item Id"},"url":{"type":"string","maxLength":2000,"title":"Url"},"html":{"type":"string","title":"Html"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"text_hash":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Text Hash"}},"additionalProperties":false,"type":"object","required":["run_id","item_id","url","html"],"title":"RunPageIn","description":"One rendered page, posted back by the browser mid-run."},"RunResumeIn":{"properties":{"run_id":{"type":"string","title":"Run Id"},"cost_cap_usd":{"anyOf":[{"type":"number","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Cost Cap Usd"}},"additionalProperties":false,"type":"object","required":["run_id"],"title":"RunResumeIn"},"RunStartIn":{"properties":{"label":{"type":"string","maxLength":200,"title":"Label","default":""},"batch":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Batch"},"runner":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Runner"},"model":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Model"},"cost_cap_usd":{"anyOf":[{"type":"number","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Cost Cap Usd"}},"additionalProperties":false,"type":"object","title":"RunStartIn"},"SpendReport":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/SpendRow"},"type":"array","title":"Rows"},"total_usd":{"type":"number","title":"Total Usd"}},"type":"object","required":["rows","total_usd"],"title":"SpendReport"},"SpendRow":{"properties":{"task":{"type":"string","title":"Task"},"tier":{"type":"string","title":"Tier"},"calls":{"type":"integer","title":"Calls"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"cost_usd":{"type":"number","title":"Cost Usd"}},"type":"object","required":["task","tier","calls","input_tokens","output_tokens","cost_usd"],"title":"SpendRow"},"SuggestionIn":{"properties":{"suggestion_id":{"type":"string","title":"Suggestion Id"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["suggestion_id"],"title":"SuggestionIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorklistIn":{"properties":{"text":{"type":"string","maxLength":500000,"title":"Text"},"batch":{"type":"string","maxLength":120,"title":"Batch","default":""},"authority":{"type":"string","maxLength":16,"title":"Authority","default":"official"}},"additionalProperties":false,"type":"object","required":["text"],"title":"WorklistIn","description":"A pasted (program, official URL) list.\n\nThe operator vouching that these URLs are the funders' own is what sets the authority\nceiling to ``official`` (D34) - and it stays a ceiling: effective confidence is still\n``min(ceiling, extraction confidence)``, because vouching for a site says nothing about\nwhether the extractor read it correctly."}}}}