{"openapi":"3.2.1","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"Layers of the South API","version":"2.1.2","summary":"Open, keyless, read-only access to a collection of studies on the history and archaeology of Kerala and connected Tamil Nadu.","description":"Every study carries graded statements on four How-sure levels (established, likely, possible, not_known), a canonical URL, a snapshot id and a licence. Responses are compact by default; `view=full` restores the 1.x shape. No key, no account, no payment, and callers are not tracked.\n\nLicences: this description, the schemas and the client examples are MIT. The data the API returns is CC-BY-SA-4.0 (https://creativecommons.org/licenses/by-sa/4.0/); credit Layers of the South, name the snapshot id, link the source and the licence, and say what you changed. Citation records are CC0-1.0. Third-party photographs keep their own terms.\n\nThe same capabilities are served to agents over the Model Context Protocol at `/api/mcp` and over Agent2Agent at `/api/a2a`; six of the eight tool names match `operationId` values here, while `look_up_inscription` and `get_place_chronology` are MCP and A2A tools.\n\nThis is the lean description: the canonical operations only. https://layersofthesouth.org/api/v1/openapi.json adds the alias paths, each marked `x-alias-of`, and the copies kept for 1.x callers.","license":{"name":"MIT","identifier":"MIT"},"contact":{"name":"Layers of the South","url":"https://layersofthesouth.org/developers"}},"externalDocs":{"description":"Developer reference","url":"https://layersofthesouth.org/developers/reference"},"servers":[{"url":"https://layersofthesouth.org","description":"Canonical origin"}],"tags":[{"name":"discovery","summary":"Discovery","description":"Documents that describe the API and say where to go next."},{"name":"collection","summary":"Collection","description":"The studies and their graded statements.","kind":"nav"},{"name":"studies","summary":"Studies","parent":"collection","description":"List, search, read and cite studies."},{"name":"statements","summary":"Statements","parent":"collection","description":"The graded statements of the studies, on the four How-sure levels."},{"name":"integrity","summary":"Integrity","description":"Release identity, replay and packages.","kind":"nav"},{"name":"releases","summary":"Releases","parent":"integrity","description":"Snapshots, their descriptors and comparisons."},{"name":"queries","summary":"Queries","parent":"integrity","description":"Structured reads and their replay."},{"name":"packages","summary":"Packages","parent":"integrity","description":"Evidence packages that verify offline."},{"name":"static","summary":"Static files","description":"Files of the release served as they were built."}],"paths":{"/api/v1":{"get":{"operationId":"get_api_root","tags":["discovery"],"summary":"API home document","description":"Links to the OpenAPI documents, capabilities, status, the study list, search and statements.","responses":{"200":{"description":"Links into the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRoot"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/status":{"get":{"operationId":"get_status","tags":["discovery"],"summary":"Service state, snapshot in service, edition and limits","description":"Reports what this request sees. The site keeps no uptime history.","responses":{"200":{"description":"Service state as this request sees it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/capabilities":{"get":{"operationId":"get_capabilities","tags":["discovery"],"summary":"Limits, response budgets, digest schemes, endpoints, tools and schema URLs","description":"One registry for the HTTP API, the MCP server, the A2A endpoint and the browser tools.","parameters":[{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"The capability registry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapabilityRegistry"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/openapi.json":{"get":{"operationId":"get_openapi","tags":["discovery"],"summary":"This document (OpenAPI 3.2.1)","description":"The canonical description of the HTTP API.","parameters":[{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"An OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/openapi-3.1.json":{"get":{"operationId":"get_openapi_31","tags":["discovery"],"summary":"The same description as OpenAPI 3.1.2","description":"For tools that do not read 3.2 yet. It omits the QUERY method, which 3.1 cannot describe.","parameters":[{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"An OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/openapi-lean.json":{"get":{"operationId":"get_openapi_lean","tags":["discovery"],"summary":"The canonical operations only (OpenAPI 3.2.1)","description":"The same description without the alias paths and the copies kept for 1.x callers: the smaller document to give an agent first.","parameters":[{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"An OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/arazzo.yaml":{"get":{"operationId":"get_arazzo_workflow","tags":["discovery"],"summary":"Arazzo 1.1.0 workflow: search, read the evidence, cite, package","description":"A four-step workflow over this API. The same document is served as JSON at /api/v1/arazzo.json.","parameters":[{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"The workflow document.","content":{"application/yaml":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/schemas/developers/{schemaName}/1.json":{"get":{"operationId":"get_schema","tags":["discovery"],"summary":"JSON Schema of one payload","description":"JSON Schema 2020-12 documents with stable absolute identifiers.","parameters":[{"$ref":"#/components/parameters/schemaName"}],"responses":{"200":{"description":"A JSON Schema 2020-12 document.","content":{"application/schema+json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/schemas/developers/lts-context/1.jsonld":{"get":{"operationId":"get_jsonld_context","tags":["discovery"],"summary":"JSON-LD context of the site's terms","description":"The JSON-LD 1.1 context that maps the field names of the API records to stable term URLs.","responses":{"200":{"description":"A JSON-LD 1.1 context document.","content":{"application/ld+json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/catalogue.json":{"get":{"operationId":"list_studies","tags":["studies"],"summary":"List every study","description":"The study list of the selected snapshot. The compact view gives one short row per study; limit and cursor page through it. view=full restores the 1.x shape.","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/view"},{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"The study list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDomainResult"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"},"X-LTS-Snapshot":{"$ref":"#/components/headers/X-LTS-Snapshot"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"406":{"$ref":"#/components/responses/NotAcceptable"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/search":{"get":{"operationId":"search_studies","tags":["studies"],"summary":"Search studies","description":"Deterministic search over titles, one-line summaries, In brief text and graded statements. Full study text is not searched, and the response says so. Results page with an opaque cursor that is bound to the snapshot and the filters.","parameters":[{"$ref":"#/components/parameters/q"},{"$ref":"#/components/parameters/site"},{"$ref":"#/components/parameters/region"},{"$ref":"#/components/parameters/section"},{"$ref":"#/components/parameters/year_start"},{"$ref":"#/components/parameters/year_end"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/view"},{"$ref":"#/components/parameters/tier"},{"$ref":"#/components/parameters/yearStart"},{"$ref":"#/components/parameters/yearEnd"},{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"Ranked studies with paging.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResults"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"},"X-LTS-Snapshot":{"$ref":"#/components/headers/X-LTS-Snapshot"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"406":{"$ref":"#/components/responses/NotAcceptable"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/studies/{studyId}":{"get":{"operationId":"get_study","tags":["studies"],"summary":"Get a study","description":"One study with its graded statements. The compact view is the default; view=full adds the structured sources, claims and build fields of the 1.x record.","parameters":[{"$ref":"#/components/parameters/studyId"},{"$ref":"#/components/parameters/view"},{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"One study.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Study"}}},"links":{"evidence":{"operationId":"get_study_evidence","parameters":{"studyId":"$response.body#/data/id"}},"citation":{"operationId":"cite_study","parameters":{"studyId":"$response.body#/data/id"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"},"X-LTS-Snapshot":{"$ref":"#/components/headers/X-LTS-Snapshot"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"406":{"$ref":"#/components/responses/NotAcceptable"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/studies/{studyId}/evidence":{"get":{"operationId":"get_study_evidence","tags":["studies"],"summary":"Get a study's sources and neighbours","description":"Sources, recorded date range, graded statements and neighbouring studies.","parameters":[{"$ref":"#/components/parameters/studyId"},{"$ref":"#/components/parameters/depth"},{"$ref":"#/components/parameters/view"},{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"A result envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDomainResult"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"},"X-LTS-Snapshot":{"$ref":"#/components/headers/X-LTS-Snapshot"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"406":{"$ref":"#/components/responses/NotAcceptable"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/studies/{studyId}/citations":{"get":{"operationId":"cite_study","tags":["studies"],"summary":"Cite a study","description":"Citation records for the study and, unless include_sources is false, its sources. format is one of csl-json, bibtex, ris or bundle; all is an alias of bundle. These records are CC0 1.0.","parameters":[{"$ref":"#/components/parameters/studyId"},{"$ref":"#/components/parameters/format"},{"$ref":"#/components/parameters/include_sources"},{"$ref":"#/components/parameters/raw"},{"$ref":"#/components/parameters/view"},{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"A result envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDomainResult"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"},"X-LTS-Snapshot":{"$ref":"#/components/headers/X-LTS-Snapshot"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"406":{"$ref":"#/components/responses/NotAcceptable"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/statements":{"get":{"operationId":"search_statements","tags":["statements"],"summary":"Search graded statements","description":"Graded statements across studies. level accepts the four keys only: established, likely, possible, not_known. Every row carries the label shown to readers and the reason for the level.","parameters":[{"$ref":"#/components/parameters/q"},{"$ref":"#/components/parameters/level"},{"$ref":"#/components/parameters/study"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"Graded statements with paging.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statements"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"},"X-LTS-Snapshot":{"$ref":"#/components/headers/X-LTS-Snapshot"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"406":{"$ref":"#/components/responses/NotAcceptable"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/claims":{"post":{"operationId":"find_evidence_for_claim","tags":["statements"],"summary":"Find evidence for a claim","description":"Returns the studies and graded statements that bear on a claim. It never returns a verdict.","parameters":[{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimRequest"},"examples":{"muziris":{"summary":"What bears on a claim about Muziris","value":{"claim":"Pattanam was the port of Muziris"}}}}}},"responses":{"200":{"description":"A result envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDomainResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/releases":{"get":{"operationId":"list_releases","tags":["releases"],"summary":"List the current and retained snapshots","description":"Release descriptors and the retention policy.","responses":{"200":{"description":"Release descriptors and the retention policy.","content":{"application/json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/releases/{snapshotId}":{"get":{"operationId":"get_release","tags":["releases"],"summary":"Get one release descriptor","description":"Use current for the snapshot in service, then pin later calls to the id it returns.","parameters":[{"$ref":"#/components/parameters/snapshotId"}],"responses":{"200":{"description":"A release descriptor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperRelease"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/releases/feed.json":{"get":{"operationId":"get_release_feed","tags":["releases"],"summary":"JSON Feed 1.1 of editions","description":"One item per edition from the changelog, with its notes, date and release descriptor.","responses":{"200":{"description":"A JSON Feed 1.1 document.","content":{"application/feed+json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/releases/compare":{"get":{"operationId":"get_release_comparison","tags":["releases"],"summary":"Compare two snapshots with a GET","description":"The same comparison as compare_releases, addressed by query parameters.","parameters":[{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/baseSnapshotId"},{"$ref":"#/components/parameters/targetSnapshotId"},{"$ref":"#/components/parameters/compareStudyId"},{"$ref":"#/components/parameters/mode"},{"$ref":"#/components/parameters/compareLimit"},{"$ref":"#/components/parameters/offset"}],"responses":{"200":{"description":"A result envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDomainResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/compare":{"post":{"operationId":"compare_releases","tags":["releases"],"summary":"Compare two snapshots","description":"A structured difference between two retained snapshots, or the labelled synthetic fixture.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareRequest"},"examples":{"fixture":{"summary":"The labelled synthetic correction fixture","value":{"baseSnapshotId":"synthetic-correction-fixture-v1","targetSnapshotId":"current","includeSyntheticFixture":true}}}}}},"responses":{"200":{"description":"A result envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDomainResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/query":{"query":{"operationId":"run_query_with_query_method","tags":["queries"],"summary":"Run a structured read (HTTP QUERY)","description":"The same read as run_query with the HTTP QUERY method (RFC 10008). Use the POST form when an intermediary does not pass QUERY.","parameters":[{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredRead"},"examples":{"search":{"summary":"A structured search","value":{"schemaVersion":"saved-query/1","operationVersion":"lts-read-operations/3","snapshotId":"current","operation":"search","parameters":{"q":"pattanam","limit":2}}}}}}},"responses":{"200":{"description":"A result envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDomainResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}},"post":{"operationId":"run_query","tags":["queries"],"summary":"Run a structured read (POST)","description":"A safe, idempotent read with a JSON body: search, a study, its evidence or its citations.","parameters":[{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StructuredRead"},"examples":{"study":{"summary":"A structured study read","value":{"schemaVersion":"saved-query/1","operationVersion":"lts-read-operations/3","snapshotId":"current","operation":"study_detail","parameters":{"studyId":"R013"}}}}}}},"responses":{"200":{"description":"A result envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDomainResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/replay":{"post":{"operationId":"replay_query","tags":["queries"],"summary":"Replay a saved query and compare digests","description":"Runs a saved query against its pinned snapshot and compares the result with the digest the query carries. A read without an expected digest is not a replay.","parameters":[{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedQuery"},"examples":{"mismatch":{"summary":"A replay whose expected digest does not match","value":{"schemaVersion":"saved-query/1","operationVersion":"lts-read-operations/3","snapshotId":"current","operation":"study_detail","parameters":{"studyId":"R013"},"expectedResultSha256":"0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"responses":{"200":{"description":"The replay receipt and the result that was compared.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationReceipt"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/evidence-packages":{"post":{"operationId":"build_evidence_package","tags":["packages"],"summary":"Build an evidence package","description":"A deterministic package of up to 25 studies with their Markdown, citations and an offline verifier, as a JSON manifest, a preview or a ZIP.","parameters":[{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidencePackageRequest"},"examples":{"preview":{"summary":"Preview a package of one study","value":{"studyIds":["R013"],"format":"preview"}}}}}},"responses":{"200":{"description":"A package manifest, a preview, or the ZIP archive.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/EvidencePackage"},{"$ref":"#/components/schemas/EvidencePackagePreview"}]}},"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}},"get":{"operationId":"preview_evidence_package","tags":["packages"],"summary":"Preview an evidence package with a GET","description":"Shows what a package would contain before it is built, or builds it when a format is given.","parameters":[{"$ref":"#/components/parameters/studyIds"},{"$ref":"#/components/parameters/packageMode"},{"$ref":"#/components/parameters/packageFormat"},{"$ref":"#/components/parameters/snapshot"},{"$ref":"#/components/parameters/X-LTS-Snapshot"}],"responses":{"200":{"description":"A package manifest, a preview, or the ZIP archive.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/EvidencePackage"},{"$ref":"#/components/schemas/EvidencePackagePreview"}]}},"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/.well-known/api-catalog":{"get":{"operationId":"get_api_catalog","tags":["discovery"],"summary":"API catalogue (RFC 9727)","description":"A linkset naming the HTTP API, the MCP endpoint and the A2A endpoint, each with its description.","responses":{"200":{"description":"The API catalogue as a linkset (RFC 9264).","content":{"application/linkset+json":{"schema":{"type":"object"}}},"headers":{"ETag":{"$ref":"#/components/headers/ETag"},"Link":{"$ref":"#/components/headers/Link"}}},"400":{"$ref":"#/components/responses/BadRequest"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/study/{studyId}":{"get":{"operationId":"resolve_study","tags":["discovery"],"summary":"Resolve a study id","description":"Redirects a study id to its page, to its Markdown when Accept prefers text/markdown, or to its API record when Accept prefers application/json.","parameters":[{"$ref":"#/components/parameters/studyId"}],"responses":{"308":{"description":"The location of the representation that Accept prefers.","headers":{"Location":{"schema":{"type":"string","format":"uri-reference"}},"Vary":{"schema":{"type":"string"}}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/problems/{code}":{"get":{"operationId":"get_problem","tags":["discovery"],"summary":"Meaning and remedy of a problem type","description":"Every problem type URL resolves here, as Markdown or JSON; a browser is sent to the errors page.","parameters":[{"$ref":"#/components/parameters/code"}],"responses":{"200":{"description":"The meaning and the remedy of one problem type.","content":{"text/markdown":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"object"}}}},"303":{"description":"A browser is sent to https://layersofthesouth.org/developers/errors.","headers":{"Location":{"schema":{"type":"string","format":"uri-reference"}}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/coverage.json":{"get":{"operationId":"get_static_coverage","tags":["static"],"summary":"Counts of what the collection covers, written by the build","description":"A static file of the release. It is not shaped by view and carries no result envelope.","responses":{"200":{"description":"A static JSON file written by the build.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/neighbors/{studyId}.json":{"get":{"operationId":"get_static_neighbours","tags":["static"],"summary":"Precomputed neighbouring studies of one study","description":"A static file of the release. It is not shaped by view and carries no result envelope.","parameters":[{"$ref":"#/components/parameters/studyId"}],"responses":{"200":{"description":"A static JSON file written by the build.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"$ref":"#/components/responses/NotFound"}}}}},"components":{"parameters":{"snapshot":{"name":"snapshot","in":"query","required":false,"schema":{"type":"string","pattern":"^(current|[0-9a-f]{64})$"},"description":"Snapshot to read: current, or a 64-character snapshot id. A response for a pinned id never changes.","example":"current"},"X-LTS-Snapshot":{"name":"X-LTS-Snapshot","in":"header","required":false,"schema":{"type":"string","pattern":"^(current|[0-9a-f]{64})$"},"description":"The same selector as a header. It must agree with snapshot when both are sent."},"view":{"name":"view","in":"query","required":false,"schema":{"type":"string","enum":["compact","full"],"default":"compact"},"description":"compact (the default) returns a record sized for a model's context: no repeated fields, no build fields, a release reference instead of the descriptor. full returns the 1.x shape."},"q":{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":2048},"description":"Words to look for.","example":"pattanam"},"site":{"name":"site","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":128},"description":"Keep studies tied to one excavated site.","example":"pattanam"},"region":{"name":"region","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":128},"description":"Keep studies whose regions include this text."},"section":{"name":"section","in":"query","required":false,"schema":{"type":"string","enum":["methods","landscapes","everyday","craft","words","connections","memory"]},"description":"Keep one section of the collection."},"year_start":{"name":"year_start","in":"query","required":false,"schema":{"type":"integer","minimum":-10000,"maximum":2100},"description":"Earliest year of interest, as an astronomical year: 0 is 1 BCE and -299 is 300 BCE.","example":-299},"year_end":{"name":"year_end","in":"query","required":false,"schema":{"type":"integer","minimum":-10000,"maximum":2100},"description":"Latest year of interest, as an astronomical year: 0 is 1 BCE and -299 is 300 BCE.","example":300},"yearStart":{"name":"yearStart","in":"query","required":false,"deprecated":true,"schema":{"type":"integer","minimum":-10000,"maximum":2100},"description":"Alias of year_start."},"yearEnd":{"name":"yearEnd","in":"query","required":false,"deprecated":true,"schema":{"type":"integer","minimum":-10000,"maximum":2100},"description":"Alias of year_end."},"tier":{"name":"tier","in":"query","required":false,"deprecated":true,"schema":{"type":"string","enum":["all","primary","secondary","contextual"]},"description":"No study carries a tier in the current data. Use level on /api/v1/statements for the How-sure levels."},"limit":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"description":"Rows per page.","example":2},"cursor":{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512},"description":"nextCursor of the previous page. It is bound to the snapshot and the filters."},"studyId":{"name":"studyId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128},"description":"Study id such as R013, or the study's route slug.","example":"R013"},"depth":{"name":"depth","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":3,"default":1},"description":"How many steps of neighbouring studies to follow."},"format":{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["csl-json","bibtex","ris","bundle","all","csl","json","bib"],"default":"csl-json"},"description":"Citation format. bundle returns all three; all is an alias of bundle, csl is an alias of csl-json, json is an alias of csl-json, bib is an alias of bibtex."},"include_sources":{"name":"include_sources","in":"query","required":false,"schema":{"type":"boolean","default":true},"description":"Set false to cite the study alone."},"raw":{"name":"raw","in":"query","required":false,"schema":{"type":"boolean","default":false},"description":"With format=bibtex or ris, return the text itself instead of the JSON envelope."},"level":{"name":"level","in":"query","required":false,"schema":{"type":"string","enum":["established","likely","possible","not_known"]},"description":"Keep statements at one How-sure level.","example":"not_known"},"study":{"name":"study","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":128},"description":"Keep the statements of one study.","example":"R013"},"snapshotId":{"name":"snapshotId","in":"path","required":true,"schema":{"type":"string","pattern":"^(current|[0-9a-f]{64})$"},"description":"current, or a 64-character snapshot id.","example":"current"},"schemaName":{"name":"schemaName","in":"path","required":true,"schema":{"type":"string","enum":["public-domain-result","developer-release","evidence-package","saved-query","capability-registry","verification-receipt","problem","study","statements","search-results","status"]},"example":"study"},"code":{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9_]+$"},"description":"The last segment of a problem type URL.","example":"study_not_found"},"from":{"name":"from","in":"query","required":false,"schema":{"type":"string"},"description":"Base snapshot id."},"to":{"name":"to","in":"query","required":false,"schema":{"type":"string"},"description":"Target snapshot id; current when absent."},"baseSnapshotId":{"name":"baseSnapshotId","in":"query","required":false,"schema":{"type":"string"},"description":"Alias of from."},"targetSnapshotId":{"name":"targetSnapshotId","in":"query","required":false,"schema":{"type":"string"},"description":"Alias of to."},"compareStudyId":{"name":"studyId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":128},"description":"Limit the comparison to one study."},"mode":{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["fixture","synthetic"]},"description":"fixture compares against the labelled synthetic correction fixture."},"compareLimit":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"description":"Changed studies per page."},"offset":{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0},"description":"Rows to skip."},"studyIds":{"name":"studyIds","in":"query","required":true,"schema":{"type":"string"},"description":"Comma-separated study ids, at most 25.","example":"R013"},"packageMode":{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["preview","manifest","json","zip"],"default":"preview"}},"packageFormat":{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["preview","json","zip"]}},"taskFile":{"name":"file","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9._-]+\\.json$"}}},"headers":{"ETag":{"description":"Strong validator: the SHA-256 of the body. Send it back in If-None-Match.","schema":{"type":"string"}},"Link":{"description":"Links to the API catalogue, this description, the reference and the status document; next and first on paged responses.","schema":{"type":"string"}},"X-LTS-Snapshot":{"description":"Snapshot id the response was read from.","schema":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"RateLimit-Policy":{"description":"Budget of the serving instance for this kind of request. Approximate.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer","minimum":1}},"Accept-Query":{"description":"Media types the QUERY method accepts.","schema":{"type":"string"}}},"responses":{"BadRequest":{"description":"The request is malformed: an unknown parameter, a value out of range or an invalid body.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"NotFound":{"description":"The study, snapshot or resource does not exist.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"MethodNotAllowed":{"description":"The method is not supported here. See the Allow header.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Allow":{"schema":{"type":"string"}}}},"NotAcceptable":{"description":"None of the media types in Accept can be produced.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Conflict":{"description":"Two selectors disagree, an identifier is ambiguous, or a cursor belongs to other filters.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Gone":{"description":"The snapshot is past its retention window.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"PayloadTooLarge":{"description":"The body or the requested package is larger than the published limit.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"UnsupportedMediaType":{"description":"The body must be application/json.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"TooManyRequests":{"description":"The serving instance is out of budget for the moment. Wait for Retry-After.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}},"headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"InternalError":{"description":"The service failed. Nothing about the request needs to change.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"schemas":{"Problem":{"type":"object","title":"Problem details (RFC 9457)","description":"Every error body. `type` resolves to a page that gives the meaning and the remedy.","properties":{"type":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"status":{"type":"integer","minimum":400,"maximum":599},"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string","pattern":"^[a-z0-9_]+$"},"field":{"type":["string","null"]},"snapshotId":{"type":"string"},"candidates":{"type":"array","items":{"type":"object"}}},"required":["type","title","status","detail"],"additionalProperties":true},"PublicDomainResult":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://layersofthesouth.org/schemas/developers/public-domain-result/1.json","title":"Layers of the South Public Domain Result Envelope (v1)","description":"Shared canonical domain result payload returned across HTTP, MCP, A2A, and WebMCP adapters.","type":"object","properties":{"schemaVersion":{"type":"string","const":"public-domain-result/1"},"kind":{"type":"string","enum":["catalogue","study_detail","search_results","study_evidence","study_citations","statements","claim_evidence","inscription_record","place_chronology","release_comparison","epigraphic_reading_result","stratigraphy_context_result","claim_verification_result","pleiades_chronology_result"]},"view":{"type":"string","enum":["compact","full"]},"snapshotId":{"type":"string","pattern":"^[0-9a-f]{64}$"},"contentBundleSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"release":{"description":"The full release descriptor (view=full), or a reference to it (view=compact).","oneOf":[{"$ref":"https://layersofthesouth.org/schemas/developers/developer-release/1.json"},{"type":"object","properties":{"snapshotId":{"type":"string","pattern":"^[0-9a-f]{64}$"},"href":{"type":"string","format":"uri"}},"required":["snapshotId","href"],"additionalProperties":false}]},"canonicalObjectSha256":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"RFC 8785 digest of `data` exactly as returned."},"objectCanonicalization":{"type":"string","const":"rfc8785-jcs-sha256/1"},"attribution":{"type":"object","description":"What to credit and under which licence. `scope` says what the licence covers.","properties":{"credit":{"type":"string"},"licence":{"type":"string","description":"SPDX identifier."},"licenceUrl":{"type":"string","format":"uri"},"citeAs":{"type":"string","format":"uri"},"snapshotId":{"type":"string","pattern":"^[0-9a-f]{64}$"},"scope":{"type":"string"}},"required":["credit","licence","licenceUrl","citeAs","snapshotId","scope"],"additionalProperties":false},"links":{"type":"object","additionalProperties":{"type":"string","format":"uri"}},"reviewStatus":{"type":"object"},"publicationApproved":{"type":"boolean"},"data":{"type":"object"}},"required":["schemaVersion","kind","snapshotId","canonicalObjectSha256","objectCanonicalization","data"],"additionalProperties":true},"Study":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://layersofthesouth.org/schemas/developers/study/1.json","title":"Study","description":"One study with its graded statements. The compact view is the default; the full view adds fields.","allOf":[{"$ref":"https://layersofthesouth.org/schemas/developers/public-domain-result/1.json"}],"type":"object","properties":{"kind":{"const":"study_detail"},"data":{"type":"object","properties":{"id":{"type":"string"},"publicId":{"type":"string"},"routeSlug":{"type":"string"},"revision":{"type":"integer"},"title":{"type":"string","description":"The statement title when the study has a reader label."},"summary":{"type":["string","null"]},"section":{"type":["string","null"]},"chronology":{"type":["object","null"]},"statementTitle":{"type":["string","null"]},"oneLine":{"type":["string","null"]},"inBrief":{"type":["string","null"]},"whyItMatters":{"type":["string","null"]},"howSure":{"type":["array","null"],"items":{"type":"object","properties":{"level":{"type":"string","enum":["established","likely","possible","not_known"]},"label":{"type":"string"},"finding":{"type":"string"},"why":{"type":"string"}},"required":["level","label","finding"]}},"statementsAvailable":{"type":"boolean"},"howSureCounts":{"type":["object","null"],"properties":{"established":{"type":"integer","minimum":0},"likely":{"type":"integer","minimum":0},"possible":{"type":"integer","minimum":0},"not_known":{"type":"integer","minimum":0}},"required":["established","likely","possible","not_known"],"additionalProperties":false},"twoViews":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"viewA":{"type":"string"},"viewB":{"type":"string"},"wouldSettle":{"type":"string"}},"required":["viewA","viewB"],"additionalProperties":false}},"howWeKnow":{"type":"array","items":{"type":"string"}},"labelCheck":{"oneOf":[{"type":"null"},{"type":"object","description":"How the reader label was checked. Neither value is a specialist review.","properties":{"kind":{"type":"string","enum":["ai_checked_against_study_text","ai_wording_check_not_specialist_review"]},"date":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"}},"required":["kind","date"],"additionalProperties":false}]},"sourceCount":{"type":"integer","minimum":0},"claimCount":{"type":"integer","minimum":0},"bodySha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"bodyCanonicalization":{"type":"string","const":"lts-markdown-body/2"},"body":{"type":"object","description":"One page of the Markdown text, present only when it was asked for.","properties":{"text":{"type":"string"},"offset":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1},"totalCharacters":{"type":"integer","minimum":0},"nextOffset":{"type":["integer","null"]}},"required":["text","offset","totalCharacters","nextOffset"]}},"required":["id","title","bodySha256"]}},"required":["kind","data"]},"SearchResults":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://layersofthesouth.org/schemas/developers/search-results/1.json","title":"Search results","description":"Ranked studies. Compact rows carry the one-line summary and the count of statements at each level.","allOf":[{"$ref":"https://layersofthesouth.org/schemas/developers/public-domain-result/1.json"}],"type":"object","properties":{"kind":{"const":"search_results"},"data":{"type":"object","properties":{"query":{"type":"string"},"filters":{"type":"object"},"retrievalStatus":{"type":"string","enum":["matches_found","no_matches"]},"rankingMethod":{"type":"string"},"coverage":{"type":"object","properties":{"fullTextSearched":{"const":false},"studyCount":{"type":"integer"},"statementsAvailable":{"type":"boolean"}},"required":["fullTextSearched"]},"retrievalLimitations":{"type":"string"},"totalMatches":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1},"offset":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]},"cursorVersion":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"oneLine":{"type":["string","null"]},"howSureCounts":{"type":["object","null"],"properties":{"established":{"type":"integer","minimum":0},"likely":{"type":"integer","minimum":0},"possible":{"type":"integer","minimum":0},"not_known":{"type":"integer","minimum":0}},"required":["established","likely","possible","not_known"],"additionalProperties":false},"url":{"type":"string","format":"uri"},"markdownUrl":{"type":"string","format":"uri"},"section":{"type":["string","null"]},"relevanceScore":{"type":"integer"},"matchedTerms":{"type":"array","items":{"type":"string"}},"matchedFields":{"type":"array","items":{"type":"string"}},"matchedStatements":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["established","likely","possible","not_known"]},"label":{"type":"string"},"finding":{"type":"string"},"why":{"type":"string"}},"required":["level","label","finding"]}}},"required":["id","title"]}}},"required":["query","totalMatches","limit","offset","nextCursor","results","rankingMethod","coverage"]}},"required":["kind","data"]},"Statements":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://layersofthesouth.org/schemas/developers/statements/1.json","title":"Graded statements","description":"Graded statements across studies, with the legend of the four How-sure levels.","allOf":[{"$ref":"https://layersofthesouth.org/schemas/developers/public-domain-result/1.json"}],"type":"object","properties":{"kind":{"const":"statements"},"data":{"type":"object","properties":{"query":{"type":"string"},"filters":{"type":"object"},"levels":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["established","likely","possible","not_known"]},"label":{"type":"string"},"definition":{"type":"string"}},"required":["key","label","definition"],"additionalProperties":false}},"coverage":{"type":"object"},"countsByLevel":{"type":["object","null"],"properties":{"established":{"type":"integer","minimum":0},"likely":{"type":"integer","minimum":0},"possible":{"type":"integer","minimum":0},"not_known":{"type":"integer","minimum":0}},"required":["established","likely","possible","not_known"],"additionalProperties":false},"totalMatches":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1},"offset":{"type":"integer","minimum":0},"nextCursor":{"type":["string","null"]},"cursorVersion":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["established","likely","possible","not_known"]},"label":{"type":"string"},"finding":{"type":"string"},"why":{"type":"string"},"studyId":{"type":"string"},"studyTitle":{"type":"string"},"position":{"type":"integer","minimum":1},"url":{"type":"string","format":"uri"}},"required":["studyId","position","level","label","finding","url"]}}},"required":["levels","totalMatches","limit","offset","nextCursor","results"]}},"required":["kind","data"]},"Status":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://layersofthesouth.org/schemas/developers/status/1.json","title":"Service status","description":"What one request sees: service state, the snapshot in service, the edition and the limits.","type":"object","properties":{"status":{"type":"string","enum":["ok","degraded"]},"edition":{"type":"string"},"snapshotId":{"type":"string","pattern":"^[0-9a-f]{64}$"},"contentBundleSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"publicationState":{"type":"string"},"accessMode":{"type":"string","enum":["private_preview","public_anonymous"]},"studyCount":{"type":"integer","minimum":0},"statementCount":{"type":"integer","minimum":0},"limits":{"type":"object"},"responseBudgets":{"type":"object","additionalProperties":{"type":"integer"}},"rateLimit":{"type":"object","description":"Per serving instance and approximate."},"links":{"type":"object","additionalProperties":{"type":"string","format":"uri"}}},"required":["status","edition","snapshotId","limits"],"additionalProperties":true},"DeveloperRelease":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://layersofthesouth.org/schemas/developers/developer-release/1.json","title":"Layers of the South Canonical Release Descriptor (v1)","description":"Authoritative release and snapshot provenance descriptor (RI-01).","type":"object","properties":{"schemaVersion":{"type":"string","const":"developer-release/1"},"packageVersion":{"type":"string","minLength":1},"snapshotId":{"type":"string","pattern":"^[0-9a-f]{64}$"},"contentBundleSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"sourceCommit":{"type":["string","null"],"minLength":7},"sourceTreeState":{"type":["string","null"],"enum":["clean","dirty",null]},"provenanceUnavailableReason":{"type":["string","null"]},"provenanceEvidence":{"type":["object","null"],"description":"Reference to the original release manifest from which origin fields were read; a checksum does not establish a signature."},"inheritedProvenance":{"type":["object","null"],"description":"Unverified legacy claims kept separately; never authoritative original-release fields."},"generatedAt":{"type":["string","null"],"format":"date-time","description":"Recorded original release build time, or null when it is unknown."},"publicationState":{"type":"string","enum":["local_review_only","approved_public_release"]},"publicationApproved":{"type":"boolean"},"accessMode":{"type":"string","enum":["private_preview","public_anonymous"]},"status":{"type":"string","enum":["current","retained","expired","withdrawn"]},"studyCount":{"type":"integer","minimum":1},"routeCount":{"type":"integer","minimum":1},"digestSchemes":{"type":"object","properties":{"fileSha256":{"type":"string","const":"lts-raw-file/1"},"bodySha256":{"type":"string","const":"lts-markdown-body/2"},"canonicalObjectSha256":{"type":"string","const":"rfc8785-jcs-sha256/1"}},"required":["fileSha256","bodySha256","canonicalObjectSha256"],"additionalProperties":false},"protocolVersions":{"type":"object","properties":{"httpApi":{"type":"string","const":"v1"},"openapiPrimary":{"type":"string","const":"3.2.1"},"openapiCompatibility":{"type":"string","const":"3.1.2"},"jsonSchemaDialect":{"type":"string","const":"https://json-schema.org/draft/2020-12/schema"},"mcpSupported":{"type":"array","items":{"type":"string"}},"a2aRelease":{"type":"string","const":"v1.0.1"},"a2aWireVersion":{"type":"string","const":"1.0"},"roCrateProfile":{"type":"string","const":"https://w3id.org/ro/crate/1.3"}},"required":["httpApi","openapiPrimary","openapiCompatibility","jsonSchemaDialect","mcpSupported","a2aRelease","a2aWireVersion","roCrateProfile"],"additionalProperties":true}},"required":["schemaVersion","packageVersion","snapshotId","contentBundleSha256","sourceCommit","sourceTreeState","generatedAt","publicationState","publicationApproved","accessMode","status","studyCount","routeCount","digestSchemes","protocolVersions"],"additionalProperties":true},"EvidencePackage":{"title":"Layers of the South Reproducible Evidence Package (v1)","description":"An evidence package manifest: the JSON answer and the manifest.json of the ZIP.","type":"object","properties":{"schemaVersion":{"type":"string","const":"evidence-package/1"},"packageId":{"type":"string"},"snapshotId":{"type":"string","pattern":"^[0-9a-f]{64}$"},"contentBundleSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"generatedAt":{"type":["string","null"]},"studyIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":25},"savedQuery":{"$ref":"https://layersofthesouth.org/schemas/developers/saved-query/1.json"},"digestSchemes":{"type":"object"},"studies":{"type":"array","items":{"type":"object"}},"citations":{"type":"object"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"fileSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"byteLength":{"type":"integer","minimum":0}},"required":["path","fileSha256","byteLength"]}},"canonicalObjectSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"offlineReplaySha256":{"type":["string","null"],"pattern":"^[0-9a-f]{64}$"},"whatIsInThisDownload":{"type":"object"}},"additionalProperties":true,"required":["schemaVersion","snapshotId","studyIds"]},"SavedQuery":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"const":"saved-query/1"},"operationVersion":{"enum":["lts-read-operations/3","lts-read-operations/2"],"default":"lts-read-operations/3"},"snapshotId":{"type":"string","pattern":"^(current|[0-9a-f]{64})$"},"operation":{"type":"string","enum":["search","study_detail","study_evidence","study_citations"]},"parameters":{"type":"object"},"expectedResultSha256":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"Mandatory full result.data JCS digest. Never inferred from the replayed result."},"expectedStudyIds":{"type":"array","maxItems":100,"items":{"type":"string","minLength":1,"maxLength":128}},"canonicalization":{"const":"rfc8785-jcs-sha256/1"},"offlineReplaySha256":{"type":"string","pattern":"^[0-9a-f]{64}$","deprecated":true,"description":"Accepted legacy metadata; never used in place of expectedResultSha256."},"schema":{"type":"string","enum":["saved-query/1","lts-saved-query/1"],"deprecated":true},"params":{"type":"object","deprecated":true},"expectedResultJcsSha256":{"type":"string","pattern":"^[0-9a-f]{64}$","deprecated":true},"method":{"type":"string","enum":["GET","POST","QUERY"],"deprecated":true},"endpoint":{"type":"string","deprecated":true}},"required":["schemaVersion","snapshotId","operation","parameters","expectedResultSha256"],"additionalProperties":false,"allOf":[{"if":{"properties":{"operation":{"const":"search"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"cursor":{"type":"string","maxLength":512},"limit":{"type":"integer","minimum":1,"maximum":100},"q":{"type":"string","maxLength":2048},"region":{"type":"string","minLength":1,"maxLength":128},"section":{"type":"string","minLength":1,"maxLength":128},"site":{"type":"string","minLength":1,"maxLength":128},"tier":{"type":"string","enum":["all","primary","secondary","contextual","context"]},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."},"yearEnd":{"type":"integer","minimum":-10000,"maximum":2100},"yearStart":{"type":"integer","minimum":-10000,"maximum":2100},"year_end":{"type":"integer","minimum":-10000,"maximum":2100},"year_start":{"type":"integer","minimum":-10000,"maximum":2100}},"additionalProperties":false}}}},{"if":{"properties":{"operation":{"const":"study_detail"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}},{"if":{"properties":{"operation":{"const":"study_evidence"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"depth":{"type":"integer","minimum":1,"maximum":3},"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}},{"if":{"properties":{"operation":{"const":"study_citations"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"format":{"type":"string","enum":["csl-json","csl","json","bibtex","bib","ris","bundle","all"]},"include_sources":{"type":"boolean"},"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}}],"description":"Bounded safe read operations. Expectations are verification metadata, separate from operation parameters. Replay compares the complete result.data using RFC 8785; source tiers are retrieval metadata.","$id":"https://layersofthesouth.org/schemas/developers/saved-query/1.json","title":"Layers of the South Saved Query Specification (v1)"},"StructuredRead":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"const":"saved-query/1"},"operationVersion":{"enum":["lts-read-operations/3","lts-read-operations/2"],"default":"lts-read-operations/3"},"snapshotId":{"type":"string","pattern":"^(current|[0-9a-f]{64})$"},"operation":{"type":"string","enum":["search","study_detail","study_evidence","study_citations"]},"parameters":{"type":"object"}},"required":["schemaVersion","snapshotId","operation","parameters"],"additionalProperties":false,"allOf":[{"if":{"properties":{"operation":{"const":"search"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"cursor":{"type":"string","maxLength":512},"limit":{"type":"integer","minimum":1,"maximum":100},"q":{"type":"string","maxLength":2048},"region":{"type":"string","minLength":1,"maxLength":128},"section":{"type":"string","minLength":1,"maxLength":128},"site":{"type":"string","minLength":1,"maxLength":128},"tier":{"type":"string","enum":["all","primary","secondary","contextual","context"]},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."},"yearEnd":{"type":"integer","minimum":-10000,"maximum":2100},"yearStart":{"type":"integer","minimum":-10000,"maximum":2100},"year_end":{"type":"integer","minimum":-10000,"maximum":2100},"year_start":{"type":"integer","minimum":-10000,"maximum":2100}},"additionalProperties":false}}}},{"if":{"properties":{"operation":{"const":"study_detail"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}},{"if":{"properties":{"operation":{"const":"study_evidence"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"depth":{"type":"integer","minimum":1,"maximum":3},"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}},{"if":{"properties":{"operation":{"const":"study_citations"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"format":{"type":"string","enum":["csl-json","csl","json","bibtex","bib","ris","bundle","all"]},"include_sources":{"type":"boolean"},"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}}],"description":"Bounded safe read operations. Expectations are verification metadata, separate from operation parameters. Replay compares the complete result.data using RFC 8785; source tiers are retrieval metadata."},"SavedQueryTemplate":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"const":"saved-query/1"},"operationVersion":{"enum":["lts-read-operations/3","lts-read-operations/2"],"default":"lts-read-operations/3"},"snapshotId":{"type":"string","pattern":"^(current|[0-9a-f]{64})$"},"operation":{"type":"string","enum":["search","study_detail","study_evidence","study_citations"]},"parameters":{"type":"object"},"expectedResultSha256":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"Mandatory full result.data JCS digest. Never inferred from the replayed result."},"expectedStudyIds":{"type":"array","maxItems":100,"items":{"type":"string","minLength":1,"maxLength":128}},"canonicalization":{"const":"rfc8785-jcs-sha256/1"},"offlineReplaySha256":{"type":"string","pattern":"^[0-9a-f]{64}$","deprecated":true,"description":"Accepted legacy metadata; never used in place of expectedResultSha256."},"schema":{"type":"string","enum":["saved-query/1","lts-saved-query/1"],"deprecated":true},"params":{"type":"object","deprecated":true},"expectedResultJcsSha256":{"type":"string","pattern":"^[0-9a-f]{64}$","deprecated":true},"method":{"type":"string","enum":["GET","POST","QUERY"],"deprecated":true},"endpoint":{"type":"string","deprecated":true}},"required":["schemaVersion","snapshotId","operation","parameters"],"additionalProperties":false,"allOf":[{"if":{"properties":{"operation":{"const":"search"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"cursor":{"type":"string","maxLength":512},"limit":{"type":"integer","minimum":1,"maximum":100},"q":{"type":"string","maxLength":2048},"region":{"type":"string","minLength":1,"maxLength":128},"section":{"type":"string","minLength":1,"maxLength":128},"site":{"type":"string","minLength":1,"maxLength":128},"tier":{"type":"string","enum":["all","primary","secondary","contextual","context"]},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."},"yearEnd":{"type":"integer","minimum":-10000,"maximum":2100},"yearStart":{"type":"integer","minimum":-10000,"maximum":2100},"year_end":{"type":"integer","minimum":-10000,"maximum":2100},"year_start":{"type":"integer","minimum":-10000,"maximum":2100}},"additionalProperties":false}}}},{"if":{"properties":{"operation":{"const":"study_detail"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}},{"if":{"properties":{"operation":{"const":"study_evidence"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"depth":{"type":"integer","minimum":1,"maximum":3},"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}},{"if":{"properties":{"operation":{"const":"study_citations"}},"required":["operation"]},"then":{"properties":{"parameters":{"type":"object","properties":{"format":{"type":"string","enum":["csl-json","csl","json","bibtex","bib","ris","bundle","all"]},"include_sources":{"type":"boolean"},"studyId":{"type":"string","minLength":1,"maxLength":128},"view":{"type":"string","enum":["compact","full"],"description":"compact or full; by default compact for lts-read-operations/3 and full for /2."}},"additionalProperties":false,"required":["studyId"]}}}}],"description":"Bounded safe read operations. Expectations are verification metadata, separate from operation parameters. Replay compares the complete result.data using RFC 8785; source tiers are retrieval metadata."},"CapabilityRegistry":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://layersofthesouth.org/schemas/developers/capability-registry/1.json","title":"Layers of the South Capability Registry Schema (v1)","description":"Machine-readable inventory of ordinary HTTP routes, MCP primitives, A2A skills, WebMCP tools, and schemas.","type":"object","properties":{"schemaVersion":{"type":"string","const":"capability-registry/1"},"snapshotId":{"type":"string"},"limits":{"type":"object"},"httpEndpoints":{"type":"array","items":{"type":"object"}},"mcp":{"type":"object"},"a2a":{"type":"object"},"webmcp":{"type":"object"},"schemas":{"type":"array","items":{"type":"string"}}},"required":["schemaVersion","limits","httpEndpoints","mcp","a2a","webmcp","schemas"],"additionalProperties":true},"VerificationReceipt":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://layersofthesouth.org/schemas/developers/verification-receipt/1.json","title":"Layers of the South Digest & Replay Verification Receipt (v1)","description":"Receipt returned by digest verification and saved-query replay operations.","type":"object","properties":{"schemaVersion":{"type":"string","const":"verification-receipt/1"},"verified":{"type":"boolean"},"snapshotId":{"type":"string","pattern":"^[0-9a-f]{64}$"},"canonicalization":{"type":"string","enum":["lts-markdown-body/2","lts-raw-file/1","rfc8785-jcs-sha256/1"]},"digestField":{"type":"string","enum":["bodySha256","fileSha256","canonicalObjectSha256"]},"expectedSha256":{"type":"string"},"computedSha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"driftedFields":{"type":"array","items":{"type":"string"}},"result":{"type":"object"}},"required":["schemaVersion","verified","snapshotId","canonicalization","digestField","computedSha256"],"additionalProperties":true},"ApiRoot":{"type":"object","properties":{"title":{"type":"string"},"edition":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"string","format":"uri"}}},"required":["title","links"]},"ClaimRequest":{"type":"object","properties":{"claim":{"type":"string","minLength":1,"maxLength":4096},"site":{"type":"string","maxLength":128},"study":{"type":"string","maxLength":128},"limit":{"type":"integer","minimum":1,"maximum":10,"default":5},"snapshotId":{"type":"string","pattern":"^(current|[0-9a-f]{64})$"},"statement":{"type":"string","deprecated":true,"description":"The claim, as the 1.x interface named it; a body with it is answered in the 1.x shape."},"claimId":{"type":"string","deprecated":true,"description":"A curated claim id of the 1.x interface; answered in the 1.x shape."},"topicId":{"type":"string","deprecated":true,"description":"A study id, as the 1.x interface named it; answered in the 1.x shape."}},"additionalProperties":false},"CompareRequest":{"type":"object","properties":{"baseSnapshotId":{"type":"string"},"targetSnapshotId":{"type":"string"},"studyId":{"type":"string"},"includeSyntheticFixture":{"type":"boolean","default":false},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50},"offset":{"type":"integer","minimum":0,"default":0}},"required":["baseSnapshotId","targetSnapshotId"],"additionalProperties":false},"EvidencePackageRequest":{"type":"object","properties":{"studyIds":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":25},"snapshotId":{"type":"string"},"format":{"type":"string","enum":["json","zip","preview"],"default":"json"},"mode":{"type":"string","enum":["manifest","preview","json","zip"]},"savedQuery":{"$ref":"#/components/schemas/SavedQueryTemplate"}},"required":["studyIds"],"additionalProperties":false},"EvidencePackagePreview":{"type":"object","properties":{"format":{"const":"preview"},"packageId":{"type":"string"},"snapshotId":{"type":"string","pattern":"^[0-9a-f]{64}$"},"totalPackageBytes":{"type":"integer","minimum":1},"whatIsInThisDownload":{"type":"object"},"manifest":{"$ref":"#/components/schemas/EvidencePackage"}},"required":["format","packageId","snapshotId","totalPackageBytes","whatIsInThisDownload","manifest"],"additionalProperties":false}}},"x-lts-snapshot-id":"a97585a61f004ba4f14a180c979693a8349f73714026759678d87b4d70253db9"}
