{"openapi":"3.1.0","info":{"title":"er-server","description":"Entity Resolution control + read API. Component schemas are generated from the entity definitions (entities\/*\/entity.yaml) via er-entity-gen; this document is their single serialized form.","license":{"name":"MIT","identifier":"MIT"},"version":"1.0.0"},"paths":{"\/healthz":{"get":{"summary":"liveness","operationId":"get_healthz","responses":{"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"status":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[]}},"\/readyz":{"get":{"summary":"readiness","operationId":"get_readyz","responses":{"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"ready":{},"reason":{},"store":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[]}},"\/v1\/orgs\/{org}":{"get":{"summary":"an org's detail","operationId":"get_orgs_by_org","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrgView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/api-keys":{"get":{"summary":"list the org's API keys","operationId":"get_orgs_by_org_api_keys","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiKeyList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]},"post":{"summary":"mint an API key for the org, returning the plaintext ONCE","operationId":"post_orgs_by_org_api_keys","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["role"],"properties":{"role":{"type":"string"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KeyIssued"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/api-keys\/{key_id}":{"delete":{"summary":"revoke an API key, org-scoped and idempotent","operationId":"delete_orgs_by_org_api_keys_by_key_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/KeyRevoked"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/audit":{"get":{"summary":"an org's audit feed","operationId":"get_orgs_by_org_audit","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"query","description":"Only entries with this action.","required":false,"schema":{"type":"string"}},{"name":"actor","in":"query","description":"Only entries by this actor.","required":false,"schema":{"type":"string"}},{"name":"before_id","in":"query","description":"Keyset cursor: only entries with a smaller id; an integer.","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","description":"`csv` for a text\/csv export; JSON otherwise.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","description":"Inclusive lower bound on the timestamp (any form `timestamptz` accepts).","required":false,"schema":{"type":"string"}},{"name":"until","in":"query","description":"Exclusive upper bound on the timestamp.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/AuditEntry"}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/connections":{"get":{"summary":"list an org's active Salesforce connections","operationId":"get_orgs_by_org_connections","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/SalesforceConnectionItem"}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"register a Salesforce connection","operationId":"post_orgs_by_org_connections","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["name","instance_url","client_id","client_secret"],"properties":{"api_version":{"anyOf":[{"type":"string"},{"type":"null"}]},"auth_kind":{"anyOf":[{"type":"string"},{"type":"null"}]},"client_id":{"type":"string"},"client_secret":{"type":"string"},"instance_url":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"active":{},"api_version":{},"auth_kind":{},"id":{},"instance_url":{},"name":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/connections\/{connection_id}":{"delete":{"summary":"retire a Salesforce connection","operationId":"delete_orgs_by_org_connections_by_connection_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"connection_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Deleted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/connections\/{connection_id}\/writeback-authorization":{"get":{"summary":"a connection's delegated writeback authorization, without tokens","operationId":"get_orgs_by_org_connections_by_connection_id_writeback_authorization","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"connection_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"start delegating Salesforce writeback to a reviewing user","operationId":"post_orgs_by_org_connections_by_connection_id_writeback_authorization","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"connection_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["redirect_uri"],"properties":{"allow_automatic":{"type":"boolean"},"redirect_uri":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WritebackAuthorizationStarted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]},"delete":{"summary":"revoke a connection's delegated writeback authorization","operationId":"delete_orgs_by_org_connections_by_connection_id_writeback_authorization","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"connection_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/connections\/{connection_id}\/writeback-authorization\/complete":{"post":{"summary":"finish a delegated authorization","operationId":"post_orgs_by_org_connections_by_connection_id_writeback_authorization_complete","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"connection_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["state","code"],"properties":{"code":{"type":"string"},"state":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"502":{"$ref":"#\/components\/responses\/Error502"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets":{"get":{"summary":"an org's datasets","operationId":"get_orgs_by_org_datasets","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/DatasetView"}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"create a dataset","operationId":"post_orgs_by_org_datasets","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["name"],"properties":{"config_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"drop_root":{"anyOf":[{"type":"string"},{"type":"null"}]},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"env":{"type":"object","additionalProperties":{"type":"string"}},"name":{"type":"string"},"s3_ingest_bucket":{"anyOf":[{"type":"string"},{"type":"null"}]},"s3_ingest_prefix":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/DatasetProvisioning"},{"$ref":"#\/components\/schemas\/DatasetCreated"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}":{"get":{"summary":"one dataset's detail","operationId":"get_orgs_by_org_datasets_by_ds","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"delete":{"summary":"delete a dataset","operationId":"delete_orgs_by_org_datasets_by_ds","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"job_id":{},"name":{},"purge_after":{},"state":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]},"patch":{"summary":"update a dataset's display fields","operationId":"patch_orgs_by_org_datasets_by_ds","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DatasetView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/assertions":{"get":{"summary":"the assertion ledger","operationId":"get_orgs_by_org_datasets_by_ds_assertions","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The opaque `next_cursor` of the previous page; omit for the first page.","required":false,"schema":{"type":"string"}},{"name":"include_retracted","in":"query","description":"`true` to include retracted assertions.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{}},"next_cursor":{"type":["string","null"]}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"stage an always\/never assertion on a pair","operationId":"post_orgs_by_org_datasets_by_ds_assertions","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["kind","a","b"],"properties":{"a":{"type":"string"},"apply_now":{"type":"boolean"},"b":{"type":"string"},"kind":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/Staged"},{"$ref":"#\/components\/schemas\/StagedApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/assertions\/contradictions":{"get":{"summary":"the unsatisfiable rule sets","operationId":"get_orgs_by_org_datasets_by_ds_assertions_contradictions","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ContradictionList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/assertions\/{assertion_id}":{"delete":{"summary":"stage an assertion retraction","operationId":"delete_orgs_by_org_datasets_by_ds_assertions_by_assertion_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"assertion_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Staged"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/blocking-estimate":{"get":{"summary":"what a run would cost before it runs","operationId":"get_orgs_by_org_datasets_by_ds_blocking_estimate","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"largest","in":"query","description":"How many of the largest blocks to report; an integer.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BlockingEstimate"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/config":{"get":{"summary":"the org's active (published) config","operationId":"get_orgs_by_org_datasets_by_ds_config","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ConfigVersionView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/config\/validate":{"post":{"summary":"validate a candidate config against a dataset without storing it","operationId":"post_orgs_by_org_datasets_by_ds_config_validate","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["yaml"],"properties":{"yaml":{"type":"string"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ConfigValidation"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/config\/versions":{"get":{"summary":"list an org's config versions, newest first","operationId":"get_orgs_by_org_datasets_by_ds_config_versions","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ConfigVersionItem"}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"create a draft config version","operationId":"post_orgs_by_org_datasets_by_ds_config_versions","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["yaml"],"properties":{"yaml":{"type":"string"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ConfigDraftCreated"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/config\/versions\/{version}":{"get":{"summary":"one config version with its `yaml`","operationId":"get_orgs_by_org_datasets_by_ds_config_versions_by_version","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ConfigVersionView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/config\/versions\/{version}\/publish":{"post":{"summary":"publish a draft config version","operationId":"post_orgs_by_org_datasets_by_ds_config_versions_by_version_publish","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ConfigPublished"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/data-quality":{"get":{"summary":"data-quality scores over the org's lake","operationId":"get_orgs_by_org_datasets_by_ds_data_quality","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"stale_days","in":"query","description":"A record not updated in this many days counts as stale; an integer.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DataQuality"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/duplicates":{"get":{"summary":"duplicate groups (entities with >=2 members)","operationId":"get_orgs_by_org_datasets_by_ds_duplicates","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The opaque `next_cursor` of the previous page; omit for the first page.","required":false,"schema":{"type":"string"}},{"name":"snapshot","in":"query","description":"Read at this lake snapshot rather than the latest \u2014 a run's `snapshot`, to read that run's results after a newer run (#1229). An expired snapshot is a 410, never a read of a different one.","required":false,"schema":{"type":"integer"}},{"name":"exclude_tag","in":"query","description":"Exclude groups carrying this tag.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"matched_by","in":"query","description":"Only groups matched by this model version.","required":false,"schema":{"type":"string"}},{"name":"matched_on","in":"query","description":"Only groups whose evidence names this comparison column.","required":false,"schema":{"type":"string"}},{"name":"max_confidence","in":"query","description":"Upper bound on group confidence (0\u2013100); an integer.","required":false,"schema":{"type":"string"}},{"name":"max_members","in":"query","description":"Upper bound on group size; an integer.","required":false,"schema":{"type":"string"}},{"name":"member","in":"query","description":"Jump to the group containing this record key.","required":false,"schema":{"type":"string"}},{"name":"min_confidence","in":"query","description":"Lower bound on group confidence (0\u2013100); an integer.","required":false,"schema":{"type":"string"}},{"name":"min_members","in":"query","description":"Lower bound on group size; an integer.","required":false,"schema":{"type":"string"}},{"name":"tag","in":"query","description":"Only groups carrying this tag.","required":false,"schema":{"type":"string"}},{"name":"verified","in":"query","description":"`true` or `false`: only (un)verified groups.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"410":{"$ref":"#\/components\/responses\/Error410"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/PersonDuplicatesPage"},{"$ref":"#\/components\/schemas\/AccountDuplicatesPage"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/entities\/{entity_id}\/links":{"get":{"summary":"every link touching one entity, from either side","operationId":"get_orgs_by_org_datasets_by_ds_entities_by_entity_id_links","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EntityLinkList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/entity-links":{"post":{"summary":"link two entities WITHOUT merging them","operationId":"post_orgs_by_org_datasets_by_ds_entity_links","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["parent_entity_id","child_entity_id","kind"],"properties":{"child_entity_id":{"type":"string"},"kind":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"parent_entity_id":{"type":"string"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EntityLink"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/entity-links\/{link_id}":{"delete":{"summary":"remove a link","operationId":"delete_orgs_by_org_datasets_by_ds_entity_links_by_link_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"link_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/EntityLinkDeleted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/exports":{"post":{"summary":"export the dataset's golden records or duplicate groups at one pinned snapshot, as one CSV or JSON Lines artifact","operationId":"post_orgs_by_org_datasets_by_ds_exports","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["kind","format"],"properties":{"format":{"type":"string"},"kind":{"type":"string"},"snapshot":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"410":{"$ref":"#\/components\/responses\/Error410"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"export_id":{},"snapshot":{},"state":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/exports\/{export_id}":{"get":{"summary":"one export's state, row count and expiry","operationId":"get_orgs_by_org_datasets_by_ds_exports_by_export_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"export_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"created_at":{},"error_class":{},"expires_at":{},"export_id":{},"finished_at":{},"format":{},"kind":{},"rows":{},"snapshot":{},"state":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/exports\/{export_id}\/download":{"get":{"summary":"download a finished export's artifact","operationId":"get_orgs_by_org_datasets_by_ds_exports_by_export_id_download","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"export_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"410":{"$ref":"#\/components\/responses\/Error410"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response: the export's artifact as an attachment, CSV, JSON Lines or Parquet as the export's `format` says.","content":{"text\/csv":{"schema":{"type":"string","format":"binary"}},"application\/x-ndjson":{"schema":{"type":"string","format":"binary"}},"application\/vnd.apache.parquet":{"schema":{"type":"string","format":"binary"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/extract":{"post":{"summary":"pull an sObject from Salesforce into this dataset","operationId":"post_orgs_by_org_datasets_by_ds_extract","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"job":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/golden-records":{"get":{"summary":"a keyset page of the org's golden (resolved) records","operationId":"get_orgs_by_org_datasets_by_ds_golden_records","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The opaque `next_cursor` of the previous page; omit for the first page.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","description":"Free-text search over the golden record.","required":false,"schema":{"type":"string"}},{"name":"snapshot","in":"query","description":"Read at this lake snapshot rather than the latest \u2014 a run's `snapshot`, to read that run's results after a newer run (#1229). An expired snapshot is a 410, never a read of a different one.","required":false,"schema":{"type":"integer"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"410":{"$ref":"#\/components\/responses\/Error410"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response: an Arrow IPC stream (a schema message, then record batches). Each row is one of the components named in `x-er-arrow-rows`, column for column, decided by the dataset's entity type. An empty page still carries the schema.","headers":{"x-er-next-cursor":{"schema":{"type":"string"},"description":"Pass as `cursor` for the next page. Absent on the last page, which is how a client knows the walk is complete."},"x-er-snapshot":{"schema":{"type":"integer"},"description":"The lake snapshot this page was read at. Every page of one walk carries the same value: the cursor pins it."}},"content":{"application\/vnd.apache.arrow.stream":{"schema":{"type":"string","format":"binary","x-er-arrow-rows":{"oneOf":[{"$ref":"#\/components\/schemas\/GoldenRecord"},{"$ref":"#\/components\/schemas\/AcctGoldenRecord"}]}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/golden-records\/{entity_id}":{"get":{"summary":"one resolved entity with members\/lineage\/events","operationId":"get_orgs_by_org_datasets_by_ds_golden_records_by_entity_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"snapshot","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GoldenDetail"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/golden-records\/{entity_id}\/unmerge":{"post":{"summary":"split members out of a resolved entity","operationId":"post_orgs_by_org_datasets_by_ds_golden_records_by_entity_id_unmerge","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["records"],"properties":{"apply_now":{"type":"boolean"},"records":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/UnmergeStaged"},{"$ref":"#\/components\/schemas\/UnmergeApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/ignore-words":{"get":{"summary":"the org's ignore-words dictionary","operationId":"get_orgs_by_org_datasets_by_ds_ignore_words","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"rows":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"put":{"summary":"replace the org's ignore-words dictionary","operationId":"put_orgs_by_org_datasets_by_ds_ignore_words","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["rows"],"properties":{"rows":{"type":"array","items":{"type":"object","required":["word","dictionary"],"properties":{"dictionary":{"type":"string"},"word":{"type":"string"}}}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"apply_job":{},"rows":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/imports":{"get":{"summary":"ingest-batch receipts","operationId":"get_orgs_by_org_datasets_by_ds_imports","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The opaque `next_cursor` of the previous page; omit for the first page.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"source","in":"query","description":"The source system.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","required":["items","next_cursor"],"properties":{"items":{"type":"array","items":{}},"next_cursor":{"type":["string","null"]}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"upload one source's delivery","operationId":"post_orgs_by_org_datasets_by_ds_imports","parameters":[{"name":"Idempotency-Key","in":"header","description":"Make the request safely retryable: the same key with the same payload returns the original receipt (with `Idempotent-Replayed: true`) and queues nothing; the same key with a different payload is a 409. Scoped to the dataset and source; at most 255 characters.","required":false,"schema":{"type":"string","maxLength":255}},{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"source","in":"query","description":"The source system.","required":false,"schema":{"type":"string"}},{"name":"mode","in":"query","description":"`upsert` (the default and only mode): rows add or replace by record key; nothing the file omits is deleted.","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart\/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"402":{"$ref":"#\/components\/responses\/Error402"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"413":{"$ref":"#\/components\/responses\/Error413"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","headers":{"Idempotent-Replayed":{"schema":{"type":"string"},"description":"`true` when this response replays the receipt of an earlier request with the same Idempotency-Key; absent on a first delivery."}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeliveryAccepted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/imports\/recent":{"get":{"summary":"the most recent ingest-batch receipts","operationId":"get_orgs_by_org_datasets_by_ds_imports_recent","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"source","in":"query","description":"The source system.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ImportReceipt"}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/insights":{"get":{"summary":"the resolution metrics over time","operationId":"get_orgs_by_org_datasets_by_ds_insights","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/InsightSeries"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/insights\/sources":{"get":{"summary":"one run's per-source duplicate attribution","operationId":"get_orgs_by_org_datasets_by_ds_insights_sources","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"run_id","in":"query","description":"The run to report on; the newest when omitted.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SourceInsights"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/jobs":{"get":{"summary":"list an org's jobs, newest first","operationId":"get_orgs_by_org_datasets_by_ds_jobs","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","description":"Only items in this state.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/JobList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"enqueue a job for an org","operationId":"post_orgs_by_org_datasets_by_ds_jobs","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string"},"priority":{"type":"integer"},"segment":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":true},"responses":{"400":{"$ref":"#\/components\/responses\/Error400"},"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Job"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/jobs\/{job_id}":{"get":{"summary":"one job by id","operationId":"get_orgs_by_org_datasets_by_ds_jobs_by_job_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Job"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/jobs\/{job_id}\/cancel":{"post":{"summary":"cancel a job","operationId":"post_orgs_by_org_datasets_by_ds_jobs_by_job_id_cancel","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Job"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/jobs\/{job_id}\/resume":{"post":{"summary":"requeue a failed\/canceled job","operationId":"post_orgs_by_org_datasets_by_ds_jobs_by_job_id_resume","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ResumeAccepted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/jobs\/{job_id}\/tasks":{"get":{"summary":"every try of every task of one job, in topological then try order, archived tries included","operationId":"get_orgs_by_org_datasets_by_ds_jobs_by_job_id_tasks","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/jobs\/{job_id}\/tasks\/{task_id}\/clear":{"post":{"summary":"clear one task and everything downstream of it, so it re-runs WITHOUT re-running the whole job","operationId":"post_orgs_by_org_datasets_by_ds_jobs_by_job_id_tasks_by_task_id_clear","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"resource_class":{"anyOf":[{"type":"string"},{"type":"null"}]},"retries":{"anyOf":[{"type":"integer"},{"type":"null"}]}},"additionalProperties":false}}},"required":false},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ClearAccepted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/labeling\/next":{"get":{"summary":"what to label next","operationId":"get_orgs_by_org_datasets_by_ds_labeling_next","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"max","in":"query","description":"Upper bound on the probability band (0\u20131); a number.","required":false,"schema":{"type":"string"}},{"name":"min","in":"query","description":"Lower bound on the probability band (0\u20131); a number, not below the review floor.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LabelingQueue"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/labels":{"get":{"summary":"the labels a tenant has recorded","operationId":"get_orgs_by_org_datasets_by_ds_labels","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"origin","in":"query","description":"Only labels from this origin (`human`, `reviewer`, `llm`).","required":false,"schema":{"type":"string"}},{"name":"verdict","in":"query","description":"Only labels with this verdict (`match`, `no_match`).","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LabelList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"record a verdict on a pair","operationId":"post_orgs_by_org_datasets_by_ds_labels","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["rec_a_key","rec_b_key","verdict"],"properties":{"model_version":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"rec_a_key":{"type":"string"},"rec_b_key":{"type":"string"},"score_at_label":{"anyOf":[{"type":"number"},{"type":"null"}]},"verdict":{"type":"string"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PairLabel"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/lead-conversions":{"get":{"summary":"a dataset's Lead conversion proposals","operationId":"get_orgs_by_org_datasets_by_ds_lead_conversions","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Only previews in this state.","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The `next_cursor` of the previous page.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items, 1\u2013200; default 50.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LeadConversionPage"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/lead-conversions\/apply":{"post":{"summary":"convert the dataset's approved Leads in Salesforce","operationId":"post_orgs_by_org_datasets_by_ds_lead_conversions_apply","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MergesApplying"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/lead-conversions\/decide":{"post":{"summary":"approve or reject Lead conversions","operationId":"post_orgs_by_org_datasets_by_ds_lead_conversions_decide","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["decision","items"],"properties":{"decision":{"type":"string"},"items":{"type":"array","items":{"type":"object","required":["id","fingerprint"],"properties":{"fingerprint":{"type":"string"},"id":{"type":"string"}},"additionalProperties":false}},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BatchDecisionOut"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/lexicon":{"get":{"summary":"the org's nickname lexicon","operationId":"get_orgs_by_org_datasets_by_ds_lexicon","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Lexicon"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"put":{"summary":"replace the org's nickname lexicon","operationId":"put_orgs_by_org_datasets_by_ds_lexicon","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["pairs"],"properties":{"pairs":{"type":"array","items":{"type":"object","required":["variant_a","variant_b"],"properties":{"variant_a":{"type":"string"},"variant_b":{"type":"string"}}}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LexiconSaved"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/mass-update":{"post":{"summary":"stage golden field overrides across many entities in one window","operationId":"post_orgs_by_org_datasets_by_ds_mass_update","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["items"],"properties":{"apply_now":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","required":["entity_id","attribute"],"properties":{"attribute":{"type":"string"},"clear":{"type":"boolean"},"entity_id":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedBatch"},{"$ref":"#\/components\/schemas\/StagedBatchApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/match-preview":{"get":{"summary":"a READ-ONLY score-only match preview (frontend \u00a77.16, `GET \/v1\/orgs\/{org}\/datasets\/{ds}\/match-preview`)","operationId":"get_orgs_by_org_datasets_by_ds_match_preview","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MatchPreviewView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/match-scores":{"get":{"summary":"active pairwise match scores","operationId":"get_orgs_by_org_datasets_by_ds_match_scores","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"band_high","in":"query","description":"Upper bound on match probability (0\u20131); a number.","required":false,"schema":{"type":"string"}},{"name":"band_low","in":"query","description":"Lower bound on match probability (0\u20131); a number.","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The opaque `next_cursor` of the previous page; omit for the first page.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MatchScoresPage"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-plans":{"get":{"summary":"merge plans for entities touched by a merge\/member-add","operationId":"get_orgs_by_org_datasets_by_ds_merge_plans","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","description":"`csv` for a text\/csv export; JSON otherwise.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"policy","in":"query","description":"The master-election policy (default `most_attributes`).","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","description":"Inclusive lower bound on the timestamp (any form `timestamptz` accepts).","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MergePlanList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-previews":{"get":{"summary":"a page of merge previews","operationId":"get_orgs_by_org_datasets_by_ds_merge_previews","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Only previews in this state.","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The `next_cursor` of the previous page.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items, 1\u2013200; default 50.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MergePreviewPage"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-previews\/apply":{"post":{"summary":"apply the dataset's APPROVED merge previews to Salesforce","operationId":"post_orgs_by_org_datasets_by_ds_merge_previews_apply","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MergesApplying"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-previews\/decide":{"post":{"summary":"approve or reject several merge previews at once","operationId":"post_orgs_by_org_datasets_by_ds_merge_previews_decide","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["decision","items"],"properties":{"decision":{"type":"string"},"items":{"type":"array","items":{"type":"object","required":["id","fingerprint"],"properties":{"fingerprint":{"type":"string"},"id":{"type":"string"}},"additionalProperties":false}},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/MergePreviewSummary"},{"$ref":"#\/components\/schemas\/BatchDecisionOut"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-previews\/generate":{"post":{"summary":"build merge previews from the dataset's latest results","operationId":"post_orgs_by_org_datasets_by_ds_merge_previews_generate","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PreviewsGenerating"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-previews\/{preview_id}":{"get":{"summary":"one merge preview in full, with its history","operationId":"get_orgs_by_org_datasets_by_ds_merge_previews_by_preview_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"preview_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MergePreviewDetail"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-previews\/{preview_id}\/approve":{"post":{"summary":"approve a merge preview","operationId":"post_orgs_by_org_datasets_by_ds_merge_previews_by_preview_id_approve","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"preview_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["fingerprint"],"properties":{"fingerprint":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MergePreviewSummary"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-previews\/{preview_id}\/reject":{"post":{"summary":"reject a merge preview","operationId":"post_orgs_by_org_datasets_by_ds_merge_previews_by_preview_id_reject","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"preview_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["fingerprint"],"properties":{"fingerprint":{"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MergePreviewSummary"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merge-previews\/{preview_id}\/restore":{"get":{"summary":"an applied merge's undo, its steps and conflicts","operationId":"get_orgs_by_org_datasets_by_ds_merge_previews_by_preview_id_restore","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"preview_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"undo an applied merge","operationId":"post_orgs_by_org_datasets_by_ds_merge_previews_by_preview_id_restore","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"preview_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/merges":{"post":{"summary":"merge a GROUP of records from the review dialog","operationId":"post_orgs_by_org_datasets_by_ds_merges","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["records","master"],"properties":{"apply_now":{"type":"boolean"},"master":{"type":"string"},"overrides":{"type":"array","items":{"type":"object","required":["attribute"],"properties":{"attribute":{"type":"string"},"clear":{"type":"boolean"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"records":{"type":"array","items":{"type":"string"}},"review_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedBatch"},{"$ref":"#\/components\/schemas\/StagedBatchApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/metrics":{"get":{"summary":"dashboard counters over the org's lake","operationId":"get_orgs_by_org_datasets_by_ds_metrics","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Metrics"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/models":{"get":{"summary":"the tenant's model versions","operationId":"get_orgs_by_org_datasets_by_ds_models","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"active":{},"items":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/models\/compile":{"post":{"summary":"compile the org's ACTIVE config into a new draft model version","operationId":"post_orgs_by_org_datasets_by_ds_models_compile","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ModelCompiled"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/models\/versions":{"post":{"summary":"mint a new model version","operationId":"post_orgs_by_org_datasets_by_ds_models_versions","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["model_json","model_version_label"],"properties":{"model_json":{"type":"string"},"model_version_label":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"provenance":{"anyOf":[{},{"type":"null"}]},"tf_snapshot_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ModelSummary"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/models\/{name}\/versions\/{version}":{"get":{"summary":"one model version with its document and weights","operationId":"get_orgs_by_org_datasets_by_ds_models_by_name_versions_by_version","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ModelDetail"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/models\/{name}\/versions\/{version}\/activate":{"post":{"summary":"activate a model version","operationId":"post_orgs_by_org_datasets_by_ds_models_by_name_versions_by_version_activate","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"model_hash":{},"name":{},"state":{},"version":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/models\/{name}\/versions\/{version}\/evaluation":{"get":{"summary":"how a model version scored against its own labels","operationId":"get_orgs_by_org_datasets_by_ds_models_by_name_versions_by_version_evaluation","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer"}},{"name":"threshold","in":"query","description":"The cut to evaluate at (0\u20131); the configured auto-merge threshold when omitted.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ModelEvaluation"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/profile":{"get":{"summary":"a corpus stage's profile","operationId":"get_orgs_by_org_datasets_by_ds_profile","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"source","in":"query","description":"The source system.","required":false,"schema":{"type":"string"}},{"name":"subject","in":"query","description":"The corpus stage profiled.","required":false,"schema":{"type":"string"}},{"name":"tier","in":"query","description":"Profile tier, 1 or 2; an integer (default 1).","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Profile"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"profile a corpus stage","operationId":"post_orgs_by_org_datasets_by_ds_profile","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"job":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/quality":{"get":{"summary":"the corpus's data-quality picture","operationId":"get_orgs_by_org_datasets_by_ds_quality","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Quality"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records":{"get":{"summary":"standardized source records by `record_key`","operationId":"get_orgs_by_org_datasets_by_ds_records","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RecordsByKey"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/delete":{"post":{"summary":"delete a record (spec 2.9)","operationId":"post_orgs_by_org_datasets_by_ds_records_delete","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"apply_now":{"type":"boolean"},"record_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_keys":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedRecords"},{"$ref":"#\/components\/schemas\/StagedRecordsApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/ingest":{"post":{"summary":"push records as JSON","operationId":"post_orgs_by_org_datasets_by_ds_records_ingest","parameters":[{"name":"Idempotency-Key","in":"header","description":"Make the request safely retryable: the same key with the same payload returns the original receipt (with `Idempotent-Replayed: true`) and queues nothing; the same key with a different payload is a 409. Scoped to the dataset and source; at most 255 characters.","required":false,"schema":{"type":"string","maxLength":255}},{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["source","records"],"properties":{"mode":{"anyOf":[{"type":"string"},{"type":"null"}]},"records":{"type":"array","items":{}},"source":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"402":{"$ref":"#\/components\/responses\/Error402"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"413":{"$ref":"#\/components\/responses\/Error413"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","headers":{"Idempotent-Replayed":{"schema":{"type":"string"},"description":"`true` when this response replays the receipt of an earlier request with the same Idempotency-Key; absent on a first delivery."}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeliveryAccepted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/protect":{"post":{"summary":"pin a record master for its entity","operationId":"post_orgs_by_org_datasets_by_ds_records_protect","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"apply_now":{"type":"boolean"},"record_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_keys":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedRecords"},{"$ref":"#\/components\/schemas\/StagedRecordsApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/suppress":{"post":{"summary":"exclude a record from golden assembly","operationId":"post_orgs_by_org_datasets_by_ds_records_suppress","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"apply_now":{"type":"boolean"},"record_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_keys":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedRecords"},{"$ref":"#\/components\/schemas\/StagedRecordsApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/undelete":{"post":{"summary":"retract a record deletion","operationId":"post_orgs_by_org_datasets_by_ds_records_undelete","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"apply_now":{"type":"boolean"},"record_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_keys":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedRecords"},{"$ref":"#\/components\/schemas\/StagedRecordsApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/unmatch":{"post":{"summary":"unmatch a record from its current group","operationId":"post_orgs_by_org_datasets_by_ds_records_unmatch","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["record_key"],"properties":{"apply_now":{"type":"boolean"},"record_key":{"type":"string"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/UnmatchStaged"},{"$ref":"#\/components\/schemas\/UnmatchApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/unprotect":{"post":{"summary":"retract a record protection","operationId":"post_orgs_by_org_datasets_by_ds_records_unprotect","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"apply_now":{"type":"boolean"},"record_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_keys":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedRecords"},{"$ref":"#\/components\/schemas\/StagedRecordsApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/unsuppress":{"post":{"summary":"retract a record suppression","operationId":"post_orgs_by_org_datasets_by_ds_records_unsuppress","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"apply_now":{"type":"boolean"},"record_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_keys":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedRecords"},{"$ref":"#\/components\/schemas\/StagedRecordsApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/unverify":{"post":{"summary":"retract a verification","operationId":"post_orgs_by_org_datasets_by_ds_records_unverify","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"apply_now":{"type":"boolean"},"attribute":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_keys":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedRecords"},{"$ref":"#\/components\/schemas\/StagedRecordsApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/records\/verify":{"post":{"summary":"verify records or one cell of them (spec 2.9)","operationId":"post_orgs_by_org_datasets_by_ds_records_verify","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"apply_now":{"type":"boolean"},"attribute":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_key":{"anyOf":[{"type":"string"},{"type":"null"}]},"record_keys":{"type":"array","items":{"type":"string"}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedRecords"},{"$ref":"#\/components\/schemas\/StagedRecordsApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/resolve":{"post":{"summary":"resolve an UNSAVED record against the corpus","operationId":"post_orgs_by_org_datasets_by_ds_resolve","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["source","record"],"properties":{"limit":{"anyOf":[{"type":"integer"},{"type":"null"}]},"record":{},"source":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"413":{"$ref":"#\/components\/responses\/Error413"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ResolveResult"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/resume":{"post":{"summary":"resume a suspended dataset","operationId":"post_orgs_by_org_datasets_by_ds_resume","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"name":{},"state":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/reviews":{"get":{"summary":"the open-review queue","operationId":"get_orgs_by_org_datasets_by_ds_reviews","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The opaque `next_cursor` of the previous page; omit for the first page.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"max_probability","in":"query","description":"Upper bound on match probability (0\u20131); a number.","required":false,"schema":{"type":"string"}},{"name":"min_probability","in":"query","description":"Lower bound on match probability (0\u20131); a number.","required":false,"schema":{"type":"string"}},{"name":"reason","in":"query","description":"Only reviews escalated for this reason.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Only reviews in this status.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReviewPage"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/reviews\/bulk-resolve":{"post":{"summary":"stage many review resolutions in one window","operationId":"post_orgs_by_org_datasets_by_ds_reviews_bulk_resolve","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["items"],"properties":{"apply_now":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","required":["review_id","resolution"],"properties":{"resolution":{"type":"string"},"review_id":{"type":"string"}}}}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/StagedBatch"},{"$ref":"#\/components\/schemas\/StagedBatchApplied"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/reviews\/{review_id}":{"get":{"summary":"one review by id","operationId":"get_orgs_by_org_datasets_by_ds_reviews_by_review_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"review_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReviewItem"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/reviews\/{review_id}\/merge-group":{"get":{"summary":"the review merge dialog's group","operationId":"get_orgs_by_org_datasets_by_ds_reviews_by_review_id_merge_group","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"review_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ReviewMergeGroup"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/reviews\/{review_id}\/resolve":{"post":{"summary":"stage a review resolution","operationId":"post_orgs_by_org_datasets_by_ds_reviews_by_review_id_resolve","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"review_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["resolution"],"properties":{"resolution":{"type":"string"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Staged"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/runs":{"get":{"summary":"the 20 most recent runs","operationId":"get_orgs_by_org_datasets_by_ds_runs","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/RunItem"}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/runs\/{run_id}\/entity-events":{"get":{"summary":"one run's entity events","operationId":"get_orgs_by_org_datasets_by_ds_runs_by_run_id_entity_events","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The opaque `next_cursor` of the previous page; omit for the first page.","required":false,"schema":{"type":"string"}},{"name":"event_type","in":"query","description":"Only events of this type.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RunEventPage"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/s3-ingest":{"get":{"summary":"this tenant's auto-ingest state","operationId":"get_orgs_by_org_datasets_by_ds_s3_ingest","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"bucket":{},"prefix":{},"sources":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/schedules":{"get":{"summary":"list an org's schedules","operationId":"get_orgs_by_org_datasets_by_ds_schedules","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ScheduleItem"}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"create an API-sourced schedule","operationId":"post_orgs_by_org_datasets_by_ds_schedules","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["kind","cron"],"properties":{"cron":{"type":"string"},"kind":{"type":"string"},"params":{"anyOf":[{},{"type":"null"}]}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ScheduleCreated"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/schedules\/{schedule_id}":{"delete":{"summary":"delete a schedule","operationId":"delete_orgs_by_org_datasets_by_ds_schedules_by_schedule_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Deleted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]},"patch":{"summary":"enable\/disable a schedule","operationId":"patch_orgs_by_org_datasets_by_ds_schedules_by_schedule_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ScheduleToggled"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/segments":{"get":{"summary":"the segments the active config declares","operationId":"get_orgs_by_org_datasets_by_ds_segments","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"segments":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/staged":{"get":{"summary":"how many steward actions await the next reconcile","operationId":"get_orgs_by_org_datasets_by_ds_staged","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/StagedCount"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/suspend":{"post":{"summary":"suspend an active dataset","operationId":"post_orgs_by_org_datasets_by_ds_suspend","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{"type":"object","properties":{"name":{},"state":{}}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/taggings":{"get":{"summary":"every tagging of one subject kind in one dataset","operationId":"get_orgs_by_org_datasets_by_ds_taggings","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"subject_type","in":"query","description":"The subject kind (`entity`, `record`, \u2026).","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaggingList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/tags\/{tag_id}\/apply":{"post":{"summary":"apply or remove a tag","operationId":"post_orgs_by_org_datasets_by_ds_tags_by_tag_id_apply","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["subject_type","subject_id"],"properties":{"subject_id":{"type":"string"},"subject_type":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/TagApplied"},{"$ref":"#\/components\/schemas\/TagRemoved"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/tags\/{tag_id}\/subjects":{"get":{"summary":"what carries a tag","operationId":"get_orgs_by_org_datasets_by_ds_tags_by_tag_id_subjects","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items to return; an integer, clamped to the endpoint's range when out of it.","required":false,"schema":{"type":"string"}},{"name":"subject_type","in":"query","description":"The subject kind (`entity`, `record`, \u2026).","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagSubjects"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/tags\/{tag_id}\/unapply":{"post":{"summary":"remove a tag from a subject","operationId":"post_orgs_by_org_datasets_by_ds_tags_by_tag_id_unapply","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["subject_type","subject_id"],"properties":{"subject_id":{"type":"string"},"subject_type":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"anyOf":[{"$ref":"#\/components\/schemas\/TagApplied"},{"$ref":"#\/components\/schemas\/TagRemoved"}]}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/uploads":{"post":{"summary":"open a resumable upload","operationId":"post_orgs_by_org_datasets_by_ds_uploads","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["source","bytes","sha256"],"properties":{"bytes":{"type":"integer"},"sha256":{"type":"string"},"source":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"402":{"$ref":"#\/components\/responses\/Error402"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"410":{"$ref":"#\/components\/responses\/Error410"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/uploads\/{upload_id}":{"get":{"summary":"an upload's state","operationId":"get_orgs_by_org_datasets_by_ds_uploads_by_upload_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"410":{"$ref":"#\/components\/responses\/Error410"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]},"delete":{"summary":"abandon an upload and delete its parts","operationId":"delete_orgs_by_org_datasets_by_ds_uploads_by_upload_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"410":{"$ref":"#\/components\/responses\/Error410"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UploadAborted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/uploads\/{upload_id}\/complete":{"post":{"summary":"finish an upload","operationId":"post_orgs_by_org_datasets_by_ds_uploads_by_upload_id_complete","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"410":{"$ref":"#\/components\/responses\/Error410"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","headers":{"Idempotent-Replayed":{"schema":{"type":"string"},"description":"`true` when this response replays the receipt of an earlier request with the same Idempotency-Key; absent on a first delivery."}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeliveryAccepted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/uploads\/{upload_id}\/parts\/{part}":{"put":{"summary":"store one part","operationId":"put_orgs_by_org_datasets_by_ds_uploads_by_upload_id_parts_by_part","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"upload_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"part","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/octet-stream":{"schema":{"type":"string","format":"binary"}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"410":{"$ref":"#\/components\/responses\/Error410"},"413":{"$ref":"#\/components\/responses\/Error413"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UploadPart"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/upsert-previews":{"get":{"summary":"a dataset's upsert previews","operationId":"get_orgs_by_org_datasets_by_ds_upsert_previews","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Only previews in this state.","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"The `next_cursor` of the previous page.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum items, 1\u2013200; default 50.","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpsertPreviewPage"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/upsert-previews\/apply":{"post":{"summary":"apply the dataset's approved upserts to Salesforce","operationId":"post_orgs_by_org_datasets_by_ds_upsert_previews_apply","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MergesApplying"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/upsert-previews\/decide":{"post":{"summary":"approve or reject upserts","operationId":"post_orgs_by_org_datasets_by_ds_upsert_previews_decide","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["decision","items"],"properties":{"decision":{"type":"string"},"items":{"type":"array","items":{"type":"object","required":["id","fingerprint"],"properties":{"fingerprint":{"type":"string"},"id":{"type":"string"}},"additionalProperties":false}},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/BatchDecisionOut"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/writeback\/auto-approval":{"get":{"summary":"the auto-approval rules in force","operationId":"get_orgs_by_org_datasets_by_ds_writeback_auto_approval","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AutoApprovalList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"put":{"summary":"set the auto-approval rule for one connection's object","operationId":"put_orgs_by_org_datasets_by_ds_writeback_auto_approval","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["connection_id","object","enabled","min_score","max_members"],"properties":{"connection_id":{"type":"string"},"enabled":{"type":"boolean"},"max_members":{"type":"integer"},"min_score":{"type":"number"},"object":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AutoApprovalView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/writeback\/policies":{"get":{"summary":"a dataset's active writeback policies","operationId":"get_orgs_by_org_datasets_by_ds_writeback_policies","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WritebackPolicyList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"put":{"summary":"set the writeback policy for one connection's object","operationId":"put_orgs_by_org_datasets_by_ds_writeback_policies","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["connection_id","object","writeback_allowlist","field_mapping"],"properties":{"connection_id":{"type":"string"},"election_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"field_mapping":{"type":"object","additionalProperties":{"type":"string"}},"object":{"type":"string"},"writeback_allowlist":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WritebackPolicyView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/datasets\/{ds}\/writeback\/upsert-policies":{"get":{"summary":"the upsert policies in force","operationId":"get_orgs_by_org_datasets_by_ds_writeback_upsert_policies","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpsertPolicyList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"put":{"summary":"set the upsert policy for one connection's object","operationId":"put_orgs_by_org_datasets_by_ds_writeback_upsert_policies","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"ds","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["connection_id","object","external_id_field","field_mapping","writeback_allowlist","sources"],"properties":{"connection_id":{"type":"string"},"external_id_field":{"type":"string"},"field_mapping":{"type":"object","additionalProperties":{"type":"string"}},"object":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"writeback_allowlist":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpsertPolicyView"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/tags":{"get":{"summary":"the tenant's tag vocabulary, or the tags on one subject","operationId":"get_orgs_by_org_tags","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"subject_id","in":"query","description":"With `subject_type`: only tags applied to this subject.","required":false,"schema":{"type":"string"}},{"name":"subject_type","in":"query","description":"The subject kind (`entity`, `record`, \u2026).","required":false,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"add a label to the vocabulary","operationId":"post_orgs_by_org_tags","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["name"],"properties":{"apply_min_role":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"409":{"$ref":"#\/components\/responses\/Error409"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Tag"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["steward"]}]}},"\/v1\/orgs\/{org}\/tags\/{tag_id}":{"delete":{"summary":"retire a tag","operationId":"delete_orgs_by_org_tags_by_tag_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TagRetired"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/usage":{"get":{"summary":"the org's usage against its allowance","operationId":"get_orgs_by_org_usage","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"503":{"$ref":"#\/components\/responses\/Error503"},"2XX":{"description":"Successful response. Payload types are described only at envelope granularity.","content":{"application\/json":{"schema":{}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/webhooks":{"get":{"summary":"list an org's active webhooks","operationId":"get_orgs_by_org_webhooks","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/WebhookItem"}}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]},"post":{"summary":"register an outbound webhook","operationId":"post_orgs_by_org_webhooks","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application\/json":{"schema":{"type":"object","required":["url"],"properties":{"events":{"type":"array","items":{"type":"string"}},"secret":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"}}}}},"required":true},"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookCreated"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}},"\/v1\/orgs\/{org}\/webhooks\/deliveries":{"get":{"summary":"the delivery log","operationId":"get_orgs_by_org_webhooks_deliveries","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"webhook_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"422":{"$ref":"#\/components\/responses\/Error422"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookDeliveryList"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/webhooks\/events":{"get":{"summary":"the event types this system can emit","operationId":"get_orgs_by_org_webhooks_events","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEventCatalog"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["viewer"]}]}},"\/v1\/orgs\/{org}\/webhooks\/{webhook_id}":{"delete":{"summary":"delete a webhook","operationId":"delete_orgs_by_org_webhooks_by_webhook_id","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"$ref":"#\/components\/responses\/Error401"},"403":{"$ref":"#\/components\/responses\/Error403"},"404":{"$ref":"#\/components\/responses\/Error404"},"500":{"$ref":"#\/components\/responses\/Error500"},"501":{"$ref":"#\/components\/responses\/Error501"},"2XX":{"description":"Successful response.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Deleted"}}}},"default":{"description":"Application error. Request-extractor or infrastructure rejections may use a different body.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"security":[{"bearerAuth":["admin"]}]}}},"components":{"schemas":{"AccountDuplicateGroup":{"type":"object","description":"One duplicate group in an **account** dataset; the preview is the golden\ncompany name and domain rather than a person's name and email (#1234).","required":["entity_id","member_count","members","member_confidences","model_versions","matched_fields","verified"],"properties":{"company_name":{"type":["string","null"],"description":"The golden record's company name, when assembled."},"domain":{"type":["string","null"],"description":"The golden record's domain, when assembled."},"entity_id":{"type":"string","description":"The resolved entity."},"group_confidence":{"type":["integer","null"],"format":"int64","description":"The group's confidence (0\u2013100), or null when no member edge is scored."},"master_record_key":{"type":["string","null"],"description":"The strongest-attached member, or null when the group is unscored."},"matched_fields":{"type":"array","items":{"type":"string"},"description":"The comparison fields any within-group edge matched on."},"member_confidences":{"type":"object","description":"Each scored member's attachment confidence (0\u2013100), by member key.","additionalProperties":{"type":"integer","format":"int64"},"propertyNames":{"type":"string"}},"member_count":{"type":"integer","format":"int64","description":"How many source records resolved to it."},"members":{"type":"array","items":{"type":"string"},"description":"The member records, as `<source_system>:<source_record_id>`, ordered."},"model_versions":{"type":"array","items":{"type":"string"},"description":"The model versions whose scores link the group, deduplicated."},"verified":{"type":"boolean","description":"Whether a steward asserted or verified the group."}}},"AccountDuplicatesPage":{"type":"object","description":"A page of an account dataset's duplicate groups, at a pinned snapshot.","required":["items","snapshot"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/AccountDuplicateGroup"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"snapshot":{"type":"integer","format":"int64","description":"The lake snapshot every page of this walk reads; the cursor pins it."}}},"AccountGolden":{"type":"object","description":"An account entity's golden record, as of the pinned snapshot.","required":["id","survivorship_version"],"properties":{"addr_city":{"type":["string","null"]},"addr_postal":{"type":["string","null"]},"addr_region":{"type":["string","null"]},"addr_street":{"type":["string","null"]},"company_name":{"type":["string","null"]},"domain":{"type":["string","null"]},"id":{"type":"string"},"metadata":{},"phone_e164":{"type":["string","null"]},"survivorship_version":{"type":"string"}}},"AcctGoldenLineage":{"type":"object","description":"Per-attribute survivorship provenance for a resolved account: which record each surviving value came from.","required":["id","entity_id","attribute","record_key","source_system","source_record_id","rule","survivorship_version","created_at","updated_at"],"properties":{"attribute":{"type":"string","description":"The survivable attribute decided (e.g. company_name, domain, address)."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time (the assembling run's clock; the mart is rebuilt whole)."},"entity_id":{"type":"string","description":"The resolved account this attribute decision belongs to."},"id":{"type":"string","description":"Content-derived row id: sha256('acct_golden_lineage:' || entity_id || ':' || attribute)."},"record_key":{"type":"string","description":"The source record that won the attribute."},"rule":{"type":"string","description":"The survivorship rule that selected this value."},"source_record_id":{"type":"string","description":"Source-native id of the winning record."},"source_system":{"type":"string","description":"Source system of the winning record."},"survivorship_version":{"type":"string","description":"Survivorship policy version that produced this row."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time (equals created_at; the mart is rebuilt whole)."}}},"AcctGoldenRecord":{"type":"object","description":"One resolved account\/organization: the surviving value per attribute, at a snapshot.","required":["id","survivorship_version","assembled_at","created_at","updated_at"],"properties":{"addr_city":{"type":["string","null"],"description":"Surviving city of the address."},"addr_postal":{"type":["string","null"],"description":"Surviving postal code of the address."},"addr_region":{"type":["string","null"],"description":"Surviving region\/state of the address."},"addr_street":{"type":["string","null"],"description":"Surviving street of the address."},"assembled_at":{"type":"string","format":"date-time","description":"Assembly time of this row (volatile)."},"company_name":{"type":["string","null"],"description":"Surviving company name."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time (the assembling run's clock; the mart is rebuilt whole)."},"domain":{"type":["string","null"],"description":"Surviving web domain."},"id":{"type":"string","description":"Persistent entity id (deterministic UUIDv7, minted by reconcile); the survivorship key."},"metadata":{"description":"Surviving opaque per-source metadata object."},"phone_e164":{"type":["string","null"],"description":"Surviving phone number in E.164 form."},"survivorship_version":{"type":"string","description":"Survivorship policy version that produced this row."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time (equals created_at; the mart is rebuilt whole)."}}},"AllowanceSet":{"type":"object","description":"`PATCH \/v1\/orgs\/{org}\/allowance`: the allowance now in force.","required":["name"],"properties":{"name":{"type":"string"},"record_allowance":{"type":["integer","null"],"format":"int64"}}},"ApiKey":{"type":"object","description":"An org-scoped API key: its role and the at-rest hash of the secret.","required":["id","org_id","role","created_at","updated_at"],"properties":{"created_at":{"type":"string","format":"date-time","description":"When the key was issued."},"id":{"type":"string","description":"The key's unique id (UUIDv7, minted at issue)."},"org_id":{"type":"string","description":"The tenant the key authenticates."},"revoked_at":{"type":["string","null"],"format":"date-time","description":"When the key was revoked, if it has been."},"role":{"type":"string","description":"The role the key grants."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."}}},"ApiKeyList":{"type":"object","description":"The org's API keys, newest first, revoked ones included.","required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApiKey"},"description":"Metadata only: the wire form has no `key_hash`, and the plaintext was\nshown once at mint time and is not stored."}}},"AttemptRetried":{"type":"object","description":"A failed attempt's settlement: the archived try and, when the task still\nhas tries left, the queued successor.","required":["archived"],"properties":{"archived":{"$ref":"#\/components\/schemas\/TaskInstance"},"retry":{"oneOf":[{"$ref":"#\/components\/schemas\/TaskInstance"},{"type":"null"}]}}},"AuditEntry":{"type":"object","description":"The audit ledger, newest first (`auth.py` `audit_rows`); `before_id` is the\nkeyset cursor. Optional `org` \/ `action` filters.\n\nReturns `trace_id`, which is the whole point of writing it: the column is the\nJOIN KEY to the span store, and a join key no reader can reach is a column\nthat only looks like attribution. `read\/page.sql` has always projected it and\nthe generated `AuditLog` schema has always declared it \u2014 this projection was\nthe one layer that dropped it, so the OpenAPI document promised a field the\nAPI did not send.\n\nNull for a row no traced request caused, which is permanent for the\ndispatcher's own bookkeeping and a CLI. See `er_obs::identity`.\n\n# Errors\nPropagates the query error.\nOne audit-ledger entry as the audit feeds serve it.","required":["id","at","actor","action","detail"],"properties":{"action":{"type":"string"},"actor":{"type":"string"},"at":{"type":"string","description":"RFC 3339, microseconds."},"dataset":{"type":["string","null"]},"detail":{},"id":{"type":"integer","format":"int64"},"org":{"type":["string","null"]},"trace_id":{"type":["string","null"]}}},"AuditLog":{"type":"object","description":"The append-only audit ledger: one row per authenticated mutation (actor, action, optional org scope, and structured detail). Append-only constrains writes, not lifetime: rows past the deployment retention window (ER_AUDIT_RETENTION_DAYS, floor 400 days per the infra D-RETENTION decision) are retired by the dispatcher's retention sweep through delete\/purge_expired.","required":["id","at","actor","action","detail","created_at","updated_at"],"properties":{"action":{"type":"string","description":"The action name (e.g. steward.mass_update)."},"actor":{"type":"string","description":"The principal that performed the action (the signed-in user's email, or an API key id)."},"at":{"type":"string","format":"date-time","description":"When the audited action occurred."},"created_at":{"type":"string","format":"date-time","description":"Wall-clock creation time (database default; `at` remains the domain event stamp)."},"dataset":{"type":["string","null"],"description":"The dataset the action concerned, by name, when it concerned one \u2014 context, like `org`, not a foreign key (this ledger outlives both)."},"detail":{"description":"Structured detail for the action."},"id":{"type":"integer","format":"int64","description":"Monotonic ledger id (bigserial); the primary key."},"org":{"type":["string","null"],"description":"The tenant the action applies to, if the action is org-scoped."},"trace_id":{"type":["string","null"],"description":"The W3C trace id (32 lowercase hex) of the request that caused this row, when the caller sent one. The JOIN KEY to the span store: spans carry `trace_id`, so this is what turns `which rows did this session write` into `and here is every SQL statement each one ran`. Stored as the bare id rather than the full `traceparent`, because the parent span id is per-hop and would not join. NULL for an unpropagated or non-HTTP caller \u2014 a CLI, the dispatcher's own bookkeeping \u2014 which is a real and permanent case, not a gap to backfill."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (equals created_at; audit rows are append-only)."}}},"AutoApprovalList":{"type":"object","description":"The rules in force.","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/AutoApprovalView"}}}},"AutoApprovalView":{"type":"object","description":"An auto-approval rule revision.","required":["id","connection_id","object","enabled","min_score","max_members","created_by","created_at"],"properties":{"connection_id":{"type":"string"},"created_at":{"type":"string","description":"RFC 3339."},"created_by":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"string","description":"The revision; auto-approved previews name it as `policy:<id>`."},"max_members":{"type":"integer","format":"int64"},"min_score":{"type":"number","format":"double"},"object":{"type":"string"}}},"BatchDecisionOut":{"type":"object","description":"The outcome of a batch decision, item by item.","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#\/components\/schemas\/BatchDecisionResult"}}}},"BatchDecisionResult":{"type":"object","description":"One item of a batch decision.","required":["id","status"],"properties":{"detail":{"type":["string","null"],"description":"Why it was refused, when it was."},"id":{"type":"string"},"preview_status":{"type":["string","null"],"description":"The preview's state after, when decided."},"status":{"type":"integer","format":"int32","description":"The HTTP status the single-item route would have answered.","minimum":0}}},"BlockingEstimate":{"type":"object","description":"What a run would cost, before running it.","required":["total_possible_pairs","candidate_pairs","per_rule","largest_blocks"],"properties":{"candidate_pairs":{"type":"integer","format":"int64","description":"What the declared rules actually generate: the number that decides the\nrun's cost."},"largest_blocks":{"type":"array","items":{"$ref":"#\/components\/schemas\/LargestBlockEstimate"}},"per_rule":{"type":"array","items":{"$ref":"#\/components\/schemas\/BlockingRuleEstimate"}},"total_possible_pairs":{"type":"integer","format":"int64","description":"Every pair the corpus could produce \u2014 what resolution would cost with no\nblocking at all."}}},"BlockingRuleEstimate":{"type":"object","description":"One blocking rule's contribution to the candidate set.","required":["blocking_rule","match_key","marginal_pairs","cumulative_pairs","has_block_breakdown"],"properties":{"blocking_rule":{"type":"string"},"cumulative_pairs":{"type":"integer","format":"int64"},"has_block_breakdown":{"type":"boolean","description":"Whether this rule's largest blocks could be enumerated. False for a rule\ncarrying a filter condition, which has no block breakdown at all.\n\nOn the wire because the alternative is silence: with no flag, a rule\nthat CANNOT be broken down looks exactly like one that was examined and\nfound to have no large blocks, which reads as reassurance about a rule\nnobody measured."},"marginal_pairs":{"type":"integer","format":"int64","description":"Pairs this rule adds that no earlier rule already generated \u2014 the number\nthat says whether the rule is pulling its weight."},"match_key":{"type":"integer","format":"int64"}}},"CandidateKey":{"type":"object","description":"What an equi-join on one column would cost as a blocking key, measured against the corpus rather than inferred from a model. Blocking decides the entire cost of a run, and it is chosen before anything is trained \u2014 so the question has to be answerable with no model at all, which is why these numbers come from a GROUP BY over the data and not from a settings document.","required":["id","profile_run_id","key_columns","row_count","covered_rows","distinct_values","expected_pairs","largest_block_pairs","largest_block_rows","entropy_bits","pair_loss_from_nulls","created_at","updated_at"],"properties":{"covered_rows":{"type":"integer","format":"int64","description":"Rows where every key column is non-null \u2014 the only rows this key can block, because an equality is never true of a NULL."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time."},"distinct_values":{"type":"integer","format":"int64","description":"Distinct key values among the covered rows. The block count: more blocks of fewer rows each is what makes a key cheap."},"entropy_bits":{"type":"number","format":"double","description":"Shannon entropy of the key's value distribution, in bits. In bits so it is directly comparable with the compiler's match-weight scale, which is also in bits \u2014 one unit across both halves of the system."},"expected_pairs":{"type":"integer","format":"int64","description":"Pairs an equi-join on this key generates, exactly: the sum of C(n, 2) over the value groups. For a rule used FIRST, with nothing preceding it to dedup against, this equals the marginal comparison count a trained model's own counter reports \u2014 which is what the engine's golden test asserts, so the cheap path cannot drift from the expensive one."},"id":{"type":"string","description":"Content-derived row id: sha256('candidate_keys:' || profile_run_id || ':' || key_columns)."},"key_columns":{"type":"string","description":"The key's columns, joined by the unit-separator character (chr(31)) \u2014 one name for a single-column key, several for a composite. A delimiter rather than a list because this column is in the natural key, and DuckLake has no list equality to MERGE on; chr(31) specifically because it cannot occur in a column name."},"largest_block_pairs":{"type":"integer","format":"int64","description":"Pairs contributed by the single largest block. The number that catches a key which looks affordable in total and is actually dominated by one value \u2014 the classic shape being a placeholder, where every record with a blank-but-present field lands in one enormous block."},"largest_block_rows":{"type":"integer","format":"int64","description":"Rows in that largest block."},"pair_loss_from_nulls":{"type":"number","format":"double","description":"The share of ALL corpus pairs this key can never reach because one endpoint or the other is NULL: `1 - (covered_rows \/ rows)^2`. The square is the part that surprises people \u2014 a key on a column that is 60% populated reaches only 36% of pairs \u2014 and it is why a cheap key is so often cheap for the wrong reason. Stored beside the cost so the trade is visible rather than implied."},"profile_run_id":{"type":"string","description":"The profile run that measured this key. Named for the relation it points at, per the foreign-key convention; no `references` is declared because DuckLake enforces no foreign keys (V11)."},"row_count":{"type":"integer","format":"int64","description":"Rows in the profiled corpus, carried so `expected_pairs` can be read as a share without a second lookup. Named row_count rather than rows because `rows` is reserved in DuckDB and a column called that cannot be selected unquoted."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time."}}},"CandidateKeyItem":{"type":"object","description":"One measured candidate blocking key, cheapest first.","required":["key_columns","row_count","covered_rows","distinct_values","expected_pairs","largest_block_pairs","largest_block_rows","entropy_bits","pair_loss_from_nulls"],"properties":{"covered_rows":{"type":"integer","format":"int64"},"distinct_values":{"type":"integer","format":"int64"},"entropy_bits":{"type":"number","format":"double"},"expected_pairs":{"type":"integer","format":"int64"},"key_columns":{"type":"array","items":{"type":"string"}},"largest_block_pairs":{"type":"integer","format":"int64"},"largest_block_rows":{"type":"integer","format":"int64"},"pair_loss_from_nulls":{"type":"number","format":"double"},"row_count":{"type":"integer","format":"int64"}}},"ClearAccepted":{"type":"object","description":"A task clear and what each of its arms did: the body of\n`POST \u2026\/jobs\/{job_id}\/tasks\/{task_id}\/clear`. Fields are in the order the\n`json!` object this replaced emitted them, which serde_json sorts.","required":["cleared","demanded_upstream","reopened","reset","restarting","rotated"],"properties":{"cleared":{"type":"array","items":{"type":"string"}},"demanded_upstream":{"type":"array","items":{"type":"string"}},"reopened":{"type":"boolean"},"reset":{"type":"integer","minimum":0},"restarting":{"type":"integer","minimum":0},"rotated":{"type":"integer","minimum":0}}},"ColumnProfile":{"type":"object","description":"One column's shape within one profile run: how full it is, how many distinct values it holds, how long its values are, what types they parse as, and its most frequent values. One row per column rather than per value, because the lake schema language cannot express a partition (there is no partition_by field) and a per-value table would grow with the corpus instead of with the schema.","required":["id","profile_run_id","column_name","row_count","total_row_count","non_null_count","blank_count","distinct_approx","cast_bigint","cast_double","cast_date","cast_timestamp","cast_boolean","created_at","updated_at"],"properties":{"blank_count":{"type":"integer","format":"int64","description":"Rows where the column is present but empty once trimmed. Counted apart from NULL because ingest lands every delivered value as a JSON string, so an empty cell arrives as '' and is not NULL \u2014 a fill rate treating the two alike reports a column as populated when every value in it is blank."},"cast_bigint":{"type":"integer","format":"int64","description":"Non-null values that parse as an integer."},"cast_boolean":{"type":"integer","format":"int64","description":"Non-null values that parse as a boolean."},"cast_date":{"type":"integer","format":"int64","description":"Non-null values that parse as a date. This is the whole of type detection here: ingest stores every delivered value as text, so the declared type says nothing about content and conformance is the only evidence of what a column actually holds."},"cast_double":{"type":"integer","format":"int64","description":"Non-null values that parse as a double."},"cast_timestamp":{"type":"integer","format":"int64","description":"Non-null values that parse as a timestamp."},"column_name":{"type":"string","description":"The profiled column, as named in the corpus stage."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time."},"distinct_approx":{"type":"integer","format":"int64","description":"HyperLogLog estimate of distinct values. Always present because it is cheap, and always approximate: measured on a fixture of 1000 genuinely distinct ids it returns 978, so it is wrong in both directions and must never settle a uniqueness question on its own."},"distinct_exact":{"type":["integer","null"],"format":"int64","description":"Exact distinct count, NULL when it was not requested. The expensive one (a per-column sort), and the only one a uniqueness verdict may be read from."},"distinct_normalized":{"type":["integer","null"],"format":"int64","description":"Exact distinct count after lowercasing, trimming and collapsing internal whitespace; NULL when not requested. Materially below distinct_exact is the signal that a column needs standardizing before it is compared, which is otherwise invisible \u2014 the raw count looks healthy precisely because the variants are counted as distinct values."},"entropy_bits":{"type":["number","null"],"format":"double","description":"Shannon entropy of the value distribution, in bits. Reported in bits so it is directly comparable with the compiler's match-weight scale, which is also in bits \u2014 one unit across both halves of the system. A low value means one or two values dominate, which makes the column a poor blocking key however full it is."},"id":{"type":"string","description":"Content-derived row id: sha256('column_profiles:' || profile_run_id || ':' || column_name)."},"len_avg":{"type":["number","null"],"format":"double","description":"Mean trimmed value length."},"len_max":{"type":["integer","null"],"format":"int64","description":"Longest trimmed value length. A value at a round number here is the signature of upstream truncation."},"len_min":{"type":["integer","null"],"format":"int64","description":"Shortest trimmed value length. NULL for an all-NULL column, where a length has no meaning."},"len_p50":{"type":["integer","null"],"format":"int64","description":"Approximate median trimmed length."},"len_p95":{"type":["integer","null"],"format":"int64","description":"Approximate 95th-percentile trimmed length. Read against len_max it separates a long tail from a single outlier."},"lex_max":{"type":["string","null"],"description":"Lexically largest trimmed value."},"lex_min":{"type":["string","null"],"description":"Lexically smallest trimmed value."},"non_null_count":{"type":"integer","format":"int64","description":"Rows where the column is not NULL."},"num_avg":{"type":["number","null"],"format":"double","description":"Mean of the values that parse as numbers."},"num_max":{"type":["number","null"],"format":"double","description":"Largest value that parses as a number, NULL when none does."},"num_min":{"type":["number","null"],"format":"double","description":"Smallest value that parses as a number, NULL when none does."},"num_std":{"type":["number","null"],"format":"double","description":"Sample standard deviation of the values that parse as numbers. NULL for fewer than two such values, where it is undefined rather than zero."},"profile_run_id":{"type":"string","description":"The profile run this column belongs to. Named for the relation it points at, per the foreign-key convention, but no `references` is declared because DuckLake enforces no foreign keys (V11) and declaring one would claim a guarantee the lake does not provide."},"row_count":{"type":"integer","format":"int64","description":"Rows read for this column (the sampled count when sampling was on)."},"top_values":{"description":"The most frequent values with their counts and shares, bounded to a small k. Bounded because this is a per-column row: an unbounded list would put the corpus inside the profile. NOTE for consumers: these are REAL VALUES \u2014 live emails and phone numbers \u2014 so they are the one field here that carries personal data and must be role-gated before display and never sent to a model."},"total_row_count":{"type":"integer","format":"int64","description":"Rows in the corpus whether or not they were sampled, so a sampled figure can be scaled and labelled honestly."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time."}}},"Completeness":{"type":"object","description":"Golden-record completeness: overall and per survivable column.","required":["overall","by_attribute"],"properties":{"by_attribute":{"type":"object","description":"Non-null fraction per golden column.","additionalProperties":{"type":"number","format":"double"},"propertyNames":{"type":"string"}},"overall":{"type":"number","format":"double"}}},"ConfigDraftCreated":{"type":"object","description":"`POST \u2026\/config\/versions`: the draft just stored.","required":["org","version","config_hash","state"],"properties":{"config_hash":{"type":"string"},"org":{"type":"string"},"state":{"type":"string","description":"Always `draft`."},"version":{"type":"integer","format":"int64"}}},"ConfigPublished":{"type":"object","description":"`POST \u2026\/config\/versions\/{version}\/publish`: what the publish changed and\nqueued.","required":["org","version","changed_blocks","jobs_enqueued","published_by","advisories"],"properties":{"advisories":{"type":"array","items":{"type":"string"},"description":"What the latest profile says about the config that just went live:\nadvice, never a refusal."},"changed_blocks":{"type":"array","items":{"type":"string"}},"jobs_enqueued":{"type":"array","items":{"type":"string"},"description":"The rebuild jobs the tier queued, in order."},"org":{"type":"string"},"published_by":{"type":"string"},"tier":{"type":["string","null"],"description":"The rebuild tier the changed blocks required."},"version":{"type":"integer","format":"int64"}}},"ConfigValidation":{"type":"object","description":"`POST \u2026\/config\/validate`: what publishing this document would do, decided\nwithout storing or publishing anything.","required":["valid","problems","changed_blocks"],"properties":{"changed_blocks":{"type":"array","items":{"type":"string"},"description":"The top-level blocks that differ from the active config."},"config_hash":{"type":["string","null"],"description":"The canonical document's hash, the value a run records as the config\nit executed under; null when the YAML does not load."},"problems":{"type":"array","items":{"type":"string"},"description":"Every reason publish would refuse it, each naming what to change."},"tier":{"type":["string","null"],"description":"The rebuild tier publish would queue (`A`, `B` or `C`), versus the\ndataset's active config; null when nothing that matters changed."},"valid":{"type":"boolean","description":"True when publish would accept the document as written."}}},"ConfigVersion":{"type":"object","description":"A versioned config document for a tenant: its YAML, hash and publish state.","required":["id","org_id","dataset_id","version","yaml","config_hash","state","created_by","created_at","updated_at"],"properties":{"config_hash":{"type":"string","description":"Hash of the canonicalized config."},"created_at":{"type":"string","format":"date-time","description":"When the version was created."},"created_by":{"type":"string","description":"Principal that created the version."},"dataset_id":{"type":"string","description":"The dataset this config version belongs to. Part of the natural key: rows belong to a dataset, not to the org at large."},"id":{"type":"string","description":"The version row's unique id (UUIDv7, minted at draft)."},"org_id":{"type":"string","description":"The tenant this config version belongs to."},"published_at":{"type":["string","null"],"format":"date-time","description":"When the version was published, if it has been."},"state":{"type":"string","description":"Whether the version is a draft or published."},"tier":{"type":["string","null"],"description":"Optional service tier label."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."},"version":{"type":"integer","format":"int64","description":"The monotonic version number within the tenant."},"yaml":{"type":"string","description":"The config document source."}}},"ConfigVersionItem":{"type":"object","description":"One config version in the history list: the view without its YAML.","required":["version","config_hash","state","created_by","created_at"],"properties":{"config_hash":{"type":"string"},"created_at":{"type":"string"},"created_by":{"type":"string"},"published_at":{"type":["string","null"]},"state":{"type":"string"},"tier":{"type":["string","null"]},"version":{"type":"integer","format":"int64"}}},"ConfigVersionView":{"type":"object","description":"JSON of a full config-version detail.\nOne config version with its YAML body.","required":["version","yaml","config_hash","state","created_by","created_at"],"properties":{"config_hash":{"type":"string"},"created_at":{"type":"string"},"created_by":{"type":"string"},"published_at":{"type":["string","null"]},"state":{"type":"string","description":"`draft`, `published` or `superseded`."},"tier":{"type":["string","null"],"description":"The rebuild tier the publish chose; null until published."},"version":{"type":"integer","format":"int64"},"yaml":{"type":"string"}}},"ConfusionMetrics":{"type":"object","description":"Precision, recall, F1 and accuracy from a confusion matrix, or `Null` for any\nratio whose denominator is zero.\n\nNull rather than `0.0`, which is O7a's rule and matters more here than on a\ndashboard tile: a precision of 0.0 says \"the model got every positive wrong\",\nwhile a null says \"it made no positive predictions on this label set\". Those\nare opposite conclusions and a steward acts differently on each.\nA confusion matrix and its rates; a rate is null when its denominator is 0.","required":["tp","fp","fn","tn"],"properties":{"accuracy":{"type":["number","null"],"format":"double"},"f1":{"type":["number","null"],"format":"double","description":"Null when either precision or recall is, rather than 0."},"fn":{"type":"integer","format":"int64","minimum":0},"fp":{"type":"integer","format":"int64","minimum":0},"precision":{"type":["number","null"],"format":"double"},"recall":{"type":["number","null"],"format":"double"},"tn":{"type":"integer","format":"int64","minimum":0},"tp":{"type":"integer","format":"int64","minimum":0}}},"ContradictionItem":{"type":"object","description":"One CONTRADICTION-1 finding: a `never` pair forced together by `always`\nrules, so the next reconcile cannot honour both.","required":["rec_a_key","rec_b_key","never_assertion_id","always_assertion_ids","component"],"properties":{"always_assertion_ids":{"type":"array","items":{"type":"string"},"description":"The `always` rules whose closure joins the pair."},"component":{"type":"array","items":{"type":"string"},"description":"Every record in that `always` closure, ascending."},"never_assertion_id":{"type":"string"},"rec_a_key":{"type":"string"},"rec_b_key":{"type":"string"}}},"ContradictionList":{"type":"object","description":"`GET \u2026\/assertions\/contradictions`: every active contradiction.","required":["contradictions"],"properties":{"contradictions":{"type":"array","items":{"$ref":"#\/components\/schemas\/ContradictionItem"}}}},"CurvePoint":{"allOf":[{"$ref":"#\/components\/schemas\/ConfusionMetrics"},{"type":"object","required":["threshold"],"properties":{"threshold":{"type":"number","format":"double"}}}],"description":"One step of the precision\/recall trade-off curve."},"DataQuality":{"type":"object","description":"`GET \u2026\/data-quality`: the composite score and its four inputs.","required":["dq_score","completeness","junk_rate","stale_rate","duplicate_rate","records","entities","stale_days","snapshot"],"properties":{"completeness":{"$ref":"#\/components\/schemas\/Completeness"},"dq_score":{"type":"number","format":"double","description":"The mean of completeness and the complements of the three rates."},"duplicate_rate":{"type":"number","format":"double"},"entities":{"type":"integer","format":"int64"},"junk_rate":{"type":"number","format":"double"},"records":{"type":"integer","format":"int64"},"snapshot":{"type":"integer","format":"int64"},"stale_days":{"type":"integer","format":"int64"},"stale_rate":{"type":"number","format":"double"}}},"Dataset":{"type":"object","description":"One of a tenant's resolution domains: its own lake location, config pointer, entity type and lifecycle state. The lake env points at a DuckLake catalog of its own (a METADATA_SCHEMA inside the org's metadata database, or a file catalog locally), so two datasets never share tables.","required":["id","org_id","name","entity_type","config_path","env","state","created_at","updated_at"],"properties":{"active_config_version":{"type":["integer","null"],"format":"int64","description":"The currently published config version, if any."},"config_path":{"type":"string","description":"Path to the dataset's config document."},"created_at":{"type":"string","format":"date-time","description":"When the dataset was created."},"display_name":{"type":["string","null"],"description":"Optional human label; the name stays the stable routing handle."},"drop_root":{"type":["string","null"],"description":"Delivery landing directory; one `<source>.csv` per config source."},"entity_type":{"type":"string","description":"The one entity type this dataset's lake resolves. Fixed at creation: the lake's std\/golden tables are per-type, so changing it would orphan the corpus. Publish refuses a config whose entity_type differs."},"env":{"description":"Lake connection env (catalog, catalog schema, data path, config\/model\/TF\/lexicon paths). Handed to the engine verbatim; the derived location keys always win over operator extras."},"id":{"type":"string","description":"The dataset's unique id (UUIDv7, minted at creation)."},"name":{"type":"string","description":"The dataset's name, unique within its org (the routing handle; URLs are name-based, same slug grammar as an org name). The migration sweep names every existing org's one dataset `default`."},"org_id":{"type":"string","description":"The tenant this dataset belongs to."},"s3_ingest_bucket":{"type":["string","null"],"description":"Bucket the auto-ingest poller watches for this dataset. Null means auto-ingest is off \u2014 the feature has to be opted into, because a poller that starts reading a bucket nobody pointed at it would be ingesting data on its own initiative."},"s3_ingest_prefix":{"type":["string","null"],"description":"Key prefix under `s3_ingest_bucket`, with one directory per config source beneath it. A column rather than a key in `env` deliberately, for the same reason as the org's: `env` is handed to the engine subprocess, while this is read by the control plane itself."},"state":{"type":"string","description":"Dataset lifecycle state. The org's own state gates the whole tenant above this."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."}}},"DatasetCreated":{"type":"object","description":"A dataset created directly: `POST \/v1\/orgs\/{org}\/datasets` (201).","required":["name","state"],"properties":{"name":{"type":"string"},"state":{"type":"string"}}},"DatasetProvisioning":{"type":"object","description":"A dataset accepted for provisioning: `POST \/v1\/orgs\/{org}\/datasets` (202).","required":["name","state","job_id"],"properties":{"job_id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"}}},"DatasetUsage":{"type":"object","description":"One dataset's share of an org's usage.","required":["name","records"],"properties":{"name":{"type":"string"},"records":{"type":"integer","format":"int64","description":"Connected records: standardized source records at `snapshot`."},"snapshot":{"type":["integer","null"],"format":"int64","description":"The lake snapshot counted; null for a dataset with no lake yet."}}},"DatasetView":{"type":"object","description":"One dataset: the body of `GET`\/`PATCH \/v1\/orgs\/{org}\/datasets\/{ds}` and an\nitem of `GET \/v1\/orgs\/{org}\/datasets`.","required":["name","entity_type","state","created_at","updated_at"],"properties":{"active_config_version":{"type":["integer","null"],"format":"int64"},"created_at":{"type":"string"},"display_name":{"type":["string","null"]},"entity_type":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"},"updated_at":{"type":"string"}}},"Deleted":{"type":"object","description":"A delete's outcome: false when there was nothing (of this org's) to delete.","required":["deleted"],"properties":{"deleted":{"type":"boolean"}}},"DeliveryAccepted":{"type":"object","description":"`202` from a source delivery: the published delivery and the run queued\nto consume it.","required":["delivery_id","job"],"properties":{"delivery_id":{"type":"string"},"job":{"$ref":"#\/components\/schemas\/Job"}}},"EmailAccepted":{"type":"object","description":"`202` from `POST \/v1\/email`: queued for delivery. Deliberately empty."},"EntityEventItem":{"type":"object","description":"One event in an entity's history.","required":["id","seq","run_id","event_type","details","occurred_at"],"properties":{"details":{},"event_type":{"type":"string"},"id":{"type":"string"},"occurred_at":{"type":"string","description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."},"run_id":{"type":"string"},"seq":{"type":"integer","format":"int64"}}},"EntityLink":{"type":"object","description":"A relationship between two resolved entities that is NOT a merge: a household, a corporate hierarchy, a 'these are related but distinct' note. The product has one answer to 'these two records belong together' \u2014 merge them \u2014 and that answer is wrong for a husband and wife at one address, or a subsidiary and its parent. Merging them loses the distinction and no later run can recover it; refusing to record anything loses the relationship. A link records it without collapsing either side.","required":["id","org_id","dataset_id","parent_entity_id","child_entity_id","kind","origin","created_by","created_at","updated_at"],"properties":{"child_entity_id":{"type":"string","description":"The entity on the member side \u2014 the person in the household, the subsidiary."},"created_at":{"type":"string","format":"date-time","description":"When the link was created."},"created_by":{"type":"string","description":"The actor that created the link."},"dataset_id":{"type":"string","description":"The dataset whose entities this link relates \u2014 entity ids are lake-local."},"id":{"type":"string","description":"The link's unique id (UUIDv7, minted by the application)."},"kind":{"type":"string","description":"What the relationship is. A closed set rather than free text because the whole value of a link is that something downstream can act on it, and an export or a rule cannot act on a spelling. `related` is the deliberate escape hatch for a real relationship that is neither of the other two \u2014 it says 'these are connected, do not merge them' without claiming to know how."},"note":{"type":["string","null"],"description":"Optional free text \u2014 why this link exists, in the words of whoever made it."},"org_id":{"type":"string","description":"The tenant. Every read is scoped by it."},"origin":{"type":"string","description":"Where the link came from. Kept apart for the reason `pair_labels.origin` is: a steward's judgement and a model's suggestion are different evidence, and a surface that cannot tell them apart will present a guess as a decision. `llm` has no producer until an adjudicator can propose a link; it is declared here because the column's accepted values are the contract that producer will be written against."},"parent_entity_id":{"type":"string","description":"The entity on the owning side \u2014 the household, the parent company. Deliberately NOT a foreign key, for the reason `taggings.subject_id` gives: an entity lives in the LAKE and this table is Postgres, so a database-level reference would point at a row this store does not own. The id is stable across runs because reconcile carries ids forward by membership overlap (INV-PERM) rather than re-deriving them, and an entity that loses that contest records `merged_into` \u2014 so a link survives its entity gaining members, and a merged-away side is followable rather than dangling."},"updated_at":{"type":"string","format":"date-time","description":"When it was last changed."}}},"EntityLinkDeleted":{"type":"object","description":"`DELETE \u2026\/entity-links\/{link_id}`: the id of the link removed.","required":["deleted"],"properties":{"deleted":{"type":"string"}}},"EntityLinkList":{"type":"object","description":"`GET \u2026\/entities\/{entity_id}\/links`: the entity's links, either direction.","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/EntityLink"}}}},"EntityMember":{"type":"object","description":"One member record of an entity, with its active steward flags.","required":["source_system","source_record_id","record_key","assigned_at","run_id","protected","verified"],"properties":{"assigned_at":{"type":"string","description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."},"protected":{"type":"boolean","description":"An active `protect` overlay: the record is master for its entity and\ncannot be deleted or unmatch-peeled until unprotected."},"record_key":{"type":"string"},"run_id":{"type":"string"},"source_record_id":{"type":"string"},"source_system":{"type":"string"},"verified":{"type":"boolean","description":"An active whole-row steward verification."}}},"EvaluationCounts":{"type":"object","description":"Which labels the evaluation could and could not use.","required":["labels_for_version","evaluable","no_score","not_a_verdict"],"properties":{"evaluable":{"type":"integer","minimum":0},"labels_for_version":{"type":"integer","minimum":0},"no_score":{"type":"integer","minimum":0},"not_a_verdict":{"type":"integer","minimum":0}}},"GoldenDetail":{"type":"object","description":"`GET \u2026\/golden-records\/{entity_id}`: one resolved entity, snapshot-pinned.","required":["golden","members","lineage","events"],"properties":{"events":{"type":"array","items":{"$ref":"#\/components\/schemas\/EntityEventItem"}},"golden":{"$ref":"#\/components\/schemas\/GoldenRow"},"lineage":{"type":"array","items":{"$ref":"#\/components\/schemas\/LineageItem"}},"members":{"type":"array","items":{"$ref":"#\/components\/schemas\/EntityMember"}}}},"GoldenLineage":{"type":"object","description":"Per-attribute survivorship provenance: which record each surviving golden value came from.","required":["id","entity_id","attribute","record_key","source_system","source_record_id","rule","survivorship_version","created_at","updated_at"],"properties":{"attribute":{"type":"string","description":"The survivable attribute decided (e.g. given_name, email, address)."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time (the assembling run's clock; the mart is rebuilt whole)."},"entity_id":{"type":"string","description":"The resolved entity this attribute decision belongs to."},"id":{"type":"string","description":"Content-derived row id: sha256('golden_lineage:' || entity_id || ':' || attribute)."},"record_key":{"type":"string","description":"The source record that won the attribute."},"rule":{"type":"string","description":"The survivorship rule that selected this value."},"source_record_id":{"type":"string","description":"Source-native id of the winning record."},"source_system":{"type":"string","description":"Source system of the winning record."},"survivorship_version":{"type":"string","description":"Survivorship policy version that produced this row."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time (equals created_at; the mart is rebuilt whole)."}}},"GoldenRecord":{"type":"object","description":"One resolved person: the surviving value per attribute, at a snapshot.","required":["id","survivorship_version","assembled_at","created_at","updated_at"],"properties":{"addr_city":{"type":["string","null"],"description":"Surviving city of the address."},"addr_number":{"type":["string","null"],"description":"Surviving street number of the address."},"addr_postal":{"type":["string","null"],"description":"Surviving postal code of the address."},"addr_region":{"type":["string","null"],"description":"Surviving region\/state of the address."},"addr_street":{"type":["string","null"],"description":"Surviving street name of the address."},"addr_unit":{"type":["string","null"],"description":"Surviving unit\/apartment of the address."},"assembled_at":{"type":"string","format":"date-time","description":"Assembly time of this row (volatile; excluded from determinism comparisons)."},"birth_date":{"type":["string","null"],"format":"date","description":"Surviving birth date."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time (the assembling run's clock; the mart is rebuilt whole)."},"email":{"type":["string","null"],"description":"Surviving email address."},"family_name":{"type":["string","null"],"description":"Surviving family name."},"given_name":{"type":["string","null"],"description":"Surviving given name."},"id":{"type":"string","description":"Persistent entity id (deterministic UUIDv7, minted by reconcile); the survivorship key."},"metadata":{"description":"Surviving opaque per-source metadata object."},"phone_e164":{"type":["string","null"],"description":"Surviving phone number in E.164 form."},"survivorship_version":{"type":"string","description":"Survivorship policy version that produced this row."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time (equals created_at; the mart is rebuilt whole)."}}},"GoldenRow":{"oneOf":[{"$ref":"#\/components\/schemas\/PersonGolden"},{"$ref":"#\/components\/schemas\/AccountGolden"}],"description":"The golden record of whichever entity type the dataset resolves."},"ImportReceipt":{"type":"object","description":"One ingest-batch receipt: what a delivery did to the corpus.","required":["id","run_id","source_system","path","new_count","changed_count","unchanged_count","tombstone_count","resurrected_count","full_refresh_keys","created_at"],"properties":{"changed_count":{"type":"integer","format":"int64"},"created_at":{"type":"string","description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."},"full_refresh_keys":{"type":"boolean"},"id":{"type":"string"},"matched_count":{"type":["integer","null"],"format":"int64"},"new_count":{"type":"integer","format":"int64"},"path":{"type":"string"},"resurrected_count":{"type":"integer","format":"int64"},"review_count":{"type":["integer","null"],"format":"int64"},"run_id":{"type":"string"},"screened_at":{"type":["string","null"],"description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."},"source_system":{"type":"string"},"tombstone_count":{"type":"integer","format":"int64"},"unchanged_count":{"type":"integer","format":"int64"},"unmatched_count":{"type":["integer","null"],"format":"int64"}}},"IngestBatch":{"type":"object","description":"One delivery receipt (S4.1): per-source landing counts for a batch, including tombstones and resurrections.","required":["id","run_id","source_system","path","new_count","changed_count","unchanged_count","tombstone_count","resurrected_count","full_refresh_keys","created_at","updated_at"],"properties":{"changed_count":{"type":"integer","format":"int64","description":"Rows superseding a key with new content."},"created_at":{"type":"string","format":"date-time","description":"Creation stamp (the run's logical timestamp)."},"full_refresh_keys":{"type":"boolean","description":"Whether the delivery tombstoned omitted keys."},"id":{"type":"string","description":"The delivery batch's unique id (caller-supplied per delivery)."},"matched_count":{"type":["integer","null"],"format":"int64","description":"Screening (E9b): delivered records that joined an existing entity \u2014 their best active score reached `thresholds.auto_merge`. NULL means the delivery was never screened, which is the honest answer for a run that scored nothing (a correction pass, or a rebuild with `skip_ingest`); 0 means it was screened and nothing matched."},"new_count":{"type":"integer","format":"int64","description":"Rows landing a brand-new key."},"path":{"type":"string","description":"The delivered file's path."},"resurrected_count":{"type":"integer","format":"int64","description":"Previously tombstoned keys that returned."},"review_count":{"type":["integer","null"],"format":"int64","description":"Screening (E9b): delivered records whose best active score landed in the gray band \u2014 at or above `review_low` but below `auto_merge`. These are the ones a steward has to decide."},"run_id":{"type":"string","description":"The run that wrote this row."},"screened_at":{"type":["string","null"],"format":"date-time","description":"When the delivery was screened, NULL if it was not. Separate from the counts so that `screened with everything unmatched` (counts 0\/0\/N) is distinguishable from `never screened` (all NULL) without reading three columns."},"source_system":{"type":"string","description":"The delivering source system."},"tombstone_count":{"type":"integer","format":"int64","description":"Keys tombstoned by a full refresh."},"unchanged_count":{"type":"integer","format":"int64","description":"Rows matching the key's current content."},"unmatched_count":{"type":["integer","null"],"format":"int64","description":"Screening (E9b): delivered records with no active score reaching `review_low` \u2014 genuinely new as far as the model can tell."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time. Receipts were written once until E9b; the screening pass now updates the row after the match stage, because the verdicts do not exist until the run has scored."}}},"InsightPoint":{"type":"object","description":"One retained metric snapshot, with the rates derived from it.","required":["run_id","captured_at","records","entities","duplicate_records","duplicate_groups","largest_group","review_backlog","auto_merge_pairs","review_band_pairs"],"properties":{"auto_merge_pairs":{"type":"integer","format":"int64"},"captured_at":{"type":"string","description":"chrono's display form (`YYYY-MM-DD HH:MM:SS[.f] UTC`)."},"duplicate_groups":{"type":"integer","format":"int64"},"duplicate_rate":{"type":["number","null"],"format":"double","description":"Duplicate records over records; null for an empty corpus."},"duplicate_records":{"type":"integer","format":"int64"},"entities":{"type":"integer","format":"int64"},"largest_group":{"type":"integer","format":"int64"},"records":{"type":"integer","format":"int64"},"records_per_entity":{"type":["number","null"],"format":"double","description":"Records over entities; null when there are none."},"review_backlog":{"type":"integer","format":"int64"},"review_band_pairs":{"type":"integer","format":"int64"},"run_id":{"type":"string"}}},"InsightSeries":{"type":"object","description":"`GET \u2026\/insights`: the retained metric series, newest first.","required":["snapshot","series"],"properties":{"series":{"type":"array","items":{"$ref":"#\/components\/schemas\/InsightPoint"}},"snapshot":{"type":"integer","format":"int64"}}},"Job":{"type":"object","description":"A unit of work on the dispatcher's queue: its kind, params, lifecycle state and retry bookkeeping.","required":["id","org_id","kind","params","state","priority","attempt","max_attempts","created_at","updated_at"],"properties":{"attempt":{"type":"integer","format":"int64","description":"Attempts made so far."},"clear_number":{"type":["integer","null"],"format":"int64","description":"Incremented by every clear; fences readiness verdicts composed before the clear. Read as COALESCE(clear_number, 0)."},"created_at":{"type":"string","format":"date-time","description":"When the job was enqueued."},"created_by":{"type":["string","null"],"description":"Principal that created the job."},"dataset_id":{"type":["string","null"],"description":"The dataset this job runs against. NULL only for org-level kinds (provision) \u2014 every lake-touching job carries it, and the per-dataset writer lock keys on it once the queue is re-scoped."},"error_class":{"type":["string","null"],"description":"Why the job failed, as a class the UI can act on: precondition (an input is missing \u2014 expected during onboarding), transient_io (worth retrying), config (the tenant config is wrong), internal (a bug). Null until a failure."},"error_detail":{"type":["string","null"],"description":"The failure's human text, already chain-flattened. Kept beside error_class so a steward sees the reason without reading pod logs."},"finished_at":{"type":["string","null"],"format":"date-time","description":"When the job finished."},"id":{"type":"string","description":"The job's unique id (UUIDv7, minted at enqueue)."},"idempotency_key":{"type":["string","null"],"description":"Optional dedup key, unique per org."},"image_digest":{"type":["string","null"],"description":"Image digest the planning dispatcher ran, so a deploy mid-run is legible."},"kind":{"type":"string","description":"The job kind (run_all, correct, maintain, train, ...)."},"max_attempts":{"type":"integer","format":"int64","description":"Vestigial: no statement consults it. It bounded the job-level retry that went with the legacy in-process arm (#645); the live budget is task_instances.max_tries, per attempt."},"not_before":{"type":["string","null"],"format":"date-time","description":"Earliest time the job may be claimed. A retry sets it to the backoff deadline."},"org_id":{"type":"string","description":"The tenant this job runs for."},"owner_epoch":{"type":["string","null"],"description":"The dispatcher process epoch that planned or adopted the run."},"params":{"description":"Kind-specific parameters."},"policy_hash":{"type":["string","null"],"description":"sha256 over the compiled DAG's per-node policy (retries, backoff, timeout, class, segment); a divergence proceeds with the diff logged."},"priority":{"type":"integer","format":"int64","description":"Claim priority; higher runs first."},"resource_class":{"type":["string","null"],"description":"Requested runner resource class."},"run_id":{"type":["string","null"],"description":"The run this job produced, once dispatched."},"schedule_id":{"type":["string","null"],"description":"The schedule that enqueued the job, if any."},"started_at":{"type":["string","null"],"format":"date-time","description":"When the job started running."},"state":{"type":"string","description":"Lifecycle state (queued, dispatching, running, succeeded, failed, canceling, canceled)."},"structural_fingerprint":{"type":["string","null"],"description":"sha256 over the compiled DAG's shape (names, versions, edges, trigger rules), written at planning; a clear or adoption refuses on mismatch (batch-orchestration-design \u00a73.4)."},"trace_context":{"type":["string","null"],"description":"Propagated trace context."},"updated_at":{"type":"string","format":"date-time","description":"When the job row was last updated."}}},"JobList":{"type":"object","description":"One dataset's jobs, newest first: the body of `GET \u2026\/jobs`.","required":["jobs"],"properties":{"jobs":{"type":"array","items":{"$ref":"#\/components\/schemas\/Job"}}}},"KeyIssued":{"type":"object","description":"`POST \/v1\/orgs\/{org}\/api-keys`: the new key. `key` is the plaintext, shown\nexactly once; only its hash is stored.","required":["id","key","role"],"properties":{"id":{"type":"string"},"key":{"type":"string"},"role":{"type":"string"}}},"KeyRevoked":{"type":"object","description":"`DELETE \/v1\/orgs\/{org}\/api-keys\/{key_id}`: whether a live key was revoked.","required":["revoked"],"properties":{"revoked":{"type":"boolean"}}},"LabelBand":{"type":"object","description":"The gray band a labelling page was drawn from.","required":["min","max"],"properties":{"max":{"type":"number","format":"double"},"min":{"type":"number","format":"double"}}},"LabelCoverage":{"type":"object","description":"How much labelled signal a tenant has, split by verdict and origin.","required":["total","matches","non_matches","by_origin"],"properties":{"by_origin":{"$ref":"#\/components\/schemas\/LabelOrigins"},"matches":{"type":"integer","minimum":0},"non_matches":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}}},"LabelEvaluation":{"type":"object","description":"A model version scored against the tenant's own labels.","required":["model_version_label","threshold","counts","overall","by_origin","curve"],"properties":{"by_origin":{"type":"object","description":"Per label origin that has any evaluable label.","additionalProperties":{"$ref":"#\/components\/schemas\/ConfusionMetrics"},"propertyNames":{"type":"string"}},"counts":{"$ref":"#\/components\/schemas\/EvaluationCounts"},"curve":{"type":"array","items":{"$ref":"#\/components\/schemas\/CurvePoint"}},"model_version_label":{"type":"string"},"overall":{"$ref":"#\/components\/schemas\/ConfusionMetrics"},"threshold":{"type":"number","format":"double"}}},"LabelList":{"type":"object","description":"`GET \u2026\/labels`: the recorded labels, newest first.","required":["labels"],"properties":{"labels":{"type":"array","items":{"$ref":"#\/components\/schemas\/PairLabel"}}}},"LabelOrigins":{"type":"object","description":"How many labels a tenant has, by origin.","required":["human","reviewer","llm"],"properties":{"human":{"type":"integer","minimum":0},"llm":{"type":"integer","minimum":0},"reviewer":{"type":"integer","minimum":0}}},"LabelingQueue":{"type":"object","description":"`GET \u2026\/labeling\/next`: the next uncertain pairs and the coverage so far.","required":["items","snapshot","threshold","band","coverage"],"properties":{"band":{"$ref":"#\/components\/schemas\/LabelBand"},"coverage":{"$ref":"#\/components\/schemas\/LabelCoverage"},"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/UncertainPair"}},"snapshot":{"type":"integer","format":"int64"},"threshold":{"type":"number","format":"double","description":"The `auto_merge` threshold the pairs are ordered around."}}},"LargestBlockEstimate":{"type":"object","description":"A blocking key whose block is large enough to dominate a run.","required":["match_key","key_values","pairs","rows"],"properties":{"key_values":{"type":"array","items":{"type":"string"}},"match_key":{"type":"integer","format":"int64","description":"Which rule this block belongs to, since every rule is now broken down\nrather than only the first."},"pairs":{"type":"integer","format":"int64","description":"The pairs a run SCORES in this block, under this model's link type."},"rows":{"type":"integer","format":"int64","description":"Rows carrying this key value. Reported beside the pairs because the two\nanswer different questions \u2014 how much work, and how lopsided the data \u2014\nand because `pairs` is quadratic in `rows`, which is the whole reason one\nvalue can dominate a run."}}},"LeadConversionPage":{"type":"object","description":"A page of Lead conversion proposals.","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/LeadConversionView"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last."}}},"LeadConversionView":{"type":"object","description":"A proposed Lead conversion.","required":["id","connection_id","entity_id","lead_external_id","lead_record_key","contact_external_id","contact_record_key","fingerprint","status","created_at"],"properties":{"account_id":{"type":["string","null"],"description":"The Account the Lead converted into."},"apply_detail":{"type":["string","null"]},"apply_status":{"type":["string","null"],"description":"The apply, once begun: `applying`, `converted`, `converted_externally`,\n`failed` or `skipped_stale`."},"connection_id":{"type":"string"},"contact_external_id":{"type":"string","description":"The Contact it converts into."},"contact_record_key":{"type":"string"},"created_at":{"type":"string","description":"RFC 3339."},"decided_by":{"type":["string","null"]},"entity_id":{"type":"string"},"fingerprint":{"type":"string","description":"Name it to approve or reject."},"id":{"type":"string"},"lead_external_id":{"type":"string","description":"The Lead's Salesforce id and record key."},"lead_record_key":{"type":"string"},"status":{"type":"string","description":"`planned`, `approved`, `rejected` or `superseded`."}}},"Lexicon":{"type":"object","description":"`GET \u2026\/lexicon`: the dataset's nickname pairs.","required":["pairs"],"properties":{"pairs":{"type":"array","items":{"$ref":"#\/components\/schemas\/LexiconPair"}}}},"LexiconPair":{"type":"object","description":"One nickname equivalence: either variant standardizes to the other. The\nsame shape in both directions (`PUT` body and responses).","required":["variant_a","variant_b"],"properties":{"variant_a":{"type":"string"},"variant_b":{"type":"string"}}},"LexiconSaved":{"type":"object","description":"`PUT \u2026\/lexicon`: the saved pairs and the full rebuild they queued.","required":["pairs","apply_job"],"properties":{"apply_job":{"type":"string","description":"The `run_all_full` job that re-standardizes with the new pairs."},"pairs":{"type":"array","items":{"$ref":"#\/components\/schemas\/LexiconPair"}}}},"LineageItem":{"type":"object","description":"Which member supplied one golden attribute, and by which survivorship rule.","required":["attribute","record_key","source_system","source_record_id","rule"],"properties":{"attribute":{"type":"string"},"record_key":{"type":"string"},"rule":{"type":"string"},"source_record_id":{"type":"string"},"source_system":{"type":"string"}}},"MatchPreviewView":{"type":"object","description":"`GET \u2026\/match-preview`: what the active model would do to the current lake.","required":["total","would_auto_merge","would_review","sample"],"properties":{"sample":{"type":"array","items":{"$ref":"#\/components\/schemas\/PreviewPairView"}},"total":{"type":"integer","minimum":0},"would_auto_merge":{"type":"integer","minimum":0},"would_review":{"type":"integer","minimum":0}}},"MatchScoresPage":{"type":"object","description":"A page of active pairwise match scores, at a pinned snapshot.","required":["items","snapshot"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/ScoredPair"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"snapshot":{"type":"integer","format":"int64","description":"The lake snapshot every page of this walk reads; the cursor pins it."}}},"MatchingModel":{"type":"object","description":"An immutable version of a tenant's matching model: the settings document the engine scores against, its hash, provenance and activation state.","required":["id","org_id","dataset_id","name","version","entity_type","model_json","model_hash","model_version_label","state","provenance","created_by","created_at","updated_at"],"properties":{"activated_at":{"type":["string","null"],"format":"date-time","description":"When this version was activated, if it ever was."},"created_at":{"type":"string","format":"date-time","description":"When the version was created."},"created_by":{"type":"string","description":"Principal that created the version."},"dataset_id":{"type":"string","description":"The dataset whose corpus this model was trained for."},"entity_type":{"type":"string","description":"Which canonical schema the model scores against; a model cannot be activated for a lake of the other entity type."},"id":{"type":"string","description":"The version row's unique id (UUIDv7, minted when the version is created)."},"model_hash":{"type":"string","description":"SHA-256 of model_json, so a scored row can be tied back to the exact document that produced it."},"model_json":{"type":"string","description":"The settings document the engine loads (comparison levels, their SQL, m\/u probabilities, blocking rules). Stored as text, not jsonb, so it round-trips byte-exact \u2014 model_hash is taken over these bytes and the engine's determinism depends on them."},"model_version_label":{"type":"string","description":"The identity stamped onto every row this model scores (match_scores.model_version, runs.model_version). It is NOT the version number: it must equal the model_version the frozen term-frequency snapshot CSV is keyed by, because the TF lookup joins on (model_version, tf_snapshot_id) and a mismatch silently returns no term frequencies \u2014 changing a pair's score rather than failing. Seeded from the org's ER_MODEL_VERSION; required when uploading a model, for the same reason."},"name":{"type":"string","description":"The model's name within the tenant; versions are monotonic within a name, so one tenant can keep several models (a classic rule model beside a trained one) and switch between them."},"org_id":{"type":"string","description":"The tenant this model version belongs to."},"provenance":{"description":"Where this version came from: the seeded starter file, a training run (corpus digest, args, seed), an authored upload, or the version it was derived from."},"state":{"type":"string","description":"Draft until activated; exactly one version of a name is active at a time, and activating the next archives the previous. There is deliberately no partial unique index enforcing that: a single UPDATE that moves both rows can transiently violate a non-deferrable unique index even when the end state is legal, so activation is instead one atomic statement that cannot produce two actives, and the active read orders by version so a hypothetical second one could never be served silently."},"tf_snapshot_id":{"type":["string","null"],"description":"The frozen term-frequency snapshot this model scores against, when it has one. Paired with model_version_label by the TF lookup."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."},"version":{"type":"integer","format":"int64","description":"The monotonic version number within (org, name). Versions are immutable: a retrain or a weight override mints the next one rather than editing this."}}},"MergeApplyView":{"type":"object","description":"An apply's outcome.","required":["status"],"properties":{"detail":{"type":["string","null"],"description":"Why it settled as it did."},"status":{"type":"string","description":"`applying`, `applied`, `failed`, `skipped_stale` or `applied_externally`."}}},"MergePlan":{"type":"object","description":"One entity's merge plan (`GET \u2026\/merge-plans`): its elected master, the\ngolden preview, every member as `source_system:source_record_id`, and the\nsame group confidence the duplicates view shows.","required":["entity_id","member_records","member_confidences"],"properties":{"email":{"type":["string","null"]},"entity_id":{"type":"string"},"family_name":{"type":["string","null"]},"given_name":{"type":["string","null"]},"group_confidence":{"type":["integer","null"],"format":"int64","description":"Null when the group has no within-group scored edge."},"master_key":{"type":["string","null"]},"master_record_key":{"type":["string","null"]},"member_confidences":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"propertyNames":{"type":"string"}},"member_count":{"type":["integer","null"],"format":"int64"},"member_records":{"type":"array","items":{"type":"string"}},"phone_e164":{"type":["string","null"]}}},"MergePlanList":{"type":"object","description":"`GET \u2026\/merge-plans` (JSON form).","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/MergePlan"}}}},"MergePreviewDetail":{"type":"object","description":"A merge preview in full: what approving it would do.","required":["summary","proposal","field_changes","related_counts_state","history"],"properties":{"apply":{"oneOf":[{"$ref":"#\/components\/schemas\/MergeApplyView","description":"The apply to Salesforce, once one has begun (#995)."},{"type":"null"}]},"decided_by":{"type":["string","null"]},"decision_reason":{"type":["string","null"]},"field_changes":{"description":"Provider field \u2192 `{before, after}` on the master."},"history":{"type":"array","items":{"$ref":"#\/components\/schemas\/MergePreviewEvent"}},"proposal":{"description":"The members' synchronized preimages, the master and the policy inputs\n(the persisted proposal)."},"related_counts":{"description":"Related-record counts per member; null while `related_counts_state` is\n`unavailable`."},"related_counts_state":{"type":"string"},"summary":{"$ref":"#\/components\/schemas\/MergePreviewSummary"}}},"MergePreviewEvent":{"type":"object","description":"One state change in a preview's history.","required":["to_status","fingerprint","actor","at"],"properties":{"actor":{"type":"string"},"at":{"type":"string","description":"RFC 3339."},"fingerprint":{"type":"string"},"from_status":{"type":["string","null"]},"to_status":{"type":"string"}}},"MergePreviewPage":{"type":"object","description":"A page of merge previews.","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/MergePreviewSummary"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last."}}},"MergePreviewSummary":{"type":"object","description":"One merge preview, without its member snapshots.","required":["id","connection_id","object","entity_id","fingerprint","status","master_record_key","member_count","lake_snapshot","policy_revision","created_at"],"properties":{"connection_id":{"type":"string"},"created_at":{"type":"string","description":"RFC 3339."},"decided_by":{"type":["string","null"],"description":"Who decided it \u2014 a principal, or `policy:<rule id>` for an\nauto-approval."},"entity_id":{"type":"string"},"fingerprint":{"type":"string","description":"Name it to approve or reject."},"id":{"type":"string"},"lake_snapshot":{"type":"integer","format":"int64"},"master_record_key":{"type":"string"},"member_count":{"type":"integer","format":"int64"},"object":{"type":"string"},"policy_revision":{"type":"string","description":"The writeback policy revision it was built under."},"score":{"type":["number","null"],"format":"double","description":"Match evidence: for each victim, its strongest scored edge to another\nmember, then the weakest of those. Null when absent."},"status":{"type":"string","description":"`planned`, `approved`, `rejected` or `superseded`."}}},"MergeRestoreStepView":{"type":"object","description":"One compensation step of an undo.","required":["kind","target_id","status"],"properties":{"kind":{"type":"string","description":"`never_assert`, `undelete`, `recreate` or `revert_master`."},"new_id":{"type":["string","null"],"description":"For `recreate`: the new Salesforce id of the recreated record."},"outcome":{"type":["string","null"]},"status":{"type":"string","description":"`in_flight`, `done` or `failed`."},"target_id":{"type":"string","description":"The Salesforce id acted on (the record key for `never_assert`)."}}},"MergeRestoreView":{"type":"object","description":"The undo of an applied merge.","required":["status","conflicts","steps","related_records_reverted"],"properties":{"conflicts":{"type":"array","items":{"type":"object"},"description":"What was refused rather than overwritten."},"detail":{"type":["string","null"]},"job_id":{"type":["string","null"],"description":"The job working on it, when this request queued one."},"related_records_reverted":{"type":"boolean","description":"Always false: records the merge reparented to the master stay there."},"status":{"type":"string","description":"`restoring`, `restored`, `partial` or `failed`."},"steps":{"type":"array","items":{"$ref":"#\/components\/schemas\/MergeRestoreStepView"}}}},"MergesApplying":{"type":"object","description":"`POST \u2026\/merge-previews\/apply`: the job that will apply approved previews.","required":["job_id","state"],"properties":{"job_id":{"type":"string"},"state":{"type":"string"}}},"MetricSnapshot":{"type":"object","description":"One run's resolution metrics, kept so the dashboard can show a TREND rather than only a current value. The dashboard has always computed its numbers live from the lake, which means it can say what is true now and nothing about whether that is better or worse than last week \u2014 which is the question an operator actually has.","required":["id","run_id","captured_at","records","entities","duplicate_records","duplicate_groups","largest_group","review_backlog","auto_merge_pairs","review_band_pairs","created_at","updated_at"],"properties":{"auto_merge_pairs":{"type":"integer","format":"int64","description":"Active scores at or above the auto-merge threshold."},"captured_at":{"type":"string","format":"date-time","description":"The run's logical clock, not wall time \u2014 so a replayed fixture produces the same snapshot."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time."},"duplicate_groups":{"type":"integer","format":"int64","description":"Entities with more than one member."},"duplicate_records":{"type":"integer","format":"int64","description":"Records sitting in an entity with more than one member \u2014 the numerator of the duplicate rate. Counting GROUPS instead would call a 5-record cluster and a 2-record cluster the same amount of duplication."},"entities":{"type":"integer","format":"int64","description":"Entities the run resolved them into."},"id":{"type":"string","description":"Content-derived row id: sha256('metric_snapshots:' || run_id)."},"largest_group":{"type":"integer","format":"int64","description":"Members in the biggest entity. A sudden jump here is the signature of an over-merge, which an average cluster size hides completely."},"records":{"type":"integer","format":"int64","description":"Records in the standardized corpus."},"review_backlog":{"type":"integer","format":"int64","description":"Open review items after the run \u2014 the work the thresholds are handing to humans."},"review_band_pairs":{"type":"integer","format":"int64","description":"Active scores in the gray band: scored, not merged. The two together say where the thresholds are actually sitting."},"run_id":{"type":"string","description":"The run these metrics describe. One snapshot per run, so a re-run of the same id overwrites rather than double-counting."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time."}}},"MetricSnapshotSource":{"type":"object","description":"One run's duplicate attribution, per source system. The corpus-wide duplicate rate says a tenant has a problem; it does not say WHERE the problem comes from, and the answer is nearly always one feed. Retained per run beside metric_snapshots for the same reason that table exists: a live number says what is true now and nothing about whether a source is getting better or worse.","required":["id","run_id","source_system","captured_at","records","duplicate_records","contributed_groups","created_at","updated_at"],"properties":{"captured_at":{"type":"string","format":"date-time","description":"The run's logical timestamp, duplicated here so the series is readable without joining."},"contributed_groups":{"type":"integer","format":"int64","description":"How many duplicate groups contain at least one of this source's records. A source can account for few duplicate RECORDS while touching many groups, which is the signature of a feed that adds one bad row to everything rather than one bad batch."},"created_at":{"type":"string","format":"date-time","description":"Creation stamp (the run's logical timestamp)."},"duplicate_records":{"type":"integer","format":"int64","description":"How many of them share an entity with at least one other record \u2014 counted by RECORD rather than by group, the same judgement metric_snapshots made: counting groups calls a five-record cluster and a pair the same amount of duplication."},"id":{"type":"string","description":"Content-derived row id: sha256('metric_snapshot_sources:' || run_id || ':' || source_system)."},"records":{"type":"integer","format":"int64","description":"How many of this source's records are in the corpus."},"run_id":{"type":"string","description":"The run this attribution describes; shares its id with the metric_snapshots row."},"source_system":{"type":"string","description":"The delivering source system."},"updated_at":{"type":"string","format":"date-time","description":"Last-update stamp; a re-run of the same run_id corrects rather than appends."}}},"Metrics":{"type":"object","description":"`GET \u2026\/metrics`: the dashboard counters, snapshot-pinned.","required":["records","entities","duplicate_groups","records_in_duplicate_groups","open_reviews","snapshot"],"properties":{"duplicate_groups":{"type":"integer","format":"int64"},"entities":{"type":"integer","format":"int64"},"open_reviews":{"type":"integer","format":"int64"},"records":{"type":"integer","format":"int64"},"records_in_duplicate_groups":{"type":"integer","format":"int64"},"snapshot":{"type":"integer","format":"int64"}}},"ModelCompiled":{"allOf":[{"$ref":"#\/components\/schemas\/ModelSummary"},{"type":"object","required":["notes"],"properties":{"notes":{"type":"array","items":{"type":"string"}}}}],"description":"`POST \u2026\/models\/compile`: the compiled version and what the compiler decided."},"ModelDetail":{"allOf":[{"$ref":"#\/components\/schemas\/ModelSummary"},{"type":"object","required":["model_json","weights"],"properties":{"model_json":{"type":"string","description":"The stored settings document, as text."},"weights":{"description":"Per comparison level: m\/u and the log-odds they imply. Null when the\ndocument does not parse."}}}],"description":"`GET \u2026\/models\/{name}\/versions\/{version}`: the version with its document and\nper-field weights."},"ModelEvaluation":{"allOf":[{"$ref":"#\/components\/schemas\/LabelEvaluation"},{"type":"object","required":["name","version","state"],"properties":{"name":{"type":"string"},"state":{"type":"string"},"version":{"type":"integer","format":"int64"}}}],"description":"`GET \u2026\/models\/{name}\/versions\/{version}\/evaluation`."},"ModelSummary":{"type":"object","description":"The model registry's wire projection. `model_json` is omitted from list\nresponses \u2014 it is the largest field by far and a list of twenty versions\nwould be mostly settings documents nobody asked for.\nOne model version in the registry, without its settings document.","required":["id","name","version","entity_type","model_hash","model_version_label","state","provenance","created_by","created_at"],"properties":{"activated_at":{"type":["string","null"],"description":"RFC 3339, microseconds."},"comparator_algorithm_version":{"type":["integer","null"],"format":"int32","description":"The comparator algorithm the document was trained with; null when the\nstored document does not parse.","minimum":0},"created_at":{"type":"string","description":"RFC 3339, microseconds."},"created_by":{"type":"string"},"entity_type":{"type":"string"},"id":{"type":"string"},"model_hash":{"type":"string"},"model_version_label":{"type":"string"},"name":{"type":"string"},"provenance":{},"state":{"type":"string"},"tf_snapshot_id":{"type":["string","null"]},"version":{"type":"integer","format":"int64"}}},"Org":{"type":"object","description":"A tenant: its config pointer, lake env, lifecycle state and active config version.","required":["id","name","config_path","env","state","created_at","updated_at"],"properties":{"active_config_version":{"type":["integer","null"],"format":"int64","description":"The currently published config version, if any."},"config_path":{"type":"string","description":"Path to the tenant's config document."},"created_at":{"type":"string","format":"date-time","description":"When the tenant was created."},"drop_root":{"type":["string","null"],"description":"Optional object-store root for tenant purge."},"env":{"description":"Lake connection env (catalog, data path, metadata schema)."},"id":{"type":"string","description":"The tenant's unique id (UUIDv7, minted at creation)."},"max_concurrent_jobs":{"type":["integer","null"],"format":"int64","description":"How many of this org's jobs may be active at once, across its datasets (the noisy-neighbor cap). NULL inherits the server default (ER_ORG_JOB_CAP, which ships as 1 \u2014 the pre-dataset single-writer profile). The per-DATASET writer lock is separate and absolute."},"name":{"type":"string","description":"The tenant's unique name (the routing handle; URLs stay name-based)."},"record_allowance":{"type":["integer","null"],"format":"int64","description":"The org's record allowance: the most connected records (standardized source records, summed over its datasets) it may hold before new deliveries are refused with 402. NULL is unlimited. The commercial unit is connected records (#518); the operator sets it per pilot."},"s3_ingest_bucket":{"type":["string","null"],"description":"Bucket the auto-ingest poller watches for this tenant. Null means auto-ingest is off, which is every existing tenant \u2014 the feature has to be opted into, because a poller that starts reading a bucket nobody pointed at it would be ingesting data on its own initiative."},"s3_ingest_prefix":{"type":["string","null"],"description":"Key prefix under `s3_ingest_bucket`, with one directory per config source beneath it. A column rather than a key in `env` deliberately: `env` is handed to the engine subprocess, while this is read by the control plane itself, and D5 is what happens when the two stores of per-tenant settings disagree."},"state":{"type":"string","description":"Tenant lifecycle state."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."}}},"OrgCreated":{"type":"object","description":"An org registered without auto-provisioning: the other body of `POST \/v1\/orgs`.","required":["name","starter_model"],"properties":{"name":{"type":"string"},"starter_model":{"description":"What seeding the starter model did: `seeded` plus a reason or the version."}}},"OrgItem":{"type":"object","description":"One org in the operator's registry: an item of `GET \/v1\/orgs`.","required":["id","name","state","created_at"],"properties":{"active_config_version":{"type":["integer","null"],"format":"int64"},"created_at":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"}}},"OrgProvisioned":{"type":"object","description":"An org being provisioned, with the admin key shown once: the body of\n`POST \/v1\/orgs` when auto-provisioning is on (#864 batch 2). Each\nstruct below declares its fields in the order of the `json!` literal it\nreplaced, which is the order the envelope ledger records.","required":["name","config_version","state","job_id","admin_key_id","admin_key"],"properties":{"admin_key":{"type":"string"},"admin_key_id":{"type":"string"},"config_version":{"type":"integer","format":"int64"},"job_id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"},"tenant":{"type":["string","null"]}}},"OrgResources":{"type":"object","description":"The DuckDB knobs an org's env sets, each `null` when unset.","properties":{"duckdb_memory_limit":{"type":["string","null"]},"duckdb_threads":{"type":["integer","null"],"format":"int64"}}},"OrgUsage":{"type":"object","description":"`GET \/v1\/orgs\/{org}\/usage`: the org's consumption of its allowance.","required":["unit","records","over_allowance","at_limit","datasets"],"properties":{"allowance":{"type":["integer","null"],"format":"int64","description":"The allowance; null is unlimited."},"at_limit":{"type":"boolean","description":"True once `records >= limit`: new deliveries are refused with 402."},"datasets":{"type":"array","items":{"$ref":"#\/components\/schemas\/DatasetUsage"}},"limit":{"type":["integer","null"],"format":"int64","description":"Where new deliveries start to be refused: the allowance plus its\nsoft buffer (`ALLOWANCE_BUFFER_PERCENT`). Null when unlimited."},"over_allowance":{"type":"boolean","description":"True once `records > allowance`: the org is inside its soft buffer.\nDeliveries are still accepted until `limit`; this is the moment to\nraise the allowance, not a refusal (#1522)."},"records":{"type":"integer","format":"int64"},"remaining":{"type":["integer","null"],"format":"int64","description":"`allowance - records`, never negative; null when unlimited."},"unit":{"type":"string","description":"Always `records`: connected records, summed over every dataset."}}},"OrgView":{"type":"object","description":"An org's detail: the body of `GET \/v1\/orgs\/{org}`.","required":["id","name","state","resources"],"properties":{"active_config_version":{"type":["integer","null"],"format":"int64"},"drop_root":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":"string"},"resources":{"$ref":"#\/components\/schemas\/OrgResources"},"state":{"type":"string"}}},"PairLabel":{"type":"object","description":"A human (or model) verdict on one candidate pair \u2014 the training signal the engine has always been able to learn from and never had. One row per (org, pair): a re-label corrects the previous verdict rather than stacking another.","required":["id","org_id","dataset_id","rec_a_key","rec_b_key","verdict","origin","labeled_by","created_at","updated_at"],"properties":{"created_at":{"type":"string","format":"date-time","description":"When the verdict was first recorded."},"dataset_id":{"type":"string","description":"The dataset whose record pair this verdict is about \u2014 record keys are lake-local."},"id":{"type":"string","description":"UUIDv7, minted by the application."},"labeled_by":{"type":"string","description":"The actor that recorded the verdict."},"model_version":{"type":["string","null"],"description":"The model whose score prompted this label, when there was one. Null for a label recorded without a score in front of it."},"note":{"type":["string","null"],"description":"Optional free text from the labeller."},"org_id":{"type":"string","description":"The tenant whose corpus the pair belongs to; every read is scoped by it."},"origin":{"type":"string","description":"Where the verdict came from. `human` is an explicit labelling session; `reviewer` is implicit feedback from resolving a review item; `llm` is a model's suggestion. Kept apart so training can weight or exclude a source, and so an accuracy number can say whose labels it was measured against."},"rec_a_key":{"type":"string","description":"The pair's lower record key, canonical order \u2014 the same ordering match_scores uses, so a label and a score describe the same pair."},"rec_b_key":{"type":"string","description":"The pair's higher record key, canonical order."},"score_at_label":{"type":["number","null"],"format":"double","description":"The match probability shown to the labeller, so a later accuracy pass can tell what the model thought at the time rather than what it thinks now."},"updated_at":{"type":"string","format":"date-time","description":"When it was last corrected."},"verdict":{"type":"string","description":"Whether these two records are the same entity. Deliberately binary: a labeller who is unsure should skip rather than guess, because a guessed label trains the model on noise and is indistinguishable afterwards from a confident one."}}},"PersonDuplicateGroup":{"type":"object","description":"One duplicate group in a **person** dataset: an entity with two or more\nmember records, its evidence metadata, and a golden preview (#1234).","required":["entity_id","member_count","members","member_confidences","model_versions","matched_fields","verified"],"properties":{"email":{"type":["string","null"],"description":"The golden record's email, when assembled."},"entity_id":{"type":"string","description":"The resolved entity."},"family_name":{"type":["string","null"],"description":"The golden record's family name, when assembled."},"given_name":{"type":["string","null"],"description":"The golden record's given name, when assembled."},"group_confidence":{"type":["integer","null"],"format":"int64","description":"The group's confidence (0\u2013100), or null when no member edge is scored."},"master_record_key":{"type":["string","null"],"description":"The strongest-attached member, or null when the group is unscored."},"matched_fields":{"type":"array","items":{"type":"string"},"description":"The comparison fields any within-group edge matched on."},"member_confidences":{"type":"object","description":"Each scored member's attachment confidence (0\u2013100), by member key.","additionalProperties":{"type":"integer","format":"int64"},"propertyNames":{"type":"string"}},"member_count":{"type":"integer","format":"int64","description":"How many source records resolved to it."},"members":{"type":"array","items":{"type":"string"},"description":"The member records, as `<source_system>:<source_record_id>`, ordered."},"model_versions":{"type":"array","items":{"type":"string"},"description":"The model versions whose scores link the group, deduplicated."},"verified":{"type":"boolean","description":"Whether a steward asserted or verified the group."}}},"PersonDuplicatesPage":{"type":"object","description":"A page of a person dataset's duplicate groups, at a pinned snapshot.","required":["items","snapshot"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/PersonDuplicateGroup"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."},"snapshot":{"type":"integer","format":"int64","description":"The lake snapshot every page of this walk reads; the cursor pins it."}}},"PersonGolden":{"type":"object","description":"A person entity's golden record, as of the pinned snapshot.","required":["id","survivorship_version"],"properties":{"addr_city":{"type":["string","null"]},"addr_number":{"type":["string","null"]},"addr_postal":{"type":["string","null"]},"addr_region":{"type":["string","null"]},"addr_street":{"type":["string","null"]},"addr_unit":{"type":["string","null"]},"birth_date":{"type":["string","null"],"format":"date"},"email":{"type":["string","null"]},"family_name":{"type":["string","null"]},"given_name":{"type":["string","null"]},"id":{"type":"string"},"metadata":{},"phone_e164":{"type":["string","null"]},"survivorship_version":{"type":"string"}}},"PreviewPairView":{"type":"object","description":"One sampled pair from a match preview.","required":["rec_a_key","rec_b_key","match_probability","confidence","evidence"],"properties":{"confidence":{"type":"integer","format":"int64","description":"The display integer of `match_probability`."},"evidence":{"description":"The comparison evidence; null if it was not valid JSON."},"match_probability":{"type":"number","format":"double"},"rec_a_key":{"type":"string"},"rec_b_key":{"type":"string"}}},"PreviewsGenerating":{"type":"object","description":"`POST \u2026\/merge-previews\/generate`: the job that will build previews.","required":["job_id","state"],"properties":{"job_id":{"type":"string"},"state":{"type":"string"}}},"Profile":{"oneOf":[{"$ref":"#\/components\/schemas\/ProfileReport"},{"$ref":"#\/components\/schemas\/ProfileNotYet"}],"description":"`GET \u2026\/profile`: the latest profile, or that there is none yet."},"ProfileFinding":{"type":"object","description":"One coded observation a profile made about a corpus \u2014 a column mostly null, a blocking key dominated by one value, a record id that is not unique. Stored rather than derived at read time because the thresholds that produced a finding belong to the run that applied them: re-deriving later against changed thresholds would silently rewrite history, and a finding is the part of a profile a user is most likely to act on.","required":["id","profile_run_id","code","column_name","severity","message","created_at","updated_at"],"properties":{"code":{"type":"string","description":"The finding's registry code (P001, P002, \u2026). Codes are append-only and a retired rule keeps its code, so a stored finding stays interpretable after the rule that made it is gone \u2014 which is the point of coding them rather than storing only prose."},"column_name":{"type":"string","description":"The column the finding is about, or the empty string for a dataset-level finding (a duplicate row rate, a schema change). A sentinel rather than NULL because this column is in the natural key, and a NULL key column never matches in a MERGE's ON clause \u2014 every re-profile would insert a second copy of the same finding."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time."},"detail":{"description":"The measurements behind the message \u2014 the shares, counts and thresholds \u2014 so a consumer can chart or re-check a finding without re-reading the column profile. NULL for a finding whose message is already complete."},"id":{"type":"string","description":"Content-derived row id: sha256('profile_findings:' || profile_run_id || ':' || code || ':' || column_name)."},"message":{"type":"string","description":"The finding in one human sentence, with its numbers already in it. Rendered rather than templated at read time because the numbers are what make it actionable, and a message assembled later could be assembled against different data than the one that triggered it."},"profile_run_id":{"type":"string","description":"The profile run that produced this finding. Named for the relation it points at, per the foreign-key convention; no `references` is declared because DuckLake enforces no foreign keys (V11)."},"severity":{"type":"string","description":"How much the finding should interrupt: `error`, `warning` or `info`. Carried on the row rather than looked up from the registry so that a severity reclassification does not retroactively change what a past profile reported."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time."}}},"ProfileNotYet":{"type":"object","description":"Nothing has profiled this subject and tier yet.","required":["profiled","subject","tier"],"properties":{"profiled":{"type":"boolean","description":"Always false."},"subject":{"type":"string"},"tier":{"type":"integer","format":"int64"}}},"ProfileReport":{"type":"object","description":"The latest profile of one corpus stage.","required":["profiled","profile_run_id","subject","source_system","tier","data_snapshot","corpus_digest","row_count","column_count","sampled","duration_ms","captured_at","columns","findings","candidate_keys"],"properties":{"candidate_keys":{"type":"array","items":{"$ref":"#\/components\/schemas\/CandidateKeyItem"},"description":"Empty for a tier-1 run, which does not measure keys."},"captured_at":{"type":"string","format":"date-time"},"column_count":{"type":"integer","format":"int64"},"columns":{"type":"array","items":{},"description":"One generated column-profile row per column. Value-bearing fields\n(top values, examples) are redacted below Steward."},"config_hash":{"type":["string","null"]},"corpus_digest":{"type":"string"},"data_snapshot":{"type":"integer","format":"int64"},"duration_ms":{"type":"integer","format":"int64"},"findings":{"type":"array","items":{"$ref":"#\/components\/schemas\/ProfileFinding"}},"ingest_batch_id":{"type":["string","null"]},"model_version":{"type":["string","null"]},"profile_run_id":{"type":"string"},"profiled":{"type":"boolean","description":"Always true."},"row_count":{"type":"integer","format":"int64"},"sample_proportion":{"type":["number","null"],"format":"double"},"sample_seed":{"type":["integer","null"],"format":"int64"},"sampled":{"type":"boolean","description":"Whether the figures come from a sample (then `sample_proportion` says\nhow much of the corpus it covered)."},"source_system":{"type":"string"},"subject":{"type":"string"},"tier":{"type":"integer","format":"int64"}}},"ProfileRun":{"type":"object","description":"One execution of the dataset profiler over one corpus stage, and the cache key for its result. A profile exists to be looked at repeatedly and compared against the previous delivery, so recomputing it on every view would make the cheap tier expensive for no new information.","required":["id","subject","source_system","snapshot","tier","corpus_digest","row_count","column_count","sampled","duration_ms","captured_at","created_at","updated_at"],"properties":{"captured_at":{"type":"string","format":"date-time","description":"The run's logical clock, not wall time \u2014 so a replayed fixture produces the same row."},"column_count":{"type":"integer","format":"int64","description":"Columns profiled. Read with row_count it says how wide the scan was, which is the only honest predictor of what a re-profile will cost."},"config_hash":{"type":["string","null"],"description":"The config version in force when the profile ran, so a finding about a blocking rule can be traced to the rule set it was judged against. NULL for a profile that predates any published config \u2014 the common case for a first delivery, which is exactly when profiling is most useful."},"corpus_digest":{"type":"string","description":"A content digest of the rows profiled, and the actual cache key: one hash per row over all its columns, summed (so row order does not matter) and folded together with the row count. Equal digest means equal data, which is the question a cache has to answer \u2014 unlike the lake snapshot, which also moves when something unrelated is written, including this profile itself. Computed in one extra scan, which is cheap beside the distinct counts and top-k the profile already pays for."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time."},"duration_ms":{"type":"integer","format":"int64","description":"Wall-clock cost of the profile, kept so the decision to run a deeper tier can be made from a measurement rather than a guess."},"id":{"type":"string","description":"Content-derived row id: sha256('profile_runs:' || subject || ':' || source_system || ':' || corpus_digest || ':' || tier)."},"ingest_batch_id":{"type":["string","null"],"description":"For a `raw` subject profiled automatically as a delivery lands, the delivery it describes \u2014 which lets drift be read between two consecutive batches. Provenance and ONLY provenance: this described itself as the per-delivery cache key until the auto-profile was built, and it was neither, because the key is `corpus_digest` and nothing populated this column at all. The digest is the better key anyway \u2014 two deliveries carrying identical content share it, where keying on the batch recomputes the same answer for every redelivery of an unchanged file. NULL for the standardized and golden subjects, which describe the whole corpus rather than one landing, and NULL for a profile an operator or a schedule asked for, which describes whatever is landed now rather than one batch."},"model_version":{"type":["string","null"],"description":"The model whose rules a tier-2 or tier-3 profile measured, when one existed. NULL is the normal case for a new corpus and is not a defect: the candidate-key estimates are deliberately computable without a model."},"row_count":{"type":"integer","format":"int64","description":"Rows the profile actually read, which is the sampled count when sampling was on. Named row_count rather than rows because `rows` is reserved in DuckDB and a column called that cannot be selected unquoted."},"sample_proportion":{"type":["number","null"],"format":"double","description":"The sampled share of rows, NULL when the whole corpus was read."},"sample_seed":{"type":["integer","null"],"format":"int64","description":"The salt the deterministic sample was drawn with, NULL when unsampled. Recorded because the sample is reproducible only if the seed is known, and a profile nobody can redraw cannot be compared against its successor."},"sampled":{"type":"boolean","description":"Whether the figures come from a sample. Stored as its own flag rather than inferred from sample_proportion, because a consumer rendering a number has to know whether it is exact before it decides how to label it."},"snapshot":{"type":"integer","format":"int64","description":"The DuckLake snapshot version the profile was computed against \u2014 informational provenance, deliberately NOT the cache key. It cannot be: the snapshot counter is per-catalog and this profile's own write advances it, so keying on it means every profile invalidates itself and the stored result grows a duplicate on every view instead of being reused. Found by the e2e test that asserts two profiles of unchanged data are one row."},"source_system":{"type":"string","description":"The source whose delivered rows were profiled, or `*` when the subject is not source-scoped. A sentinel rather than NULL because this column is part of the natural key, and NULL never equals NULL in a MERGE's ON clause \u2014 a nullable key column would miss every match and insert a duplicate profile on each run."},"subject":{"type":"string","description":"Which stage of the corpus was profiled: `raw` (as delivered, per source), `standardized` (the canonical attributes), or `golden` (post-resolution). The same aggregates run over all three, which is why a post-resolution profile costs no new machinery. Not an accepted_values list because DuckLake enforces no CHECK constraints (V11) and declaring one would promise a guarantee no layer provides."},"tier":{"type":"integer","format":"int64","description":"Profiling depth: 1 shape (one aggregate pass), 2 entity-resolution readiness (blocking cost, skew, coverage), 3 model readiness (agreement rates, u-probability pre-flight). Kept in the key so a cheap profile is never mistaken for a deep one, and so asking for tier 3 does not read a tier 1 row and report it as complete."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time. A re-profile of an unchanged snapshot rewrites the row in place rather than appending, so this moves while the rest of the row does not."}}},"Quality":{"oneOf":[{"$ref":"#\/components\/schemas\/QualityReport"},{"$ref":"#\/components\/schemas\/QualityUnconfigured"}],"description":"`GET \u2026\/quality`: the report, or the unconfigured answer."},"QualityBuckets":{"type":"object","description":"The record-quality score distribution, by band.","required":["below_50","between_50_80","at_least_80"],"properties":{"at_least_80":{"type":"integer","format":"int64"},"below_50":{"type":"integer","format":"int64"},"between_50_80":{"type":"integer","format":"int64"}}},"QualityDimensions":{"type":"object","description":"The mean of each quality dimension; null when nothing is scored.","properties":{"completeness":{"type":["number","null"],"format":"double"},"freshness":{"type":["number","null"],"format":"double"},"validity":{"type":["number","null"],"format":"double"}}},"QualityReport":{"type":"object","description":"A configured dataset's record-quality report.","required":["configured","scored","buckets","dimensions","worst"],"properties":{"buckets":{"$ref":"#\/components\/schemas\/QualityBuckets"},"configured":{"type":"boolean","description":"Always true."},"dimensions":{"$ref":"#\/components\/schemas\/QualityDimensions"},"max_score":{"type":["number","null"],"format":"double"},"mean_score":{"type":["number","null"],"format":"double"},"min_score":{"type":["number","null"],"format":"double"},"scored":{"type":"integer","format":"int64"},"worst":{"type":"array","items":{"$ref":"#\/components\/schemas\/WorstRecord"}}}},"QualityUnconfigured":{"type":"object","description":"A dataset with no quality rules configured: nothing has been scored.","required":["scored","configured"],"properties":{"configured":{"type":"boolean","description":"Always false."},"scored":{"type":"integer","format":"int64","description":"Always 0."}}},"RecordQuality":{"type":"object","description":"A per-record data-quality score, 0-100, with the three dimensions kept separately. The dimensions are kept because a single number says a record is bad and not what to do about it: complete-but-invalid, valid-but-empty and simply old are three different jobs.","required":["id","record_key","score","completeness","run_id","scored_at","created_at","updated_at"],"properties":{"completeness":{"type":"number","format":"double","description":"Weighted fraction of the configured attributes that are populated."},"created_at":{"type":"string","format":"date-time","description":"Run-logical creation time."},"freshness":{"type":["number","null"],"format":"double","description":"1.0 within `fresh_days` of the run, decaying to 0.0 at `stale_days`. NULL when the source carries no timestamp, because unknown age is not the same as old."},"id":{"type":"string","description":"Content-derived row id: sha256('record_qualities:' || record_key)."},"record_key":{"type":"string","description":"The standardized record scored."},"run_id":{"type":"string","description":"The run that scored it."},"score":{"type":"number","format":"double","description":"0-100, the weighted mean of the dimensions that APPLY to this record. A dimension that cannot be judged is left out of the mean rather than counted as zero."},"scored_at":{"type":"string","format":"date-time","description":"That run's logical clock."},"updated_at":{"type":"string","format":"date-time","description":"Run-logical last-write time."},"validity":{"type":["number","null"],"format":"double","description":"Fraction of the PRESENT validatable fields that passed standardization. NULL when the record has none of them \u2014 a record with no email is already penalised by completeness, and scoring its validity zero would penalise the same absence twice."}}},"RecordsByKey":{"type":"object","description":"`GET \u2026\/records?key=\u2026`: the standardized records found, snapshot-pinned.","required":["items","snapshot"],"properties":{"items":{"type":"array","items":{},"description":"One object per found record: `record_key` plus the dataset entity\ntype's standardized columns, so the keys depend on that type."},"snapshot":{"type":"integer","format":"int64"}}},"ResolveCandidate":{"type":"object","description":"One candidate entity for an unsaved record.","required":["record_key","match_probability","confidence","band","evidence"],"properties":{"band":{"type":"string","description":"Which band the score falls in under the org's thresholds:\n`auto_merge` \/ `review` \/ `reject`."},"confidence":{"type":"integer","format":"int64","description":"The score as the product shows it: the 1\u2013100 projection's display\ninteger (`dedupe_core::confidence`), so a caller rendering this never\nmaps the probability itself."},"entity_id":{"type":["string","null"],"description":"The entity that record currently belongs to, when it belongs to one. A\nrecord that has never been through reconcile has no entity yet, and\nsaying `null` is more honest than inventing one."},"evidence":{"description":"Per-comparison evidence behind the score (the waterfall the review queue shows), keyed by each comparison's\noutput column `<c>`: `gamma_<c>` is the comparison level the pair\nreached, `mw_<c>` that level's match weight (log2 Bayes factor),\n`mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with\nterm frequencies), and `match_weight` the pair's total. The prefixes are\na fixed contract: a model declaring others is refused at upload."},"match_probability":{"type":"number","format":"double"},"record_key":{"type":"string","description":"The record the payload matched."}}},"ResolveResult":{"type":"object","description":"What resolving an unsaved record returned.","required":["candidates","decision","snapshot"],"properties":{"candidates":{"type":"array","items":{"$ref":"#\/components\/schemas\/ResolveCandidate"}},"decision":{"type":"string","description":"The single value a form or an ingestion pipeline branches on: the best\ncandidate's band (`auto_merge` \/ `review`), `reject` when there are none,\nor `ambiguous` when candidates in two or more different entities each\nclear `auto_merge` \u2014 the record would merge into either, so no one\nentity is the answer and a person should decide."},"snapshot":{"type":"integer","format":"int64","description":"The lake snapshot the corpus was read at, so a caller can tell whether it\nresolved against fresh data."}}},"ResumeAccepted":{"type":"object","description":"A resumed job, requeued: the body of `POST \u2026\/jobs\/{job_id}\/resume`.","required":["job_id","state"],"properties":{"job_id":{"type":"string"},"state":{"type":"string"}}},"ReviewItem":{"type":"object","description":"One review-queue item: the stored row plus the shipped `confidence`.\n\nSpelled out rather than flattened from the generated `PageRow`\/`ByIdRow`:\nthose names repeat in every entity's `read` module, so registering them\nwould collide, and the `From` impls destructure each row exhaustively, so a\ncolumn added to the statement fails to compile here instead of silently\nleaving the wire.","required":["id","subject_type","reason","status","first_seen_run_id","last_seen_run_id"],"properties":{"confidence":{"type":["integer","null"],"format":"int64","description":"The display integer of `match_probability`; absent when it is null."},"entity_id":{"type":["string","null"]},"first_seen_run_id":{"type":"string"},"id":{"type":"string"},"last_seen_run_id":{"type":"string"},"match_probability":{"type":["number","null"],"format":"double","description":"Null for a structural escalation, which is not a scored pair."},"reason":{"type":"string"},"rec_a_key":{"type":["string","null"]},"rec_b_key":{"type":["string","null"]},"resolved_at":{"type":["string","null"],"description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."},"resolved_by":{"type":["string","null"]},"status":{"type":"string"},"subject_type":{"type":"string","description":"`pair` for a record-pair review, `entity` for an entity-subject one."},"waterfall":{}}},"ReviewMergeGroup":{"type":"object","description":"`GET \u2026\/reviews\/{review_id}\/merge-group`: the union of both sides' entities.","required":["items","total","snapshot"],"properties":{"items":{"type":"array","items":{},"description":"Records-by-key items (each record's values, keyed by the dataset's\nentity type), each stamped with the `entity_id` it belongs to."},"snapshot":{"type":"integer","format":"int64"},"total":{"type":"integer","description":"The union's size before the key cap truncated `items`.","minimum":0}}},"ReviewPage":{"type":"object","description":"`GET \u2026\/reviews`: one keyset page of the review queue.","required":["items","snapshot","unscored_hidden"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReviewItem"}},"next_cursor":{"type":["string","null"]},"snapshot":{"type":"integer","format":"int64"},"unscored_hidden":{"type":"integer","format":"int64","description":"Open unscored escalations a probability band hid (0 with no band)."}}},"RunEventItem":{"type":"object","description":"One entity event a run emitted.","required":["id","seq","run_id","entity_id","event_type","occurred_at"],"properties":{"details":{},"entity_id":{"type":"string"},"event_type":{"type":"string"},"id":{"type":"string"},"occurred_at":{"type":"string","description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."},"run_id":{"type":"string"},"seq":{"type":"integer","format":"int64","description":"The run-local order; the page cursor."}}},"RunEventPage":{"type":"object","description":"`GET \u2026\/runs\/{run_id}\/entity-events`: one keyset page of a run's events.","required":["items","run_id","snapshot"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/RunEventItem"}},"next_cursor":{"type":["string","null"]},"run_id":{"type":"string"},"snapshot":{"type":"integer","format":"int64"}}},"RunItem":{"type":"object","description":"One pipeline run in the run ledger, newest first.","required":["id","mode","status","started_at","config_hash"],"properties":{"auto_merged_pairs":{"type":["integer","null"],"format":"int64","description":"Pairs this run scored at or above the auto-merge threshold. Absent\nwhen the dataset has no readable config, so no count is reported\nagainst the wrong threshold.","minimum":0},"config_hash":{"type":"string"},"ended_at":{"type":["string","null"]},"id":{"type":"string"},"mode":{"type":"string","description":"`full`, `incremental`, `correct`, \u2026"},"model_version":{"type":["string","null"]},"rebuild_reason":{"type":["string","null"]},"snapshot":{"type":["integer","null"],"format":"int64","description":"The lake snapshot holding this run's results: pass it as `snapshot` to\na result read to read THIS run's output after a newer run has moved\nthe lake. Null while the run is unfinished, and for runs finished\nbefore #1229, which never recorded one."},"started_at":{"type":"string","description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."},"status":{"type":"string"},"tf_snapshot_id":{"type":["string","null"]}}},"S3IngestCursor":{"type":"object","description":"What the auto-ingest poller has already read, one row per (org, source). The poller runs on every dispatcher tick and the newest object under a prefix stays the newest until a new one arrives, so without this row the same CSV would be re-ingested every few seconds forever \u2014 an unbounded run loop over the tenant's own lake. An upsert rather than a log: the question it answers is 'what is already in', not 'what has ever been in', and the audit log already answers the second.","required":["id","org_id","dataset_id","source","object_key","size_bytes","delivery_id","created_at","updated_at"],"properties":{"created_at":{"type":"string","format":"date-time","description":"When this source was first auto-ingested."},"dataset_id":{"type":"string","description":"The dataset the polled source lands in."},"delivery_id":{"type":"string","description":"The delivery this object became, tying the cursor to the audit row and the run it enqueued."},"etag":{"type":["string","null"],"description":"The object's ETag when it was read. The reason this column exists: a tenant who overwrites `crm\/daily.csv` with new content leaves the key identical, so a key-only cursor would never read the new rows. Nullable because a listing can omit it."},"id":{"type":"string","description":"UUIDv7, minted by the application."},"object_key":{"type":"string","description":"The full S3 key of the object last ingested, kept whole so a tenant asking 'which file produced this run' gets the answer rather than a reconstruction."},"org_id":{"type":"string","description":"The tenant whose prefix was polled; every read is scoped by it."},"size_bytes":{"type":"integer","format":"int64","description":"The object's size at ingest, so a later shrink is visible as one."},"source":{"type":"string","description":"The config source this object landed as \u2014 the first path segment under the tenant's prefix."},"updated_at":{"type":"string","format":"date-time","description":"When it was last auto-ingested."}}},"SalesforceConnectionItem":{"type":"object","description":"One Salesforce connection, without its credentials.","required":["id","name","instance_url","auth_kind","api_version","active"],"properties":{"active":{"type":"boolean"},"api_version":{"type":"string"},"auth_kind":{"type":"string"},"id":{"type":"string"},"instance_url":{"type":"string"},"name":{"type":"string"}}},"Schedule":{"type":"object","description":"A recurring job schedule for a tenant: its kind, cron and source.","required":["id","org_id","dataset_id","kind","params","cron","enabled","source","created_at","updated_at"],"properties":{"created_at":{"type":"string","format":"date-time","description":"When the schedule was created."},"cron":{"type":"string","description":"The cron expression."},"dataset_id":{"type":"string","description":"The dataset this schedule enqueues for."},"enabled":{"type":"boolean","description":"Whether the schedule is active."},"id":{"type":"string","description":"The schedule's unique id."},"kind":{"type":"string","description":"The job kind the schedule enqueues."},"last_enqueued_at":{"type":["string","null"],"format":"date-time","description":"When the schedule last enqueued a job."},"org_id":{"type":"string","description":"The tenant this schedule runs for."},"params":{"description":"Kind-specific parameters."},"source":{"type":"string","description":"What created the schedule (api, config:correction_pass, system:lake_maintain)."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."}}},"ScheduleCreated":{"type":"object","description":"`POST \u2026\/schedules`: the schedule just created.","required":["id","kind","cron"],"properties":{"cron":{"type":"string"},"id":{"type":"string"},"kind":{"type":"string"}}},"ScheduleItem":{"type":"object","description":"One dataset schedule.","required":["id","kind","cron","enabled","source"],"properties":{"cron":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"string"},"kind":{"type":"string","description":"The job kind it enqueues."},"last_enqueued_at":{"type":["string","null"]},"source":{"type":"string","description":"`api` or `config`: a config-owned schedule is changed by publishing."}}},"ScheduleToggled":{"type":"object","description":"`PATCH \u2026\/schedules\/{schedule_id}`: the schedule's new enabled state.","required":["id","enabled"],"properties":{"enabled":{"type":"boolean"},"id":{"type":"string"}}},"ScoredPair":{"type":"object","description":"One active pairwise score (`GET \u2026\/match-scores`): the pair, its probability\nand evidence, and the shipped `confidence` (#1234). The same columns as an\n[`UncertainPair`], read by a different statement.","required":["rec_a_key","rec_b_key","match_probability","model_version","evidence","run_id","scored_at","confidence"],"properties":{"confidence":{"type":"integer","format":"int64"},"evidence":{"description":"Per-comparison evidence behind the score, keyed by each comparison's\noutput column `<c>`: `gamma_<c>` is the comparison level the pair\nreached, `mw_<c>` that level's match weight (log2 Bayes factor),\n`mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with\nterm frequencies), and `match_weight` the pair's total. The prefixes are\na fixed contract: a model declaring others is refused at upload."},"match_probability":{"type":"number","format":"double"},"model_version":{"type":"string"},"rec_a_key":{"type":"string"},"rec_b_key":{"type":"string"},"run_id":{"type":"string"},"scored_at":{"type":"string","description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."}}},"SourceInsight":{"type":"object","description":"One source's share of a run's duplication.","required":["run_id","source_system","captured_at","records","duplicate_records","contributed_groups"],"properties":{"captured_at":{"type":"string","description":"chrono's display form (`YYYY-MM-DD HH:MM:SS[.f] UTC`)."},"contributed_groups":{"type":"integer","format":"int64"},"duplicate_rate":{"type":["number","null"],"format":"double","description":"Null when the source contributed no records."},"duplicate_records":{"type":"integer","format":"int64"},"records":{"type":"integer","format":"int64"},"run_id":{"type":"string"},"source_system":{"type":"string"}}},"SourceInsights":{"type":"object","description":"`GET \u2026\/insights\/sources`: each source's share of one run's duplication.","required":["snapshot","sources"],"properties":{"run_id":{"type":["string","null"],"description":"The run reported on; null (with no sources) before any run retained one."},"snapshot":{"type":"integer","format":"int64"},"sources":{"type":"array","items":{"$ref":"#\/components\/schemas\/SourceInsight"}}}},"Staged":{"type":"object","description":"One staged steward correction: recorded, not yet applied to the lake.","required":["status","action_id","pending_until_next_reconcile"],"properties":{"action_id":{"type":"string"},"pending_until_next_reconcile":{"type":"boolean","description":"Always false: the correction lands on the next apply, not the next run."},"status":{"type":"string","description":"Always `staged`."}}},"StagedApplied":{"type":"object","description":"One staged correction handed to an `apply_corrections` job (`apply_now`).","required":["status","action_id","pending_until_next_reconcile","apply_job"],"properties":{"action_id":{"type":"string"},"apply_job":{"type":"string"},"pending_until_next_reconcile":{"type":"boolean","description":"Always false."},"status":{"type":"string","description":"Always `staged`: the job, not this request, applies it."}}},"StagedBatch":{"type":"object","description":"Several staged corrections, waiting for an apply.","required":["status","action_ids"],"properties":{"action_ids":{"type":"array","items":{"type":"string"}},"status":{"type":"string","description":"Always `staged`."}}},"StagedBatchApplied":{"type":"object","description":"Several staged corrections handed to an `apply_corrections` job\n(`apply_now`). Still `staged`: the job, not this request, applies them.","required":["status","action_ids","apply_job"],"properties":{"action_ids":{"type":"array","items":{"type":"string"}},"apply_job":{"type":"string"},"status":{"type":"string","description":"Always `staged`."}}},"StagedCount":{"type":"object","description":"`GET \u2026\/staged`: how many steward actions await the next reconcile.","required":["pending_count"],"properties":{"pending_count":{"type":"integer","format":"int64"}}},"StagedRecords":{"type":"object","description":"The staged-action response envelope (`_steward_action`): always `staged`\nhere, so `pending_until_next_reconcile` is false (immediate apply is the\ninfra-bound writer-lock path).\nThe staged response for a call that staged SEVERAL actions (O6).\n\nA sibling of [`staged_response`] rather than a widening of it: three other\nhandlers stage exactly one action, and their response shape is read by the\nfrontend and pinned by tests. `action_id` is carried for the callers that\npredate the list \u2014 it is the first of `action_ids`, which is the whole\ntruth.\nPer-record steward actions, staged and waiting for an apply.","required":["status","action_ids","count","pending_until_next_reconcile"],"properties":{"action_id":{"type":["string","null"],"description":"The first of `action_ids`: the single-record callers' handle."},"action_ids":{"type":"array","items":{"type":"string"}},"count":{"type":"integer","description":"How many records the call named.","minimum":0},"pending_until_next_reconcile":{"type":"boolean","description":"Always false: the actions land on the next apply."},"status":{"type":"string","description":"Always `staged`."}}},"StagedRecordsApplied":{"type":"object","description":"Per-record steward actions handed to ONE `apply_corrections` job.","required":["status","action_ids","count","pending_until_next_reconcile","apply_job"],"properties":{"action_id":{"type":["string","null"]},"action_ids":{"type":"array","items":{"type":"string"}},"apply_job":{"type":"string"},"count":{"type":"integer","minimum":0},"pending_until_next_reconcile":{"type":"boolean"},"status":{"type":"string","description":"Always `staged`: the job, not this request, applies them."}}},"StagedStewardAction":{"type":"object","description":"A steward action staged for review\/apply: its payload, state and outcome.","required":["id","org_id","dataset_id","action","state","created_by","created_at","updated_at"],"properties":{"action":{"description":"The action payload."},"applied_at":{"type":["string","null"],"format":"date-time","description":"When the action was applied, if it has been."},"created_at":{"type":"string","format":"date-time","description":"When the action was staged."},"created_by":{"type":"string","description":"Principal that staged the action."},"dataset_id":{"type":"string","description":"The dataset whose lake this action drains into."},"error":{"type":["string","null"],"description":"The failure reason, if the action failed."},"id":{"type":"string","description":"The staged action's unique id."},"org_id":{"type":"string","description":"The tenant the action applies to."},"state":{"type":"string","description":"Whether the action is pending, applied or failed."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."}}},"Tag":{"type":"object","description":"A tenant's own label for entities and review groups: the vocabulary a steward sorts work by.","required":["id","org_id","name","kind","active","created_by","created_at","updated_at"],"properties":{"active":{"type":"boolean","description":"Whether the tag is in use. Retiring is a soft delete: `taggings` references this row, every foreign key in this schema is NO ACTION, and a hard DELETE would therefore fail for exactly the tags that had been used \u2014 which is the bug D11 found in webhooks. Keeping the row also keeps the history legible: what a group was once marked as is part of why it was handled the way it was."},"apply_min_role":{"type":["string","null"],"description":"The minimum role allowed to apply or unapply this tag. Null means the route default (steward). Finer than the route's role check because a tag can name a decision only an admin should be able to mark \u2014 the spec's per-tag permission."},"created_at":{"type":"string","format":"date-time","description":"When the tag was created."},"created_by":{"type":"string","description":"The actor that created the tag."},"description":{"type":["string","null"],"description":"What the tag means, for the steward who inherits it. Null when nobody wrote one."},"id":{"type":"string","description":"The tag's unique id (UUIDv7, minted by the application)."},"kind":{"type":"string","description":"Who the tag belongs to. `user` is the steward's vocabulary; `system` is reserved for tags the platform itself writes (merge, manual_merge, unmatch, link, split) \u2014 a system tag cannot be retired through the API, and its name cannot be taken by a user tag, so the two vocabularies can never collide."},"name":{"type":"string","description":"The label a steward sees and types. Unique per tenant among active tags, because two tags with one name make a filter ambiguous and a bulk action unsafe."},"org_id":{"type":"string","description":"The tenant that owns the tag. A tag is never shared across tenants: it names one tenant's own workflow."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time."}}},"TagApplied":{"type":"object","description":"`POST \u2026\/tags\/{tag_id}\/apply`: always `true` (a missing tag is a 404).","required":["applied"],"properties":{"applied":{"type":"boolean"}}},"TagList":{"type":"object","description":"`GET \/v1\/orgs\/{org}\/tags`: the org's tags (or those on one subject).","required":["tags"],"properties":{"tags":{"type":"array","items":{"$ref":"#\/components\/schemas\/Tag"}}}},"TagRemoved":{"type":"object","description":"`POST \u2026\/tags\/{tag_id}\/unapply`: always `true` (an absent tagging is a 404).","required":["removed"],"properties":{"removed":{"type":"boolean"}}},"TagRetired":{"type":"object","description":"`DELETE \/v1\/orgs\/{org}\/tags\/{tag_id}`: always `true` (unknown is a 404).","required":["retired"],"properties":{"retired":{"type":"boolean"}}},"TagSubjects":{"type":"object","description":"`GET \u2026\/tags\/{tag_id}\/subjects`: what one tag is applied to.","required":["subjects"],"properties":{"subjects":{"type":"array","items":{"$ref":"#\/components\/schemas\/Tagging"}}}},"Tagging":{"type":"object","description":"One tag applied to one subject: the attachment, kept apart from the tag so retiring a tag does not rewrite what it was applied to.","required":["id","org_id","dataset_id","tag_id","subject_type","subject_id","created_by","created_at","updated_at"],"properties":{"created_at":{"type":"string","format":"date-time","description":"When the tag was applied."},"created_by":{"type":"string","description":"The actor that applied the tag. Kept because tagging is how work is assigned, so who claimed it matters."},"dataset_id":{"type":"string","description":"The dataset whose subject this tag is applied to \u2014 subject ids are lake-local."},"id":{"type":"string","description":"The tagging's unique id (UUIDv7, minted by the application)."},"org_id":{"type":"string","description":"The tenant. Denormalised from the tag so every read is scoped by one predicate rather than a join \u2014 the same reason every other tenant-scoped relation carries it."},"subject_id":{"type":"string","description":"The entity id or review id. Deliberately NOT a foreign key: an entity lives in the lake and a review is rebuilt by every reconcile, so a database-level reference would be to a row this store does not own. A tagging whose subject has gone is harmless \u2014 it reads as absent and is cleaned up by nothing, which is the honest cost of tagging something another store owns."},"subject_type":{"type":"string","description":"What was tagged: `entity` (a resolved cluster, by its entity id) or `review` (an open review item). Two kinds rather than two tables, because a filter and a bulk action want one list of 'things tagged X' and a union of two relations would make every such read a join."},"tag_id":{"type":"string","description":"The tag applied."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time."}}},"TaggingList":{"type":"object","description":"`GET \u2026\/taggings`: every tagging in a dataset, capped.","required":["taggings","truncated"],"properties":{"taggings":{"type":"array","items":{"$ref":"#\/components\/schemas\/Tagging"}},"truncated":{"type":"boolean","description":"True when the cap cut the list: the caller has not seen every tagging."}}},"TaskInstance":{"type":"object","description":"One try of one task of one job (Airflow's task_instance shape): the live try has live = TRUE, archived tries have live NULL and stay in the table as history (batch-orchestration-design \u00a74.2).","required":["id","org_id","job_id","task_id","seq","try_number","kind","state","trigger_rule","upstream","teardown","max_tries","launches","max_launches","created_at","updated_at"],"properties":{"archived_reason":{"type":["string","null"],"description":"Why the row stopped being live; NULL while live. retry = archive_try, cleared = a terminal row rotated by clear, restarted = a clear-while-live rotation (complete_restart). Pending rows reset by a clear are not archived (no try was consumed)."},"counters":{"description":"Progress counters, replaced on every heartbeat and at finish."},"created_at":{"type":"string","format":"date-time","description":"Row created."},"dataset_id":{"type":["string","null"],"description":"Copied from the job at planning (NULL for org-level jobs); the per-dataset pod lock keys on it once the executor is re-scoped."},"error_class":{"type":["string","null"],"description":"er-errors' seven classes plus the executor's four."},"error_detail":{"type":["string","null"],"description":"Why this try failed, as the API reports it: the chain-flattened error (errfmt::chain), truncated to 2000 chars. Read it from GET \u2026\/jobs\/{job_id}\/tasks; raw pod logs are not served (they can carry record values)."},"escalated_from":{"type":["string","null"],"description":"Class of the OOMKilled predecessor try, so a mixed-class run is legible."},"exit_code":{"type":["integer","null"],"format":"int64","description":"Container exit code: the pod's own on finish, the watch's observation on record_evidence. Evidence for the row, never a classifier input (\u00a76.5)."},"finished_at":{"type":["string","null"],"format":"date-time","description":"Terminal state recorded."},"heartbeat_at":{"type":["string","null"],"format":"date-time","description":"Last heartbeat."},"id":{"type":"string","description":"er_ids::natural_id('task_instances', [job_id, task_id, try_number]): a pure function of the attempt key, so the Job name is one too."},"image_digest":{"type":["string","null"],"description":"Image digest this try ran, so a deploy mid-run is legible."},"input":{"description":"The work order: pinned upstream references, the RunPlan, params. Written whole by mark_scheduled at every readiness verdict (never merged), by advance_segment for a fused member, and copied by the retry insert; NULL on a none row."},"job_id":{"type":"string","description":"The run (jobs.id == run_id)."},"k8s_job_name":{"type":["string","null"],"description":"batch\/v1 Job name, `er-t-{20 hex of id}-l{launches}`, of the Job that ran this try; for a fused non-head member, the segment head's Job (advance_segment copies it)."},"kind":{"type":"string","description":"Where the body runs: a Kubernetes Job, or a dispatcher-local body under the control-task contract (\u00a73.6)."},"launches":{"type":"integer","format":"int64","description":"Infrastructure budget consumed by this try: Job creates whose pod never ran user code, plus disruptions while running; 1 for a member advanced inside a running segment pod."},"live":{"type":["boolean","null"],"description":"TRUE on the live try, NULL once archived (NULLs are distinct, so the partial unique index admits one live row per coordinate)."},"max_launches":{"type":"integer","format":"int64","description":"Infrastructure budget per try."},"max_tries":{"type":"integer","format":"int64","description":"Cumulative try budget (Airflow max_tries): retries at planning; previous_try_number + retries after a clear. Eligible to retry while try_number <= max_tries."},"next_resource_class":{"type":["string","null"],"description":"Operator override recorded by clear on a restarting row; complete_restart applies it to the successor."},"node_name":{"type":["string","null"],"description":"Node the pod landed on."},"not_before":{"type":["string","null"],"format":"date-time","description":"Backoff deadline for up_for_retry; a short capacity wait for scheduled."},"org_id":{"type":"string","description":"Tenant."},"outcome":{"type":["string","null"],"description":"Success flavour; no_op is exit 10."},"output":{"description":"The serialized DurableOutput (a LakeRef or Plan), written at finish."},"owner_epoch":{"type":["string","null"],"description":"The dispatcher process epoch (UUIDv7 minted at start) that claimed the launch; adoption rewrites it."},"pod_name":{"type":["string","null"],"description":"Pod that ran this try, from the pod's bound token on first contact; cross-checked by the watch."},"pod_uid":{"type":["string","null"],"description":"Pod UID, recorded from the token's claim; the watch confirms it."},"queued_at":{"type":["string","null"],"format":"date-time","description":"Launch claimed (write-ahead, before the create)."},"resource_class":{"type":["string","null"],"description":"Class this try runs at; NULL for a control task. OOM escalation writes a larger class on the next try."},"scheduled_at":{"type":["string","null"],"format":"date-time","description":"Readiness fired."},"segment":{"type":["string","null"],"description":"Fusion segment id resolved at planning; NULL for a task that runs alone."},"seq":{"type":"integer","format":"int64","description":"Topological position from assembly; display and claim order."},"snapshot_end":{"type":["integer","null"],"format":"int64","description":"Lake snapshot of the task's last commit: the durable reference downstream pins to."},"snapshot_start":{"type":["integer","null"],"format":"int64","description":"Lake snapshot before the task's first commit."},"started_at":{"type":["string","null"],"format":"date-time","description":"Pod reported start."},"state":{"type":"string","description":"Closed state set (\u00a75). restarting and canceling are the write-ahead markers for clear and cancel of a live row."},"task_id":{"type":"string","description":"Task::NAME, stable across renames."},"teardown":{"type":"boolean","description":"Claimable while the job is canceling (finish)."},"termination_reason":{"type":["string","null"],"description":"Platform evidence, distinct from error_class, free text: OOMKilled, Evicted, DeadlineExceeded, Unschedulable, no_pod_created, vanished, quota, sigterm, sigkill, fenced, stale_start, structural_mismatch, build_skew, control_plane_unreachable, no_terminal_record, heartbeat_timeout, dispatcher_restart, revoked, and kin."},"trace_context":{"type":["string","null"],"description":"traceparent of this try's span, a child of jobs.trace_context."},"trigger_rule":{"type":"string","description":"Copied from the compiled graph at planning so the UI can explain propagation; the graph is the authority."},"try_number":{"type":"integer","format":"int64","description":"1-based try. A new row per try."},"updated_at":{"type":"string","format":"date-time","description":"Row updated."},"upstream":{"description":"Upstream task_ids, a UI projection of the compiled edges."}}},"TaskList":{"type":"object","description":"Every try of every task of one job: the body of `GET \u2026\/jobs\/{job_id}\/tasks`.","required":["tasks"],"properties":{"tasks":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskInstance"}}}},"UncertainPair":{"type":"object","description":"One pair the labelling session should look at next: the active score plus\nthe shipped `confidence` (always present \u2014 every uncertain pair is scored).","required":["rec_a_key","rec_b_key","match_probability","model_version","evidence","run_id","scored_at","confidence"],"properties":{"confidence":{"type":"integer","format":"int64"},"evidence":{"description":"Per-comparison evidence behind the score, keyed by each comparison's\noutput column `<c>`: `gamma_<c>` is the comparison level the pair\nreached, `mw_<c>` that level's match weight (log2 Bayes factor),\n`mw_tf_adj_<c>` the term-frequency adjustment (only on comparisons with\nterm frequencies), and `match_weight` the pair's total. The prefixes are\na fixed contract: a model declaring others is refused at upload."},"match_probability":{"type":"number","format":"double"},"model_version":{"type":"string"},"rec_a_key":{"type":"string"},"rec_b_key":{"type":"string"},"run_id":{"type":"string"},"scored_at":{"type":"string","description":"Naive lake text (`YYYY-MM-DD HH:MM:SS[.ffffff]`), not RFC 3339."}}},"UnmatchApplied":{"type":"object","description":"A record unmatch staged and handed to an `apply_corrections` job.","required":["status","entity_id","pairs","action_ids","apply_job"],"properties":{"action_ids":{"type":"array","items":{"type":"string"}},"apply_job":{"type":"string"},"entity_id":{"type":"string"},"pairs":{"type":"integer","minimum":0},"status":{"type":"string","description":"Always `applied`."}}},"UnmatchStaged":{"type":"object","description":"A record unmatch staged as never-rules against its entity.","required":["status","entity_id","pairs","action_ids","pending_until_next_reconcile"],"properties":{"action_ids":{"type":"array","items":{"type":"string"}},"entity_id":{"type":"string"},"pairs":{"type":"integer","minimum":0},"pending_until_next_reconcile":{"type":"boolean","description":"Always true."},"status":{"type":"string","description":"Always `staged`."}}},"UnmergeApplied":{"type":"object","description":"An unmerge staged and handed to an `apply_corrections` job.","required":["status","pairs","action_ids","apply_job"],"properties":{"action_ids":{"type":"array","items":{"type":"string"}},"apply_job":{"type":"string"},"pairs":{"type":"integer","minimum":0},"status":{"type":"string","description":"Always `applied`."}}},"UnmergeStaged":{"type":"object","description":"An unmerge staged as never-rules, waiting for the next reconcile.","required":["status","pairs","action_ids","pending_until_next_reconcile"],"properties":{"action_ids":{"type":"array","items":{"type":"string"}},"pairs":{"type":"integer","description":"How many never-rules were staged (one per peeled record).","minimum":0},"pending_until_next_reconcile":{"type":"boolean","description":"Always true."},"status":{"type":"string","description":"Always `staged`."}}},"UploadAborted":{"type":"object","description":"An aborted upload.","required":["upload_id","state"],"properties":{"state":{"type":"string"},"upload_id":{"type":"string"}}},"UploadPart":{"type":"object","description":"One stored part.","required":["part","bytes","sha256"],"properties":{"bytes":{"type":"integer","format":"int64","minimum":0},"part":{"type":"integer","format":"int64","minimum":0},"sha256":{"type":"string","description":"The part's SHA-256 as received \u2014 compare with your copy."}}},"UploadSession":{"type":"object","description":"An upload session: where its parts go and which have arrived.","required":["upload_id","source","bytes","sha256","part_size","part_count","part_url","parts_received","expires_at"],"properties":{"bytes":{"type":"integer","format":"int64","minimum":0},"expires_at":{"type":"string","description":"RFC 3339. Past it every call but abort is a 410."},"part_count":{"type":"integer","format":"int64","minimum":0},"part_size":{"type":"integer","format":"int64","description":"Every part but the last is exactly this many bytes.","minimum":0},"part_url":{"type":"string","description":"PUT each part's bytes here, replacing `{part}` with 1..=part_count."},"parts_received":{"type":"array","items":{"type":"integer","format":"int64","minimum":0},"description":"The parts already stored, ascending: a resuming client sends the rest."},"sha256":{"type":"string"},"source":{"type":"string"},"upload_id":{"type":"string"}}},"UpsertPolicyList":{"type":"object","description":"The upsert policies in force.","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/UpsertPolicyView"}}}},"UpsertPolicyView":{"type":"object","description":"An upsert policy revision.","required":["id","connection_id","object","external_id_field","field_mapping","writeback_allowlist","sources","created_by","created_at"],"properties":{"connection_id":{"type":"string"},"created_at":{"type":"string","description":"RFC 3339."},"created_by":{"type":"string"},"external_id_field":{"type":"string"},"field_mapping":{"type":"object"},"id":{"type":"string","description":"The revision an upsert preview binds."},"object":{"type":"string"},"sources":{"type":"array","items":{"type":"string"}},"writeback_allowlist":{"type":"array","items":{"type":"string"}}}},"UpsertPreviewPage":{"type":"object","description":"A page of upsert previews.","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/UpsertPreviewView"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last."}}},"UpsertPreviewView":{"type":"object","description":"A proposed upsert.","required":["id","connection_id","object","entity_id","external_id_field","external_id_value","fields","fingerprint","status","policy_revision","created_at"],"properties":{"apply_detail":{"type":["string","null"]},"apply_status":{"type":["string","null"],"description":"The apply, once begun: `applying`, `created`, `updated`, `failed` or `skipped_stale`."},"connection_id":{"type":"string"},"created_at":{"type":"string","description":"RFC 3339."},"decided_by":{"type":["string","null"]},"entity_id":{"type":"string"},"external_id_field":{"type":"string"},"external_id_value":{"type":"string"},"fields":{"type":"object","description":"Provider field \u2192 value to write."},"fingerprint":{"type":"string","description":"Name it to approve or reject."},"id":{"type":"string"},"object":{"type":"string"},"policy_revision":{"type":"string","description":"The upsert policy revision it was built under."},"sf_record_id":{"type":["string","null"],"description":"The Salesforce id written, once applied."},"status":{"type":"string","description":"`planned`, `approved`, `rejected` or `superseded`."}}},"Webhook":{"type":"object","description":"A tenant webhook endpoint: its URL, subscribed events and signing secret.","required":["id","org_id","url","events","active","created_at","updated_at"],"properties":{"active":{"type":"boolean","description":"Whether the webhook is active."},"created_at":{"type":"string","format":"date-time","description":"When the webhook was registered."},"dataset_id":{"type":["string","null"],"description":"Optional dataset filter: NULL subscribes to every dataset's events."},"events":{"description":"The subscribed event types."},"id":{"type":"string","description":"The webhook's unique id."},"org_id":{"type":"string","description":"The tenant that owns the webhook."},"updated_at":{"type":"string","format":"date-time","description":"Wall-clock last-write time (database default; advanced by mutations once the entity migrates)."},"url":{"type":"string","description":"The delivery URL."}}},"WebhookCreated":{"type":"object","description":"`POST \/v1\/orgs\/{org}\/webhooks`: the webhook, with its signing secret shown\nonce.","required":["id","url","events","secret","active"],"properties":{"active":{"type":"boolean","description":"Always true."},"events":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"secret":{"type":"string","description":"The HMAC-SHA256 key for `X-ER-Signature`; not returned again."},"url":{"type":"string"}}},"WebhookDelivery":{"type":"object","description":"One attempt-tracked delivery of one event to one subscriber. The event is recorded here BEFORE any network call, so a subscriber that is briefly unreachable gets the event late instead of never.","required":["id","org_id","webhook_id","event_type","payload","state","attempt","max_attempts","created_at","updated_at"],"properties":{"attempt":{"type":"integer","format":"int64","description":"Attempts handed out. Counted when claimed, not when reported, so a drainer that dies still consumes one."},"created_at":{"type":"string","format":"date-time","description":"When the event was recorded, which is before any delivery was attempted."},"dataset_id":{"type":["string","null"],"description":"The dataset the delivered event came from, when it has one (provenance)."},"delivered_at":{"type":["string","null"],"format":"date-time","description":"When a 2xx was received; NULL unless state is delivered."},"error":{"type":["string","null"],"description":"Why the last attempt did not deliver: a transport error, or the outbound-URL guard's refusal."},"event_type":{"type":"string","description":"The catalogued event (webhook::EVENT_CATALOG), e.g. job.succeeded."},"id":{"type":"string","description":"UUIDv7, minted by the application."},"max_attempts":{"type":"integer","format":"int64","description":"Attempts before giving up. Six with the backoff below spans about ten minutes."},"next_attempt_at":{"type":["string","null"],"format":"date-time","description":"When this becomes claimable. NULL means immediately; set to a backoff in the future after a retryable failure."},"org_id":{"type":"string","description":"The tenant whose subscriber this is for; every read is scoped by it."},"payload":{"description":"The exact body to POST. Stored rather than rebuilt so a retry delivers the same bytes the signature was computed over, and so the log shows what was actually sent."},"response_code":{"type":["integer","null"],"format":"int64","description":"The subscriber's HTTP status, when the POST completed at all."},"state":{"type":"string","description":"pending until a drain settles it; delivered on a 2xx; failed when retries are exhausted or the destination is refused outright."},"updated_at":{"type":"string","format":"date-time","description":"Last write."},"webhook_id":{"type":"string","description":"The subscription being delivered to."}}},"WebhookDeliveryList":{"type":"object","description":"`GET \/v1\/orgs\/{org}\/webhooks\/deliveries`: recent delivery attempts.","required":["deliveries"],"properties":{"deliveries":{"type":"array","items":{"$ref":"#\/components\/schemas\/WebhookDelivery"}}}},"WebhookEventCatalog":{"type":"object","description":"`GET \/v1\/orgs\/{org}\/webhooks\/events`: every event a webhook can subscribe to.","required":["events"],"properties":{"events":{"type":"array","items":{"$ref":"#\/components\/schemas\/WebhookEventItem"}}}},"WebhookEventItem":{"type":"object","description":"One subscribable event.","required":["event","description"],"properties":{"description":{"type":"string"},"event":{"type":"string"}}},"WebhookItem":{"type":"object","description":"One active webhook, without its secret.","required":["id","url","events","active"],"properties":{"active":{"type":"boolean"},"events":{"description":"Subscribed event names; empty subscribes to all."},"id":{"type":"string"},"url":{"type":"string"}}},"WorkOrder":{"type":"object","description":"`GET \/v1\/internal\/attempts\/{attempt_id}`: everything a remote attempt\nneeds to run its task, read once at pod start.","required":["org_id","job_id","run_id","kind","task_id","try_number","state","trigger_rule","max_tries","params","lineage","lake_env","models","labels","connection"],"properties":{"connection":{"description":"Salesforce credentials and watermark for an extract task; null\notherwise."},"dataset_id":{"type":["string","null"]},"drop_root":{"type":["string","null"]},"input":{},"job_id":{"type":"string"},"kind":{"type":"string"},"labels":{"type":"array","items":{"type":"array","items":{"type":"string"}},"description":"`(rec_a_key, rec_b_key)` verdict pairs, for a train task."},"lake_env":{"description":"The lake connection env the task opens."},"lineage":{"type":"array","items":{"type":"string"},"description":"The attempt's task chain, current first."},"max_tries":{"type":"integer","format":"int64"},"models":{"type":"array","items":{"type":"object"},"description":"The tenant's active models, for scoring tasks."},"org_id":{"type":"string"},"params":{},"resource_class":{"type":["string","null"]},"run_id":{"type":"string"},"segment":{"type":["string","null"]},"state":{"type":"string"},"structural_fingerprint":{"type":["string","null"]},"task_id":{"type":"string"},"trigger_rule":{"type":"string"},"try_number":{"type":"integer","format":"int64"}}},"WorstRecord":{"type":"object","description":"One of the lowest-scoring records.","required":["record_key","score","completeness"],"properties":{"completeness":{"type":"number","format":"double"},"freshness":{"type":["number","null"],"format":"double"},"record_key":{"type":"string"},"score":{"type":"number","format":"double"},"validity":{"type":["number","null"],"format":"double"}}},"WritebackAuthorizationStarted":{"type":"object","description":"A started delegated authorization.","required":["authorize_url","expires_at"],"properties":{"authorize_url":{"type":"string","description":"Send the reviewer here; Salesforce returns them to `redirect_uri` with\n`code` and `state`."},"expires_at":{"type":"string","description":"RFC 3339; complete before this."}}},"WritebackAuthorizationView":{"type":"object","description":"A connection's delegated authorization, without its tokens.","required":["status","sf_org_id","sf_user_id","scopes","allow_automatic","authorized_by","created_at"],"properties":{"allow_automatic":{"type":"boolean"},"authorized_by":{"type":"string"},"created_at":{"type":"string","description":"RFC 3339."},"revoked_at":{"type":["string","null"],"description":"RFC 3339."},"revoked_reason":{"type":["string","null"],"description":"`consent_withdrawn`, `replaced` or `requested`."},"scopes":{"type":"string"},"sf_org_id":{"type":"string"},"sf_user_id":{"type":"string","description":"The Salesforce user writeback acts as."},"sf_username":{"type":["string","null"]},"status":{"type":"string","description":"`active` or `revoked`."}}},"WritebackPolicyList":{"type":"object","description":"The active writeback policies of a dataset.","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#\/components\/schemas\/WritebackPolicyView"}}}},"WritebackPolicyView":{"type":"object","description":"A writeback policy revision.","required":["id","connection_id","object","election_policy","writeback_allowlist","field_mapping","created_by","created_at"],"properties":{"connection_id":{"type":"string"},"created_at":{"type":"string","description":"RFC 3339."},"created_by":{"type":"string"},"election_policy":{"type":"string"},"field_mapping":{},"id":{"type":"string","description":"The revision id a merge preview binds."},"object":{"type":"string"},"writeback_allowlist":{}}}},"responses":{"Error400":{"description":"The request is malformed.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error401":{"description":"No valid credential.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error402":{"description":"The org's record allowance is used up.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error403":{"description":"The credential's role is below what this operation needs.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error404":{"description":"Not found \u2014 including another org's resource, which is never distinguished from a missing one.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error409":{"description":"The request conflicts with the resource's current state.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error410":{"description":"Gone.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error413":{"description":"The body is larger than this operation accepts.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error422":{"description":"The request is well-formed but invalid; `detail` says which field and why.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error500":{"description":"Internal error.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error501":{"description":"Not available on this deployment (a store it needs is not configured).","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error502":{"description":"An upstream provider failed.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}},"Error503":{"description":"Temporarily unavailable, or not configured on this deployment.","content":{"application\/json":{"schema":{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Tenant API key erk_{key_id}_{secret}, scoped to its organization and role. Operator operations require the separately configured operator bearer token; tenant keys cannot grant operator access. Roles form viewer < steward < admin < operator."}}}}