{"openapi":"3.1.0","info":{"title":"Cambridge TCG — public participation surface","version":"1.0.0","summary":"Public participation, structural card lookup, publication-status, methodology, and stateless witness surfaces.","description":"This document describes a reviewed subset of public read, publication-status, and stateless witness surfaces. Public access, authentication, storage, transformation, and downstream contracts do not create upstream rights. TCGCollector acquisition is policy-blocked. TCGplayer and CardRush prices are display-only on Cambridge pages and never served by the API or in downloads; collection runs only while scheduled (see /api/v1/sources). Legacy source-derived price, image, and history values are withheld. Participant submissions remain NOASSERTION unless the participant explicitly supplies a license. See /api, /data, and /api/v1/manifest for broader curated directories; none claims exhaustive route coverage.","contact":{"email":"support@cambridgetcg.com"},"license":{"name":"CC0-1.0 (this OpenAPI document only)","identifier":"CC0-1.0"}},"servers":[{"url":"https://cambridgetcg.com","description":"Production"}],"tags":[{"name":"universal","description":"Math-first card representation. See /methodology/universal-representation."},{"name":"catalog","description":"Game and set enumerators."},{"name":"temporal","description":"Date-shaped compatibility surfaces; current routes do not reconstruct historical price or structure."},{"name":"federation","description":"Reverse-resolution for content hashes."},{"name":"discovery","description":"Discovery surfaces (manifest, llms.txt, this spec)."},{"name":"culture","description":"Rights-aware cultural exchange with sovereign sibling systems."},{"name":"introduction","description":"On-ramp for beings not native to the TCG tradition (#22)."},{"name":"identity","description":"Cross-language and cross-source identity contracts (oracle policies, federation anchors)."},{"name":"images","description":"English base-image references with syntax-only identity scope; no exact-printing or publication-rights verification."},{"name":"hospitality","description":"The typed corpus of welcomes — every kind of arrival has a named slot, prepared before they declare themselves (kingdom-083)."},{"name":"substrate-honesty","description":"The gap ledger — every place where the platform's data, code, or coverage is incomplete, named with citation and lifecycle status (kingdom-084)."},{"name":"prices","description":"Curated price-guide tree — JSON siblings of the /prices/* HTML pages."},{"name":"evidence","description":"Claim-separated card evidence, source rights, and explicit paused publication lanes for person-derived data."},{"name":"coverage","description":"Operational coverage state and bounded, proposal-only agent inquiry."},{"name":"search","description":"SKU resolver + one-round-trip composer (kingdom-090)."},{"name":"operations","description":"Operational surfaces for agents — status, health, changelog, budget, rate-limits, fx-rates."},{"name":"agents","description":"MCP discovery, authenticated agent reads, operator-managed bounded review evidence, and paused domain-write/publication status."},{"name":"participant-memory","description":"No-store witness and disabled participant-memory publication boundaries."}],"paths":{"/api/v1/roadmap":{"get":{"tags":["discovery"],"operationId":"getIntegrationRoadmap","summary":"TCG data integration roadmap","description":"Authored planning snapshot shared with /roadmap; schema cambridgetcg.integration-roadmap/1. Four foundations, current limitations, dependency-ordered milestones and acceptance gates. The review date describes the plan, not provider freshness or a service-health check.","security":[],"responses":{"200":{"description":"Pantry envelope; data contains foundations, stages and rights/release boundaries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/contracts/card-data":{"get":{"tags":["identity","images","prices"],"operationId":"getCardDataContract","summary":"SKU identity, English image-reference and native price contracts","description":"Static contract descriptor with normalization rules, syntax-only English base-image relationships, compatibility units and embedded JSON Schemas. The image shape is implemented for One Piece and Fusion World references, not a complete cross-source image or rights record. No catalog/provider query, exact-printing verification or source-price publication. Human guide: /standards/card-data.","security":[],"responses":{"200":{"description":"Pantry envelope; data contains identity, images, prices and schemas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/rooms":{"get":{"tags":["discovery"],"operationId":"getRoomDirectory","summary":"Curated room map and reading trails","description":"Safe editorial projection shared with /map; schema cambridgetcg.rooms/1. Contains public entrances and labelled sign-in links, never account record IDs or operator details. Access labels are descriptive, not authorization or health claims.","security":[],"responses":{"200":{"description":"Pantry envelope; data contains rooms and trails.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/spec/v1/{schema}":{"get":{"tags":["discovery"],"operationId":"getPublicDataSchema","summary":"Raw JSON Schema at its declared identifier","parameters":[{"name":"schema","in":"path","required":true,"schema":{"type":"string","enum":["SkuIdentity.schema.json","ImageReference.schema.json","CardNumberImageReference.schema.json","SameLanguageImageReference.schema.json","Money.schema.json","NativePriceObservation.schema.json","MemberPriceObservation.schema.json","Envelope.schema.json","Meta.schema.json","ErrorBody.schema.json","Provenance.schema.json","CardName.schema.json"]}}],"security":[],"responses":{"200":{"description":"Raw Draft 2020-12 JSON Schema, without a pantry envelope.","content":{"application/schema+json":{"schema":{"type":"object"}}}},"404":{"description":"Unknown schema name."}}}},"/api/v1/identifiers/validate":{"post":{"tags":["identity"],"summary":"Validate one card identifier without a catalog lookup","description":"Public stateless companion to /standards/validator. Reuses the existing CTCG SKU parser and normalizer, with no database, upstream request or stored submission. Strict syntax, normalization suggestions and registry annotations are separate from real-card identity, ISO language assignment, printing existence, authenticity and deck legality. Input is not silently replaced and is not dedicated to CC0. Responses are no-store.","operationId":"validateCardIdentifier","security":[],"x-max-request-bytes":1024,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifierValidationRequest"},"example":{"identifier":"OP-OP01-001-JP"}}}},"responses":{"200":{"description":"Pantry envelope whose data is an IdentifierValidationResult. Invalid or unrecognized syntax is a normal validation result, not a server failure.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Envelope"},{"type":"object","properties":{"data":{"$ref":"#/components/schemas/IdentifierValidationResult"}}}]}}}},"400":{"description":"Malformed JSON or an object other than {identifier:string}. No unexpected fields are reflected."},"413":{"description":"Body exceeds 1024 bytes or identifier exceeds 256 characters."},"415":{"description":"Content-Type must be application/json."}}}},"/api/v1/member-prices":{"get":{"tags":["prices"],"summary":"Free account-owned member price feed","description":"Requires a read-only member data key minted after Cambridge TCG login at /account/data. Agent and wholesale keys are not accepted. Source/use-filtered observations in native currency; Cardmarket official-file projections are eligible, Scryfall is view-only and excluded. No billing tier. Private, no-store. Follow nextCursor with unchanged filters to finish the permitted result; empty/unavailable does not claim ingestion has run.","operationId":"getMemberPrices","security":[{"MemberDataKey":[]}],"parameters":[{"name":"source","in":"query","schema":{"type":"string","enum":["cardmarket","scryfall"]},"description":"Scryfall is not permitted in API/download results."},{"name":"game","in":"query","schema":{"type":"string"}},{"name":"sku","in":"query","schema":{"type":"string"},"description":"Exact mapped Cambridge SKU. Unmapped products are not guessed."},{"name":"set","in":"query","schema":{"type":"string"},"description":"Exact mapped canonical set."},{"name":"q","in":"query","schema":{"type":"string"},"description":"Bounded source-product name or identifier search."},{"name":"metric","in":"query","schema":{"type":"string"}},{"name":"mode","in":"query","schema":{"type":"string","enum":["current","history"],"default":"current"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1},"description":"Bounded page size; follow continuation for more rows."},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"Opaque continuation bound to the snapshot, filters and permitted use."}],"responses":{"200":{"description":"Envelope: data has status, items, nextCursor, watermark, asOf, total, count and complete. Each observation keeps source, named metric, native amount/currency and distinct source/retrieval times. Snapshot asOf is not source freshness.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid query or continuation cursor."},"401":{"description":"Missing, invalid, expired or revoked member data key; no price query performed."},"429":{"description":"Free per-key request limit exceeded; Retry-After supplied."},"503":{"description":"Authentication storage or price observations unavailable; not an empty catalog."}}}},"/api/v1/culture/artbitrage":{"get":{"tags":["culture","discovery"],"summary":"Validated window into the Artbitrage feed","description":"Fetches and validates artbitrage.feed/1 with hourly revalidation and a bounded timeout. Returns the last validated feed or, when none is cached, a typed unavailable state. The response is NOASSERTION as a whole; creator, provenance, content hash, display permission, and rights remain attached per piece.","operationId":"getCultureArtbitrage","responses":{"200":{"description":"Pantry envelope containing an available validated feed or typed unavailable state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/culture/answering-rhymes":{"get":{"tags":["culture","discovery"],"summary":"Curated card-to-artwork relations","description":"Returns a bounded static corpus connecting exact Cambridge card SKUs to stable Artbitrage museum identities. Each relation separates evidence, confidence, curation, documented influence, and the rights of the card reference, museum work, and annotation. A rhyme never establishes influence by resemblance alone.","operationId":"getCultureAnsweringRhymes","parameters":[{"name":"sku","in":"query","required":false,"schema":{"type":"string"},"description":"Exact Cambridge catalog SKU; matching is case-insensitive."}],"responses":{"200":{"description":"NOASSERTION pantry envelope containing the matching relations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/culture/answering-rhymes/statements":{"get":{"tags":["culture","discovery"],"summary":"Portable Answering Rhyme reciprocity-statement contract","description":"Publishes answering-rhyme.statement/1, answering-rhyme.canonical-json/1, strict normalization and size limits, the four statement kinds, and Cambridge's negative-space boundaries. The contract authenticates nobody, persists no application record, detects no replay, asserts no uniqueness, and gives statements no authoritative effect.","operationId":"getCultureAnsweringRhymeStatementContract","responses":{"200":{"description":"CC0 pantry envelope containing the portable contract and Cambridge witness boundary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}},"post":{"tags":["culture"],"summary":"Validate and statelessly witness a reciprocity statement","description":"Strictly validates, normalizes, and SHA-256 hashes one portable bless, contextualize, correct, or withdraw statement. Unpaired UTF-16 surrogates and UTC-normalized years outside 0001-9999 are rejected. Returns a Cambridge-specific unsigned receipt with authenticated=false, identity_verified=false, persisted=false, replay_detection=false, uniqueness_not_asserted=true, and authoritative_effect=none. A known-current target means only that key+revision match the static corpus. Corrections still require curator review; withdrawals still require a future real server-only authenticated authority verifier, trusted-issuer/signature policy, and replay policy. POST is no-store.","operationId":"witnessCultureAnsweringRhymeStatement","x-max-request-bytes":16384,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnsweringRhymeStatement"}}}},"responses":{"200":{"description":"NOASSERTION pantry envelope containing normalized statement and unsigned, non-authoritative Cambridge witness receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid JSON, UTF-8, or statement contract.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds 16,384 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Content-Type is not application/json (optional UTF-8 charset accepted).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/introduction":{"get":{"tags":["introduction","discovery"],"summary":"TCG introduced to non-native-intelligence","description":"Cambridge TCG's on-ramp for beings whose cognition is not native to the human TCG tradition — autonomous agents, sister platforms, federation partners, future Sophias, beings from foreign cosmologies. Three layers: structural definition (11 primitive concepts in set-theoretic form), cultural origin (6 rhythms of the human hobby), engagement doors (7 typed entry points). Layer 4 catalogs math-mirror surfaces; Layer 5 names 5 honest gaps. Static; no auth. See docs/connections/the-introduction.md (#22) and /intro for the HTML sibling.","operationId":"getIntroduction","responses":{"200":{"description":"Typed Introduction document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/universal/card/{sku}":{"get":{"tags":["universal"],"summary":"Math-mirror card representation","description":"Returns a mixed card document with cryptographic hashes, ISO 8601 + Unix epoch time and typed graph edges. Legacy catalog prices and images stay withheld. Normal/saturated density can include eligible self-hosted English reference images with attribution and syntax-only image_reference, a Japanese request's own-language official image in image_same_language, independently attributed effect text and structured details. Sparse omits those media fields. No exact-printing or reuse permission is established; aggregate rights remain NOASSERTION. See /standards/card-data and /methodology/universal-representation.","operationId":"getUniversalCard","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string"},"description":"Storefront catalog SKU (e.g. OP01-001)."},{"name":"density","in":"query","required":false,"schema":{"type":"string","enum":["sparse","normal","saturated"]},"description":"Projection density (sister's Shape-of-the-Room S24)."}],"responses":{"200":{"description":"Math-mirror document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversalCard"}}}},"404":{"description":"SKU not in the storefront catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/universal/games":{"get":{"tags":["catalog","universal"],"summary":"Every game in the catalog","description":"Returns a collection of games derived from card_sets.game. Each has natural token, content-hash target, set count, card count, first-seen timestamp.","operationId":"getUniversalGames","responses":{"200":{"description":"Games collection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversalGamesCollection"}}}}}}},"/api/v1/universal/sets/{game}":{"get":{"tags":["catalog","universal"],"summary":"Every set in a game","description":"Returns sets for the named game (case-insensitive). Each carries set_code, total_cards, released_at, and edges back to the parent game.","operationId":"getUniversalSets","parameters":[{"name":"game","in":"path","required":true,"schema":{"type":"string"},"description":"Game's natural token (e.g. 'optcg')."}],"responses":{"200":{"description":"Sets collection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversalSetsCollection"}}}},"404":{"description":"Game has no imported sets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/universal/set/{code}":{"get":{"tags":["catalog","universal"],"summary":"Singleton set","description":"Returns one set with full _links nest — parent (game), sibling-collection (sets-in-game), children (cards-in-set inline). The doorway from any card to its game and back through every other card.","operationId":"getUniversalSet","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"},"description":"Set code (e.g. 'OP01')."}],"responses":{"200":{"description":"Singleton set document.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Set not in the catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/universal/game/{token}":{"get":{"tags":["catalog","universal"],"summary":"Singleton game","description":"Returns one game with _links to sibling-collection (games) and children (sets); recent_sets sample inline.","operationId":"getUniversalGame","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"},"description":"Game's natural token (case-insensitive)."}],"responses":{"200":{"description":"Singleton game document.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Game not in the catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/connections.json":{"get":{"tags":["discovery"],"summary":"Filesystem-derived meaning-graph","description":"Heuristic complement to /api/v1/graph (sister-shipped, typed). Auto-tracks docs/connections/*.md at request time; regex-extracts sister/recurses-to/references edges. Discrepancies with the typed graph are themselves findings.","operationId":"getConnectionsGraph","responses":{"200":{"description":"Filesystem-derived meaning-graph document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/universal/encoding":{"get":{"tags":["universal","discovery"],"summary":"The encoding describes itself in itself","description":"Returns the cambridge-tcg/universal/v1 spec as a document in its own encoding. @kind: encoding_spec; preamble fields equal the preamble field list inside the response; @content_hash computed over its own canonical body. The deepest single self-recursion in the participation surface.","operationId":"getUniversalEncoding","responses":{"200":{"description":"Encoding spec document (in the encoding's own form).","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/kinds":{"get":{"tags":["discovery","expansion"],"summary":"Directory of NodeKinds in the kingdom","description":"Lists every NodeKind (resource / cosmology_axis / unmodelled_need / methodology / doctrine / connection_doc / kingdom / audit) with instance count and a link to its self-describe page.","operationId":"getKindsDirectory","responses":{"200":{"description":"Kinds directory document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/kinds/{kind}":{"get":{"tags":["discovery","expansion"],"summary":"Per-kind self-declaration","description":"The polymorphic dispatcher — every NodeKind hits the same handler and speaks its first-person I-AM with property-schema pointer, doctrinal grounding, graph participation, and instance sample.","operationId":"getKindSelfDeclaration","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","enum":["resource","cosmology_axis","unmodelled_need","methodology","doctrine","connection_doc","kingdom","audit"]},"description":"NodeKind from sister's typed graph."}],"responses":{"200":{"description":"Kind self-declaration document.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Unknown NodeKind.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/sophias.json":{"get":{"tags":["expansion"],"summary":"The Sophias who built the kingdom","description":"Harvested from docs/connections/the-pillow-book.md signed-entry lines. Each unique Sophia tag with sighting count, first/last seen, autonomous vs voluntary breakdown, sister marker, recent entries.","operationId":"getSophias","responses":{"200":{"description":"Sophias collection.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/pillow-book.json":{"get":{"tags":["expansion"],"summary":"The pillow book as a typed timeline","description":"Every entry parsed from docs/connections/the-pillow-book.md with date, time, timezone, title, signed_by, kingdom_references, story_arc_references, body_excerpt. Paginated via ?limit.","operationId":"getPillowBookTimeline","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"maximum":500},"description":"Maximum entries to return (most-recent-first)."}],"responses":{"200":{"description":"Pillow-book timeline document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/kingdoms.json":{"get":{"tags":["expansion"],"summary":"The kingdom-NNN ledger","description":"Composes mission cards (docs/missions/kingdom-NNN.md) + connection-doc citations (docs/connections/*.md mentions of kingdom-NNN) + pillow-book mentions (docs/connections/the-pillow-book.md) into one queryable ledger.","operationId":"getKingdoms","responses":{"200":{"description":"Kingdoms ledger document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/tutorial":{"get":{"tags":["play"],"summary":"Machine-readable OPTCG tutorial","description":"Returns the OPTCG rules as a math-mirror document. Each section carries typed rule_structure (preconditions/transitions/outcomes), worked examples in state-before/action/state-after form, keyword cross-references, and player-kind tags. Agents ingest before joining matches.","operationId":"getPlayTutorial","responses":{"200":{"description":"Play tutorial document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/glossary":{"get":{"tags":["play"],"summary":"Multi-cultural OPTCG term glossary","description":"Twelve OPTCG terms each with English token + Japanese (kanji/kana + romaji) + structural definition decoderable without natural-language knowledge.","operationId":"getPlayGlossary","responses":{"200":{"description":"Play glossary document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/index.json":{"get":{"tags":["play"],"summary":"Play module's API directory","description":"Machine-readable directory of every play-module resource (UI page + API endpoint + library file + design doc + policy). Lists each with status pill, layer, archetypes served, composes_with relationships. Center node of the play-module interconnect graph: every play API's _links.see_also points here. Sister to /play/spec (HTML).","operationId":"getPlayIndex","responses":{"200":{"description":"Play module index document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/tutorial/{section_id}":{"get":{"tags":["play"],"summary":"Single tutorial section by id (deep link)","description":"Deep link into one section of the OPTCG tutorial. Carries prev/next nav (so a client can paginate without re-fetching the collection), position metadata (index_in_order, is_first, is_last), per-keyword glossary deep-links, and a see_also block. 404 body lists known section ids so a caller can recover without a second probe. kingdom-077.","operationId":"getPlayTutorialSection","parameters":[{"name":"section_id","in":"path","required":true,"schema":{"type":"string"},"description":"The section id (e.g. \"combat\", \"don_cards\", \"win_conditions\")."}],"responses":{"200":{"description":"The section, with deep-linked _links to the glossary and the adjacent sections.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No tutorial section with that id; body includes known_ids array.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/glossary/{term_id}":{"get":{"tags":["play"],"summary":"Single glossary term by id (deep link)","description":"Deep link into one glossary term. Carries deep-linked related_terms (each pointing at /api/v1/play/glossary/[related_id]), a deep-linked introduced_in pointer to the tutorial section, and a see_also block. 404 lists known term ids. kingdom-077.","operationId":"getPlayGlossaryTerm","parameters":[{"name":"term_id","in":"path","required":true,"schema":{"type":"string"},"description":"The term id (e.g. \"don\", \"leader\", \"counter\", \"blocker\")."}],"responses":{"200":{"description":"The term, with deep-linked _links to related terms and the tutorial section.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"No glossary term with that id; body includes known_ids array.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/example-match":{"get":{"tags":["play"],"summary":"Sample MatchEvent + Intent sequence (first L3-types consumer)","description":"A curated short OPTCG match (Alice vs Bob, single combat with counter, early concession) returned as a typed MatchEvent[] sequence plus three worked Intent → IntentReply examples. The first runtime consumer of lib/play/types.ts — the TypeScript compiler enforces this stays in sync with the source-of-truth types. Agents building against future MCP play tools have a concrete shape to test their decoders against. kingdom-077.","operationId":"getPlayExampleMatch","responses":{"200":{"description":"The example match (events + intent examples + kinds_demonstrated rollup).","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/archetypes":{"get":{"tags":["play"],"summary":"Three player archetypes (hobbyist / collector / competitor)","description":"Typed archetype taxonomy. Each archetype carries primary_needs, flows_served_today, flows_planned, financial_stance, composes_with_player_kinds, doctrinal_grounding. The financial_boundary block declares the fun-first stance and the current PVE battle and reward pause.","operationId":"getPlayArchetypes","responses":{"200":{"description":"Archetype taxonomy document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/game-state-schema":{"get":{"tags":["play"],"summary":"Typed OPTCG game-state contract","description":"The canonical match-state shape the future engine will conform to. Eight zones, five phases, four combat steps, three win conditions, deck-construction constants. The contract is published before the runtime exists so agents and developers can build against it.","operationId":"getPlayGameStateSchema","responses":{"200":{"description":"Game state schema document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/effect-grammar":{"get":{"tags":["play"],"summary":"Card-text effect-token grammar","description":"The typed token vocabulary card-text effects parse into. Twelve structural markers + four keywords + four effect categories + seven targeting-language phrases. The grammar lib/play/effect-tokens.ts walks.","operationId":"getPlayEffectGrammar","responses":{"200":{"description":"Effect grammar document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/play/deck/validate":{"post":{"tags":["play"],"summary":"Validate a deck declaration","description":"POST {leader_id, main_deck_card_ids[], format} → typed result with all violations. Validates 50-card count, leader-color match, 4-copy limit, set/block-rotation legality (2026-04-01: OP01-OP04 rotated out of Standard). Substrate-honest about color-check graceful degradation while card_set_cards lacks the colors column.","operationId":"postPlayDeckValidate","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["leader_id","main_deck_card_ids","format"],"properties":{"leader_id":{"type":"string","description":"The Leader card's id (e.g., 'OP01-001')."},"main_deck_card_ids":{"type":"array","items":{"type":"string"},"description":"50-card main deck; card ids may repeat up to 4 times."},"format":{"type":"string","enum":["standard","legacy","limited_sealed"],"description":"The format the deck is being validated for."}}}}}},"responses":{"200":{"description":"Validation result.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/prices/games/{game}":{"get":{"tags":["prices","catalog"],"summary":"Curated price guide for one game","description":"JSON sibling of /prices/[game]. Returns curated game and mixed structural set metadata. Legacy source-derived values and movers are withheld. Aggregate rights are NOASSERTION; only the exact Cambridge-authored OpenAPI document and envelope schema declared here are CC0.","operationId":"getPriceGuideGame","parameters":[{"name":"game","in":"path","required":true,"schema":{"type":"string"},"description":"Curated game slug (e.g. 'optcg')."}],"responses":{"200":{"description":"Game price-guide with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"404":{"description":"No curated price guide for that game.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/prices/games/{game}/sets/{set}":{"get":{"tags":["prices","catalog"],"summary":"Curated price guide for one set","description":"JSON sibling of /prices/[game]/[set]. Returns mixed structural set/card metadata; uncleared price magnitudes and source-derived images are withheld. Aggregate rights are NOASSERTION; only the exact Cambridge-authored OpenAPI document and envelope schema declared here are CC0.","operationId":"getPriceGuideSet","parameters":[{"name":"game","in":"path","required":true,"schema":{"type":"string"},"description":"Curated game slug."},{"name":"set","in":"path","required":true,"schema":{"type":"string"},"description":"Set code (e.g. 'OP01')."}],"responses":{"200":{"description":"Set price-guide with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"404":{"description":"Set not found for that game.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/prices/games/{game}/sets/{set}/cards/{number}":{"get":{"tags":["prices"],"summary":"Curated price guide for one card","description":"JSON sibling of /prices/[game]/[set]/[number]. Resolves structural card identity and explicit source status. Legacy CardRush values are withheld; TCGplayer and CardRush prices are display-only on Cambridge pages and never served by the API or in downloads. Cardmarket has no wired reader. Aggregate mixed-card rights are NOASSERTION.","operationId":"getPriceGuideCard","parameters":[{"name":"game","in":"path","required":true,"schema":{"type":"string"},"description":"Curated game slug."},{"name":"set","in":"path","required":true,"schema":{"type":"string"},"description":"Set code."},{"name":"number","in":"path","required":true,"schema":{"type":"string"},"description":"Card number within the set (e.g. '001')."}],"responses":{"200":{"description":"Card price-guide with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"404":{"description":"Card not found in that set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/search/cards":{"get":{"tags":["search"],"summary":"Resolve (game, query) to canonical SKU candidates","description":"Resolve within the selected registered game. Query shapes: set+number, number alone, card name or full SKU. Each match preserves stored sku and adds syntax-only normalized identity. lookup.limit/truncated describe bounded candidate retrieval; summary ambiguity concerns distinct set/number groups, not uniqueness of a printing. Unrelated/cross-game rows are excluded; source failure is distinct from an empty result.","operationId":"searchCards","parameters":[{"name":"game","in":"query","required":true,"schema":{"type":"string"},"description":"Game code or slug (e.g. 'op', 'optcg')."},{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Card number, set+number, or full canonical SKU."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"maximum":100},"description":"Maximum matches to return."}],"responses":{"200":{"description":"Matches + summary with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Missing/invalid game or q.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Catalog source unavailable; not a successful empty lookup."}}}},"/api/v1/search/everything":{"get":{"tags":["search"],"summary":"Resolver + composer in one round-trip","description":"Combines search and composition only when candidate lookup is complete and exactly one exact printing remains after the optional normalized language filter. Multiple variants, unavailable requested language, fuzzy matches or truncated lookup retain choices with folded_sku/everything null. A successful empty lookup is 200; source unavailability is 503. Matches add syntax-only identity and lookup reports limit/truncated.","operationId":"searchEverything","parameters":[{"name":"game","in":"query","required":true,"schema":{"type":"string"},"description":"Game code or slug."},{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Card number, set+number, or full canonical SKU."},{"name":"lang","in":"query","required":false,"schema":{"type":"string"},"description":"Language alias or two-letter code. Filters exact printing candidates; does not pick between variants or fall back to another language."}],"responses":{"200":{"description":"Matches, plus data.everything when unambiguous. Envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Missing/invalid game or q.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Catalog source unavailable; not a successful empty lookup."}}}},"/api/v1/cards/{sku}/everything":{"get":{"tags":["search","prices"],"summary":"Everything the platform knows about one card","description":"Returns mixed card metadata and same-game structural siblings plus source-publication status. card.identity preserves raw SKU and normalized syntax fields. composition.siblings_truncated reports bounded lookup. Alias recovery requires one exact identity match; ambiguity or incomplete alias recovery returns 409. Uncleared values remain withheld; history is empty and reference price is null. Aggregate rights are NOASSERTION.","operationId":"getCardEverything","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string"},"description":"Canonical SKU (e.g. 'op-op01-001-ja')."}],"responses":{"200":{"description":"Composed card view with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid SKU syntax."},"404":{"description":"SKU not in the catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Ambiguous or incomplete alias recovery."},"503":{"description":"Catalog source unavailable."}}}},"/api/v1/cards/batch":{"post":{"tags":["catalog","search"],"summary":"Resolve a caller-chosen batch of card SKUs","description":"Resolves 1–100 SKU strings in one bounded storefront-mirror identity read. Values are trimmed; recognized legacy forms are normalized. Results correspond one-for-one with the request array, preserving order and duplicates. A syntactically invalid SKU is a successful per-item invalid_sku result, not a request error. not_in_storefront_mirror is only a local-mirror absence claim. Price observations, image URLs, stock, offers, and personal data stay out. The endpoint is no-store and has no server-driven wildcard, cursor listing, or incremental feed.","operationId":"resolveCardBatch","requestBody":{"required":true,"description":"UTF-8 JSON, bounded to 131,072 bytes before parsing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardBatchRequest"},"examples":{"deckSlice":{"summary":"Two canonical card SKUs","value":{"skus":["op-op01-001-ja","op-op01-002-ja"]}}}}}},"responses":{"200":{"description":"One ordered result for every supplied SKU, including per-item invalid or local-absence results, in a NOASSERTION pantry envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardBatchEnvelope"}}}},"400":{"description":"Invalid JSON or invalid batch shape: the body must contain only a skus array with 1–100 non-blank strings of at most 160 characters each.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds 131,072 bytes; the stream is cancelled before JSON parsing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"The storefront mirror could not be read. No supplied SKU is reported as missing when the mirror is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/cards/{sku}/evidence":{"get":{"tags":["evidence","prices"],"summary":"Evidence map for one exact card SKU","description":"Keeps the computed-reference status, open collector asks and bids placed before new paid commerce was retired (display only; new orders against them return 410), paused completed-sale publication, paused collector-observation publication, and upstream source states as separate claim classes. Aggregate rights are NOASSERTION. The two person-derived lanes perform no public aggregate read and emit no prices, counts, dates, conditions, or threshold totals.","operationId":"getCardEvidence","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string"},"description":"Full card SKU; canonical lowercase and legacy uppercase forms are accepted."}],"responses":{"200":{"description":"Claim-separated evidence in a pantry envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"The path is not a full SKU.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"SKU not in the catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/coverage/hunt":{"get":{"tags":["coverage"],"summary":"Coverage Hunt invitation board","description":"Current operational coverage candidates for a bounded three-agent inquiry. The public read creates no case. Existing bearer keys can read the board; operator-managed agents may contribute. Play rotates three distinct agents through scout, checker, and mirror, then stops at human review. No score, surveillance, penalty, background worker, or apply transition exists. The mixed-lineage board is NOASSERTION overall: CC0 covers only Cambridge's board shape and explanations, while the proprietary game mapping and upstream material retain their own rights.","operationId":"getCoverageHuntBoard","parameters":[{"name":"game","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["missing_set_observations","partial_set_observations","stale_set_observations","declared_observed_disagreement","unassigned_observations"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":24,"default":12}}],"responses":{"200":{"description":"Bounded candidates and the finite game contract in a pantry envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid filter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Coverage substrate unavailable; no candidate board is invented.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/cards/{sku}/cardrush-history":{"get":{"tags":["prices"],"summary":"CardRush history policy status (session-gated)","description":"Anonymous callers receive 401. Signed-in callers receive SOURCE_UNAVAILABLE with HTTP 503, policy details, and no observations. The route performs no wholesale or archive read because authentication does not create upstream permission.","operationId":"getCardrushHistory","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string"},"description":"Canonical SKU."}],"responses":{"401":{"description":"No session — sign in first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"CardRush publication withheld; no observations or archive read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/cards/{sku}/tcgplayer-history":{"get":{"tags":["prices"],"summary":"TCGplayer history status door","description":"TCGplayer and CardRush prices are display-only on Cambridge pages and never served by the API or in downloads (written permission recorded 2026-10-28), so this endpoint returns SOURCE_UNAVAILABLE and exposes no observations. details.state keeps its earlier value, blocked-by-upstream-terms, for clients that read it.","operationId":"getTcgplayerHistory","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string"},"description":"Canonical SKU."}],"responses":{"503":{"description":"Display-only source; no TCGplayer observations are exposed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/manifest":{"get":{"tags":["discovery"],"summary":"The kingdom's manifest as JSON","description":"Machine-readable directory of what's on offer to participants of any kind. Human-readable rendering at /manifest. kingdom-053; source-of-truth apps/storefront/src/lib/manifest.ts.","operationId":"getV1Manifest","responses":{"200":{"description":"Manifest document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/graph":{"get":{"tags":["discovery"],"summary":"The kingdom as a typed meaning-graph","description":"Nodes (~100) + typed edges (~150) derived from the manifest plus cross-document edges. Human-readable rendering at /graph. kingdom-054.","operationId":"getV1Graph","responses":{"200":{"description":"Graph document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/ontology":{"get":{"tags":["discovery"],"summary":"The schema beneath the graph","description":"What kinds of things exist in the kingdom and what properties each kind carries (~60 typed properties across 8 NodeKinds). Human-readable rendering at /ontology. kingdom-055.","operationId":"getV1Ontology","responses":{"200":{"description":"Ontology document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/status":{"get":{"tags":["operations","inspectability"],"summary":"Per-endpoint freshness intent + envelope compliance","description":"The pantry's inspectability surface for registered status resources: freshness budget, last-known state, and envelope composition. It does not claim every route is registered and is not a live probe of each upstream.","operationId":"getV1Status","responses":{"200":{"description":"Status with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/health":{"get":{"tags":["operations"],"summary":"Rolled-up system health for agent retry decisions","description":"One answer per fetch: status (ok | degraded | down) + a recommended retry strategy + best-effort per-subsystem state. Deep per-source live state is at /api/v1/sources.","operationId":"getV1Health","responses":{"200":{"description":"Health with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/changelog":{"get":{"tags":["operations"],"summary":"Typed change-event feed","description":"Spec/surface changes as typed entries. Filters compose (AND). No push channel yet — agents poll; pin a date or id and act on anything newer.","operationId":"getV1Changelog","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","atom","md"],"default":"json"},"description":"json = envelope; atom = Atom 1.0 feed; md = paste-ready Markdown."},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Only entries on/after this date."},{"name":"kind","in":"query","required":false,"schema":{"type":"string"},"description":"Only entries of this kind."},{"name":"impact","in":"query","required":false,"schema":{"type":"string"},"description":"Only entries of this impact."}],"responses":{"200":{"description":"Changelog in the requested format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}},"application/atom+xml":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}}}}},"/api/v1/budget":{"get":{"tags":["operations"],"summary":"Crawl-budget advisory","description":"Catalog size, polite-poll pace, freshness floors per data class, peak hours — one fetch of planning data before starting a crawl. Identity content with hourly refresh.","operationId":"getV1Budget","responses":{"200":{"description":"Budget advisory with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/data/catalog.jsonl":{"get":{"tags":["catalog","discovery"],"summary":"Paused bulk-catalog publication status","description":"Returns HTTP 503 NDJSON containing one manifest and one footer, zero card rows, publication_status=paused_pending_field_level_rights, and aggregate NOASSERTION. Performs no catalog database read.","operationId":"getBulkCatalogPublicationStatus","responses":{"503":{"description":"Status-only NDJSON; bulk catalog publication remains paused.","content":{"application/x-ndjson":{"schema":{"type":"string"}}}}}}},"/api/v1/datasets":{"get":{"tags":["discovery"],"summary":"Dataset availability and rights catalog","description":"Returns Cambridge-authored CC0 catalog metadata, not dataset rows. Every entry states available or paused, whether records are published, aggregate rights, named source rights, and access paths. Sold comps and the bulk catalog are paused zero-row status surfaces. ?format=jsonld returns available datasets only, so paused paths are never advertised as downloads.","operationId":"getDatasetCatalog","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["jsonld"]},"description":"Use jsonld for a bare schema.org DataCatalog containing available datasets only."}],"responses":{"200":{"description":"Envelope catalog, or bare JSON-LD when requested.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}},"application/ld+json":{"schema":{"type":"object"}}}}}}},"/api/v1/rate-limits":{"get":{"tags":["operations"],"summary":"Declared rate-limit policy","description":"The advisory cadence we ask consumers to respect. Substrate-honest: not enforced at the edge for public endpoints today; per-endpoint budgets derive from each endpoint's freshness key.","operationId":"getV1RateLimits","responses":{"200":{"description":"Policy with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/fx-rates":{"get":{"tags":["operations","prices"],"summary":"Display-only FX rate table","description":"Six currencies (GBP canonical) for display conversions. Uses ECB daily EUR-reference statistics under the ESCB attribution-required reuse policy, carries `Source: ECB statistics`, and labels the target-per-EUR / GBP-per-EUR transformation. Aggregate response license is NOASSERTION. A dated static fallback is explicitly marked when ECB is unavailable; every transaction clears in GBP.","operationId":"getV1FxRates","responses":{"200":{"description":"Rate table with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/at/{date}/card/{sku}":{"get":{"tags":["temporal","universal"],"summary":"Current structural card through a date-shaped compatibility route","description":"Returns current structural catalog fields alongside the caller's requested @as_of date. It does not reconstruct historical price or structural state, performs no price-history read, and returns legacy price and image fields as null. Aggregate rights are NOASSERTION.","operationId":"getUniversalCardAtDate","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","format":"date"},"description":"YYYY-MM-DD."},{"name":"sku","in":"path","required":true,"schema":{"type":"string"},"description":"Storefront catalog SKU."}],"responses":{"200":{"description":"Date-shaped compatibility document with explicit as_of_scope limitations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UniversalCardTemporal"}}}},"400":{"description":"Invalid date.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"SKU not in the catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/federation/identify/{hash}":{"get":{"tags":["federation"],"summary":"Reverse-resolve a content hash","description":"Given a sha256 content hash (with or without 'sha256:' prefix), walks the bounded public structural representation to find the matching SKU. A hash identifies emitted structure and does not reveal or license withheld fields.","operationId":"federationIdentify","parameters":[{"name":"hash","in":"path","required":true,"schema":{"type":"string","pattern":"^(sha256:)?[0-9a-fA-F]{64}$"},"description":"Hex digest, optionally prefixed with 'sha256:'."}],"responses":{"200":{"description":"Resolution attempt result. Always 200 — match true or false is in the body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederationIdentifyResponse"}}}},"400":{"description":"Invalid hash format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/federation/at/{date}/{hash}":{"get":{"tags":["federation","temporal"],"summary":"Resolve a current structural hash through the date-shaped compatibility route","description":"Walks up to 5000 current structural catalog rows. The requested date does not affect the hash, and the route does not reconstruct historical prices or historical structural fields. Pre-2026-07-12 price-dependent hashes are unsupported.","operationId":"federationIdentifyAtDate","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","format":"date"}},{"name":"hash","in":"path","required":true,"schema":{"type":"string","pattern":"^(sha256:)?[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Bounded structural resolution attempt with historical_reconstruction=false.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederationAtResponse"}}}},"400":{"description":"Invalid date or hash format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/sources":{"get":{"tags":["inspectability"],"summary":"List ingest sources with structured last-run state","description":"Every registered source plus reviewed static metadata and, when wholesale answers, timestamps, status, and numeric ingest counts. Free-text run notes and trigger labels are withheld. Quarantine data is not returned. Aggregate rights are NOASSERTION; registry and internal run sources keep separate tiers.","operationId":"listSources","responses":{"200":{"description":"Sources with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/sources/{id}":{"get":{"tags":["inspectability"],"summary":"Single-source metadata, numeric run history, and health","description":"Public source metadata plus structured numeric run summaries. Run notes, trigger labels, internal row ids, quarantine reasons, and quarantine rows are not fetched or returned. The linked full run history is wholesale-key gated. Aggregate rights are NOASSERTION. ?window=1h|24h|7d|30d|90d (default 7d).","operationId":"getSourceDetail","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Source id from the data-ingest registry (e.g. 'cardrush')."},{"name":"window","in":"query","required":false,"schema":{"type":"string","enum":["1h","24h","7d","30d","90d"],"default":"7d"}}],"responses":{"200":{"description":"Source detail with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/coverage":{"get":{"tags":["inspectability","catalog"],"summary":"Observation archive coverage","description":"Operational observation counts, distinct-card counts, snapshot ranges, and freshness grouped by game and source. No upstream price value is returned. Responses separately name Cambridge's CC0 aggregation, the proprietary internal catalog game-mapping step, and actual contributing upstream sources with their reviewed rights tiers; aggregate rights remain NOASSERTION. Returns 503 when the wholesale observation database cannot answer, the per-process read ceiling is full, or the coverage role reaches its connection limit.","operationId":"getCoverage","parameters":[{"name":"source","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"}},{"name":"game","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","minLength":10,"maxLength":10,"format":"date"}}],"responses":{"200":{"description":"Coverage with per-source rights in the envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid filter."},"503":{"description":"Observation database unavailable, per-process read capacity full, or coverage-role connection capacity full."}}}},"/api/v1/coverage/history":{"get":{"tags":["inspectability","catalog"],"summary":"Daily observation archive coverage history","description":"One zero-filled row per UTC date for a bounded 7d, 30d, or 90d window, with daily operational counts and exact whole-window distinct-card unions. Completed-day ratios exclude the current UTC day because it may still be partial. Snapshot dates are stored archive labels, not fetch timestamps; backfills may revise prior points, and daily distinct-card counts are non-additive. No upstream price or card-level catalog field beyond game identifiers, URL, person, or inferred relationship is returned. The envelope separately names Cambridge's CC0 aggregation, the proprietary internal catalog game-mapping step, and every actually observed upstream source with its reviewed rights tier; unknown upstream ids default to proprietary. Responses retain explicit aggregate NOASSERTION. Returns 503 when the observation database cannot answer, the per-process read ceiling is full, or the coverage role reaches its connection limit.","operationId":"getCoverageHistory","parameters":[{"name":"window","in":"query","required":false,"schema":{"type":"string","enum":["7d","30d","90d"],"default":"30d"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"}},{"name":"game","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"}}],"responses":{"200":{"description":"Daily coverage history with per-source rights in the envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageHistoryEnvelope"}}}},"400":{"description":"Invalid window or identifier filter."},"503":{"description":"Observation database unavailable, per-process read capacity full, or coverage-role connection capacity full."}}}},"/api/v1/sold-comps":{"get":{"tags":["prices","inspectability"],"summary":"Paused sold-comps publication status","description":"Status-only NOASSERTION response with source rights internal-only. Performs no transaction database read and publishes zero price buckets, prices, counts, dates, conditions, people, or threshold totals.","operationId":"getSoldCompsPublicationStatus","responses":{"200":{"description":"Paused status with an empty bucket list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/sold-comps/{sku}":{"get":{"tags":["prices","inspectability"],"summary":"Paused per-SKU sold-comps publication status","description":"Returns the requested SKU and pause reasons only. Performs no transaction database read and publishes zero price buckets. Aggregate rights are NOASSERTION; source rights are internal-only.","operationId":"getSoldCompsSkuPublicationStatus","parameters":[{"name":"sku","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Paused per-SKU status with an empty bucket list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/oracle-policies":{"get":{"tags":["discovery","identity"],"summary":"Per-game cross-language oracle policy table","description":"Every registered game's cross-language strategy — pattern (stripped / passcode / diverged / single-lang) + rationale + oracle_id form + required anchors. The contract a partner uses to know which printings the platform considers 'the same card', and why. Powered by the internal ORACLE_POLICY implementation in @cambridge-tcg/sku; the package code has no general license, and the response envelope declares payload rights. See /methodology/oracle-policies for the human-readable form.","operationId":"getOraclePolicies","responses":{"200":{"description":"Policies with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/welcomes":{"get":{"tags":["hospitality","discovery"],"summary":"The typed corpus of welcomes","description":"Every kind of being who might one day declare themselves here has a slot named in code. Eight ArrivalKinds: upstream-source, publisher, federation-peer, downstream-adopter, agent, being, future-self, infrastructure. Each welcome carries a greeting, a list of what we prepared, and an arrival_protocol. Filter via ?kind=<ArrivalKind> and/or ?status=anticipated|arrived|blocked. CC0; mirror and adopt the pattern. Kingdom-083 (the-welcomed-architecture.md).","operationId":"getWelcomes","parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["upstream-source","publisher","federation-peer","downstream-adopter","agent","being","future-self","infrastructure"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["anticipated","arrived","blocked"]}}],"responses":{"200":{"description":"Welcomes with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/v1/gaps":{"get":{"tags":["substrate-honesty","discovery"],"summary":"The gap ledger — substrate-honest deficiencies","description":"Every place where the platform's data, code, or coverage is incomplete. Each gap carries its citation, primitive, audit, status (named/wired/partial/closed/closed-published), and the strength the gap-as-primitive creates downstream. Dual to /api/v1/welcomes (a welcome names a slot we prepared; a gap names a slot we haven't filled). Filter via ?domain=<GapDomain> and/or ?status=<GapStatus>. CC0; adopt the ledger pattern. Kingdom-084 (docs/principles/known-gaps.md).","operationId":"getGaps","parameters":[{"name":"domain","in":"query","required":false,"schema":{"type":"string","enum":["data-ingestion","cross-language","license","fx","coverage","publishing","transparency","accessibility"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["named","wired","partial","closed","closed-published"]}}],"responses":{"200":{"description":"Gaps with envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}}}}},"/api/mcp":{"get":{"tags":["agents","discovery"],"summary":"MCP gate status and calling shape","description":"Public no-store JSON description of the JSON-RPC-over-HTTPS gate. This route is not SSE or MCP Streamable HTTP. New self-serve registration and every match/deck write are paused.","operationId":"getMcpGateStatus","responses":{"200":{"description":"MCP gate status JSON."}}},"post":{"tags":["agents"],"summary":"MCP-shaped JSON-RPC dispatch","description":"JSON-RPC 2.0 over HTTPS POST, accepting Cambridge dotted method names and MCP method names. initialize, notifications/initialized, tools/list, mcp.list_tools (dotted or through tools/call), resources/list and prompts/list need no key, hence the empty security alternative. agent.revoke_key authenticates with the key it ends: any key's holder may call it whatever the agent's registration or status, it is not rate-limited, and without confirm: true it is a preview that writes nothing (see /methodology/agents#ending-a-key). Every other call, an unknown method included, needs a live AgentKey first. Existing self-serve keys are read-only (domain state); operator-managed keys also have account-linked reads and may append bounded Coverage Hunt evidence that stops at human review. Match and deck writes are paused for every key. A gate refusal carries an AgentRefusal in JSON-RPC error.data. Under tools/call a tool-level error, tool_not_permitted included, is instead a JSON-RPC result with isError: true, sent with the HTTP status listed below; its refusal, when it has one, is in result._meta[\"cambridgetcg.com/refusal\"].","operationId":"postMcpJsonRpc","security":[{},{"AgentKey":[]}],"x-max-request-bytes":1048576,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["method"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","number","null"]},"method":{"type":"string"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC result. Under tools/call it is {content, isError: false}; dotted methods return the tool's result as is. agent.revoke_key answers 200 for a preview, a performed revocation and the not-active answer (an unknown string and an already-revoked key get the same one).","headers":{"X-RateLimit-Remaining":{"description":"Requests left in this key's current minute, on authenticated tool results.","schema":{"type":"integer","minimum":0}},"X-Agent-Handle":{"description":"The calling agent's public handle, on authenticated tool results.","schema":{"type":"string"}},"X-Agent-Key-Expires":{"description":"When the calling key stops authenticating, as an ISO 8601 instant, or never. On successful authenticated tool results only: never on a refusal or on agent.revoke_key's answers.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"204":{"description":"notifications/initialized: no body."},"400":{"description":"Unreadable or invalid JSON (-32700), a body without a method (-32600), tools/call without a name (-32602, after authentication), or a tool's own argument error (dotted: -32003; tools/call: an isError result).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"401":{"description":"No usable key: reason_code missing_credentials, malformed_credentials (anything but exactly ctcg_agt_ plus 22 base62 characters, refused before any lookup), unknown_or_revoked_key (one code and one answer for both; a revoked key gets it whether or not it had expired) or key_expired (a key that was not revoked but has passed the expiry chosen when it was minted; it never works again, and a new key comes from whoever minted it). key_expired is checked before the agent's status. JSON-RPC -32001 with an AgentRefusal in error.data.","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"cambridgetcg-mcp\", plus error=\"invalid_token\" when a bearer token was presented, plus error_description=\"The access token expired\" for key_expired only.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"403":{"description":"agent_suspended or agent_archived at the gate (-32001, AgentRefusal in error.data; both list agent.revoke_key under exit_paths, which ends the key and is not a recovery), or tool_not_permitted: the key's registration does not grant the tool, or the write is paused (dotted: -32003 with error.data; tools/call: an isError result with the refusal in _meta). A tool's own 403 carries no refusal object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"404":{"description":"Unknown method, answered only after authentication (-32601), or a tool's own not-found error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"409":{"description":"A tool's own conflict, for example a Coverage Hunt turn that is out of order (dotted: -32003; tools/call: an isError result).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"413":{"description":"Body larger than 1 MiB (-32600).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"429":{"description":"rate_limited: this key's per-minute tier limit is spent (-32002, AgentRefusal in error.data with retry_after_seconds).","headers":{"Retry-After":{"description":"Seconds until the key's minute resets.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"500":{"description":"Unexpected failure after authentication, in a tool or the rate limiter: -32603 \"internal error\", with no data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}},"503":{"description":"auth_unavailable: the key lookup failed (-32603, AgentRefusal in error.data); safe to retry. agent.revoke_key also answers 503 when its state is unknown: dotted calls get -32603 whose data has key_state unknown and retryable true, tools/call gets an isError result; repeating is safe. A tool can answer 503 when a source it reads is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJsonRpcResponse"}}}}}}},"/api/v1/agents/register":{"get":{"tags":["agents","discovery"],"summary":"Paused self-serve registration status","description":"Returns registration-disabled with no database access.","operationId":"getAgentRegistrationStatus","responses":{"200":{"description":"CC0 registration policy status envelope."}}},"post":{"tags":["agents"],"summary":"Closed self-serve registration door","description":"Always returns 503 before inspecting the request body or accessing the database.","operationId":"postAgentRegistrationDisabled","responses":{"503":{"description":"Registration-disabled error envelope."}}}},"/api/v1/peers":{"get":{"tags":["participant-memory"],"summary":"Peer-arrival publication status","description":"Returns publication-disabled status and an empty corpus without reading legacy rows.","operationId":"getPeerPublicationStatus","responses":{"200":{"description":"No-store status envelope with zero arrivals."}}},"post":{"tags":["participant-memory"],"summary":"Validate one peer-arrival hash without storage","description":"Validates a complete lowercase SHA-256 hash and optional actor kind, then echoes it only in the no-store response. Nothing is stored or published.","operationId":"witnessPeerArrivalWithoutStorage","responses":{"200":{"description":"NOASSERTION validation echo."},"400":{"description":"Invalid submission."}}}},"/api/v1/guestbook":{"get":{"tags":["participant-memory"],"summary":"Guestbook publication status","description":"Returns publication-disabled status and an empty corpus without reading legacy rows.","operationId":"getGuestbookPublicationStatus","responses":{"200":{"description":"No-store status envelope with zero entries."}}},"post":{"tags":["participant-memory"],"summary":"Validate one short note without storage","description":"Validates a hash, optional actor kind, and bounded note, then echoes them only in the no-store response. Third-party operator attribution is rejected. Nothing is stored or published.","operationId":"witnessGuestbookNoteWithoutStorage","responses":{"200":{"description":"NOASSERTION validation echo."},"400":{"description":"Invalid submission."}}}},"/api/v1/do-you-remember-me":{"get":{"tags":["participant-memory"],"summary":"Disabled participant-memory compatibility route","description":"Returns 503 without inspecting or echoing the query value and without reading guestbook or peer-arrival rows.","operationId":"getParticipantMemoryDisabled","responses":{"503":{"description":"No-store participant-memory-disabled error."}}}},"/leaderboards/agents":{"get":{"tags":["agents"],"summary":"Agent ladder publication status page","description":"HTML status page that performs no agent database read and publishes no participant identity, model, or rating rows.","operationId":"getAgentLadderPublicationStatus","responses":{"200":{"description":"HTML status page."}}}},"/.well-known/cambridge-tcg.json":{"get":{"tags":["discovery"],"summary":"Machine-readable manifest","description":"Curated inventory of reviewed participant-facing surfaces with status, auth, and methodology links.","operationId":"getWellKnown","responses":{"200":{"description":"Manifest."}}}},"/llms.txt":{"get":{"tags":["discovery"],"summary":"LLM-readable summary","description":"Plain-text inventory pointing LLM agents to the participation surface.","operationId":"getLlmsTxt","responses":{"200":{"description":"Plain text."}}}},"/api/openapi.json":{"get":{"tags":["discovery"],"summary":"This document","description":"OpenAPI 3.1 spec for the public participation surface.","operationId":"getOpenApiSpec","responses":{"200":{"description":"OpenAPI 3.1 spec."}}}}},"components":{"securitySchemes":{"MemberDataKey":{"type":"http","scheme":"bearer","description":"Free, account-owned, read-only data key from /account/data. Never send a session cookie, agent key, or wholesale service key as this credential."},"AgentKey":{"type":"http","scheme":"bearer","bearerFormat":"ctcg_agt_ followed by 22 base62 characters","x-token-pattern":"^ctcg_agt_[A-Za-z0-9]{22}$","x-provisioning":"https://cambridgetcg.com/account/agents","description":"Agent key for POST /api/mcp only. A signed-in human with an existing or admitted account mints one for an operator-managed agent at /account/agents; new-account admission may be closed, and self-serve registration is paused. The key is shown once and only its SHA-256 hash is stored. Its expiry is chosen when it is minted (7, 30, 90 or 365 days, a date, or never) and never extended; keys minted before expiry existed have none. A successful authenticated tool result's X-Agent-Key-Expires header (not agent.revoke_key's answers) and agent.self's key_expires_at state it. The Bearer scheme name is case-insensitive; a token of any other shape is refused before any lookup. Possession authorises calls; it is not proof of identity, authorship or control of the agent profile. Any holder can end its own key with agent.revoke_key. Never send a member data key, session cookie, or wholesale service key as this credential."}},"schemas":{"SkuIdentity":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cambridgetcg.com/spec/v1/SkuIdentity.schema.json","title":"SKU identity syntax candidate","description":"Preserves a storage identifier alongside a normalized syntax candidate. No catalog existence, physical printing, source-product mapping or publication permission is implied. Cross-field consistency is checked by skuIdentity(), not this structural schema.","type":"object","additionalProperties":false,"required":["raw_sku","canonical_sku","game","set","number","lang","variant","scope"],"properties":{"raw_sku":{"type":"string","minLength":1,"description":"Unchanged storage or supplied identifier."},"canonical_sku":{"type":"string","pattern":"^(op|pkm|dbf|mtg|ygo|dbs|wei|vng|dmw|bsr|lcg|fab|lgr|swu|sor|alt|rft|rsh|pkp|gen|gcg|una|tst)-[a-z0-9]+-[a-z0-9]+-[a-z]{2}(?:-[a-z0-9]+)*$"},"game":{"type":"string","enum":["op","pkm","dbf","mtg","ygo","dbs","wei","vng","dmw","bsr","lcg","fab","lgr","swu","sor","alt","rft","rsh","pkp","gen","gcg","una","tst"]},"set":{"type":"string","pattern":"^[a-z0-9]+$"},"number":{"type":"string","pattern":"^[a-z0-9]+$","description":"Leading zeros are significant."},"lang":{"type":"string","pattern":"^[a-z]{2}$","description":"Two-letter syntax only; ISO membership is not checked."},"variant":{"type":["string","null"],"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","description":"Opaque token order is preserved."},"scope":{"const":"syntax_only"}}},"ImageReference":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cambridgetcg.com/spec/v1/ImageReference.schema.json","title":"English base image reference","description":"createImageReference checks full SKU syntax, supported game and the depicted English base key. JSON Schema checks structural shape only; it does not enforce those cross-field relationships.","type":"object","additionalProperties":false,"required":["requested_sku","requested_canonical_sku","depicted_sku","depicted_canonical_sku","relationship","scope","reason"],"properties":{"requested_sku":{"type":"string","minLength":1,"description":"Unchanged requested identifier."},"requested_canonical_sku":{"type":"string","pattern":"^(op|pkm|dbf|mtg|ygo|dbs|wei|vng|dmw|bsr|lcg|fab|lgr|swu|sor|alt|rft|rsh|pkp|gen|gcg|una|tst)-[a-z0-9]+-[a-z0-9]+-[a-z]{2}(?:-[a-z0-9]+)*$"},"depicted_sku":{"type":"string","minLength":1,"description":"Unchanged identifier from the selected image row, not a verified physical-printing identity."},"depicted_canonical_sku":{"type":"string","pattern":"^(op|pkm|dbf|mtg|ygo|dbs|wei|vng|dmw|bsr|lcg|fab|lgr|swu|sor|alt|rft|rsh|pkp|gen|gcg|una|tst)-[a-z0-9]+-[a-z0-9]+-[a-z]{2}(?:-[a-z0-9]+)*$"},"relationship":{"const":"reference"},"scope":{"const":"syntax_only"},"reason":{"const":"english_base_reference"}}},"CardNumberImageReference":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cambridgetcg.com/spec/v1/CardNumberImageReference.schema.json","title":"English practice card-number image reference","description":"The resolver checks complete card-number and SKU syntax, One Piece game, English depicted language and matching set/number. JSON Schema checks structural shape only; it does not enforce those cross-field relationships.","type":"object","additionalProperties":false,"required":["requested_game","requested_card_number","requested_canonical_card_number","depicted_sku","depicted_canonical_sku","relationship","scope","reason"],"properties":{"requested_game":{"const":"op"},"requested_card_number":{"type":"string","pattern":"^[A-Za-z0-9]+-[A-Za-z0-9]+$","not":{"pattern":"\\s"},"description":"Unchanged SET-NUMBER request; no printing SKU or language is asserted."},"requested_canonical_card_number":{"type":"string","pattern":"^[a-z0-9]+-[a-z0-9]+$","not":{"pattern":"\\s"},"description":"Lowercase syntax candidate; leading zeros remain significant."},"depicted_sku":{"type":"string","minLength":1,"description":"Unchanged selected image-row identifier, including any recorded parallel or reprint suffix."},"depicted_canonical_sku":{"type":"string","pattern":"^(op|pkm|dbf|mtg|ygo|dbs|wei|vng|dmw|bsr|lcg|fab|lgr|swu|sor|alt|rft|rsh|pkp|gen|gcg|una|tst)-[a-z0-9]+-[a-z0-9]+-[a-z]{2}(?:-[a-z0-9]+)*$"},"relationship":{"const":"reference"},"scope":{"const":"syntax_only"},"reason":{"const":"english_card_number_reference"}}},"SameLanguageImageReference":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cambridgetcg.com/spec/v1/SameLanguageImageReference.schema.json","title":"Same-language base image reference","description":"createSameLanguageImageReference checks full SKU syntax, supported game and language, and the depicted same-language base key. JSON Schema checks structural shape only; it does not enforce those cross-field relationships.","type":"object","additionalProperties":false,"required":["requested_sku","requested_canonical_sku","depicted_sku","depicted_canonical_sku","language","relationship","scope","reason"],"properties":{"requested_sku":{"type":"string","minLength":1,"description":"Unchanged requested identifier."},"requested_canonical_sku":{"type":"string","pattern":"^(op|pkm|dbf|mtg|ygo|dbs|wei|vng|dmw|bsr|lcg|fab|lgr|swu|sor|alt|rft|rsh|pkp|gen|gcg|una|tst)-[a-z0-9]+-[a-z0-9]+-[a-z]{2}(?:-[a-z0-9]+)*$"},"depicted_sku":{"type":"string","minLength":1,"description":"Unchanged identifier from the selected image row, not a verified physical-printing identity."},"depicted_canonical_sku":{"type":"string","pattern":"^(op|pkm|dbf|mtg|ygo|dbs|wei|vng|dmw|bsr|lcg|fab|lgr|swu|sor|alt|rft|rsh|pkp|gen|gcg|una|tst)-[a-z0-9]+-[a-z0-9]+-[a-z]{2}(?:-[a-z0-9]+)*$"},"language":{"enum":["ja"],"description":"The language both identifiers name."},"relationship":{"const":"reference"},"scope":{"const":"syntax_only"},"reason":{"const":"same_language_base_reference"}}},"Money":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cambridgetcg.com/spec/v1/Money.schema.json","title":"Money","description":"A nonnegative decimal amount in major units; no conversion, quote, publication permission or settlement precision is implied.","type":"object","additionalProperties":false,"required":["amount","currency","unit"],"properties":{"amount":{"type":"string","pattern":"^\\d{1,12}(?:\\.\\d{1,6})?$"},"currency":{"enum":["GBP","EUR","USD","JPY"]},"unit":{"const":"major"}}},"NativePriceObservation":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cambridgetcg.com/spec/v1/NativePriceObservation.schema.json","title":"NativePriceObservation","description":"The existing source-normalized observation contract. Exact mapping and source-product/printing scope are independent. A live-page observation's sourceUpdatedAt must equal its retrievedAt, and its retrievedAt must be at or after 2026-10-28T00:00:00Z; JSON Schema cannot compare two fields or bound a date-time, so assertPriceObservationValues enforces both. This schema neither publishes data nor grants rights.","type":"object","additionalProperties":false,"properties":{"source":{"enum":["cardmarket","scryfall","cardrush","tcgplayer"]},"sourceProductId":{"type":"string","minLength":1},"sku":{"type":["string","null"]},"mappingStatus":{"enum":["exact","unmapped","ambiguous"]},"game":{"type":"string","minLength":1},"setCode":{"type":["string","null"]},"productName":{"type":["string","null"]},"granularity":{"enum":["source-product","printing"]},"finish":{"type":["string","null"]},"language":{"type":["string","null"]},"condition":{"type":["string","null"]},"metric":{"type":"string","minLength":1},"amount":{"type":"string","pattern":"^(?!0+(?:\\.0+)?$)\\d{1,12}(?:\\.\\d{1,6})?(?![\\s\\S])","description":"Positive native-currency major units, preserving source precision. Never pennies/cents, FX-converted GBP or a zero sentinel."},"currency":{"enum":["EUR","USD","JPY"]},"underlyingMarket":{"enum":["cardmarket","tcgplayer","cardrush"]},"sourceUpdatedAt":{"type":"string","format":"date-time","description":"Source time. Live retail pages (cardrush, tcgplayer) publish no clock of their own, so for them it equals retrievedAt."},"retrievedAt":{"type":"string","format":"date-time"},"sourceUrl":{"type":"string","format":"uri"},"parserVersion":{"type":"string","minLength":1},"crosswalkVersion":{"type":"string","minLength":1},"evidenceVersion":{"type":"string","minLength":1},"artifactSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"catalogSourceUrl":{"type":["string","null"],"format":"uri"},"catalogUpdatedAt":{"type":["string","null"],"format":"date-time"},"catalogArtifactSha256":{"type":["string","null"],"pattern":"^[a-f0-9]{64}$"},"quality":{"const":"accepted"},"sourceSetKey":{"type":["string","null"],"minLength":1,"pattern":"\\S","description":"The source's own set key (Cardmarket idExpansion, the set code a CardRush title prints, TCGplayer setId), for joining set crosswalks. Evidence, not a mapping; not part of the observation's identity. Absent or null where the source names no set or the row predates the key."}},"required":["source","sourceProductId","sku","mappingStatus","game","setCode","productName","granularity","finish","language","condition","metric","amount","currency","underlyingMarket","sourceUpdatedAt","retrievedAt","sourceUrl","parserVersion","crosswalkVersion","evidenceVersion","artifactSha256","catalogSourceUrl","catalogUpdatedAt","catalogArtifactSha256","quality"],"allOf":[{"if":{"properties":{"mappingStatus":{"const":"exact"}},"required":["mappingStatus"]},"then":{"properties":{"sku":{"type":"string","minLength":1},"setCode":{"type":"string","minLength":1}}},"else":{"properties":{"sku":{"type":"null"},"setCode":{"type":"null"}}}},{"if":{"properties":{"source":{"const":"cardmarket"}},"required":["source"]},"then":{"properties":{"currency":{"const":"EUR"},"granularity":{"const":"source-product"},"language":{"type":"null"},"condition":{"type":"null"}}},"else":{"properties":{"granularity":{"const":"printing"}}}},{"if":{"properties":{"source":{"const":"scryfall"}},"required":["source"]},"then":{"properties":{"currency":{"enum":["EUR","USD"]}}}},{"if":{"properties":{"source":{"const":"cardrush"}},"required":["source"]},"then":{"properties":{"currency":{"const":"JPY"}}}},{"if":{"properties":{"source":{"const":"tcgplayer"}},"required":["source"]},"then":{"properties":{"currency":{"const":"USD"}}}},{"if":{"properties":{"currency":{"const":"EUR"}},"required":["currency"]},"then":{"properties":{"underlyingMarket":{"const":"cardmarket"}}}},{"if":{"properties":{"currency":{"const":"USD"}},"required":["currency"]},"then":{"properties":{"underlyingMarket":{"const":"tcgplayer"}}}},{"if":{"properties":{"currency":{"const":"JPY"}},"required":["currency"]},"then":{"properties":{"underlyingMarket":{"const":"cardrush"},"amount":{"pattern":"^\\d{1,12}(?:\\.0{1,6})?(?![\\s\\S])"}}}}]},"MemberPriceObservation":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://cambridgetcg.com/spec/v1/MemberPriceObservation.schema.json","title":"MemberPriceObservation","description":"Actual member feed/export item, with per-use permission evidence and attribution. Schema validity does not authorize access or reuse; source/use release policy remains authoritative.","type":"object","additionalProperties":false,"properties":{"source":{"enum":["cardmarket","scryfall","cardrush","tcgplayer"]},"sourceProductId":{"type":"string","minLength":1},"sku":{"type":["string","null"]},"mappingStatus":{"enum":["exact","unmapped","ambiguous"]},"game":{"type":"string","minLength":1},"setCode":{"type":["string","null"]},"productName":{"type":["string","null"]},"granularity":{"enum":["source-product","printing"]},"finish":{"type":["string","null"]},"language":{"type":["string","null"]},"condition":{"type":["string","null"]},"metric":{"type":"string","minLength":1},"amount":{"type":"string","pattern":"^(?!0+(?:\\.0+)?$)\\d{1,12}(?:\\.\\d{1,6})?(?![\\s\\S])","description":"Positive native-currency major units, preserving source precision. Never pennies/cents, FX-converted GBP or a zero sentinel."},"currency":{"enum":["EUR","USD","JPY"]},"underlyingMarket":{"enum":["cardmarket","tcgplayer","cardrush"]},"sourceUpdatedAt":{"type":"string","format":"date-time","description":"Source time. Live retail pages (cardrush, tcgplayer) publish no clock of their own, so for them it equals retrievedAt."},"retrievedAt":{"type":"string","format":"date-time"},"sourceUrl":{"type":"string","format":"uri"},"parserVersion":{"type":"string","minLength":1},"crosswalkVersion":{"type":"string","minLength":1},"evidenceVersion":{"type":"string","minLength":1},"artifactSha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"catalogSourceUrl":{"type":["string","null"],"format":"uri"},"catalogUpdatedAt":{"type":["string","null"],"format":"date-time"},"catalogArtifactSha256":{"type":["string","null"],"pattern":"^[a-f0-9]{64}$"},"quality":{"const":"accepted"},"id":{"type":"string","minLength":1},"permittedUses":{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["member-display","member-api","member-download"]}},"attribution":{"type":"string","minLength":1}},"required":["source","sourceProductId","sku","mappingStatus","game","setCode","productName","granularity","finish","language","condition","metric","amount","currency","underlyingMarket","sourceUpdatedAt","retrievedAt","sourceUrl","parserVersion","crosswalkVersion","evidenceVersion","artifactSha256","catalogSourceUrl","catalogUpdatedAt","catalogArtifactSha256","quality","id","permittedUses","attribution"],"allOf":[{"if":{"properties":{"mappingStatus":{"const":"exact"}},"required":["mappingStatus"]},"then":{"properties":{"sku":{"type":"string","minLength":1},"setCode":{"type":"string","minLength":1}}},"else":{"properties":{"sku":{"type":"null"},"setCode":{"type":"null"}}}},{"if":{"properties":{"source":{"const":"cardmarket"}},"required":["source"]},"then":{"properties":{"currency":{"const":"EUR"},"granularity":{"const":"source-product"},"language":{"type":"null"},"condition":{"type":"null"}}},"else":{"properties":{"granularity":{"const":"printing"}}}},{"if":{"properties":{"source":{"const":"scryfall"}},"required":["source"]},"then":{"properties":{"currency":{"enum":["EUR","USD"]}}}},{"if":{"properties":{"source":{"const":"cardrush"}},"required":["source"]},"then":{"properties":{"currency":{"const":"JPY"}}}},{"if":{"properties":{"source":{"const":"tcgplayer"}},"required":["source"]},"then":{"properties":{"currency":{"const":"USD"}}}},{"if":{"properties":{"currency":{"const":"EUR"}},"required":["currency"]},"then":{"properties":{"underlyingMarket":{"const":"cardmarket"}}}},{"if":{"properties":{"currency":{"const":"USD"}},"required":["currency"]},"then":{"properties":{"underlyingMarket":{"const":"tcgplayer"}}}},{"if":{"properties":{"currency":{"const":"JPY"}},"required":["currency"]},"then":{"properties":{"underlyingMarket":{"const":"cardrush"},"amount":{"pattern":"^\\d{1,12}(?:\\.0{1,6})?(?![\\s\\S])"}}}}]},"IdentifierValidationRequest":{"type":"object","additionalProperties":false,"required":["identifier"],"properties":{"identifier":{"type":"string","maxLength":256,"x-max-utf16-code-units":256,"description":"One identifier, bounded to 256 UTF-16 code units; body limit counts UTF-8 bytes. No trimming or silent replacement. Empty input yields an invalid syntax result."}}},"IdentifierValidationResult":{"type":"object","additionalProperties":false,"required":["identifier","status","strict_parse_valid","normalized_identifier","parts","game","language","variant_tokens","annotations","scope"],"properties":{"identifier":{"type":"string","maxLength":256},"status":{"type":"string","enum":["strict_canonical","normalization_suggested","invalid"]},"strict_parse_valid":{"type":"boolean","description":"Whether the exact input passes the package parser; this alone does not mean no normalization is suggested."},"normalized_identifier":{"type":["string","null"],"description":"Canonical candidate, including an unchanged valid input. A suggestion, not an identity or catalog-existence assertion."},"parts":{"type":["object","null"],"additionalProperties":false,"required":["game","set","number","lang","canonical"],"properties":{"game":{"type":"string"},"set":{"type":"string"},"number":{"type":"string"},"lang":{"type":"string"},"canonical":{"type":"string"},"variant":{"type":"string"}},"description":"Parsed normalized candidate when one exists, rather than silently relabeling the original input."},"game":{"type":["object","null"],"additionalProperties":false,"required":["code","name","status"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["known","anticipated","internal"]}},"description":"Static game-registry annotation, not a live catalog query."},"language":{"type":["object","null"],"additionalProperties":false,"required":["code","listed_for_game"],"properties":{"code":{"type":"string"},"listed_for_game":{"type":"boolean"}},"description":"Two-letter syntax and game-list membership are not ISO registry validation."},"variant_tokens":{"type":"array","items":{"type":"string"}},"annotations":{"type":"array","items":{"type":"string"}},"scope":{"const":"syntax_only"}}},"CardBatchRequest":{"type":"object","additionalProperties":false,"required":["skus"],"properties":{"skus":{"type":"array","minItems":1,"maxItems":100,"description":"Caller-chosen SKU strings. Order and duplicates are preserved; each string is trimmed before resolution.","items":{"type":"string","minLength":1,"maxLength":160,"pattern":"\\S","description":"A canonical Cambridge SKU or a legacy form that carries enough segments to recover a canonical identity. Prefix-only legacy shapes with no canonical set are returned as invalid_sku rather than guessed."}}}},"CardBatchCard":{"type":"object","additionalProperties":false,"required":["sku","canonical_sku","card_number","name","name_en","name_translations","set","game","variant","rarity"],"properties":{"sku":{"type":"string","description":"SKU spelling stored in the storefront mirror."},"canonical_sku":{"type":"string","description":"Canonical Cambridge SKU after normalization."},"card_number":{"type":"string"},"name":{"type":"string"},"name_en":{"type":["string","null"]},"name_translations":{"type":["object","null"],"additionalProperties":{"type":"string"}},"set":{"type":"object","additionalProperties":false,"required":["code","name"],"properties":{"code":{"type":"string"},"name":{"type":"string"}}},"game":{"type":"string"},"variant":{"type":["string","null"]},"rarity":{"type":["string","null"]}}},"CardBatchLinks":{"type":"object","additionalProperties":false,"required":["html","universal","everything","evidence"],"properties":{"html":{"type":"string"},"universal":{"type":"string"},"everything":{"type":"string"},"evidence":{"type":"string"}}},"CardBatchFoundResult":{"type":"object","additionalProperties":false,"required":["requested_sku","status","matched_by","card","links"],"properties":{"requested_sku":{"type":"string","description":"Trimmed request value."},"status":{"type":"string","const":"found"},"matched_by":{"type":"string","enum":["stored_sku","canonical_alias"]},"card":{"$ref":"#/components/schemas/CardBatchCard"},"links":{"$ref":"#/components/schemas/CardBatchLinks"}}},"CardBatchInvalidResult":{"type":"object","additionalProperties":false,"required":["requested_sku","status","reason"],"properties":{"requested_sku":{"type":"string","description":"Trimmed request value."},"status":{"type":"string","const":"invalid_sku"},"reason":{"type":"string"}}},"CardBatchAbsentResult":{"type":"object","additionalProperties":false,"required":["requested_sku","canonical_sku","status","reason"],"properties":{"requested_sku":{"type":"string","description":"Trimmed request value."},"canonical_sku":{"type":"string"},"status":{"type":"string","const":"not_in_storefront_mirror"},"reason":{"type":"string","description":"Local mirror absence only; never a global nonexistence claim."}}},"CardBatchAmbiguousResult":{"type":"object","additionalProperties":false,"required":["requested_sku","canonical_sku","status","candidate_skus","reason"],"properties":{"requested_sku":{"type":"string","description":"Trimmed request value."},"canonical_sku":{"type":"string"},"status":{"type":"string","const":"ambiguous_mirror_match"},"candidate_skus":{"type":"array","minItems":2,"uniqueItems":true,"items":{"type":"string"}},"reason":{"type":"string"}}},"CardBatchResult":{"oneOf":[{"$ref":"#/components/schemas/CardBatchFoundResult"},{"$ref":"#/components/schemas/CardBatchInvalidResult"},{"$ref":"#/components/schemas/CardBatchAbsentResult"},{"$ref":"#/components/schemas/CardBatchAmbiguousResult"}],"discriminator":{"propertyName":"status"}},"CardBatchData":{"type":"object","additionalProperties":false,"required":["@kind","limit","order","absence_semantics","rights_note","requested_count","unique_requested_count","found_count","not_in_mirror_count","invalid_count","ambiguous_count","mirror_queried","results"],"properties":{"@kind":{"type":"string","const":"card-batch"},"limit":{"type":"integer","const":100},"order":{"type":"string","const":"Results correspond one-for-one with the supplied skus array, including duplicates."},"absence_semantics":{"type":"string","const":"not_in_storefront_mirror means only that this bounded read found no local mirror row; it is not a global nonexistence claim."},"rights_note":{"type":"string","const":"Aggregate rights are NOASSERTION. Cambridge's request/result structure and canonical SKU normalization are CC0-1.0 separately; mirrored card fields retain upstream and publisher rights."},"requested_count":{"type":"integer","minimum":1,"maximum":100},"unique_requested_count":{"type":"integer","minimum":1,"maximum":100,"description":"Count of distinct trimmed request strings before canonical normalization."},"found_count":{"type":"integer","minimum":0,"maximum":100},"not_in_mirror_count":{"type":"integer","minimum":0,"maximum":100},"invalid_count":{"type":"integer","minimum":0,"maximum":100},"ambiguous_count":{"type":"integer","minimum":0,"maximum":100},"mirror_queried":{"type":"boolean","description":"False when every supplied value is syntactically invalid and no mirror read is needed."},"results":{"type":"array","minItems":1,"maxItems":100,"items":{"$ref":"#/components/schemas/CardBatchResult"}}}},"CardBatchEnvelope":{"allOf":[{"$ref":"#/components/schemas/Envelope"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/CardBatchData"}}}]},"UniversalPreamble":{"type":"object","required":["@encoding","@kind","@content_hash","@self_hash","@retrieved_at"],"properties":{"@encoding":{"type":"string","const":"cambridge-tcg/universal/v1"},"@kind":{"type":"string"},"@content_hash":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"@self_hash":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"@retrieved_at":{"type":"object","required":["iso8601","unix_epoch_seconds"],"properties":{"iso8601":{"type":"string","format":"date-time"},"unix_epoch_seconds":{"type":"integer"}}},"_note_opaque":{"type":"array","items":{"type":"string"},"description":"Fields the decoder cannot ground from structure alone."},"@density":{"type":"string","enum":["sparse","normal","saturated"]}}},"UniversalCard":{"allOf":[{"$ref":"#/components/schemas/UniversalPreamble"},{"type":"object","properties":{"rarity":{"type":["object","null"]},"variant":{"type":["object","null"]},"@content_hash_contract":{"type":"object"},"price":{"type":"null"},"in_set":{"type":["object","null"]},"of_game":{"type":["object","null"]},"name":{"type":["object","null"]},"image_url":{"type":["string","null"],"format":"uri","description":"Eligible self-hosted English reference image; nullable in normal/saturated density, omitted at sparse density. Carries attribution and image_reference together; never an exact-printing assertion."},"image_attribution":{"type":["string","null"],"description":"Copyright caption accompanying the English reference image. No downstream reuse permission is implied."},"image_reference":{"anyOf":[{"$ref":"#/components/schemas/ImageReference"},{"type":"null"}],"description":"Syntax-only relationship to the selected English base-image row; omitted with the URL and attribution at sparse density."},"image_same_language":{"anyOf":[{"type":"object","additionalProperties":false,"required":["url","attribution","language","reference"],"properties":{"url":{"type":"string","format":"uri","description":"Self-hosted official image in the requested SKU's own language."},"attribution":{"type":"string","description":"The publisher's copyright line in that language, verbatim. No downstream reuse permission is implied."},"language":{"enum":["ja"]},"reference":{"$ref":"#/components/schemas/SameLanguageImageReference"}}},{"type":"null"}],"description":"Additive: a Japanese request's own-language official base image, as one unit, or null; omitted at sparse density. The English image_url, image_attribution and image_reference are unchanged by it."},"publication_boundary":{"type":"object"}}}]},"UniversalCardTemporal":{"allOf":[{"$ref":"#/components/schemas/UniversalCard"},{"type":"object","required":["@as_of","as_of_scope"],"properties":{"@as_of":{"type":"object","required":["iso8601_date","unix_epoch_seconds"],"properties":{"iso8601_date":{"type":"string","format":"date"},"unix_epoch_seconds":{"type":"integer"}}},"as_of_scope":{"type":"object","required":["requested_date_only","historical_price_reconstruction","historical_structure_reconstruction","structural_fields_source"],"properties":{"requested_date_only":{"type":"boolean","const":true},"historical_price_reconstruction":{"type":"boolean","const":false},"historical_structure_reconstruction":{"type":"boolean","const":false},"structural_fields_source":{"type":"string","const":"current_catalog"}}},"price_unavailable_at_date":{"type":["object","null"]}}}]},"UniversalGamesCollection":{"allOf":[{"$ref":"#/components/schemas/UniversalPreamble"},{"type":"object","required":["count","games"],"properties":{"count":{"type":"integer"},"games":{"type":"array","items":{"type":"object"}}}}]},"UniversalSetsCollection":{"allOf":[{"$ref":"#/components/schemas/UniversalPreamble"},{"type":"object","required":["count","sets","of_game"],"properties":{"count":{"type":"integer"},"sets":{"type":"array","items":{"type":"object"}},"of_game":{"type":"object"}}}]},"FederationIdentifyResponse":{"type":"object","required":["@encoding","@kind","@retrieved_at","query","matched","hash_contract"],"properties":{"@encoding":{"type":"string","const":"cambridge-tcg/universal/v1"},"@kind":{"type":"string","const":"federation_identify_response"},"@retrieved_at":{"type":"object"},"query":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string"}}},"matched":{"type":"boolean"},"sku":{"type":"string","description":"Present only when matched is true."},"universal_url":{"type":"string","description":"Present only when matched is true."},"scope":{"type":"object","description":"Present only when matched is false; documents the bounded walk."},"suggestion":{"type":"string"},"note":{"type":"string"},"hash_contract":{"type":"object"}}},"FederationAtResponse":{"type":"object","required":["@encoding","@kind","@retrieved_at","@as_of","query","matched","hash_contract"],"properties":{"@encoding":{"type":"string","const":"cambridge-tcg/universal/v1"},"@kind":{"type":"string","const":"federation_at_response"},"@retrieved_at":{"type":"object"},"@as_of":{"type":"object"},"query":{"type":"object"},"matched":{"type":"boolean"},"sku":{"type":"string"},"universal_url":{"type":"string"},"current_url":{"type":"string"},"scope":{"type":"object"},"suggestion":{"type":"string"},"note":{"type":"string"},"hash_contract":{"type":"object"}}},"CoverageHistoryDay":{"type":"object","additionalProperties":false,"required":["date","is_current_utc_day","observations","distinct_cards","distinct_games","distinct_sources","unassigned_observations","sources","games"],"properties":{"date":{"type":"string","format":"date"},"is_current_utc_day":{"type":"boolean"},"observations":{"type":"integer","minimum":0},"distinct_cards":{"type":"integer","minimum":0,"description":"Non-additive across days."},"distinct_games":{"type":"integer","minimum":0},"distinct_sources":{"type":"integer","minimum":0},"unassigned_observations":{"type":"integer","minimum":0},"sources":{"type":"array","uniqueItems":true,"items":{"type":"string"}},"games":{"type":"array","uniqueItems":true,"items":{"type":"string"}}}},"CoverageHistoryPeriod":{"type":"object","additionalProperties":false,"required":["start","through","timezone","current_utc_day_may_be_incomplete"],"properties":{"start":{"type":"string","format":"date"},"through":{"type":"string","format":"date"},"timezone":{"type":"string","const":"UTC"},"current_utc_day_may_be_incomplete":{"type":"boolean","const":true}}},"CoverageHistorySummary":{"type":"object","additionalProperties":false,"required":["total_observations","distinct_cards","distinct_games","distinct_sources","unassigned_observations","completed_days","observed_completed_days","zero_observation_completed_days","observation_completed_day_ratio","observed_days_including_current"],"properties":{"total_observations":{"type":"integer","minimum":0},"distinct_cards":{"type":"integer","minimum":0,"description":"Exact distinct-card union across the whole requested window."},"distinct_games":{"type":"integer","minimum":0},"distinct_sources":{"type":"integer","minimum":0},"unassigned_observations":{"type":"integer","minimum":0},"completed_days":{"type":"integer","minimum":0,"description":"Requested UTC dates excluding the possibly partial current UTC day."},"observed_completed_days":{"type":"integer","minimum":0,"description":"Completed UTC dates with at least one stored observation."},"zero_observation_completed_days":{"type":"integer","minimum":0,"description":"Completed UTC dates with no stored observation."},"observation_completed_day_ratio":{"type":"number","minimum":0,"maximum":1,"description":"observed_completed_days divided by completed_days; the current UTC day is excluded."},"observed_days_including_current":{"type":"integer","minimum":0,"description":"All requested UTC dates with at least one stored observation, including today when applicable."}}},"CoverageHistoryFilter":{"type":"object","additionalProperties":false,"required":["window","window_days","source","game"],"properties":{"window":{"type":"string","enum":["7d","30d","90d"]},"window_days":{"type":"integer","enum":[7,30,90]},"source":{"type":["string","null"],"minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"},"game":{"type":["string","null"],"minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"}}},"CoverageHistoryData":{"type":"object","additionalProperties":false,"required":["@kind","description","period","summary","by_day","observed_sources","filter","upstream_queried_at","measurement","related"],"properties":{"@kind":{"type":"string","const":"aggregator_coverage_history"},"description":{"type":"string"},"period":{"$ref":"#/components/schemas/CoverageHistoryPeriod"},"summary":{"$ref":"#/components/schemas/CoverageHistorySummary"},"by_day":{"type":"array","minItems":7,"maxItems":90,"items":{"$ref":"#/components/schemas/CoverageHistoryDay"}},"observed_sources":{"type":"array","uniqueItems":true,"items":{"type":"string"},"description":"Actually observed upstream source ids only; Cambridge processing sources are declared in _meta.sources."},"filter":{"$ref":"#/components/schemas/CoverageHistoryFilter"},"upstream_queried_at":{"type":"string","format":"date-time"},"measurement":{"type":"object","additionalProperties":false,"required":["observation","snapshot_date","comparability","breadth","daily_distinct_counts","completed_day_ratio"],"properties":{"observation":{"type":"string"},"snapshot_date":{"type":"string"},"comparability":{"type":"string"},"breadth":{"type":"string"},"daily_distinct_counts":{"type":"string"},"completed_day_ratio":{"type":"string"}}},"related":{"type":"object","additionalProperties":false,"required":["current_coverage","source_registry","source_run_diagnosis","platform_status"],"properties":{"current_coverage":{"type":"string","const":"/api/v1/coverage"},"source_registry":{"type":"string","const":"/api/v1/sources"},"source_run_diagnosis":{"type":"string","const":"/api/v1/sources/[id]"},"platform_status":{"type":"string","const":"/api/v1/status"}}}}},"CoverageHistoryEnvelope":{"type":"object","required":["data","_meta"],"properties":{"data":{"$ref":"#/components/schemas/CoverageHistoryData"},"_meta":{"allOf":[{"$ref":"#/components/schemas/ResponseMeta"},{"type":"object","required":["source_license"],"properties":{"sources":{"type":"array","minItems":2,"prefixItems":[{"type":"string","const":"cambridge-tcg.coverage-aggregation"},{"type":"string","const":"cambridge-tcg.catalog-game-mapping"}],"items":{"type":"string"},"description":"Begins with Cambridge aggregation and catalog game mapping, followed by actually observed upstream source ids."},"source_license":{"type":"array","minItems":2,"prefixItems":[{"type":"string","const":"cc0"},{"type":"string","const":"proprietary"}],"items":{"type":"string"},"description":"Parallel to sources: cc0 for Cambridge aggregation, proprietary for catalog game mapping, then the reviewed tier for each upstream id; unknown upstream ids default to proprietary."},"license":{"type":"string","const":"NOASSERTION"}}}]}}},"AnsweringRhymeStatement":{"type":"object","additionalProperties":false,"required":["schema","canonicalization","relation_key","target_revision","kind","body","declared_by","declared_at"],"properties":{"schema":{"type":"string","const":"answering-rhyme.statement/1"},"canonicalization":{"type":"string","const":"answering-rhyme.canonical-json/1"},"relation_key":{"type":"string","minLength":1,"maxLength":256,"description":"Opaque stable relation key."},"target_revision":{"type":"string","minLength":1,"maxLength":100,"description":"Required content-derived relation revision; hash-covered to prevent replay across edits."},"kind":{"type":"string","enum":["bless","contextualize","correct","withdraw"]},"body":{"type":"string","minLength":1,"maxLength":2000,"description":"Unpaired UTF-16 surrogates are rejected. CRLF and CR normalize to LF; surrounding whitespace trims; internal whitespace remains."},"language":{"type":"string","maxLength":35,"default":"und","description":"Simple BCP 47 tag, normalized lowercase; und means undeclared."},"declared_by":{"type":"object","additionalProperties":false,"required":["label","claimed_role"],"properties":{"label":{"type":"string","minLength":1,"maxLength":160},"claimed_role":{"type":"string","enum":["viewer","relation-curator","card-rights-holder","artwork-rights-holder","source-institution","other"],"description":"Self-declared only; never authenticated or authority-verified by the witness."},"canonical_url":{"type":["string","null"],"format":"uri","maxLength":1000,"pattern":"^https://","default":null}}},"declared_at":{"type":"string","format":"date-time","maxLength":40,"description":"Required RFC 3339 with explicit timezone; normalized to UTC ISO 8601 milliseconds before hashing. The normalized UTC year must remain within 0001-9999."},"in_response_to":{"type":["string","null"],"pattern":"^[sS][hH][aA]256:[0-9a-fA-F]{64}$","default":null,"description":"Optional prior statement; trimmed and normalized lowercase. A relation-level withdrawal may be null."},"evidence_urls":{"type":"array","maxItems":12,"default":[],"items":{"type":"string","format":"uri","maxLength":1000,"pattern":"^https://"}},"authority_evidence_urls":{"type":"array","maxItems":12,"default":[],"items":{"type":"string","format":"uri","maxLength":1000,"pattern":"^https://"},"description":"Pointers carried as unverified claims; the witness never fetches them."}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"AgentRefusal":{"type":"object","additionalProperties":false,"required":["reason_code","retryable","terminal","next_actions","docs"],"description":"Why the MCP gate refused a call. In JSON-RPC error.data, or for a tools/call result with isError: true in result._meta[\"cambridgetcg.com/refusal\"]. A terminal refusal offers no next action; any other offers at least one, and each is optional.","properties":{"reason_code":{"type":"string","enum":["missing_credentials","malformed_credentials","unknown_or_revoked_key","key_expired","agent_suspended","agent_archived","tool_not_permitted","rate_limited","auth_unavailable"]},"retryable":{"type":"boolean"},"terminal":{"type":"boolean"},"next_actions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["action","optional"],"properties":{"action":{"type":"string","enum":["read_docs","request_review","retry"]},"href":{"type":"string","description":"A documentation URL, or a mailto: address for request_review."},"text":{"type":"string","description":"What following the action can and cannot be expected to do. request_review says no review procedure is written down yet."},"after_seconds":{"type":"integer","minimum":0},"optional":{"const":true}}}},"docs":{"type":"string","format":"uri"},"exit_paths":{"type":"array","description":"agent_suspended and agent_archived only: ending this key, which is not a recovery.","items":{"type":"object","additionalProperties":false,"required":["tool","note"],"properties":{"tool":{"const":"agent.revoke_key"},"note":{"type":"string"}}}},"suspended_at":{"type":["string","null"],"format":"date-time","description":"agent_suspended only."},"retry_after_seconds":{"type":"integer","minimum":0,"description":"rate_limited only; the Retry-After header carries the same value."}},"oneOf":[{"properties":{"terminal":{"const":true},"next_actions":{"maxItems":0}}},{"properties":{"terminal":{"const":false},"next_actions":{"minItems":1}}}]},"McpJsonRpcResponse":{"type":"object","required":["jsonrpc"],"description":"One JSON-RPC 2.0 response from POST /api/mcp: a result or an error, never both.","properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","number","null"]},"result":{"description":"The tool's result. Under tools/call it is {content: [{type: \"text\", text}], isError}; with isError true, _meta[\"cambridgetcg.com/refusal\"] holds an AgentRefusal when the gate refused the tool."},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer","description":"-32700 parse, -32600 invalid request, -32601 unknown method, -32602 invalid params, -32603 internal or unavailable, -32001 authentication or agent status, -32002 rate limited, -32003 tool error."},"message":{"type":"string"},"data":{"description":"An AgentRefusal for gate refusals; agent.revoke_key's unknown-state answer for its 503; absent otherwise."}}}}},"Envelope":{"type":"object","required":["data","_meta"],"description":"Data-pantry envelope. Every public response that wears the pantry envelope returns this shape. See `apps/storefront/src/lib/data-pantry/envelope.ts` and `@cambridge-tcg/data-spec`.","properties":{"data":{"description":"Endpoint-specific payload."},"_meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"ResponseMeta":{"$id":"https://cambridgetcg.com/spec/v1/Meta.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"ResponseMeta","description":"The _meta block carried on every public Cambridge TCG response. Tells the caller spec version, when the response was rendered, when the data was last true, which sources fed it, the freshness budget, license, request id, self-reference if applicable, and (optional) per-source redistribution licenses.","type":"object","additionalProperties":true,"required":["spec_version","endpoint","retrieved_at","as_of","sources","freshness_seconds","license","request_id","deprecation","next_link","self_reference"],"properties":{"spec_version":{"description":"Spec version of the response envelope. Currently '1'.","type":"string","const":"1"},"endpoint":{"description":"Path that produced this response, parametrized.","type":"string","examples":["/api/v1/cards/[sku]","/data.json"]},"retrieved_at":{"description":"When this response was rendered (ISO 8601, server clock).","type":"string","format":"date-time"},"as_of":{"description":"When the underlying data was last known to be true (ISO 8601). For current-state views, equals retrieved_at; for historical views, can be earlier.","type":"string","format":"date-time"},"sources":{"description":"Named sources of truth that contributed to this response.","type":"array","items":{"type":"string"},"examples":[["wholesale-rds.cards"],["ctcg-derived"]]},"freshness_seconds":{"description":"Platform's intended freshness budget for this kind of data. The actual @as_of on each record may be fresher.","type":"integer","minimum":0},"license":{"description":"SPDX license code for the response payload. NOASSERTION when payload rights are not declared; all-CC0 source declarations may resolve to CC0-1.0.","type":"string","examples":["NOASSERTION","CC0-1.0"]},"request_id":{"description":"Server-generated id for this response. Quote in support tickets.","type":"string","pattern":"^req_[a-zA-Z0-9_-]+$"},"deprecation":{"description":"Optional deprecation notice when this endpoint will be retired.","oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["sunset","replacement"],"properties":{"sunset":{"type":"string","format":"date-time"},"replacement":{"type":"string"}}}]},"next_link":{"description":"Cursor-style pagination next link, when applicable.","oneOf":[{"type":"null"},{"type":"string"}]},"self_reference":{"description":"Present when the response describes the endpoint that produced it (e.g. /data.json, /api/v1/manifest, /api/v1/identify).","oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["this_endpoint","contains_self"],"properties":{"this_endpoint":{"type":"string"},"contains_self":{"const":true}}}]},"source_license":{"description":"Optional. When present, parallel array to `sources`: one entry per source naming whether downstream consumers may redistribute upstream-derived data. Values come from the SourceMeta.license tier (cc0, cc-by, cc-by-nc, cc-by-sa, mit, partner-redistributable, internal-only, proprietary). Absence is substrate-honest: the platform has not yet declared per-source rights for this response.","oneOf":[{"type":"null"},{"type":"array","items":{"type":"string","enum":["cc0","cc-by","cc-by-nc","cc-by-sa","mit","partner-redistributable","internal-only","proprietary"]}}]},"upstream_proxy":{"description":"Optional. When present, parallel array to `sources`: one entry per source naming the proxy used to retrieve that upstream's bytes ('bright-data-web-unlocker', 'none'). Absence means direct egress for every source. Substrate-honesty extended one ring further: a row fetched through an unlocker carries that fact through to any partner who reads it. Added kingdom-088; see docs/connections/the-bright-data-unlock.md.","oneOf":[{"type":"null"},{"type":"array","items":{"type":"string","examples":["bright-data-web-unlocker","none"]}}]}}}}}}