{"openapi":"3.1.0","info":{"title":"product.cloud API","version":"1.0.0-mvp","description":"Normative REST API of product.cloud (ADR-0012). Errors are RFC 9457 problem details with a stable `code`. Implemented by crates/product-hub.","license":{"name":"Apache-2.0","identifier":"Apache-2.0"}},"servers":[{"url":"https://api.product.cloud"},{"url":"https://api-staging.product.cloud"}],"security":[{"bearer":[]}],"paths":{"/health":{"get":{"summary":"Liveness","tags":["meta"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/capabilities":{"get":{"summary":"Advertised next-wave extensions and supported protocol versions (ADR-0066 §1); public, never caller-dependent","tags":["discovery"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/connectors/compatibility":{"post":{"summary":"Whether a connector-capabilities@1 declaration covers a repository or dataset ({capabilities, repository | dataset}): compatible, partial or unsupported, with reasons. Capability evidence, never access (ADR-0070 §3)","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/impact/evaluations":{"post":{"summary":"Evaluate a consumer impact contract against a base and candidate release of one dataset scope (ADR-0069). Signed in; idempotent by inputs","tags":["impact"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"summary":"The caller's impact evaluations (query: dataset), newest first, rights re-checked","tags":["impact"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/impact/evaluations/{id}":{"get":{"summary":"An impact evaluation with its impact-report@1 when recorded; owner only, rights re-checked; a queued one is retried on read","tags":["impact"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/impact/evaluations/{id}/findings":{"get":{"summary":"Findings of an impact report, paged with a sealed cursor","tags":["impact"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/impact/evaluations/{id}/acknowledgments":{"post":{"summary":"Record that an operator acknowledged or deployed a recorded report ({state, receipt?}); a report never writes to a target by itself","tags":["impact"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/impact/contracts/validate":{"post":{"summary":"Problems and digest of a draft consumer contract; nothing is recorded","tags":["impact"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/live-queries":{"post":{"summary":"Create (or reuse) an immutable product.cloud/live-query@1 definition over a dataset's open scope; fields must be declared query fields (ADR-0073)","tags":["live-queries"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/live-queries/{id}":{"get":{"summary":"Definition and status (backfilling, ready, lagging) of a live query","tags":["live-queries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/live-queries/{id}/snapshot":{"get":{"summary":"The query's members at a release (query: release; default the latest live release) and the barrier cursor to follow changes from","tags":["live-queries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/live-queries/{id}/changes":{"get":{"summary":"enter/update/leave changes of the query result after a sealed cursor (query: after, limit ≤ 1000); 410 with a snapshot on reset or changed rights","tags":["live-queries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/live-queries/{id}/subscriptions":{"post":{"summary":"Register an https webhook for signed release hints (polling stays the source of truth)","tags":["live-queries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/live-queries/{id}/subscriptions/{sub}":{"delete":{"summary":"Disable a webhook subscription (its owner only)","tags":["live-queries"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sub","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/passports":{"get":{"summary":"The open passport profiles of the passport-profiles namespace (at most 50): name, pinned commit, digest, dataset, subject level, product category and legal status, so identifier entry points can offer typed links (ADR-0075 §7)","tags":["passports"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/passports/{profile}/{subject}":{"get":{"summary":"A passport@1: one subject (GTIN or mpn:) projected through the open profile passport-profiles/{profile} over a pinned open-scope graph-view release (query: release, profileRevision). Every value cites evidence; legalConformity is always not-assessed (non-regulatory pilot, ADR-0075). 410 PRODUCT-PASSPORT-WITHDRAWN with the replacement when its release was withdrawn or a cited assertion erased","tags":["passports"],"parameters":[{"name":"profile","in":"path","required":true,"schema":{"type":"string"}},{"name":"subject","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/passports/{profile}/{subject}/history":{"get":{"summary":"The open releases a passport of this subject can be pinned to, newest first, with the passports already projected and withdrawn ones marked (query: limit ≤ 50)","tags":["passports"],"parameters":[{"name":"profile","in":"path","required":true,"schema":{"type":"string"}},{"name":"subject","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/federation/descriptor":{"get":{"summary":"This hub's signed product.cloud/hub-descriptor@1: protocols, extensions, transport limits and keys (ADR-0076); 404 when the hub does not federate","tags":["federation"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/federation/origins/{originId}":{"get":{"summary":"The newest accepted, signed origin descriptor of an origin this hub mirrors, passed on unchanged","tags":["federation"],"parameters":[{"name":"originId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/federation/announcements":{"post":{"summary":"A signed announcement that an origin repository moved: checked for loops, hops (≤ 4), dates, origin and signer (the origin or an allowlisted peer); marks mirrors stale until the engine verifies (202)","tags":["federation"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"202":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/federation/mirrors/{namespace}/{repository}":{"get":{"summary":"Mirror status: origin, status, last verified commit and time (never claimed fresher), last error, withdrawal","tags":["federation"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"summary":"Withdraw (purge) a mirror: operator only; content reads then answer 410 PRODUCT-FEDERATION-WITHDRAWN","tags":["federation"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/iceberg/v1/config":{"get":{"summary":"Iceberg REST catalog configuration (read-only catalog over canonical shards, ADR-0058 §9): the warehouse location","tags":["iceberg"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/iceberg/v1/namespaces":{"get":{"summary":"Namespaces with published Iceberg tables (open repositories only)","tags":["iceberg"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/iceberg/v1/namespaces/{namespace}/tables":{"get":{"summary":"Iceberg tables of a namespace, named <repository>__<table>","tags":["iceberg"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/iceberg/v1/namespaces/{namespace}/tables/{table}":{"get":{"summary":"loadTable: the table metadata (every commit a snapshot, branches and tags as refs, mandatory name mapping); data files are the canonical shards at their object keys","tags":["iceberg"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"table","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/iceberg/attachments/{namespace}/{repository}":{"get":{"summary":"product.cloud/iceberg-attachment@1 of the commit a revision names (query: revision, default main): every table pinned to {metadataLocation, snapshotId}","tags":["iceberg"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/iceberg/v1/aws/s3/sign":{"post":{"summary":"Iceberg REST remote signer (ADR-0058 §9.8): a five-minute presigned GET or HEAD of one object. Open objects for anyone; restricted objects only for a caller who may read a repository holding them, decided on every request (service accounts welcome)","tags":["iceberg"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/mapping-assists":{"post":{"summary":"Start a mapping-assist job over pinned open releases: retrieval, typed candidates and deterministic validation; AI generation only when a provider is configured (ADR-0074)","tags":["mapping-assist"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/mapping-assists/{jobId}":{"get":{"summary":"The job (owner only): task, retrieval manifest, validated candidates with their provenance (found in a published source or generated)","tags":["mapping-assist"],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/mapping-assists/{jobId}/preview":{"post":{"summary":"Run the transform engine with one candidate as a draft rule over the pinned source (`candidate`), or validate the set to propose (`candidates`); both answer `previewDigest`, the digest of `product.cloud/mapping-assist-preview@1` (ADR-0091)","tags":["mapping-assist"],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/mapping-assists/{jobId}/propose":{"post":{"summary":"Propose the reviewer's (possibly edited) candidates as draft rules on the job's transform repository; nothing is merged without review. With `previewDigest`, a proposal whose candidates, validation or base commit differ from the reviewed preview answers 410 PRODUCT-PLAN-STALE (ADR-0091)","tags":["mapping-assist"],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quality/evaluations":{"post":{"summary":"Evaluate a pinned quality-gate policy ({repository, entry[, revision]} or {inline} draft) over a graph-view release and optional base (ADR-0068). Signed in; idempotent by inputs","tags":["quality-gates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quality/evaluations/{id}":{"get":{"summary":"A gate evaluation (product.cloud/job-result@1) with its quality-decision@1 when recorded; owner only, rights re-checked","tags":["quality-gates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quality/evaluations/{id}/findings":{"get":{"summary":"Findings of a gate decision, paged with a sealed cursor (after, limit ≤ 1000)","tags":["quality-gates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quality/evaluations/{id}/approvals":{"post":{"summary":"Approve review findings of a decision {rules, reason}: writers of the policy repository only; erasure, revoked access and blocked rules are never overridable","tags":["quality-gates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quality/policies/validate":{"post":{"summary":"Problems and digest of a draft quality-gate policy; nothing is recorded","tags":["quality-gates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/namespaces":{"post":{"summary":"Claim a personal namespace","tags":["namespaces"],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}}}},"/v1/orgs":{"post":{"summary":"Create an organization (scope repo:admin)","tags":["namespaces"],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string"}},"required":["name"]}}}}}},"/v1/orgs/{org}":{"get":{"summary":"Organization profile and visible repositories","tags":["namespaces"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/orgs/{org}/members":{"get":{"summary":"List members and their roles (members only)","tags":["namespaces"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/orgs/{org}/members/{user}":{"put":{"summary":"Grant a role (owners/admins)","tags":["namespaces"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"user","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","maintainer","member"]}},"required":["role"]}}}},"description":"`user` is a user id or the name of the user's personal namespace."},"delete":{"summary":"Remove a member (owners/admins), or leave the organization","description":"`user` is a user id or the name of the user's personal namespace. Only owners remove owners; the last owner cannot be removed (`PRODUCT-LAST-OWNER`).","tags":["namespaces"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"user","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/orgs/{org}/service-accounts":{"post":{"summary":"Create an organization service account from an Ed25519 public key (owners and admins). Scopes are read-only (repo:read, artifact:read, org:read); the machine authenticates with short-lived self-signed assertions (ADR-0071)","tags":["organizations"],"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"summary":"The organization's service accounts with status, key id, generation and last use (owners and admins)","tags":["organizations"],"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orgs/{org}/service-accounts/{id}":{"delete":{"summary":"Disable a service account; its assertions stop working on the next request","tags":["organizations"],"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}},"patch":{"summary":"Set the account's automation label (`<org>/<name>`), accountable owner (an organization owner) and summary page, shown with every automated post (organization owners; ADR-0101)","tags":["organizations"],"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orgs/{org}/service-accounts/{id}/rotate":{"post":{"summary":"Replace the account's public key; the generation increases and entitled dataset rights regenerate","tags":["organizations"],"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orgs/{org}/service-accounts/{id}/scopes":{"post":{"summary":"Enable or disable write for a service account: `{\"write\": true}` adds repo:write and release:write, usable only on repositories with a publisher grant (organization owners only; ADR-0097)","tags":["organizations"],"parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/repos":{"get":{"summary":"List repositories (public discovery, or ?namespace=)","tags":["repositories"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]},"post":{"summary":"Create a repository (scope repo:write, maintainer)","tags":["repositories"],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"namespace":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["product","classification","mapping","schema","rulepack","connector","asset"]},"access":{"type":"string","enum":["open","restricted","private","federated"]},"description":{"type":"string"},"license":{"type":"string","description":"SPDX expression or LicenseRef-*"}},"required":["namespace","name"]}}}}}},"/v1/repos/{namespace}/{repository}":{"get":{"summary":"Repository with card, contract, tables, latest release, community counts, and the viewer's role","tags":["repositories"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}],"description":"`entitlement.state` comes from the content-access decision point (ADR-0060): `not-required`, `granted` (with `via`: `member`, `entitlement` or `organization`, plus `organization`, `license`, `grantedAt`, `expiresAt`), or for a caller who cannot read content `pending`, `expired`, `revoked`, `rejected`, `withdrawn` or `none`. A lapsed grant is never reported as granted."}},"/v1/repos/{namespace}/{repository}/state":{"get":{"summary":"State token of a repository: changes whenever its own pages would change (cache keys). Without content access, only public changes count (ADR-0055)","tags":["repositories"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/refs":{"get":{"summary":"All refs","tags":["refs"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/refs/heads/{branch}":{"get":{"summary":"One branch","tags":["refs"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]},"patch":{"summary":"Compare-and-set a branch (fast-forward, closure-validated)","tags":["refs"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"description":"Contributors may push only branches named proposal-<user>-…; maintainers any branch. 409 PRODUCT-REF-CONFLICT or PRODUCT-NOT-FAST-FORWARD, 422 PRODUCT-INCOMPLETE-CLOSURE, 428 without precondition.","parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"branch","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":false,"schema":{"type":"string"},"description":"Current target in quotes"},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"},"description":"* to create"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}},"required":["target"]}}}}}},"/v1/repos/{namespace}/{repository}/refs/tags/{tag}":{"get":{"summary":"One tag","tags":["refs"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]},"put":{"summary":"Create an immutable tag (release)","tags":["refs"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"tag","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"string"}},"required":["target"]}}}}}},"/v1/repos/{namespace}/{repository}/objects/missing":{"post":{"summary":"Which digests must be uploaded","tags":["objects"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"digests":{"type":"array","items":{"type":"string"},"maxItems":10000}},"required":["digests"]}}}}}},"/v1/repos/{namespace}/{repository}/objects/{digest}":{"get":{"summary":"Download a verified object","tags":["objects"],"responses":{"200":{"description":"Object bytes","content":{"application/octet-stream":{}}},"304":{"description":"Not modified"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]},"head":{"summary":"Object existence","tags":["objects"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]},"put":{"summary":"Upload an object (body must hash to the digest)","tags":["objects"],"responses":{"200":{"$ref":"#/components/responses/Json"},"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/commits":{"get":{"summary":"First-parent history","tags":["commits"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"heads/main"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/commits/{digest}/artifacts":{"get":{"summary":"Semantic diff and validation artifacts of a commit","tags":["commits"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/products":{"get":{"summary":"Products at a revision (keyset)","tags":["products"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}},{"name":"after","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"brand","in":"query","required":false,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}],"description":"Products of a product repository. Each explorer filter the repository declares in product.yaml (explore.filters, ADR-0057) is a query parameter named by its id; filters combine with AND, and a builtin completeness filter takes a minimum percentage. Without a declaration, `brand` filters by exact brand. The response lists the declared filters with repository-wide value counts under `filters`."}},"/v1/repos/{namespace}/{repository}/products/{identifier}":{"get":{"summary":"One product at a revision, with provenance","tags":["products"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","required":true,"schema":{"type":"string"},"description":"scheme:value, e.g. gtin:04012345678901"},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}},{"name":"include","in":"query","required":false,"schema":{"type":"string"},"description":"`findings`: add `findings` = `{status: pending}` before validation, else `{status: checked, checkedRevision, items[] (≤ 100, keyed to the product or its attributes), complete}`. An absent finding is evidence only when `complete` is true."}],"security":[{},{"bearer":[]}]}},"/v1/products/resolve":{"get":{"summary":"Assertions for an identifier across repositories (no merged record); `identifier.checkDigitValid` for GTINs; `sources[].revision.createdAt`","tags":["products"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"identifier","in":"query","required":false,"schema":{"type":"string"},"description":"gtin:…"},{"name":"asOf","in":"query","required":false,"schema":{"type":"string"},"description":"Spec 0.2 valid time (ADR-0052): an ISO 8601 date or UTC date-time; only values whose valid_from/valid_to include it are compared. Attributes carry their assertion metadata as `meta`."},{"name":"policy","in":"query","required":false,"schema":{"type":"string"},"description":"A named resolution policy (ADR-0006). `authority-rank@1` adds `resolution.properties[]` with the selected and overridden sources and a reason per property; a conflict at the highest authority selects nothing. Without it no preferred value is given. Unknown policies answer 400 `PRODUCT-UNKNOWN-POLICY`."}],"security":[{},{"bearer":[]}]}},"/v1/search":{"get":{"summary":"Search by intent: product.cloud/search@1 (ADR-0089 §3–4)","tags":["products"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"q","in":"query","required":true,"description":"The query (at most 200 characters)","schema":{"type":"string"}},{"name":"class","in":"query","required":false,"description":"Return one class only (for paging)","schema":{"type":"string","enum":["identities","repositories","organizations","guides"]}},{"name":"limit","in":"query","required":false,"description":"Items per class (1–50, default 10)","schema":{"type":"string"}},{"name":"after","in":"query","required":false,"description":"The `next` cursor of a class (sealed; bound to the query)","schema":{"type":"string"}}],"security":[{},{"bearer":[]}],"description":"Classifies the query first (GTIN, ETIM/ECLASS code or IRDI, `mpn:`, `ns/repo[@rev]`, text) and says how (`interpretedAs`, `interpretation`, `notes`). Results come in four classes, each `{items, next?}`: `identities` (products, entities, class codes the caller can read), `repositories`, `organizations` and `guides`. Exact hits come first and are never repeated. Text hits carry `why`; ranking never uses followers. The legacy `results` list is kept for one release. Anonymous answers are cacheable for 60 s. See specs/discovery/0.1."}},"/v1/discovery":{"get":{"summary":"Repositories with explained facets (ADR-0089 §5–6)","description":"The discovery index: open, restricted and federated repositories (never private), filtered with one condition per facet (values OR within a facet, AND across facets). Facet counts carry `unit: \"repositories\"`; a missing declared fact is counted as `not-specified`. Sorts: `relevance` (default with `q`; never followers), `updated` (default otherwise), `name`, `followers` (only when requested). Observed facts (records, latest release, quality) are open-only. `cache-control: public, max-age=60` for anonymous callers. See specs/discovery/0.1.","tags":["repositories"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"q","in":"query","required":false,"description":"Words matched in names, descriptions, the card summary and declared facts","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Repository kind","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"access","in":"query","required":false,"description":"Access mode: open, restricted, federated","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"language","in":"query","required":false,"description":"Declared language (BCP 47) or `not-specified`","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"market","in":"query","required":false,"description":"Declared market (ISO 3166-1 alpha-2, `EU`, `global`) or `not-specified`","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"standard","in":"query","required":false,"description":"Declared standard `scheme@version` or `not-specified`","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"license","in":"query","required":false,"description":"License family: CC-BY, CC-BY-SA, CC-BY-NC, CC-BY-ND, CC0, ODC, LicenseRef, other, unspecified","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"authority","in":"query","required":false,"description":"Declared publisher authority or `not-specified`","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"cadence","in":"query","required":false,"description":"Declared release cadence or `not-specified`","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true},{"name":"freshness","in":"query","required":false,"description":"Latest release within this many days","schema":{"type":"string","enum":["30","90","365"]}},{"name":"sort","in":"query","required":false,"description":"Order of results","schema":{"type":"string","enum":["relevance","updated","name","followers"]}},{"name":"limit","in":"query","required":false,"description":"Items per page (1–100, default 50)","schema":{"type":"string"}},{"name":"after","in":"query","required":false,"description":"The `next` cursor of the previous page (sealed)","schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/changes":{"get":{"summary":"Change feed (opaque cursors, at-least-once)","x-spec-0-2":"Spec 0.2 repositories (ADR-0052): replace and remove events also carry `meaning` (supersede, retract, remove, erase); erase events never carry values; entity `erasure` records erased keys.","tags":["sync"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"description":"410 PRODUCT-CURSOR-GONE with a snapshot recovery hint when the cursor's commit left main's history.","parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"after","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/access-requests":{"get":{"summary":"Access requests (maintainers: all; others: own)","tags":["access"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"summary":"Request access to a restricted repository","tags":["access"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purpose":{"type":"string"},"organization":{"type":"string"},"acceptLicense":{"type":"boolean"},"forOrganization":{"type":"string","description":"Request access for every member of this organization (you must be its owner or admin). Approval grants the organization."}},"required":["purpose","acceptLicense"]}}}}}},"/v1/repos/{namespace}/{repository}/access-requests/{id}/decision":{"post":{"summary":"Approve or reject","tags":["access"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","reject"]},"reason":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}},"required":["decision"]}}}}}},"/v1/repos/{namespace}/{repository}/entitlement":{"get":{"summary":"Caller's access state","tags":["access"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/entitlements":{"get":{"summary":"Personal and organization grants of a restricted repository (maintainers)","tags":["access"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/entitlements/{user}":{"delete":{"summary":"Revoke an entitlement","tags":["access"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"user","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/entitlements/orgs/{organization}":{"put":{"summary":"Grant every member of an organization access (maintainers)","tags":["access"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"organization","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expiresAt":{"type":"string","format":"date-time"}}}}}}},"delete":{"summary":"Revoke an organization's access (maintainers)","tags":["access"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"organization","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/service-grants/{account}":{"put":{"summary":"Grant a service account the publisher role on this repository: upload objects, move main by compare-and-set, create tags and comment, nothing else (owners of the namespace; ADR-0097)","tags":["repositories"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"account","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"summary":"A service account's publisher grant on this repository (owners of the namespace, or the account itself)","tags":["repositories"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"account","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"summary":"Revoke a service account's publisher grant; it takes effect on the next request","tags":["repositories"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"account","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/repos/{namespace}/{repository}/webhooks":{"get":{"summary":"Webhooks","tags":["webhooks"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}]},"post":{"summary":"Create a signed webhook (secret shown once)","tags":["webhooks"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string"},"description":"Event types to deliver, or `*` for all: repo.ref.updated, release.published, access.requested, access.decided, proposal.submitted, proposal.accepted, proposal.changes-requested, proposal.rejected, proposal.withdrawn, proposal.merged, proposal.released, proposal.commented (proposal.opened and proposal.closed, the names before ADR-0090, receive proposal.submitted and proposal.rejected/withdrawn), identity.decision.recorded, identity.entity.merged, identity.entity.split, identity.dispute.opened. Identity events are delivered once per repository with a claim on the affected entities; identifiers are included only for open repositories."}},"required":["url"]}}}}}},"/v1/repos/{namespace}/{repository}/webhooks/{id}":{"delete":{"summary":"Delete a webhook","tags":["webhooks"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/webhooks/{id}/deliveries":{"get":{"summary":"Delivery history","tags":["webhooks"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/webhooks/{id}/deliveries/{delivery}/replay":{"post":{"summary":"Replay a delivery","tags":["webhooks"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"delivery","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/follow":{"put":{"summary":"Follow","tags":["community"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}]},"delete":{"summary":"Unfollow","tags":["community"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/proposals":{"get":{"summary":"Change proposals (newest first; the listed state is the last one recorded)","tags":["community"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","merged","closed","all"]},"description":"Default `open`, or `all` when `state` is given."},{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["checks","in-review","accepted","changes-requested","rejected","withdrawn","closed","merged","released","all"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["claim-correction","mapping-change","extension","usability","all"]}}],"security":[{},{"bearer":[]}]},"post":{"summary":"Open a change proposal for a pushed branch (typed contribution, ADR-0090)","tags":["community"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"branch":{"type":"string"},"type":{"type":"string","enum":["claim-correction","mapping-change","extension","usability"],"description":"Contribution type (ADR-0090 §1); default `extension` for branches, `claim-correction` (product, classification) or `mapping-change` (mapping) for corrections. Unknown: PRODUCT-PROPOSAL-TYPE-UNSUPPORTED (422)."},"evidence":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"ADR-0067 evidence ids (`ev_…`) or https URLs. `claim-correction` and `mapping-change` need evidence or a `testCase` (PRODUCT-PROPOSAL-EVIDENCE-REQUIRED, 422)."},"testCase":{"type":"string","description":"A test case standing in for evidence (e.g. a source and its expected target)."},"attribution":{"type":"string","enum":["public-handle","organization","anonymous"],"description":"How the contribution is credited (ADR-0090 §5); default `public-handle`."},"organization":{"type":"string","description":"With `attribution: organization`: an organization the author belongs to."}},"required":["title","branch"]}}}}}},"/v1/repos/{namespace}/{repository}/proposals/{number}":{"get":{"summary":"Proposal with commits, checks, comments","tags":["community"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}],"description":"Adds `commitDetails[]` (digest, message, author, createdAt), `mergeable`, `mergeBlockedBy` (`checks-pending`, `checks-failed`, `not-open`) and `viewerCanMerge`. A merge can still answer 409 `PRODUCT-NOT-FAST-FORWARD` when main moved."}},"/v1/repos/{namespace}/{repository}/proposals/{number}/comments":{"post":{"summary":"Comment","tags":["community"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"},"target":{"type":"string"}},"required":["body"]}}}}}},"/v1/repos/{namespace}/{repository}/proposals/{number}/merge":{"post":{"summary":"Merge (maintainers): fast-forward main once checks pass and the proposal is accepted (PRODUCT-REVIEW-REQUIRED, PRODUCT-REVIEW-STALE)","tags":["community"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/proposals/{number}/close":{"post":{"summary":"Close: rejected (a maintainer) or withdrawn (the author)","tags":["community"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/repos/{namespace}/{repository}/proposals/{number}/withdraw":{"post":{"summary":"Withdraw (the author)","tags":["community"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/repos/{namespace}/{repository}/proposals/{number}/reviews":{"get":{"summary":"Reviews of a proposal, with the computed state and approvals","tags":["community"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}},"post":{"summary":"Review a proposal (`product.cloud/proposal-review@1`, bound to the current head; ADR-0090 §4)","tags":["community"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["verdict"],"properties":{"verdict":{"type":"string","enum":["approve","request-changes","comment"]},"body":{"type":"string","description":"Review text; the reason of an override."},"override":{"type":"boolean","description":"Owners and admins: an approval that stands in for the required approvals, recorded with its reason. Authors otherwise cannot approve their own proposals (PRODUCT-REVIEW-SELF, 403)."}}}}}}}},"/v1/user/notifications":{"get":{"summary":"Notifications","tags":["user"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"unread","in":"query","required":false,"schema":{"type":"string"}}]}},"/v1/user/notifications/{id}/read":{"post":{"summary":"Mark read","tags":["user"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/v1/user/following":{"get":{"summary":"Followed repositories","tags":["user"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/repos/{namespace}/{repository}/releases":{"get":{"summary":"Releases (tags) with semantic summary, validation, artifacts","tags":["releases"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/classes":{"get":{"summary":"Class hierarchy of a classification repository (full, or the path view with view=path)","tags":["classifications"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}},{"name":"view","in":"query","required":false,"description":"`path`: roots in pages of 200, children only along the path to `open`, `childCount` on every node","schema":{"type":"string","enum":["path"]}},{"name":"open","in":"query","required":false,"description":"Path view: the class whose path is expanded (exact code, else ignoring case)","schema":{"type":"string"}},{"name":"after","in":"query","required":false,"description":"Path view: cursor for the next page of roots (`nextAfter`)","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Path view: return up to 50 classes whose code or label contains this text as `matches`","schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/classes/{code}":{"get":{"summary":"Class detail: labels, parent, children, properties, values","tags":["classifications"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/mappings":{"get":{"summary":"Mappings of a mapping repository","tags":["mappings"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"source","in":"query","required":false,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/rules":{"get":{"summary":"A page of a rulepack's rules at a revision, in key order (content access as for queries; sealed cursor)","tags":["rulepacks"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}},{"name":"after","in":"query","required":false,"description":"Sealed cursor from `next`","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/assets":{"get":{"summary":"A page of an asset repository's files at a revision, each with its rights attestation, its links and a download path (content access as for queries; sealed cursor)","tags":["assets"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}},{"name":"after","in":"query","required":false,"description":"Sealed cursor from `next`","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/quality":{"get":{"summary":"Quality measures, findings, and trend for a revision","tags":["quality"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"}}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/compare":{"get":{"summary":"Semantic diff between two revisions","tags":["sync"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}}],"security":[{},{"bearer":[]}],"description":"Computed at once, without continuation: `returned` events of `total`, and `truncated: true` when `total` exceeds `limit` (`hasMore` is always false). `fromCommit`/`toCommit` carry `createdAt`, `author` and `message`."}},"/v1/me":{"get":{"summary":"The signed-in user and their organizations","tags":["user"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/me/dashboard":{"get":{"summary":"Personal dashboard (UX §25.1)","tags":["user"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/me/notifications":{"get":{"summary":"Notifications (alias of /v1/user/notifications)","tags":["user"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/repos/{namespace}/{repository}/proposals/corrections":{"post":{"summary":"Propose a corrected value (the hub builds the commit, branch, and proposal): product attributes, classification labels, translations and units, or one mapping relation","tags":["community"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title","proposedValue"],"properties":{"title":{"type":"string"},"body":{"type":"string"},"gtin":{"type":"string"},"property":{"type":"string"},"language":{"type":"string"},"proposedValue":{"type":"string"},"unit":{"type":"string"},"evidenceTitle":{"type":"string"},"evidenceUrl":{"type":"string"},"revision":{"type":"string","description":"The digest of main the contributor read (classification and mapping)."},"table":{"type":"string"},"key":{"type":"object","additionalProperties":{"type":"string"},"description":"Every primary-key column of `table`."},"field":{"type":"string"},"currentValue":{"type":"string"},"type":{"type":"string","enum":["claim-correction","mapping-change","extension","usability"],"description":"Contribution type (ADR-0090 §1); default `extension` for branches, `claim-correction` (product, classification) or `mapping-change` (mapping) for corrections. Unknown: PRODUCT-PROPOSAL-TYPE-UNSUPPORTED (422)."},"evidence":{"type":"array","maxItems":20,"items":{"type":"string"},"description":"ADR-0067 evidence ids (`ev_…`) or https URLs. `claim-correction` and `mapping-change` need evidence or a `testCase` (PRODUCT-PROPOSAL-EVIDENCE-REQUIRED, 422)."},"testCase":{"type":"string","description":"A test case standing in for evidence (e.g. a source and its expected target)."},"attribution":{"type":"string","enum":["public-handle","organization","anonymous"],"description":"How the contribution is credited (ADR-0090 §5); default `public-handle`."},"organization":{"type":"string","description":"With `attribution: organization`: an organization the author belongs to."}},"description":"Product repositories: `gtin`, `property`, `language`, `unit`. Classification and mapping repositories: `table`, `key`, `field`, `currentValue`, `revision` (specs/proposals/0.1). A stale `revision` or `currentValue` answers PRODUCT-CORRECTION-STALE (409)."}}}},"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/repos/{namespace}/{repository}/proposals/rule-changes":{"post":{"summary":"Propose transform_rules and transform_lookups upserts on a transform repository; new rules enter as draft (ADR-0036 lifecycle)","tags":["proposals"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/repos/{namespace}/{repository}/query":{"post":{"summary":"Query one canonical table with a constrained AST (keyset pages, scan budget; ADR-0033)","tags":["products"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["table"],"properties":{"table":{"type":"string","description":"A table of the repository's kind, e.g. products, attributes, classes"},"select":{"type":"array","items":{"type":"string"},"minItems":1},"where":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["column","op"],"properties":{"column":{"type":"string"},"op":{"type":"string","enum":["eq","in","prefix","isNull"]},"value":{"description":"A string for eq and prefix, a boolean for isNull"},"values":{"type":"array","items":{"type":"string"},"maxItems":100}}},"maxItems":8},"revision":{"type":"string","description":"Branch, tag, or commit digest; default main"},"after":{"type":"string","description":"Opaque cursor from nextCursor"},"limit":{"type":"integer","minimum":1,"maximum":1000,"default":100}}}}}},"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/dataset":{"get":{"summary":"Browser dataset manifest of an open repository release: tables, columns, and Parquet shard URLs with SHA-256 (ADR-0041)","description":"Only open repositories are datasets; restricted and private repositories answer 403 PRODUCT-DATASET-NOT-PUBLIC. Shard URLs point at the public immutable object domain (range-readable, CORS-enabled). The response is immutable when the revision is a tag or commit.","tags":["products"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string","default":"main"},"description":"Branch, tag, or commit digest"}],"security":[{},{"bearer":[]}]}},"/v1/repos/{namespace}/{repository}/transform":{"get":{"summary":"A transform repository's pins (source, target) and rules at a revision","tags":["transform"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"type":"string"}},{"name":"repository","in":"path","required":true,"schema":{"type":"string"}},{"name":"revision","in":"query","required":false,"schema":{"type":"string"},"description":"Tag, branch, or commit (default main)"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/transform/plans":{"post":{"summary":"Plan a transform: applicable rules, target fields, and expected gaps, as a `transform-plan@1` artifact with its `planDigest` (ADR-0036/0037, ADR-0091)","tags":["transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["source","rules"],"properties":{"source":{"type":"string","description":"Product repository to translate: <namespace>/<repository>[@revision] (default main)"},"rules":{"type":"string","description":"Transform repository: <namespace>/<repository>[@revision]; it pins the target classification release"},"includeDrafts":{"type":"boolean","default":false,"description":"Also apply rules that are not published (previews)"}}}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}],"description":"Answers `{format: \"product.cloud/transform-plan@1\", planDigest, inputs: {source, rules, target, includeDrafts}, irHash, runtime, outputScope, plan}`. Every input is a commit (`product://<namespace>/<repository>@sha256:…`): a revision such as `main`, or a target pin without one, is resolved now and the plan records the commit. `planDigest` is the digest of the canonical artifact without `planDigest` (specs/transform/0.1). A signed-in caller's plan is stored, so `GET /v1/transform/plans/{digest}` and `POST /v1/transform/runs` with `planDigest` find it; an anonymous caller's plan is not stored."}},"/v1/transform/plans/{digest}":{"get":{"summary":"A stored transform plan (`transform-plan@1`). Every input is re-authorized on each read: an input the caller cannot see answers 404 `PRODUCT-PLAN-NOT-FOUND`, a withdrawn input or a vanished commit 410 `PRODUCT-PLAN-STALE`","tags":["transform"],"parameters":[{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/transform/runs":{"post":{"summary":"Run a transform: by the digest of the plan the caller approved (runs exactly its pinned commits), or by source and rules; stores the content-addressed run (report, lineage, target catalog) and returns its report. Repeating a run returns the stored one","tags":["transform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"source":{"type":"string","description":"Product repository to translate: <namespace>/<repository>[@revision] (default main). With `rules`; optional when `planDigest` is given"},"rules":{"type":"string","description":"Transform repository: <namespace>/<repository>[@revision]; it pins the target classification release. With `source`"},"includeDrafts":{"type":"boolean","default":false,"description":"Also apply rules that are not published (previews)"},"planDigest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$","description":"Digest of the approved `transform-plan@1` (from `POST /v1/transform/plans`). Either this, or `source` and `rules`, or all three"}}}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"bearer":[]}],"description":"`{planDigest}` is the bound form (ADR-0091): every input is re-authorized and the planned commits run even if a branch moved since. An input the caller can no longer read, or a commit that is gone, answers 410 `PRODUCT-PLAN-STALE` with `errors.input` naming it. `{planDigest, source, rules}` re-resolves the body and answers 410 when it no longer gives the approved plan (`errors.planDigest` is the plan it gives now). `{source, rules}` alone plans and runs in one step and records `approved: false`; this form is deprecated. The response carries `digest`, `cached`, `report`, `planDigest` and `approved`."},"get":{"summary":"Stored transform runs the caller may read, newest first (exactly one of source or rules)","tags":["transform"],"parameters":[{"name":"source","in":"query","required":false,"schema":{"type":"string"},"description":"Product repository <namespace>/<repository>: runs that translated it"},{"name":"rules","in":"query","required":false,"schema":{"type":"string"},"description":"Transform repository <namespace>/<repository>: runs that applied its rules"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/transform/runs/{digest}":{"get":{"summary":"A stored transform run: report, field lineage, and target catalog. Requires read access to its source, rules, and target","tags":["transform"],"parameters":[{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}],"description":"`datasetAvailable`: whether `GET …/dataset` serves this run to a browser (every input open, ADR-0048)."}},"/v1/transform/runs/{digest}/report":{"get":{"summary":"The report of a stored transform run: counts per loss label, required-field completion, and the reproducibility manifest","tags":["transform"],"parameters":[{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/transform/runs/{digest}/dataset":{"get":{"summary":"A run's output (products, attributes) and lineage as a browser dataset manifest (ADR-0041 shape); only when source, rules, and target are open","tags":["transform"],"parameters":[{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/transform/runs/{digest}/evidence":{"get":{"summary":"The evidence node of one target field of a run (query: gtin, field), for the shared evidence drawer","tags":["evidence"],"parameters":[{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/entities":{"get":{"summary":"The cross-repository entity anchored on an identifier (identity projection, ADR-0039/0044)","tags":["identity"],"parameters":[{"name":"identifier","in":"query","required":true,"schema":{"type":"string"},"description":"gtin:<digits> or mpn:<manufacturer>:<mpn>"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/entities/{id}":{"get":{"summary":"An entity with the identifier claims, links, decisions, disputes, and candidates visible to the caller","tags":["identity"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Entity id (`ent_…`); merged entities redirect"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/entities/{id}/assertions":{"get":{"summary":"Assertions about an entity: raw, per source, or resolved by a named policy; optionally as of a record time","tags":["identity"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Entity id (`ent_…`); merged entities redirect"},{"name":"view","in":"query","required":false,"schema":{"type":"string","enum":["raw","source","resolved"]},"description":"raw, source, or resolved (default; policy authority-rank@1)"},{"name":"asOf","in":"query","required":false,"schema":{"type":"string"},"description":"RFC 3339 record time: each source's main head at that time"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/entities/{id}/evidence":{"get":{"summary":"One field's resolved value under authority-rank@1 and every competing assertion the caller may see, each with an opaque evidence id (ADR-0067 §3). Query: field (required), language, asOf with domain=record","tags":["evidence"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/entities/{id}/decisions":{"get":{"summary":"Identity decisions of the entity's merge group the caller may see (reviewer decisions always, system decisions when their evidence is visible)","tags":["evidence"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/entities/{id}/timeline":{"get":{"summary":"Discrete published events in one time domain (query: domain=record|valid|identity|transform, required; from, to, limit ≤ 500). Never interpolated (ADR-0067 §5)","tags":["evidence"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/evidence/{id}":{"get":{"summary":"One evidence node, re-authorized on every read; status current|superseded|retracted|erased-metadata-only (ADR-0067 §2). Invisible ids answer like unknown ones (404)","tags":["evidence"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/evidence/{id}/trace":{"get":{"summary":"What a value derives from: transform rules, source assertions, verified canonical source rows, identity decisions (depth 1–3, ≤200 nodes per page, sealed `next` cursor)","tags":["evidence"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/identity/candidates":{"get":{"summary":"Possible identity links (shared MPN, equal brand and name); never merged automatically","tags":["identity"],"parameters":[{"name":"entity","in":"query","required":false,"schema":{"type":"string"},"description":"Only candidates involving this entity"},{"name":"limit","in":"query","required":false,"schema":{"type":"string"},"description":"1–200, default 50"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/identity/decisions":{"post":{"summary":"Record a reviewed identity decision (identity reviewers only): merge, split, different_from, same_as, variant_of, package_of, successor_of, reject, or revert","tags":["identity"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action","reason"],"additionalProperties":false,"properties":{"action":{"type":"string","enum":["merge","split","different_from","same_as","variant_of","package_of","successor_of","reject","revert"]},"subject":{"type":"string","description":"Entity id; for merge, the entity merged away"},"object":{"type":"string","description":"Entity id; for merge, the surviving entity"},"decision":{"type":"string","description":"For revert: the decision to revert"},"reason":{"type":"string"},"evidence":{"type":"array","items":{}}}}}}},"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"bearer":[]}]}},"/v1/datasets":{"get":{"summary":"Curated cross-repository datasets with their latest release (ADR-0050)","description":"Each dataset has an open scope built from open repositories only and, for `entitled` definitions, an entitled scope that adds the restricted repositories its selection names (ADR-0062); a caller reads the entitled scope only with access to every one of them. Rows carry `access` (the definition policy), `viewerAccess` (what this caller reads) and `scope`. Datasets are keyed by the stable entity ids of the identity projection (ADR-0039/0045), and published as immutable, content-addressed Parquet releases. Each dataset carries `access` (`open` | `entitled`) and the caller's `scope` (`id`, `kind`, `excluded`, `expiresAt`, `token`); releases are those of the caller's scope.","tags":["datasets"],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/datasets/{dataset}":{"get":{"summary":"A curated dataset: definition (selection, license policy) and every release, newest first","tags":["datasets"],"parameters":[{"name":"dataset","in":"path","required":true,"schema":{"type":"string"},"description":"Curated dataset id, e.g. `electric-motors`"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}],"description":" Each dataset carries `access` (`open` | `entitled`) and the caller's `scope` (`id`, `kind`, `excluded`, `expiresAt`, `token`); releases are those of the caller's scope."}},"/v1/datasets/{dataset}/manifest":{"get":{"summary":"A curated release as a browser dataset: tables, columns, and Parquet shard URLs with SHA-256 (ADR-0041 shape)","description":"`repository` is `datasets/<id>` and `kind` is `dataset`; `commit` and `manifest` are the release manifest's content address. Tables: entities, identifiers, sources, assertions, resolved, classifications. Immutable when a release (or manifest digest) is named; the latest release is cached for a minute. For an `entitled` definition (ADR-0062) the caller reads the entitled scope when they can read every restricted source (membership or entitlement): `access` is `entitled`, shard URLs go through the hub, and the response is `private, no-store`; otherwise the open scope, with `scope.excluded` naming what is missing. `scope=open` forces the open scope. A withdrawn release (erasure) answers `410 PRODUCT-RELEASE-WITHDRAWN` with its `replacement`. A client that sends its last `scope.token` as `x-product-scope` gets a `scopeChange` block (and a purge obligation when rights were lost).","tags":["datasets"],"parameters":[{"name":"dataset","in":"path","required":true,"schema":{"type":"string"},"description":"Curated dataset id, e.g. `electric-motors`"},{"name":"release","in":"query","required":false,"schema":{"type":"string","default":"latest"},"description":"Release name (`1`, `2`, …), manifest digest, or `latest`"},{"name":"scope","in":"query","required":false,"schema":{"type":"string","enum":["open"]},"description":"`open` reads the open scope even when the caller is entitled"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/datasets/{dataset}/changes":{"get":{"summary":"Row changes between graph-view releases of a curated dataset, with cursors (ADR-0059)","description":"Replays the diffs between consecutive releases of the dataset's release chain, oldest first. Each event has `eventId` (digest of `{release, sequence}`), `release`, `sequence`, `orderingKey`, `operation` (e.g. `assertion.supersede`, `resolution.changed`), `op`, `table`, `key`, and `before`/`after`. Start without `after` to replay from an empty view, or with the `barrierCursor` of a release (manifest `dataset.sync`) after loading it as a snapshot. `pending` is true while a release's diff is not recorded yet. A cursor whose release left the history, or whose scope no longer matches the caller, answers `410 PRODUCT-CURSOR-GONE` with `errors.snapshot {revision, releaseId, release, cursor}`. Cursors are bound to the caller's scope and rights: when access to an entitled scope narrows (revocation, expiry), changes, or widens, the cursor answers 410 with `scope {previous, current, change}`, and with `purge {obligation, action: discard-scope, reason, repositories}` when rights were lost.","tags":["datasets"],"parameters":[{"name":"dataset","in":"path","required":true,"schema":{"type":"string"},"description":"Curated dataset id, e.g. `electric-motors`"},{"name":"after","in":"query","required":false,"schema":{"type":"string"},"description":"Opaque cursor (`nextCursor` or a release's `barrierCursor`)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":5000,"default":1000}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/datasets/{dataset}/objects/{digest}":{"get":{"summary":"A curated release object (shard or manifest) by digest, for hubs without a public object domain","tags":["datasets"],"parameters":[{"name":"dataset","in":"path","required":true,"schema":{"type":"string"},"description":"Curated dataset id, e.g. `electric-motors`"},{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}],"description":"Objects of the open scope are public. Objects of an entitled scope are served only to callers who read that scope, with `private, no-store`; for an entitled definition, anonymous callers get 401 and callers without the scope 403 `PRODUCT-DATASET-ENTITLEMENT-REQUIRED`, whether or not the object exists."},"head":{"summary":"Size of a curated release object","tags":["datasets"],"parameters":[{"name":"dataset","in":"path","required":true,"schema":{"type":"string"},"description":"Curated dataset id, e.g. `electric-motors`"},{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}],"description":"Objects of the open scope are public. Objects of an entitled scope are served only to callers who read that scope, with `private, no-store`; for an entitled definition, anonymous callers get 401 and callers without the scope 403 `PRODUCT-DATASET-ENTITLEMENT-REQUIRED`, whether or not the object exists."}},"/v1/receipts":{"post":{"summary":"Store a product.cloud/receipt@1 for its owner. Receipts never contain URLs, tokens or signatures (ADR-0067 §7)","tags":["evidence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/receipts/{digest}":{"get":{"summary":"The owner's receipt; every evidence reference is re-authorized (readable or access-required)","tags":["evidence"],"parameters":[{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/receipts/{digest}/replay":{"get":{"summary":"Whether the receipt can be reproduced now, and the reasons if not (withdrawn, access-required, erased, release-pruned)","tags":["evidence"],"parameters":[{"name":"digest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/recipes":{"get":{"summary":"Public analysis recipes, newest first (ADR-0051)","tags":["recipes"],"parameters":[{"name":"author","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"maximum":100}}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]},"post":{"summary":"Publish a reviewed recipe: SQL on public datasets pinned to immutable revisions","description":"Requires `reviewed: true`. Every dataset must be public (open repository or curated dataset) and pinned; moving revisions answer 422. Recipes never contain local data.","tags":["recipes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["title","sql","datasets","reviewed"],"properties":{"title":{"type":"string","minLength":3,"maxLength":120},"description":{"type":"string","maxLength":2000},"sql":{"type":"string","maxLength":20000},"datasets":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["repository","revision"],"properties":{"repository":{"type":"string","description":"`namespace/repository` of an open repository, or `datasets/<id>`"},"revision":{"type":"string","description":"A release tag or commit digest (repositories), a release name or manifest digest (curated datasets); branches are refused"}}}},"reviewed":{"type":"boolean","description":"Must be true: the author confirms reviewing the SQL and datasets before publishing"}}}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"201":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"bearer":[]}]}},"/v1/recipes/{recipe}":{"get":{"summary":"One recipe; hidden recipes are visible to their author and moderators only","tags":["recipes"],"parameters":[{"name":"recipe","in":"path","required":true,"schema":{"type":"string"},"description":"Recipe id (`rcp_…`)"}],"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{},{"bearer":[]}]}},"/v1/recipes/{recipe}/visibility":{"post":{"summary":"Hide or show a recipe (its author or a moderator)","tags":["recipes"],"parameters":[{"name":"recipe","in":"path","required":true,"schema":{"type":"string"},"description":"Recipe id (`rcp_…`)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["hidden"],"properties":{"hidden":{"type":"boolean"},"reason":{"type":"string"}}}}}},"responses":{"200":{"$ref":"#/components/responses/Json"},"default":{"$ref":"#/components/responses/Problem"}},"security":[{"bearer":[]}]}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Ed25519 access token from https://auth.product.cloud (ADR-0024)"}},"schemas":{"Problem":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"code":{"type":"string","pattern":"^PRODUCT-[A-Z-]+$"},"errors":{}},"required":["type","title","status","code"]}},"responses":{"Json":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}},"Problem":{"description":"Problem details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}