{"openapi":"3.1.0","info":{"title":"AsOf API","version":"1","summary":"Dated, sourced claims about entities. Nothing is overwritten: superseded claims stay visible.","description":"Open and unauthenticated, rate limited per IP (not /v1/health); an API key (securitySchemes: X-API-Key or Authorization: Bearer asof_…) is optional on every path, lifts the limit to the key's own budget and is required by /v1/subscriptions. Every claim row carries a status and an assertable flag, with why_not when it is false, and three dates: valid_from (took effect), published (earliest source publication) and recorded (first held by AsOf); entity, claim and search rows also carry sources, a confidence score and the evidence behind the check. A legend in each response explains the codes. A capped response says complete: false with next_offset and a remainder line; ask again with offset set to next_offset. assertable_only=1 keeps only rows the record asserts. /v1/entities/{slug} and /v1/timelines/{slug} return everything unless asked otherwise (a large record's history is over a megabyte): limit (1 to 1000) and offset page them, the answer adding returned and total. /v1/claims also pages by cursor, with no cap: cursor= (empty) is the first page, in the order the claims were recorded (first_seen_at, oldest first), and an answer with more carries next_cursor to pass back as cursor; offset and cursor do not combine. Every 200 to a GET carries an ETag (weak, from the body) and, where the answer has a natural date, Last-Modified (the newest change to a claim it holds). Send If-None-Match with the ETag (or If-Modified-Since with the date) to get 304 Not Modified, with no body and the same Cache-Control and CORS headers, when nothing changed. The markdown twins answer the same way. /v1/entities/{slug}, /v1/entities/{slug}/{predicate}, /v1/entities/{slug}/diff (as /v1/entities/{slug}.md/diff), /v1/claims/{id}, /v1/timelines/{slug}, /v1/days/{date}, /v1/facts/{predicate}, /v1/models/{family}, /v1/briefs/{date} and /v1/briefs/week/{date} also answer as markdown when .md is appended to the last segment; the other paths are JSON only."},"servers":[{"url":"https://asof.is"}],"externalDocs":{"url":"https://asof.is/api-docs","description":"API and MCP documentation"},"paths":{"/v1/entities":{"get":{"operationId":"listEntities","summary":"The record index: every entity A–Z, by kind, 200 a call","description":"summary is the sentence /record leads with; title the page's title; counts the entities by kind over the whole record. kind keeps one kind (companies, people, products, models, regulators, other). The whole list as markdown: /record.md (?kind= too).","parameters":[{"name":"kind","in":"query","description":"One kind of entity.","schema":{"type":"string","enum":["companies","people","products","models","regulators","other"]}},{"name":"limit","in":"query","description":"Entities per call, 1 to 200 (default 200).","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"offset","in":"query","description":"Skip this many (the previous answer's next_offset).","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"The index's sentence, counts by kind and a page of entities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityIndex"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/entities/{slug}":{"get":{"operationId":"getEntity","summary":"An entity's claims; with as_of, its state on that date","description":"Each claim row carries assertable: true when the record asserts the claim: valid, or primary-sourced at confidence 0.7 or more; never flagged, retracted or marked for review. A state on a date is labelled for that date; every other row for its own dates, so a superseded CEO is assertable for the years he held the role (status and valid_to say whether it holds today). A row that is not assertable carries why_not, a code the response's legend explains. as_of is effective time: what was true on the day, whenever it was published. A period figure is dated at the period end, and the filing that reports it comes weeks later. known_by is knowledge time, strict: only claims a source on the record had published, or AsOf had recorded, by that day. A figure published later is listed under not_yet_published and the claim it replaced is returned with ended_later; a claim no source dates that AsOf recorded after that day is listed under publication_unknown, since the record cannot show it was known then. Neither list is in claims. known_by alone sets as_of to the same day; both answer \"true on as_of, as known by known_by\". JSON and MCP only. Every /v1/entities answer carries coverage: the official feeds that record posts on the entity or speak for it, its SEC filing (CIK, ticker), Hugging Face authors and Wikidata item (sources); its public claims by predicate, each marked fact, event, list or identifier (holds); per ingest, the day it last added a claim there, the day one was last checked against its source and the day reverify.py last confirmed one against Wikidata (freshness); and its gaps, such as \"financials: none; files with the SEC as alphabet\". Only checked claims are public, so a fact that is missing is unknown, not absent. An answer with no claims says why in empty: the reason, the gaps and the records group would add. The MCP tool coverage(entity) returns the same block. group=1 answers for the entity's company group: the records linked by entities.parent_id, by an ownership claim the record asserts (parent, subsidiary, owned_by, owner_of, brand), or by an official feed that speaks for both (Google's blog speaks for Gemini, YouTube and Waymo; the Google DeepMind blog speaks for Google), and the products a developer claim attaches to them. A product never joins two makers and a person is never a member. Each row names the record it came from (entity); a fact two records hold (same predicate, value and start) is one row, from the record that best supports it, with the other copies in also_on; group.members says how each record joined. /v1/entities and /v1/timelines take it (JSON only), and the MCP tools entity_state and timeline take group: true. For an organization, person, product or regulator (not a model, not in a group answer), the response also carries summary: the one-sentence answer its page leads with and uses as its meta description; title: its page title, from the same facts (e.g. OpenAI: CEO Sam Altman, revenue $13.07B; null when the card lacks them); key_facts: the page's key-facts card (label, value, the source's words as recorded, note, claim); and faq: its questions and answers. The page, its .md twin and the MCP tool state them word for word (lib/record-answer.ts). The .md twin takes as_of.","parameters":[{"name":"slug","in":"path","required":true,"description":"Entity slug, e.g. openai. Append .md for the markdown twin.","schema":{"type":"string"}},{"name":"as_of","in":"query","description":"State on this date (effective time). Omit for the full history.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"known_by","in":"query","description":"Count only claims a dated source published, or AsOf recorded, by this date (knowledge time, strict): the rest are listed under not_yet_published and publication_unknown. as_of defaults to it. JSON only.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"since","in":"query","description":"Only claims that began, ended or were first recorded after this date. A claim dated in the future is not a change.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"predicates","in":"query","description":"Only these predicates, comma-separated (ceo,revenue). The .md twin takes it too.","schema":{"type":"string"}},{"name":"group","in":"query","description":"1 answers for the entity's company group: each row names its record (entity), a fact two records hold is one row (also_on). JSON only.","schema":{"type":"string","enum":["1","true"]}},{"name":"assertable_only","in":"query","description":"1 keeps only claims the record asserts.","schema":{"type":"string","enum":["1","true"]}},{"name":"limit","in":"query","description":"Opt-in paging: return at most this many claims (1 to 1000), with returned, total and, when more remain, complete: false and next_offset. Without it every claim is returned, as before; a large record's full history is over a megabyte, so page it or ask with as_of or predicates. JSON only.","schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"offset","in":"query","description":"With limit: skip this many claims.","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"The entity, its coverage and its claims","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityState"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/entities/{slug}/diff":{"get":{"operationId":"getDiff","summary":"What changed between two days: the entity's state on from against its state on to, per predicate","description":"The data behind /record/{slug}/diff. Two states compared by claim id: in both, unchanged; only on to, added; only on from, ended. An ended and an added claim on one predicate are a replacement when the ended one points to the added (superseded_by), the predicate has exactly one of each and the added begins the day the ended ends, or the predicate has one holder at a time (ceo, chair, cfo, coo, president, headquarters, parent, official_name, default_model) and one holder ended while another began on the same record, whatever the days between them. summary is the sentence the page leads with. Posts and Hugging Face repos are counted in counts.skipped_posts, not listed. The markdown twin is /record/{slug}/diff.md?from=&to= (served as /v1/entities/{slug}.md/diff). The MCP tool entity_diff returns the same JSON.","parameters":[{"name":"slug","in":"path","required":true,"description":"Entity slug, e.g. openai. Append .md for the markdown twin.","schema":{"type":"string"}},{"name":"from","in":"query","required":true,"description":"The earlier day. Must be before to. Required here; the page /record/{slug}/diff with no dates compares the last 90 days.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","description":"The later day; today when omitted.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"group","in":"query","description":"1 compares the entity's company group, read on the later day: each row names its record (entity), a fact two records hold is one row (also_on).","schema":{"type":"string","enum":["1","true"]}}],"responses":{"200":{"description":"The diff: summary, counts, by_predicate, and the added, ended and replaced rows","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Diff"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/entities/{slug}/{predicate}":{"get":{"operationId":"getFact","summary":"One fact's every dated value: what the record asserts today, the history and what replaced what","description":"The data behind the fact page /record/{slug}/{predicate}. Only for the fact-page predicates (ceo, chair, cfo, coo, president, founder, board_member, headquarters, founded, employees, revenue, net_income, operating_income, quarterly_revenue, half_year_revenue, half_year_net_income, valuation, run_rate_revenue, market_cap, users, parent, owned_by, country, official_name, model_release, predecessor, deprecated, retired, context_window, price, default_model, ceo_of, chair_of, cfo_of, coo_of, president_of, founder_of, board_member_of, director_of) and only once the record holds 1 or more claims on the fact that are not retracted; otherwise 404, and /v1/entities/{slug}?predicates= returns what is held. Each row carries assertable for its own dates: true when the record asserts the claim: valid, or primary-sourced at confidence 0.7 or more; never flagged, retracted or marked for review. A state on a date is labelled for that date; every other row for its own dates, so a superseded CEO is assertable for the years he held the role (status and valid_to say whether it holds today). A row that is not assertable carries why_not, a code the response's legend explains. summary is the page's lead sentence; faq its questions, answered from the rows.","parameters":[{"name":"slug","in":"path","required":true,"description":"Entity slug, e.g. openai. Append .md for the markdown twin.","schema":{"type":"string"}},{"name":"predicate","in":"path","required":true,"description":"A fact-page predicate, e.g. revenue. Append .md for the markdown twin.","schema":{"type":"string","enum":["ceo","chair","cfo","coo","president","founder","board_member","headquarters","founded","employees","revenue","net_income","operating_income","quarterly_revenue","half_year_revenue","half_year_net_income","valuation","run_rate_revenue","market_cap","users","parent","owned_by","country","official_name","model_release","predecessor","deprecated","retired","context_window","price","default_model","ceo_of","chair_of","cfo_of","coo_of","president_of","founder_of","board_member_of","director_of"]}}],"responses":{"200":{"description":"The fact: current claim ids, every claim, what replaced what, the questions answered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fact"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/claims":{"get":{"operationId":"listChanges","summary":"Claims that became true, stopped being true, or were first recorded after a date","parameters":[{"name":"since","in":"query","description":"Defaults to yesterday. A claim dated in the future is not a change.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"entity","in":"query","description":"Limit to one entity slug.","schema":{"type":"string"}},{"name":"kind","in":"query","description":"Only changes of this kind; every row carries its kind.","schema":{"type":"string","enum":["people","money","products","models","other"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":50}},{"name":"offset","in":"query","description":"Skip this many changes: next_offset from the previous page. offset + limit is at most 900; past that, page with cursor.","schema":{"type":"integer","minimum":0,"default":0}},{"name":"cursor","in":"query","allowEmptyValue":true,"description":"Page by cursor instead, with no cap: empty for the first page, then next_cursor from the previous answer (opaque). The claims come in the order they were recorded (first_seen_at, oldest first; order: recorded in the answer). Not with offset.","schema":{"type":"string"}},{"name":"assertable_only","in":"query","description":"1 keeps only claims the record asserts.","schema":{"type":"string","enum":["1","true"]}}],"responses":{"200":{"description":"Changed claims, newest first (in recorded order with cursor), each with its kind, with complete and next_offset or next_cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Changes"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/changes":{"get":{"operationId":"changesPage","summary":"What /changes shows: the summary sentence, counts by kind and a page of changes","description":"What /changes shows, as JSON: summary (the sentence the page leads with), counts (total and by_kind over the whole window, before the type filter), and one page of 50 changes (each with its day, kind, entity, value, what it replaced and sources). window is 7d, 30d (default), 90d or 1y; posts=1 includes posts; type keeps one kind, or several comma-separated (type=people,money,models; the answer repeats the list in the kinds' own order); page pages. The page, /changes.md and this route read one computation (lib/changes-view.ts), so their sentence and counts agree.","parameters":[{"name":"window","in":"query","schema":{"type":"string","enum":["7d","30d","90d","1y"],"default":"30d"}},{"name":"type","in":"query","description":"Only changes of this kind: people, money, products, models or other. Several kinds, comma-separated, are read together (type=people,money,models is the page's \"People, money & models\" shortcut). Any other value is a 400.","schema":{"type":"string","pattern":"^(people|money|products|models|other)(,(people|money|products|models|other))*$"},"examples":{"one":{"value":"people"},"several":{"value":"people,money,models"}}},{"name":"posts","in":"query","description":"1 includes posts.","schema":{"type":"string","enum":["1"]}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}}],"responses":{"200":{"description":"window, since, summary, counts {total, by_kind}, page, pages, total and changes, each with its day and kind","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangesPage"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/claims/{id}":{"get":{"operationId":"getClaim","summary":"One claim with its sources, what it supersedes and what superseded it","parameters":[{"name":"id","in":"path","required":true,"description":"Claim id, e.g. clm_01J9X4N2. Append .md for the markdown twin.","schema":{"type":"string"}}],"responses":{"200":{"description":"The claim","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/timelines/{slug}":{"get":{"operationId":"getTimeline","summary":"Every claim for an entity in date order, each labelled by its own dates; with group=1, every record of its company group","description":"group=1 answers for the entity's company group: the records linked by entities.parent_id, by an ownership claim the record asserts (parent, subsidiary, owned_by, owner_of, brand), or by an official feed that speaks for both (Google's blog speaks for Gemini, YouTube and Waymo; the Google DeepMind blog speaks for Google), and the products a developer claim attaches to them. A product never joins two makers and a person is never a member. Each row names the record it came from (entity); a fact two records hold (same predicate, value and start) is one row, from the record that best supports it, with the other copies in also_on; group.members says how each record joined. /v1/entities and /v1/timelines take it (JSON only), and the MCP tools entity_state and timeline take group: true.","parameters":[{"name":"slug","in":"path","required":true,"description":"Entity slug, e.g. openai. Append .md for the markdown twin.","schema":{"type":"string"}},{"name":"group","in":"query","description":"1 answers for the entity's company group: each row names its record (entity), a fact two records hold is one row (also_on). JSON only.","schema":{"type":"string","enum":["1","true"]}},{"name":"assertable_only","in":"query","description":"1 keeps only claims the record asserts.","schema":{"type":"string","enum":["1","true"]}},{"name":"kind","in":"query","description":"Only this kind of change; the .md twin takes it too.","schema":{"type":"string","enum":["people","money","products","models","other"]}},{"name":"limit","in":"query","description":"Opt-in paging: return at most this many events (1 to 1000), oldest first, with returned, total and, when more remain, complete: false and next_offset. Without it the whole timeline is returned, as before.","schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"offset","in":"query","description":"With limit: skip this many events.","schema":{"type":"integer","minimum":0}},{"name":"only","in":"query","description":"models: the Models view, as /timelines/{slug}?only=models. A model's own releases, deprecations, retirements and predecessors; for a lab or an app, every model of its families, each row once and naming its model, with the app's default changes. Answered for a model, a lab or an app (400 otherwise); the answer carries only: \"models\" and no summary or counts. The .md twin takes it too.","schema":{"type":"string","enum":["models"]}}],"responses":{"200":{"description":"The timeline: summary (the page's sentence), counts by kind, and every event with its kind","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Timeline"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/facts/{predicate}":{"get":{"operationId":"getFactAcrossCompanies","summary":"One fact across every company: what the record asserts today for each, with its date, first source and the company's own fact page","parameters":[{"name":"predicate","in":"path","required":true,"description":"A fact with a cross-company page: ceo, cfo, chair, founder, board_member, founded, revenue, net_income, quarterly_revenue, valuation, employees or headquarters (a 404 lists them). Append .md for the markdown twin, the one /facts/{predicate}.md serves.","schema":{"type":"string"}}],"responses":{"200":{"description":"The fact's current value for every company that states one: the AI labs, then the other companies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactAcross"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/models":{"get":{"operationId":"listModels","summary":"Each lab's flagship model, then every current model: the newest in each line that is not retired","parameters":[{"name":"lab","in":"query","description":"Only this lab's models: a slug from the answer's labs (openai, anthropic, google-deepmind...). An unknown lab is ignored.","schema":{"type":"string"}},{"name":"tier","in":"query","description":"Only this tier.","schema":{"type":"string","enum":["frontier","small-fast","specialized"]}},{"name":"sort","in":"query","description":"Default released.","schema":{"type":"string","enum":["released","model","lab"]}},{"name":"dir","in":"query","description":"Default desc for released, asc otherwise.","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"The flagships, the current models and the older lines, as /models shows them; /models.md is the markdown","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelsIndex"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/models/{family}":{"get":{"operationId":"getModelFamily","summary":"A model family's lineage: the latest model with its release claim, then every model line by line with what it replaced and what replaced it","parameters":[{"name":"family","in":"path","required":true,"description":"A family key from /v1/models families (gpt, claude, gemini, llama...); a 404 lists them. Append .md for the markdown twin, the one /models/{family}.md serves.","schema":{"type":"string"}}],"responses":{"200":{"description":"The family's answer, its current lineup and every line's models in release order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelFamily"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/days/{date}":{"get":{"operationId":"getDay","summary":"What became true, stopped being true, or was recorded on a day","parameters":[{"name":"date","in":"path","required":true,"description":"From 1900-01-01 to today; any other date, or an impossible one, is 404. Append .md for the markdown twin.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"kind","in":"query","description":"Only changes of this kind; every row carries its kind.","schema":{"type":"string","enum":["people","money","products","models","other"]}}],"responses":{"200":{"description":"The day's changes: became_true, stopped_being_true and recorded, each at most 500 rows by entity then id, with totals; complete is false when a list is cut, and next names the site page where the rest continues","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Day"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/briefs/{date}":{"get":{"operationId":"getBrief","summary":"The Brief edition for a date","parameters":[{"name":"date","in":"path","required":true,"description":"The day the edition covers. Append .md for the markdown twin.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"The edition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brief"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/briefs/week/{date}":{"get":{"operationId":"getWeeklyBrief","summary":"The week in review: the Brief's weekly recap for the week ending on a Saturday","parameters":[{"name":"date","in":"path","required":true,"description":"The Saturday the week ends. Append .md for the markdown twin.","schema":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"The weekly edition: up to five of the week's most notable changes, each dated the day it happened","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Brief"}},"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"404":{"description":"Not on record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/search":{"get":{"operationId":"search","summary":"Entities by name, ticker or former name; claims by value, predicate, entity and date; best match first. A question naming an entity, a fact and a day is answered from the entity's state on that day","parameters":[{"name":"q","in":"query","required":true,"description":"Free text or a question in full, e.g. MSFT, Facebook, who ran Nvidia in 2019, Meta revenue as of 2024-06-30, what changed at OpenAI since March 2026. At most 300 characters.","schema":{"type":"string","maxLength":300}},{"name":"kind","in":"query","description":"all (default), entities or claims","schema":{"type":"string","enum":["all","entities","claims"]}},{"name":"limit","in":"query","description":"Entities and claims each, default 20, max 50","schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"assertable_only","in":"query","description":"1 keeps only claims the record asserts.","schema":{"type":"string","enum":["1","true"]}}],"responses":{"200":{"description":"answers (one card per fact asked: a sentence, the entity, the fact, the day, and the claims that answer it, with what holds today, the prior value, a comparison or the history; empty when the query is not such a question), answer (the first card), entities, claims and days that match","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Search"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/trends":{"get":{"operationId":"trends","summary":"Releases and deals counted by theme, kind and quarter since 2023; with topic, the claims behind one","description":"The record's dated events counted by quarter since 2023, from checked claims only, by the trend tags a model gives each claim from a fixed list. Each tag says whether the claim is about AI or the rest of tech, judged by the announcement (a phone is tech, a model is AI): domain=ai or domain=tech keeps one side and adds each company's releases, updates and deals; without it every row carries d. Product updates by theme (agents, coding, voice_audio, open_weights, developer_platform...), releases by kind, model releases by company (each company read with its products, as group=1 reads it) and tier, deals by kind (funding_round, investment_out, grant_program, capital_commitment, acquisition, partnership, customer, expansion) with the amounts disclosed per currency (as stated, never converted), the latest releases and deals, the largest amounts, who bought whom, countries, partners' kinds and each source's coverage. from=YYYY-Qn keeps the quarters from that one on. model_releases lists every model release with its day, maker, tier and themes; with domain=ai, cadence gives each company's median days between model releases (and between frontier ones), its latest release, and the mix (small and fast, frontier, open weights) in the last two complete quarters against the two before. topic=voice_audio (a theme, a deal kind, model, release, update or deal) returns the checked claims behind it instead, in domain when given, and company=google (a key from companies[].key) narrows them to one company's records, newest first, with their tags; q=2026-Q3 narrows them to a quarter; limit (max 200) and offset page. The counts are a snapshot taken after each load (computed_at). summary is the sentence /trends (or /trends/tech, or the topic page) leads with, over the quarters returned; with a domain, title is that page's title from the same counts; without one, summary names each domain in turn and summary_by_domain gives { ai, tech } apart.","parameters":[{"name":"from","in":"query","description":"Keep the quarters from this one on, e.g. 2025-Q1","schema":{"type":"string","pattern":"^\\d{4}-Q[1-4]$"}},{"name":"domain","in":"query","description":"ai or tech: only the claims about AI, or about the rest of tech (judged by the announcement); omit for both","schema":{"type":"string","enum":["ai","tech"]}},{"name":"topic","in":"query","description":"A theme (voice_audio), a deal kind (funding_round, acquisition), model, release, update or deal: return its checked claims instead of the counts","schema":{"type":"string"}},{"name":"company","in":"query","description":"With topic: one company's claims, its records read together; a key from the counts' companies[].key (google, openai...)","schema":{"type":"string"}},{"name":"q","in":"query","description":"With topic, only this quarter, e.g. 2026-Q3","schema":{"type":"string","pattern":"^\\d{4}-Q[1-4]$"}},{"name":"limit","in":"query","description":"With topic, default 50, max 200","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"offset","in":"query","description":"With topic, rows to skip (next_offset from the previous page)","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"the counts, or one topic's claims","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TrendsCounts"},{"$ref":"#/components/schemas/TopicClaims"}]}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The counts are not taken yet (error, topics), or the database did not answer","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/Unavailable"}]}}}}}}},"/timelines/{slug}/feed.xml":{"get":{"operationId":"getEntityFeed","summary":"One entity's record as RSS: its 50 newest claims by the day recorded","description":"Each item is a claim, newest recorded first (first_seen_at), with its as-of date (valid_from), status and primary source in the description, linking its claim page. Posts and retracted claims are left out, as on /changes/feed.xml. /record/{slug}/feed.xml redirects here. The entity's record and timeline pages advertise it as an alternate (application/rss+xml). Not behind withDb: no 503 answer; cached an hour.","parameters":[{"name":"slug","in":"path","required":true,"description":"Entity slug, e.g. openai.","schema":{"type":"string"}}],"responses":{"200":{"description":"The feed","content":{"application/rss+xml":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"404":{"description":"Not on record","content":{"text/plain":{"schema":{"type":"string"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/corrections":{"post":{"operationId":"reportCorrection","summary":"Report a claim that is wrong or missing a source","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"claim_id":{"type":"string"},"entity_id":{"type":"string"},"message":{"type":"string"},"source_url":{"type":"string","format":"uri"},"submitter":{"type":"string"}}}}}},"responses":{"201":{"description":"Recorded for review","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"additionalProperties":true}}}},"304":{"description":"Not modified: If-None-Match named the current ETag (or If-Modified-Since is not before Last-Modified). No body; the same Cache-Control and CORS headers."},"400":{"description":"A parameter is malformed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/InvalidKey"},"409":{"description":"The same correction is already open for review","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/subscriptions":{"post":{"operationId":"createSubscription","summary":"Register a webhook: a URL sent the claims recorded after each daily load, signed with a secret shown once","description":"During the preview every endpoint answers without a key, within the per-address limits; pricing and usage terms are being finalised. A key is for a client that needs more than those limits, or a webhook. It is asof_ and 43 base64url characters, sent as Authorization: Bearer asof_… or X-API-Key: asof_… (a bearer token that does not start with asof_, such as an OAuth token an MCP client sends by habit, is ignored). With a valid key the rate limit is the key's own budget, 600 requests a minute by default, counted across every limited endpoint (/v1, /mcp, search, the markdown twins and the dated views) instead of the per-address limits, and X-RateLimit-Limit and X-RateLimit-Remaining then describe that budget. An unknown or revoked key is refused with 401 {\"error\":\"invalid api key\"}, never cached: leave the header off to use the per-address limit. Only the key's SHA-256 is stored, so it is shown once when minted and cannot be shown again. Keys are minted by the AsOf admin: write to hello@chroniclabs.co with what you are building. After each daily load, every active subscription with new claims gets one POST: Content-Type: application/json, User-Agent: asof-webhooks/1, X-AsOf-Delivery: <uuid> and X-AsOf-Signature: sha256=<hex HMAC-SHA256 of the raw body, keyed with the subscription's secret>; recompute it over the bytes as received, before parsing. The body is { subscription, delivery, since, entity, predicates, count, claims }: claims are the rows /v1/claims lists since the last successful delivery (the last 24 hours for a first one), checked claims only, oldest recorded first, at most 2,000 a delivery, each with id, entity (its slug), entity_name, predicate, value, valid_from, valid_to, recorded, confidence, status, superseded_by, updated_at, url (its claim page) and sources[] (url, tier, published_at). Answer 2xx within 10 seconds. Anything else, or no answer, leaves the cursor where it was, so the same claims come again next run, and ten failed deliveries in a row deactivate the subscription. Nothing is sent when nothing is new. Revoking a key deactivates its subscriptions.","security":[{"ApiKeyHeader":[]},{"BearerKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCreate"}}}},"responses":{"201":{"description":"The subscription with its secret, shown once. Never cached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCreated"}}}},"400":{"description":"The body is not a JSON object, url is missing or not usable (not https, a private or loopback address, a local name, credentials, too long), entity is not a slug, or predicates is not an array of at most 20 names","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or an unknown or revoked one: send Authorization: Bearer asof_… or X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No record has the slug entity names","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The key already holds 20 active subscriptions: deactivate one with DELETE /v1/subscriptions/{id}","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"API keys cannot be checked right now, or subscriptions are not configured on this deployment; try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"callbacks":{"delivery":{"{$request.body#/url}":{"post":{"summary":"One delivery: the claims recorded since the last successful one, after a daily load","description":"After each daily load, every active subscription with new claims gets one POST: Content-Type: application/json, User-Agent: asof-webhooks/1, X-AsOf-Delivery: <uuid> and X-AsOf-Signature: sha256=<hex HMAC-SHA256 of the raw body, keyed with the subscription's secret>; recompute it over the bytes as received, before parsing. The body is { subscription, delivery, since, entity, predicates, count, claims }: claims are the rows /v1/claims lists since the last successful delivery (the last 24 hours for a first one), checked claims only, oldest recorded first, at most 2,000 a delivery, each with id, entity (its slug), entity_name, predicate, value, valid_from, valid_to, recorded, confidence, status, superseded_by, updated_at, url (its claim page) and sources[] (url, tier, published_at). Answer 2xx within 10 seconds. Anything else, or no answer, leaves the cursor where it was, so the same claims come again next run, and ten failed deliveries in a row deactivate the subscription. Nothing is sent when nothing is new. Revoking a key deactivates its subscriptions.","parameters":[{"name":"X-AsOf-Delivery","in":"header","required":true,"description":"The delivery's id (a UUID), also the body's delivery.","schema":{"type":"string","format":"uuid"}},{"name":"X-AsOf-Signature","in":"header","required":true,"description":"sha256= and the hex HMAC-SHA256 of the raw request body, keyed with the subscription's secret.","schema":{"type":"string","pattern":"^sha256=[0-9a-f]{64}$"}},{"name":"User-Agent","in":"header","required":true,"schema":{"type":"string","const":"asof-webhooks/1 (+https://asof.is/api-docs)"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"responses":{"2XX":{"description":"Taken: the cursor moves to this delivery. Answer within 10 seconds."},"default":{"description":"Not taken: the cursor stays and the same claims come again next run; ten failures in a row deactivate the subscription."}}}}}}},"get":{"operationId":"listSubscriptions","summary":"The key's webhook subscriptions, active and not, without secrets","security":[{"ApiKeyHeader":[]},{"BearerKey":[]}],"responses":{"200":{"description":"count, max_active (20) and the subscriptions, newest first. Never cached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionList"}}}},"401":{"description":"No key, or an unknown or revoked one: send Authorization: Bearer asof_… or X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"API keys cannot be checked right now, or subscriptions are not configured on this deployment; try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/subscriptions/{id}":{"delete":{"operationId":"deleteSubscription","summary":"Deactivate a webhook subscription","description":"The subscription is kept with active false and sent nothing more. Only the key that made it may end it; another key's is answered 404, not 403.","security":[{"ApiKeyHeader":[]},{"BearerKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The subscription's id, sub_ and 32 hex characters.","schema":{"type":"string","pattern":"^sub_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Deactivated. Never cached.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"active":{"type":"boolean","const":false}},"required":["id","active"]}}}},"401":{"description":"No key, or an unknown or revoked one: send Authorization: Bearer asof_… or X-API-Key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No subscription of this key has this id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded: the address's budget for this kind of request, or the key's when the request carries one; see Retry-After, X-RateLimit-Limit and X-RateLimit-Remaining","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"API keys cannot be checked right now, or subscriptions are not configured on this deployment; try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"getHealth","summary":"Record size, sourcing shares and integrity checks","description":"Record size, sourcing shares and the hard-rule counts (each must be zero), as counted in the database after the last pipeline run (computed_at says when). Not rate limited.","responses":{"200":{"description":"Health snapshot: status \"ok\", ok (every hard rule holds), the counts and shares, db_latency_ms, checked_at; the answer is held in memory for 30 seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"The database did not answer: status \"degraded\", ok false, db \"unreachable\" or \"error\", detail (the first 200 characters of the error), checked_at","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}}},"components":{"schemas":{"Source":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"tier":{"type":"string","enum":["primary","secondary"]},"publisher":{"anyOf":[{"type":"string"},{"type":"null"}]},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["url","tier"],"description":"A source on the record: its URL, its tier (primary: the subject's own filing, API or page; secondary: anyone else) and when it published. publisher is on /v1/entities and /v1/claims/{id}."},"Evidence":{"type":"object","properties":{"by":{"anyOf":[{"type":"string"},{"type":"null"}]},"on":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"quote":{"type":"string"},"url":{"type":"string","format":"uri"},"read":{"type":"string","enum":["feed"]},"fact":{"type":"string"},"excerpt":{"type":"string"}},"description":"The check behind a claim: by (the method, explained in the legend's checked_by), on (the day), and where kept quote (the source page's words that state the value), fact (the XBRL concept and form a filing figure came from) or excerpt (what the post said)."},"Citation":{"type":"object","properties":{"plain":{"type":"string"},"url":{"type":"string","format":"uri"},"accessed":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["plain","url","accessed"],"description":"citation: how to cite the row (plain: one sentence with the value, its as-of date, the claim id and URL, the day answered and the primary source; url: the claim page; accessed: the day answered). APA and BibTeX forms are on the claim page."},"WhyNot":{"type":"string","enum":["retracted","review","post","flagged","superseded","low_confidence","unverified","not_held"],"description":"Why the record does not assert a row: the response's legend.why_not says each in words."},"ClaimRow":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string","description":"The record the row came from (its slug): on every MCP row, on /v1 rows in a group answer and on list routes."},"predicate":{"type":"string"},"value":{"type":"string"},"valid_from":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"When the claim took effect; null when undated."},"undated":{"type":"boolean","description":"Present and true when the source gives no date."},"valid_to":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"null: still holds."},"published":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The earliest day a source on the record published it."},"recorded":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The day AsOf first held it."},"confidence":{"type":"number","minimum":0,"maximum":1},"status":{"type":"string","enum":["valid","unverified","flagged","superseded"]},"assertable":{"type":"boolean"},"why_not":{"$ref":"#/components/schemas/WhyNot"},"superseded_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"correction":{"type":"string","enum":["retracted","redated","relabelled"],"description":"Present when the row records a fix to the record, not a change in the world. A superseded row without it is a real change."},"qualifier":{"type":"string","enum":["interim","acting"],"description":"Present when the value holds only with it: a role held on an interim or acting basis. Repeat it with the value."},"sources":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Source"}},{"type":"integer","description":"MCP rows count them and carry the primary one as source."}]},"evidence":{"$ref":"#/components/schemas/Evidence"},"citation":{"$ref":"#/components/schemas/Citation"},"also_on":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string"},"id":{"type":"string"}},"required":["entity","id"]},"description":"In a group answer: the other records that hold the same fact."},"kind":{"type":"string","enum":["people","money","products","models","other"],"description":"On change rows (/v1/claims, /v1/changes, /v1/days, /v1/timelines): the change's kind."}},"required":["id","predicate","value","status","recorded","assertable","citation"],"description":"A claim as every route returns it. valid_from: when the claim took effect (a period figure: the day its period closed). published: the earliest day a source on the record published it (a filing's filing date, a post's date; null when no source carries one). recorded: the day AsOf first held it. A figure can take effect weeks before it is published. true when the record asserts the claim: valid, or primary-sourced at confidence 0.7 or more; never flagged, retracted or marked for review. A state on a date is labelled for that date; every other row for its own dates, so a superseded CEO is assertable for the years he held the role (status and valid_to say whether it holds today). A row that is not assertable carries why_not, a code the response's legend explains.","additionalProperties":true},"Entity":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","description":"On the index: the record's kind (companies, people, products, models, regulators, other); elsewhere the entity's own kind (organization, person, product, regulator)."},"entity_kind":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"wikidata":{"anyOf":[{"type":"string"},{"type":"null"}]},"model_family":{"type":"string"},"page":{"type":"string","format":"uri"},"json":{"type":"string","format":"uri"}},"required":["slug","name","page"],"description":"An entity as the index, search and answers name it: its slug, name, kind, description and Wikidata item, with its page and JSON."},"Coverage":{"type":"object","properties":{"entity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"covers":{"type":"string"},"item":{"type":"string"},"cik":{"type":"integer"},"ticker":{"type":"string"},"feed":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","format":"uri"},"records_on":{"type":"string"},"authors":{"type":"array","items":{"type":"string"}},"per_author_limit":{"type":"integer"}},"required":["source","covers"]}},"holds":{"type":"object","properties":{"claims":{"type":"integer"},"open":{"type":"integer"},"retracted":{"type":"integer"},"first":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"predicates":{"type":"object","additionalProperties":{"type":"object","properties":{"claims":{"type":"integer"},"open":{"type":"integer"},"kind":{"type":"string","enum":["fact","event","list","identifier"]}},"required":["claims","open","kind"]}}},"required":["claims","open","retracted","predicates"]},"freshness":{"type":"array","items":{"type":"object","properties":{"origin":{"type":"string"},"label":{"type":"string"},"claims":{"type":"integer"},"last_added":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"last_checked":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"last_verified":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["origin","label","claims"]}},"gaps":{"type":"array","items":{"type":"string"}},"group":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"link":{"type":"object"}},"required":["entity","name","kind"]}},"group_complete":{"type":"boolean"},"rule":{"type":"string"}},"required":["entity","name","kind","sources","holds","freshness","gaps","group","group_complete","rule"],"description":"Every /v1/entities answer carries coverage: the official feeds that record posts on the entity or speak for it, its SEC filing (CIK, ticker), Hugging Face authors and Wikidata item (sources); its public claims by predicate, each marked fact, event, list or identifier (holds); per ingest, the day it last added a claim there, the day one was last checked against its source and the day reverify.py last confirmed one against Wikidata (freshness); and its gaps, such as \"financials: none; files with the SEC as alphabet\". Only checked claims are public, so a fact that is missing is unknown, not absent. An answer with no claims says why in empty: the reason, the gaps and the records group would add. The MCP tool coverage(entity) returns the same block."},"Empty":{"type":"object","properties":{"reason":{"type":"string"},"gaps":{"type":"array","items":{"type":"string"}},"group":{"type":"array","items":{"type":"string"}}},"required":["reason","gaps"],"description":"Why an entity answer has no rows: the reason, the entity's gaps and the records group=1 would add."},"Paging":{"type":"object","properties":{"complete":{"type":"boolean"},"next_offset":{"type":"integer"},"remainder":{"type":"string"}},"required":["complete"],"description":"A capped response says complete: false with next_offset and a remainder line; ask again with offset set to next_offset. assertable_only=1 keeps only rows the record asserts. /v1/entities/{slug} and /v1/timelines/{slug} return everything unless asked otherwise (a large record's history is over a megabyte): limit (1 to 1000) and offset page them, the answer adding returned and total. /v1/claims also pages by cursor, with no cap: cursor= (empty) is the first page, in the order the claims were recorded (first_seen_at, oldest first), and an answer with more carries next_cursor to pass back as cursor; offset and cursor do not combine."},"Legend":{"type":"object","properties":{"dates":{"type":"string"},"citation":{"type":"string"},"why_not":{"type":"object","additionalProperties":{"type":"string"},"description":"Each why_not code the rows use, in words."},"checked_by":{"type":"object","additionalProperties":{"type":"string"},"description":"Each check method the rows' evidence names, in words."}},"required":["dates","citation","why_not","checked_by"],"description":"What the codes in a response's rows mean, said once per response."},"FactPageLink":{"type":"object","properties":{"predicate":{"type":"string"},"page":{"type":"string","format":"uri"},"md":{"type":"string","format":"uri"},"json":{"type":"string","format":"uri"}},"required":["predicate","page","md","json"]},"EntityState":{"type":"object","properties":{"entity":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"wikidata":{"anyOf":[{"type":"string"},{"type":"null"}]},"page":{"type":"string","format":"uri"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"summary":{"type":"string"},"key_facts":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"},"note":{"type":"string"},"claim":{"type":"string"}}}},"faq":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}}}},"as_of":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"known_by":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"since":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"predicates":{"type":"array","items":{"type":"string"}},"group":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"link":{"type":"object"},"claims":{"type":"integer"}}}},"complete":{"type":"boolean"},"folded":{"type":"integer"},"rule":{"type":"string"}}},"empty":{"$ref":"#/components/schemas/Empty"},"fact_pages":{"type":"array","items":{"$ref":"#/components/schemas/FactPageLink"}},"coverage":{"$ref":"#/components/schemas/Coverage"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"returned":{"type":"integer","description":"With limit: the claims in this answer."},"total":{"type":"integer","description":"With limit: the claims the whole answer holds."},"complete":{"type":"boolean"},"next_offset":{"type":"integer"},"remainder":{"type":"string"},"not_yet_published":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"publication_unknown":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["entity","id","name","page","as_of","known_by","since","fact_pages","coverage","claims","legend"],"description":"An entity's claims, or its state on a date. For an organization, person, product or regulator (not a model, not in a group answer), the response also carries summary: the one-sentence answer its page leads with and uses as its meta description; title: its page title, from the same facts (e.g. OpenAI: CEO Sam Altman, revenue $13.07B; null when the card lacks them); key_facts: the page's key-facts card (label, value, the source's words as recorded, note, claim); and faq: its questions and answers. The page, its .md twin and the MCP tool state them word for word (lib/record-answer.ts). A model, a lab or an app also carries its lineage block; an organization its products.","additionalProperties":true},"EntityIndex":{"type":"object","properties":{"summary":{"type":"string"},"title":{"type":"string"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}]},"counts":{"type":"object","properties":{"total":{"type":"integer"},"by_kind":{"type":"object","additionalProperties":{"type":"integer"}}},"required":["total","by_kind"]},"kinds":{"type":"object","additionalProperties":{"type":"string"}},"matched":{"type":"integer"},"complete":{"type":"boolean"},"next_offset":{"type":"integer"},"remainder":{"type":"string"},"entities":{"type":"array","items":{"$ref":"#/components/schemas/Entity"}},"page":{"type":"string","format":"uri"}},"required":["summary","title","counts","entities","complete"]},"Fact":{"type":"object","properties":{"entity":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"predicate":{"type":"string"},"lineage":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"label":{"type":"string"},"page":{"type":"string","format":"uri"},"as_of":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"summary":{"type":"string"},"current":{"type":"array","items":{"type":"string"}},"last_holder":{"type":"string","description":"For an office (ceo, cfo, chair, coo, president) nobody holds on the record today: the id of the last holder's closed claim. Present only then; current is empty."},"latest_period":{"anyOf":[{"allOf":[{"$ref":"#/components/schemas/ClaimRow"},{"type":"object","properties":{"predicate":{"type":"string"},"period":{"type":"string"},"page":{"type":"string","format":"uri"}}}]},{"type":"null"}]},"claims":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"replaced":{"type":"array","items":{"type":"object","properties":{"claim":{"type":"string"},"value":{"type":"string"},"valid_from":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"valid_to":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"replaced_by":{"type":"string"},"replaced_by_value":{"type":"string"},"replaced_from":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["claim","value","replaced_by"]}},"faq":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}},"required":["question","answer"]}},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["entity","id","name","predicate","label","page","as_of","summary","current","claims","replaced","faq","legend"]},"PredicateDiff":{"type":"object","properties":{"predicate":{"type":"string"},"added":{"type":"integer"},"ended":{"type":"integer"},"replaced":{"type":"integer"},"unchanged":{"type":"integer"}},"required":["predicate","added","ended","replaced","unchanged"],"description":"One predicate's counts in a diff, busiest first."},"Diff":{"type":"object","properties":{"entity":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"from":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"page":{"type":"string","format":"uri","description":"The page /record/{slug}/diff?from=&to= that shows the same rows."},"summary":{"type":"string","description":"The one sentence the page leads with: what changed between the two days, or that nothing did."},"counts":{"type":"object","properties":{"changed":{"type":"integer"},"added":{"type":"integer"},"ended":{"type":"integer"},"replaced":{"type":"integer"},"unchanged":{"type":"integer"},"skipped_posts":{"type":"object","properties":{"from":{"type":"integer"},"to":{"type":"integer"}},"required":["from","to"],"description":"Posts and Hugging Face repos held on each day, left out of the lists."}},"required":["changed","added","ended","replaced","unchanged","skipped_posts"]},"group":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"link":{"type":"object"}},"required":["entity","name","kind"]}},"complete":{"type":"boolean"},"rule":{"type":"string"}},"required":["members","complete","rule"],"description":"With group=1: the company group's records and how each joined; each row then names its record (entity)."},"by_predicate":{"type":"array","items":{"$ref":"#/components/schemas/PredicateDiff"}},"added":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"},"description":"Held on to, not on from; labelled (assertable, why_not) for to."},"ended":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"},"description":"Held on from, not on to, and not replaced by another value; labelled for from."},"replaced":{"type":"array","items":{"type":"object","properties":{"predicate":{"type":"string"},"from":{"$ref":"#/components/schemas/ClaimRow"},"to":{"$ref":"#/components/schemas/ClaimRow"}},"required":["predicate","from","to"],"description":"The same predicate with another value: the claim that held on from and the one that holds on to."}},"rule":{"type":"string"},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["entity","id","name","from","to","page","summary","counts","by_predicate","added","ended","replaced","rule","legend"],"description":"An entity's state on from against its state on to, compared by claim id (src/lib/diff.ts diffJson): the same sentence, counts and rows as /record/{slug}/diff and the MCP tool entity_diff."},"Changes":{"type":"object","properties":{"since":{"type":"string"},"entity":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"anyOf":[{"type":"string","enum":["people","money","products","models","other"]},{"type":"null"}]},"order":{"type":"string","enum":["recorded"],"description":"Present with cursor: the claims come oldest recorded first."},"count":{"type":"integer"},"complete":{"type":"boolean"},"next_offset":{"type":"integer"},"next_cursor":{"type":"string","description":"With cursor, when another page exists: pass it back as cursor."},"remainder":{"type":"string"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["since","entity","kind","count","complete","claims","legend"]},"ChangesPage":{"type":"object","properties":{"window":{"type":"string","enum":["7d","30d","90d","1y"]},"since":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"posts":{"type":"boolean"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The kind filter as asked: one kind, or several comma-separated in the kinds' own order (people,money,models); null for every kind."},"page":{"type":"integer"},"pages":{"type":"integer"},"total":{"type":"integer"},"summary":{"type":"string"},"counts":{"anyOf":[{"type":"object","properties":{"total":{"type":"integer"},"by_kind":{"type":"object","additionalProperties":{"type":"integer"}}}},{"type":"null"}]},"page_url":{"type":"string","format":"uri"},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"day":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"kind":{"type":"string","enum":["people","money","products","models","other"]},"entity":{"type":"string"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"predicate":{"type":"string"},"value":{"type":"string"},"valid_from":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"valid_to":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"status":{"type":"string"},"was":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"string"},"valid_from":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"valid_to":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}}},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"tier":{"type":"string"}}}},"claim":{"type":"string","format":"uri"}},"required":["id","day","kind","entity","predicate","value","status","sources","claim"]}}},"required":["window","since","posts","type","page","pages","total","summary","counts","page_url","changes"],"description":"What /changes shows, as JSON: summary (the sentence the page leads with), counts (total and by_kind over the whole window, before the type filter), and one page of 50 changes (each with its day, kind, entity, value, what it replaced and sources). window is 7d, 30d (default), 90d or 1y; posts=1 includes posts; type keeps one kind, or several comma-separated (type=people,money,models; the answer repeats the list in the kinds' own order); page pages. The page, /changes.md and this route read one computation (lib/changes-view.ts), so their sentence and counts agree."},"Claim":{"allOf":[{"$ref":"#/components/schemas/ClaimRow"},{"type":"object","properties":{"value_json":{},"supersedes":{"type":"array","items":{"type":"string"}},"first_seen_at":{"type":"string"},"updated_at":{"type":"string"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["supersedes","first_seen_at","updated_at","sources","legend"]}],"description":"One claim with its sources, what it supersedes and what superseded it."},"Timeline":{"type":"object","properties":{"entity":{"type":"string"},"name":{"type":"string"},"kind":{"anyOf":[{"type":"string","enum":["people","money","products","models","other"]},{"type":"null"}]},"only":{"type":"string","enum":["models"]},"summary":{"type":"string"},"headline":{"type":"string","description":"The main changes among the rows, as one sentence: the weightiest first (leadership, then ownership and deals, then releases; figures and repositories are never the news)."},"highlights":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"kind":{"type":"string","enum":["people","money","products","models","other"]},"text":{"type":"string"},"claims":{"type":"array","items":{"type":"string"}}},"required":["date","kind","text","claims"]},"description":"The same changes as a list, each with the day it took effect and the claims it stands on. Beside the events, never instead of them."},"counts":{"type":"object","properties":{"total":{"type":"integer"},"by_kind":{"type":"object","additionalProperties":{"type":"integer"}}}},"group":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"link":{"type":"object"},"claims":{"type":"integer"}}}},"complete":{"type":"boolean"},"folded":{"type":"integer"},"rule":{"type":"string"}}},"events":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/ClaimRow"},{"type":"object","properties":{"date":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"until":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"model":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}},"complete":{"type":"boolean"},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["entity","name","events","complete","legend"],"description":"Every claim for an entity in date order: each event is a ClaimRow with date (valid_from) and until (valid_to)."},"Day":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"kind":{"anyOf":[{"type":"string","enum":["people","money","products","models","other"]},{"type":"null"}]},"summary":{"type":"string"},"counts":{"type":"object","properties":{"total":{"type":"integer"},"by_kind":{"type":"object","additionalProperties":{"type":"integer"}}}},"became_true":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"stopped_being_true":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"recorded":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"complete":{"type":"boolean"},"totals":{"type":"object","properties":{"became_true":{"type":"integer"},"stopped_being_true":{"type":"integer"},"recorded":{"type":"integer"}}},"cap":{"type":"integer"},"next":{"type":"object","additionalProperties":{"type":"string","format":"uri"}},"remainder":{"type":"string"},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["date","kind","summary","counts","became_true","stopped_being_true","recorded","complete","totals","legend"]},"Brief":{"type":"object","properties":{"id":{"type":"string"},"edition_date":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"kind":{"type":"string","enum":["daily","weekly"]},"title":{"type":"string"},"summary":{"type":"string"},"items":{"type":"array","items":{"type":"object"}},"model_releases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string"},"value":{"type":"string"},"valid_from":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"claim":{"type":"string","format":"uri"}}}},"page":{"type":"string","format":"uri"}},"required":["edition_date","title","page"],"description":"One edition of The Brief with the day's model releases the record asserts.","additionalProperties":true},"SearchAnswer":{"type":"object","properties":{"kind":{"type":"string","enum":["fact","entity","changes","history","compare","gap"]},"sentence":{"type":"string"},"entity":{"$ref":"#/components/schemas/Entity"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"predicates":{"type":"array","items":{"type":"string"}},"as_of":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dated":{"type":"boolean"},"since":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"known_by":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"not_asserted":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"owners":{"type":"array","items":{"type":"object"}},"now":{"type":"object","properties":{"still_holds":{"type":"boolean"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}}}},"change":{"type":"object","properties":{"prior":{"$ref":"#/components/schemas/ClaimRow"},"pct":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"years":{"type":"object","properties":{"n":{"type":"integer"},"from":{"type":"string"},"what":{"type":"string"}}},"against":{"type":"object","properties":{"entity":{"$ref":"#/components/schemas/Entity"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/ClaimRow"}},"ratio":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"held_back":{"type":"object","properties":{"not_yet_published":{"type":"integer"},"publication_unknown":{"type":"integer"}}},"coverage":{"type":"object","properties":{"claims":{"type":"integer"},"predicates":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"string"}},"lastChecked":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"related":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"page":{"type":"string","format":"uri"}}}}}},"alternatives":{"type":"array","items":{"$ref":"#/components/schemas/Entity"}},"typed":{"type":"string"},"fact_page":{"type":"string","format":"uri"}},"required":["kind","sentence","entity","topic","predicates","claims"],"description":"One answer card for a question naming an entity, a fact and a day: the sentence, how the question was read, and the claims behind it (lib/answer-json.ts)."},"Search":{"type":"object","properties":{"query":{"type":"string"},"kind":{"type":"string","enum":["all","entities","claims"]},"answer":{"anyOf":[{"$ref":"#/components/schemas/SearchAnswer"},{"type":"null"}]},"answers":{"type":"array","items":{"$ref":"#/components/schemas/SearchAnswer"}},"claims_scope":{"type":"object","properties":{"entity":{"type":"string"},"predicate":{"anyOf":[{"type":"string"},{"type":"null"}]},"query":{"type":"string"},"page":{"type":"string","format":"uri"}}},"entities":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Entity"},{"type":"object","properties":{"matched":{"type":"string"},"score":{"type":"number"}}}]}},"claims":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/ClaimRow"},{"type":"object","properties":{"page":{"type":"string","format":"uri"}}}]}},"days":{"type":"array","items":{"type":"object","properties":{"page":{"type":"string","format":"uri"}},"additionalProperties":true}},"complete":{"type":"boolean"},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["query","kind","answer","answers","entities","claims","days","complete","legend"]},"TrendsCounts":{"type":"object","properties":{"domain":{"type":"string","enum":["ai","tech","both"]},"from_quarter":{"type":"string"},"summary":{"type":"string"},"summary_by_domain":{"type":"object","properties":{"ai":{"type":"string"},"tech":{"type":"string"}}},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"from":{"type":"string"},"computed_at":{"type":"string"},"counts":{"type":"object","properties":{"counted":{"type":"integer"},"awaiting_check":{"type":"integer"},"awaiting_tags":{"type":"integer"},"by_domain":{"type":"object","additionalProperties":{"type":"integer"}}},"required":["counted","awaiting_check","awaiting_tags"]},"updates":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"n":{"type":"integer"}}}},"themes":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"theme":{"type":"string"},"n":{"type":"integer"}}}},"release_kinds":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"kind":{"type":"string"},"n":{"type":"integer"}}}},"models":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"entity":{"type":"string"},"developer":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"type":"string"},"n":{"type":"integer"}}}},"deals":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"kind":{"type":"string"},"n":{"type":"integer"}}}},"amounts":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"kind":{"type":"string"},"currency":{"type":"string"},"total":{"type":"number"},"n":{"type":"integer"}}}},"largest":{"type":"array","items":{"type":"object"}},"acquisitions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"},"day":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"acquirer_is_entity":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"countries":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"kind":{"type":"string"},"n":{"type":"integer"}}}},"partners":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"type":{"type":"string"},"n":{"type":"integer"}}}},"coverage":{"type":"array","items":{"type":"object","properties":{"feed":{"type":"string"},"since":{"type":"string"},"posts":{"type":"integer"}}}},"releases":{"type":"array","items":{"type":"object"}},"recent_deals":{"type":"array","items":{"type":"object"}},"activity":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"entity":{"type":"string"},"developer":{"anyOf":[{"type":"string"},{"type":"null"}]},"family":{"type":"string","enum":["release","change","deal"]},"n":{"type":"integer"}}}},"model_releases":{"type":"array","items":{"type":"object"}},"models_by_company":{"type":"array","items":{"type":"object","properties":{"company":{"type":"string"},"by_quarter":{"type":"object","additionalProperties":{"type":"integer"}},"tiers":{"type":"object","additionalProperties":{"type":"integer"}}}}},"companies":{"type":"array","items":{"type":"object"}},"cadence":{"type":"object"},"topics":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"slug":{"type":"string"},"label":{"type":"string"},"family":{"type":"string"},"about":{"type":"string"}}}}},"required":["domain","from_quarter","summary","title","computed_at","counts","updates","themes","release_kinds","models","deals","amounts","topics"],"description":"The record's dated events counted by quarter since 2023, from checked claims only, by the trend tags a model gives each claim from a fixed list. Each tag says whether the claim is about AI or the rest of tech, judged by the announcement (a phone is tech, a model is AI): domain=ai or domain=tech keeps one side and adds each company's releases, updates and deals; without it every row carries d. Product updates by theme (agents, coding, voice_audio, open_weights, developer_platform...), releases by kind, model releases by company (each company read with its products, as group=1 reads it) and tier, deals by kind (funding_round, investment_out, grant_program, capital_commitment, acquisition, partnership, customer, expansion) with the amounts disclosed per currency (as stated, never converted), the latest releases and deals, the largest amounts, who bought whom, countries, partners' kinds and each source's coverage. from=YYYY-Qn keeps the quarters from that one on. model_releases lists every model release with its day, maker, tier and themes; with domain=ai, cadence gives each company's median days between model releases (and between frontier ones), its latest release, and the mix (small and fast, frontier, open weights) in the last two complete quarters against the two before. topic=voice_audio (a theme, a deal kind, model, release, update or deal) returns the checked claims behind it instead, in domain when given, and company=google (a key from companies[].key) narrows them to one company's records, newest first, with their tags; q=2026-Q3 narrows them to a quarter; limit (max 200) and offset page. The counts are a snapshot taken after each load (computed_at). summary is the sentence /trends (or /trends/tech, or the topic page) leads with, over the quarters returned; with a domain, title is that page's title from the same counts; without one, summary names each domain in turn and summary_by_domain gives { ai, tech } apart. Every row is tagged with its domain (d) when no domain is asked.","additionalProperties":true},"TopicClaims":{"type":"object","properties":{"topic":{"type":"string"},"label":{"type":"string"},"summary":{"type":"string"},"domain":{"type":"string","enum":["ai","tech","both"]},"quarter":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"type":"string"},"company_records":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"count":{"type":"integer"},"complete":{"type":"boolean"},"next_offset":{"type":"integer"},"remainder":{"type":"string"},"claims":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/ClaimRow"},{"type":"object","properties":{"tags":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]}}}]}},"legend":{"$ref":"#/components/schemas/Legend"}},"required":["topic","label","domain","quarter","total","count","complete","claims","legend"]},"Health":{"type":"object","properties":{"status":{"type":"string","enum":["ok","degraded"]},"ok":{"type":"boolean"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}]},"claims":{"type":"integer"},"entities":{"type":"integer"},"sources":{"type":"integer"},"dated_share":{"type":"number"},"primary_sourced_share":{"type":"number"},"flagged":{"type":"integer"},"unverified":{"type":"integer"},"superseded":{"type":"integer"},"unlabeled_values":{"type":"integer"},"awaiting_check":{"type":"integer"},"last_change":{"anyOf":[{"type":"string"},{"type":"null"}]},"hard_rules":{"type":"object","properties":{"unsourced":{"type":"integer"},"dangling_pointers":{"type":"integer"},"ends_before_start":{"type":"integer"},"future_dated":{"type":"integer"},"open_duplicate_groups":{"type":"integer"}}},"computed_at":{"type":"string"},"db_latency_ms":{"type":"integer"},"checked_at":{"type":"string"},"db":{"type":"string","enum":["unreachable","error"]},"detail":{"type":"string"}},"required":["status","ok","checked_at"],"description":"Record size, sourcing shares and the hard-rule counts (each must be zero), as counted in the database after the last pipeline run (computed_at says when). Not rate limited."},"Subscription":{"type":"object","properties":{"id":{"type":"string","pattern":"^sub_[a-f0-9]{32}$"},"url":{"type":"string","format":"uri","description":"Where deliveries go: https, on a public host."},"entity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The record (slug) the subscription is for; null for every record."},"predicates":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The predicates it is for; null for every predicate."},"active":{"type":"boolean","description":"false once deactivated: by DELETE, by ten failed deliveries in a row, or with the key that made it."},"created_at":{"type":"string","format":"date-time"},"last_delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The cursor: the last delivery the receiver answered 2xx; the next delivery carries the claims recorded after it."},"last_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the receiver last answered; null before the first delivery or when it did not answer."},"failures":{"type":"integer","description":"Consecutive failed deliveries; reset by a 2xx, deactivates at 10."}},"required":["id","url","entity","predicates","active","created_at","last_delivered_at","last_status","failures"],"description":"A webhook subscription as GET /v1/subscriptions lists it: never its secret."},"SubscriptionCreate":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"https only, on a public domain name: no IP literal in a private, loopback or link-local range, no localhost or site-local name, no credentials, at most 2,000 characters. The name is resolved again at delivery time and refused when it points at such an address."},"entity":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,79}$","description":"A record's slug (as in /record/{slug}), when the subscription is for one record; 404 when no record has it."},"predicates":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9_]{1,60}$"},"maxItems":20,"description":"The predicates to deliver (ceo, revenue…), lowercased and deduplicated; at most 20. Any predicate when left out."}},"required":["url"],"description":"What POST /v1/subscriptions takes."},"SubscriptionCreated":{"allOf":[{"$ref":"#/components/schemas/Subscription"},{"type":"object","properties":{"secret":{"type":"string","description":"32 random bytes as base64url: the HMAC-SHA256 key of X-AsOf-Signature. Shown once; never listed again."},"note":{"type":"string"}},"required":["secret"]}],"description":"The new subscription with its secret."},"SubscriptionList":{"type":"object","properties":{"count":{"type":"integer"},"max_active":{"type":"integer","const":20,"description":"Active subscriptions one key may hold."},"subscriptions":{"type":"array","items":{"$ref":"#/components/schemas/Subscription"}}},"required":["count","max_active","subscriptions"],"description":"The key's subscriptions, active and not, newest first (at most 200)."},"WebhookClaim":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string","description":"The record's slug."},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"predicate":{"type":"string"},"value":{"type":"string"},"valid_from":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"valid_to":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"recorded":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The day AsOf first held it."},"confidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["valid","unverified","flagged","superseded"]},{"type":"null"}]},"superseded_by":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The claim page, /claim/{id}."},"sources":{"type":"array","items":{"type":"object","properties":{"url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"tier":{"anyOf":[{"type":"string"},{"type":"null"}]},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":["id","entity","entity_name","predicate","value","valid_from","valid_to","recorded","confidence","status","superseded_by","updated_at","url","sources"],"description":"A claim as a webhook delivery carries it (pipeline/webhooks.py attach): the row /v1/claims lists, without the legend, evidence and citation; GET /v1/claims/{id} returns the rest."},"WebhookDelivery":{"type":"object","properties":{"subscription":{"type":"string","description":"The subscription's id."},"delivery":{"type":"string","format":"uuid","description":"This delivery's id, also the X-AsOf-Delivery header: the same claims sent again after a failure come under a new id."},"since":{"type":"string","format":"date-time","description":"The claims were recorded after this instant: the last successful delivery, or 24 hours before a first one."},"entity":{"anyOf":[{"type":"string"},{"type":"null"}]},"predicates":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"count":{"type":"integer","maximum":2000},"claims":{"type":"array","items":{"$ref":"#/components/schemas/WebhookClaim"},"description":"Checked claims only, oldest recorded first, at most 2,000."}},"required":["subscription","delivery","since","entity","predicates","count","claims"],"description":"The body pipeline/webhooks.py POSTs to a subscription's URL after each daily load, as compact JSON with its keys sorted, so X-AsOf-Signature can be checked over the raw bytes. After each daily load, every active subscription with new claims gets one POST: Content-Type: application/json, User-Agent: asof-webhooks/1, X-AsOf-Delivery: <uuid> and X-AsOf-Signature: sha256=<hex HMAC-SHA256 of the raw body, keyed with the subscription's secret>; recompute it over the bytes as received, before parsing. The body is { subscription, delivery, since, entity, predicates, count, claims }: claims are the rows /v1/claims lists since the last successful delivery (the last 24 hours for a first one), checked claims only, oldest recorded first, at most 2,000 a delivery, each with id, entity (its slug), entity_name, predicate, value, valid_from, valid_to, recorded, confidence, status, superseded_by, updated_at, url (its claim page) and sources[] (url, tier, published_at). Answer 2xx within 10 seconds. Anything else, or no answer, leaves the cursor where it was, so the same claims come again next run, and ten failed deliveries in a row deactivate the subscription. Nothing is sent when nothing is new. Revoking a key deactivates its subscriptions."},"FactRow":{"type":"object","properties":{"entity":{"type":"string","description":"The company's slug."},"name":{"type":"string"},"value":{"type":"string","description":"The value as the page words it (a figure abbreviated: $200.97 billion)."},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"For a period figure: the period it is for, where the row says one."},"since":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"The day the value took effect; null when the source gives none."},"undated":{"type":"boolean","description":"Present and true when since is null."},"source":{"anyOf":[{"type":"object","properties":{"domain":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["domain","url"]},{"type":"null"}]},"claims":{"type":"array","items":{"type":"string"},"description":"The ids of the claims the row states (/v1/claims/{id})."},"page":{"type":"string","format":"uri","description":"The company's own fact page: every earlier value and what replaced what."}},"required":["entity","name","value","since","claims","page"],"description":"One company's current value of a fact, on /v1/facts/{predicate}."},"FactAcross":{"type":"object","properties":{"predicate":{"type":"string"},"as_of":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"summary":{"type":"string","description":"The sentence /facts/{predicate} leads with."},"title":{"type":"string"},"labs":{"type":"array","items":{"$ref":"#/components/schemas/FactRow"},"description":"The AI labs."},"companies":{"type":"array","items":{"$ref":"#/components/schemas/FactRow"},"description":"Every other company."},"page":{"type":"string","format":"uri"},"legend":{"type":"object","properties":{"since":{"type":"string"}}}},"required":["predicate","as_of","summary","labs","companies","page"],"description":"One fact across every company: what the record asserts today (src/app/v1/facts/[predicate]/route.ts)."},"ModelRow":{"type":"object","properties":{"line":{"type":"string","description":"The model line's key, e.g. claude-fable."},"label":{"type":"string","description":"The line's name within its family, e.g. Fable."},"model":{"type":"string","description":"The model's slug: /v1/entities/{slug}."},"name":{"type":"string"},"record":{"type":"string","format":"uri"},"lab":{"type":"string"},"lab_name":{"type":"string"},"family":{"type":"string"},"lineage":{"type":"string","format":"uri","description":"The family's page, /models/{family}."},"api_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"released":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"release_claim":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string","enum":["available","unknown","deprecated","retired","unreleased"]},"status_text":{"type":"string"},"status_claim":{"type":"string","description":"With status available: the claim that says so."},"status_basis":{"type":"string","enum":["price","available_in","app_default"],"description":"With status available: what the claim is (a listed price, a listed availability, an app's default)."},"tier":{"anyOf":[{"type":"string"},{"type":"null"}]},"flagship":{"type":"boolean"},"newest_release":{"type":"boolean"},"app_default":{"type":"boolean"},"context_window":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"In the lab's words."},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"In the lab's words."}},"required":["line","label","model","name","released","status"],"description":"A model as /v1/models (models, older_lines) and /v1/models/{family} (lineup, older_lines) list it. /v1/models adds record, lab, family, tier and the status claim; a family's lineup adds newest_release and app_default."},"ModelsIndex":{"type":"object","properties":{"as_of":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"page":{"type":"string","format":"uri"},"answer":{"type":"string","description":"The sentence /models leads with."},"filter":{"type":"object","properties":{"lab":{"anyOf":[{"type":"string"},{"type":"null"}]},"tier":{"anyOf":[{"type":"string"},{"type":"null"}]},"sort":{"type":"string"},"dir":{"type":"string","enum":["asc","desc"]}}},"flagships":{"type":"object","properties":{"answer":{"type":"string"},"labs":{"type":"array","items":{"type":"object","properties":{"lab":{"type":"string"},"lab_name":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"},"family":{"type":"string"},"line":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["flagship","newest_release"],"description":"flagship: the lab states it; newest_release: the lab states none, so its newest release leads."},"lead":{"type":"string"},"released":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"release_claim":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"flagship_stated":{"anyOf":[{"type":"object","properties":{"url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"stated":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"newest_release":{"anyOf":[{"type":"object","properties":{"model":{"type":"string"},"name":{"type":"string"},"released":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}}},{"type":"null"}]},"other_family_flagship":{"anyOf":[{"type":"object","properties":{"family":{"type":"string"},"label":{"type":"string"},"model":{"type":"string"},"name":{"type":"string"},"released":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"stated":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}},"required":["lab","model","name","family","kind"]}}},"required":["answer","labs"]},"models":{"type":"array","items":{"$ref":"#/components/schemas/ModelRow"},"description":"The newest model in each line that is not retired, filtered and sorted as asked."},"older_lines":{"type":"array","items":{"$ref":"#/components/schemas/ModelRow"},"description":"Lines a newer line replaced."},"labs":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]}},"families":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string"},"name":{"type":"string"},"lineage":{"type":"string","format":"uri"},"json":{"type":"string","format":"uri"}},"required":["family","name","lineage","json"]}}},"required":["as_of","page","answer","flagships","models","older_lines","labs","families"],"description":"Each lab's flagship and every current model (src/app/v1/models/route.ts)."},"LineageClaim":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"string"},"valid_from":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/Source"}}},"required":["id","value","valid_from","status","sources"],"description":"A claim on a lineage: a release, a deprecation or a retirement, with its sources."},"LineageModel":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"line":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"record":{"type":"string","format":"uri"},"released":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"release":{"anyOf":[{"$ref":"#/components/schemas/LineageClaim"},{"type":"null"}]},"predecessors":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"claim":{"type":"string"}},"required":["slug","name","claim"]}},"successors":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"claim":{"type":"string"}},"required":["slug","name","claim"]}},"deprecated":{"anyOf":[{"$ref":"#/components/schemas/LineageClaim"},{"type":"null"}]},"retired":{"anyOf":[{"$ref":"#/components/schemas/LineageClaim"},{"type":"null"}]},"status":{"type":"string","enum":["available","unknown","deprecated","retired","unreleased"]},"newer_in_line":{"anyOf":[{"type":"object","properties":{"model":{"type":"string"},"released":{"anyOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}}},{"type":"null"}]}},"required":["slug","name","line","released","status"],"description":"One model on its family's lineage: its release, what it replaced and what replaced it."},"ModelFamily":{"type":"object","properties":{"family":{"type":"string"},"name":{"type":"string"},"developer":{"type":"string","description":"The lab's slug."},"page":{"type":"string","format":"uri"},"as_of":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"summary":{"type":"string"},"answer":{"type":"string","description":"The paragraph /models/{family} leads with."},"faq":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"a":{"type":"string"}},"required":["q","a"]}},"lineup":{"type":"array","items":{"$ref":"#/components/schemas/ModelRow"},"description":"The newest model in each current line."},"older_lines":{"type":"array","items":{"$ref":"#/components/schemas/ModelRow"}},"latest":{"anyOf":[{"$ref":"#/components/schemas/LineageModel"},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"latest":{"anyOf":[{"type":"string"},{"type":"null"}]},"models":{"type":"array","items":{"$ref":"#/components/schemas/LineageModel"}}},"required":["line","models"]}}},"required":["family","name","page","as_of","summary","lineup","older_lines","latest","lines"],"description":"A model family's lineage (src/app/v1/models/[family]/route.ts)."},"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"description":"What went wrong, with the offending parameter beside it where there is one.","additionalProperties":true},"Unavailable":{"type":"object","properties":{"error":{"type":"string","const":"the record is temporarily unavailable"},"retry_after":{"type":"integer","const":30}},"required":["error","retry_after"],"description":"The database did not answer: try again after retry_after seconds (also the Retry-After header). Never cached."}},"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"An AsOf API key, asof_ and 43 base64url characters. During the preview every endpoint answers without a key, within the per-address limits; pricing and usage terms are being finalised. A key is for a client that needs more than those limits, or a webhook. It is asof_ and 43 base64url characters, sent as Authorization: Bearer asof_… or X-API-Key: asof_… (a bearer token that does not start with asof_, such as an OAuth token an MCP client sends by habit, is ignored). With a valid key the rate limit is the key's own budget, 600 requests a minute by default, counted across every limited endpoint (/v1, /mcp, search, the markdown twins and the dated views) instead of the per-address limits, and X-RateLimit-Limit and X-RateLimit-Remaining then describe that budget. An unknown or revoked key is refused with 401 {\"error\":\"invalid api key\"}, never cached: leave the header off to use the per-address limit. Only the key's SHA-256 is stored, so it is shown once when minted and cannot be shown again. Keys are minted by the AsOf admin: write to hello@chroniclabs.co with what you are building."},"BearerKey":{"type":"http","scheme":"bearer","bearerFormat":"asof_ and 43 base64url characters","description":"The same key as Authorization: Bearer asof_…. A bearer token that does not start with asof_ is ignored, not refused."}},"responses":{"InvalidKey":{"description":"The request carried an API key (X-API-Key, or Authorization: Bearer asof_…) that is unknown or revoked. Refused at the edge before the rate limit is counted, never cached. During the preview every endpoint answers without a key: leave the header off to use the per-address limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"invalid api key","note":"The key is unknown or revoked. During the preview every endpoint answers without one: leave the header off to use the per-address limit."}}}},"Unavailable":{"description":"The database did not answer (withDb in src/lib/api-route.ts): a 503 a client can act on, never cached, with a Retry-After header.","headers":{"Retry-After":{"description":"Seconds to wait before asking again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unavailable"}}}}}}}