{"openapi":"3.1.0","info":{"title":"New on Record data","description":"US public records as their offices publish them, in the states the directory covers (https://newonrecord.com/developers).","version":"1"},"paths":{"/v1/kinds":{"get":{"tags":["records"],"summary":"The kinds of record served, each with its JSON Schema and counts. Not counted toward the daily limit.","operationId":"kinds_v1_kinds_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Kind"},"title":"Response Kinds V1 Kinds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/places":{"get":{"tags":["records"],"summary":"Places whose name holds q, to turn a name into a place id. With none, `note` says which states the directory covers and how to ask for a place it doesn't hold. Not counted toward the daily limit.","operationId":"places_v1_places_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Places"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/offices":{"get":{"tags":["records"],"summary":"Which offices keep a kind of record for a place, and for each whether its records are served, or why not: not online, kept by another office, not read, or checked with nothing kept. Not counted toward the daily limit.","operationId":"offices_v1_offices_get","parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","description":"A kind of record, such as permit.commercial_building; /v1/kinds lists them.","title":"Kind"},"description":"A kind of record, such as permit.commercial_building; /v1/kinds lists them."},{"name":"place","in":"query","required":true,"schema":{"type":"string","description":"A place id from /v1/places.","title":"Place"},"description":"A place id from /v1/places."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offices"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/coverage":{"get":{"tags":["records"],"summary":"How much of a state's local governments the directory covers, from the Census Bureau's list of every county, municipality, township, school district and special district: for each kind of record, how many governments' records are served, read but held back, found but not read, not posted online, not looked at yet, or outside the directory, and why; by type of government and by county, with a county's own counts when one is given. Counts only. Not counted toward the daily limit.","operationId":"coverage_v1_coverage_get","parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string","description":"A state's two letters, such as oh.","title":"State"},"description":"A state's two letters, such as oh."},{"name":"county","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A county's place id from /v1/places, for its own counts.","title":"County"},"description":"A county's place id from /v1/places, for its own counts."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coverage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/companies":{"get":{"tags":["records"],"summary":"Companies whose name starts with q, its ending (LLC, Inc.) aside, each with every way offices wrote it and its records by kind. A company is a name ending in LLC, Inc., Co. or another ending its state's law sets, so a person's own name is never one. Not counted toward the daily limit.","operationId":"companies_v1_companies_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"The start of a company's name.","title":"Q"},"description":"The start of a company's name."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The next_cursor the last answer gave.","title":"Cursor"},"description":"The next_cursor the last answer gave."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Companies a page, at most 100.","default":100,"title":"Limit"},"description":"Companies a page, at most 100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/companies/{company_id}":{"get":{"tags":["records"],"summary":"One company: every way offices wrote its name, and its records by kind, place and office. /v1/records with company reads the records. Not counted toward the daily limit.","operationId":"company_v1_companies__company_id__get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/addresses":{"get":{"tags":["records"],"summary":"One street address: its id, each way offices wrote it, and the served records there by kind, place and office. /v1/records with address reads them. Records at one address are only at the same address: a building holds many businesses. Not counted toward the daily limit.","operationId":"address_v1_addresses_get","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"A house number, a street and its city (100 N Main St, Springfield), or an address's id.","title":"Address"},"description":"A house number, a street and its city (100 N Main St, Springfield), or an address's id."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/records":{"get":{"tags":["records"],"summary":"Records newest first by `occurred_at`, the date each record's `dated_by` names, or with words (q) best match first, with how many match by kind, place and year. Each record returned counts against today's allowance.","operationId":"records_v1_records_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A kind of record, such as procurement.solicitation; /v1/kinds lists them.","title":"Kind"},"description":"A kind of record, such as procurement.solicitation; /v1/kinds lists them."},{"name":"place","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A place id from /v1/places; a county covers the places in it and its health district.","title":"Place"},"description":"A place id from /v1/places; a county covers the places in it and its health district."},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One source's id.","title":"Source"},"description":"One source's id."},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"By the record's `occurred_at`, with a time zone.","title":"Since"},"description":"By the record's `occurred_at`, with a time zone."},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"By the record's `occurred_at`, with a time zone.","title":"Until"},"description":"By the record's `occurred_at`, with a time zone."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Words to find in the record's text, every one, in any order: \"a phrase\" in quotes, word* for a beginning, -word to leave one out, OR between two words for either.","title":"Q"},"description":"Words to find in the record's text, every one, in any order: \"a phrase\" in quotes, word* for a beginning, -word to leave one out, OR between two words for either."},{"name":"match","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The office's own number, exactly, as `field:value` (license_number:12345). Repeat it for each field to match, such as a license's board. /v1/kinds names each kind's lookup fields.","title":"Match"},"description":"The office's own number, exactly, as `field:value` (license_number:12345). Repeat it for each field to match, such as a license's board. /v1/kinds names each kind's lookup fields."},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A state in the directory's words (active, issued, expired); /v1/kinds names each kind's.","title":"State"},"description":"A state in the directory's words (active, issued, expired); /v1/kinds names each kind's."},{"name":"company","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A company's id from /v1/companies, such as oh:certasite: the records naming it, any kind.","title":"Company"},"description":"A company's id from /v1/companies, such as oh:certasite: the records naming it, any kind."},{"name":"address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"An address's id, from /v1/addresses or a record's address.id: the records at that street address, any kind.","title":"Address"},"description":"An address's id, from /v1/addresses or a record's address.id: the records at that street address, any kind."},{"name":"deadline_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"A kind with a deadline (/v1/kinds names its field), by when it passes, with a time zone: after this, as a bid not yet due. A deadline the office gave as a date passes at that day's end.","title":"Deadline After"},"description":"A kind with a deadline (/v1/kinds names its field), by when it passes, with a time zone: after this, as a bid not yet due. A deadline the office gave as a date passes at that day's end."},{"name":"deadline_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"A kind with a deadline, by when it passes: at or before this, with a time zone.","title":"Deadline Before"},"description":"A kind with a deadline, by when it passes: at or before this, with a time zone."},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A city a record's own fields hold (a carrier's, a license holder's), whole, case aside.","title":"City"},"description":"A city a record's own fields hold (a carrier's, a license holder's), whole, case aside."},{"name":"postal_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A five-digit ZIP code, or a ZIP+4, a record's own fields hold (a carrier's).","title":"Postal Code"},"description":"A five-digit ZIP code, or a ZIP+4, a record's own fields hold (a carrier's)."},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"enum":["best","newest"],"type":"string"},{"type":"null"}],"description":"With q: newest (the default), newest first, or best, the best match first.","title":"Order"},"description":"With q: newest (the default), newest first, or best, the best match first."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The next_cursor the last answer gave.","title":"Cursor"},"description":"The next_cursor the last answer gave."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":0,"description":"Records a page, at most 100. With q, 0 gives the counts alone, free.","default":100,"title":"Limit"},"description":"Records a page, at most 100. With q, 0 gives the counts alone, free."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/records/{record_id}":{"get":{"tags":["records"],"summary":"One record, by its id; with a paid plan, every stored version of it too. Counts as one record.","operationId":"record_v1_records__record_id__get","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"With a paid plan: the record as it was read at this time, with a time zone.","title":"As Of"},"description":"With a paid plan: the record as it was read at this time, with a time zone."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordAnswer"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/changes":{"get":{"tags":["records"],"summary":"What happened to records after a point, oldest first, each change with the record as it is now: new records, first listed by their source's nightly read (never history the checker read later); with a paid plan, every change too (amended, status_change, closed, withdrawn). Start with since, then pass back next_cursor.","operationId":"changes_v1_changes_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Where to start, with a time zone.","title":"Since"},"description":"Where to start, with a time zone."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The next_cursor the last answer gave.","title":"Cursor"},"description":"The next_cursor the last answer gave."},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A kind of record, such as procurement.solicitation; /v1/kinds lists them.","title":"Kind"},"description":"A kind of record, such as procurement.solicitation; /v1/kinds lists them."},{"name":"place","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A place id from /v1/places; a county covers the places in it and its health district.","title":"Place"},"description":"A place id from /v1/places; a county covers the places in it and its health district."},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One source's id.","title":"Source"},"description":"One source's id."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Records a page, at most 100.","default":100,"title":"Limit"},"description":"Records a page, at most 100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/changes/files":{"get":{"tags":["records"],"summary":"Each night's changes as a file, with the state license: every closed day, newest first, each with the cursor /v1/changes reads on from after it. Not counted toward the daily limit.","operationId":"changes_files_v1_changes_files_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeFiles"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/changes/files/{day}":{"get":{"tags":["records"],"summary":"One closed day's changes, with the state license: JSON Lines, gzipped, each line a change as /v1/changes gives it, from the day before's close through this day's. X-Next-Cursor is where /v1/changes reads on. Each change counts against today's allowance, the file whole: one larger than what is left is refused, never cut. A day not closed yet answers 409; a day with no close of its own, 404.","operationId":"changes_file_v1_changes_files__day__get","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"string","format":"date","description":"The closed day, a UTC date (2026-11-28), as /v1/changes/files lists it.","title":"Day"},"description":"The closed day, a UTC date (2026-11-28), as /v1/changes/files lists it."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"responses":{"200":{"description":"The day's changes, gzipped JSON Lines.","content":{"application/gzip":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/asks":{"post":{"tags":["records"],"summary":"Say what you wanted and didn't find, read by the people who run the directory. Not counted toward the daily limit.","operationId":"ask_v1_asks_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asked"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/states/{state}":{"get":{"tags":["directory"],"summary":"Get State","operationId":"get_state_v1_states__state__get","parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string","title":"State"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/State"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/states/{state}/coverage":{"get":{"tags":["directory"],"summary":"Get State Coverage","description":"The coverage ledger's counts (data/ledger.py), for the site's coverage page: what `get_coverage` answers.","operationId":"get_state_coverage_v1_states__state__coverage_get","parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string","title":"State"}},{"name":"county","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"County"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coverage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jurisdictions":{"get":{"tags":["directory"],"summary":"List Jurisdictions","operationId":"list_jurisdictions_v1_jurisdictions_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"parent","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jurisdictions/{jurisdiction_id}":{"get":{"tags":["directory"],"summary":"Get Jurisdiction","description":"A place, its sources and what research found, with how many records each of its served\nsources serves, counts only, as each source's page gives them (docs/site.md, Public pages).","operationId":"get_jurisdiction_v1_jurisdictions__jurisdiction_id__get","parameters":[{"name":"jurisdiction_id","in":"path","required":true,"schema":{"type":"string","title":"Jurisdiction Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources":{"get":{"tags":["directory"],"summary":"List Sources","description":"The live sources, filtered. `status` is what each is shown as at the last finished check, as\nthe site shows it: `upload_due` for an overdue hand-updated source, never its stored status.","operationId":"list_sources_v1_sources_get","parameters":[{"name":"jurisdiction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jurisdiction"}},{"name":"family","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"not_read","in":"query","required":false,"schema":{"anyOf":[{"enum":["kept-out","terms","fault","gone","checker","elsewhere","choice"],"type":"string"},{"type":"null"}],"title":"Not Read"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}":{"get":{"tags":["directory"],"summary":"Get Source","operationId":"get_source_v1_sources__source_id__get","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/checks":{"get":{"tags":["directory"],"summary":"List Checks","operationId":"list_checks_v1_sources__source_id__checks_get","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"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":{"$ref":"#/components/schemas/CheckList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platforms":{"get":{"tags":["directory"],"summary":"List Platforms","operationId":"list_platforms_v1_platforms_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":{"$ref":"#/components/schemas/PlatformList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platforms/{key}":{"get":{"tags":["directory"],"summary":"Get Platform","operationId":"get_platform_v1_platforms__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/families":{"get":{"tags":["directory"],"summary":"List Families","operationId":"list_families_v1_families_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":{"$ref":"#/components/schemas/FamilyList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs":{"get":{"tags":["directory"],"summary":"List Runs","description":"The trend: the last nights, newest first, each its finished runs: each state is read in its\nown night, an hour on from the last (checker/nights.py). A run still going, or one that died,\ncarries the counts of the hosts it has written so far, so it is no night's word yet.","operationId":"list_runs_v1_runs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Limit"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/latest":{"get":{"tags":["directory"],"summary":"Latest Run","description":"The last night (a state's, when asked, its runs alone), and the sources whose shown status it\nchanged from their night before: each source's newest check in the night, against its newest\nbefore the night began. A night counts what its own runs found: a state whose night is still to\ncome today is in no count of today's yet (docs/audience.md, no status the last run did not\nobserve). Beside it, where every source in the scope stands, each at its own state's last\ncheck, with those places' causes and every source not read by why: the status page's What it\nfound, which adds up to the directory's total.","operationId":"latest_run_v1_runs_latest_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestRun"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AddressDetail":{"properties":{"id":{"type":"string","title":"Id","description":"The address's id, which search_records' `address` takes."},"address":{"type":"string","title":"Address","description":"The address in the Postal Service's standard form, without a suite."},"records":{"type":"integer","title":"Records","description":"Served records at the address, of every kind."},"spellings":{"items":{"$ref":"#/components/schemas/AddressSpelling"},"type":"array","title":"Spellings","description":"Each way offices wrote it, most first."},"kinds":{"items":{"$ref":"#/components/schemas/KindRecords"},"type":"array","title":"Kinds","description":"Its records by kind."},"places":{"items":{"$ref":"#/components/schemas/PlaceRecords"},"type":"array","title":"Places","description":"Its records by the place of the office that published them."},"offices":{"items":{"$ref":"#/components/schemas/OfficeRecords"},"type":"array","title":"Offices","description":"Its records by the office that publishes them."}},"type":"object","required":["id","address","records","spellings","kinds","places","offices"],"title":"AddressDetail"},"AddressSpelling":{"properties":{"address":{"type":"string","title":"Address","description":"One way offices wrote the address."},"records":{"type":"integer","title":"Records"}},"type":"object","required":["address","records"],"title":"AddressSpelling"},"AsOf":{"properties":{"at":{"type":"string","format":"date-time","title":"At","description":"The time asked about."},"found":{"type":"string","enum":["read","not-yet-read"],"title":"Found","description":"read: `version` is the one first read at or before `at`. not-yet-read: the record was first read after `at`."},"version":{"anyOf":[{"$ref":"#/components/schemas/Version"},{"type":"null"}],"description":"The record as it was read then; null when not yet read then."},"next_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Read At","description":"When a later version was first read; for not-yet-read, when the record first was. Null where none was."},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At","description":"Where no later version was read: the start of the night whose read last listed the record."}},"type":"object","required":["at","found","version","next_read_at","last_seen_at"],"title":"AsOf"},"AskFor":{"properties":{"kind":{"type":"string","title":"Kind"},"place":{"type":"string","title":"Place","description":"A place id."}},"type":"object","required":["kind","place"],"title":"AskFor"},"AskIn":{"properties":{"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text","description":"What you were looking for and didn't find; or, with `record`, what seems wrong about it."},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place","description":"A place's id, from /v1/places. One the directory doesn't hold is kept in the ask's own words."},"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record","description":"A record's id, where something about it seems wrong: the people who run the directory read it against its office's document, and what they find shows on the record."}},"additionalProperties":false,"type":"object","required":["text"],"title":"AskIn"},"Asked":{"properties":{"received":{"type":"boolean","title":"Received"},"check":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check","description":"For an ask that names a record: that it is kept for the people who run the directory, who read the record against its office's document."}},"type":"object","required":["received"],"title":"Asked"},"Block":{"properties":{"kind":{"type":"string","title":"Kind"},"seen_on":{"type":"string","format":"date","title":"Seen On"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["kind","seen_on","detail"],"title":"Block"},"Change":{"properties":{"id":{"type":"integer","title":"Id","description":"The change's own id, in the order the checker told them."},"event":{"type":"string","enum":["new","amended","status_change","closed","withdrawn"],"title":"Event","description":"new (first listed by its source's nightly read, never history), amended, status_change, closed or withdrawn."},"basis":{"type":"string","enum":["stated","absent"],"title":"Basis","description":"stated: the office's list said so. absent: it left a list of what is in force, the checker's reading, not the office's word."},"at":{"type":"string","format":"date-time","title":"At","description":"When the checker saw it."},"detail":{"additionalProperties":true,"type":"object","title":"Detail","description":"What the versions don't hold: moved (the fields that differ), ended, on_schedule, relisted; back, where the change put the record at its version before last, which a reader may leave out as a change undone; walked, where the change was found by reading the source's older records again, so the office made it some time before `at`."},"burst":{"type":"boolean","title":"Burst","description":"One of far more of its kind than its source's nights had ever made."},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"The number of the record's version this change describes, as its history numbers them; null where none does, as for a record leaving a list."},"changed":{"anyOf":[{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/FieldChange"},{"$ref":"#/components/schemas/FieldFirst"}]},"type":"object"},{"type":"null"}],"title":"Changed","description":"With a plan that lists every change, for a change that moved fields: each field `moved` names, with its value in this version (`to`) and in the version before it (`from`, the newest one the record's history serves before this one; absent where none does), each as the record's history shows it. Null for a new record, a record leaving a list, and a version the record's history leaves out."},"record":{"$ref":"#/components/schemas/ServedRecord","description":"The record as it is now."}},"type":"object","required":["id","event","basis","at","detail","burst","record"],"title":"Change"},"ChangeFile":{"properties":{"day":{"type":"string","format":"date","title":"Day","description":"The UTC date the day's last nightly run started, the morning a night of reading ended: the file holds the changes after the file before it, through that run's close."},"cursor":{"type":"string","title":"Cursor","description":"The change feed's cursor at the file's end: pass it to /v1/changes to read on from after it."}},"type":"object","required":["day","cursor"],"title":"ChangeFile"},"ChangeFiles":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChangeFile"},"type":"array","title":"Items","description":"Every closed day, newest first."}},"type":"object","required":["items"],"title":"ChangeFiles"},"ChangePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Change"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass it back to read on; at the end, it still names where you stopped."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Why nothing came back, when that's worth saying."},"offices":{"anyOf":[{"$ref":"#/components/schemas/OfficesSummary"},{"type":"null"}],"description":"For a call naming a kind and a place: which offices keep them, served and not."},"changes_left_out":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changes Left Out","description":"Where the caller's plan lists new records alone: that amendments, status changes, closings and withdrawals are left out, and what lists them, in sentences to pass on to the person behind the agent. Null where every change is listed."},"left_out":{"items":{"type":"string"},"type":"array","title":"Left Out","description":"What this page leaves out that you might expect, one sentence each: the changes past a page today's allowance cut short."}},"type":"object","required":["items","next_cursor"],"title":"ChangePage"},"Check":{"properties":{"run_id":{"type":"string","title":"Run Id"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"kind":{"type":"string","enum":["probe","reach","upload"],"title":"Kind"},"status":{"type":"string","enum":["connected","changed","broken","blocked","not_connected","not_run","not_built"],"title":"Status"},"refusal":{"anyOf":[{"type":"string","enum":["http-403","http-429","bot-check","connection-reset","tls-error","robots-unreachable"]},{"type":"null"}],"title":"Refusal"},"cause":{"anyOf":[{"type":"string","enum":["site_down","url_moved","blocked","layout_changed","data_gone","stale","upload_due","vendor_limit","vendor_down","none_yet"]},{"type":"null"}],"title":"Cause"},"http":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http"},"records_seen":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Records Seen"},"newest_record_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Newest Record At"},"drift":{"type":"boolean","title":"Drift"}},"type":"object","required":["run_id","checked_at","kind","status","refusal","cause","http","records_seen","newest_record_at","drift"],"title":"Check"},"CheckList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Check"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"CheckList"},"Checked":{"properties":{"at":{"type":"string","format":"date-time","title":"At","description":"When a model checked this version of the record against what it was read from."},"by":{"$ref":"#/components/schemas/CheckedBy","description":"The model and the prompt that checked it."},"with_document":{"type":"boolean","title":"With Document","description":"Whether the office's document was read with it: always, since a check is served only where it read the record beside its document, whole or the pages the record stands on."}},"type":"object","required":["at","by","with_document"],"title":"Checked"},"CheckedBy":{"properties":{"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"}},"type":"object","required":["provider","model","prompt_version"],"title":"CheckedBy"},"Company":{"properties":{"id":{"type":"string","title":"Id","description":"The company's id, which search_records' `company` and get_company take."},"names":{"items":{"$ref":"#/components/schemas/CompanyName"},"type":"array","title":"Names","description":"Each way offices wrote its name, the most used first. A link says only that offices wrote the same name once case, punctuation and the ending are aside: read each record's office and place."},"records":{"type":"integer","title":"Records","description":"Served records naming it."},"kinds":{"items":{"$ref":"#/components/schemas/KindRecords"},"type":"array","title":"Kinds","description":"Its records by kind, the most first."}},"type":"object","required":["id","names","records","kinds"],"title":"Company"},"CompanyDetail":{"properties":{"id":{"type":"string","title":"Id","description":"The company's id, which search_records' `company` and get_company take."},"names":{"items":{"$ref":"#/components/schemas/CompanyName"},"type":"array","title":"Names","description":"Each way offices wrote its name, the most used first. A link says only that offices wrote the same name once case, punctuation and the ending are aside: read each record's office and place."},"records":{"type":"integer","title":"Records","description":"Served records naming it."},"kinds":{"items":{"$ref":"#/components/schemas/KindRecords"},"type":"array","title":"Kinds","description":"Its records by kind, the most first."},"places":{"items":{"$ref":"#/components/schemas/PlaceRecords"},"type":"array","title":"Places","description":"Its records by the place of the office that published them."},"offices":{"items":{"$ref":"#/components/schemas/OfficeRecords"},"type":"array","title":"Offices","description":"Its records by the office that publishes them."}},"type":"object","required":["id","names","records","kinds","places","offices"],"title":"CompanyDetail"},"CompanyName":{"properties":{"name":{"type":"string","title":"Name","description":"One way an office wrote the company's name."},"records":{"type":"integer","title":"Records","description":"Served records that write it so."}},"type":"object","required":["name","records"],"title":"CompanyName"},"CompanyPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Company"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass back as cursor for the next page; null at the end."}},"type":"object","required":["items","next_cursor"],"title":"CompanyPage"},"Counts":{"properties":{"kinds":{"$ref":"#/components/schemas/MatchCounts"},"places":{"$ref":"#/components/schemas/MatchCounts","description":"Where the search names no place: by county when every office it reaches is in one state, otherwise by state. Inside a state, by county; inside a county or a city, by the place each office stands for. A state's own offices count under the state."},"years":{"$ref":"#/components/schemas/MatchCounts","description":"By the year of `occurred_at`."}},"type":"object","required":["kinds","places","years"],"title":"Counts"},"Coverage":{"properties":{"state":{"type":"string","title":"State","description":"The state, by its two letters."},"governments_list":{"$ref":"#/components/schemas/CoverageList","description":"The list every count is of: each government on it has one row here."},"last_check_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Check At","description":"When the night these counts reflect finished; null before a night has finished."},"kinds":{"items":{"type":"string"},"type":"array","title":"Kinds","description":"The kinds of record counted: those a state's local governments account for, in order."},"own_kinds":{"items":{"type":"string"},"type":"array","title":"Own Kinds","description":"The kinds a government keeps itself, which `covered` counts; a kind a health district keeps is counted by kind and left out of `covered`."},"governments":{"type":"integer","title":"Governments","description":"Every government on the list."},"covered":{"type":"integer","title":"Covered","description":"Governments with any of `own_kinds` served: a source read and open to a search, though it may hold none of that kind yet. Never a source read and held back."},"by_type":{"additionalProperties":{"$ref":"#/components/schemas/CoverageCount"},"propertyNames":{"enum":["county","municipal","township","special-district","school-district"]},"type":"object","title":"By Type","description":"By the Census Bureau's five types of government."},"by_kind":{"additionalProperties":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["served","held","not-read","not-online","not-looked","outside"]},"type":"object"},"type":"object","title":"By Kind","description":"For each kind, how many governments are in each group: served (read and open to a search; it may hold none of the kind yet), held (read, kept and not served yet), not-read (found, and not read), not-online (the office posts none online, or another office keeps them), not-looked (research hasn't looked), outside (not a place the directory holds). The groups sum to `governments`."},"by_type_and_kind":{"additionalProperties":{"additionalProperties":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["served","held","not-read","not-online","not-looked","outside"]},"type":"object"},"type":"object"},"propertyNames":{"enum":["county","municipal","township","special-district","school-district"]},"type":"object","title":"By Type And Kind","description":"`by_kind` for each type of government."},"by_county":{"items":{"$ref":"#/components/schemas/CoverageCounty"},"type":"array","title":"By County","description":"By county, each government counted once, in the county the Census Bureau gives it, sorted by the county's name."},"outside":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["under-floor","no-estimate","no-kind"]},"type":"object","title":"Outside","description":"Governments outside the directory, by why: under-floor (a city, village or township of fewer people than the directory's floor), no-estimate (the Census Bureau's population estimates hold no row for it), no-kind (a school or special district, which no kind of place holds yet)."},"looks":{"$ref":"#/components/schemas/CoverageLooks","description":"How old the findings are behind the not-online counts, as of today: one for each government and kind."}},"type":"object","required":["state","governments_list","last_check_at","kinds","own_kinds","governments","covered","by_type","by_kind","by_type_and_kind","by_county","outside","looks"],"title":"Coverage"},"CoverageCount":{"properties":{"governments":{"type":"integer","title":"Governments","description":"How many governments."},"covered":{"type":"integer","title":"Covered","description":"How many of them have any kind of record they keep themselves (agenda items, minutes, bids, permits) served: its source read and open to a search, though it may hold none of that kind yet."}},"type":"object","required":["governments","covered"],"title":"CoverageCount"},"CoverageCounty":{"properties":{"governments":{"type":"integer","title":"Governments","description":"How many governments."},"covered":{"type":"integer","title":"Covered","description":"How many of them have any kind of record they keep themselves (agenda items, minutes, bids, permits) served: its source read and open to a search, though it may hold none of that kind yet."},"id":{"type":"string","title":"Id","description":"The county's place id."},"name":{"type":"string","title":"Name"},"by_kind":{"anyOf":[{"additionalProperties":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["served","held","not-read","not-online","not-looked","outside"]},"type":"object"},"type":"object"},{"type":"null"}],"title":"By Kind","description":"The county's own governments' counts by kind: given for the county asked for, null for the others."}},"type":"object","required":["governments","covered","id","name","by_kind"],"title":"CoverageCounty"},"CoverageList":{"properties":{"name":{"type":"string","title":"Name","description":"The list the governments are read from: the Census Bureau's Government Units List."},"year":{"type":"integer","title":"Year","description":"The list's year."},"as_of":{"type":"string","format":"date","title":"As Of","description":"The day the list is current to."},"url":{"type":"string","title":"Url","description":"Where the Census Bureau publishes it."}},"type":"object","required":["name","year","as_of","url"],"title":"CoverageList"},"CoverageLooks":{"properties":{"within_90_days":{"type":"integer","title":"Within 90 Days","description":"Findings that a kind isn't posted online, looked into this recently."},"within_a_year":{"type":"integer","title":"Within A Year","description":"Findings from more than 90 days ago, and within a year."},"older":{"type":"integer","title":"Older","description":"Findings from more than a year ago, which research looks at again first."}},"type":"object","required":["within_90_days","within_a_year","older"],"title":"CoverageLooks"},"Doubt":{"properties":{"where":{"type":"string","title":"Where","description":"What seems wrong: occurred_at, or one of fields, such as fields.inspected_at or fields.violations[2].code."},"value":{"title":"Value","description":"The value as stored, which is served unchanged beside this; or, for a figure or a date inside a longer text, that part alone."},"why":{"type":"string","title":"Why","description":"Why it seems wrong, in a sentence a caller can repeat to its person."},"meant":{"anyOf":[{},{"type":"null"}],"title":"Meant","description":"The value meant, where the office's own document shows it and the check was certain: what the record would hold with it, in the field's own form. Null where nothing shows it."},"sure":{"anyOf":[{"type":"string","enum":["certain","likely"]},{"type":"null"}],"title":"Sure","description":"How sure the check is. Only certain is served, where the document it read leaves no other reading. Null for a doubt no model raised, such as a year no record can have."},"evidence":{"items":{"$ref":"#/components/schemas/Evidence"},"type":"array","title":"Evidence","description":"Where in what it read the doubt rests, never the words themselves."}},"type":"object","required":["where","value","why","meant","sure","evidence"],"title":"Doubt"},"Evidence":{"properties":{"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page","description":"The page of the office's document it is on; null where it has none."},"part":{"type":"string","title":"Part","description":"Where in the document or the record, in a few words."}},"type":"object","required":["page","part"],"title":"Evidence"},"Extent":{"properties":{"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"The state the place is in, by its two letters; null where unknown."},"places":{"additionalProperties":{"type":"integer"},"type":"object","title":"Places","description":"The places of the state, and the federal ones with a slice of it, the directory holds, by kind."},"places_from":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Places From","description":"It holds every county, and every city, village and township of at least this many people (the Census Bureau's 2020 base; a township's people outside its cities and villages), with the health districts and offices they name. Null for a state without lists."},"holds_none_of":{"items":{"type":"string"},"type":"array","title":"Holds None Of","description":"Kinds of place it holds no file for, so it can't say what one keeps."}},"type":"object","required":["state","places","places_from","holds_none_of"],"title":"Extent"},"FamilyList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FamilySummary"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"FamilyList"},"FamilySummary":{"properties":{"sources_total":{"type":"integer","title":"Sources Total"},"standing":{"$ref":"#/components/schemas/Standings"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"short":{"type":"string","title":"Short"},"records_served":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Records Served"},"sources_read":{"type":"integer","title":"Sources Read","readOnly":true},"sources_working":{"type":"integer","title":"Sources Working","readOnly":true}},"type":"object","required":["sources_total","standing","key","name","short","records_served","sources_read","sources_working"],"title":"FamilySummary"},"FieldChange":{"properties":{"from":{"title":"From","description":"Its value in the version before, null where that one held none."},"to":{"title":"To","description":"Its value in this version, null where it holds none."}},"additionalProperties":false,"type":"object","required":["from","to"],"title":"FieldChange","description":"A field's value before and after one change, as the record's history shows both versions."},"FieldFill":{"properties":{"field":{"type":"string","title":"Field"},"sources":{"type":"integer","title":"Sources","description":"Its sources whose records hold the field."},"records":{"type":"integer","title":"Records","description":"Its records that hold it."}},"type":"object","required":["field","sources","records"],"title":"FieldFill"},"FieldFirst":{"properties":{"to":{"title":"To","description":"Its value in this version, null where it holds none."}},"additionalProperties":false,"type":"object","required":["to"],"title":"FieldFirst","description":"A field's value in a version no served version precedes, so nothing says what it was."},"FilledBy":{"properties":{"field":{"type":"string","title":"Field"},"records":{"type":"integer","title":"Records","description":"Its records that hold the field."}},"type":"object","required":["field","records"],"title":"FilledBy"},"Freshness":{"properties":{"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At","description":"Its last read that counted its rows; null before one."},"whole_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Whole Read At","description":"Its last read of its whole list, every row of every page; null where its reads can't say, or none was."},"says_whole":{"type":"boolean","title":"Says Whole","description":"Whether its reads say if they read the whole list: about a third of sources' do."},"fresh_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fresh At","description":"How fresh its records are: its last whole read where its reads say, else its last read that counted rows."},"fresh_by":{"anyOf":[{"type":"string","enum":["whole","read"]},{"type":"null"}],"title":"Fresh By","description":"Which of the two `fresh_at` is."},"oldest_record_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Oldest Record At","description":"Its oldest record held, by the date each is filed by (a record's `occurred_at`, which `dated_by` names)."},"history":{"anyOf":[{"type":"string","enum":["read","reading","not-offered"]},{"type":"null"}],"title":"History","description":"Its older records: read (all of them), reading (a little each night), not-offered (its site lists only what is current); null where it has taken no step."}},"type":"object","required":["read_at","whole_read_at","says_whole","fresh_at","fresh_by","oldest_record_at","history"],"title":"Freshness"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JurisdictionDetail":{"properties":{"sources_total":{"type":"integer","title":"Sources Total"},"standing":{"$ref":"#/components/schemas/Standings"},"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"population":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Population"},"parent_ids":{"items":{"type":"string"},"type":"array","title":"Parent Ids"},"within":{"items":{"type":"string"},"type":"array","title":"Within"},"filled":{"type":"boolean","title":"Filled"},"fips":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fips"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"parents":{"items":{"$ref":"#/components/schemas/JurisdictionRef"},"type":"array","title":"Parents"},"health_district":{"anyOf":[{"$ref":"#/components/schemas/JurisdictionRef"},{"type":"null"}]},"covers":{"items":{"$ref":"#/components/schemas/JurisdictionRef"},"type":"array","title":"Covers"},"none_entries":{"items":{"$ref":"#/components/schemas/NoneEntry"},"type":"array","title":"None Entries"},"sources":{"items":{"$ref":"#/components/schemas/SourceSummary"},"type":"array","title":"Sources"},"records_served":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"object","title":"Records Served"},"sources_read":{"type":"integer","title":"Sources Read","readOnly":true},"sources_working":{"type":"integer","title":"Sources Working","readOnly":true}},"type":"object","required":["sources_total","standing","id","kind","name","state","population","parent_ids","within","filled","fips","website","parents","health_district","covers","none_entries","sources","records_served","sources_read","sources_working"],"title":"JurisdictionDetail"},"JurisdictionList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/JurisdictionSummary"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"JurisdictionList"},"JurisdictionRef":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","kind","name"],"title":"JurisdictionRef"},"JurisdictionSummary":{"properties":{"sources_total":{"type":"integer","title":"Sources Total"},"standing":{"$ref":"#/components/schemas/Standings"},"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"population":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Population"},"parent_ids":{"items":{"type":"string"},"type":"array","title":"Parent Ids"},"within":{"items":{"type":"string"},"type":"array","title":"Within"},"filled":{"type":"boolean","title":"Filled"},"sources_read":{"type":"integer","title":"Sources Read","readOnly":true},"sources_working":{"type":"integer","title":"Sources Working","readOnly":true}},"type":"object","required":["sources_total","standing","id","kind","name","state","population","parent_ids","within","filled","sources_read","sources_working"],"title":"JurisdictionSummary"},"Kind":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"short":{"type":"string","title":"Short"},"records":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Records","description":"Records served of this kind, as counted after the last nightly read. Null while every source of it that holds records waits for its first count: served, not yet counted, never none."},"sources":{"type":"integer","title":"Sources","description":"Served sources that hold a record of this kind: those list_offices calls served or waiting, and those it calls held because a site they read from asks that its pages not be given to AI."},"sources_waiting":{"type":"integer","title":"Sources Waiting","description":"Of `sources`, those whose records `records` counts none of yet. The privacy check holds each record until it has read its words, a meeting.minutes summary written under older rules for what a summary may say is held until it is written again under the current ones, and list_offices calls a source waiting while it holds every record of the source, or held where a site the source reads from asks that its pages not be given to AI."},"sources_without":{"type":"integer","title":"Sources Without","description":"Served sources of this kind that hold no record of it yet: not read, read and found none, or waiting on a file. list_offices says which for a place, and why."},"lookup":{"items":{"type":"string"},"type":"array","title":"Lookup","description":"The fields holding the office's own number for a record, which search's `match` finds exactly."},"read_this_week":{"type":"integer","title":"Read This Week","description":"Of `sources`, those whose rows were counted by a read in the last 7 days. A source read this week that holds no record is in `sources_without`, not here."},"whole_this_week":{"type":"integer","title":"Whole This Week","description":"Of `sources`, those whose whole list was read in the last 7 days, where they can say."},"fields":{"items":{"$ref":"#/components/schemas/FieldFill"},"type":"array","title":"Fields","description":"How many of its sources and records fill each field, as counted after the last nightly read; empty before the first count."},"states":{"items":{"type":"string"},"type":"array","title":"States","description":"The states a record of this kind can be in, in the directory's words, which search's `state` filters by; empty for a kind with none."},"companies":{"items":{"type":"string"},"type":"array","title":"Companies","description":"Where its records name a company: its fields, such as contractor.name, or subject. Empty for a kind that names none."},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"The field holding the street address its records are at, such as site_address, which links each to every other record there (a record's address). Null for a kind with none."},"deadline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deadline","description":"The field holding when a record of this kind ends, such as due_at or expires_at, which search's deadline_after and deadline_before compare. Null for a kind with none."},"schema":{"additionalProperties":true,"type":"object","title":"Schema","description":"The kind's JSON Schema."}},"type":"object","required":["key","name","short","records","sources","sources_waiting","sources_without","lookup","read_this_week","whole_this_week","fields","states","companies","address","deadline","schema"],"title":"Kind"},"KindRecords":{"properties":{"kind":{"type":"string","title":"Kind"},"records":{"type":"integer","title":"Records"}},"type":"object","required":["kind","records"],"title":"KindRecords"},"LatestCheck":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","enum":["connected","changed","broken","blocked","not_connected","not_run","not_built"],"title":"Status"},"cause":{"anyOf":[{"type":"string","enum":["site_down","url_moved","blocked","layout_changed","data_gone","stale","upload_due","vendor_limit","vendor_down","none_yet"]},{"type":"null"}],"title":"Cause"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"refusal":{"anyOf":[{"type":"string","enum":["http-403","http-429","bot-check","connection-reset","tls-error","robots-unreachable"]},{"type":"null"}],"title":"Refusal"},"newest_record_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Newest Record At"}},"type":"object","required":["run_id","status","cause","checked_at","refusal","newest_record_at"],"title":"LatestCheck"},"LatestRun":{"properties":{"id":{"type":"string","title":"Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"runs":{"type":"integer","title":"Runs"},"counts":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"]},"type":"object","title":"Counts"},"outcome":{"anyOf":[{"type":"string","enum":["completed","budget_ended","failed"]},{"type":"null"}],"title":"Outcome"},"scheduled":{"type":"boolean","title":"Scheduled"},"standing":{"$ref":"#/components/schemas/Standings"},"causes":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["site_down","url_moved","blocked","layout_changed","data_gone","stale","upload_due","vendor_limit","vendor_down","none_yet"]},"type":"object","title":"Causes"},"not_read":{"additionalProperties":{"items":{"$ref":"#/components/schemas/NotReadSource"},"type":"array"},"propertyNames":{"enum":["kept-out","terms","fault","gone","checker","elsewhere","choice"]},"type":"object","title":"Not Read"},"changes":{"items":{"$ref":"#/components/schemas/StatusChange"},"type":"array","title":"Changes"},"tried":{"type":"integer","title":"Tried","description":"The night's checks the checker tried to read, of the sources `counts` counts: the\nnights before's \"W of T read without a problem\" (docs/copy/status.md).","readOnly":true}},"type":"object","required":["id","started_at","finished_at","duration_seconds","runs","counts","outcome","scheduled","standing","causes","not_read","changes","tried"],"title":"LatestRun"},"Manual":{"properties":{"every":{"type":"string","enum":["weekly","monthly","quarterly"],"title":"Every"},"how":{"type":"string","title":"How"},"format":{"type":"string","enum":["csv","xlsx","json","pdf","html","ics","other"],"title":"Format"}},"type":"object","required":["every","how","format"],"title":"Manual"},"MatchCount":{"properties":{"value":{"type":"string","title":"Value","description":"A kind's key, a place's id, or a year."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The place's name; null for a kind or a year."},"records":{"type":"integer","title":"Records"}},"type":"object","required":["value","records"],"title":"MatchCount"},"MatchCounts":{"properties":{"top":{"items":{"$ref":"#/components/schemas/MatchCount"},"type":"array","title":"Top","description":"The most, at most 20, most first."},"others":{"type":"integer","title":"Others","description":"How many matches the rest hold together: 0 when `top` names them all."}},"type":"object","required":["top","others"],"title":"MatchCounts"},"NamedCompany":{"properties":{"id":{"type":"string","title":"Id","description":"The company's id: its state and its name with case, punctuation and its ending (LLC, Inc., Co.) set aside, such as oh:certasite. search_records' `company` finds every record naming it."},"name":{"type":"string","title":"Name","description":"The name as this record's office wrote it."},"field":{"type":"string","title":"Field","description":"Where the record names it: one of its fields, such as contractor.name, or subject."},"records":{"type":"integer","title":"Records","description":"How many served records name the company, this one included."}},"type":"object","required":["id","name","field","records"],"title":"NamedCompany"},"NoneEntry":{"properties":{"family":{"type":"string","title":"Family"},"instead":{"type":"string","enum":["pdf-forms","request","another-body","not-published","needs-browser","sign-in-required","unknown-blocked","not-looked"],"title":"Instead"},"checked":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Checked"},"found":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Found"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"body_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"secondhand":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Secondhand"},"peers":{"anyOf":[{"$ref":"#/components/schemas/Peers"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["family","instead"],"title":"NoneEntry","description":"A family a body does not publish, and what it does instead: the registry's none entry,\nevery field of it, so one the registry gains fails here until it is named."},"NotReadSource":{"properties":{"source_id":{"type":"string","title":"Source Id"},"jurisdiction_id":{"type":"string","title":"Jurisdiction Id"},"jurisdiction_name":{"type":"string","title":"Jurisdiction Name"},"state":{"type":"string","title":"State"},"family":{"type":"string","title":"Family"},"store":{"type":"string","enum":["records","status-only","minutes"],"title":"Store"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["source_id","jurisdiction_id","jurisdiction_name","state","family","store","name"],"title":"NotReadSource","description":"A source the run counted as Not read, with what its title is made of."},"Office":{"properties":{"place":{"$ref":"#/components/schemas/Place","description":"Whose office it is."},"kept":{"type":"string","enum":["here","district","body","statewide"],"title":"Kept","description":"Why it is in the answer: here (the place's own, or a place inside it), district (the place's health district, for a kind districts keep), body (an office another place says keeps its records), statewide (the state's or a federal office, for a kind no place keeps: search it with `source`)."},"named_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Named By","description":"For `body`: the place whose entry names this office as its keeper."},"outcome":{"type":"string","enum":["not-looked","not-online","kept-elsewhere","not-read","held","status-only","minutes-only","none-yet","waiting","served","no-source"],"title":"Outcome","description":"`not-looked`: Research hasn't looked yet for what the office posts of this kind, so what it keeps is unknown. `not-online`: The office posts none online (`instead` says what it does). `kept-elsewhere`: It says another office keeps them (`kept_by`). `not-read`: A source the checker doesn't read, holding no records of this kind (`not_read` says why). `held`: Its records of this kind are kept and not served (`not_read` says why). Where its terms bar us, `asked_on` is the day the registry records asking its office, or the company whose site it is, to allow them; it is null until then. `status-only`: Checked, with no record kept (`basis` says why). `minutes-only`: A list of its meetings' minutes alone, read for them (their kind is meeting.minutes) and holding none of this kind. `none-yet`: Its source is served and holds no records of this kind yet; the source's `status` and `cause` say why and what comes next. `waiting`: Its source is served and holds records of this kind, none of which is listed yet: each is held until the privacy reader has read it for private people's names, or, for meeting.minutes, until its summary is written again under the current rules for what a summary may say. Where `not_read` is given, the checker no longer reads the source (since `since`), and what it read before is held the same way. `served`: Its records are served, except any the privacy reader has not yet read for private people's names. Where `not_read` is given, the checker no longer reads the source (since `since`) and serves what it read before. `no-source`: A keeper with no source of this kind in the directory."},"source":{"anyOf":[{"$ref":"#/components/schemas/SourceRef"},{"type":"null"}],"description":"The source, for not-read, held, status-only, minutes-only, none-yet, waiting and served."},"instead":{"anyOf":[{"type":"string","enum":["pdf-forms","request","another-body","not-published","needs-browser","sign-in-required","unknown-blocked","not-looked"]},{"type":"string","enum":["request","needs-browser","file-route","manual-possible","permission"]},{"type":"null"}],"title":"Instead","description":"For not-online and kept-elsewhere, what the office does instead (not-published, pdf-forms, request, another-body, …). For not-read and held, what would make the source readable."},"kept_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kept By","description":"For kept-elsewhere: the place whose office keeps them."},"not_read":{"anyOf":[{"type":"string","enum":["http-401","http-403","http-429","bot-check","captcha","robots","robots-unreachable","connection-reset","sign-in","terms","not-found-everywhere","tls-error","render:client","sensitivity:individual","policy:hold","read-elsewhere","documents","no-reader","moved","not-posted","privacy","none-linked","none-read-yet","ai-input:no","content-use"]},{"type":"null"}],"title":"Not Read","description":"For not-read, held, and a served source the checker no longer reads: why, as the directory's /v1/sources says, or one only this answer gives (none-linked, none-read-yet, ai-input:no, below). For meeting minutes, a kind read from documents an agenda source links, a source served for its agendas that holds no minutes is not read for them: none-linked where its agendas link none the checker finds, none-read-yet where it found some and has read none yet. For held, ai-input:no where a site it reads from asks, in its robots.txt, that its pages not be given to AI, and an AI model is what checks each record for private people's names; content-use where a site it reads from limits how its pages may be used (Content-Signal use=reference in its robots.txt, or Cloudflare's default where it says nothing), and an AI summary of its meetings' minutes needs more than that allows, so none is made; where a site says use=immediate, every record of the source is held."},"not_read_group":{"anyOf":[{"type":"string","enum":["kept-out","terms","fault","gone","checker","elsewhere","choice"]},{"type":"null"}],"title":"Not Read Group","description":"Where `not_read` is given: the reason's group."},"via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Via","description":"For a source whose records come through another: that source's id."},"since":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Since","description":"Where `not_read` is given: the day its block was seen, or its terms were read where its terms are why, or the newest day a site it reads from was read asking that its pages not be given to AI."},"asked_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Asked On","description":"For held: the day the registry records its office, or the company whose site it is, was asked to allow it, as recorded once a send is; null until then, and for a source held for privacy."},"basis":{"anyOf":[{"type":"string","enum":["terms-bar-redistribution","peoples-records","terms-bar-commercial-use","terms-unread","no-terms-found","terms-allow"]},{"type":"null"}],"title":"Basis","description":"For status-only: what its terms allow, which is why nothing is kept."},"ask":{"anyOf":[{"$ref":"#/components/schemas/AskFor"},{"type":"null"}],"description":"The ask_for_data call that asks for it; null where its source is served for that kind (holding records or not yet), or its terms bar commercial use, or asking can't change what the directory knows."},"records":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Records","description":"For served: how many records of the kind it serves, as counted after the last nightly read; null while they aren't counted yet (a source's first night, or one read afresh), or, for meeting.minutes, while its count and its count of summaries to write again disagree."},"filled":{"anyOf":[{"items":{"$ref":"#/components/schemas/FilledBy"},"type":"array"},{"type":"null"}],"title":"Filled","description":"For served: each field of the kind its records hold, with how many of them hold it, so a caller can tell what this office's records can answer before it reads one. A field none holds is left out; null while its fields aren't counted yet, or while some of its records wait for the privacy reader or, for meeting.minutes, to be written again under the current rules for what a summary may say."}},"type":"object","required":["place","kept","named_by","outcome","source","instead","kept_by","not_read","not_read_group","via","since","asked_on","basis","ask"],"title":"Office"},"OfficeRecords":{"properties":{"source":{"type":"string","title":"Source","description":"The source's id, usable as a source scope."},"office":{"type":"string","title":"Office"},"kind":{"type":"string","title":"Kind"},"records":{"type":"integer","title":"Records"}},"type":"object","required":["source","office","kind","records"],"title":"OfficeRecords"},"Offices":{"properties":{"kind":{"type":"string","title":"Kind"},"place":{"anyOf":[{"$ref":"#/components/schemas/Place"},{"type":"null"}],"description":"The place asked about; null when the directory holds no file for it."},"in_directory":{"type":"boolean","title":"In Directory","description":"False when the directory holds no file for the place: what it keeps is unknown, never none."},"offices":{"items":{"$ref":"#/components/schemas/Office"},"type":"array","title":"Offices","description":"The place's own first, then its district's, keepers named, statewide."},"counts":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["not-looked","not-online","kept-elsewhere","not-read","held","status-only","minutes-only","none-yet","waiting","served","no-source"]},"type":"object","title":"Counts"},"extent":{"$ref":"#/components/schemas/Extent"},"ask":{"anyOf":[{"$ref":"#/components/schemas/AskFor"},{"type":"null"}],"description":"For a place not in the directory: the ask_for_data call that asks for it."}},"type":"object","required":["kind","place","in_directory","offices","counts","extent","ask"],"title":"Offices"},"OfficesSummary":{"properties":{"kind":{"type":"string","title":"Kind"},"place":{"type":"string","title":"Place","description":"A place id."},"counts":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["not-looked","not-online","kept-elsewhere","not-read","held","status-only","minutes-only","none-yet","waiting","served","no-source"]},"type":"object","title":"Counts","description":"The offices that keep this kind for this place, by what the directory knows of each; list_offices with this kind and place lists them. `not-looked`: Research hasn't looked yet for what the office posts of this kind, so what it keeps is unknown. `not-online`: The office posts none online (`instead` says what it does). `kept-elsewhere`: It says another office keeps them (`kept_by`). `not-read`: A source the checker doesn't read, holding no records of this kind (`not_read` says why). `held`: Its records of this kind are kept and not served (`not_read` says why). Where its terms bar us, `asked_on` is the day the registry records asking its office, or the company whose site it is, to allow them; it is null until then. `status-only`: Checked, with no record kept (`basis` says why). `minutes-only`: A list of its meetings' minutes alone, read for them (their kind is meeting.minutes) and holding none of this kind. `none-yet`: Its source is served and holds no records of this kind yet; the source's `status` and `cause` say why and what comes next. `waiting`: Its source is served and holds records of this kind, none of which is listed yet: each is held until the privacy reader has read it for private people's names, or, for meeting.minutes, until its summary is written again under the current rules for what a summary may say. Where `not_read` is given, the checker no longer reads the source (since `since`), and what it read before is held the same way. `served`: Its records are served, except any the privacy reader has not yet read for private people's names. Where `not_read` is given, the checker no longer reads the source (since `since`) and serves what it read before. `no-source`: A keeper with no source of this kind in the directory."},"ask":{"anyOf":[{"$ref":"#/components/schemas/AskFor"},{"type":"null"}],"description":"The ask_for_data call that asks for this kind in this place, where an office not served may be asked for; add what you were looking for as `text`."}},"type":"object","required":["kind","place","counts","ask"],"title":"OfficesSummary"},"Page":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ServedRecord"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Pass it back to read on; null at the end."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Why nothing came back, when that's worth saying."},"offices":{"anyOf":[{"$ref":"#/components/schemas/OfficesSummary"},{"type":"null"}],"description":"For a call naming a kind and a place: which offices keep them, served and not."},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total","description":"How many records match. With words (q), the search service's count. Without words, from the counts kept as each night writes, where the search names no window and no term beside kind, place and source; null where it names one, or while a source it covers isn't counted yet (its first night, or one read afresh), which the day's last count adds."},"total_exact":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Total Exact","description":"Whether `total` counts every match. With words it does on a search's last page, a page short of its limit that holds records or starts the search; on an empty page past the start, any other page, and with limit=0, it is the search service's approximation, near and not always exact. It is false on any page with words while the search leaves out a whole office, or all of an office's meeting-minutes summaries, which `left_out` names. Without words it is false: the total is the counts each night's write keeps by source and kind, not the search's own rows. It is true for a search no served source holds, whose 0 is exact. Null where there is no total."},"counts":{"anyOf":[{"$ref":"#/components/schemas/Counts"},{"type":"null"}],"description":"For a search with words (q): how many match by kind, place and year, so a search narrows before it reads on; null otherwise. The search service counts them, and can count a kind, place or year low where a search matches more than each lists; `others` is what its own count holds beyond those listed. Its count, which they add up to, can differ from an exact `total`."},"left_out":{"items":{"type":"string"},"type":"array","title":"Left Out","description":"What this answer leaves out that you might expect, one sentence each: records newer than the word index, offices a search by words leaves out whole until the index's next update, meeting-minutes summaries a search by words leaves out while some are held, records a date window can't place, sources a search by city or ZIP code can't reach, where the offices' names are."}},"type":"object","required":["items","next_cursor"],"title":"Page"},"Peers":{"properties":{"with_source":{"type":"integer","title":"With Source"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["with_source","total"],"title":"Peers","description":"How many places of a kind post a family's records: of the places of this one's kind in\nthe directory, those with a source of the family whose reason it isn't read (if any) doesn't\nsay the records are gone."},"Place":{"properties":{"id":{"type":"string","title":"Id","description":"The place's id, usable as a jurisdiction scope."},"name":{"type":"string","title":"Name","description":"As the place calls itself; a township's carries its county, since names repeat."},"kind":{"type":"string","title":"Kind","description":"Its kind of place, as the directory's kinds name it: a county, a city, a health-district, the state or a federal agency, and others where a state has them."},"parents":{"items":{"type":"string"},"type":"array","title":"Parents","description":"The places it sits inside, a county first where it has one."}},"type":"object","required":["id","name","kind","parents"],"title":"Place"},"PlaceRecords":{"properties":{"place":{"$ref":"#/components/schemas/Place"},"records":{"type":"integer","title":"Records"}},"type":"object","required":["place","records"],"title":"PlaceRecords"},"Places":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Place"},"type":"array","title":"Items","description":"The places whose name holds the words, the kind of place asked for first, the shortest names next."},"more":{"type":"boolean","title":"More","description":"True where more places hold the words than the answer lists: name the place more fully, or by its kind (Franklin County, City of Franklin)."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Where none matches: which states the directory covers, with the places it holds in each, and how to ask for a place it doesn't hold. Null where any matches."}},"type":"object","required":["items","more","note"],"title":"Places"},"PlatformDetail":{"properties":{"sources_total":{"type":"integer","title":"Sources Total"},"standing":{"$ref":"#/components/schemas/Standings"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"vendor":{"type":"string","title":"Vendor"},"product":{"type":"string","title":"Product"},"families":{"items":{"type":"string"},"type":"array","title":"Families"},"built":{"type":"boolean","title":"Built"},"by_status":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"]},"type":"object","title":"By Status"},"about":{"type":"string","title":"About"},"sources":{"items":{"$ref":"#/components/schemas/SourceSummary"},"type":"array","title":"Sources"},"seen_at":{"items":{"$ref":"#/components/schemas/PlatformFinding"},"type":"array","title":"Seen At"},"sources_read":{"type":"integer","title":"Sources Read","readOnly":true},"sources_working":{"type":"integer","title":"Sources Working","readOnly":true}},"type":"object","required":["sources_total","standing","key","name","vendor","product","families","built","by_status","about","sources","seen_at","sources_read","sources_working"],"title":"PlatformDetail"},"PlatformFinding":{"properties":{"jurisdiction":{"$ref":"#/components/schemas/JurisdictionRef"},"family":{"type":"string","title":"Family"},"instead":{"type":"string","enum":["pdf-forms","request","another-body","not-published","needs-browser","sign-in-required","unknown-blocked","not-looked"],"title":"Instead"}},"type":"object","required":["jurisdiction","family","instead"],"title":"PlatformFinding","description":"A place research found on the platform with no source there: a none entry whose page is\non it (public_records/registry/patterns.py)."},"PlatformList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PlatformSummary"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"PlatformList"},"PlatformSummary":{"properties":{"sources_total":{"type":"integer","title":"Sources Total"},"standing":{"$ref":"#/components/schemas/Standings"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"vendor":{"type":"string","title":"Vendor"},"product":{"type":"string","title":"Product"},"families":{"items":{"type":"string"},"type":"array","title":"Families"},"built":{"type":"boolean","title":"Built"},"by_status":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"]},"type":"object","title":"By Status"},"sources_read":{"type":"integer","title":"Sources Read","readOnly":true},"sources_working":{"type":"integer","title":"Sources Working","readOnly":true}},"type":"object","required":["sources_total","standing","key","name","vendor","product","families","built","by_status","sources_read","sources_working"],"title":"PlatformSummary"},"RecordAddress":{"properties":{"id":{"type":"string","title":"Id","description":"The address's id: its state, the street in the Postal Service's standard form and its city, such as oh:100 N MAIN ST|SPRINGFIELD. search_records' `address` finds every record there, find_address counts them."},"address":{"type":"string","title":"Address","description":"The address as this record's office wrote it, suite and all. A permit in a building of several homes is at its building's street instead, without its unit, in the Postal Service's standard form."},"records":{"type":"integer","title":"Records","description":"How many served records are at the address, this one included."}},"type":"object","required":["id","address","records"],"title":"RecordAddress"},"RecordAnswer":{"properties":{"record":{"$ref":"#/components/schemas/ServedRecord"},"history":{"anyOf":[{"items":{"$ref":"#/components/schemas/Version"},"type":"array"},{"type":"null"}],"title":"History","description":"Every stored version, oldest first; null when not included."},"history_note":{"anyOf":[{"type":"string","const":"not included"},{"type":"null"}],"title":"History Note","description":"Set when the caller's allowance doesn't include a record's history, which `as_of` is part of."},"history_left_out":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"History Left Out","description":"Where `history` isn't included: how many earlier versions of the record are stored, and what reads them, in sentences to pass on to the person behind the agent. Null where it is included, and for a record with no earlier version."},"as_of":{"anyOf":[{"$ref":"#/components/schemas/AsOf"},{"type":"null"}],"description":"The record as it was read at the time asked, where `as_of` was given and included."}},"type":"object","required":["record","history","history_note"],"title":"RecordAnswer"},"RunList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RunSummary"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"RunList"},"RunSummary":{"properties":{"id":{"type":"string","title":"Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"runs":{"type":"integer","title":"Runs"},"counts":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"]},"type":"object","title":"Counts"},"outcome":{"anyOf":[{"type":"string","enum":["completed","budget_ended","failed"]},{"type":"null"}],"title":"Outcome"},"scheduled":{"type":"boolean","title":"Scheduled"},"tried":{"type":"integer","title":"Tried","description":"The night's checks the checker tried to read, of the sources `counts` counts: the\nnights before's \"W of T read without a problem\" (docs/copy/status.md).","readOnly":true}},"type":"object","required":["id","started_at","finished_at","duration_seconds","runs","counts","outcome","scheduled","tried"],"title":"RunSummary"},"ServedRecord":{"properties":{"id":{"type":"string","title":"Id","description":"`<source id>:<record id>`, stable night to night."},"kind":{"type":"string","title":"Kind","description":"The kind of record, a family key such as procurement.solicitation."},"place":{"$ref":"#/components/schemas/Place"},"office":{"type":"string","title":"Office","description":"Who published it."},"source":{"$ref":"#/components/schemas/SourceRef"},"url":{"type":"string","title":"Url","description":"The record's own page at the office where one exists, else the office's list."},"subject":{"additionalProperties":true,"type":"object","title":"Subject","description":"Who or what the record is about: a government body or a business."},"location":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Location","description":"A premises, or the site a case is about as the office posted it; never a person's own address."},"fields":{"additionalProperties":true,"type":"object","title":"Fields","description":"The kind's own fields, as its JSON Schema says, as published. A field named in `not_read` is left out: absent means this source's reader doesn't read it, null means the office states none, and an empty list means it lists none."},"not_read":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Not Read","description":"The kind's fields this source's reader never reads, whatever the office's page or document shows, each left out of `fields`: an inspection read from a report's first page names `violations` here rather than give an empty list. Empty where it reads them all. Null where the reader doesn't say which it reads; there an empty field may be one it didn't read."},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"Its status in the directory's words, one of its kind's `states`, beside the office's own word in `fields`: `other` for a word not yet sorted, null where the office states none or the kind has no states. Inspection results stay as written."},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At","description":"The date it is filed and sorted by, which `dated_by` names: its own date; the date its office's document shows, where a check corrected it (see doubts); for one with no date of its own, its deadline where that is earlier than the night first seen, else that night, or a liquor permit's export where it holds no issue date; and for one whose own date seems wrong (see doubts), its kind's next date, else the night first seen. The office's own dates stay in `fields`."},"dated_by":{"type":"string","title":"Dated By","description":"What gives `occurred_at`: the field of `fields` it is (`posted_at`, `issued_at`, `due_at`, `meeting_at`...), `check` where a check corrected it, `first_seen` for the night the checker first read it, or `export` for the date of the file it was read from."},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At","description":"When the checker first read it."},"first_seen_in":{"anyOf":[{"type":"string","enum":["list","backfill"]},{"type":"null"}],"title":"First Seen In","description":"Which read found it: list (the source's nightly read), backfill (its history), null if stored before that was kept."},"listed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Listed","description":"On a source whose list shows only what is in force: whether its list still holds it; null on every other source."},"last_changed_at":{"type":"string","format":"date-time","title":"Last Changed At","description":"When the product last found its content changed: the night that read the change, or, for a change a walk of the source's history found (its event's `walked`), the night it was found; the office made it some time before."},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At","description":"The start of the run that last read this record at its source: what it says, its status above all, is as of then. The source's `freshness` is the list's; this is the record's own. A source that reads back a window of days reads an older record again only when its history is walked, so an old record can be weeks behind a list read last night. A record first read or changed in that run shows it a little before its `first_seen_at` or `last_changed_at`, which are the moments it was stored."},"versions":{"type":"integer","title":"Versions","description":"How many versions of it have been stored."},"companies":{"items":{"$ref":"#/components/schemas/NamedCompany"},"type":"array","title":"Companies","description":"The companies it names by a name ending in LLC, Inc., Co. or another ending its state's law sets; a person's own name never names one. A link says only that offices wrote the same name."},"doubts":{"items":{"$ref":"#/components/schemas/Doubt"},"type":"array","title":"Doubts","description":"What about this record seems wrong, each value named with why, and the value meant where the office's own document shows it. A model reads each record that has a document beside it, and the notes it is sure of are served with the rule's own, which hold whether or not a model has read it: a date in a year no record can have, or the date of a thing already done that falls after the night it was read. Such a date never files the record (`dated_by`). The record is served as read all the same: nothing is deleted or hidden for seeming wrong, and a date corrected is the one `occurred_at` gives, the office's kept in `fields`. Empty for most."},"checked":{"anyOf":[{"$ref":"#/components/schemas/Checked"},{"type":"null"}],"description":"The latest check of this version by a model beside its document. Null where none has been made beside it, and `unchecked` says why."},"unchecked":{"anyOf":[{"type":"string","enum":["waiting","derived","too_long","ai_input","no_text"]},{"type":"null"}],"title":"Unchecked","description":"Why `checked` is null. `waiting`: not yet read. `derived`: itself a model's reading of its office's document (a meeting's minutes), held to it when it was read. `too_long`: the pages it stands on, or a document with no pages whole, are more than a check may send. `ai_input`: its office's site or terms say no AI. `no_text`: no document to read it beside, such as a row of a data file, a roster or a scanned page, or its words are not in its document's text. A record checked before 24 November 2026 from its values alone is shown as `no_text` too. Null once checked."},"address":{"anyOf":[{"$ref":"#/components/schemas/RecordAddress"},{"type":"null"}],"description":"The street address it is at, where its kind has one and it reads as a house number, a street and a city. Records at one address are only at the same address: a building holds many businesses."},"terms":{"$ref":"#/components/schemas/public_records__data__models__Terms"},"matched":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Matched","description":"For a search with words (q): the record's values that hold them, each word found marked « and »; null for every other read."}},"type":"object","required":["id","kind","place","office","source","url","subject","location","fields","not_read","state","occurred_at","dated_by","first_seen_at","first_seen_in","listed","last_changed_at","last_seen_at","versions","companies","doubts","checked","unchecked","address","terms"],"title":"ServedRecord"},"SourceDetail":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"jurisdiction_id":{"type":"string","title":"Jurisdiction Id"},"jurisdiction_name":{"type":"string","title":"Jurisdiction Name"},"state":{"type":"string","title":"State"},"family":{"type":"string","title":"Family"},"platform":{"type":"string","title":"Platform"},"url":{"type":"string","title":"Url"},"route":{"type":"string","enum":["api","file","feed","page","form","manual","request","none"],"title":"Route"},"policy":{"type":"string","enum":["connect","catalogue","hold"],"title":"Policy"},"store":{"type":"string","enum":["records","status-only","minutes"],"title":"Store"},"instead":{"anyOf":[{"type":"string","enum":["request","needs-browser","file-route","manual-possible","permission"]},{"type":"null"}],"title":"Instead"},"cadence":{"type":"string","enum":["daily","weekly","monthly","irregular"],"title":"Cadence"},"render":{"type":"string","enum":["server","client","unknown"],"title":"Render"},"sensitivity":{"type":"string","enum":["government","business","individual"],"title":"Sensitivity"},"reuse":{"type":"string","enum":["unrestricted","restricted","unknown","unread"],"title":"Reuse"},"block":{"anyOf":[{"$ref":"#/components/schemas/Block"},{"type":"null"}]},"manual":{"anyOf":[{"$ref":"#/components/schemas/Manual"},{"type":"null"}]},"latest":{"anyOf":[{"$ref":"#/components/schemas/LatestCheck"},{"type":"null"}]},"freshness":{"$ref":"#/components/schemas/Freshness"},"not_read":{"anyOf":[{"type":"string","enum":["http-401","http-403","http-429","bot-check","captcha","robots","robots-unreachable","connection-reset","sign-in","terms","not-found-everywhere","tls-error","render:client","sensitivity:individual","policy:hold","read-elsewhere","documents","no-reader","moved","not-posted","privacy"]},{"type":"null"}],"title":"Not Read"},"not_read_group":{"anyOf":[{"type":"string","enum":["kept-out","terms","fault","gone","checker","elsewhere","choice"]},{"type":"null"}],"title":"Not Read Group"},"via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Via"},"standing":{"type":"string","enum":["working","problem","site","missed","update_due","no_reader","untried","not_read"],"title":"Standing"},"terms":{"$ref":"#/components/schemas/public_records__api__schemas__Terms"},"verified":{"$ref":"#/components/schemas/Verified"},"time_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone"},"last_upload_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Upload At"},"records_served":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Records Served"},"asked":{"type":"integer","title":"Asked"},"askable":{"type":"boolean","title":"Askable"}},"type":"object","required":["id","key","name","jurisdiction_id","jurisdiction_name","state","family","platform","url","route","policy","store","instead","cadence","render","sensitivity","reuse","block","manual","latest","freshness","not_read","not_read_group","via","standing","terms","verified","time_zone","last_upload_at","records_served","asked","askable"],"title":"SourceDetail"},"SourceList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SourceSummary"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"SourceList"},"SourceRef":{"properties":{"id":{"type":"string","title":"Id","description":"The source's id, usable as a source scope."},"name":{"type":"string","title":"Name","description":"The office or body whose list it is."},"url":{"type":"string","title":"Url","description":"The office's own page for this list."},"status":{"anyOf":[{"type":"string","enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"]},{"type":"null"}],"title":"Status","description":"Its status at the last finished check, as the site shows it, null before any check. `connected`: The last check read this source. Its records came through the way they did before. `changed`: The last check read this source, but something about its records has changed. The reason is shown beside it. `broken`: The last check couldn't open this source, or couldn't read the records on it. `blocked`: The site asks automated checkers to stay off this page, or it turned the checker away. The checker stopped there. `upload_due`: A person updates this source by hand on a schedule. The last update is older than that schedule. `not_built`: This source is in the directory and set to be read, but the checker can't read this kind of page yet. `not_run`: This source is waiting its turn to be read. `not_connected`: This source is in the directory, but the checker doesn't read it. The reason is shown beside it."},"cause":{"anyOf":[{"type":"string","enum":["site_down","url_moved","blocked","layout_changed","data_gone","stale","upload_due","vendor_limit","vendor_down","none_yet"]},{"type":"null"}],"title":"Cause","description":"Beside `changed` or `broken`, why, as the site shows it beside the status; beside `not_run`, why its vendor held it for a later run, where one did: its daily limit, or its servers not answering. Null beside any other status, and where the check named no cause. `site_down`: The site didn't answer within 30 seconds, or it answered with an error each time it was tried. `url_moved`: The page wasn't at its address, or the address now sends visitors to another site. `layout_changed`: The page opened, but its records are laid out in a new way. The checker couldn't read them as before. `data_gone`: The page opened but showed no records. The check before found some. `none_yet`: The page opened but showed no records. No check has found any on it. `stale`: No new record has appeared in three times the usual gap between records. For a source that posts weekly, that's three weeks. `vendor_limit`: A company hosts this page and many other offices' pages. Its terms limit how many pages a program may read from them in a day. The checker reads them in turn, and this one waits its turn. `vendor_down`: A company hosts this page and many other offices' pages. Its servers stopped answering for a few minutes while the checker read them, so this check didn't reach this page. `blocked`: The site keeps automated checkers off this page, by asking them to stay off or by turning them away. The reason is shown beside it."},"freshness":{"$ref":"#/components/schemas/Freshness"}},"type":"object","required":["id","name","url","status","cause","freshness"],"title":"SourceRef"},"SourceSummary":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"jurisdiction_id":{"type":"string","title":"Jurisdiction Id"},"jurisdiction_name":{"type":"string","title":"Jurisdiction Name"},"state":{"type":"string","title":"State"},"family":{"type":"string","title":"Family"},"platform":{"type":"string","title":"Platform"},"url":{"type":"string","title":"Url"},"route":{"type":"string","enum":["api","file","feed","page","form","manual","request","none"],"title":"Route"},"policy":{"type":"string","enum":["connect","catalogue","hold"],"title":"Policy"},"store":{"type":"string","enum":["records","status-only","minutes"],"title":"Store"},"instead":{"anyOf":[{"type":"string","enum":["request","needs-browser","file-route","manual-possible","permission"]},{"type":"null"}],"title":"Instead"},"cadence":{"type":"string","enum":["daily","weekly","monthly","irregular"],"title":"Cadence"},"render":{"type":"string","enum":["server","client","unknown"],"title":"Render"},"sensitivity":{"type":"string","enum":["government","business","individual"],"title":"Sensitivity"},"reuse":{"type":"string","enum":["unrestricted","restricted","unknown","unread"],"title":"Reuse"},"block":{"anyOf":[{"$ref":"#/components/schemas/Block"},{"type":"null"}]},"manual":{"anyOf":[{"$ref":"#/components/schemas/Manual"},{"type":"null"}]},"latest":{"anyOf":[{"$ref":"#/components/schemas/LatestCheck"},{"type":"null"}]},"freshness":{"$ref":"#/components/schemas/Freshness"},"not_read":{"anyOf":[{"type":"string","enum":["http-401","http-403","http-429","bot-check","captcha","robots","robots-unreachable","connection-reset","sign-in","terms","not-found-everywhere","tls-error","render:client","sensitivity:individual","policy:hold","read-elsewhere","documents","no-reader","moved","not-posted","privacy"]},{"type":"null"}],"title":"Not Read"},"not_read_group":{"anyOf":[{"type":"string","enum":["kept-out","terms","fault","gone","checker","elsewhere","choice"]},{"type":"null"}],"title":"Not Read Group"},"via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Via"},"standing":{"type":"string","enum":["working","problem","site","missed","update_due","no_reader","untried","not_read"],"title":"Standing"}},"type":"object","required":["id","key","name","jurisdiction_id","jurisdiction_name","state","family","platform","url","route","policy","store","instead","cadence","render","sensitivity","reuse","block","manual","latest","freshness","not_read","not_read_group","via","standing"],"title":"SourceSummary"},"Standings":{"properties":{"working":{"type":"integer","title":"Working"},"problem":{"type":"integer","title":"Problem"},"site":{"type":"integer","title":"Site"},"missed":{"type":"integer","title":"Missed"},"update_due":{"type":"integer","title":"Update Due"},"no_reader":{"type":"integer","title":"No Reader"},"untried":{"type":"integer","title":"Untried"},"not_read":{"type":"integer","title":"Not Read"},"tried":{"type":"integer","title":"Tried","description":"The sources the checker tried at their last check.","readOnly":true},"set_to_read":{"type":"integer","title":"Set To Read","description":"The sources set to be read every night: every place but `not_read`.","readOnly":true}},"type":"object","required":["working","problem","site","missed","update_due","no_reader","untried","not_read","tried","set_to_read"],"title":"Standings","description":"How many sources stand in each place (api/standing.py), every place named, zeros kept.\n\nThe checker tried `working`, `problem` and `site` at their last check. It didn't try the rest:\n`missed` its last check didn't reach, `update_due` waits on a person's upload, `no_reader` is a\nkind of page it can't read yet, `untried` has had no check since it was set to be read. And\n`not_read` it doesn't read at all."},"State":{"properties":{"sources_total":{"type":"integer","title":"Sources Total"},"standing":{"$ref":"#/components/schemas/Standings"},"state":{"type":"string","title":"State"},"last_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run Id"},"last_check_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Check At"},"jurisdictions_total":{"type":"integer","title":"Jurisdictions Total"},"governments":{"type":"integer","title":"Governments"},"systems_total":{"type":"integer","title":"Systems Total"},"systems_read":{"type":"integer","title":"Systems Read"},"own_sites_read":{"type":"integer","title":"Own Sites Read"},"by_policy":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Policy"},"by_family":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Family"},"by_status":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"]},"type":"object","title":"By Status"},"sources_read":{"type":"integer","title":"Sources Read","readOnly":true},"sources_working":{"type":"integer","title":"Sources Working","readOnly":true}},"type":"object","required":["sources_total","standing","state","last_run_id","last_check_at","jurisdictions_total","governments","systems_total","systems_read","own_sites_read","by_policy","by_family","by_status","sources_read","sources_working"],"title":"State"},"StatusChange":{"properties":{"source_id":{"type":"string","title":"Source Id"},"jurisdiction_id":{"type":"string","title":"Jurisdiction Id"},"jurisdiction_name":{"type":"string","title":"Jurisdiction Name"},"state":{"type":"string","title":"State"},"family":{"type":"string","title":"Family"},"store":{"type":"string","enum":["records","status-only","minutes"],"title":"Store"},"before":{"type":"string","enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"],"title":"Before"},"now":{"type":"string","enum":["connected","changed","broken","blocked","not_connected","not_run","not_built","upload_due"],"title":"Now"},"cause":{"anyOf":[{"type":"string","enum":["site_down","url_moved","blocked","layout_changed","data_gone","stale","upload_due","vendor_limit","vendor_down","none_yet"]},{"type":"null"}],"title":"Cause"}},"type":"object","required":["source_id","jurisdiction_id","jurisdiction_name","state","family","store","before","now","cause"],"title":"StatusChange","description":"A source whose status in this run differs from its check before."},"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"},"VendorTerms":{"properties":{"key":{"type":"string","title":"Key"},"vendor":{"type":"string","title":"Vendor"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"read_on":{"type":"string","format":"date","title":"Read On"},"clause":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clause"},"reuse":{"type":"string","enum":["unrestricted","restricted","unknown","unread"],"title":"Reuse"},"restricts":{"items":{"type":"string"},"type":"array","title":"Restricts"}},"type":"object","required":["key","vendor","read_on","reuse"],"title":"VendorTerms","description":"A vendor's terms over the site a source's records are on, read once for every source there\n(docs/registry.md, Vendors)."},"Verified":{"properties":{"on":{"type":"string","format":"date","title":"On"},"by":{"type":"string","title":"By"},"http":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["on","by","http"],"title":"Verified"},"Version":{"properties":{"version":{"type":"integer","title":"Version"},"seen_at":{"type":"string","format":"date-time","title":"Seen At","description":"When this version was first read."},"fields":{"additionalProperties":true,"type":"object","title":"Fields","description":"The version's fields, as the record's `fields`: one its source's reader never reads, empty in this version, is left out."},"doubts":{"items":{"$ref":"#/components/schemas/Doubt"},"type":"array","title":"Doubts","description":"What seems wrong about this version, as `doubts` says of a record."},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fingerprint","description":"The SHA-256 of the office's page or file this version was read from, as fetched. Null for uploaded files and for records read from CivicClerk's and WordPress's history pages. The page itself is never served."}},"type":"object","required":["version","seen_at","fields","doubts","fingerprint"],"title":"Version"},"public_records__api__schemas__Terms":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"read_on":{"type":"string","format":"date","title":"Read On"},"clause":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clause"},"reuse":{"type":"string","enum":["unrestricted","restricted","unknown","unread"],"title":"Reuse"},"restricts":{"items":{"type":"string"},"type":"array","title":"Restricts"},"vendors":{"items":{"$ref":"#/components/schemas/VendorTerms"},"type":"array","title":"Vendors"}},"type":"object","required":["read_on","reuse"],"title":"Terms","description":"The source's office's own terms, and each vendor's whose site it is read from."},"public_records__data__models__Terms":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"The terms of use its records are posted under: its office's, else those of the vendor whose site holds them, where either posts any."},"basis":{"type":"string","enum":["terms-bar-redistribution","peoples-records","terms-bar-commercial-use","terms-unread","no-terms-found","terms-allow"],"title":"Basis","description":"terms-allow: the terms were read and allow reuse. no-terms-found: the source posts none."}},"type":"object","required":["url","basis"],"title":"Terms"}}}}